WP RSS Aggregator - Version 3.9.5

Version Description

(2014-01-02) = * Enhanced: Added a feed validator link in the New/Edit Feed Sources page. * Enhanced: The Next Update column also shows the time remaining for next update, for feed source on the global update interval. * Enhanced: The custom feed has been improved, and is now identical to the feeds displayed with the shortcode. * Enhanced: License notifications only appear on the main site when using WordPress multisite. * Enhanced: Updated Colorbox script to 1.4.33 * Fixed bug: The Imported Items column was always showing zero. * Fixed bug: Feed items not being imported with limit set to zero. Should be unlimited. * Fixed bug: Fat header in Feed Sources page

Download this release

Release Info

Developer jeangalea
Plugin Icon 128x128 WP RSS Aggregator
Version 3.9.5
Comparing to
See all releases

Code changes from version 1.1 to 3.9.5

Files changed (84) hide show
  1. changelog.txt +203 -0
  2. css/admin-3.8.css +3 -0
  3. css/admin-editor.css +106 -0
  4. css/admin-styles.css +294 -0
  5. css/admin-tracking-styles.css +42 -0
  6. css/colorbox.css +72 -30
  7. css/font-awesome.min.css +4 -0
  8. css/styles.css +18 -28
  9. fonts/FontAwesome.otf +0 -0
  10. fonts/fontawesome-webfont.eot +0 -0
  11. fonts/fontawesome-webfont.svg +414 -0
  12. fonts/fontawesome-webfont.ttf +0 -0
  13. fonts/fontawesome-webfont.woff +0 -0
  14. images/colorbox/border.png +0 -0
  15. images/colorbox/controls.png +0 -0
  16. images/colorbox/ie6/borderBottomCenter.png +0 -0
  17. images/colorbox/ie6/borderBottomLeft.png +0 -0
  18. images/colorbox/ie6/borderBottomRight.png +0 -0
  19. images/colorbox/ie6/borderMiddleLeft.png +0 -0
  20. images/colorbox/ie6/borderMiddleRight.png +0 -0
  21. images/colorbox/ie6/borderTopCenter.png +0 -0
  22. images/colorbox/ie6/borderTopLeft.png +0 -0
  23. images/colorbox/ie6/borderTopRight.png +0 -0
  24. images/colorbox/loading.gif +0 -0
  25. images/colorbox/loading_background.png +0 -0
  26. images/colorbox/overlay.png +0 -0
  27. images/facebook.png +0 -0
  28. {img → images}/icon-adminmenu16-sprite.png +0 -0
  29. {img → images}/icon-adminpage32.png +0 -0
  30. images/twitter.png +0 -0
  31. img/add.png +0 -0
  32. img/remove.png +0 -0
  33. inc/activation.php +0 -19
  34. inc/admin-options.php +0 -172
  35. inc/deactivation.php +0 -12
  36. inc/shortcodes.php +0 -18
  37. includes/OPML.php +126 -0
  38. includes/admin-ajax-notice.php +151 -0
  39. includes/admin-dashboard.php +98 -0
  40. includes/admin-debugging.php +179 -0
  41. includes/admin-display.php +428 -0
  42. includes/admin-editor.php +145 -0
  43. includes/admin-import-export.php +162 -0
  44. includes/admin-metaboxes.php +599 -0
  45. includes/admin-options.php +895 -0
  46. includes/admin-welcome.php +128 -0
  47. includes/admin.php +146 -0
  48. includes/cron-jobs.php +251 -0
  49. includes/custom-feed.php +149 -0
  50. includes/custom-post-types.php +130 -0
  51. includes/deprecated-functions.php +83 -0
  52. includes/feed-display.php +351 -0
  53. includes/feed-processing.php +884 -0
  54. includes/libraries/WP_Logging.php +360 -0
  55. includes/libraries/browser.php +1082 -0
  56. includes/misc-functions.php +97 -0
  57. includes/opml-importer.php +258 -0
  58. includes/roles-capabilities.php +107 -0
  59. includes/scripts.php +130 -0
  60. includes/secure-reset.php +56 -0
  61. includes/shortcodes.php +36 -0
  62. includes/system-info.php +167 -0
  63. includes/update.php +252 -0
  64. js/add-remove.js +0 -38
  65. js/admin-addon-ajax.js +28 -0
  66. js/admin-custom.js +263 -0
  67. js/custom.js +7 -0
  68. js/editor.js +138 -0
  69. js/jquery-ui-timepicker-addon.js +2145 -0
  70. js/jquery.colorbox-min.js +7 -4
  71. js/pointers.js +15 -0
  72. languages/default.mo +0 -0
  73. languages/default.po +272 -0
  74. languages/it.mo +0 -0
  75. languages/it.po +274 -0
  76. readme.txt +361 -102
  77. screenshot-1.png +0 -0
  78. screenshot-2.png +0 -0
  79. screenshot-3.png +0 -0
  80. screenshot-4.png +0 -0
  81. screenshot-5.png +0 -0
  82. templates/wprss.css +9 -0
  83. uninstall.php +15 -8
  84. wp-rss-aggregator.php +451 -236
changelog.txt CHANGED
@@ -1,3 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  1.1 (2012-08-13)
2
  Now requires WordPress 3.0
3
  More flexible fetching of images directory
1
+ 3.9.5 (2014-01-02)
2
+ Enhanced: Added a feed validator link in the New/Edit Feed Sources page.
3
+ Enhanced: The Next Update column also shows the time remaining for next update, for feed source on the global update interval.
4
+ Enhanced: The custom feed has been improved, and is now identical to the feeds displayed with the shortcode.
5
+ Enhanced: License notifications only appear on the main site when using WordPress multisite.
6
+ Enhanced: Updated Colorbox script to 1.4.33
7
+ Fixed bug: The Imported Items column was always showing zero.
8
+ Fixed bug: Feed items not being imported with limit set to zero. Should be unlimited.
9
+ Fixed bug: Broken display template if titles are not linked and no source and date are displayed.
10
+ Fixed bug: Fat header in Feed Sources page
11
+
12
+ 3.9.4 (2013-12-24)
13
+ Enhanced: Added a column in the Feed Sources page that shows the number of feed items imported for each feed source.
14
+ Fixed bug: Leaving the delete old feed items empty did not ignore the delete.
15
+
16
+ 3.9.3 (2013-12-23)
17
+ Fixed bug: Fixed tracking pointer appearing on saving settings.
18
+
19
+ 3.9.2 (2013-12-21)
20
+ Fixed bug: Incorrect file include call.
21
+
22
+ 3.9.1 (2013-12-21)
23
+ Enhanced: Improved date and time handling for imported feed items.
24
+ Fixed bug: Incorrect values being shown in the Feed Processing metabox.
25
+ Fixed bug: Feed limits set to zero were causing feeds to not be imported.
26
+
27
+ 3.9 (2013-12-12)
28
+ New Feature: Feed sources can have their own update interval.
29
+ New Feature: The time remaining until the next update has been added to the Feed Source table.
30
+
31
+ 3.8 (2013-12-05)
32
+ New Feature: Feed items can be limited and deleted by their age.
33
+ Enhanced: Added utility functions for shorter filters.
34
+ Fixed bug: License codes were being erased when add-ons were deactivated.
35
+ Fixed bug: Some feed sources could not be set to active from the table controls.
36
+ Fixed bug: str_pos errors appear when custom feed url is left empty.
37
+ Fixed bug: Some options were producing undefined index errors.
38
+
39
+ 3.7 (2013-11-28)
40
+ New Feature: State system - Feed sources can be activated/paused.
41
+ New Feature: State system - Feed sources can be set to activate or pause themselves at a specific date and time.
42
+ Enhanced: Added compatibility with nested outline elements in OPML files.
43
+ Enhanced: Admin menu icon image will change into a Dashicon, when WordPress is updated to 3.8 (Decemeber 2013).
44
+ Fixed bug: Custom Post types were breaking when the plugin is activated.
45
+
46
+ 3.6.1 (2013-11-17)
47
+ Fixed bug: Missing 2nd argument for wprss_shorten_title()
48
+
49
+ 3.6 (2013-11-16)
50
+ New Feature: Can set the maximum length for titles. Long titles get trimmed.
51
+ Fixed bug: Fixed errors with undefined indexes for unchecked checkboxes in the settings page.
52
+ Fixed bug: Pagination on front static page was not working.
53
+
54
+ 3.5.2 (2013-11-11)
55
+ Fixed bug: Invalid feed source url was producing an Undefined method notice.
56
+ Fixed bug: Custom feed was producing a 404 page.
57
+ Fixed bug: Presstrends code firing on admin_init, opt-in implementation coming soon
58
+
59
+ 3.5.1 (2013-11-09)
60
+ Enhanced: Increased compatibility with RSS sources.
61
+ Fixed bug: Pagination not working on home page
62
+
63
+ 3.5 (2013-11-6)
64
+ New Feature: Can delete feed items for a particular source
65
+ Enhanced: the 'Fetch feed items' row action for feed sources resets itself after 3.5 seconds.
66
+ Enhanced: The feed image is saved for each url.
67
+ Fixed bug: Link to source now links to correct url. Previously linked to site's feed.
68
+
69
+ 3.4.6 (2013-11-1)
70
+ Enhanced: Added more hooks to debugging page for the Feed to Post add-on.
71
+ Fixed bug: Uninitialized loop index
72
+
73
+ 3.4.5 (2013-10-30)
74
+ Bug Fix: Feed items were not being imported while the WPML plugin was active.
75
+
76
+ 3.4.4 (2013-10-26)
77
+ New feature: Pagination
78
+ New feature: First implementation of editor button for easy shortcode creation
79
+ Enhanced: Feed items and sources don't show up in link manager
80
+ Enhanced: Included Presstrends code for plugin usage monitoring
81
+
82
+ 3.4.3 (2013-10-20)
83
+ Fixed bug: Removed anonymous functions for backwards PHP compatibility
84
+ Bug fix: Added suppress_filters in feed-display.php to prevent a user reported error
85
+ Bug fix: Missing <li> in certain feed displays
86
+
87
+ 3.4.2 (2013-9-19)
88
+ Enhanced: Added some hooks for Feed to Post compatibility
89
+ Enhanced: Moved date settings to a more appropriate location
90
+
91
+ 3.4.1 (2013-9-16)
92
+ Fixed Bug: Minor issue with options page - PHP notice
93
+
94
+ 3.4 (2013-9-15)
95
+ New Feature: Saving/Updating a feed source triggers an update for that source's feed items.
96
+ New Feature: Option to change Youtube, Vimeo and Dailymotion feed item URLs to embedded video players URLs
97
+ New Feature: Facebook Pages URLs are automatically detected and changed into Atom Feed URLs using FB's Graph
98
+ Enhanced: Updated jQuery Colorbox library to 1.4.29
99
+ Fixed Bug: Some settings did not have a default value set, and were throwing an 'Undefined Index' error
100
+ Fixed Bug: Admin notices do not disappear immediately when dismissed.
101
+
102
+ 3.3.3 (2013-09-08)
103
+ Fixed bug: Better function handling on uninstall, should remove uninstall issues
104
+
105
+ 3.3.2 (2013-09-07)
106
+ New feature: Added exclude parameter to shortcode
107
+ Enhanced: Added metabox links to documentation and add-ons
108
+ Fixed bug: Custom feed linking to post on user site rather than original source
109
+ Fixed bug: Custom post types issues when activitating the plugin
110
+
111
+ 3.3.1 (2013-08-09)
112
+ Fixed bug: Roles and Capabilities file had not been included
113
+ Fixed bug: Error on install, function not found
114
+
115
+ 3.3 (2013-08-08)
116
+ New feature: OPML importer
117
+ New feature: Feed item limits for individual Feed Sources
118
+ New feature: Custom feed URL
119
+ New feature: Feed limit on custom feed
120
+ New feature: New 'Fetch feed items' action for each Feed Source in listing display
121
+ New feature: Option to enable link to source
122
+ Enhanced: Date strings now change according to locale being used (i.e. compatible with WPML)
123
+ Enhanced: Capabilities implemented
124
+ Enhanced: Feed Sources row action 'View' removed
125
+ Fixed Bug: Proxy feed URLs resulting in the permalink: example.com/url
126
+
127
+ 3.2 (2013-07-06)
128
+ New feature: Parameter to limit number of feeds displayed
129
+ New feature: Paramter to limit feeds displayed to particular sources (via ID)
130
+ New feature: Now handles licensing for add-ons
131
+ Enhanced: Better feed import handling to handle large number of feed sources
132
+
133
+ 3.1.1 (2013-06-06)
134
+ Fixed bug: Incompatibility with some other plugins due to function missing namespace
135
+
136
+ 3.1 (2013-06-06)
137
+ New feature: Option to set the number of feed items imported from every feed (default 5)
138
+ New feature: Import and Export aggregator settings and feed sources
139
+ New feature: Debugging page allowing manual feed refresh and feed reset
140
+ Enhanced: Faster handling of restoring sources from trash when feed limit is 0
141
+ Fixed bug: Limiter on number of overall feeds stored not working
142
+ Fixed bug: Incompatibility issue with Foobox plugin fixed
143
+ Fixed bug: Duplicate feeds sometimes imported
144
+
145
+ 3.0 (2013-03-16)
146
+ New feature: Option to select cron frequency
147
+ New feature: Code extensibility added to be compatible with add-ons
148
+ New feature: Option to set a limit to the number of feeds stored (previously 50, hard coded)
149
+ New feature: Option to define the format of the date shown below each feed item
150
+ New feature: Option to show or hide source of feed item
151
+ New feature: Option to show or hide publish date of feed item
152
+ New feature: Option to set text preceding publish date
153
+ New feature: Option to set text preceding source of feed item
154
+ New feature: Option to link title or not
155
+ New feature: Limit of 5 items imported for each source instead of 10
156
+ Enhanced: Performance improvement when publishing new feeds in admin
157
+ Enhanced: Query tuning for better performance
158
+ Enhanced: Major code rewrite, refactoring and inclusion of hooks
159
+ Enhanced: Updated Colorbox to v1.4.1
160
+ Enhanced: Better security implementations
161
+ Enhanced: Better feed preview display
162
+ Fixed bug: Deletion of items upon source deletion not working properly
163
+ Requires: WordPress 3.3
164
+
165
+ 2.2.3 (2012-11-01)
166
+ Fixed bug: Tab navigation preventing typing in input boxes
167
+ Removed: Feeds showing up in internal linking pop up
168
+
169
+ 2.2.2 (2012-10-30)
170
+ Removed: Feeds showing up in site search results
171
+ Enhanced: Better tab button navigation when adding a new feed
172
+ Enhanced: Better guidance when a feed URL is invalid
173
+
174
+ 2.2.1 (2012-10-17)
175
+ Fixed bug: wprss_feed_source_order assumes everyone is an admin
176
+
177
+ 2.2 (2012-10-01)
178
+ New feature: Italian translation added
179
+ Enhanced: Feed source order changed to alphabetical
180
+ Fixed bug: repeated entries when having a non-valid feed source
181
+ Fixed bug: all imported feeds deleted upon trashing a single feed source
182
+
183
+ 2.1 (2012-09-27)
184
+ New feature: Now localised for translations
185
+ Fixed bug: with date string
186
+ Fixed bug: $link_before and $link_after, now working
187
+ Enhanced: Added backwards compatibility for wp_rss_aggregator() function
188
+
189
+ 2.0 (2012-09-21)
190
+ Bulk of code rewritten and refactored
191
+ Added install and upgrade functions
192
+ Added DB version setting
193
+ Feed sources now stored as Custom Post Types
194
+ Feed source list sortable ascending or descending by name
195
+ Removed days subsections in feed display
196
+ Ability to limit total number of feeds displayed
197
+ Feeds now fetched via Cron
198
+ Cron job to delete old feed items, keeps max of 50 items in DB
199
+ Now requires WordPress 3.2
200
+ updated colorbox to v1.3.20.1
201
+ Limit of 15 items max imported for each source
202
+ Fixed issue of page content displaying incorrectly after feeds
203
+
204
  1.1 (2012-08-13)
205
  Now requires WordPress 3.0
206
  More flexible fetching of images directory
css/admin-3.8.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ #menu-posts-wprss_feed .menu-icon-post div.wp-menu-image:before {
2
+ content: "\f303";
3
+ }
css/admin-editor.css ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* EDITOR BUTTON AND DIALOG STYLES */
2
+
3
+ #wprss-overlay {
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ background: rgba(0,0,0,0.6);
10
+ z-index: 999;
11
+ }
12
+
13
+ #wprss-editor-dialog {
14
+ position: absolute;
15
+ top: 0;
16
+ bottom: 0;
17
+ left: 0;
18
+ right: 0;
19
+ width: 500px;
20
+ height: 450px;
21
+ margin: auto;
22
+ }
23
+
24
+ .wprss-dialog-header {
25
+ background: #464646;
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ right: 0;
30
+ height: 30px;
31
+ }
32
+
33
+ .wprss-dialog-header h1 {
34
+ color: #ddd;
35
+ text-shadow: rgb(68, 68, 68) 0px -1px 0px;
36
+ font-size: 16px;
37
+ font-weight: normal;
38
+ margin: 7px 0 15px 6px;
39
+ }
40
+
41
+ .wprss-dialog-header .close-btn {
42
+ position: absolute;
43
+ top: 4px;
44
+ right: 10px;
45
+ color: #ccc;
46
+ font-size: 18px;
47
+ font-weight: bold;
48
+ padding: 0px 6px 2px;
49
+ border-radius: 20px;
50
+ cursor: pointer;
51
+ }
52
+ .wprss-dialog-header .close-btn:hover {
53
+ background: white;
54
+ color: black;
55
+ }
56
+
57
+
58
+ .wprss-dialog-inside {
59
+ position: absolute;
60
+ top: 30px;
61
+ bottom: 0;
62
+ left: 0;
63
+ right: 0;
64
+ overflow: auto;
65
+ }
66
+
67
+ .wprss-dialog-inside table {
68
+ position: absolute;
69
+ display: inline-block;
70
+ top: 0;
71
+ left: 0;
72
+ right: 0;
73
+ height: auto;
74
+ padding: 10px;
75
+ box-sizing: border-box;
76
+ -moz-box-sizing: border-box;
77
+ }
78
+
79
+ .wprss-dialog-inside table tr td:first-child {
80
+ font-weight: bold;
81
+ }
82
+
83
+
84
+ #wprss-dialog-sources-container {
85
+ margin-top: 10px;
86
+ }
87
+
88
+ #wprss-dialog-feed-source-list,
89
+ #wprss-dialog-exclude-list {
90
+ min-width: 100px;
91
+ min-height: 100px;
92
+ }
93
+
94
+ #wprss-dialog-exclude-row td p:first-child {
95
+ margin-top: 0;
96
+ }
97
+
98
+ #wprss-dialog-exclude-label {
99
+ vertical-align: top;
100
+ }
101
+
102
+ #validate-feed-link {
103
+ font-size: 0.85em;
104
+ text-decoration: none;
105
+ margin-left: 10px;
106
+ }
css/admin-styles.css ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wprss-input {
2
+ background: none repeat scroll 0 0 #EAF2FA;
3
+ margin-bottom: 20px;
4
+ padding-bottom: 10px;
5
+ padding-left: 10px;
6
+ padding-top: 10px;
7
+ width: 600px;
8
+ }
9
+
10
+ .wprss-input p { line-height: 28px; }
11
+
12
+ .wprss-input label {
13
+ float: left;
14
+ width: 95px !important;
15
+ }
16
+
17
+ .wprss-input input {
18
+ height: 28px;
19
+ margin-bottom: 0;
20
+ padding: 0 0 0 5px;
21
+ width: 400px;
22
+ }
23
+
24
+ #icon-wprss-aggregator {
25
+ background: transparent url( '../images/icon-adminpage32.png' ) no-repeat !important;
26
+ }
27
+
28
+ body.post-type-wprss_feed #titlediv div.inside { display: none !important; }
29
+
30
+ #misc-publishing-actions,
31
+ #minor-publishing-actions { display: none; }
32
+
33
+ #custom_meta_box .form-table th { width: 100px; }
34
+
35
+ body.post-type-wprss_feed_item .add-new-h2,
36
+ body.post-type-wprss_feed_item .tablenav select[name="m"],
37
+ body.post-type-wprss_feed_item #post-query-submit
38
+ { display: none; }
39
+
40
+ body.post-type-wprss_feed_item a.row-title {
41
+ cursor: default;
42
+ font-weight: normal;
43
+ color: #555;
44
+ }
45
+
46
+ #latest-news-cpac-settings li {
47
+ list-style: none;
48
+ line-height: 16px;
49
+ }
50
+
51
+ li.twitter a {
52
+ background: transparent url('../images/twitter.png') no-repeat 0;
53
+ padding-left: 20px;
54
+ }
55
+
56
+ li.facebook a {
57
+ background: transparent url('../images/facebook.png') no-repeat 0;
58
+ padding-left: 20px;
59
+ }
60
+
61
+ li.donate_link a:hover {
62
+ color: darkGreen;
63
+ }
64
+
65
+ #preview_meta_box ul {
66
+ list-style: disc;
67
+ margin-left: 16px;
68
+ }
69
+
70
+ #preview_meta_box .invalid-feed-url {
71
+ color: red;
72
+ }
73
+
74
+ #preview_meta_box .rss-date {
75
+ color: #666;
76
+
77
+ }
78
+
79
+ /*.rss-aggregator_page_wprss-aggregator-settings .form-table th { width: 80px; }*/
80
+
81
+
82
+ /* For excerpts and thumbnails admin screens */
83
+ .wprss_feed_page_wprss-aggregator-settings input,
84
+ .wprss_feed_page_wprss-aggregator-settings input[type="checkbox"],
85
+ .wprss_feed_page_wprss-aggregator-settings input[type="radio"] {
86
+ margin-right: 8px;
87
+ }
88
+
89
+ input#default-thumbnail,
90
+ input#wprss-et-license-key,
91
+ input#wprss-c-license-key,
92
+ input#wprss-kf-license-key,
93
+ input#wprss-ftp-license-key {
94
+ width: 300px;
95
+ }
96
+
97
+ input#thumbnails-height,
98
+ input#thumbnails-width {
99
+ /*width: 29px;*/
100
+ }
101
+
102
+
103
+ /* Red Button */
104
+
105
+ .wp-core-ui .button-red {
106
+ background-color: #9B2124;
107
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#C5292E), to(#9B2124));
108
+ background-image: -webkit-linear-gradient(top, #C5292E, #9B2124);
109
+ background-image: -moz-linear-gradient(top, #C5292E, #9B2124);
110
+ background-image: -ms-linear-gradient(top, #C5292E, #9B2124);
111
+ background-image: -o-linear-gradient(top, #C5292E, #9B2124);
112
+ background-image: linear-gradient(to bottom, #C5292E, #9B2124);
113
+ border-color: #9B2124;
114
+ border-bottom-color: #8D1F21;
115
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
116
+ box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
117
+ color: #fff;
118
+ text-decoration: none;
119
+ text-shadow: 0 1px 0 rgba(0,0,0,0.1);
120
+ /*float: right;*/
121
+ }
122
+
123
+ .wp-core-ui .button-red.hover,
124
+ .wp-core-ui .button-red:hover,
125
+ .wp-core-ui .button-red.focus,
126
+ .wp-core-ui .button-red:focus {
127
+ background-color: #B72629;
128
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#D22E30), to(#9B2124));
129
+ background-image: -webkit-linear-gradient(top, #D22E30, #9B2124);
130
+ background-image: -moz-linear-gradient(top, #D22E30, #9B2124);
131
+ background-image: -ms-linear-gradient(top, #D22E30, #9B2124);
132
+ background-image: -o-linear-gradient(top, #D22E30, #9B2124);
133
+ background-image: linear-gradient(to bottom, #D22E30, #9B2124);
134
+ border-color: #7F1C1F;
135
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
136
+ box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
137
+ color: #fff;
138
+ text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
139
+ }
140
+
141
+ .wp-core-ui .button-red.focus,
142
+ .wp-core-ui .button-red:focus {
143
+ border-color: #500F0E;
144
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
145
+ box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
146
+ }
147
+
148
+ .wp-core-ui .button-red.active,
149
+ .wp-core-ui .button-red.active:hover,
150
+ .wp-core-ui .button-red.active:focus,
151
+ .wp-core-ui .button-red:active {
152
+ background: #7F1C1F;
153
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#9B2124), to(#B72629));
154
+ background-image: -webkit-linear-gradient(top, #9B2124, #B72629);
155
+ background-image: -moz-linear-gradient(top, #9B2124, #B72629);
156
+ background-image: -ms-linear-gradient(top, #9B2124, #B72629);
157
+ background-image: -o-linear-gradient(top, #9B2124, #B72629);
158
+ background-image: linear-gradient(to bottom, #9B2124, #B72629);
159
+ border-color: #601312 #AE2426 #AE2426 #AE2426;
160
+ color: rgba(255,255,255,0.95);
161
+ -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
162
+ box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
163
+ text-shadow: 0 1px 0 rgba(0,0,0,0.1);
164
+ }
165
+
166
+ .wp-core-ui .button-red[disabled],
167
+ .wp-core-ui .button-red:disabled,
168
+ .wp-core-ui .button-red-disabled {
169
+ color: #E79496 !important;
170
+ background: #BA292B !important;
171
+ border-color: #7F1C1F !important;
172
+ -webkit-box-shadow: none !important;
173
+ box-shadow: none !important;
174
+ text-shadow: 0 -1px 0 rgba(0,0,0,0.1) !important;
175
+ cursor: default;
176
+ }
177
+
178
+ #system-info-textarea {
179
+ width: 800px;
180
+ height: 400px;
181
+ font-family: Menlo, Monaco, monospace;
182
+ background: none;
183
+ white-space: pre;
184
+ overflow: auto;
185
+ display: block;
186
+ }
187
+
188
+
189
+ /* Number Roller for Feed Source Limit */
190
+ .wprss-number-roller {
191
+ width: 120px;
192
+ }
193
+
194
+ /* Welcome Screen */
195
+ .about-wrap ul {
196
+ list-style: disc;
197
+ padding-left: 30px;
198
+ }
199
+
200
+ /* Excerpts and Thumbnails */
201
+
202
+ input#thumbnails-height,
203
+ input#thumbnails-width {
204
+ margin-right: 2px;
205
+ }
206
+
207
+ label[for=thumbnails-height],
208
+ label[for=thumbnails-width] {
209
+ margin-left: 8px;
210
+ }
211
+
212
+ .wp-list-table > thead > tr > th#thumbnail[scope="col"] {
213
+ width: 95px;
214
+ }
215
+
216
+ select + label.description {
217
+ margin-left: 8px;
218
+ }
219
+
220
+ input#title-limit {
221
+ width: 100px;
222
+ }
223
+
224
+ .wprss-form-table th,
225
+ .wprss-form-table tr,
226
+ .wprss-form-table td {
227
+ border: 0 transparent !important;
228
+ }
229
+
230
+ .wprss-indicator-green,
231
+ .wprss-indicator-red,
232
+ .wprss-indicator-grey {
233
+ font-size: 1.6em;
234
+ vertical-align: middle;
235
+ margin-right: 10px;
236
+ line-height: 30px;
237
+ }
238
+ .wprss-indicator-green {
239
+ color: #009922;
240
+ }
241
+ .wprss-indicator-grey {
242
+ color: #888;
243
+ }
244
+ .wprss-indicator-red {
245
+ color: #EB442A;
246
+ }
247
+
248
+
249
+ .wprss-meta-slider {
250
+ display: none;
251
+ margin-top: 5px;
252
+ }
253
+
254
+ .wprss-slider-button {
255
+ cursor: pointer;
256
+ margin-right: 8px !important;
257
+ }
258
+
259
+ #wprss_activate_feed,
260
+ #wprss_pause_feed {
261
+ display: block;
262
+ }
263
+
264
+ .wprss-date-error {
265
+ background: rgba( 245, 45, 45, 0.6 );
266
+ }
267
+
268
+ div.wprss-meta-side-setting {
269
+ display: block;
270
+ padding: 8px;
271
+ border-bottom: 1px solid rgba(0,0,0,0.1);
272
+ }
273
+
274
+ div.wprss-meta-side-setting > p {
275
+ margin: 2px 0;
276
+ }
277
+ div.wprss-meta-side-setting > p > label {
278
+ vertical-align: baseline;
279
+ }
280
+ div.wprss-meta-side-setting a.wprss-slider-button {
281
+ vertical-align: middle;
282
+ }
283
+
284
+ div.inside .wprss-meta-side-setting:last-child {
285
+ border-bottom: 0 solid transparent;
286
+ }
287
+
288
+
289
+ .column-title { text-align: left; width:20% !important; overflow:hidden }
290
+ .column-url { text-align: left; width:40% !important; overflow:hidden }
291
+ .column-category { text-align: left; width:15% !important; overflow:hidden }
292
+ .column-id { text-align: left; width:5% !important; overflow:hidden }
293
+ .column-next-update { text-align: left; width:10% !important; overflow:hidden }
294
+ .column-state { text-align: left; width:10% !important; overflow:hidden }
css/admin-tracking-styles.css ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #wprss_tracking_notice {
2
+ position: fixed;
3
+ display: inline-block;
4
+
5
+ top: 45px;
6
+ left: 50%;
7
+
8
+ width: 300px;
9
+ height: auto;
10
+ padding: 40px 10px 10px;
11
+ margin-left: -150px;
12
+
13
+ background: white;
14
+ border: 1px solid #ccc;
15
+ border-radius: 3px;
16
+ box-shadow: 0px 0px 6px rgba(0,0,0,0.2);
17
+ z-index: 20000;
18
+
19
+ box-sizing: border-box;
20
+ -moz-box-sizing: border-box;
21
+ -o-box-sizing: border-box;
22
+ }
23
+
24
+ #wprss_tracking_notice > p {
25
+ margin: 0;
26
+ }
27
+ #wprss_tracking_notice > p:first-child {
28
+ position: absolute;
29
+ top: 0;
30
+ left: 0;
31
+ right: 0;
32
+ padding: 6px 10px;
33
+ font-weight: bold;
34
+ background: #008BC2;
35
+ color: white;
36
+ }
37
+
38
+ #wprss_tracking_notice > p:nth-child(2) {
39
+ padding-bottom: 5px;
40
+ margin-bottom: 12px;
41
+ border-bottom: 1px solid #ccc;
42
+ }
css/colorbox.css CHANGED
@@ -6,46 +6,88 @@
6
  #cboxOverlay{position:fixed; width:100%; height:100%;}
7
  #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
8
  #cboxContent{position:relative;}
9
- #cboxLoadedContent{overflow:auto;}
10
  #cboxTitle{margin:0;}
11
  #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
12
  #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
13
- .cboxPhoto{float:left; margin:auto; border:0; display:block;}
14
  .cboxIframe{width:100%; height:100%; display:block; border:0;}
 
15
 
16
  /*
17
  User Style:
18
  Change the following styles to modify the appearance of ColorBox. They are
19
  ordered & tabbed in a way that represents the nesting of the generated HTML.
20
  */
21
- #cboxOverlay{background:#000;}
22
- #colorbox{}
23
- #cboxTopLeft{width:14px; height:14px; background:url(images/controls.png) no-repeat 0 0;}
24
- #cboxTopCenter{height:14px; background:url(images/border.png) repeat-x top left;}
25
- #cboxTopRight{width:14px; height:14px; background:url(images/controls.png) no-repeat -36px 0;}
26
- #cboxBottomLeft{width:14px; height:43px; background:url(images/controls.png) no-repeat 0 -32px;}
27
- #cboxBottomCenter{height:43px; background:url(images/border.png) repeat-x bottom left;}
28
- #cboxBottomRight{width:14px; height:43px; background:url(images/controls.png) no-repeat -36px -32px;}
29
- #cboxMiddleLeft{width:14px; background:url(images/controls.png) repeat-y -175px 0;}
30
- #cboxMiddleRight{width:14px; background:url(images/controls.png) repeat-y -211px 0;}
31
- #cboxContent{background:#fff; overflow:visible;}
32
  .cboxIframe{background:#fff;}
33
  #cboxError{padding:50px; border:1px solid #ccc;}
34
- #cboxLoadedContent{margin-bottom:5px;}
35
- #cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
36
- #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
37
- #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
38
- #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
39
-
40
- #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
41
- #cboxPrevious{left:0px; background-position: -51px -25px;}
42
- #cboxPrevious:hover{background-position:-51px 0px;}
43
- #cboxNext{left:27px; background-position:-75px -25px;}
44
- #cboxNext:hover{background-position:-75px 0px;}
45
- #cboxClose{right:0; background-position:-100px -25px;}
46
- #cboxClose:hover{background-position:-100px 0px;}
47
 
48
- .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
49
- .cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
50
- .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
51
- .cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  #cboxOverlay{position:fixed; width:100%; height:100%;}
7
  #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
8
  #cboxContent{position:relative;}
9
+ #cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
10
  #cboxTitle{margin:0;}
11
  #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
12
  #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
13
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
14
  .cboxIframe{width:100%; height:100%; display:block; border:0;}
15
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
16
 
17
  /*
18
  User Style:
19
  Change the following styles to modify the appearance of ColorBox. They are
20
  ordered & tabbed in a way that represents the nesting of the generated HTML.
21
  */
22
+ #cboxOverlay{background:url(../images/colorbox/overlay.png) repeat 0 0;}
23
+ #colorbox{outline:0;}
24
+ #cboxTopLeft{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -101px 0;}
25
+ #cboxTopRight{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -130px 0;}
26
+ #cboxBottomLeft{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -101px -29px;}
27
+ #cboxBottomRight{width:21px; height:21px; background:url(../images/colorbox/controls.png) no-repeat -130px -29px;}
28
+ #cboxMiddleLeft{width:21px; background:url(../images/colorbox/controls.png) left top repeat-y;}
29
+ #cboxMiddleRight{width:21px; background:url(../images/colorbox/controls.png) right top repeat-y;}
30
+ #cboxTopCenter{height:21px; background:url(../images/colorbox/border.png) 0 0 repeat-x;}
31
+ #cboxBottomCenter{height:21px; background:url(../images/colorbox/border.png) 0 -29px repeat-x;}
32
+ #cboxContent{background:#fff; overflow:hidden;}
33
  .cboxIframe{background:#fff;}
34
  #cboxError{padding:50px; border:1px solid #ccc;}
35
+ #cboxLoadedContent{margin-bottom:28px;}
36
+ #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
37
+ #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
38
+ #cboxLoadingOverlay{background:url(../images/colorbox/loading_background.png) no-repeat center center;}
39
+ #cboxLoadingGraphic{background:url(../images/colorbox/loading.gif) no-repeat center center;}
40
+
41
+ /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
42
+ #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
 
 
 
 
 
43
 
44
+ /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
45
+ #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
46
+
47
+ #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
48
+ #cboxPrevious{position:absolute; bottom:0; left:0; background:url(../images/colorbox/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
49
+ #cboxPrevious:hover{background-position:-75px -25px;}
50
+ #cboxNext{position:absolute; bottom:0; left:27px; background:url(../images/colorbox/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
51
+ #cboxNext:hover{background-position:-50px -25px;}
52
+ #cboxClose{position:absolute; bottom:0; right:0; background:url(../images/colorbox/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
53
+ #cboxClose:hover{background-position:-25px -25px;}
54
+
55
+ /*
56
+ The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
57
+ when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
58
+ See: http://jacklmoore.com/notes/ie-transparency-problems/
59
+ */
60
+ .cboxIE #cboxTopLeft,
61
+ .cboxIE #cboxTopCenter,
62
+ .cboxIE #cboxTopRight,
63
+ .cboxIE #cboxBottomLeft,
64
+ .cboxIE #cboxBottomCenter,
65
+ .cboxIE #cboxBottomRight,
66
+ .cboxIE #cboxMiddleLeft,
67
+ .cboxIE #cboxMiddleRight {
68
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
69
+ }
70
+
71
+ /*
72
+ The following provides PNG transparency support for IE6
73
+ Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
74
+ */
75
+ .cboxIE6 #cboxTopLeft{background:url(../images/colorbox/ie6/borderTopLeft.png);}
76
+ .cboxIE6 #cboxTopCenter{background:url(../images/colorbox/ie6/borderTopCenter.png);}
77
+ .cboxIE6 #cboxTopRight{background:url(../images/colorbox/ie6/borderTopRight.png);}
78
+ .cboxIE6 #cboxBottomLeft{background:url(../images/colorbox/ie6/borderBottomLeft.png);}
79
+ .cboxIE6 #cboxBottomCenter{background:url(../images/colorbox/ie6/borderBottomCenter.png);}
80
+ .cboxIE6 #cboxBottomRight{background:url(../images/colorbox/ie6/borderBottomRight.png);}
81
+ .cboxIE6 #cboxMiddleLeft{background:url(../images/colorbox/ie6/borderMiddleLeft.png);}
82
+ .cboxIE6 #cboxMiddleRight{background:url(../images/colorbox/ie6/borderMiddleRight.png);}
83
+
84
+ .cboxIE6 #cboxTopLeft,
85
+ .cboxIE6 #cboxTopCenter,
86
+ .cboxIE6 #cboxTopRight,
87
+ .cboxIE6 #cboxBottomLeft,
88
+ .cboxIE6 #cboxBottomCenter,
89
+ .cboxIE6 #cboxBottomRight,
90
+ .cboxIE6 #cboxMiddleLeft,
91
+ .cboxIE6 #cboxMiddleRight {
92
+ _behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
93
+ }
css/font-awesome.min.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*!
2
+ * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome
3
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
+ */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.0.3');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.3333333333333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.2857142857142858em;text-align:center}.fa-ul{padding-left:0;margin-left:2.142857142857143em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;top:.14285714285714285em;text-align:center}.fa-li.fa-lg{left:-1.8571428571428572em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-asc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-desc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-reply-all:before{content:"\f122"}.fa-mail-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}
css/styles.css CHANGED
@@ -1,28 +1,18 @@
1
- .wprss-input {
2
- background: none repeat scroll 0 0 #EAF2FA;
3
- margin-bottom: 20px;
4
- padding-bottom: 10px;
5
- padding-left: 10px;
6
- padding-top: 10px;
7
- width: 600px;
8
- }
9
-
10
- .wprss-input p { line-height: 28px; }
11
-
12
- .wprss-input label {
13
- float: left;
14
- width: 95px !important;
15
- }
16
-
17
- .wprss-input input {
18
- height: 28px;
19
- margin-bottom: 0;
20
- padding: 0 0 0 5px;
21
- width: 400px;
22
- }
23
-
24
- #icon-wprss-aggregator {
25
- background: transparent url( '../img/icon-adminpage32.png' ) no-repeat !important;
26
- }
27
-
28
- /*.rss-aggregator_page_wprss-aggregator-settings .form-table th { width: 80px; }*/
1
+ li.feed-item { margin-bottom: 10px; }
2
+
3
+ .thumbnail-excerpt {
4
+ overflow:hidden;
5
+ margin-bottom: 5px;
6
+ }
7
+
8
+ .thumbnail-excerpt img {
9
+ max-width:100%; float:left; margin-top: 0.5em; margin-right:10px;
10
+ }
11
+
12
+ div.source-date { clear: both; }
13
+
14
+ span.feed-source { font-size: 90%; }
15
+
16
+ .green {
17
+ color: #0BD600;
18
+ }
 
 
 
 
 
 
 
 
 
 
fonts/FontAwesome.otf ADDED
Binary file
fonts/fontawesome-webfont.eot ADDED
Binary file
fonts/fontawesome-webfont.svg ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata></metadata>
5
+ <defs>
6
+ <font id="fontawesomeregular" horiz-adv-x="1536" >
7
+ <font-face units-per-em="1792" ascent="1536" descent="-256" />
8
+ <missing-glyph horiz-adv-x="448" />
9
+ <glyph unicode=" " horiz-adv-x="448" />
10
+ <glyph unicode="&#x09;" horiz-adv-x="448" />
11
+ <glyph unicode="&#xa0;" horiz-adv-x="448" />
12
+ <glyph unicode="&#xa8;" horiz-adv-x="1792" />
13
+ <glyph unicode="&#xa9;" horiz-adv-x="1792" />
14
+ <glyph unicode="&#xae;" horiz-adv-x="1792" />
15
+ <glyph unicode="&#xb4;" horiz-adv-x="1792" />
16
+ <glyph unicode="&#xc6;" horiz-adv-x="1792" />
17
+ <glyph unicode="&#x2000;" horiz-adv-x="768" />
18
+ <glyph unicode="&#x2001;" />
19
+ <glyph unicode="&#x2002;" horiz-adv-x="768" />
20
+ <glyph unicode="&#x2003;" />
21
+ <glyph unicode="&#x2004;" horiz-adv-x="512" />
22
+ <glyph unicode="&#x2005;" horiz-adv-x="384" />
23
+ <glyph unicode="&#x2006;" horiz-adv-x="256" />
24
+ <glyph unicode="&#x2007;" horiz-adv-x="256" />
25
+ <glyph unicode="&#x2008;" horiz-adv-x="192" />
26
+ <glyph unicode="&#x2009;" horiz-adv-x="307" />
27
+ <glyph unicode="&#x200a;" horiz-adv-x="85" />
28
+ <glyph unicode="&#x202f;" horiz-adv-x="307" />
29
+ <glyph unicode="&#x205f;" horiz-adv-x="384" />
30
+ <glyph unicode="&#x2122;" horiz-adv-x="1792" />
31
+ <glyph unicode="&#x221e;" horiz-adv-x="1792" />
32
+ <glyph unicode="&#x2260;" horiz-adv-x="1792" />
33
+ <glyph unicode="&#xe000;" horiz-adv-x="500" d="M0 0z" />
34
+ <glyph unicode="&#xf000;" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />
35
+ <glyph unicode="&#xf001;" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />
36
+ <glyph unicode="&#xf002;" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
37
+ <glyph unicode="&#xf003;" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
38
+ <glyph unicode="&#xf004;" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" />
39
+ <glyph unicode="&#xf005;" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" />
40
+ <glyph unicode="&#xf006;" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />
41
+ <glyph unicode="&#xf007;" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
42
+ <glyph unicode="&#xf008;" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
43
+ <glyph unicode="&#xf009;" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
44
+ <glyph unicode="&#xf00a;" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />
45
+ <glyph unicode="&#xf00b;" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />
46
+ <glyph unicode="&#xf00c;" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />
47
+ <glyph unicode="&#xf00d;" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />
48
+ <glyph unicode="&#xf00e;" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
49
+ <glyph unicode="&#xf010;" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " />
50
+ <glyph unicode="&#xf011;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />
51
+ <glyph unicode="&#xf012;" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />
52
+ <glyph unicode="&#xf013;" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />
53
+ <glyph unicode="&#xf014;" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
54
+ <glyph unicode="&#xf015;" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />
55
+ <glyph unicode="&#xf016;" horiz-adv-x="1280" d="M128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280zM768 896h376q-10 29 -22 41l-313 313q-12 12 -41 22v-376zM1280 864v-896q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h640q40 0 88 -20t76 -48l312 -312q28 -28 48 -76t20 -88z " />
56
+ <glyph unicode="&#xf017;" d="M896 992v-448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
57
+ <glyph unicode="&#xf018;" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />
58
+ <glyph unicode="&#xf019;" horiz-adv-x="1664" d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136 q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" />
59
+ <glyph unicode="&#xf01a;" d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273 t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
60
+ <glyph unicode="&#xf01b;" d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198 t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
61
+ <glyph unicode="&#xf01c;" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" />
62
+ <glyph unicode="&#xf01d;" d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
63
+ <glyph unicode="&#xf01e;" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q14 0 25 -9 l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />
64
+ <glyph unicode="&#xf021;" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />
65
+ <glyph unicode="&#xf022;" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" />
66
+ <glyph unicode="&#xf023;" horiz-adv-x="1152" d="M320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />
67
+ <glyph unicode="&#xf024;" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />
68
+ <glyph unicode="&#xf025;" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />
69
+ <glyph unicode="&#xf026;" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />
70
+ <glyph unicode="&#xf027;" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />
71
+ <glyph unicode="&#xf028;" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />
72
+ <glyph unicode="&#xf029;" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />
73
+ <glyph unicode="&#xf02a;" horiz-adv-x="1792" d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" />
74
+ <glyph unicode="&#xf02b;" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" />
75
+ <glyph unicode="&#xf02c;" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />
76
+ <glyph unicode="&#xf02d;" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />
77
+ <glyph unicode="&#xf02e;" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
78
+ <glyph unicode="&#xf02f;" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />
79
+ <glyph unicode="&#xf030;" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
80
+ <glyph unicode="&#xf031;" horiz-adv-x="1664" d="M725 977l-170 -450q73 -1 153.5 -2t119 -1.5t52.5 -0.5l29 2q-32 95 -92 241q-53 132 -92 211zM21 -128h-21l2 79q22 7 80 18q89 16 110 31q20 16 48 68l237 616l280 724h75h53l11 -21l205 -480q103 -242 124 -297q39 -102 96 -235q26 -58 65 -164q24 -67 65 -149 q22 -49 35 -57q22 -19 69 -23q47 -6 103 -27q6 -39 6 -57q0 -14 -1 -26q-80 0 -192 8q-93 8 -189 8q-79 0 -135 -2l-200 -11l-58 -2q0 45 4 78l131 28q56 13 68 23q12 12 12 27t-6 32l-47 114l-92 228l-450 2q-29 -65 -104 -274q-23 -64 -23 -84q0 -31 17 -43 q26 -21 103 -32q3 0 13.5 -2t30 -5t40.5 -6q1 -28 1 -58q0 -17 -2 -27q-66 0 -349 20l-48 -8q-81 -14 -167 -14z" />
81
+ <glyph unicode="&#xf032;" horiz-adv-x="1408" d="M555 15q76 -32 140 -32q131 0 216 41t122 113q38 70 38 181q0 114 -41 180q-58 94 -141 126q-80 32 -247 32q-74 0 -101 -10v-144l-1 -173l3 -270q0 -15 12 -44zM541 761q43 -7 109 -7q175 0 264 65t89 224q0 112 -85 187q-84 75 -255 75q-52 0 -130 -13q0 -44 2 -77 q7 -122 6 -279l-1 -98q0 -43 1 -77zM0 -128l2 94q45 9 68 12q77 12 123 31q17 27 21 51q9 66 9 194l-2 497q-5 256 -9 404q-1 87 -11 109q-1 4 -12 12q-18 12 -69 15q-30 2 -114 13l-4 83l260 6l380 13l45 1q5 0 14 0.5t14 0.5q1 0 21.5 -0.5t40.5 -0.5h74q88 0 191 -27 q43 -13 96 -39q57 -29 102 -76q44 -47 65 -104t21 -122q0 -70 -32 -128t-95 -105q-26 -20 -150 -77q177 -41 267 -146q92 -106 92 -236q0 -76 -29 -161q-21 -62 -71 -117q-66 -72 -140 -108q-73 -36 -203 -60q-82 -15 -198 -11l-197 4q-84 2 -298 -11q-33 -3 -272 -11z" />
82
+ <glyph unicode="&#xf033;" horiz-adv-x="1024" d="M0 -126l17 85q4 1 77 20q76 19 116 39q29 37 41 101l27 139l56 268l12 64q8 44 17 84.5t16 67t12.5 46.5t9 30.5t3.5 11.5l29 157l16 63l22 135l8 50v38q-41 22 -144 28q-28 2 -38 4l19 103l317 -14q39 -2 73 -2q66 0 214 9q33 2 68 4.5t36 2.5q-2 -19 -6 -38 q-7 -29 -13 -51q-55 -19 -109 -31q-64 -16 -101 -31q-12 -31 -24 -88q-9 -44 -13 -82q-44 -199 -66 -306l-61 -311l-38 -158l-43 -235l-12 -45q-2 -7 1 -27q64 -15 119 -21q36 -5 66 -10q-1 -29 -7 -58q-7 -31 -9 -41q-18 0 -23 -1q-24 -2 -42 -2q-9 0 -28 3q-19 4 -145 17 l-198 2q-41 1 -174 -11q-74 -7 -98 -9z" />
83
+ <glyph unicode="&#xf034;" horiz-adv-x="1792" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l215 -1h293l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -42.5 2t-103.5 -1t-111 -1 q-34 0 -67 -5q-10 -97 -8 -136l1 -152v-332l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-88 0 -233 -14q-48 -4 -70 -4q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q8 192 6 433l-5 428q-1 62 -0.5 118.5t0.5 102.5t-2 57t-6 15q-6 5 -14 6q-38 6 -148 6q-43 0 -100 -13.5t-73 -24.5q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1744 128q33 0 42 -18.5t-11 -44.5 l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80z" />
84
+ <glyph unicode="&#xf035;" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l446 -1h318l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -58.5 2t-138.5 -1t-128 -1 q-94 0 -127 -5q-10 -97 -8 -136l1 -152v52l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-82 0 -233 -13q-45 -5 -70 -5q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q6 137 6 433l-5 44q0 265 -2 278q-2 11 -6 15q-6 5 -14 6q-38 6 -148 6q-50 0 -168.5 -14t-132.5 -24q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1505 113q26 -20 26 -49t-26 -49l-162 -126 q-26 -20 -44.5 -11t-18.5 42v80h-1024v-80q0 -33 -18.5 -42t-44.5 11l-162 126q-26 20 -26 49t26 49l162 126q26 20 44.5 11t18.5 -42v-80h1024v80q0 33 18.5 42t44.5 -11z" />
85
+ <glyph unicode="&#xf036;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
86
+ <glyph unicode="&#xf037;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />
87
+ <glyph unicode="&#xf038;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
88
+ <glyph unicode="&#xf039;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
89
+ <glyph unicode="&#xf03a;" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />
90
+ <glyph unicode="&#xf03b;" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
91
+ <glyph unicode="&#xf03c;" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
92
+ <glyph unicode="&#xf03d;" horiz-adv-x="1792" d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5 q39 -17 39 -59z" />
93
+ <glyph unicode="&#xf03e;" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
94
+ <glyph unicode="&#xf040;" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" />
95
+ <glyph unicode="&#xf041;" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />
96
+ <glyph unicode="&#xf042;" d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
97
+ <glyph unicode="&#xf043;" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />
98
+ <glyph unicode="&#xf044;" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />
99
+ <glyph unicode="&#xf045;" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />
100
+ <glyph unicode="&#xf046;" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" />
101
+ <glyph unicode="&#xf047;" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
102
+ <glyph unicode="&#xf048;" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" />
103
+ <glyph unicode="&#xf049;" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" />
104
+ <glyph unicode="&#xf04a;" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" />
105
+ <glyph unicode="&#xf04b;" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />
106
+ <glyph unicode="&#xf04c;" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />
107
+ <glyph unicode="&#xf04d;" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
108
+ <glyph unicode="&#xf04e;" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
109
+ <glyph unicode="&#xf050;" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
110
+ <glyph unicode="&#xf051;" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" />
111
+ <glyph unicode="&#xf052;" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />
112
+ <glyph unicode="&#xf053;" horiz-adv-x="1152" d="M742 -37l-652 651q-37 37 -37 90.5t37 90.5l652 651q37 37 90.5 37t90.5 -37l75 -75q37 -37 37 -90.5t-37 -90.5l-486 -486l486 -485q37 -38 37 -91t-37 -90l-75 -75q-37 -37 -90.5 -37t-90.5 37z" />
113
+ <glyph unicode="&#xf054;" horiz-adv-x="1152" d="M1099 704q0 -52 -37 -91l-652 -651q-37 -37 -90 -37t-90 37l-76 75q-37 39 -37 91q0 53 37 90l486 486l-486 485q-37 39 -37 91q0 53 37 90l76 75q36 38 90 38t90 -38l652 -651q37 -37 37 -90z" />
114
+ <glyph unicode="&#xf055;" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
115
+ <glyph unicode="&#xf056;" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" />
116
+ <glyph unicode="&#xf057;" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
117
+ <glyph unicode="&#xf058;" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
118
+ <glyph unicode="&#xf059;" d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59 q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
119
+ <glyph unicode="&#xf05a;" d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
120
+ <glyph unicode="&#xf05b;" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />
121
+ <glyph unicode="&#xf05c;" d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23 l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
122
+ <glyph unicode="&#xf05d;" d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198 t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
123
+ <glyph unicode="&#xf05e;" d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61 t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" />
124
+ <glyph unicode="&#xf060;" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" />
125
+ <glyph unicode="&#xf061;" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />
126
+ <glyph unicode="&#xf062;" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" />
127
+ <glyph unicode="&#xf063;" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
128
+ <glyph unicode="&#xf064;" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />
129
+ <glyph unicode="&#xf065;" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />
130
+ <glyph unicode="&#xf066;" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />
131
+ <glyph unicode="&#xf067;" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />
132
+ <glyph unicode="&#xf068;" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />
133
+ <glyph unicode="&#xf069;" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />
134
+ <glyph unicode="&#xf06a;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />
135
+ <glyph unicode="&#xf06b;" d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5 t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" />
136
+ <glyph unicode="&#xf06c;" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />
137
+ <glyph unicode="&#xf06d;" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />
138
+ <glyph unicode="&#xf06e;" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />
139
+ <glyph unicode="&#xf070;" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " />
140
+ <glyph unicode="&#xf071;" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />
141
+ <glyph unicode="&#xf072;" horiz-adv-x="1408" d="M1376 1376q44 -52 12 -148t-108 -172l-161 -161l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-259 -259l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9 q6 0 8 -1l194 -53l259 259l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l160 160q76 76 172 108t148 -12z" />
142
+ <glyph unicode="&#xf073;" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
143
+ <glyph unicode="&#xf074;" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
144
+ <glyph unicode="&#xf075;" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />
145
+ <glyph unicode="&#xf076;" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />
146
+ <glyph unicode="&#xf077;" horiz-adv-x="1664" d="M1611 320q0 -53 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-486 485l-486 -485q-36 -38 -90 -38t-90 38l-75 75q-38 36 -38 90q0 53 38 91l651 651q37 37 90 37q52 0 91 -37l650 -651q38 -38 38 -91z" />
147
+ <glyph unicode="&#xf078;" horiz-adv-x="1664" d="M1611 832q0 -53 -37 -90l-651 -651q-38 -38 -91 -38q-54 0 -90 38l-651 651q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l486 -486l486 486q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
148
+ <glyph unicode="&#xf079;" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " />
149
+ <glyph unicode="&#xf07a;" horiz-adv-x="1664" d="M640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5 l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5 t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
150
+ <glyph unicode="&#xf07b;" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
151
+ <glyph unicode="&#xf07c;" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />
152
+ <glyph unicode="&#xf07d;" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />
153
+ <glyph unicode="&#xf07e;" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
154
+ <glyph unicode="&#xf080;" horiz-adv-x="1920" d="M512 512v-384h-256v384h256zM896 1024v-896h-256v896h256zM1280 768v-640h-256v640h256zM1664 1152v-1024h-256v1024h256zM1792 32v1216q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5z M1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
155
+ <glyph unicode="&#xf081;" d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4 q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5 t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
156
+ <glyph unicode="&#xf082;" d="M1307 618l23 219h-198v109q0 49 15.5 68.5t71.5 19.5h110v219h-175q-152 0 -218 -72t-66 -213v-131h-131v-219h131v-635h262v635h175zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960 q119 0 203.5 -84.5t84.5 -203.5z" />
157
+ <glyph unicode="&#xf083;" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />
158
+ <glyph unicode="&#xf084;" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />
159
+ <glyph unicode="&#xf085;" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />
160
+ <glyph unicode="&#xf086;" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />
161
+ <glyph unicode="&#xf087;" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />
162
+ <glyph unicode="&#xf088;" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" />
163
+ <glyph unicode="&#xf089;" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />
164
+ <glyph unicode="&#xf08a;" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" />
165
+ <glyph unicode="&#xf08b;" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />
166
+ <glyph unicode="&#xf08c;" d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5 q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
167
+ <glyph unicode="&#xf08d;" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />
168
+ <glyph unicode="&#xf08e;" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />
169
+ <glyph unicode="&#xf090;" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />
170
+ <glyph unicode="&#xf091;" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />
171
+ <glyph unicode="&#xf092;" d="M394 184q-8 -9 -20 3q-13 11 -4 19q8 9 20 -3q12 -11 4 -19zM352 245q9 -12 0 -19q-8 -6 -17 7t0 18q9 7 17 -6zM291 305q-5 -7 -13 -2q-10 5 -7 12q3 5 13 2q10 -5 7 -12zM322 271q-6 -7 -16 3q-9 11 -2 16q6 6 16 -3q9 -11 2 -16zM451 159q-4 -12 -19 -6q-17 4 -13 15 t19 7q16 -5 13 -16zM514 154q0 -11 -16 -11q-17 -2 -17 11q0 11 16 11q17 2 17 -11zM572 164q2 -10 -14 -14t-18 8t14 15q16 2 18 -9zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-224q-16 0 -24.5 1t-19.5 5t-16 14.5t-5 27.5v239q0 97 -52 142q57 6 102.5 18t94 39 t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103 q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -103t0.5 -68q0 -22 -11 -33.5t-22 -13t-33 -1.5 h-224q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
172
+ <glyph unicode="&#xf093;" horiz-adv-x="1664" d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92 t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" />
173
+ <glyph unicode="&#xf094;" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" />
174
+ <glyph unicode="&#xf095;" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />
175
+ <glyph unicode="&#xf096;" horiz-adv-x="1408" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" />
176
+ <glyph unicode="&#xf097;" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
177
+ <glyph unicode="&#xf098;" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
178
+ <glyph unicode="&#xf099;" horiz-adv-x="1664" d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" />
179
+ <glyph unicode="&#xf09a;" horiz-adv-x="768" d="M511 980h257l-30 -284h-227v-824h-341v824h-170v284h170v171q0 182 86 275.5t283 93.5h227v-284h-142q-39 0 -62.5 -6.5t-34 -23.5t-13.5 -34.5t-3 -49.5v-142z" />
180
+ <glyph unicode="&#xf09b;" d="M1536 640q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -39.5 7t-12.5 30v211q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5 q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23 q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -89t0.5 -54q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
181
+ <glyph unicode="&#xf09c;" horiz-adv-x="1664" d="M1664 960v-256q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5 t316.5 -131.5t131.5 -316.5z" />
182
+ <glyph unicode="&#xf09d;" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />
183
+ <glyph unicode="&#xf09e;" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" />
184
+ <glyph unicode="&#xf0a0;" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />
185
+ <glyph unicode="&#xf0a1;" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />
186
+ <glyph unicode="&#xf0a2;" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM183 128h1298q-164 181 -246.5 411.5t-82.5 484.5q0 256 -320 256t-320 -256q0 -254 -82.5 -484.5t-246.5 -411.5zM1664 128q0 -52 -38 -90t-90 -38 h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />
187
+ <glyph unicode="&#xf0a3;" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />
188
+ <glyph unicode="&#xf0a4;" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />
189
+ <glyph unicode="&#xf0a5;" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />
190
+ <glyph unicode="&#xf0a6;" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />
191
+ <glyph unicode="&#xf0a7;" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33 t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580 q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100 q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />
192
+ <glyph unicode="&#xf0a8;" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
193
+ <glyph unicode="&#xf0a9;" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
194
+ <glyph unicode="&#xf0aa;" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
195
+ <glyph unicode="&#xf0ab;" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
196
+ <glyph unicode="&#xf0ac;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1042 887q-2 -1 -9.5 -9.5t-13.5 -9.5q2 0 4.5 5t5 11t3.5 7q6 7 22 15q14 6 52 12q34 8 51 -11 q-2 2 9.5 13t14.5 12q3 2 15 4.5t15 7.5l2 22q-12 -1 -17.5 7t-6.5 21q0 -2 -6 -8q0 7 -4.5 8t-11.5 -1t-9 -1q-10 3 -15 7.5t-8 16.5t-4 15q-2 5 -9.5 10.5t-9.5 10.5q-1 2 -2.5 5.5t-3 6.5t-4 5.5t-5.5 2.5t-7 -5t-7.5 -10t-4.5 -5q-3 2 -6 1.5t-4.5 -1t-4.5 -3t-5 -3.5 q-3 -2 -8.5 -3t-8.5 -2q15 5 -1 11q-10 4 -16 3q9 4 7.5 12t-8.5 14h5q-1 4 -8.5 8.5t-17.5 8.5t-13 6q-8 5 -34 9.5t-33 0.5q-5 -6 -4.5 -10.5t4 -14t3.5 -12.5q1 -6 -5.5 -13t-6.5 -12q0 -7 14 -15.5t10 -21.5q-3 -8 -16 -16t-16 -12q-5 -8 -1.5 -18.5t10.5 -16.5 q2 -2 1.5 -4t-3.5 -4.5t-5.5 -4t-6.5 -3.5l-3 -2q-11 -5 -20.5 6t-13.5 26q-7 25 -16 30q-23 8 -29 -1q-5 13 -41 26q-25 9 -58 4q6 1 0 15q-7 15 -19 12q3 6 4 17.5t1 13.5q3 13 12 23q1 1 7 8.5t9.5 13.5t0.5 6q35 -4 50 11q5 5 11.5 17t10.5 17q9 6 14 5.5t14.5 -5.5 t14.5 -5q14 -1 15.5 11t-7.5 20q12 -1 3 17q-5 7 -8 9q-12 4 -27 -5q-8 -4 2 -8q-1 1 -9.5 -10.5t-16.5 -17.5t-16 5q-1 1 -5.5 13.5t-9.5 13.5q-8 0 -16 -15q3 8 -11 15t-24 8q19 12 -8 27q-7 4 -20.5 5t-19.5 -4q-5 -7 -5.5 -11.5t5 -8t10.5 -5.5t11.5 -4t8.5 -3 q14 -10 8 -14q-2 -1 -8.5 -3.5t-11.5 -4.5t-6 -4q-3 -4 0 -14t-2 -14q-5 5 -9 17.5t-7 16.5q7 -9 -25 -6l-10 1q-4 0 -16 -2t-20.5 -1t-13.5 8q-4 8 0 20q1 4 4 2q-4 3 -11 9.5t-10 8.5q-46 -15 -94 -41q6 -1 12 1q5 2 13 6.5t10 5.5q34 14 42 7l5 5q14 -16 20 -25 q-7 4 -30 1q-20 -6 -22 -12q7 -12 5 -18q-4 3 -11.5 10t-14.5 11t-15 5q-16 0 -22 -1q-146 -80 -235 -222q7 -7 12 -8q4 -1 5 -9t2.5 -11t11.5 3q9 -8 3 -19q1 1 44 -27q19 -17 21 -21q3 -11 -10 -18q-1 2 -9 9t-9 4q-3 -5 0.5 -18.5t10.5 -12.5q-7 0 -9.5 -16t-2.5 -35.5 t-1 -23.5l2 -1q-3 -12 5.5 -34.5t21.5 -19.5q-13 -3 20 -43q6 -8 8 -9q3 -2 12 -7.5t15 -10t10 -10.5q4 -5 10 -22.5t14 -23.5q-2 -6 9.5 -20t10.5 -23q-1 0 -2.5 -1t-2.5 -1q3 -7 15.5 -14t15.5 -13q1 -3 2 -10t3 -11t8 -2q2 20 -24 62q-15 25 -17 29q-3 5 -5.5 15.5 t-4.5 14.5q2 0 6 -1.5t8.5 -3.5t7.5 -4t2 -3q-3 -7 2 -17.5t12 -18.5t17 -19t12 -13q6 -6 14 -19.5t0 -13.5q9 0 20 -10t17 -20q5 -8 8 -26t5 -24q2 -7 8.5 -13.5t12.5 -9.5l16 -8t13 -7q5 -2 18.5 -10.5t21.5 -11.5q10 -4 16 -4t14.5 2.5t13.5 3.5q15 2 29 -15t21 -21 q36 -19 55 -11q-2 -1 0.5 -7.5t8 -15.5t9 -14.5t5.5 -8.5q5 -6 18 -15t18 -15q6 4 7 9q-3 -8 7 -20t18 -10q14 3 14 32q-31 -15 -49 18q0 1 -2.5 5.5t-4 8.5t-2.5 8.5t0 7.5t5 3q9 0 10 3.5t-2 12.5t-4 13q-1 8 -11 20t-12 15q-5 -9 -16 -8t-16 9q0 -1 -1.5 -5.5t-1.5 -6.5 q-13 0 -15 1q1 3 2.5 17.5t3.5 22.5q1 4 5.5 12t7.5 14.5t4 12.5t-4.5 9.5t-17.5 2.5q-19 -1 -26 -20q-1 -3 -3 -10.5t-5 -11.5t-9 -7q-7 -3 -24 -2t-24 5q-13 8 -22.5 29t-9.5 37q0 10 2.5 26.5t3 25t-5.5 24.5q3 2 9 9.5t10 10.5q2 1 4.5 1.5t4.5 0t4 1.5t3 6q-1 1 -4 3 q-3 3 -4 3q7 -3 28.5 1.5t27.5 -1.5q15 -11 22 2q0 1 -2.5 9.5t-0.5 13.5q5 -27 29 -9q3 -3 15.5 -5t17.5 -5q3 -2 7 -5.5t5.5 -4.5t5 0.5t8.5 6.5q10 -14 12 -24q11 -40 19 -44q7 -3 11 -2t4.5 9.5t0 14t-1.5 12.5l-1 8v18l-1 8q-15 3 -18.5 12t1.5 18.5t15 18.5q1 1 8 3.5 t15.5 6.5t12.5 8q21 19 15 35q7 0 11 9q-1 0 -5 3t-7.5 5t-4.5 2q9 5 2 16q5 3 7.5 11t7.5 10q9 -12 21 -2q7 8 1 16q5 7 20.5 10.5t18.5 9.5q7 -2 8 2t1 12t3 12q4 5 15 9t13 5l17 11q3 4 0 4q18 -2 31 11q10 11 -6 20q3 6 -3 9.5t-15 5.5q3 1 11.5 0.5t10.5 1.5 q15 10 -7 16q-17 5 -43 -12zM879 10q206 36 351 189q-3 3 -12.5 4.5t-12.5 3.5q-18 7 -24 8q1 7 -2.5 13t-8 9t-12.5 8t-11 7q-2 2 -7 6t-7 5.5t-7.5 4.5t-8.5 2t-10 -1l-3 -1q-3 -1 -5.5 -2.5t-5.5 -3t-4 -3t0 -2.5q-21 17 -36 22q-5 1 -11 5.5t-10.5 7t-10 1.5t-11.5 -7 q-5 -5 -6 -15t-2 -13q-7 5 0 17.5t2 18.5q-3 6 -10.5 4.5t-12 -4.5t-11.5 -8.5t-9 -6.5t-8.5 -5.5t-8.5 -7.5q-3 -4 -6 -12t-5 -11q-2 4 -11.5 6.5t-9.5 5.5q2 -10 4 -35t5 -38q7 -31 -12 -48q-27 -25 -29 -40q-4 -22 12 -26q0 -7 -8 -20.5t-7 -21.5q0 -6 2 -16z" />
197
+ <glyph unicode="&#xf0ad;" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />
198
+ <glyph unicode="&#xf0ae;" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
199
+ <glyph unicode="&#xf0b0;" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />
200
+ <glyph unicode="&#xf0b1;" horiz-adv-x="1792" d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />
201
+ <glyph unicode="&#xf0b2;" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " />
202
+ <glyph unicode="&#xf0c0;" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />
203
+ <glyph unicode="&#xf0c1;" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />
204
+ <glyph unicode="&#xf0c2;" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " />
205
+ <glyph unicode="&#xf0c3;" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />
206
+ <glyph unicode="&#xf0c4;" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />
207
+ <glyph unicode="&#xf0c5;" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />
208
+ <glyph unicode="&#xf0c6;" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" />
209
+ <glyph unicode="&#xf0c7;" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />
210
+ <glyph unicode="&#xf0c8;" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
211
+ <glyph unicode="&#xf0c9;" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
212
+ <glyph unicode="&#xf0ca;" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
213
+ <glyph unicode="&#xf0cb;" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
214
+ <glyph unicode="&#xf0cc;" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />
215
+ <glyph unicode="&#xf0cd;" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />
216
+ <glyph unicode="&#xf0ce;" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" />
217
+ <glyph unicode="&#xf0d0;" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />
218
+ <glyph unicode="&#xf0d1;" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />
219
+ <glyph unicode="&#xf0d2;" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
220
+ <glyph unicode="&#xf0d3;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
221
+ <glyph unicode="&#xf0d4;" d="M678 -57q0 -38 -10 -71h-380q-95 0 -171.5 56.5t-103.5 147.5q24 45 69 77.5t100 49.5t107 24t107 7q32 0 49 -2q6 -4 30.5 -21t33 -23t31 -23t32 -25.5t27.5 -25.5t26.5 -29.5t21 -30.5t17.5 -34.5t9.5 -36t4.5 -40.5zM385 294q-234 -7 -385 -85v433q103 -118 273 -118 q32 0 70 5q-21 -61 -21 -86q0 -67 63 -149zM558 805q0 -100 -43.5 -160.5t-140.5 -60.5q-51 0 -97 26t-78 67.5t-56 93.5t-35.5 104t-11.5 99q0 96 51.5 165t144.5 69q66 0 119 -41t84 -104t47 -130t16 -128zM1536 896v-736q0 -119 -84.5 -203.5t-203.5 -84.5h-468 q39 73 39 157q0 66 -22 122.5t-55.5 93t-72 71t-72 59.5t-55.5 54.5t-22 59.5q0 36 23 68t56 61.5t65.5 64.5t55.5 93t23 131t-26.5 145.5t-75.5 118.5q-6 6 -14 11t-12.5 7.5t-10 9.5t-10.5 17h135l135 64h-437q-138 0 -244.5 -38.5t-182.5 -133.5q0 126 81 213t207 87h960 q119 0 203.5 -84.5t84.5 -203.5v-96h-256v256h-128v-256h-256v-128h256v-256h128v256h256z" />
222
+ <glyph unicode="&#xf0d5;" horiz-adv-x="1664" d="M876 71q0 21 -4.5 40.5t-9.5 36t-17.5 34.5t-21 30.5t-26.5 29.5t-27.5 25.5t-32 25.5t-31 23t-33 23t-30.5 21q-17 2 -50 2q-54 0 -106 -7t-108 -25t-98 -46t-69 -75t-27 -107q0 -68 35.5 -121.5t93 -84t120.5 -45.5t127 -15q59 0 112.5 12.5t100.5 39t74.5 73.5 t27.5 110zM756 933q0 60 -16.5 127.5t-47 130.5t-84 104t-119.5 41q-93 0 -144 -69t-51 -165q0 -47 11.5 -99t35.5 -104t56 -93.5t78 -67.5t97 -26q97 0 140.5 60.5t43.5 160.5zM625 1408h437l-135 -79h-135q71 -45 110 -126t39 -169q0 -74 -23 -131.5t-56 -92.5t-66 -64.5 t-56 -61t-23 -67.5q0 -26 16.5 -51t43 -48t58.5 -48t64 -55.5t58.5 -66t43 -85t16.5 -106.5q0 -160 -140 -282q-152 -131 -420 -131q-59 0 -119.5 10t-122 33.5t-108.5 58t-77 89t-30 121.5q0 61 37 135q32 64 96 110.5t145 71t155 36t150 13.5q-64 83 -64 149q0 12 2 23.5 t5 19.5t8 21.5t7 21.5q-40 -5 -70 -5q-149 0 -255.5 98t-106.5 246q0 140 95 250.5t234 141.5q94 20 187 20zM1664 1152v-128h-256v-256h-128v256h-256v128h256v256h128v-256h256z" />
223
+ <glyph unicode="&#xf0d6;" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />
224
+ <glyph unicode="&#xf0d7;" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
225
+ <glyph unicode="&#xf0d8;" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
226
+ <glyph unicode="&#xf0d9;" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />
227
+ <glyph unicode="&#xf0da;" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />
228
+ <glyph unicode="&#xf0db;" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />
229
+ <glyph unicode="&#xf0dc;" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
230
+ <glyph unicode="&#xf0dd;" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
231
+ <glyph unicode="&#xf0de;" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
232
+ <glyph unicode="&#xf0e0;" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />
233
+ <glyph unicode="&#xf0e1;" d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329 q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" />
234
+ <glyph unicode="&#xf0e2;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />
235
+ <glyph unicode="&#xf0e3;" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />
236
+ <glyph unicode="&#xf0e4;" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
237
+ <glyph unicode="&#xf0e5;" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
238
+ <glyph unicode="&#xf0e6;" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />
239
+ <glyph unicode="&#xf0e7;" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />
240
+ <glyph unicode="&#xf0e8;" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" />
241
+ <glyph unicode="&#xf0e9;" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />
242
+ <glyph unicode="&#xf0ea;" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />
243
+ <glyph unicode="&#xf0eb;" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />
244
+ <glyph unicode="&#xf0ec;" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
245
+ <glyph unicode="&#xf0ed;" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
246
+ <glyph unicode="&#xf0ee;" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
247
+ <glyph unicode="&#xf0f0;" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" />
248
+ <glyph unicode="&#xf0f1;" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />
249
+ <glyph unicode="&#xf0f2;" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" />
250
+ <glyph unicode="&#xf0f3;" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1664 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5 q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />
251
+ <glyph unicode="&#xf0f4;" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />
252
+ <glyph unicode="&#xf0f5;" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />
253
+ <glyph unicode="&#xf0f6;" horiz-adv-x="1280" d="M1024 352v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM1024 608v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280z M768 896h376q-10 29 -22 41l-313 313q-12 12 -41 22v-376zM1280 864v-896q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h640q40 0 88 -20t76 -48l312 -312q28 -28 48 -76t20 -88z" />
254
+ <glyph unicode="&#xf0f7;" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />
255
+ <glyph unicode="&#xf0f8;" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />
256
+ <glyph unicode="&#xf0f9;" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
257
+ <glyph unicode="&#xf0fa;" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />
258
+ <glyph unicode="&#xf0fb;" horiz-adv-x="1920" d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96 q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q261 -58 287 -93z" />
259
+ <glyph unicode="&#xf0fc;" horiz-adv-x="1664" d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />
260
+ <glyph unicode="&#xf0fd;" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
261
+ <glyph unicode="&#xf0fe;" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
262
+ <glyph unicode="&#xf100;" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />
263
+ <glyph unicode="&#xf101;" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
264
+ <glyph unicode="&#xf102;" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
265
+ <glyph unicode="&#xf103;" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
266
+ <glyph unicode="&#xf104;" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
267
+ <glyph unicode="&#xf105;" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
268
+ <glyph unicode="&#xf106;" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
269
+ <glyph unicode="&#xf107;" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
270
+ <glyph unicode="&#xf108;" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
271
+ <glyph unicode="&#xf109;" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />
272
+ <glyph unicode="&#xf10a;" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />
273
+ <glyph unicode="&#xf10b;" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
274
+ <glyph unicode="&#xf10c;" d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103 t279.5 -279.5t103 -385.5z" />
275
+ <glyph unicode="&#xf10d;" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />
276
+ <glyph unicode="&#xf10e;" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />
277
+ <glyph unicode="&#xf110;" horiz-adv-x="1568" d="M496 192q0 -60 -42.5 -102t-101.5 -42q-60 0 -102 42t-42 102t42 102t102 42q59 0 101.5 -42t42.5 -102zM928 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -66 -47 -113t-113 -47t-113 47t-47 113 t47 113t113 47t113 -47t47 -113zM1360 192q0 -46 -33 -79t-79 -33t-79 33t-33 79t33 79t79 33t79 -33t33 -79zM528 1088q0 -73 -51.5 -124.5t-124.5 -51.5t-124.5 51.5t-51.5 124.5t51.5 124.5t124.5 51.5t124.5 -51.5t51.5 -124.5zM992 1280q0 -80 -56 -136t-136 -56 t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1536 640q0 -40 -28 -68t-68 -28t-68 28t-28 68t28 68t68 28t68 -28t28 -68zM1328 1088q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5z" />
278
+ <glyph unicode="&#xf111;" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
279
+ <glyph unicode="&#xf112;" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />
280
+ <glyph unicode="&#xf113;" horiz-adv-x="1664" d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320 q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86 t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218 q0 -87 -27 -168q136 -160 136 -398z" />
281
+ <glyph unicode="&#xf114;" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
282
+ <glyph unicode="&#xf115;" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " />
283
+ <glyph unicode="&#xf116;" horiz-adv-x="1792" />
284
+ <glyph unicode="&#xf117;" horiz-adv-x="1792" />
285
+ <glyph unicode="&#xf118;" d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5 t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
286
+ <glyph unicode="&#xf119;" d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204 t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
287
+ <glyph unicode="&#xf11a;" d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
288
+ <glyph unicode="&#xf11b;" horiz-adv-x="1920" d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150 t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" />
289
+ <glyph unicode="&#xf11c;" horiz-adv-x="1920" d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16 h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16 h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96 q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896 h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" />
290
+ <glyph unicode="&#xf11d;" horiz-adv-x="1792" d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9 h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102 q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
291
+ <glyph unicode="&#xf11e;" horiz-adv-x="1792" d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2 q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266 q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8 q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
292
+ <glyph unicode="&#xf120;" horiz-adv-x="1664" d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9 t9 -23z" />
293
+ <glyph unicode="&#xf121;" horiz-adv-x="1920" d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5 l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" />
294
+ <glyph unicode="&#xf122;" horiz-adv-x="1792" d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1 q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" />
295
+ <glyph unicode="&#xf123;" horiz-adv-x="1664" d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5 l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" />
296
+ <glyph unicode="&#xf124;" horiz-adv-x="1408" d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" />
297
+ <glyph unicode="&#xf125;" horiz-adv-x="1664" d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23 v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" />
298
+ <glyph unicode="&#xf126;" horiz-adv-x="1024" d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5 q-2 -287 -226 -414q-68 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497 q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" />
299
+ <glyph unicode="&#xf127;" horiz-adv-x="1664" d="M439 265l-256 -256q-10 -9 -23 -9q-12 0 -23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320 q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18 l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9 t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
300
+ <glyph unicode="&#xf128;" horiz-adv-x="1024" d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5 t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" />
301
+ <glyph unicode="&#xf129;" horiz-adv-x="640" d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192 q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" />
302
+ <glyph unicode="&#xf12a;" horiz-adv-x="640" d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" />
303
+ <glyph unicode="&#xf12b;" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1534 846v-206h-514l-3 27 q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5t-65.5 -51.5t-30.5 -63h232v80 h126z" />
304
+ <glyph unicode="&#xf12c;" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1536 -50v-206h-514l-4 27 q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73h232v80h126z" />
305
+ <glyph unicode="&#xf12d;" horiz-adv-x="1920" d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" />
306
+ <glyph unicode="&#xf12e;" horiz-adv-x="1664" d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5 t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89 q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117 q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" />
307
+ <glyph unicode="&#xf130;" horiz-adv-x="1152" d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5 t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" />
308
+ <glyph unicode="&#xf131;" horiz-adv-x="1408" d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128 q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23 t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" />
309
+ <glyph unicode="&#xf132;" horiz-adv-x="1280" d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150 t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
310
+ <glyph unicode="&#xf133;" horiz-adv-x="1664" d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
311
+ <glyph unicode="&#xf134;" horiz-adv-x="1408" d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800 q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113 q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" />
312
+ <glyph unicode="&#xf135;" horiz-adv-x="1664" d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1 q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" />
313
+ <glyph unicode="&#xf136;" horiz-adv-x="1792" d="M1745 763l-164 -763h-334l178 832q13 56 -15 88q-27 33 -83 33h-169l-204 -953h-334l204 953h-286l-204 -953h-334l204 953l-153 327h1276q101 0 189.5 -40.5t147.5 -113.5q60 -73 81 -168.5t0 -194.5z" />
314
+ <glyph unicode="&#xf137;" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
315
+ <glyph unicode="&#xf138;" d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
316
+ <glyph unicode="&#xf139;" d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
317
+ <glyph unicode="&#xf13a;" d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
318
+ <glyph unicode="&#xf13b;" horiz-adv-x="1408" d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" />
319
+ <glyph unicode="&#xf13c;" horiz-adv-x="1792" d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />
320
+ <glyph unicode="&#xf13d;" horiz-adv-x="1792" d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1792 352v-352q0 -22 -20 -30q-8 -2 -12 -2q-13 0 -23 9l-93 93q-119 -143 -318.5 -226.5t-429.5 -83.5t-429.5 83.5t-318.5 226.5l-93 -93q-9 -9 -23 -9q-4 0 -12 2q-20 8 -20 30v352 q0 14 9 23t23 9h352q22 0 30 -20q8 -19 -7 -35l-100 -100q67 -91 189.5 -153.5t271.5 -82.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19 t19 -45v-128q0 -26 -19 -45t-45 -19h-192v-647q149 20 271.5 82.5t189.5 153.5l-100 100q-15 16 -7 35q8 20 30 20h352q14 0 23 -9t9 -23z" />
321
+ <glyph unicode="&#xf13e;" horiz-adv-x="1152" d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181 v-320h736z" />
322
+ <glyph unicode="&#xf140;" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150 t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
323
+ <glyph unicode="&#xf141;" horiz-adv-x="1408" d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
324
+ <glyph unicode="&#xf142;" horiz-adv-x="384" d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
325
+ <glyph unicode="&#xf143;" d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 232 -177 396t-396 177q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128q13 0 23 10 t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
326
+ <glyph unicode="&#xf144;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56 q16 -8 32 -8q17 0 32 9z" />
327
+ <glyph unicode="&#xf145;" horiz-adv-x="1792" d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136 t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" />
328
+ <glyph unicode="&#xf146;" d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />
329
+ <glyph unicode="&#xf147;" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5 t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
330
+ <glyph unicode="&#xf148;" horiz-adv-x="1024" d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" />
331
+ <glyph unicode="&#xf149;" horiz-adv-x="1024" d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" />
332
+ <glyph unicode="&#xf14a;" d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5 t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
333
+ <glyph unicode="&#xf14b;" d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
334
+ <glyph unicode="&#xf14c;" d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
335
+ <glyph unicode="&#xf14d;" d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q10 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5 t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
336
+ <glyph unicode="&#xf14e;" d="M640 448l256 128l-256 128v-256zM1024 1039v-542l-512 -256v542zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
337
+ <glyph unicode="&#xf150;" d="M1145 861q18 -35 -5 -66l-320 -448q-19 -27 -52 -27t-52 27l-320 448q-23 31 -5 66q17 35 57 35h640q40 0 57 -35zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
338
+ <glyph unicode="&#xf151;" d="M1145 419q-17 -35 -57 -35h-640q-40 0 -57 35q-18 35 5 66l320 448q19 27 52 27t52 -27l320 -448q23 -31 5 -66zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
339
+ <glyph unicode="&#xf152;" d="M1088 640q0 -33 -27 -52l-448 -320q-31 -23 -66 -5q-35 17 -35 57v640q0 40 35 57q35 18 66 -5l448 -320q27 -19 27 -52zM1280 160v960q0 14 -9 23t-23 9h-960q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h960q14 0 23 9t9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
340
+ <glyph unicode="&#xf153;" horiz-adv-x="1024" d="M976 229l35 -159q3 -12 -3 -22.5t-17 -14.5l-5 -1q-4 -2 -10.5 -3.5t-16 -4.5t-21.5 -5.5t-25.5 -5t-30 -5t-33.5 -4.5t-36.5 -3t-38.5 -1q-234 0 -409 130.5t-238 351.5h-95q-13 0 -22.5 9.5t-9.5 22.5v113q0 13 9.5 22.5t22.5 9.5h66q-2 57 1 105h-67q-14 0 -23 9 t-9 23v114q0 14 9 23t23 9h98q67 210 243.5 338t400.5 128q102 0 194 -23q11 -3 20 -15q6 -11 3 -24l-43 -159q-3 -13 -14 -19.5t-24 -2.5l-4 1q-4 1 -11.5 2.5l-17.5 3.5t-22.5 3.5t-26 3t-29 2.5t-29.5 1q-126 0 -226 -64t-150 -176h468q16 0 25 -12q10 -12 7 -26 l-24 -114q-5 -26 -32 -26h-488q-3 -37 0 -105h459q15 0 25 -12q9 -12 6 -27l-24 -112q-2 -11 -11 -18.5t-20 -7.5h-387q48 -117 149.5 -185.5t228.5 -68.5q18 0 36 1.5t33.5 3.5t29.5 4.5t24.5 5t18.5 4.5l12 3l5 2q13 5 26 -2q12 -7 15 -21z" />
341
+ <glyph unicode="&#xf154;" horiz-adv-x="1024" d="M1020 399v-367q0 -14 -9 -23t-23 -9h-956q-14 0 -23 9t-9 23v150q0 13 9.5 22.5t22.5 9.5h97v383h-95q-14 0 -23 9.5t-9 22.5v131q0 14 9 23t23 9h95v223q0 171 123.5 282t314.5 111q185 0 335 -125q9 -8 10 -20.5t-7 -22.5l-103 -127q-9 -11 -22 -12q-13 -2 -23 7 q-5 5 -26 19t-69 32t-93 18q-85 0 -137 -47t-52 -123v-215h305q13 0 22.5 -9t9.5 -23v-131q0 -13 -9.5 -22.5t-22.5 -9.5h-305v-379h414v181q0 13 9 22.5t23 9.5h162q14 0 23 -9.5t9 -22.5z" />
342
+ <glyph unicode="&#xf155;" horiz-adv-x="1024" d="M978 351q0 -153 -99.5 -263.5t-258.5 -136.5v-175q0 -14 -9 -23t-23 -9h-135q-13 0 -22.5 9.5t-9.5 22.5v175q-66 9 -127.5 31t-101.5 44.5t-74 48t-46.5 37.5t-17.5 18q-17 21 -2 41l103 135q7 10 23 12q15 2 24 -9l2 -2q113 -99 243 -125q37 -8 74 -8q81 0 142.5 43 t61.5 122q0 28 -15 53t-33.5 42t-58.5 37.5t-66 32t-80 32.5q-39 16 -61.5 25t-61.5 26.5t-62.5 31t-56.5 35.5t-53.5 42.5t-43.5 49t-35.5 58t-21 66.5t-8.5 78q0 138 98 242t255 134v180q0 13 9.5 22.5t22.5 9.5h135q14 0 23 -9t9 -23v-176q57 -6 110.5 -23t87 -33.5 t63.5 -37.5t39 -29t15 -14q17 -18 5 -38l-81 -146q-8 -15 -23 -16q-14 -3 -27 7q-3 3 -14.5 12t-39 26.5t-58.5 32t-74.5 26t-85.5 11.5q-95 0 -155 -43t-60 -111q0 -26 8.5 -48t29.5 -41.5t39.5 -33t56 -31t60.5 -27t70 -27.5q53 -20 81 -31.5t76 -35t75.5 -42.5t62 -50 t53 -63.5t31.5 -76.5t13 -94z" />
343
+ <glyph unicode="&#xf156;" horiz-adv-x="898" d="M898 1066v-102q0 -14 -9 -23t-23 -9h-168q-23 -144 -129 -234t-276 -110q167 -178 459 -536q14 -16 4 -34q-8 -18 -29 -18h-195q-16 0 -25 12q-306 367 -498 571q-9 9 -9 22v127q0 13 9.5 22.5t22.5 9.5h112q132 0 212.5 43t102.5 125h-427q-14 0 -23 9t-9 23v102 q0 14 9 23t23 9h413q-57 113 -268 113h-145q-13 0 -22.5 9.5t-9.5 22.5v133q0 14 9 23t23 9h832q14 0 23 -9t9 -23v-102q0 -14 -9 -23t-23 -9h-233q47 -61 64 -144h171q14 0 23 -9t9 -23z" />
344
+ <glyph unicode="&#xf157;" horiz-adv-x="1027" d="M603 0h-172q-13 0 -22.5 9t-9.5 23v330h-288q-13 0 -22.5 9t-9.5 23v103q0 13 9.5 22.5t22.5 9.5h288v85h-288q-13 0 -22.5 9t-9.5 23v104q0 13 9.5 22.5t22.5 9.5h214l-321 578q-8 16 0 32q10 16 28 16h194q19 0 29 -18l215 -425q19 -38 56 -125q10 24 30.5 68t27.5 61 l191 420q8 19 29 19h191q17 0 27 -16q9 -14 1 -31l-313 -579h215q13 0 22.5 -9.5t9.5 -22.5v-104q0 -14 -9.5 -23t-22.5 -9h-290v-85h290q13 0 22.5 -9.5t9.5 -22.5v-103q0 -14 -9.5 -23t-22.5 -9h-290v-330q0 -13 -9.5 -22.5t-22.5 -9.5z" />
345
+ <glyph unicode="&#xf158;" horiz-adv-x="1280" d="M1043 971q0 100 -65 162t-171 62h-320v-448h320q106 0 171 62t65 162zM1280 971q0 -193 -126.5 -315t-326.5 -122h-340v-118h505q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-505v-192q0 -14 -9.5 -23t-22.5 -9h-167q-14 0 -23 9t-9 23v192h-224q-14 0 -23 9t-9 23v128 q0 14 9 23t23 9h224v118h-224q-14 0 -23 9t-9 23v149q0 13 9 22.5t23 9.5h224v629q0 14 9 23t23 9h539q200 0 326.5 -122t126.5 -315z" />
346
+ <glyph unicode="&#xf159;" horiz-adv-x="1792" d="M514 341l81 299h-159l75 -300q1 -1 1 -3t1 -3q0 1 0.5 3.5t0.5 3.5zM630 768l35 128h-292l32 -128h225zM822 768h139l-35 128h-70zM1271 340l78 300h-162l81 -299q0 -1 0.5 -3.5t1.5 -3.5q0 1 0.5 3t0.5 3zM1382 768l33 128h-297l34 -128h230zM1792 736v-64q0 -14 -9 -23 t-23 -9h-213l-164 -616q-7 -24 -31 -24h-159q-24 0 -31 24l-166 616h-209l-167 -616q-7 -24 -31 -24h-159q-11 0 -19.5 7t-10.5 17l-160 616h-208q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h175l-33 128h-142q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h109l-89 344q-5 15 5 28 q10 12 26 12h137q26 0 31 -24l90 -360h359l97 360q7 24 31 24h126q24 0 31 -24l98 -360h365l93 360q5 24 31 24h137q16 0 26 -12q10 -13 5 -28l-91 -344h111q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-145l-34 -128h179q14 0 23 -9t9 -23z" />
347
+ <glyph unicode="&#xf15a;" horiz-adv-x="1280" d="M1167 896q18 -182 -131 -258q117 -28 175 -103t45 -214q-7 -71 -32.5 -125t-64.5 -89t-97 -58.5t-121.5 -34.5t-145.5 -15v-255h-154v251q-80 0 -122 1v-252h-154v255q-18 0 -54 0.5t-55 0.5h-200l31 183h111q50 0 58 51v402h16q-6 1 -16 1v287q-13 68 -89 68h-111v164 l212 -1q64 0 97 1v252h154v-247q82 2 122 2v245h154v-252q79 -7 140 -22.5t113 -45t82.5 -78t36.5 -114.5zM952 351q0 36 -15 64t-37 46t-57.5 30.5t-65.5 18.5t-74 9t-69 3t-64.5 -1t-47.5 -1v-338q8 0 37 -0.5t48 -0.5t53 1.5t58.5 4t57 8.5t55.5 14t47.5 21t39.5 30 t24.5 40t9.5 51zM881 827q0 33 -12.5 58.5t-30.5 42t-48 28t-55 16.5t-61.5 8t-58 2.5t-54 -1t-39.5 -0.5v-307q5 0 34.5 -0.5t46.5 0t50 2t55 5.5t51.5 11t48.5 18.5t37 27t27 38.5t9 51z" />
348
+ <glyph unicode="&#xf15b;" horiz-adv-x="1280" d="M1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h544v-544q0 -40 28 -68t68 -28h544zM1277 896h-509v509q82 -15 132 -65l312 -312q50 -50 65 -132z" />
349
+ <glyph unicode="&#xf15c;" horiz-adv-x="1280" d="M1024 160v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1024 416v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28 t-28 68v1344q0 40 28 68t68 28h544v-544q0 -40 28 -68t68 -28h544zM1277 896h-509v509q82 -15 132 -65l312 -312q50 -50 65 -132z" />
350
+ <glyph unicode="&#xf15d;" horiz-adv-x="1664" d="M1191 1128h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1572 -23 v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -11v-2l14 2q9 2 30 2h248v119h121zM1661 874v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162 l230 -662h70z" />
351
+ <glyph unicode="&#xf15e;" horiz-adv-x="1664" d="M1191 104h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1661 -150 v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162l230 -662h70zM1572 1001v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -10v-3l14 3q9 1 30 1h248 v119h121z" />
352
+ <glyph unicode="&#xf160;" horiz-adv-x="1792" d="M736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1792 -32v-192q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832 q14 0 23 -9t9 -23zM1600 480v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1408 992v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1216 1504v-192q0 -14 -9 -23t-23 -9h-256 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23z" />
353
+ <glyph unicode="&#xf161;" horiz-adv-x="1792" d="M1216 -32v-192q0 -14 -9 -23t-23 -9h-256q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192 q14 0 23 -9t9 -23zM1408 480v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1600 992v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1792 1504v-192q0 -14 -9 -23t-23 -9h-832 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832q14 0 23 -9t9 -23z" />
354
+ <glyph unicode="&#xf162;" d="M1346 223q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23 zM1486 165q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5 t82 -252.5zM1456 882v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165z" />
355
+ <glyph unicode="&#xf163;" d="M1346 1247q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9 t9 -23zM1456 -142v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165zM1486 1189q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13 q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5t82 -252.5z" />
356
+ <glyph unicode="&#xf164;" horiz-adv-x="1664" d="M256 192q0 26 -19 45t-45 19q-27 0 -45.5 -19t-18.5 -45q0 -27 18.5 -45.5t45.5 -18.5q26 0 45 18.5t19 45.5zM416 704v-640q0 -26 -19 -45t-45 -19h-288q-26 0 -45 19t-19 45v640q0 26 19 45t45 19h288q26 0 45 -19t19 -45zM1600 704q0 -86 -55 -149q15 -44 15 -76 q3 -76 -43 -137q17 -56 0 -117q-15 -57 -54 -94q9 -112 -49 -181q-64 -76 -197 -78h-36h-76h-17q-66 0 -144 15.5t-121.5 29t-120.5 39.5q-123 43 -158 44q-26 1 -45 19.5t-19 44.5v641q0 25 18 43.5t43 20.5q24 2 76 59t101 121q68 87 101 120q18 18 31 48t17.5 48.5 t13.5 60.5q7 39 12.5 61t19.5 52t34 50q19 19 45 19q46 0 82.5 -10.5t60 -26t40 -40.5t24 -45t12 -50t5 -45t0.5 -39q0 -38 -9.5 -76t-19 -60t-27.5 -56q-3 -6 -10 -18t-11 -22t-8 -24h277q78 0 135 -57t57 -135z" />
357
+ <glyph unicode="&#xf165;" horiz-adv-x="1664" d="M256 960q0 -26 -19 -45t-45 -19q-27 0 -45.5 19t-18.5 45q0 27 18.5 45.5t45.5 18.5q26 0 45 -18.5t19 -45.5zM416 448v640q0 26 -19 45t-45 19h-288q-26 0 -45 -19t-19 -45v-640q0 -26 19 -45t45 -19h288q26 0 45 19t19 45zM1545 597q55 -61 55 -149q-1 -78 -57.5 -135 t-134.5 -57h-277q4 -14 8 -24t11 -22t10 -18q18 -37 27 -57t19 -58.5t10 -76.5q0 -24 -0.5 -39t-5 -45t-12 -50t-24 -45t-40 -40.5t-60 -26t-82.5 -10.5q-26 0 -45 19q-20 20 -34 50t-19.5 52t-12.5 61q-9 42 -13.5 60.5t-17.5 48.5t-31 48q-33 33 -101 120q-49 64 -101 121 t-76 59q-25 2 -43 20.5t-18 43.5v641q0 26 19 44.5t45 19.5q35 1 158 44q77 26 120.5 39.5t121.5 29t144 15.5h17h76h36q133 -2 197 -78q58 -69 49 -181q39 -37 54 -94q17 -61 0 -117q46 -61 43 -137q0 -32 -15 -76z" />
358
+ <glyph unicode="&#xf166;" d="M919 233v157q0 50 -29 50q-17 0 -33 -16v-224q16 -16 33 -16q29 0 29 49zM1103 355h66v34q0 51 -33 51t-33 -51v-34zM532 621v-70h-80v-423h-74v423h-78v70h232zM733 495v-367h-67v40q-39 -45 -76 -45q-33 0 -42 28q-6 16 -6 54v290h66v-270q0 -24 1 -26q1 -15 15 -15 q20 0 42 31v280h67zM985 384v-146q0 -52 -7 -73q-12 -42 -53 -42q-35 0 -68 41v-36h-67v493h67v-161q32 40 68 40q41 0 53 -42q7 -21 7 -74zM1236 255v-9q0 -29 -2 -43q-3 -22 -15 -40q-27 -40 -80 -40q-52 0 -81 38q-21 27 -21 86v129q0 59 20 86q29 38 80 38t78 -38 q21 -28 21 -86v-76h-133v-65q0 -51 34 -51q24 0 30 26q0 1 0.5 7t0.5 16.5v21.5h68zM785 1079v-156q0 -51 -32 -51t-32 51v156q0 52 32 52t32 -52zM1318 366q0 177 -19 260q-10 44 -43 73.5t-76 34.5q-136 15 -412 15q-275 0 -411 -15q-44 -5 -76.5 -34.5t-42.5 -73.5 q-20 -87 -20 -260q0 -176 20 -260q10 -43 42.5 -73t75.5 -35q137 -15 412 -15t412 15q43 5 75.5 35t42.5 73q20 84 20 260zM563 1017l90 296h-75l-51 -195l-53 195h-78l24 -69t23 -69q35 -103 46 -158v-201h74v201zM852 936v130q0 58 -21 87q-29 38 -78 38q-51 0 -78 -38 q-21 -29 -21 -87v-130q0 -58 21 -87q27 -38 78 -38q49 0 78 38q21 27 21 87zM1033 816h67v370h-67v-283q-22 -31 -42 -31q-15 0 -16 16q-1 2 -1 26v272h-67v-293q0 -37 6 -55q11 -27 43 -27q36 0 77 45v-40zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
359
+ <glyph unicode="&#xf167;" d="M971 292v-211q0 -67 -39 -67q-23 0 -45 22v301q22 22 45 22q39 0 39 -67zM1309 291v-46h-90v46q0 68 45 68t45 -68zM343 509h107v94h-312v-94h105v-569h100v569zM631 -60h89v494h-89v-378q-30 -42 -57 -42q-18 0 -21 21q-1 3 -1 35v364h-89v-391q0 -49 8 -73 q12 -37 58 -37q48 0 102 61v-54zM1060 88v197q0 73 -9 99q-17 56 -71 56q-50 0 -93 -54v217h-89v-663h89v48q45 -55 93 -55q54 0 71 55q9 27 9 100zM1398 98v13h-91q0 -51 -2 -61q-7 -36 -40 -36q-46 0 -46 69v87h179v103q0 79 -27 116q-39 51 -106 51q-68 0 -107 -51 q-28 -37 -28 -116v-173q0 -79 29 -116q39 -51 108 -51q72 0 108 53q18 27 21 54q2 9 2 58zM790 1011v210q0 69 -43 69t-43 -69v-210q0 -70 43 -70t43 70zM1509 260q0 -234 -26 -350q-14 -59 -58 -99t-102 -46q-184 -21 -555 -21t-555 21q-58 6 -102.5 46t-57.5 99 q-26 112 -26 350q0 234 26 350q14 59 58 99t103 47q183 20 554 20t555 -20q58 -7 102.5 -47t57.5 -99q26 -112 26 -350zM511 1536h102l-121 -399v-271h-100v271q-14 74 -61 212q-37 103 -65 187h106l71 -263zM881 1203v-175q0 -81 -28 -118q-37 -51 -106 -51q-67 0 -105 51 q-28 38 -28 118v175q0 80 28 117q38 51 105 51q69 0 106 -51q28 -37 28 -117zM1216 1365v-499h-91v55q-53 -62 -103 -62q-46 0 -59 37q-8 24 -8 75v394h91v-367q0 -33 1 -35q3 -22 21 -22q27 0 57 43v381h91z" />
360
+ <glyph unicode="&#xf168;" horiz-adv-x="1408" d="M597 869q-10 -18 -257 -456q-27 -46 -65 -46h-239q-21 0 -31 17t0 36l253 448q1 0 0 1l-161 279q-12 22 -1 37q9 15 32 15h239q40 0 66 -45zM1403 1511q11 -16 0 -37l-528 -934v-1l336 -615q11 -20 1 -37q-10 -15 -32 -15h-239q-42 0 -66 45l-339 622q18 32 531 942 q25 45 64 45h241q22 0 31 -15z" />
361
+ <glyph unicode="&#xf169;" d="M685 771q0 1 -126 222q-21 34 -52 34h-184q-18 0 -26 -11q-7 -12 1 -29l125 -216v-1l-196 -346q-9 -14 0 -28q8 -13 24 -13h185q31 0 50 36zM1309 1268q-7 12 -24 12h-187q-30 0 -49 -35l-411 -729q1 -2 262 -481q20 -35 52 -35h184q18 0 25 12q8 13 -1 28l-260 476v1 l409 723q8 16 0 28zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
362
+ <glyph unicode="&#xf16a;" horiz-adv-x="1792" d="M1280 640q0 37 -30 54l-512 320q-31 20 -65 2q-33 -18 -33 -56v-640q0 -38 33 -56q16 -8 31 -8q20 0 34 10l512 320q30 17 30 54zM1792 640q0 -96 -1 -150t-8.5 -136.5t-22.5 -147.5q-16 -73 -69 -123t-124 -58q-222 -25 -671 -25t-671 25q-71 8 -124.5 58t-69.5 123 q-14 65 -21.5 147.5t-8.5 136.5t-1 150t1 150t8.5 136.5t22.5 147.5q16 73 69 123t124 58q222 25 671 25t671 -25q71 -8 124.5 -58t69.5 -123q14 -65 21.5 -147.5t8.5 -136.5t1 -150z" />
363
+ <glyph unicode="&#xf16b;" horiz-adv-x="1792" d="M402 829l494 -305l-342 -285l-490 319zM1388 274v-108l-490 -293v-1l-1 1l-1 -1v1l-489 293v108l147 -96l342 284v2l1 -1l1 1v-2l343 -284zM554 1418l342 -285l-494 -304l-338 270zM1390 829l338 -271l-489 -319l-343 285zM1239 1418l489 -319l-338 -270l-494 304z" />
364
+ <glyph unicode="&#xf16c;" horiz-adv-x="1408" d="M928 135v-151l-707 -1v151zM1169 481v-701l-1 -35v-1h-1132l-35 1h-1v736h121v-618h928v618h120zM241 393l704 -65l-13 -150l-705 65zM309 709l683 -183l-39 -146l-683 183zM472 1058l609 -360l-77 -130l-609 360zM832 1389l398 -585l-124 -85l-399 584zM1285 1536 l121 -697l-149 -26l-121 697z" />
365
+ <glyph unicode="&#xf16d;" d="M1362 110v648h-135q20 -63 20 -131q0 -126 -64 -232.5t-174 -168.5t-240 -62q-197 0 -337 135.5t-140 327.5q0 68 20 131h-141v-648q0 -26 17.5 -43.5t43.5 -17.5h1069q25 0 43 17.5t18 43.5zM1078 643q0 124 -90.5 211.5t-218.5 87.5q-127 0 -217.5 -87.5t-90.5 -211.5 t90.5 -211.5t217.5 -87.5q128 0 218.5 87.5t90.5 211.5zM1362 1003v165q0 28 -20 48.5t-49 20.5h-174q-29 0 -49 -20.5t-20 -48.5v-165q0 -29 20 -49t49 -20h174q29 0 49 20t20 49zM1536 1211v-1142q0 -81 -58 -139t-139 -58h-1142q-81 0 -139 58t-58 139v1142q0 81 58 139 t139 58h1142q81 0 139 -58t58 -139z" />
366
+ <glyph unicode="&#xf16e;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM698 640q0 88 -62 150t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150zM1262 640q0 88 -62 150 t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150z" />
367
+ <glyph unicode="&#xf170;" d="M768 914l201 -306h-402zM1133 384h94l-459 691l-459 -691h94l104 160h522zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
368
+ <glyph unicode="&#xf171;" horiz-adv-x="1408" d="M815 677q8 -63 -50.5 -101t-111.5 -6q-39 17 -53.5 58t-0.5 82t52 58q36 18 72.5 12t64 -35.5t27.5 -67.5zM926 698q-14 107 -113 164t-197 13q-63 -28 -100.5 -88.5t-34.5 -129.5q4 -91 77.5 -155t165.5 -56q91 8 152 84t50 168zM1165 1240q-20 27 -56 44.5t-58 22 t-71 12.5q-291 47 -566 -2q-43 -7 -66 -12t-55 -22t-50 -43q30 -28 76 -45.5t73.5 -22t87.5 -11.5q228 -29 448 -1q63 8 89.5 12t72.5 21.5t75 46.5zM1222 205q-8 -26 -15.5 -76.5t-14 -84t-28.5 -70t-58 -56.5q-86 -48 -189.5 -71.5t-202 -22t-201.5 18.5q-46 8 -81.5 18 t-76.5 27t-73 43.5t-52 61.5q-25 96 -57 292l6 16l18 9q223 -148 506.5 -148t507.5 148q21 -6 24 -23t-5 -45t-8 -37zM1403 1166q-26 -167 -111 -655q-5 -30 -27 -56t-43.5 -40t-54.5 -31q-252 -126 -610 -88q-248 27 -394 139q-15 12 -25.5 26.5t-17 35t-9 34t-6 39.5 t-5.5 35q-9 50 -26.5 150t-28 161.5t-23.5 147.5t-22 158q3 26 17.5 48.5t31.5 37.5t45 30t46 22.5t48 18.5q125 46 313 64q379 37 676 -50q155 -46 215 -122q16 -20 16.5 -51t-5.5 -54z" />
369
+ <glyph unicode="&#xf172;" d="M848 666q0 43 -41 66t-77 1q-43 -20 -42.5 -72.5t43.5 -70.5q39 -23 81 4t36 72zM928 682q8 -66 -36 -121t-110 -61t-119 40t-56 113q-2 49 25.5 93t72.5 64q70 31 141.5 -10t81.5 -118zM1100 1073q-20 -21 -53.5 -34t-53 -16t-63.5 -8q-155 -20 -324 0q-44 6 -63 9.5 t-52.5 16t-54.5 32.5q13 19 36 31t40 15.5t47 8.5q198 35 408 1q33 -5 51 -8.5t43 -16t39 -31.5zM1142 327q0 7 5.5 26.5t3 32t-17.5 16.5q-161 -106 -365 -106t-366 106l-12 -6l-5 -12q26 -154 41 -210q47 -81 204 -108q249 -46 428 53q34 19 49 51.5t22.5 85.5t12.5 71z M1272 1020q9 53 -8 75q-43 55 -155 88q-216 63 -487 36q-132 -12 -226 -46q-38 -15 -59.5 -25t-47 -34t-29.5 -54q8 -68 19 -138t29 -171t24 -137q1 -5 5 -31t7 -36t12 -27t22 -28q105 -80 284 -100q259 -28 440 63q24 13 39.5 23t31 29t19.5 40q48 267 80 473zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
370
+ <glyph unicode="&#xf173;" horiz-adv-x="1024" d="M390 1408h219v-388h364v-241h-364v-394q0 -136 14 -172q13 -37 52 -60q50 -31 117 -31q117 0 232 76v-242q-102 -48 -178 -65q-77 -19 -173 -19q-105 0 -186 27q-78 25 -138 75q-58 51 -79 105q-22 54 -22 161v539h-170v217q91 30 155 84q64 55 103 132q39 78 54 196z " />
371
+ <glyph unicode="&#xf174;" d="M1123 127v181q-88 -56 -174 -56q-51 0 -88 23q-29 17 -39 45q-11 30 -11 129v295h274v181h-274v291h-164q-11 -90 -40 -147t-78 -99q-48 -40 -116 -63v-163h127v-404q0 -78 17 -121q17 -42 59 -78q43 -37 104 -57q62 -20 140 -20q67 0 129 14q57 13 134 49zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
372
+ <glyph unicode="&#xf175;" horiz-adv-x="768" d="M765 237q8 -19 -5 -35l-350 -384q-10 -10 -23 -10q-14 0 -24 10l-355 384q-13 16 -5 35q9 19 29 19h224v1248q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1248h224q21 0 29 -19z" />
373
+ <glyph unicode="&#xf176;" horiz-adv-x="768" d="M765 1043q-9 -19 -29 -19h-224v-1248q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1248h-224q-21 0 -29 19t5 35l350 384q10 10 23 10q14 0 24 -10l355 -384q13 -16 5 -35z" />
374
+ <glyph unicode="&#xf177;" horiz-adv-x="1792" d="M1792 736v-192q0 -14 -9 -23t-23 -9h-1248v-224q0 -21 -19 -29t-35 5l-384 350q-10 10 -10 23q0 14 10 24l384 354q16 14 35 6q19 -9 19 -29v-224h1248q14 0 23 -9t9 -23z" />
375
+ <glyph unicode="&#xf178;" horiz-adv-x="1792" d="M1728 643q0 -14 -10 -24l-384 -354q-16 -14 -35 -6q-19 9 -19 29v224h-1248q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h1248v224q0 21 19 29t35 -5l384 -350q10 -10 10 -23z" />
376
+ <glyph unicode="&#xf179;" horiz-adv-x="1408" d="M1393 321q-39 -125 -123 -250q-129 -196 -257 -196q-49 0 -140 32q-86 32 -151 32q-61 0 -142 -33q-81 -34 -132 -34q-152 0 -301 259q-147 261 -147 503q0 228 113 374q112 144 284 144q72 0 177 -30q104 -30 138 -30q45 0 143 34q102 34 173 34q119 0 213 -65 q52 -36 104 -100q-79 -67 -114 -118q-65 -94 -65 -207q0 -124 69 -223t158 -126zM1017 1494q0 -61 -29 -136q-30 -75 -93 -138q-54 -54 -108 -72q-37 -11 -104 -17q3 149 78 257q74 107 250 148q1 -3 2.5 -11t2.5 -11q0 -4 0.5 -10t0.5 -10z" />
377
+ <glyph unicode="&#xf17a;" horiz-adv-x="1664" d="M682 530v-651l-682 94v557h682zM682 1273v-659h-682v565zM1664 530v-786l-907 125v661h907zM1664 1408v-794h-907v669z" />
378
+ <glyph unicode="&#xf17b;" horiz-adv-x="1408" d="M493 1053q16 0 27.5 11.5t11.5 27.5t-11.5 27.5t-27.5 11.5t-27 -11.5t-11 -27.5t11 -27.5t27 -11.5zM915 1053q16 0 27 11.5t11 27.5t-11 27.5t-27 11.5t-27.5 -11.5t-11.5 -27.5t11.5 -27.5t27.5 -11.5zM103 869q42 0 72 -30t30 -72v-430q0 -43 -29.5 -73t-72.5 -30 t-73 30t-30 73v430q0 42 30 72t73 30zM1163 850v-666q0 -46 -32 -78t-77 -32h-75v-227q0 -43 -30 -73t-73 -30t-73 30t-30 73v227h-138v-227q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73l-1 227h-74q-46 0 -78 32t-32 78v666h918zM931 1255q107 -55 171 -153.5t64 -215.5 h-925q0 117 64 215.5t172 153.5l-71 131q-7 13 5 20q13 6 20 -6l72 -132q95 42 201 42t201 -42l72 132q7 12 20 6q12 -7 5 -20zM1408 767v-430q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73v430q0 43 30 72.5t72 29.5q43 0 73 -29.5t30 -72.5z" />
379
+ <glyph unicode="&#xf17c;" d="M663 1125q-11 -1 -15.5 -10.5t-8.5 -9.5q-5 -1 -5 5q0 12 19 15h10zM750 1111q-4 -1 -11.5 6.5t-17.5 4.5q24 11 32 -2q3 -6 -3 -9zM399 684q-4 1 -6 -3t-4.5 -12.5t-5.5 -13.5t-10 -13q-7 -10 -1 -12q4 -1 12.5 7t12.5 18q1 3 2 7t2 6t1.5 4.5t0.5 4v3t-1 2.5t-3 2z M1254 325q0 18 -55 42q4 15 7.5 27.5t5 26t3 21.5t0.5 22.5t-1 19.5t-3.5 22t-4 20.5t-5 25t-5.5 26.5q-10 48 -47 103t-72 75q24 -20 57 -83q87 -162 54 -278q-11 -40 -50 -42q-31 -4 -38.5 18.5t-8 83.5t-11.5 107q-9 39 -19.5 69t-19.5 45.5t-15.5 24.5t-13 15t-7.5 7 q-14 62 -31 103t-29.5 56t-23.5 33t-15 40q-4 21 6 53.5t4.5 49.5t-44.5 25q-15 3 -44.5 18t-35.5 16q-8 1 -11 26t8 51t36 27q37 3 51 -30t4 -58q-11 -19 -2 -26.5t30 -0.5q13 4 13 36v37q-5 30 -13.5 50t-21 30.5t-23.5 15t-27 7.5q-107 -8 -89 -134q0 -15 -1 -15 q-9 9 -29.5 10.5t-33 -0.5t-15.5 5q1 57 -16 90t-45 34q-27 1 -41.5 -27.5t-16.5 -59.5q-1 -15 3.5 -37t13 -37.5t15.5 -13.5q10 3 16 14q4 9 -7 8q-7 0 -15.5 14.5t-9.5 33.5q-1 22 9 37t34 14q17 0 27 -21t9.5 -39t-1.5 -22q-22 -15 -31 -29q-8 -12 -27.5 -23.5 t-20.5 -12.5q-13 -14 -15.5 -27t7.5 -18q14 -8 25 -19.5t16 -19t18.5 -13t35.5 -6.5q47 -2 102 15q2 1 23 7t34.5 10.5t29.5 13t21 17.5q9 14 20 8q5 -3 6.5 -8.5t-3 -12t-16.5 -9.5q-20 -6 -56.5 -21.5t-45.5 -19.5q-44 -19 -70 -23q-25 -5 -79 2q-10 2 -9 -2t17 -19 q25 -23 67 -22q17 1 36 7t36 14t33.5 17.5t30 17t24.5 12t17.5 2.5t8.5 -11q0 -2 -1 -4.5t-4 -5t-6 -4.5t-8.5 -5t-9 -4.5t-10 -5t-9.5 -4.5q-28 -14 -67.5 -44t-66.5 -43t-49 -1q-21 11 -63 73q-22 31 -25 22q-1 -3 -1 -10q0 -25 -15 -56.5t-29.5 -55.5t-21 -58t11.5 -63 q-23 -6 -62.5 -90t-47.5 -141q-2 -18 -1.5 -69t-5.5 -59q-8 -24 -29 -3q-32 31 -36 94q-2 28 4 56q4 19 -1 18l-4 -5q-36 -65 10 -166q5 -12 25 -28t24 -20q20 -23 104 -90.5t93 -76.5q16 -15 17.5 -38t-14 -43t-45.5 -23q8 -15 29 -44.5t28 -54t7 -70.5q46 24 7 92 q-4 8 -10.5 16t-9.5 12t-2 6q3 5 13 9.5t20 -2.5q46 -52 166 -36q133 15 177 87q23 38 34 30q12 -6 10 -52q-1 -25 -23 -92q-9 -23 -6 -37.5t24 -15.5q3 19 14.5 77t13.5 90q2 21 -6.5 73.5t-7.5 97t23 70.5q15 18 51 18q1 37 34.5 53t72.5 10.5t60 -22.5zM626 1152 q3 17 -2.5 30t-11.5 15q-9 2 -9 -7q2 -5 5 -6q10 0 7 -15q-3 -20 8 -20q3 0 3 3zM1045 955q-2 8 -6.5 11.5t-13 5t-14.5 5.5q-5 3 -9.5 8t-7 8t-5.5 6.5t-4 4t-4 -1.5q-14 -16 7 -43.5t39 -31.5q9 -1 14.5 8t3.5 20zM867 1168q0 11 -5 19.5t-11 12.5t-9 3q-14 -1 -7 -7l4 -2 q14 -4 18 -31q0 -3 8 2zM921 1401q0 2 -2.5 5t-9 7t-9.5 6q-15 15 -24 15q-9 -1 -11.5 -7.5t-1 -13t-0.5 -12.5q-1 -4 -6 -10.5t-6 -9t3 -8.5q4 -3 8 0t11 9t15 9q1 1 9 1t15 2t9 7zM1486 60q20 -12 31 -24.5t12 -24t-2.5 -22.5t-15.5 -22t-23.5 -19.5t-30 -18.5 t-31.5 -16.5t-32 -15.5t-27 -13q-38 -19 -85.5 -56t-75.5 -64q-17 -16 -68 -19.5t-89 14.5q-18 9 -29.5 23.5t-16.5 25.5t-22 19.5t-47 9.5q-44 1 -130 1q-19 0 -57 -1.5t-58 -2.5q-44 -1 -79.5 -15t-53.5 -30t-43.5 -28.5t-53.5 -11.5q-29 1 -111 31t-146 43q-19 4 -51 9.5 t-50 9t-39.5 9.5t-33.5 14.5t-17 19.5q-10 23 7 66.5t18 54.5q1 16 -4 40t-10 42.5t-4.5 36.5t10.5 27q14 12 57 14t60 12q30 18 42 35t12 51q21 -73 -32 -106q-32 -20 -83 -15q-34 3 -43 -10q-13 -15 5 -57q2 -6 8 -18t8.5 -18t4.5 -17t1 -22q0 -15 -17 -49t-14 -48 q3 -17 37 -26q20 -6 84.5 -18.5t99.5 -20.5q24 -6 74 -22t82.5 -23t55.5 -4q43 6 64.5 28t23 48t-7.5 58.5t-19 52t-20 36.5q-121 190 -169 242q-68 74 -113 40q-11 -9 -15 15q-3 16 -2 38q1 29 10 52t24 47t22 42q8 21 26.5 72t29.5 78t30 61t39 54q110 143 124 195 q-12 112 -16 310q-2 90 24 151.5t106 104.5q39 21 104 21q53 1 106 -13.5t89 -41.5q57 -42 91.5 -121.5t29.5 -147.5q-5 -95 30 -214q34 -113 133 -218q55 -59 99.5 -163t59.5 -191q8 -49 5 -84.5t-12 -55.5t-20 -22q-10 -2 -23.5 -19t-27 -35.5t-40.5 -33.5t-61 -14 q-18 1 -31.5 5t-22.5 13.5t-13.5 15.5t-11.5 20.5t-9 19.5q-22 37 -41 30t-28 -49t7 -97q20 -70 1 -195q-10 -65 18 -100.5t73 -33t85 35.5q59 49 89.5 66.5t103.5 42.5q53 18 77 36.5t18.5 34.5t-25 28.5t-51.5 23.5q-33 11 -49.5 48t-15 72.5t15.5 47.5q1 -31 8 -56.5 t14.5 -40.5t20.5 -28.5t21 -19t21.5 -13t16.5 -9.5z" />
380
+ <glyph unicode="&#xf17d;" d="M1024 36q-42 241 -140 498h-2l-2 -1q-16 -6 -43 -16.5t-101 -49t-137 -82t-131 -114.5t-103 -148l-15 11q184 -150 418 -150q132 0 256 52zM839 643q-21 49 -53 111q-311 -93 -673 -93q-1 -7 -1 -21q0 -124 44 -236.5t124 -201.5q50 89 123.5 166.5t142.5 124.5t130.5 81 t99.5 48l37 13q4 1 13 3.5t13 4.5zM732 855q-120 213 -244 378q-138 -65 -234 -186t-128 -272q302 0 606 80zM1416 536q-210 60 -409 29q87 -239 128 -469q111 75 185 189.5t96 250.5zM611 1277q-1 0 -2 -1q1 1 2 1zM1201 1132q-185 164 -433 164q-76 0 -155 -19 q131 -170 246 -382q69 26 130 60.5t96.5 61.5t65.5 57t37.5 40.5zM1424 647q-3 232 -149 410l-1 -1q-9 -12 -19 -24.5t-43.5 -44.5t-71 -60.5t-100 -65t-131.5 -64.5q25 -53 44 -95q2 -6 6.5 -17.5t7.5 -16.5q36 5 74.5 7t73.5 2t69 -1.5t64 -4t56.5 -5.5t48 -6.5t36.5 -6 t25 -4.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
381
+ <glyph unicode="&#xf17e;" d="M1173 473q0 50 -19.5 91.5t-48.5 68.5t-73 49t-82.5 34t-87.5 23l-104 24q-30 7 -44 10.5t-35 11.5t-30 16t-16.5 21t-7.5 30q0 77 144 77q43 0 77 -12t54 -28.5t38 -33.5t40 -29t48 -12q47 0 75.5 32t28.5 77q0 55 -56 99.5t-142 67.5t-182 23q-68 0 -132 -15.5 t-119.5 -47t-89 -87t-33.5 -128.5q0 -61 19 -106.5t56 -75.5t80 -48.5t103 -32.5l146 -36q90 -22 112 -36q32 -20 32 -60q0 -39 -40 -64.5t-105 -25.5q-51 0 -91.5 16t-65 38.5t-45.5 45t-46 38.5t-54 16q-50 0 -75.5 -30t-25.5 -75q0 -92 122 -157.5t291 -65.5 q73 0 140 18.5t122.5 53.5t88.5 93.5t33 131.5zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5q-130 0 -234 80q-77 -16 -150 -16q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5q0 73 16 150q-80 104 -80 234q0 159 112.5 271.5t271.5 112.5q130 0 234 -80 q77 16 150 16q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -73 -16 -150q80 -104 80 -234z" />
382
+ <glyph unicode="&#xf180;" horiz-adv-x="1664" d="M1483 512l-587 -587q-52 -53 -127.5 -53t-128.5 53l-587 587q-53 53 -53 128t53 128l587 587q53 53 128 53t128 -53l265 -265l-398 -399l-188 188q-42 42 -99 42q-59 0 -100 -41l-120 -121q-42 -40 -42 -99q0 -58 42 -100l406 -408q30 -28 67 -37l6 -4h28q60 0 99 41 l619 619l2 -3q53 -53 53 -128t-53 -128zM1406 1138l120 -120q14 -15 14 -36t-14 -36l-730 -730q-17 -15 -37 -15v0q-4 0 -6 1q-18 2 -30 14l-407 408q-14 15 -14 36t14 35l121 120q13 15 35 15t36 -15l252 -252l574 575q15 15 36 15t36 -15z" />
383
+ <glyph unicode="&#xf181;" d="M704 192v1024q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-1024q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1376 576v640q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-640q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408 q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
384
+ <glyph unicode="&#xf182;" horiz-adv-x="1280" d="M1280 480q0 -40 -28 -68t-68 -28q-51 0 -80 43l-227 341h-45v-132l247 -411q9 -15 9 -33q0 -26 -19 -45t-45 -19h-192v-272q0 -46 -33 -79t-79 -33h-160q-46 0 -79 33t-33 79v272h-192q-26 0 -45 19t-19 45q0 18 9 33l247 411v132h-45l-227 -341q-29 -43 -80 -43 q-40 0 -68 28t-28 68q0 29 16 53l256 384q73 107 176 107h384q103 0 176 -107l256 -384q16 -24 16 -53zM864 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
385
+ <glyph unicode="&#xf183;" horiz-adv-x="1024" d="M1024 832v-416q0 -40 -28 -68t-68 -28t-68 28t-28 68v352h-64v-912q0 -46 -33 -79t-79 -33t-79 33t-33 79v464h-64v-464q0 -46 -33 -79t-79 -33t-79 33t-33 79v912h-64v-352q0 -40 -28 -68t-68 -28t-68 28t-28 68v416q0 80 56 136t136 56h640q80 0 136 -56t56 -136z M736 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
386
+ <glyph unicode="&#xf184;" d="M773 234l350 473q16 22 24.5 59t-6 85t-61.5 79q-40 26 -83 25.5t-73.5 -17.5t-54.5 -45q-36 -40 -96 -40q-59 0 -95 40q-24 28 -54.5 45t-73.5 17.5t-84 -25.5q-46 -31 -60.5 -79t-6 -85t24.5 -59zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
387
+ <glyph unicode="&#xf185;" horiz-adv-x="1792" d="M1472 640q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5t223.5 45.5t184 123t123 184t45.5 223.5zM1748 363q-4 -15 -20 -20l-292 -96v-306q0 -16 -13 -26q-15 -10 -29 -4 l-292 94l-180 -248q-10 -13 -26 -13t-26 13l-180 248l-292 -94q-14 -6 -29 4q-13 10 -13 26v306l-292 96q-16 5 -20 20q-5 17 4 29l180 248l-180 248q-9 13 -4 29q4 15 20 20l292 96v306q0 16 13 26q15 10 29 4l292 -94l180 248q9 12 26 12t26 -12l180 -248l292 94 q14 6 29 -4q13 -10 13 -26v-306l292 -96q16 -5 20 -20q5 -16 -4 -29l-180 -248l180 -248q9 -12 4 -29z" />
388
+ <glyph unicode="&#xf186;" d="M1262 233q-54 -9 -110 -9q-182 0 -337 90t-245 245t-90 337q0 192 104 357q-201 -60 -328.5 -229t-127.5 -384q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51q144 0 273.5 61.5t220.5 171.5zM1465 318q-94 -203 -283.5 -324.5t-413.5 -121.5q-156 0 -298 61 t-245 164t-164 245t-61 298q0 153 57.5 292.5t156 241.5t235.5 164.5t290 68.5q44 2 61 -39q18 -41 -15 -72q-86 -78 -131.5 -181.5t-45.5 -218.5q0 -148 73 -273t198 -198t273 -73q118 0 228 51q41 18 72 -13q14 -14 17.5 -34t-4.5 -38z" />
389
+ <glyph unicode="&#xf187;" horiz-adv-x="1792" d="M1088 704q0 26 -19 45t-45 19h-256q-26 0 -45 -19t-19 -45t19 -45t45 -19h256q26 0 45 19t19 45zM1664 896v-960q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v960q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1728 1344v-256q0 -26 -19 -45t-45 -19h-1536 q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1536q26 0 45 -19t19 -45z" />
390
+ <glyph unicode="&#xf188;" horiz-adv-x="1664" d="M1632 576q0 -26 -19 -45t-45 -19h-224q0 -171 -67 -290l208 -209q19 -19 19 -45t-19 -45q-18 -19 -45 -19t-45 19l-198 197q-5 -5 -15 -13t-42 -28.5t-65 -36.5t-82 -29t-97 -13v896h-128v-896q-51 0 -101.5 13.5t-87 33t-66 39t-43.5 32.5l-15 14l-183 -207 q-20 -21 -48 -21q-24 0 -43 16q-19 18 -20.5 44.5t15.5 46.5l202 227q-58 114 -58 274h-224q-26 0 -45 19t-19 45t19 45t45 19h224v294l-173 173q-19 19 -19 45t19 45t45 19t45 -19l173 -173h844l173 173q19 19 45 19t45 -19t19 -45t-19 -45l-173 -173v-294h224q26 0 45 -19 t19 -45zM1152 1152h-640q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5z" />
391
+ <glyph unicode="&#xf189;" horiz-adv-x="1920" d="M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z" />
392
+ <glyph unicode="&#xf18a;" horiz-adv-x="1792" d="M675 252q21 34 11 69t-45 50q-34 14 -73 1t-60 -46q-22 -34 -13 -68.5t43 -50.5t74.5 -2.5t62.5 47.5zM769 373q8 13 3.5 26.5t-17.5 18.5q-14 5 -28.5 -0.5t-21.5 -18.5q-17 -31 13 -45q14 -5 29 0.5t22 18.5zM943 266q-45 -102 -158 -150t-224 -12 q-107 34 -147.5 126.5t6.5 187.5q47 93 151.5 139t210.5 19q111 -29 158.5 -119.5t2.5 -190.5zM1255 426q-9 96 -89 170t-208.5 109t-274.5 21q-223 -23 -369.5 -141.5t-132.5 -264.5q9 -96 89 -170t208.5 -109t274.5 -21q223 23 369.5 141.5t132.5 264.5zM1563 422 q0 -68 -37 -139.5t-109 -137t-168.5 -117.5t-226 -83t-270.5 -31t-275 33.5t-240.5 93t-171.5 151t-65 199.5q0 115 69.5 245t197.5 258q169 169 341.5 236t246.5 -7q65 -64 20 -209q-4 -14 -1 -20t10 -7t14.5 0.5t13.5 3.5l6 2q139 59 246 59t153 -61q45 -63 0 -178 q-2 -13 -4.5 -20t4.5 -12.5t12 -7.5t17 -6q57 -18 103 -47t80 -81.5t34 -116.5zM1489 1046q42 -47 54.5 -108.5t-6.5 -117.5q-8 -23 -29.5 -34t-44.5 -4q-23 8 -34 29.5t-4 44.5q20 63 -24 111t-107 35q-24 -5 -45 8t-25 37q-5 24 8 44.5t37 25.5q60 13 119 -5.5t101 -65.5z M1670 1209q87 -96 112.5 -222.5t-13.5 -241.5q-9 -27 -34 -40t-52 -4t-40 34t-5 52q28 82 10 172t-80 158q-62 69 -148 95.5t-173 8.5q-28 -6 -52 9.5t-30 43.5t9.5 51.5t43.5 29.5q123 26 244 -11.5t208 -134.5z" />
393
+ <glyph unicode="&#xf18b;" d="M1133 -34q-171 -94 -368 -94q-196 0 -367 94q138 87 235.5 211t131.5 268q35 -144 132.5 -268t235.5 -211zM638 1394v-485q0 -252 -126.5 -459.5t-330.5 -306.5q-181 215 -181 495q0 187 83.5 349.5t229.5 269.5t325 137zM1536 638q0 -280 -181 -495 q-204 99 -330.5 306.5t-126.5 459.5v485q179 -30 325 -137t229.5 -269.5t83.5 -349.5z" />
394
+ <glyph unicode="&#xf18c;" horiz-adv-x="1408" d="M1402 433q-32 -80 -76 -138t-91 -88.5t-99 -46.5t-101.5 -14.5t-96.5 8.5t-86.5 22t-69.5 27.5t-46 22.5l-17 10q-113 -228 -289.5 -359.5t-384.5 -132.5q-19 0 -32 13t-13 32t13 31.5t32 12.5q173 1 322.5 107.5t251.5 294.5q-36 -14 -72 -23t-83 -13t-91 2.5t-93 28.5 t-92 59t-84.5 100t-74.5 146q114 47 214 57t167.5 -7.5t124.5 -56.5t88.5 -77t56.5 -82q53 131 79 291q-7 -1 -18 -2.5t-46.5 -2.5t-69.5 0.5t-81.5 10t-88.5 23t-84 42.5t-75 65t-54.5 94.5t-28.5 127.5q70 28 133.5 36.5t112.5 -1t92 -30t73.5 -50t56 -61t42 -63t27.5 -56 t16 -39.5l4 -16q12 122 12 195q-8 6 -21.5 16t-49 44.5t-63.5 71.5t-54 93t-33 112.5t12 127t70 138.5q73 -25 127.5 -61.5t84.5 -76.5t48 -85t20.5 -89t-0.5 -85.5t-13 -76.5t-19 -62t-17 -42l-7 -15q1 -5 1 -50.5t-1 -71.5q3 7 10 18.5t30.5 43t50.5 58t71 55.5t91.5 44.5 t112 14.5t132.5 -24q-2 -78 -21.5 -141.5t-50 -104.5t-69.5 -71.5t-81.5 -45.5t-84.5 -24t-80 -9.5t-67.5 1t-46.5 4.5l-17 3q-23 -147 -73 -283q6 7 18 18.5t49.5 41t77.5 52.5t99.5 42t117.5 20t129 -23.5t137 -77.5z" />
395
+ <glyph unicode="&#xf18d;" horiz-adv-x="1280" d="M1259 283v-66q0 -85 -57.5 -144.5t-138.5 -59.5h-57l-260 -269v269h-529q-81 0 -138.5 59.5t-57.5 144.5v66h1238zM1259 609v-255h-1238v255h1238zM1259 937v-255h-1238v255h1238zM1259 1077v-67h-1238v67q0 84 57.5 143.5t138.5 59.5h846q81 0 138.5 -59.5t57.5 -143.5z " />
396
+ <glyph unicode="&#xf18e;" d="M1152 640q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
397
+ <glyph unicode="&#xf190;" d="M1152 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-192q0 -14 -9 -23t-23 -9q-12 0 -24 10l-319 319q-9 9 -9 23t9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h352q13 0 22.5 -9.5t9.5 -22.5zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
398
+ <glyph unicode="&#xf191;" d="M1024 960v-640q0 -26 -19 -45t-45 -19q-20 0 -37 12l-448 320q-27 19 -27 52t27 52l448 320q17 12 37 12q26 0 45 -19t19 -45zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
399
+ <glyph unicode="&#xf192;" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5 t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
400
+ <glyph unicode="&#xf193;" horiz-adv-x="1664" d="M1023 349l102 -204q-58 -179 -210 -290t-339 -111q-156 0 -288.5 77.5t-210 210t-77.5 288.5q0 181 104.5 330t274.5 211l17 -131q-122 -54 -195 -165.5t-73 -244.5q0 -185 131.5 -316.5t316.5 -131.5q126 0 232.5 65t165 175.5t49.5 236.5zM1571 249l58 -114l-256 -128 q-13 -7 -29 -7q-40 0 -57 35l-239 477h-472q-24 0 -42.5 16.5t-21.5 40.5l-96 779q-2 16 6 42q14 51 57 82.5t97 31.5q66 0 113 -47t47 -113q0 -69 -52 -117.5t-120 -41.5l37 -289h423v-128h-407l16 -128h455q40 0 57 -35l228 -455z" />
401
+ <glyph unicode="&#xf194;" d="M1254 899q16 85 -21 132q-52 65 -187 45q-17 -3 -41 -12.5t-57.5 -30.5t-64.5 -48.5t-59.5 -70t-44.5 -91.5q80 7 113.5 -16t26.5 -99q-5 -52 -52 -143q-43 -78 -71 -99q-44 -32 -87 14q-23 24 -37.5 64.5t-19 73t-10 84t-8.5 71.5q-23 129 -34 164q-12 37 -35.5 69 t-50.5 40q-57 16 -127 -25q-54 -32 -136.5 -106t-122.5 -102v-7q16 -8 25.5 -26t21.5 -20q21 -3 54.5 8.5t58 10.5t41.5 -30q11 -18 18.5 -38.5t15 -48t12.5 -40.5q17 -46 53 -187q36 -146 57 -197q42 -99 103 -125q43 -12 85 -1.5t76 31.5q131 77 250 237 q104 139 172.5 292.5t82.5 226.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
402
+ <glyph unicode="&#xf195;" horiz-adv-x="1152" d="M1152 704q0 -191 -94.5 -353t-256.5 -256.5t-353 -94.5h-160q-14 0 -23 9t-9 23v611l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v93l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v250q0 14 9 23t23 9h160 q14 0 23 -9t9 -23v-181l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-93l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-487q188 13 318 151t130 328q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
403
+ <glyph unicode="&#xf196;" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-352v-352q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v352h-352q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h352v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-352h352q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832 q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
404
+ <glyph unicode="&#xf197;" horiz-adv-x="1792" />
405
+ <glyph unicode="&#xf198;" horiz-adv-x="1792" />
406
+ <glyph unicode="&#xf199;" horiz-adv-x="1792" />
407
+ <glyph unicode="&#xf19a;" horiz-adv-x="1792" />
408
+ <glyph unicode="&#xf19b;" horiz-adv-x="1792" />
409
+ <glyph unicode="&#xf19c;" horiz-adv-x="1792" />
410
+ <glyph unicode="&#xf19d;" horiz-adv-x="1792" />
411
+ <glyph unicode="&#xf19e;" horiz-adv-x="1792" />
412
+ <glyph unicode="&#xf500;" horiz-adv-x="1792" />
413
+ </font>
414
+ </defs></svg>
fonts/fontawesome-webfont.ttf ADDED
Binary file
fonts/fontawesome-webfont.woff ADDED
Binary file
images/colorbox/border.png ADDED
Binary file
images/colorbox/controls.png ADDED
Binary file
images/colorbox/ie6/borderBottomCenter.png ADDED
Binary file
images/colorbox/ie6/borderBottomLeft.png ADDED
Binary file
images/colorbox/ie6/borderBottomRight.png ADDED
Binary file
images/colorbox/ie6/borderMiddleLeft.png ADDED
Binary file
images/colorbox/ie6/borderMiddleRight.png ADDED
Binary file
images/colorbox/ie6/borderTopCenter.png ADDED
Binary file
images/colorbox/ie6/borderTopLeft.png ADDED
Binary file
images/colorbox/ie6/borderTopRight.png ADDED
Binary file
images/colorbox/loading.gif ADDED
Binary file
images/colorbox/loading_background.png ADDED
Binary file
images/colorbox/overlay.png ADDED
Binary file
images/facebook.png ADDED
Binary file
{img → images}/icon-adminmenu16-sprite.png RENAMED
File without changes
{img → images}/icon-adminpage32.png RENAMED
File without changes
images/twitter.png ADDED
Binary file
img/add.png DELETED
Binary file
img/remove.png DELETED
Binary file
inc/activation.php DELETED
@@ -1,19 +0,0 @@
1
- <?php /**
2
- * Plugin activation procedure
3
- */
4
-
5
- function wprss_activate() {
6
- // Activates the plugin and checks for compatible version of WordPress
7
- if ( version_compare( get_bloginfo( 'version' ), '3.0', '<' ) ) {
8
- deactivate_plugins ( basename( __FILE__ )); // Deactivate plugin
9
- wp_die( "This plugin requires WordPress version 3.0 or higher." );
10
- }
11
-
12
- if ( !wp_next_scheduled( 'wprss_generate_hook' ) ) {
13
- // Schedule to run hourly
14
- wp_schedule_event( time(), 'hourly', 'wprss_generate_hook' );
15
- }
16
-
17
- add_action( 'wprss_generate_hook', 'wp_rss_aggregator' );
18
- }
19
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/admin-options.php DELETED
@@ -1,172 +0,0 @@
1
- <?php
2
- /**
3
- * Plugin administration page
4
- *
5
- * Note: Wording of options and settings is confusing, due to the plugin originally only having
6
- * an 'options' page to enter feed sources, and now needing two screens, one for feed sources and one for
7
- * general settings. Might implement something cleaner in the future.
8
- */
9
-
10
- // Add the admin options and settings pages
11
-
12
- add_action( 'admin_menu', 'wprss_add_page' );
13
-
14
- function wprss_add_page() {
15
- add_menu_page( 'RSS Aggregator', 'RSS Aggregator', 'manage_options', 'wprss-aggregator',
16
- 'wprss_options_page', WPRSS_IMG . '/icon-adminmenu16-sprite.png' );
17
-
18
- add_submenu_page( 'wprss-aggregator', 'WP RSS Aggregator Settings', 'Settings', 'manage_options',
19
- 'wprss-aggregator-settings', 'wprss_settings_page' );
20
- }
21
-
22
-
23
- /**
24
- * Register and define options and settings
25
- */
26
-
27
- add_action( 'admin_init', 'wprss_admin_init' );
28
-
29
- function wprss_admin_init() {
30
- register_setting( 'wprss_options', 'wprss_options' );
31
- add_settings_section( 'wprss_main', '', 'wprss_section_text', 'wprss' );
32
-
33
- register_setting( 'wprss_settings', 'wprss_settings' );
34
-
35
-
36
- add_settings_section( 'wprss-settings-main', '', 'wprss_settings_section_text', 'wprss-aggregator-settings' );
37
-
38
- add_settings_field( 'wprss-settings-open-dd', 'Open links behaviour',
39
- 'wprss_setting_open_dd', 'wprss-aggregator-settings', 'wprss-settings-main');
40
-
41
- add_settings_field( 'wprss-settings-follow-dd', 'Set links as',
42
- 'wprss_setting_follow_dd', 'wprss-aggregator-settings', 'wprss-settings-main');
43
- }
44
-
45
-
46
- /**
47
- * Draw options page, used for adding feeds
48
- */
49
-
50
- function wprss_options_page() {
51
- ?>
52
- <div class="wrap">
53
- <?php screen_icon( 'wprss-aggregator' ); ?>
54
-
55
-
56
- <h2>WP RSS Aggregator Feed Sources</h2>
57
- <div id="options">
58
- <form action="options.php" method="post">
59
- <?php
60
-
61
- settings_fields( 'wprss_options' );
62
- do_settings_sections( 'wprss' );
63
- $options = get_option( 'wprss_options' );
64
- if ( !empty($options) ) {
65
- $size = count($options);
66
- for ( $i = 1; $i <= $size; $i++ ) {
67
- if( $i % 2 == 0 ) continue;
68
- echo "<div class='wprss-input'>";
69
-
70
- $key = key( $options );
71
-
72
- echo "<p><label class='textinput' for='$key'>" . wprss_convert_key( $key ) . "</label>
73
- <input id='$key' class='wprss-input' size='100' name='wprss_options[$key]' type='text' value='$options[$key]' /></p>";
74
-
75
- next( $options );
76
-
77
- $key = key( $options );
78
-
79
- echo "<p><label class='textinput' for='$key'>" . wprss_convert_key( $key ) . "</label>
80
- <input id='$key' class='wprss-input' size='100' name='wprss_options[$key]' type='text' value='$options[$key]' /></p>";
81
-
82
- next( $options );
83
- echo "</div>";
84
-
85
- }
86
- }
87
-
88
- ?>
89
- <div id="buttons"><a href="#" id="add"><img src="<?php echo WPRSS_IMG; ?>/add.png"></a>
90
- <a href="#" id="remove"><img src="<?php echo WPRSS_IMG; ?>/remove.png"></a></div>
91
- <p class="submit"><input type="submit" value="Save Settings" name="submit" class="button-primary"></p>
92
-
93
- </form>
94
- </div> <!-- end options -->
95
- </div> <!-- end wrap -->
96
- <?php
97
- }
98
-
99
-
100
-
101
-
102
-
103
- /**
104
- * Explain the options section
105
- */
106
-
107
- function wprss_section_text() {
108
- echo '<p>Enter a name and URL for each of your feeds. The name is used just for your reference.</p>';
109
- }
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- /**
122
- * Build the plugin settings page, used to save general settings like whether a link should be follow or no follow
123
- */
124
-
125
- function wprss_settings_page() {
126
- ?>
127
- <div class="wrap">
128
- <?php screen_icon( 'wprss-aggregator' ); ?>
129
-
130
- <h2>WP RSS Aggregator Settings</h2>
131
-
132
- <form action="options.php" method="post">
133
- <?php settings_fields( 'wprss_settings' ) ?>
134
- <?php do_settings_sections( 'wprss-aggregator-settings' ); ?>
135
- <p class="submit"><input type="submit" value="Save Settings" name="submit" class="button-primary"></p>
136
- </form>
137
- </div>
138
- <?php
139
- }
140
-
141
-
142
- // Draw the section header
143
- function wprss_settings_section_text() {
144
- // echo '<p>Enter your settings here.</p>';
145
- }
146
-
147
- // Follow or No Follow Dropdown
148
- function wprss_setting_follow_dd() {
149
- $options = get_option( 'wprss_settings' );
150
- $items = array( "No follow", "Follow" );
151
- echo "<select id='follow-dd' name='wprss_settings[follow_dd]'>";
152
- foreach( $items as $item ) {
153
- $selected = ( $options['follow_dd'] == $item) ? 'selected="selected"' : '';
154
- echo "<option value='$item' $selected>$item</option>";
155
- }
156
- echo "</select>";
157
- }
158
-
159
- // Link open setting Dropdown
160
- function wprss_setting_open_dd() {
161
- $options = get_option( 'wprss_settings' );
162
- $items = array( "Lightbox", "New window", "None" );
163
- echo "<select id='open-dd' name='wprss_settings[open_dd]'>";
164
- foreach( $items as $item ) {
165
- $selected = ( $options['open_dd'] == $item) ? 'selected="selected"' : '';
166
- echo "<option value='$item' $selected>$item</option>";
167
- }
168
- echo "</select>";
169
- }
170
-
171
-
172
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/deactivation.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- /**
3
- * Plugin deactivation procedure
4
- */
5
-
6
-
7
- function wprss_deactivate() {
8
- // on deactivation remove the cron job
9
- if ( wp_next_scheduled( 'wprss_generate_hook' ) )
10
- wp_clear_scheduled_hook( 'wprss_generate_hook' );
11
- }
12
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
inc/shortcodes.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
- /**
3
- * Set up shortcodes and call the main function for output
4
- */
5
-
6
- // Register shortcodes
7
- add_shortcode( 'wp_rss_aggregator', 'wprss_shortcode');
8
- add_shortcode( 'wp-rss-aggregator', 'wprss_shortcode');
9
-
10
- function wprss_shortcode( $atts ) {
11
- if ( !empty ($atts) ) {
12
- foreach ( $atts as $key => &$val ) {
13
- $val = html_entity_decode($val);
14
- }
15
- }
16
- wp_rss_aggregator( $atts );
17
- }
18
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/OPML.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * The WPRSS_OPML Class represents an OPML document.
5
+ * It is constructed using a file, which it parses upon creation.
6
+ *
7
+ * @since 3.3
8
+ * @package WPRSSAggregator
9
+ */
10
+ class WPRSS_OPML {
11
+
12
+
13
+ public $file;
14
+ public $head;
15
+ public $body;
16
+
17
+ /**
18
+ * Constructor: Parses the given XML file as an OPML
19
+ *
20
+ * @since 3.3
21
+ * @param $file The file to be parsed into a WPRSS_OPML object
22
+ */
23
+ public function __construct( $file ) {
24
+ // Initialize Properties
25
+ $this->file = $file;
26
+ $this->head = array();
27
+ $this->body = array();
28
+ // Begin Parsing
29
+ try {
30
+ // Wrap file data in a SimpleXMLElement
31
+ $xml = simplexml_load_file( $this->file );
32
+
33
+ // Check if the head section exists before parsing it
34
+ if ( $xml->head )
35
+ $this->head = WPRSS_OPML::parse_opml_head( $xml->head->children() );
36
+ // Check if the body section exists before parsing it
37
+ if ( $xml->body )
38
+ $this->body = WPRSS_OPML::parse_opml_body_element( $xml->body->outline );
39
+
40
+ } catch (Exception $e) {
41
+ // If an exception is caught. Throw an error message
42
+ throw new Exception( __( 'An error occured: The file might not be a valid OPML file or is corrrupt. ', 'wprss' ), 1);
43
+ }
44
+ }
45
+
46
+
47
+ /**
48
+ * Parses the given variable as an OPML head section
49
+ *
50
+ * @since 3.3
51
+ * @param $head The head section of an OPML file ( SimpleXMLElement )
52
+ * @return array An associative array containing SimpleXMLElements for each tag in the given head section.
53
+ */
54
+ private static function parse_opml_head( $head ) {
55
+ $parsed_data = array();
56
+
57
+ foreach ( $head as $property ) {
58
+ $parsed_data[ $property->getName() ] = $property;
59
+ }
60
+
61
+ return $parsed_data;
62
+ }
63
+
64
+
65
+ /**
66
+ * Iterates through the elements given OPML/XML data and parses
67
+ * each element, and recurses where necessary, into an associative
68
+ * array that mimics OPML structure.
69
+ * @since 1.0
70
+ * @return array The Parsed OPML as an associative array
71
+ */
72
+ private static function parse_opml_body_element( $element ) {
73
+ $parsed_data = array();
74
+
75
+ // Iterates through each child element in the given element
76
+ foreach ( $element as $child_element ) {
77
+
78
+ // If child element has type attribute set to 'rss' or has the 'xmlUrl' attribute
79
+ if ( $child_element['type'] === 'rss' || isset( $child_element['xmlUrl'] ) ) {
80
+ // Parse the child element and add it to the parsed data array
81
+ $parsed_data[] = WPRSS_OPML::SimpleXMLElement_to_OPMLElement( $child_element );
82
+ }
83
+ // Otherwise, if the child element has children 'outline' elements
84
+ elseif ( $child_element->outline ) {
85
+ // Recurse using this child element as parameter, and add the result to the parsed data array
86
+ $parsed_data[ (string) $child_element['text'] ] = WPRSS_OPML::parse_opml_body_element( $child_element->outline );
87
+ }
88
+
89
+ }
90
+
91
+ return $parsed_data;
92
+ }
93
+
94
+
95
+ /**
96
+ * Parses a SimpleXMLElement Object into an OPML element compliant
97
+ * associative array.
98
+ * @since 1.0
99
+ * @return array An array in OPML element format
100
+ */
101
+ private static function SimpleXMLElement_to_OPMLElement( $element ) {
102
+ // Copy attribute data from $element to a new associative array
103
+ $result = array(
104
+ 'text' => (string) $element['text'],
105
+ 'title' => (string) $element['title'],
106
+ 'htmlUrl' => (string) $element['htmlUrl'],
107
+ 'xmlUrl' => (string) $element['xmlUrl'],
108
+ 'description' => (string) $element['description']
109
+ );
110
+
111
+ /*
112
+ * Check for existence of htmlUrl and xmlUrl.
113
+ * If not found, use lowercased attribute names.
114
+ */
115
+ if ( !isset( $element['htmlUrl'] ) )
116
+ $result['htmlUrl'] = $element['htmlurl'];
117
+ if ( !isset( $element['xmlUrl'] ) )
118
+ $result['xmlUrl'] = $element['xmlurl'];
119
+
120
+ // Return the result OPML Element
121
+ return $result;
122
+ }
123
+
124
+ }
125
+
126
+ ?>
includes/admin-ajax-notice.php ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Serves up a notice to leave a review for this plugin
5
+ *
6
+ * @link http://wp.tutsplus.com/tutorials/creative-coding/a-primer-on-ajax-in-the-wordpress-dashboard-requesting-and-responding/
7
+ * @link http://wptheming.com/2011/08/admin-notices-in-wordpress/
8
+ *
9
+ * @since 3.0
10
+ *
11
+ */
12
+
13
+
14
+ add_action( 'admin_init', 'wprss_admin_notice' );
15
+ /**
16
+ * Serves up a notice to leave a review for this plugin
17
+ *
18
+ * @since 3.0
19
+ */
20
+ function wprss_admin_notice() {
21
+ global $pagenow, $typenow;
22
+ if ( empty( $typenow ) && !empty( $_GET['post'] ) ) {
23
+ $post = get_post( $_GET['post'] );
24
+ if ( $post !== NULL && !is_wp_error( $post ) )
25
+ $typenow = $post->post_type;
26
+ }
27
+ $notices_settings = get_option( 'wprss_settings_notices' );
28
+
29
+ // Display the admin notice only if it hasn't been hidden and we are on a screen of WP RSS Aggregator
30
+ if ( ( false == $notices_settings ) && ( ( $typenow == 'wprss_feed' ) || ( $typenow == 'wprss_feed_item' ) ) ) {
31
+ add_action( 'admin_notices', 'wprss_display_admin_notice' );
32
+ }
33
+
34
+ }
35
+
36
+
37
+ /**
38
+ * Renders the administration notice. Also renders a hidden nonce used for security when processing the Ajax request.
39
+ *
40
+ * @since 3.0
41
+ */
42
+ function wprss_display_admin_notice() {
43
+
44
+ $html = '<div id="ajax-notification" class="updated">';
45
+ $html .= '<p>';
46
+ $html .= __( 'Did you know that you can get more RSS features? Excerpts, thumbnails, keyword filtering, importing into posts and more... Check out the <a target="_blank" href="http://www.wprssaggregator.com/extensions"><strong>extensions</strong></a> page.
47
+ <a href="javascript:;" id="dismiss-ajax-notification" style="float:right;">Dismiss this notification</a>', 'wprss' );
48
+ $html .= '</p>';
49
+ $html .= '<span id="ajax-notification-nonce" class="hidden">' . wp_create_nonce( 'ajax-notification-nonce' ) . '</span>';
50
+ $html .= '</div><!-- /.updated -->';
51
+
52
+ echo $html;
53
+ }
54
+
55
+
56
+ add_action( 'wp_ajax_wprss_hide_admin_notification', 'wprss_hide_admin_notification' );
57
+ /**
58
+ * JavaScript callback used to hide the administration notice when the 'Dismiss' anchor is clicked on the front end.
59
+ *
60
+ * @since 3.0
61
+ */
62
+ function wprss_hide_admin_notification() {
63
+
64
+ // First, check the nonce to make sure it matches what we created when displaying the message.
65
+ // If not, we won't do anything.
66
+ if( wp_verify_nonce( $_REQUEST['nonce'], 'ajax-notification-nonce' ) ) {
67
+
68
+ // If the update to the option is successful, send 1 back to the browser;
69
+ // Otherwise, send 0.
70
+ $general_settings = get_option( 'wprss_settings_notices' );
71
+ $general_settings = true;
72
+
73
+ if( update_option( 'wprss_settings_notices', $general_settings ) ) {
74
+ die( '1' );
75
+ } else {
76
+ die( '0' );
77
+ }
78
+ }
79
+ }
80
+
81
+
82
+
83
+ /**
84
+ * Checks if the addon notices option exists in the database, and creates it
85
+ * if it does not.
86
+ *
87
+ * @return The addon notices option
88
+ * @since 3.4.2
89
+ */
90
+ function wprss_check_addon_notice_option() {
91
+ $option = get_option( 'wprss_addon_notices' );
92
+ if ( $option === FALSE ) {
93
+ update_option( 'wprss_addon_notices', array() );
94
+ return array();
95
+ }
96
+ return $option;
97
+ }
98
+
99
+
100
+
101
+ /**
102
+ * This function is called through AJAX to dismiss a particular addon notification.
103
+ *
104
+ * @since 3.4.2
105
+ */
106
+ function wprss_dismiss_addon_notice() {
107
+ $addon = ( isset( $_POST['addon'] ) === TRUE )? $_POST['addon'] : null;
108
+ if ( $addon === null ) {
109
+ echo 'false';
110
+ die();
111
+ }
112
+ $notice = ( isset( $_POST['notice'] ) === TRUE )? $_POST['notice'] : null;
113
+ if ( $notice === null ){
114
+ echo 'false';
115
+ die();
116
+ }
117
+
118
+ $notices = wprss_check_addon_notice_option();
119
+ if ( isset( $notices[$addon] ) === FALSE ) {
120
+ $notices[$addon] = array();
121
+ }
122
+ if ( isset( $notices[$addon][$addon] ) === FALSE ) {
123
+ $notices[$addon][$notice] = '1';
124
+ }
125
+ update_option( 'wprss_addon_notices', $notices );
126
+ echo 'true';
127
+
128
+ die();
129
+ }
130
+
131
+ add_action( 'wp_ajax_wprss_dismiss_addon_notice', 'wprss_dismiss_addon_notice' );
132
+
133
+
134
+
135
+
136
+ /**
137
+ * AJAX action for the tracking pointer
138
+ *
139
+ * @since 3.6
140
+ */
141
+ function wprss_tracking_ajax_opt() {
142
+ if ( isset( $_POST['opted'] ) ){
143
+ $opted = $_POST['opted'];
144
+ $settings = get_option( 'wprss_settings_general' );
145
+ $settings['tracking'] = $opted;
146
+ update_option( 'wprss_settings_general', $settings );
147
+ }
148
+ die();
149
+ }
150
+
151
+ add_action( 'wp_ajax_wprss_tracking_ajax_opt', 'wprss_tracking_ajax_opt' );
includes/admin-dashboard.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adds a dashboard page for the admin
4
+ * It is triggered on plugin activation and upon
5
+ * update.
6
+ *
7
+ * @since 3.3
8
+ */
9
+
10
+
11
+ // Exit if the page is accessed directly
12
+ if ( ! defined( 'ABSPATH' ) ) exit;
13
+
14
+
15
+ add_action( 'admin_menu', 'wprss_admin_menu' );
16
+ /**
17
+ * Adds a dashboard page.
18
+ * Usde to add the Welcome Page to the dashboard.
19
+ *
20
+ * @since 3.3
21
+ */
22
+ function wprss_admin_menu() {
23
+ // Welcome Page
24
+ add_dashboard_page(
25
+ __( 'Welcome to WP RSS Aggregator', 'wprss' ),
26
+ __( 'Welcome to WP RSS Aggregator', 'wprss' ),
27
+ 'manage_options',
28
+ 'wprss-welcome',
29
+ 'wprss_show_welcome_screen'
30
+ );
31
+ }
32
+
33
+
34
+ /**
35
+ * Callback for the Welcome Dashboard page.
36
+ * It merely includes the contents of the admin-welcome.php file,
37
+ * which contains the markup for the welcome screen.
38
+ *
39
+ * @since 3.3
40
+ */
41
+ function wprss_show_welcome_screen() {
42
+ include_once( 'admin-welcome.php' );
43
+ }
44
+
45
+
46
+ add_action( 'admin_init', 'wprss_welcome' );
47
+ /**
48
+ * Detects an activation and redirects the user to
49
+ * the welcome page.
50
+ *
51
+ * @since 3.3
52
+ */
53
+ function wprss_welcome() {
54
+ // Bail if no activation redirect
55
+ if ( ! get_transient( '_wprss_activation_redirect' ) )
56
+ return;
57
+
58
+ // Delete the redirect transient
59
+ delete_transient( '_wprss_activation_redirect' );
60
+
61
+ // Bail if activating from network, or bulk
62
+ if ( is_network_admin() || isset( $_GET['activate-multi'] ) )
63
+ return;
64
+
65
+ wp_safe_redirect( admin_url( 'index.php?page=wprss-welcome' ) );
66
+ exit;
67
+ }
68
+
69
+
70
+ add_action( 'admin_head', 'wprss_admin_head' );
71
+ /**
72
+ * Removes the dashboard welcome page from the dashboard
73
+ * menu, and adds some styles for the welcome page.
74
+ *
75
+ * @since 3.3
76
+ */
77
+ function wprss_admin_head() {
78
+ remove_submenu_page( 'index.php', 'wprss-welcome' );
79
+ ?>
80
+ <style type="text/css" media="screen">
81
+ /*<![CDATA[*/
82
+
83
+ /*.wprss-welcome-table > tbody > tr > td {
84
+ line-height: 30px;
85
+ }
86
+ .wprss-welcome-table > tbody > tr {
87
+ font-size: 1.3em;
88
+ font-weight: normal;
89
+ }
90
+ .wprss-welcome-table > thead > tr > th{
91
+ font-size: 2em;
92
+ border-bottom: 8px solid #999;
93
+ }*/
94
+
95
+ /*]]>*/
96
+ </style>
97
+ <?php
98
+ }
includes/admin-debugging.php ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin debugging
4
+ *
5
+ * @package WPRSSAggregator
6
+ * @subpackage Includes
7
+ * @since 3.0
8
+ * @author Jean Galea <info@jeangalea.com>
9
+ * @copyright Copyright(c) 2012-2013, Jean Galea
10
+ * @link http://www.wpmayor.com
11
+ * @license http://www.gnu.org/licenses/gpl.html
12
+ */
13
+
14
+ /*
15
+ //allow redirection, even if my theme starts to send output to the browser
16
+ add_action( 'admin_init', 'wprss_do_output_buffer' );
17
+ function wprss_do_output_buffer() {
18
+ //ob_start();
19
+ }*/
20
+
21
+
22
+ /**
23
+ * Returns the debugging operations array
24
+ *
25
+ * @since 3.4.6
26
+ */
27
+ function wprss_get_debug_operations() {
28
+ return apply_filters(
29
+ 'wprss_debug_operations',
30
+ array(
31
+ 'update-feeds' => array(
32
+ 'nonce' => 'wprss-update-feed-items',
33
+ 'run' => 'wprss_fetch_insert_all_feed_items',
34
+ 'redirect' => 'edit.php?post_type=wprss_feed&page=wprss-debugging&debug_message=1',
35
+ 'render' => 'wprss_debug_update_feeds',
36
+ ),
37
+
38
+ 'reimport-feeds' => array(
39
+ 'nonce' => 'wprss-delete-import-feed-items',
40
+ 'run' => 'wprss_feed_reset',
41
+ 'redirect' => 'edit.php?post_type=wprss_feed&page=wprss-debugging&debug_message=2',
42
+ 'render' => 'wprss_debug_reimport_feeds',
43
+ )
44
+ )
45
+ );
46
+ }
47
+
48
+
49
+ add_action( 'init', 'wprss_debug_operations' );
50
+ /**
51
+ * Performs debug operations, depending on the POST request.
52
+ *
53
+ * @since 3.3
54
+ */
55
+ function wprss_debug_operations(){
56
+
57
+ // Define the debugging operations
58
+ $debug_operations = wprss_get_debug_operations();
59
+
60
+ // Check which of the operations needs to be run
61
+ foreach ( $debug_operations as $id => $operation ) {
62
+ // If page loading after having clicked 'Update all fields'
63
+ if ( isset( $_POST[ $id ] ) && check_admin_referer( $operation['nonce'] ) ) {
64
+ call_user_func( $operation['run'] );
65
+ wp_redirect( $operation['redirect'] );
66
+ break;
67
+ }
68
+ }
69
+ }
70
+
71
+
72
+ /**
73
+ * Build the Update Feeds section
74
+ *
75
+ * @since 3.4.6
76
+ */
77
+ function wprss_debug_update_feeds() {
78
+ ?>
79
+ <h3><?php _e( 'Update All Feeds Now', 'wprss' ); ?></h3>
80
+ <p><?php _e( 'Click the blue button to update all feed items now. This will check all feed sources for any new feed items.', 'wprss' ); ?>
81
+ <br><?php _e( 'Existing feed items will not be modified.', 'wprss' ); ?>
82
+ </p>
83
+ <p><?php _e( '<strong>Note:</strong> This might take more than a few seconds if you have many feed sources.', 'wprss' ); ?></p>
84
+
85
+ <form action="edit.php?post_type=wprss_feed&page=wprss-debugging" method="post">
86
+
87
+ <?php wp_nonce_field( 'wprss-update-feed-items' );
88
+ submit_button( __( 'Update all feeds', 'wprss' ), 'primary', 'update-feeds', true ); ?>
89
+
90
+ </form>
91
+ <?php
92
+ }
93
+
94
+
95
+ /**
96
+ * Build the Update Feeds section
97
+ *
98
+ * @since 3.4.6
99
+ */
100
+ function wprss_debug_reimport_feeds() {
101
+ ?>
102
+ <h3><?php _e( 'Delete and Re-import Feeds', 'wprss' ); ?></h3>
103
+ <p><?php _e( 'Click the red button to delete all imported feed items and re-import them.', 'wprss' ); ?></p>
104
+ <p><?php _e( '<em><strong>Note:</strong> This is a server-intensive process and should only be used when instructed to by support staff.</em>', 'wprss' ); ?></p>
105
+
106
+ <form action="edit.php?post_type=wprss_feed&page=wprss-debugging" method="post">
107
+
108
+ <?php wp_nonce_field( 'wprss-delete-import-feed-items' );
109
+ submit_button( __( 'Delete and Re-import all feeds', 'wprss' ), 'button-red', 'reimport-feeds', true ); ?>
110
+
111
+ </form>
112
+ <?php
113
+ }
114
+
115
+
116
+ /**
117
+ * Build the debugging page
118
+ *
119
+ * @since 3.0
120
+ */
121
+ function wprss_debugging_page_display() {
122
+ $debug_messages = apply_filters(
123
+ 'wprss_debug_messages',
124
+ array(
125
+ '1' => 'wprss_debugging_admin_notice_update_feeds',
126
+ '2' => 'wprss_debugging_admin_notice_reimport_feeds'
127
+ )
128
+ );
129
+
130
+ ?>
131
+
132
+ <div class="wrap">
133
+ <?php screen_icon( 'wprss-aggregator' ); ?>
134
+
135
+ <h2><?php _e( 'Debugging', 'wprss' ); ?></h2>
136
+ <?php
137
+ if ( isset( $_GET['debug_message'] )) {//&& ( check_admin_referer( 'wprss-delete-import-feed-items' ) || check_admin_referer( 'wprss-update-feed-items' ) ) ) {
138
+ $message = $_GET['debug_message'];
139
+
140
+ foreach ( $debug_messages as $id => $callback) {
141
+ if ( $message == $id ) {
142
+ call_user_func( $callback );
143
+ break;
144
+ }
145
+ }
146
+ }
147
+
148
+ do_action( 'wprss_debugging_before' );
149
+
150
+ $debug_operations = wprss_get_debug_operations();
151
+ foreach( $debug_operations as $id => $data ) {
152
+ if ( isset( $data['render'] ) )
153
+ call_user_func( $data['render'] );
154
+ }
155
+
156
+ do_action( 'wprss_debugging_after' );
157
+
158
+ wprss_system_info(); ?>
159
+ </div>
160
+ <?php
161
+ }
162
+
163
+ /**
164
+ * Output admin notice that feeds have been updated successfully
165
+ *
166
+ * @since 3.0
167
+ */
168
+ function wprss_debugging_admin_notice_update_feeds() {
169
+ echo '<div class="updated"><p>Feeds are being updated in the background.</p></div>';
170
+ }
171
+
172
+ /**
173
+ * Output admin notice that feeds have been deleted and re-imported successfully
174
+ *
175
+ * @since 3.0
176
+ */
177
+ function wprss_debugging_admin_notice_reimport_feeds() {
178
+ echo '<div class="updated"><p>Feeds deleted and are being re-imported in the background.</p></div>';
179
+ }
includes/admin-display.php ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_filter( 'manage_edit-wprss_feed_columns', 'wprss_set_feed_custom_columns');
4
+ /**
5
+ * Set up the custom columns for the wprss_feed list
6
+ *
7
+ * @since 2.0
8
+ */
9
+ function wprss_set_feed_custom_columns( $columns ) {
10
+
11
+ $columns = array(
12
+ 'cb' => '<input type="checkbox" />',
13
+ 'title' => __( 'Name', 'wprss' ),
14
+ 'url' => __( 'URL', 'wprss' ),
15
+ // 'description' => __( 'Description', 'wprss' )
16
+ );
17
+ $columns = apply_filters( 'wprss_set_feed_custom_columns', $columns );
18
+ $columns['id'] = __( 'ID', 'wprss' );
19
+ // Columns to add when feed is not trashed
20
+ if ( !isset( $_GET['post_status'] ) || $_GET['post_status'] !== 'trash' ) {
21
+ $columns['next-update'] = __( 'Next Update', 'wprss' );
22
+ $columns['state'] = __( 'State', 'wprss' );
23
+ $columns['feed-count'] = __( apply_filters( 'wprss_feed_items_count_column', 'Imported items' ), 'wprss' );
24
+ }
25
+ return $columns;
26
+ }
27
+
28
+
29
+ add_action( "manage_wprss_feed_posts_custom_column", "wprss_show_custom_columns", 10, 2 );
30
+ /**
31
+ * Show up the custom columns for the wprss_feed list
32
+ *
33
+ * @since 2.0
34
+ */
35
+ function wprss_show_custom_columns( $column, $post_id ) {
36
+
37
+ switch ( $column ) {
38
+ case 'url':
39
+ $url = get_post_meta( $post_id, 'wprss_url', true);
40
+ echo '<a href="' . esc_url($url) . '">' . esc_url($url) . '</a>';
41
+ break;
42
+ case 'description':
43
+ $description = get_post_meta( $post_id, 'wprss_description', true);
44
+ echo esc_html( $description );
45
+ break;
46
+ case 'id':
47
+ echo esc_html( $post_id );
48
+ break;
49
+ case 'state':
50
+ $active = wprss_is_feed_source_active( $post_id );
51
+ $text = ( $active )? 'Active' : 'Paused';
52
+ $button = ( $active )? 'Pause this feed source' : 'Activate this feed source';
53
+ $icon = ( $active )? 'pause' : 'play';
54
+ $value = ( $active )? 'paused' : 'active';
55
+ $indicator = ( $active )? 'green' : 'grey';
56
+
57
+ ?>
58
+ <p>
59
+ <span class="wprss-indicator-<?php echo $indicator; ?>" title="<?php echo $text; ?>">
60
+ <i class="fa fa-circle"></i>
61
+ </span>
62
+ <input type="hidden" name="wprss-redirect" value="1" />
63
+ <button type="submit" class='button-secondary' title="<?php echo $button; ?>" name="wprss-feed-id" value="<?php echo $post_id; ?>">
64
+ <i class='fa fa-<?php echo $icon; ?>'></i>
65
+ </button>
66
+ </p>
67
+ <?php
68
+
69
+ break;
70
+
71
+ case 'next-update':
72
+ $interval = get_post_meta( $post_id, 'wprss_update_interval', TRUE );
73
+ $timestamp = wprss_get_next_feed_source_update( $post_id );
74
+ // If using the global interval, get the timestamp of the next glboal update
75
+ if ( $interval === wprss_get_default_feed_source_update_interval() || $interval === '' ) {
76
+ $timestamp = wp_next_scheduled( 'wprss_fetch_all_feeds_hook', array() );
77
+ }
78
+ ?>
79
+
80
+ <p>
81
+ <code>
82
+ <?php if ( ! wprss_is_feed_source_active( $post_id ) ): ?>
83
+ Paused
84
+ <?php elseif ( $timestamp === FALSE ) : ?>
85
+ None
86
+ <?php else: ?>
87
+ <?php echo human_time_diff( $timestamp, time() ); ?>
88
+ <?php endif; ?>
89
+ </code>
90
+ </p>
91
+
92
+ <?php
93
+
94
+ break;
95
+
96
+ case 'feed-count':
97
+ $items = wprss_get_feed_items_for_source( $post_id );
98
+ echo '<p>' . $items->post_count . '</p>';
99
+ break;
100
+ }
101
+ }
102
+
103
+
104
+ /**
105
+ * Make the custom columns sortable for wprss_feed post type
106
+ *
107
+ * @since 2.0
108
+ */
109
+ function wprss_feed_sortable_columns() {
110
+ $sortable_columns = array(
111
+ // meta column id => sortby value used in query
112
+ 'title' => 'title',
113
+ );
114
+ return apply_filters( 'wprss_feed_sortable_columns', $sortable_columns );
115
+ }
116
+
117
+
118
+ add_action( 'pre_get_posts', 'wprss_feed_source_order' );
119
+ /**
120
+ * Change order of feed sources to alphabetical ascending according to feed name
121
+ *
122
+ * @since 2.2
123
+ */
124
+ function wprss_feed_source_order( $query ) {
125
+ if ( ! is_admin() ) {
126
+ return;
127
+ }
128
+
129
+ $post_type = $query->get('post_type');
130
+
131
+ if ( $post_type == 'wprss_feed' ) {
132
+ /* Post Column: e.g. title */
133
+ if ( $query->get( 'orderby' ) == '' ) {
134
+ $query->set( 'orderby', 'title' );
135
+ }
136
+ /* Post Order: ASC / DESC */
137
+ if( $query->get( 'order' ) == '' ){
138
+ $query->set( 'order', 'ASC' );
139
+ }
140
+ }
141
+ }
142
+
143
+
144
+ add_filter( 'manage_edit-wprss_feed_item_columns', 'wprss_set_feed_item_custom_columns');
145
+ /**
146
+ * Set up the custom columns for the wprss_feed source list
147
+ *
148
+ * @since 2.0
149
+ */
150
+ function wprss_set_feed_item_custom_columns( $columns ) {
151
+
152
+ $columns = array (
153
+ 'cb' => '<input type="checkbox" />',
154
+ 'title' => __( 'Name', 'wprss' ),
155
+ 'permalink' => __( 'Permalink', 'wprss' ),
156
+ 'publishdate' => __( 'Date published', 'wprss' ),
157
+ 'source' => __( 'Source', 'wprss' )
158
+ );
159
+ return apply_filters( 'wprss_set_feed_item_custom_columns', $columns );
160
+ }
161
+
162
+
163
+ add_action( "manage_wprss_feed_item_posts_custom_column", "wprss_show_feed_item_custom_columns", 10, 2 );
164
+ /**
165
+ * Show up the custom columns for the wprss_feed list
166
+ *
167
+ * @since 2.0
168
+ */
169
+ function wprss_show_feed_item_custom_columns( $column, $post_id ) {
170
+
171
+ switch ( $column ) {
172
+ case "permalink":
173
+ $url = get_post_meta( $post_id, 'wprss_item_permalink', true);
174
+ echo '<a href="' . $url . '">' . $url. '</a>';
175
+ break;
176
+
177
+ case "publishdate":
178
+ $item_date = get_post_meta( get_the_ID(), 'wprss_item_date', true );
179
+ $item_date = ( $item_date === '' )? date('U') : $item_date;
180
+ $publishdate = date( 'Y-m-d H:i:s', $item_date ) ;
181
+ echo $publishdate;
182
+ break;
183
+
184
+ case "source":
185
+ $query = new WP_Query();
186
+ $source = '<a href="' . get_edit_post_link( get_post_meta( $post_id, 'wprss_feed_id', true ) ) . '">' . get_the_title( get_post_meta( $post_id, 'wprss_feed_id', true ) ) . '</a>';
187
+ echo $source;
188
+ break;
189
+ }
190
+ }
191
+
192
+
193
+ add_filter( "manage_edit-wprss_feed_item_sortable_columns", "wprss_feed_item_sortable_columns" );
194
+ /**
195
+ * Make the custom columns sortable
196
+ *
197
+ * @since 2.0
198
+ */
199
+ function wprss_feed_item_sortable_columns() {
200
+ $sortable_columns = array(
201
+ // meta column id => sortby value used in query
202
+ 'publishdate' => 'publishdate',
203
+ 'source' => 'source'
204
+ );
205
+ return apply_filters( 'wprss_feed_item_sortable_columns', $sortable_columns );
206
+ }
207
+
208
+
209
+ add_action( 'pre_get_posts', 'wprss_feed_item_orderby' );
210
+ /**
211
+ * Change ordering of posts on wprss_feed_item screen
212
+ *
213
+ * @since 2.0
214
+ */
215
+ function wprss_feed_item_orderby( $query ) {
216
+ if( ! is_admin() )
217
+ return;
218
+
219
+ $post_type = $query->get('post_type');
220
+
221
+ // If we're on the feed listing admin page
222
+ if ( $post_type == 'wprss_feed_item') {
223
+ // Set general orderby to date the feed item was published
224
+ $query->set('orderby','publishdate');
225
+ // If user clicks on the reorder link, implement reordering
226
+ $orderby = $query->get( 'orderby');
227
+ if( 'publishdate' == $orderby ) {
228
+ $query->set( 'meta_key', 'wprss_item_date' );
229
+ $query->set( 'orderby', 'meta_value_num' );
230
+ }
231
+ }
232
+ }
233
+
234
+
235
+ add_filter( 'post_updated_messages', 'wprss_feed_updated_messages' );
236
+ /**
237
+ * Change default notification message when new feed is added or updated
238
+ *
239
+ * @since 2.0
240
+ */
241
+ function wprss_feed_updated_messages( $messages ) {
242
+ global $post, $post_ID;
243
+
244
+ $messages[ 'wprss_feed' ] = array(
245
+ 0 => '', // Unused. Messages start at index 1.
246
+ 1 => __( 'Feed source updated. ', 'wprss' ),
247
+ 2 => __( 'Custom field updated.', 'wprss' ),
248
+ 3 => __( 'Custom field deleted.', 'wprss' ),
249
+ 4 => __( 'Feed source updated.', 'wprss' ),
250
+ 5 => '',
251
+ 6 => __( 'Feed source saved.', 'wprss' ),
252
+ 7 => __( 'Feed source saved.', 'wprss' ),
253
+ 8 => __( 'Feed source submitted.', 'wprss' ),
254
+ 9 => '',
255
+ 10 => __( 'Feed source updated.', 'wprss' )
256
+ );
257
+
258
+ return apply_filters( 'wprss_feed_updated_messages', $messages );
259
+ }
260
+
261
+
262
+ add_filter( 'post_row_actions', 'wprss_remove_row_actions', 10, 1 );
263
+ /**
264
+ * Remove actions row for imported feed items, we don't want them to be editable or viewable
265
+ *
266
+ * @since 2.0
267
+ */
268
+ function wprss_remove_row_actions( $actions )
269
+ {
270
+ if ( get_post_type() === 'wprss_feed_item' ) {
271
+ unset( $actions[ 'edit' ] );
272
+ unset( $actions[ 'view' ] );
273
+ //unset( $actions[ 'trash' ] );
274
+ unset( $actions[ 'inline hide-if-no-js' ] );
275
+ }
276
+ elseif ( get_post_type() === 'wprss_feed' ) {
277
+ unset( $actions[ 'view'] );
278
+ if ( get_post_status( get_the_ID() ) !== 'trash' ) {
279
+ $actions[ 'fetch' ] = '<a href="javascript:;" class="wprss_ajax_action" pid="'. get_the_ID() .'" purl="'.home_url().'/wp-admin/admin-ajax.php" title="'. esc_attr( __( 'Fetch Feeds', 'wprss' ) ) .'" >' . __( 'Fetch Feeds', 'wprss' ) . '</a>';
280
+
281
+ $purge_feeds_row_action_text = apply_filters( 'wprss_purge_feeds_row_action_text ', 'Delete Feed Items' );
282
+ $purge_feeds_row_action_title = apply_filters( 'wprss_purge_feeds_row_action_title ', 'Delete feed items imported by this feed source' );
283
+ $actions['purge-posts'] = "<a href='".admin_url("edit.php?post_type=wprss_feed&purge-feed-items=" . get_the_ID() ) . "' title='" . __( $purge_feeds_row_action_title, 'wprss' ) . "' >" . __( $purge_feeds_row_action_text, 'wprss' ) . "</a>";
284
+ }
285
+ }
286
+ return apply_filters( 'wprss_remove_row_actions', $actions );
287
+ }
288
+
289
+
290
+ add_action( 'init', 'check_delete_for_feed_source' );
291
+ /**
292
+ * Checks the GET data for the delete per feed source action request
293
+ *
294
+ * @since 3.5
295
+ */
296
+ function check_delete_for_feed_source( $source_id = NULL ) {
297
+ // then we need to check the GET data for the request
298
+ if ( isset( $_GET['purge-feed-items'] ) ) {
299
+ $source_id = $_GET['purge-feed-items'];
300
+ // Schedule a job that runs this function with the source id parameter
301
+ wp_schedule_single_event( time(), 'wprss_delete_feed_items_from_source_hook', array( $source_id ) );
302
+ // Set a transient
303
+ set_transient( 'wprss_delete_posts_by_source_notif', 'true', 30 );
304
+ // Refresh the page without the GET parameter
305
+ header( 'Location: ' . admin_url( 'edit.php?post_type=wprss_feed' ) );
306
+ exit();
307
+ } else {
308
+ // Get the notification transient
309
+ $transient = get_transient( 'wprss_delete_posts_by_source_notif' );
310
+ // If the transient is set and is set to 'true'
311
+ if ( $transient !== FALSE && $transient === 'true' ) {
312
+ // delete it
313
+ delete_transient( 'wprss_delete_posts_by_source_notif' );
314
+ // Add an action to show the notification
315
+ add_action( 'all_admin_notices', 'wprss_notify_about_deleting_source_feed_items' );
316
+ }
317
+ }
318
+ }
319
+
320
+
321
+
322
+ add_action( 'wprss_delete_feed_items_from_source_hook', 'wprss_delete_feed_items_of_feed_source', 10 , 1 );
323
+ /**
324
+ * Deletes the feed items of the feed source identified by the given ID.
325
+ *
326
+ * @param $source_id The ID of the feed source
327
+ * @since 3.5
328
+ */
329
+ function wprss_delete_feed_items_of_feed_source( $source_id ) {
330
+ $force_delete = apply_filters( 'wprss_force_delete_when_by_source', TRUE );
331
+ // WPML fix: removes the current language from the query WHERE and JOIN clauses
332
+ global $sitepress;
333
+ if ( $sitepress !== NULL ) {
334
+ remove_filter( 'posts_join', array( $sitepress,'posts_join_filter') );
335
+ remove_filter( 'posts_where', array( $sitepress,'posts_where_filter') );
336
+ }
337
+ // Run the query
338
+ $query = new WP_Query(
339
+ array(
340
+ 'meta_key' => 'wprss_feed_id',
341
+ 'meta_value' => $source_id,
342
+ 'post_type' => 'wprss_feed_item',
343
+ 'post_status' => 'any',
344
+ 'posts_per_page' => -1
345
+ )
346
+ );
347
+ $query = apply_filters( 'wprss_delete_per_source_query', $query, $source_id );
348
+ // Delete the results of the query
349
+ while( $query->have_posts() ) {
350
+ $query->the_post();
351
+ wp_delete_post( get_the_ID(), $force_delete );
352
+ }
353
+ }
354
+
355
+
356
+
357
+ /**
358
+ * Shows a notification that tells the user that feed items for a particular source are being deleted
359
+ *
360
+ * @since 3.5
361
+ */
362
+ function wprss_notify_about_deleting_source_feed_items() {
363
+ $message = __( apply_filters( 'wprss_notify_about_deleting_source_feed_items_message', 'The feeds for this feed source are being deleted in the background.' ), 'wprss' );
364
+ echo '<div class="updated"><p>' . $message . '</p></div>';
365
+ }
366
+
367
+
368
+
369
+ add_action( 'wp_ajax_wprss_fetch_feeds_row_action', 'wprss_fetch_feeds_action_hook' );
370
+ /**
371
+ * The AJAX function for the 'Fetch Feed Items' row action on the
372
+ * 'All Feed Sources' page.
373
+ *
374
+ * @since 3.3
375
+ */
376
+ function wprss_fetch_feeds_action_hook() {
377
+ if ( isset( $_POST['id'] ) && !empty( $_POST['id'] ) ) {
378
+ $id = $_POST['id'];
379
+ update_post_meta( $id, 'wprss_force_next_fetch', '1' );
380
+ wprss_fetch_insert_single_feed_items( $id );
381
+ die();
382
+ }
383
+ }
384
+
385
+
386
+ add_filter( 'bulk_actions-edit-wprss_feed_item', 'wprss_custom_feed_item_bulk_actions' );
387
+ /**
388
+ * Remove bulk action link to edit imported feed items
389
+ *
390
+ * @since 2.0
391
+ */
392
+ function wprss_custom_feed_item_bulk_actions( $actions ){
393
+ unset( $actions[ 'edit' ] );
394
+ return apply_filters( 'wprss_custom_feed_item_bulk_actions', $actions );
395
+ }
396
+
397
+
398
+ add_action( 'admin_footer-edit.php', 'wprss_remove_a_from_feed_title' );
399
+ /**
400
+ * Remove hyperlink from imported feed titles in list posts screen
401
+ *
402
+ * @since 2.0
403
+ */
404
+ function wprss_remove_a_from_feed_title() {
405
+ if ( 'edit-wprss_feed_item' !== get_current_screen()->id )
406
+ return;
407
+ ?>
408
+
409
+ <script type="text/javascript">
410
+ jQuery('table.wp-list-table a.row-title').contents().unwrap();
411
+ </script>
412
+ <?php
413
+ }
414
+
415
+
416
+ add_filter( 'gettext', 'wprss_change_publish_button_text', 10, 2 );
417
+ /**
418
+ * Modify 'Publish' button text when adding a new feed source
419
+ *
420
+ * @since 2.0
421
+ */
422
+ function wprss_change_publish_button_text( $translation, $text ) {
423
+ if ( 'wprss_feed' == get_post_type()) {
424
+ if ( $text == 'Publish' )
425
+ return __( 'Publish Feed', 'wprss' );
426
+ }
427
+ return apply_filters( 'wprss_change_publish_button_text', $translation );
428
+ }
includes/admin-editor.php ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file contains code related to the custom button added to Wordpress' TinyMCE editor.
4
+ *
5
+ * @since 3.5
6
+ */
7
+
8
+
9
+
10
+ add_action('init', 'wprss_add_editor_button');
11
+ /**
12
+ * Adds the WPRSS button to WordPress' editor
13
+ *
14
+ * @since 3.5
15
+ */
16
+ function wprss_add_editor_button() {
17
+ if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) )
18
+ return;
19
+ if ( get_user_option( 'rich_editing' ) == 'true') {
20
+ add_filter('mce_external_plugins', 'wprss_register_tinymce_plugin');
21
+ add_filter('mce_buttons', 'wprss_register_tinymce_button');
22
+ }
23
+ }
24
+
25
+
26
+ /**
27
+ * Adds a separator and the wprss button to the buttons array.
28
+ *
29
+ * @since 3.5
30
+ */
31
+ function wprss_register_tinymce_button($buttons) {
32
+ array_push( $buttons, "|", "wprss" );
33
+ return $buttons;
34
+ }
35
+
36
+
37
+ /**
38
+ * Adds the button action JS file to TinyMCE's plugin list
39
+ *
40
+ * @since 3.5
41
+ */
42
+ function wprss_register_tinymce_plugin($plugin_array) {
43
+ $plugin_array['wprss'] = WPRSS_JS . 'editor.js';
44
+ return $plugin_array;
45
+ }
46
+
47
+
48
+ add_filter( 'tiny_mce_version', 'wprss_tinymce_version');
49
+ /**
50
+ * Intercepts TinyMCE's version check and increments its version by 3.
51
+ *
52
+ * This is a hack used to work around TinyMCE's caching, that might prevent the
53
+ * new wprss button from appearing on the editor.
54
+ *
55
+ * @since 3.5
56
+ */
57
+ function wprss_tinymce_version($ver) {
58
+ $ver += 3;
59
+ return $ver;
60
+ }
61
+
62
+
63
+
64
+
65
+
66
+
67
+ add_action( 'wp_ajax_wprss_editor_dialog', 'wprss_return_dialog_contents' );
68
+ /**
69
+ *
70
+ *
71
+ */
72
+ function wprss_return_dialog_contents() {
73
+ $feed_sources = get_posts( array(
74
+ 'post_type' => 'wprss_feed',
75
+ 'post_status' => 'publish',
76
+ 'posts_per_page' => -1,
77
+ 'no_found_rows' => true
78
+ ));
79
+ $feed_sources_select = '<select id="wprss-dialog-feed-source-list" multiple>';
80
+ $feed_sources_exclude_select = '<select id="wprss-dialog-exclude-list" multiple>';
81
+ $feed_sources_both_select = '';
82
+ foreach ( $feed_sources as $source ) {
83
+ $feed_sources_both_select .= '<option value="' . $source->ID . '" >' . $source->post_title . '</option>';
84
+ }
85
+ $feed_sources_both_select .= '</select><p>Hold Ctrl or Mac Command key when clicking to select more than one feed source.</p>';
86
+
87
+ $feed_sources_select .= $feed_sources_both_select;
88
+ $feed_sources_exclude_select .= $feed_sources_both_select;
89
+
90
+ ?>
91
+ <table cellspacing="20">
92
+ <tbody>
93
+
94
+ <tr>
95
+ <td id="wprss-dialog-all-sources-label">Feed Sources</td>
96
+ <td>
97
+ <input id="wprss-dialog-all-sources" type="checkbox" checked> <label for="wprss-dialog-all-sources">All feed sources</label>
98
+ <div id="wprss-dialog-sources-container" style="display:none">
99
+ <p>Choose the feed source to display:</p>
100
+ <?php echo $feed_sources_select; ?>
101
+ </div>
102
+ <script>
103
+ jQuery('#wprss-dialog-all-sources').click( function(){
104
+ if ( jQuery(this).is(':checked') ) {
105
+ jQuery( '#wprss-dialog-sources-container' ).hide();
106
+ jQuery( '#wprss-dialog-exclude-row' ).show();
107
+ jQuery( '#wprss-dialog-all-sources-label' ).css('vertical-align', 'middle');
108
+ } else {
109
+ jQuery( '#wprss-dialog-sources-container' ).show();
110
+ jQuery( '#wprss-dialog-exclude-row' ).hide();
111
+ jQuery( '#wprss-dialog-all-sources-label' ).css('vertical-align', 'top');
112
+ }
113
+ });
114
+ jQuery('#wprss-dialog-submit').click( wprss_dialog_submit );
115
+ </script>
116
+ </td>
117
+ </tr>
118
+
119
+ <tr id="wprss-dialog-exclude-row">
120
+ <td id="wprss-dialog-exclude-label">Exclude:</td>
121
+ <td>
122
+ <p>Choose the feed sources to exclude:</p>
123
+ <?php echo $feed_sources_exclude_select; ?>
124
+ </td>
125
+ </tr>
126
+
127
+ <tr>
128
+ <td>Feed Limit:</td>
129
+ <td> <input id="wprss-dialog-feed-limit" type="number" class="wprss-number-roller" placeholder="Ignore" min="0" /> </td>
130
+ </tr>
131
+
132
+ <?php do_action( 'wprss_return_dialog_contents' ); ?>
133
+
134
+ <tr>
135
+ <td></td>
136
+ <td>
137
+ <button id="wprss-dialog-submit">Add shortcode</button>
138
+ </td>
139
+ </tr>
140
+
141
+ </tbody>
142
+ </table>
143
+ <?php
144
+ die();
145
+ }
includes/admin-import-export.php ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Build the import/export settings page, used to import and export the plugin's settings
4
+ * Based on http://wp.tutsplus.com/tutorials/creative-coding/creating-a-simple-backuprestore-settings-feature/
5
+ *
6
+ * @since 3.1
7
+ */
8
+
9
+
10
+ add_action( 'admin_init', 'wp_rss_aggregator_export', 1 );
11
+
12
+ /**
13
+ * Handles exporting of aggregator settings
14
+ *
15
+ * @since 3.1
16
+ */
17
+ function wp_rss_aggregator_export() {
18
+ if ( isset( $_POST['export'] ) && check_admin_referer( 'wprss-settings-export' ) ) {
19
+ $blogname = str_replace( " ", "", get_option( 'blogname' ) );
20
+ $date = date( "m-d-Y" );
21
+ $json_name = $blogname . "-" . $date; // Naming the filename that will be generated.
22
+
23
+ header( 'Content-Description: File Transfer' );
24
+ header( "Content-Type: text/json; charset=" . get_option( 'blog_charset' ) );
25
+ header( "Content-Disposition: attachment; filename=$json_name.json" );
26
+ wp_rss_set_export_data();
27
+ die();
28
+ }
29
+ }
30
+
31
+
32
+ /**
33
+ * Gathers relevant options, encodes them in Json and echoes the file
34
+ *
35
+ * @since 3.1
36
+ */
37
+ function wp_rss_set_export_data() {
38
+ $options = apply_filters(
39
+ 'wprss_fields_export',
40
+ array( 'wprss_settings_general' => get_option( 'wprss_settings_general' ) )
41
+ );
42
+ $json_file = json_encode( $options );
43
+
44
+ foreach ( $options as $key => $value ) {
45
+ $value = maybe_unserialize( $value );
46
+ $need_options[ $key ] = $value;
47
+ }
48
+ $json_file = json_encode( $need_options ); // Encode data into json data
49
+ echo $json_file;
50
+ die();
51
+ }
52
+
53
+
54
+ /**
55
+ * Notice for a successful export
56
+ *
57
+ * @since 3.1
58
+ */
59
+ function wp_rss_aggregator_export_notice() {
60
+ echo '<div class="updated"><p>All options are export successfully.</p></div>';
61
+
62
+ }
63
+
64
+
65
+ /**
66
+ * Notice for a successful import
67
+ *
68
+ * @since 3.1
69
+ */
70
+ function wp_rss_aggregator_import_notice1() {
71
+ echo '<div class="updated"><p>' . __( 'All options are restored successfully.', 'wprss' ) . '</p></div>';
72
+
73
+ }
74
+
75
+
76
+ /**
77
+ * Notice for an unsuccessful import
78
+ *
79
+ * @since 3.1
80
+ */
81
+ function wp_rss_aggregator_import_notice2() {
82
+ echo '<div class="error"><p>' . __( 'Invalid file or file size too big.', 'wprss' ) . '</p></div>';
83
+
84
+ }
85
+
86
+
87
+ add_action( 'admin_init', 'wp_rss_aggregator_import' );
88
+ /**
89
+ * Handles the importing of settings
90
+ *
91
+ * @since 3.1
92
+ */
93
+ function wp_rss_aggregator_import(){
94
+ global $pagenow;
95
+ if( $pagenow == 'admin.php' ) {
96
+ //Hope this plugin don't use admin.php for anything
97
+ return;
98
+ }
99
+ if ( isset( $_FILES['import'] ) && check_admin_referer( 'wprss-settings-import' ) ) {
100
+ if ( $_FILES['import']['error'] > 0) {
101
+ wp_die( "Error during import" );
102
+ } else {
103
+ $file_name = $_FILES['import']['name'];
104
+ $file_ext = strtolower( end( explode( ".", $file_name ) ) );
105
+ $file_size = $_FILES['import']['size'];
106
+ if ( ( $file_ext == "json" ) && ( $file_size < 500000 ) ) {
107
+ $encode_options = file_get_contents( $_FILES['import']['tmp_name'] );
108
+ $options = json_decode( $encode_options, true );
109
+ foreach ( $options as $key => $value ) {
110
+ update_option( $key, $value );
111
+ }
112
+ add_action( 'admin_notices', 'wp_rss_aggregator_import_notice1' );
113
+ }
114
+ else {
115
+ add_action( 'admin_notices', 'wp_rss_aggregator_import_notice2' );
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+
122
+ /**
123
+ * Handles the import/export page display
124
+ *
125
+ * @since 3.1
126
+ */
127
+ function wprss_import_export_settings_page_display() {
128
+ if ( !isset( $_POST['export'] ) ) { ?>
129
+ <div class="wrap">
130
+ <?php screen_icon( 'wprss-aggregator' ); ?>
131
+ <h2><?php _e( 'Import & Export Settings', 'wprss' ); ?></h2>
132
+
133
+ <h3><?php _e( 'Export Settings', 'wprss' ); ?></h3>
134
+ <p><?php _e( 'Click the <strong>Export Settings</strong> button to generate a file containing all the settings used by WP RSS Aggregator', 'wprss' ); ?></p>
135
+ <p><?php _e( 'After exporting, you can either use the backup file to restore your settings to this site or to another WordPress site.</p>', 'wprss' ); ?></p>
136
+ <form method="post">
137
+ <p class="submit">
138
+ <?php wp_nonce_field( 'wprss-settings-export' ); ?>
139
+ <input type="submit" name="export" value="<?php _e( 'Export Settings', 'wprss' ); ?>" class="button" />
140
+ </p>
141
+ </form>
142
+
143
+ <h3><?php _e( 'Import Settings', 'wprss' ); ?></h3>
144
+ <p><?php _e( 'Click the <strong>Choose file</strong> button and choose a backup file.', 'wprss' ); ?></p>
145
+ <p><?php _e( 'Press the <strong>Import Settings</strong> button, and WordPress will do the rest for you.', 'wprss' ); ?></p>
146
+ <form method='post' enctype='multipart/form-data'>
147
+ <p class="submit">
148
+ <?php wp_nonce_field( 'wprss-settings-import' ); ?>
149
+ <input type='file' name='import' />
150
+ <input type='submit' name='import' value="<?php _e( 'Import Settings', 'wprss' ); ?>" class="button" />
151
+ </p>
152
+ </form>
153
+
154
+ <h3><?php _e( 'Importing/Exporting Feed Sources', 'wprss' ); ?></h3>
155
+ <p><?php _e( 'To import/export your feed sources, please use the standard WordPress <a href="' . get_admin_url() . 'import.php">Import</a> and <a href="' . get_admin_url() . 'export.php">Export</a> functionality.', 'wprss' ); ?></p>
156
+ <p><?php _e( 'On the <a href="' . get_admin_url() . 'export.php">Export</a> page, check the <strong>Feed Sources</strong> radio button and click the <strong>Download Export File</strong> button. WordPress will then create an XML file containing all the feed sources.', 'wprss' ); ?></p>
157
+ <p><?php _e( 'On the <a href="' . get_admin_url() . 'import.php">Import</a> page, choose the previously created file and click the <strong>Upload file and import</strong> button.', 'wprss' ); ?></p>
158
+
159
+ </div>
160
+ <?php
161
+ }
162
+ }
includes/admin-metaboxes.php ADDED
@@ -0,0 +1,599 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_action( 'add_meta_boxes', 'wprss_add_meta_boxes');
4
+ /**
5
+ * Set up the input boxes for the wprss_feed post type
6
+ *
7
+ * @since 2.0
8
+ */
9
+ function wprss_add_meta_boxes() {
10
+ global $wprss_meta_fields;
11
+
12
+ // Remove the default WordPress Publish box, because we will be using custom ones
13
+ remove_meta_box( 'submitdiv', 'wprss_feed', 'side' );
14
+
15
+ add_meta_box(
16
+ 'submitdiv', // $id
17
+ __( 'Save Feed Source', 'wprss' ), // $title
18
+ 'post_submit_meta_box', // $callback
19
+ 'wprss_feed', // $page
20
+ 'side', // $context
21
+ 'high' // $priority
22
+ );
23
+
24
+ add_meta_box(
25
+ 'preview_meta_box',
26
+ __( 'Feed Preview', 'wprss' ),
27
+ 'wprss_preview_meta_box_callback',
28
+ 'wprss_feed',
29
+ 'side',
30
+ 'high'
31
+ );
32
+
33
+ add_meta_box(
34
+ 'wprss-feed-processing-meta',
35
+ __( 'Feed Processing', 'wprss' ),
36
+ 'wprss_feed_processing_meta_box_callback',
37
+ 'wprss_feed',
38
+ 'side',
39
+ 'high'
40
+ );
41
+
42
+ add_meta_box(
43
+ 'wprss-help-meta',
44
+ __( 'WP RSS Aggregator Help', 'wprss' ),
45
+ 'wprss_help_meta_box_callback',
46
+ 'wprss_feed',
47
+ 'side',
48
+ 'low'
49
+ );
50
+
51
+ add_meta_box(
52
+ 'wprss-like-meta',
53
+ __( 'Like This Plugin?', 'wprss' ),
54
+ 'wprss_like_meta_box_callback',
55
+ 'wprss_feed',
56
+ 'side',
57
+ 'low'
58
+ );
59
+
60
+ add_meta_box(
61
+ 'wprss-follow-meta',
62
+ __( 'Follow Us', 'wprss' ),
63
+ 'wprss_follow_meta_box_callback',
64
+ 'wprss_feed',
65
+ 'side',
66
+ 'low'
67
+ );
68
+
69
+
70
+ add_meta_box(
71
+ 'custom_meta_box',
72
+ __( 'Feed Source Details', 'wprss' ),
73
+ 'wprss_show_meta_box_callback',
74
+ 'wprss_feed',
75
+ 'normal',
76
+ 'high'
77
+ );
78
+
79
+
80
+ }
81
+
82
+
83
+ /**
84
+ * Set up fields for the meta box for the wprss_feed post type
85
+ *
86
+ * @since 2.0
87
+ */
88
+ function wprss_get_custom_fields() {
89
+ $prefix = 'wprss_';
90
+
91
+ // Field Array
92
+ $wprss_meta_fields[ 'url' ] = array(
93
+ 'label' => __( 'URL', 'wprss' ),
94
+ 'desc' => __( 'Enter feed URL (including http://)', 'wprss' ),
95
+ 'id' => $prefix .'url',
96
+ 'type' => 'text',
97
+ 'after' => 'wprss_validate_feed_link',
98
+ );
99
+
100
+ $wprss_meta_fields[ 'description' ] = array(
101
+ 'label' => __( 'Description', 'wprss' ),
102
+ 'desc' => __( 'A short description about this feed source (optional)', 'wprss' ),
103
+ 'id' => $prefix .'description',
104
+ 'type' => 'textarea'
105
+ );
106
+
107
+ $wprss_meta_fields[ 'limit' ] = array(
108
+ 'label' => __( 'Limit', 'wprss' ),
109
+ 'desc' => __( 'Enter a feed item import/display limit. Leave blank to use the default setting.', 'wprss' ),
110
+ 'id' => $prefix . 'limit',
111
+ 'type' => 'number'
112
+ );
113
+
114
+ // for extensibility, allows more meta fields to be added
115
+ return apply_filters( 'wprss_fields', $wprss_meta_fields );
116
+ }
117
+
118
+
119
+ /**
120
+ * Set up the meta box for the wprss_feed post type
121
+ *
122
+ * @since 2.0
123
+ */
124
+ function wprss_show_meta_box_callback() {
125
+ global $post;
126
+ $meta_fields = wprss_get_custom_fields();
127
+
128
+ // Use nonce for verification
129
+ wp_nonce_field( basename( __FILE__ ), 'wprss_meta_box_nonce' );
130
+
131
+ // Begin the field table and loop
132
+ echo '<table class="form-table wprss-form-table">';
133
+
134
+ foreach ( $meta_fields as $field ) {
135
+ // get value of this field if it exists for this post
136
+ $meta = get_post_meta( $post->ID, $field['id'], true );
137
+ // begin a table row with
138
+ echo '<tr>
139
+ <th><label for="' . $field['id'] . '">' . $field['label'] . '</label></th>
140
+ <td>';
141
+
142
+ if ( isset( $field['before'] ) && !empty( $field['before'] ) ) {
143
+ call_user_func( $field['before'] );
144
+ }
145
+
146
+ switch( $field['type'] ) {
147
+
148
+ // text
149
+ case 'text':
150
+ echo '<input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'. esc_attr( $meta ) .'" size="55" />
151
+ <br><span class="description">'.$field['desc'].'</span>';
152
+ break;
153
+
154
+ // textarea
155
+ case 'textarea':
156
+ echo '<textarea name="'.$field['id'].'" id="'.$field['id'].'" cols="60" rows="4">'. esc_attr( $meta ) .'</textarea>
157
+ <br><span class="description">'.$field['desc'].'</span>';
158
+ break;
159
+
160
+ // checkbox
161
+ case 'checkbox':
162
+ echo '<input type="checkbox" name="'.$field['id'].'" id="'.$field['id'].'" ', esc_attr( $meta ) ? ' checked="checked"' : '','/>
163
+ <label for="'.$field['id'].'">'.$field['desc'].'</label>';
164
+ break;
165
+
166
+ // select
167
+ case 'select':
168
+ echo '<select name="'.$field['id'].'" id="'.$field['id'].'">';
169
+ foreach ($field['options'] as $option) {
170
+ echo '<option', $meta == $option['value'] ? ' selected="selected"' : '', ' value="'.$option['value'].'">'.$option['label'].'</option>';
171
+ }
172
+ echo '</select><br><span class="description">'.$field['desc'].'</span>';
173
+ break;
174
+
175
+ // number
176
+ case 'number':
177
+ echo '<input class="wprss-number-roller" type="number" placeholder="Default" min="0" name="'.$field['id'].'" id="'.$field['id'].'" value="'.esc_attr( $meta ).'" />
178
+ <label for="'.$field['id'].'"><span class="description">'.$field['desc'].'</span></label>';
179
+
180
+ break;
181
+
182
+ } //end switch
183
+
184
+ if ( isset( $field['after'] ) && !empty( $field['after'] ) ) {
185
+ call_user_func( $field['after'] );
186
+ }
187
+
188
+ echo '</td></tr>';
189
+ } // end foreach
190
+ echo '</table>'; // end table
191
+ }
192
+
193
+
194
+ /**
195
+ * Adds the link that validates the feed
196
+ * @since 3.9.5
197
+ */
198
+ function wprss_validate_feed_link() {
199
+ ?>
200
+ <a href="#" id="validate-feed-link">Validate feed</a>
201
+ <script type="text/javascript">
202
+ (function($){
203
+ // When the DOM is ready
204
+ $(document).ready( function(){
205
+ // Move the link immediately after the url text field, and add the click event handler
206
+ $('#validate-feed-link').insertAfter('#wprss_url').click(function(e){
207
+ // Get the url and proceed only if the url is not empty
208
+ var url = $('#wprss_url').val();
209
+ if ( url.trim().length > 0 ) {
210
+ // Encode the url and generate the full url to the w3 feed validator
211
+ var encodedUrl = encodeURIComponent( url );
212
+ var fullURL = 'http://validator.w3.org/feed/check.cgi?url=' + encodedUrl;
213
+ // Open the window / tab
214
+ window.open( fullURL, 'wprss-feed-validator' );
215
+ }
216
+ // Suppress the default link click behaviour
217
+ e.preventDefault();
218
+ e.stopPropagation();
219
+ return false;
220
+ });
221
+ });
222
+ })(jQuery);
223
+ </script>
224
+ <?php
225
+ }
226
+
227
+
228
+
229
+ add_action( 'save_post', 'wprss_save_custom_fields', 10, 2 );
230
+ /**
231
+ * Save the custom fields
232
+ *
233
+ * @since 2.0
234
+ */
235
+ function wprss_save_custom_fields( $post_id, $post ) {
236
+ $meta_fields = wprss_get_custom_fields();
237
+
238
+ /* Verify the nonce before proceeding. */
239
+ if ( !isset( $_POST['wprss_meta_box_nonce'] ) || !wp_verify_nonce( $_POST['wprss_meta_box_nonce'], basename( __FILE__ ) ) )
240
+ return $post_id;
241
+
242
+ /* Get the post type object. */
243
+ $post_type = get_post_type_object( $post->post_type );
244
+
245
+ /* Check if the current user has permission to edit the post. */
246
+ if ( !current_user_can( $post_type->cap->edit_post, $post_id ) )
247
+ return $post_id;
248
+
249
+ /* // Stop WP from clearing custom fields on autosave - maybe not needed
250
+ if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
251
+ return;
252
+
253
+ // Prevent quick edit from clearing custom fields - maybe not needed
254
+ if (defined('DOING_AJAX') && DOING_AJAX)
255
+ return; */
256
+
257
+ /** Bail out if running an autosave, ajax or a cron */
258
+ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
259
+ return;
260
+ if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
261
+ return;
262
+ if ( defined( 'DOING_CRON' ) && DOING_CRON )
263
+ return;
264
+
265
+ // Change the limit, if it is zero, to an empty string
266
+ if ( isset( $_POST['wprss_limit'] ) && strval( $_POST['wprss_limit'] ) == '0' ) {
267
+ $_POST['wprss_limit'] = '';
268
+ }
269
+
270
+ // loop through fields and save the data
271
+ foreach ( $meta_fields as $field ) {
272
+ $old = get_post_meta( $post_id, $field[ 'id' ], true );
273
+ $new = $_POST[ $field[ 'id' ] ];
274
+ if ( $new && $new != $old ) {
275
+ update_post_meta( $post_id, $field[ 'id' ], $new );
276
+ } elseif ( '' == $new && $old ) {
277
+ delete_post_meta( $post_id, $field[ 'id' ], $old );
278
+ }
279
+ } // end foreach
280
+
281
+ $state = ( isset( $_POST['wprss_state'] ) )? $_POST['wprss_state'] : 'active';
282
+ $activate = ( isset( $_POST['wprss_activate_feed'] ) )? stripslashes( $_POST['wprss_activate_feed'] ) : '';
283
+ $pause = ( isset( $_POST['wprss_pause_feed'] ) )? stripslashes( $_POST['wprss_pause_feed'] ) : '';
284
+ $age_limit = ( isset( $_POST['wprss_age_limit'] ) )? stripslashes( $_POST['wprss_age_limit'] ) : '';
285
+ $age_unit = ( isset( $_POST['wprss_age_unit'] ) )? stripslashes( $_POST['wprss_age_unit'] ) : '';
286
+ $update_interval = ( isset( $_POST['wprss_update_interval'] ) )? stripslashes( $_POST['wprss_update_interval'] ) : wprss_get_default_feed_source_update_interval();
287
+ $old_update_interval = get_post_meta( $post_id, 'wprss_update_interval', TRUE );
288
+
289
+ // Update the feed source meta
290
+ update_post_meta( $post_id, 'wprss_activate_feed', $activate );
291
+ update_post_meta( $post_id, 'wprss_pause_feed', $pause );
292
+ update_post_meta( $post_id, 'wprss_age_limit', $age_limit );
293
+ update_post_meta( $post_id, 'wprss_age_unit', $age_unit );
294
+ update_post_meta( $post_id, 'wprss_update_interval', $update_interval );
295
+
296
+ // Check if the state or the update interval has changed
297
+ if ( get_post_meta( $post_id, 'wprss_state', TRUE ) !== $state || $old_update_interval !== $update_interval ) {
298
+ // Pause the feed source, and if it is active, re-activate it.
299
+ // This should update the feed's scheduling
300
+ wprss_pause_feed_source( $post_id );
301
+ if ( $state === 'active' )
302
+ wprss_activate_feed_source( $post_id );
303
+ }
304
+
305
+ // Update the schedules
306
+ wprss_update_feed_processing_schedules( $post_id );
307
+
308
+ // If the feed source uses the global updating system, update the feed on publish
309
+ if ( $update_interval === wprss_get_default_feed_source_update_interval() ) {
310
+ wp_schedule_single_event( time(), 'wprss_fetch_single_feed_hook', array( $post_id ) );
311
+ }
312
+ }
313
+
314
+
315
+ /**
316
+ * Generate a preview of the latest 5 posts from the feed source being added/edited
317
+ *
318
+ * @since 2.0
319
+ */
320
+ function wprss_preview_meta_box_callback() {
321
+ global $post;
322
+ $feed_url = get_post_meta( $post->ID, 'wprss_url', true );
323
+
324
+ if( ! empty( $feed_url ) ) {
325
+ $feed = fetch_feed( $feed_url );
326
+ if ( ! is_wp_error( $feed ) ) {
327
+ $items = $feed->get_items();
328
+ // Figure out how many total items there are, but limit it to 5.
329
+ $maxitems = $feed->get_item_quantity(5);
330
+
331
+ // Build an array of all the items, starting with element 0 (first element).
332
+ $items = $feed->get_items( 0, $maxitems );
333
+ echo '<h4>Latest 5 feeds available from ' . get_the_title() . '</h4>';
334
+ echo '<ul>';
335
+ foreach ( $items as $item ) {
336
+ // Get human date (comment if you want to use non human date)
337
+ $item_date = human_time_diff( $item->get_date('U'), current_time('timestamp')).' '.__( 'ago', 'rc_mdm' );
338
+ // Start displaying item content within a <li> tag
339
+ echo '<li>';
340
+ // create item link
341
+ //echo '<a href="'.esc_url( $item->get_permalink() ).'" title="'.$item_date.'">';
342
+ // Get item title
343
+ echo esc_html( $item->get_title() );
344
+ //echo '</a>';
345
+ // Display date
346
+ echo ' <div class="rss-date"><small>'.$item_date.'</small></div>';
347
+ // End <li> tag
348
+ echo '</li>';
349
+ }
350
+ echo '</ul>';
351
+ }
352
+ else _e( '<span class="invalid-feed-url"><strong>Invalid feed URL</strong> - Double check the feed source URL setting above.</span>
353
+ <p>Not sure where to find the RSS feed on a website?
354
+ <a target="_blank" href="http://webtrends.about.com/od/webfeedsyndicationrss/ss/rss_howto.htm">Click here</a> for a visual guide' , 'wprss' );
355
+ }
356
+
357
+ else _e( 'No feed URL defined yet', 'wprss' );
358
+ }
359
+
360
+
361
+
362
+ /**
363
+ * Renders the Feed Processing metabox
364
+ *
365
+ * @since 3.7
366
+ */
367
+ function wprss_feed_processing_meta_box_callback() {
368
+ global $post;
369
+ // Get the post meta
370
+ $state = get_post_meta( $post->ID, 'wprss_state', TRUE );
371
+ $activate = get_post_meta( $post->ID, 'wprss_activate_feed', TRUE );
372
+ $pause = get_post_meta( $post->ID, 'wprss_pause_feed', TRUE );
373
+ $update_interval = get_post_meta( $post->ID, 'wprss_update_interval', TRUE );
374
+
375
+ $age_limit = get_post_meta( $post->ID, 'wprss_age_limit', FALSE );
376
+ $age_unit = get_post_meta( $post->ID, 'wprss_age_unit', FALSE );
377
+
378
+ $age_limit = ( count( $age_limit ) === 0 )? wprss_get_general_setting( 'limit_feed_items_age' ) : $age_limit[0];
379
+ $age_unit = ( count( $age_unit ) === 0 )? wprss_get_general_setting( 'limit_feed_items_age_unit' ) : $age_unit[0];
380
+
381
+ // Set default strings for activate and pause times
382
+ $default_activate = 'immediately';
383
+ $default_pause = 'never';
384
+
385
+ // Prepare the states
386
+ $states = array(
387
+ 'active' => __( 'Active', 'wprss' ),
388
+ 'paused' => __( 'Paused', 'wprss' ),
389
+ );
390
+
391
+ // Prepare the schedules
392
+ $default_interval = __( 'Default', 'wprss' );
393
+ $wprss_schedules = apply_filters( 'wprss_schedules', wprss_get_schedules() );
394
+ $default_interval_key = wprss_get_default_feed_source_update_interval();
395
+ $schedules = array_merge(
396
+ array(
397
+ $default_interval_key => array(
398
+ 'display' => $default_interval,
399
+ 'interval' => $default_interval,
400
+ ),
401
+ ),
402
+ $wprss_schedules
403
+ );
404
+
405
+ ?>
406
+
407
+ <div class="wprss-meta-side-setting">
408
+ <label for="wprss_state">Feed state:</label>
409
+ <select id="wprss_state" name="wprss_state">
410
+ <?php foreach( $states as $value => $label ) : ?>
411
+ <option value="<?php echo $value; ?>" <?php selected( $state, $value ) ?> ><?php echo $label; ?></option>
412
+ <?php endforeach; ?>
413
+ </select>
414
+ </div>
415
+
416
+ <div class="wprss-meta-side-setting">
417
+ <p>
418
+ <label for="">Activate feed: </label>
419
+ <strong id="wprss-activate-feed-viewer"><?php echo ( ( $activate !== '' )? $activate : $default_activate ); ?></strong>
420
+ <a href="#">Edit</a>
421
+ </p>
422
+ <div class="wprss-meta-slider" data-collapse-viewer="wprss-activate-feed-viewer" data-default-value="<?php echo $default_activate; ?>">
423
+ <input id="wprss_activate_feed" class="wprss-datetimepicker-from-today" name="wprss_activate_feed" value="<?php echo $activate; ?>" />
424
+
425
+ <label class="description" for="wprss_activate_feed">
426
+ Leave blank to activate the feed immediately.
427
+ </label>
428
+
429
+ <br/><br/>
430
+
431
+ <span class="description">
432
+ <b>Note:</b> WordPress uses UTC time for schedules, not local time. Current UTC time is: <code><?php echo date( 'd/m/Y H:i:s', current_time('timestamp',1) ); ?></code>
433
+ </span>
434
+ </div>
435
+ </div>
436
+
437
+ <div class="wprss-meta-side-setting">
438
+ <p>
439
+ <label for="">Pause feed: </label>
440
+ <strong id="wprss-pause-feed-viewer"><?php echo ( ( $pause !== '' )? $pause : $default_pause ); ?></strong>
441
+ <a href="#">Edit</a>
442
+ </p>
443
+ <div class="wprss-meta-slider" data-collapse-viewer="wprss-pause-feed-viewer" data-default-value="<?php echo $default_pause; ?>">
444
+ <input id="wprss_pause_feed" class="wprss-datetimepicker-from-today" name="wprss_pause_feed" value="<?php echo $pause; ?>" />
445
+ <label class="description" for="wprss_pause_feed">
446
+ Leave blank to never pause the feed.
447
+ </label>
448
+ <br/><br/>
449
+ <span class="description">
450
+ <b>Note:</b> WordPress uses UTC time for schedules, not local time. Current UTC time is: <code><?php echo date( 'd/m/Y H:i:s', current_time('timestamp',1) ); ?></code>
451
+ </span>
452
+ </div>
453
+ </div>
454
+
455
+
456
+ <div class="wprss-meta-side-setting">
457
+ <p>
458
+ <label for="">Update interval: </label>
459
+ <strong id="wprss-feed-update-interval-viewer">
460
+ <?php
461
+ if ( $update_interval === '' || $update_interval === wprss_get_default_feed_source_update_interval() ) {
462
+ echo $default_interval;
463
+ }
464
+ else {
465
+ echo wprss_interval( $schedules[$update_interval]['interval'] );
466
+ }
467
+ ?>
468
+ </strong>
469
+ <a href="#">Edit</a>
470
+ </p>
471
+ <div class="wprss-meta-slider" data-collapse-viewer="wprss-feed-update-interval-viewer" data-default-value="<?php echo $default_interval; ?>">
472
+ <select id="feed-update-interval" name="wprss_update_interval">
473
+ <?php foreach ( $schedules as $value => $schedule ) : ?>
474
+ <?php $text = ( $value === wprss_get_default_feed_source_update_interval() )? $default_interval : wprss_interval( $schedule['interval'] ); ?>
475
+ <option value="<?php echo $value; ?>" <?php selected( $update_interval, $value ); ?> ><?php echo $text; ?></option>
476
+ <?php endforeach; ?>
477
+ </select>
478
+
479
+ <br/>
480
+ <span class='description' for='feed-update-interval'>
481
+ Enter the interval at which to update this feed. The feed will only be updated if it is <strong>active</strong>.
482
+ </span>
483
+ </div>
484
+ </div>
485
+
486
+
487
+ <div class="wprss-meta-side-setting">
488
+ <p>
489
+ <label id="wprss-age-limit-feed-label" for="" data-when-empty="Delete old feed items:">Delete feed items older than: </label>
490
+ <strong id="wprss-age-limit-feed-viewer"><?php echo $age_limit . ' ' . $age_unit; ?></strong>
491
+ <a href="#">Edit</a>
492
+ </p>
493
+ <div class="wprss-meta-slider" data-collapse-viewer="wprss-age-limit-feed-viewer" data-label="#wprss-age-limit-feed-label" data-default-value="" data-empty-controller="#limit-feed-items-age" data-hybrid="#limit-feed-items-age, #limit-feed-items-age-unit">
494
+ <input id="limit-feed-items-age" name="wprss_age_limit" type="number" min="0" class="wprss-number-roller" placeholder="No limit" value="<?php echo $age_limit; ?>" />
495
+
496
+ <select id="limit-feed-items-age-unit" name="wprss_age_unit">
497
+ <?php foreach ( wprss_age_limit_units() as $unit ) : ?>
498
+ <option value="<?php echo $unit; ?>" <?php selected( $age_unit, $unit ); ?> ><?php echo $unit; ?></option>
499
+ <?php endforeach; ?>
500
+ </select>
501
+
502
+ <br/>
503
+ <span class='description' for='limit-feed-items-age'>
504
+ Enter the maximum age of feed items to be stored in the database. Feed items older than the specified age will be deleted everyday at midnight.
505
+ <br/>
506
+ Leave empty for no limit.
507
+ </span>
508
+ </div>
509
+ </div>
510
+
511
+ <?php
512
+ }
513
+
514
+
515
+
516
+ /**
517
+ * Generate Help meta box
518
+ *
519
+ * @since 2.0
520
+ *
521
+ */
522
+ function wprss_help_meta_box_callback() {
523
+ echo '<p><a href="http://www.wprssaggregator.com/documentation/">View the documentation</p>';
524
+ echo '<p><strong>';
525
+ _e( 'Need help?', 'wprss' );
526
+ echo '</strong> <a target="_blank" href="http://wordpress.org/support/plugin/wp-rss-aggregator">';
527
+ _e( 'Check out the support forum', 'wprss' );
528
+ echo '</a></p>';
529
+ echo '</strong> <a target="_blank" href="http://www.wprssaggregator.com/feature-requests/">';
530
+ _e( 'Suggest a new feature', 'wprss' );
531
+ echo '</a></p>';
532
+ }
533
+
534
+ /**
535
+ * Generate Like this plugin meta box
536
+ *
537
+ * @since 2.0
538
+ *
539
+ */
540
+ function wprss_like_meta_box_callback() { ?>
541
+
542
+ <ul>
543
+ <li><a href="http://wordpress.org/extend/plugins/wp-rss-aggregator/"><?php _e( 'Give it a 5 star rating on WordPress.org', 'wprss' ) ?></a></li>
544
+ <li class="donate_link"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X9GP6BL4BLXBJ"><?php _e('Donate a token of your appreciation', 'wprss' ); ?></a></li>
545
+ </ul>
546
+ <?php
547
+ echo '<p><strong>';
548
+ _e( 'Check out the Premium Extensions:', 'wprss' );
549
+ echo '</strong>'; ?>
550
+ <ul>
551
+ <li><a href="http://www.wprssaggregator.com/extension/feed-to-post/"><?php echo 'Feed to Post'; ?></a></li>
552
+ <li><a href="http://www.wprssaggregator.com/extension/excerpts-thumbnails/"><?php echo 'Excerpts & Thumbnails'; ?></a></li>
553
+ <li><a href="http://www.wprssaggregator.com/extension/categories/"><?php echo 'Categories'; ?></a></li>
554
+ <li><a href="http://www.wprssaggregator.com/extension/keyword-filtering/"><?php echo 'Keyword Filtering'; ?></a></li>
555
+ </ul>
556
+ </p>
557
+ <?php }
558
+
559
+
560
+ /**
561
+ * Generate Follow us plugin meta box
562
+ *
563
+ * @since 2.0
564
+ *
565
+ */
566
+ function wprss_follow_meta_box_callback() {
567
+ ?>
568
+ <ul>
569
+ <li class="twitter"><a href="http://twitter.com/wpmayor"><?php _e( 'Follow WP Mayor on Twitter.', 'wprss' ) ?></a></li>
570
+ <li class="facebook"><a href="https://www.facebook.com/wpmayor"><?php _e( 'Like WP Mayor on Facebook.', 'wprss' ) ?></a></li>
571
+ </ul>
572
+ <?php }
573
+
574
+
575
+ add_action( 'add_meta_boxes', 'wprss_remove_meta_boxes', 100 );
576
+ /**
577
+ * Remove unneeded meta boxes from add feed source screen
578
+ *
579
+ * @since 2.0
580
+ */
581
+ function wprss_remove_meta_boxes() {
582
+ if ( 'wprss_feed' !== get_current_screen()->id ) return;
583
+ // Remove meta boxes of other plugins that tend to appear on all posts
584
+ remove_meta_box( 'wpseo_meta', 'wprss_feed' ,'normal' );
585
+ remove_meta_box( 'postpsp', 'wprss_feed' ,'normal' );
586
+ remove_meta_box( 'su_postmeta', 'wprss_feed' ,'normal' );
587
+ remove_meta_box( 'woothemes-settings', 'wprss_feed' ,'normal' );
588
+ remove_meta_box( 'wpcf-post-relationship', 'wprss_feed' ,'normal' );
589
+ remove_meta_box( 'wpar_plugin_meta_box ', 'wprss_feed' ,'normal' );
590
+ remove_meta_box( 'sharing_meta', 'wprss_feed' ,'advanced' );
591
+ remove_meta_box( 'content-permissions-meta-box', 'wprss_feed' ,'advanced' );
592
+ remove_meta_box( 'theme-layouts-post-meta-box', 'wprss_feed' ,'side' );
593
+ remove_meta_box( 'post-stylesheets', 'wprss_feed' ,'side' );
594
+ remove_meta_box( 'hybrid-core-post-template', 'wprss_feed' ,'side' );
595
+ remove_meta_box( 'wpcf-marketing', 'wprss_feed' ,'side' );
596
+ remove_meta_box( 'trackbacksdiv22', 'wprss_feed' ,'advanced' );
597
+ remove_meta_box( 'aiosp', 'wprss_feed' ,'advanced' );
598
+ remove_action( 'post_submitbox_start', 'fpp_post_submitbox_start_action' );
599
+ }
includes/admin-options.php ADDED
@@ -0,0 +1,895 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin settings related functions
4
+ *
5
+ * Note: Wording of options and settings is confusing, due to the plugin originally only having
6
+ * an 'options' page to enter feed sources, and now needing two screens, one for feed sources and one for
7
+ * general settings. Might implement something cleaner in the future.
8
+ *
9
+ * @package WP PRSS Aggregator
10
+ */
11
+
12
+
13
+
14
+ /**
15
+ * Returns the given general setting option value form the database, or the default value if it is not found.
16
+ *
17
+ * @param option_name The name of the option to get
18
+ * @return mixed
19
+ * @since 3.7.1
20
+ */
21
+ function wprss_get_general_setting( $option_name ) {
22
+ $options = get_option( 'wprss_settings_general', array() );
23
+ $defaults = wprss_get_default_settings_general();
24
+ return ( ( isset( $options[ $option_name ] ) )? $options[$option_name] : $defaults[$option_name] );
25
+ }
26
+
27
+
28
+ add_action( 'admin_init', 'wprss_admin_init' );
29
+ /**
30
+ * Register and define options and settings
31
+ * @since 2.0
32
+ * @todo add option for cron frequency
33
+ *
34
+ * Note: In the future might change to
35
+ * the way EDD builds the settings pages, cleaner method.
36
+ */
37
+ function wprss_admin_init() {
38
+
39
+ register_setting(
40
+ 'wprss_settings_general', // A settings group name.
41
+ 'wprss_settings_general', // The name of an option to sanitize and save.
42
+ 'wprss_settings_general_validate' // A callback function that sanitizes the option's value.
43
+ );
44
+
45
+ // Licensing of add-ons
46
+ register_setting(
47
+ 'wprss_settings_license_keys',
48
+ 'wprss_settings_license_keys',
49
+ 'wprss_settings_license_keys_validate'
50
+ );
51
+
52
+
53
+ $sections = apply_filters(
54
+ 'wprss_settings_sections_array',
55
+ array(
56
+ 'general' => __( 'General plugin settings', 'wprss' ),
57
+ 'display' => __( 'Display settings', 'wprss' ),
58
+ 'styles' => __( 'Styles', 'wprss' ),
59
+ )
60
+ );
61
+
62
+ // Define the settings per section
63
+ $settings = apply_filters(
64
+ 'wprss_settings_array',
65
+ array(
66
+ 'general' => array(
67
+ 'limit-feed-items-by-age' => array(
68
+ 'label' => __( 'Limit feed items by age', 'wprss' ),
69
+ 'callback' => 'wprss_setting_limit_feed_items_age_callback'
70
+ ),
71
+ 'limit-feed-items-db' => array(
72
+ 'label' => __( 'Limit feed items stored', 'wprss' ),
73
+ 'callback' => 'wprss_setting_limit_feed_items_callback'
74
+ ),
75
+ 'limit-feed-items-imported' => array(
76
+ 'label' => __( 'Limit feed items per feed', 'wprss' ),
77
+ 'callback' => 'wprss_setting_limit_feed_items_imported_callback'
78
+ ),
79
+ 'cron-interval' => array(
80
+ 'label' => __( 'Feed processing interval', 'wprss' ),
81
+ 'callback' => 'wprss_setting_cron_interval_callback'
82
+ ),
83
+ 'custom-feed-url' => array(
84
+ 'label' => __( 'Custom feed URL', 'wprss' ),
85
+ 'callback' => 'wprss_setings_custom_feed_url_callback'
86
+ ),
87
+ 'custom-feed-limit' => array(
88
+ 'label' => __( 'Custom feed limit', 'wprss' ),
89
+ 'callback' => 'wprss_setings_custom_feed_limit_callback'
90
+ ),
91
+ 'tracking' => array(
92
+ 'label' => __( 'Anonymous tracking', 'wprss' ),
93
+ 'callback' => 'wprss_tracking_callback',
94
+ )
95
+ ),
96
+
97
+ 'display' => array(
98
+ 'source-enable' => array(
99
+ 'label' => __( 'Show source', 'wprss' ),
100
+ 'callback' => 'wprss_setting_source_enable_callback'
101
+ ),
102
+ 'text-preceding-source' => array(
103
+ 'label' => __( 'Text preceding source', 'wprss' ),
104
+ 'callback' => 'wprss_setting_text_preceding_source_callback'
105
+ ),
106
+ 'source-link' => array(
107
+ 'label' => __( 'Link source', 'wprss' ),
108
+ 'callback' => 'wprss_setting_source_link_callback'
109
+ ),
110
+ 'open-dd' => array(
111
+ 'label' => __( 'Source link open behaviour', 'wprss' ),
112
+ 'callback' => 'wprss_setting_open_dd_callback'
113
+ ),
114
+
115
+ 'link-enable' => array(
116
+ 'label' => __( 'Link title', 'wprss' ),
117
+ 'callback' => 'wprss_setting_title_link_callback'
118
+ ),
119
+ 'title-limit' => array(
120
+ 'label' => __( 'Title maximum length', 'wprss' ),
121
+ 'callback' => 'wprss_setting_title_length_callback'
122
+ ),
123
+ 'video-links' => array(
124
+ 'label' => __( 'For video feed items use', 'wprss' ),
125
+ 'callback' => 'wprss_setting_video_links_callback'
126
+ ),
127
+ 'follow-dd' => array(
128
+ 'label' => __( 'Set links as nofollow', 'wprss' ),
129
+ 'callback' => 'wprss_setting_follow_dd_callback'
130
+ ),
131
+ 'date-enable' => array(
132
+ 'label' => __( 'Show date', 'wprss' ),
133
+ 'callback' => 'wprss_setting_date_enable_callback'
134
+ ),
135
+ 'date-format' => array(
136
+ 'label' => __( 'Date format', 'wprss' ),
137
+ 'callback' => 'wprss_setting_date_format_callback'
138
+ ),
139
+ 'text-preceding-date' => array(
140
+ 'label' => __( 'Text preceding date', 'wprss' ),
141
+ 'callback' => 'wprss_setting_text_preceding_date_callback'
142
+ ),
143
+
144
+ 'feed-limit' => array(
145
+ 'label' => __( 'Feed display limit', 'wprss' ),
146
+ 'callback' => 'wprss_setting_feed_limit_callback'
147
+ ),
148
+ ),
149
+
150
+ 'styles' => array(
151
+ 'styles-disable' => array(
152
+ 'label' => __( 'Disable Styles', 'wprss' ),
153
+ 'callback' => 'wprss_setting_styles_disable_callback'
154
+ )
155
+ )
156
+ )
157
+ );
158
+
159
+ if ( apply_filters( 'wprss_use_fixed_feed_limit', FALSE ) === FALSE ) {
160
+ unset( $settings['general']['limit-feed-items-db'] );
161
+ }
162
+
163
+
164
+ // Loop through each setting field and register it
165
+ foreach( $settings as $section => $fields ) {
166
+ if ( count( $fields ) > 0 ) {
167
+ $section_desc = $sections[ $section ];
168
+ add_settings_section(
169
+ "wprss_settings_${section}_section",
170
+ $section_desc,
171
+ "wprss_settings_${section}_callback",
172
+ 'wprss_settings_general'
173
+ );
174
+
175
+ foreach ( $fields as $id => $data ) {
176
+
177
+ add_settings_field(
178
+ 'wprss-settings-' . $id,
179
+ $data['label'],
180
+ $data['callback'],
181
+ 'wprss_settings_general',
182
+ "wprss_settings_${section}_section"
183
+ );
184
+
185
+ }
186
+ }
187
+ }
188
+
189
+
190
+ /*
191
+ // SECURE RESET OPTION
192
+ register_setting(
193
+ 'wprss_secure_reset', // A settings group name.
194
+ 'wprss_secure_reset_code', // The name of an option to sanitize and save.
195
+ '' // A callback function that sanitizes the option's value.
196
+ );
197
+ add_settings_section(
198
+ 'wprss_secure_reset_section', // ID of section
199
+ __( 'Secure Reset', 'wprss' ), // Title of section
200
+ 'wprss_secure_reset_section_callback', // Callback that renders the section header
201
+ 'wprss_settings_general' // The page on which to display the section
202
+ );
203
+ add_settings_field(
204
+ 'wprss-settings-secure-reset', // ID of setting
205
+ __( 'Secure Reset', 'wprss' ), // The title of the setting
206
+ 'wprss_settings_secure_reset_code_callback', // The callback that renders the setting
207
+ 'wprss_settings_general', // The page on which to display the setting
208
+ "wprss_secure_reset_section" // The section in which to display the setting
209
+ );
210
+ */
211
+
212
+
213
+
214
+ do_action( 'wprss_admin_init' );
215
+ }
216
+
217
+
218
+ /**
219
+ * Build the plugin settings page, used to save general settings like whether a link should be follow or no follow
220
+ * @since 1.1
221
+ */
222
+ function wprss_settings_page_display() {
223
+ ?>
224
+ <div class="wrap">
225
+ <?php screen_icon( 'wprss-aggregator' ); ?>
226
+
227
+ <h2><?php _e( 'WP RSS Aggregator Settings', 'wprss' ); ?></h2>
228
+
229
+ <?php settings_errors(); ?>
230
+
231
+ <?php $active_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'general_settings'; ?>
232
+
233
+ <?php
234
+
235
+ $default_tabs = array(
236
+ 'general' => array(
237
+ 'label' => __( 'General', 'wprss' ),
238
+ 'slug' => 'general_settings',
239
+ ),
240
+ 'licenses' => array(
241
+ 'label' => __( 'Licenses', 'wprss' ),
242
+ 'slug' => 'licenses_settings'
243
+ )
244
+ );
245
+
246
+ $addon_tabs = apply_filters( 'wprss_options_tabs', array() );
247
+
248
+ $tabs = array_merge( array( $default_tabs['general'] ), $addon_tabs , array( $default_tabs['licenses'] ) );
249
+
250
+ $show_tabs = ( count( $addon_tabs ) > 0 ) || apply_filters( 'wprss_show_settings_tabs_condition', FALSE );
251
+
252
+ if ( $show_tabs ) { ?>
253
+ <h2 class="nav-tab-wrapper">
254
+ <?php
255
+ foreach ( $tabs as $tab => $tab_property ) { ?>
256
+ <a href="?post_type=wprss_feed&page=wprss-aggregator-settings&tab=<?php echo esc_attr( $tab_property['slug'] ); ?>"
257
+ class="nav-tab <?php echo $active_tab == $tab_property['slug'] ? 'nav-tab-active' : ''; ?>"><?php echo esc_html( $tab_property['label'] ); ?></a>
258
+ <?php } ?>
259
+ <?php } ?>
260
+ </h2>
261
+
262
+ <form action="options.php" method="post">
263
+
264
+ <?php
265
+
266
+ if ( $active_tab === 'general_settings' ) {
267
+ settings_fields( 'wprss_settings_general' );
268
+ //settings_fields( 'wprss_secure_reset' );
269
+ do_settings_sections( 'wprss_settings_general' );
270
+ }
271
+ elseif ( $show_tabs ) {
272
+
273
+ if ( $active_tab === 'licenses_settings' ) {
274
+ settings_fields( 'wprss_settings_license_keys' );
275
+ do_settings_sections( 'wprss_settings_license_keys' );
276
+ }
277
+
278
+ do_action( 'wprss_add_settings_fields_sections', $active_tab );
279
+ }
280
+
281
+ submit_button( __( 'Save Settings', 'wprss' ) );
282
+
283
+ ?>
284
+ </form>
285
+ </div>
286
+ <?php
287
+ }
288
+
289
+
290
+ /**
291
+ * General settings section header
292
+ * @since 3.0
293
+ */
294
+ function wprss_settings_general_callback() {
295
+ echo '<p>' . __( 'These are the general settings for WP RSS Aggregator.', 'wprss' ) . '</p>';
296
+ }
297
+
298
+
299
+ /**
300
+ * General settings display section header
301
+ * @since 3.5
302
+ */
303
+ function wprss_settings_display_callback() {
304
+ echo '<p>' . __( 'In this section you can find the options that control how the feed items are displayed.', 'wprss' ) . '</p>';
305
+ }
306
+
307
+
308
+ /**
309
+ * General settings styles section header
310
+ * @since 3.0
311
+ */
312
+ function wprss_settings_styles_callback() {
313
+ echo '<p>' . __( 'If you would like to disable all styles used in this plugin, tick the checkbox.', 'wprss' ) . '</p>';
314
+ }
315
+
316
+
317
+ /**
318
+ * General settings scure reset section header
319
+ * @since 3.0
320
+ */
321
+ function wprss_secure_reset_section_callback() {
322
+ echo '<p>' . __( 'Set your security reset code, in case of any errors.', 'wprss' ) . '</p>';
323
+ }
324
+
325
+
326
+ /**
327
+ * Tracking settings section header
328
+ * @since 3.0
329
+ */
330
+ function wprss_tracking_section_callback() {
331
+ echo '<p>' . __( 'Participate in helping us make the plugin better.', 'wprss' ) . '</p>';
332
+ }
333
+
334
+
335
+ /**
336
+ * Follow or No Follow dropdown
337
+ * @since 1.1
338
+ */
339
+ function wprss_setting_follow_dd_callback() {
340
+ $follow_dd = wprss_get_general_setting( 'follow_dd' );
341
+
342
+ $checked = ( $follow_dd === 'no_follow' );
343
+ $checked_attr = ( $checked )? 'checked="checked"' : '';
344
+
345
+ echo "<input type='hidden' name='wprss_settings_general[follow_dd]' value='follow'>";
346
+ echo "<input type='checkbox' id='follow-dd' name='wprss_settings_general[follow_dd]' value='no_follow' $checked_attr>";
347
+
348
+ echo '<label class="description" id="follow-dd">';
349
+ echo '"Nofollow" provides a way for webmasters to tell search engines "Don\'t follow links on this page" or "Don\'t follow this specific link."';
350
+ echo '</label>';
351
+ }
352
+
353
+
354
+ /**
355
+ * Use original video link, or embedded video links dropwdown
356
+ * @since 3.4
357
+ */
358
+ function wprss_setting_video_links_callback() {
359
+ $video_link = wprss_get_general_setting('video_link');
360
+ $items = array(
361
+ 'false' => __( 'Original page link', 'wprss' ),
362
+ 'true' => __( 'Embedded video player link', 'wprss' )
363
+ );
364
+ echo "<select id='video-link' name='wprss_settings_general[video_link]'>";
365
+ foreach ( $items as $boolean => $text ) {
366
+ $selected = ( $video_link === $boolean )? 'selected="selected"' : '';
367
+ echo "<option value='$boolean' $selected>$text</option>";
368
+ }
369
+ echo "</select>";
370
+ echo "<label class='description' for='video-link'>This will not affect already imported feed items.</label>";
371
+ }
372
+
373
+
374
+ /**
375
+ * Link open setting dropdown
376
+ * @since 1.1
377
+ */
378
+ function wprss_setting_open_dd_callback() {
379
+ $open_dd = wprss_get_general_setting('open_dd');
380
+
381
+ $items = array(
382
+ __( 'Lightbox', 'wprss' ),
383
+ __( 'New window', 'wprss' ),
384
+ __( 'Self', 'wprss' )
385
+ );
386
+ echo "<select id='open-dd' name='wprss_settings_general[open_dd]'>";
387
+ foreach( $items as $item ) {
388
+ $selected = ( $open_dd == $item ) ? 'selected="selected"' : '';
389
+ echo "<option value='$item' $selected>$item</option>";
390
+ }
391
+ echo "</select>";
392
+ }
393
+
394
+
395
+ /**
396
+ * Set limit for feeds on frontend
397
+ * @since 2.0
398
+ */
399
+ function wprss_setting_feed_limit_callback() {
400
+ $feed_limit = wprss_get_general_setting( 'feed_limit' );
401
+ echo "<input id='feed-limit' name='wprss_settings_general[feed_limit]' type='text' value='$feed_limit' />";
402
+ echo "<label class='description' for='feed-limit'>Enter the number of feeds to display on the front end</label>";
403
+ }
404
+
405
+
406
+ /**
407
+ * Set date format
408
+ * @since 3.0
409
+ */
410
+ function wprss_setting_date_format_callback() {
411
+ $date_format = wprss_get_general_setting( 'date_format' );
412
+ echo "<input id='date-format' name='wprss_settings_general[date_format]' type='text' value='$date_format' />";
413
+ echo "<label class='description' for='date-format'>Date formatting, using the <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>PHP date formats</a></label>";
414
+ }
415
+
416
+
417
+
418
+ /**
419
+ * Enable linked title
420
+ * @since 3.0
421
+ */
422
+ function wprss_setting_title_link_callback( $args ) {
423
+ $title_link = wprss_get_general_setting( 'title_link' );
424
+ echo "<input id='title-link' name='wprss_settings_general[title_link]' type='checkbox' value='1' " . checked( 1, $title_link, false ) . " />";
425
+ echo "<label class='description' for='title-link'>Check this box to enable linked titles</label>";
426
+ }
427
+
428
+
429
+
430
+ /**
431
+ * Set the title length limit
432
+ * @since 3.0
433
+ */
434
+ function wprss_setting_title_length_callback( $args ) {
435
+ $title_limit = wprss_get_general_setting( 'title_limit' );
436
+ echo "<input id='title-limit' name='wprss_settings_general[title_limit]' type='number' class='wprss-number-roller' min='0' value='$title_limit' placeholder='No limit' />";
437
+ echo "<label class='description' for='title-limit'>Set the maximum number of characters for feed titles.</label>";
438
+ }
439
+
440
+
441
+ /**
442
+ * Enable source
443
+ * @since 3.0
444
+ */
445
+ function wprss_setting_source_enable_callback( $args ) {
446
+ $source_enable = wprss_get_general_setting( 'source_enable' );
447
+ echo "<input id='source-enable' name='wprss_settings_general[source_enable]' type='checkbox' value='1' " . checked( 1, $source_enable, false ) . " />";
448
+ echo "<label class='description' for='source-enable'>Check this box to enable feed source display</label>";
449
+ }
450
+
451
+ /**
452
+ * Enable linked title
453
+ * @since 3.0
454
+ */
455
+ function wprss_setting_source_link_callback( $args ) {
456
+ $source_link = wprss_get_general_setting( 'source_link' );
457
+ echo "<input id='source-link' name='wprss_settings_general[source_link]' type='checkbox' value='1' " . checked( 1, $source_link, false ) . " />";
458
+ echo "<label class='description' for='source-link'>Check this box to enable linked sources</label>";
459
+ }
460
+
461
+
462
+ /**
463
+ * Set text preceding source
464
+ * @since 3.0
465
+ */
466
+ function wprss_setting_text_preceding_source_callback() {
467
+ $text_preceding_source = wprss_get_general_setting( 'text_preceding_source' );
468
+ echo "<input id='text-preceding-source' name='wprss_settings_general[text_preceding_source]' type='text' value='$text_preceding_source' />";
469
+ echo "<label class='description' for='text-preceding-source'>Enter the text you want shown before the feed item's source</label>";
470
+ }
471
+ /**
472
+ * Enable date
473
+ * @since 3.0
474
+ */
475
+ function wprss_setting_date_enable_callback( $args ) {
476
+ $date_enable = wprss_get_general_setting( 'date_enable' );
477
+ echo "<input id='date-enable' name='wprss_settings_general[date_enable]' type='checkbox' value='1' " . checked( 1, $date_enable, false ) . " />";
478
+ echo "<label class='description' for='date-enable'>Check this box to enable display of date published</label>";
479
+ }
480
+
481
+ /**
482
+ * Set text preceding date
483
+ * @since 3.0
484
+ */
485
+ function wprss_setting_text_preceding_date_callback() {
486
+ $text_preceding_date = wprss_get_general_setting( 'text_preceding_date' );
487
+ echo "<input id='text-preceding-date' name='wprss_settings_general[text_preceding_date]' type='text' value='$text_preceding_date' />";
488
+ echo "<label class='description' for='text-preceding-date'>Enter the text you want shown before the feed item's publish date</label>";
489
+ }
490
+
491
+
492
+
493
+ /**
494
+ * Limit number of feed items stored by their age
495
+ * @since 3.0
496
+ */
497
+ function wprss_setting_limit_feed_items_age_callback() {
498
+ $limit_feed_items_age = wprss_get_general_setting( 'limit_feed_items_age' );
499
+ $limit_feed_items_age_unit = wprss_get_general_setting( 'limit_feed_items_age_unit' );
500
+ $units = wprss_age_limit_units();
501
+ ?>
502
+
503
+ <input id="limit-feed-items-age" name="wprss_settings_general[limit_feed_items_age]" type="number" min="0"
504
+ class="wprss-number-roller" placeholder="No limit" value="<?php echo $limit_feed_items_age; ?>" />
505
+
506
+ <select id="limit-feed-items-age-unit" name="wprss_settings_general[limit_feed_items_age_unit]">
507
+ <?php foreach ( $units as $unit ) : ?>
508
+ <option value="<?php echo $unit; ?>" <?php selected( $limit_feed_items_age_unit, $unit ); ?> ><?php echo $unit; ?></option>
509
+ <?php endforeach; ?>
510
+ </select>
511
+
512
+ <br/>
513
+ <label class='description' for='limit-feed-items-age'>
514
+ Enter the maximum age of feed items to be stored in the database. Feed items older than the specified age will be deleted everyday at midnight.
515
+ <br/>
516
+ Leave empty for no limit.
517
+ </label>
518
+
519
+ <?php
520
+ }
521
+
522
+
523
+
524
+ /**
525
+ * Limit number of feed items stored
526
+ * @since 3.0
527
+ */
528
+ function wprss_setting_limit_feed_items_callback() {
529
+ $limit_feed_items_db = wprss_get_general_setting( 'limit_feed_items_db' );
530
+ echo "<input id='limit-feed-items-db' name='wprss_settings_general[limit_feed_items_db]' type='text' value='$limit_feed_items_db' />";
531
+ echo "<label class='description' for='limit-feed-items-db'>Enter the maximum number of feeds to store in the database; enter 0 for unlimited feed items</label>";
532
+ }
533
+
534
+
535
+ /**
536
+ * Limit number of feed items imported per feed
537
+ * @since 3.1
538
+ */
539
+ function wprss_setting_limit_feed_items_imported_callback() {
540
+ $limit_feed_items_imported = wprss_get_general_setting( 'limit_feed_items_imported' );
541
+ echo "<input id='limit-feed-items-imported' name='wprss_settings_general[limit_feed_items_imported]' type='text' value='$limit_feed_items_imported' />";
542
+ echo "<label class='description' for='limit-feed-items-imported'>Enter the maximum number of feeds to import per feed source; enter 0 for unlimited feed items</label>";
543
+ }
544
+
545
+
546
+ /**
547
+ * Gets a sorted (according to interval) list of the cron schedules
548
+ * @since 3.0
549
+ */
550
+ function wprss_get_schedules() {
551
+ $schedules = wp_get_schedules();
552
+ uasort( $schedules, create_function( '$a,$b', 'return $a["interval"]-$b["interval"];' ) );
553
+ return $schedules;
554
+ }
555
+
556
+
557
+ /**
558
+ * Cron interval dropdown callback
559
+ * @since 3.0
560
+ */
561
+ function wprss_setting_cron_interval_callback() {
562
+ $options = get_option( 'wprss_settings_general' );
563
+ $current = $options['cron_interval'];
564
+
565
+ $schedules = wprss_get_schedules();
566
+ // Set the allowed Cron schedules, we don't want any intervals that can lead to issues with server load
567
+ $wprss_schedules = apply_filters(
568
+ 'wprss_schedules',
569
+ array( 'fifteen_min', 'thirty_min', 'hourly', 'two_hours', 'twicedaily', 'daily' )
570
+ );
571
+ echo "<select id='cron-interval' name='wprss_settings_general[cron_interval]'>";
572
+ foreach( $schedules as $schedule_name => $schedule_data ) {
573
+ if ( in_array( $schedule_name, $wprss_schedules ) ) { ?>
574
+ <option value="<?php echo $schedule_name; ?>" <?php selected( $current, $schedule_name ); ?> >
575
+ <?php echo $schedule_data['display']; ?> (<?php echo wprss_interval( $schedule_data['interval'] ); ?>)
576
+ </option>
577
+ <?php } ?>
578
+ <?php } ?>
579
+ </select><?php
580
+ }
581
+
582
+ /**
583
+ * Sets the custom feed URL
584
+ * @since 3.3
585
+ */
586
+ function wprss_setings_custom_feed_url_callback() {
587
+ $custom_feed_url = wprss_get_general_setting( 'custom_feed_url' );
588
+ echo "<input id='custom_feed_url' name='wprss_settings_general[custom_feed_url]' type='text' value='$custom_feed_url' />";
589
+ echo "<label class='description' for='custom_feed_url'>" . __( 'Custom feed URL', 'wprss' ) . "</label>";
590
+ }
591
+
592
+ /**
593
+ * Sets the custom feed limit
594
+ * @since 3.3
595
+ */
596
+ function wprss_setings_custom_feed_limit_callback() {
597
+ $custom_feed_limit = wprss_get_general_setting( 'custom_feed_limit' );
598
+ echo "<input id='custom_feed_limit' name='wprss_settings_general[custom_feed_limit]' placeholder='Default' min='0' class='wprss-number-roller' type='number' value='$custom_feed_limit' />";
599
+ echo "<label class='description' for='custom_feed_limit'>" . __( 'Number of items to show in the custom feed', 'wprss' ) . "</label>";
600
+ }
601
+
602
+ /**
603
+ * Disable styles
604
+ * @since 3.0
605
+ */
606
+ function wprss_setting_styles_disable_callback( $args ) {
607
+ $styles_disable = wprss_get_general_setting( 'styles_disable' );
608
+ echo "<input id='styles-disable' name='wprss_settings_general[styles_disable]' type='checkbox' value='1' " . checked( 1, $styles_disable, false ) . " />";
609
+ echo "<label class='description' for='styles-disable'>Check this box to disable all plugin styles</label>";
610
+ echo "<p class='description'>You will then be responsible for providing your own CSS styles.</p>";
611
+ }
612
+
613
+
614
+
615
+ /**
616
+ * Secure Reset section
617
+ *
618
+ * @since 3.7.1
619
+ */
620
+ function wprss_settings_secure_reset_code_callback( $args ) {
621
+ $reset_code = get_option( 'wprss_secure_reset_code', '' );
622
+ ?>
623
+ <input id="wprss-secure-reset-code" name="wprss_secure_reset_code" type="input" value="<?php echo $reset_code; ?>" />
624
+ <button type="button" role="button" id="wprss-secure-reset-generate">Generate Random Code</button>
625
+
626
+ <br/>
627
+
628
+ <label class="description" for="wprss-secure-reset-code">
629
+ Enter the code to use to securely reset the plugin and deactivate it. Be sure to save this code somewhere safe.<br/>
630
+ </label>
631
+
632
+ <br/>
633
+
634
+ <p>
635
+ Leave this empty to disable the secure reset function.<br/>
636
+ You use this code by adding any of the following to any URL on your site.
637
+ <ol>
638
+ <li>"?wprss_action=reset&wprss_security_code=&lt;your_code&gt;" - <b>Resets your WP RSS Aggregator settings</b></li>
639
+ <li>"?wprss_action=deactivate&wprss_security_code=&lt;your_code&gt;" - <b>Deactivates WP RSS Aggregator</b></li>
640
+ <li>"?wprss_action=reset_and_deactivate&wprss_security_code=&lt;your_code&gt;" - <b>Does both of the above</b></li>
641
+ </ol>
642
+ </p>
643
+ <p class="description">
644
+ Use the above actions only when absolutely necessary, or when instructed to by support staff.
645
+ </p>
646
+ <?php
647
+ }
648
+
649
+
650
+ /**
651
+ * Tracking checkbox
652
+ * @since 3.6
653
+ */
654
+ function wprss_tracking_callback( $args ) {
655
+ $tracking = wprss_get_general_setting( 'tracking' );
656
+ echo "<input type='checkbox' id='tracking' name='wprss_settings_general[tracking]' value='1' " . checked( 1, $tracking, false ) . " />";
657
+ echo "<label class='description' for='tracking'>Please help us improve WP RSS Aggregator by allowing us to gather anonymous usage statistics.</label>";
658
+ echo "<p class='description'>No sensitive data will be sent.</p>";
659
+ }
660
+
661
+
662
+ /**
663
+ * Pretty-prints the difference in two times.
664
+ *
665
+ * @since 3.0
666
+ * @param time $older_date
667
+ * @param time $newer_date
668
+ * @return string The pretty time_since value
669
+ * @link http://wordpress.org/extend/plugins/wp-crontrol/
670
+ */
671
+ function wprss_time_since( $older_date, $newer_date ) {
672
+ return wprss_interval( $newer_date - $older_date );
673
+ }
674
+
675
+ /**
676
+ * Calculates difference between times
677
+ *
678
+ * Taken from the WP-Crontrol plugin
679
+ * @link http://wordpress.org/extend/plugins/wp-crontrol/
680
+ * @since 3.0
681
+ *
682
+ */
683
+ function wprss_interval( $since ) {
684
+ if ( $since === wprss_get_default_feed_source_update_interval() ) {
685
+ return __( 'Default', 'wprss' );
686
+ }
687
+ // array of time period chunks
688
+ $chunks = array(
689
+ array(60 * 60 * 24 * 365 , _n_noop('%s year', '%s years', 'crontrol')),
690
+ array(60 * 60 * 24 * 30 , _n_noop('%s month', '%s months', 'crontrol')),
691
+ array(60 * 60 * 24 * 7, _n_noop('%s week', '%s weeks', 'crontrol')),
692
+ array(60 * 60 * 24 , _n_noop('%s day', '%s days', 'crontrol')),
693
+ array(60 * 60 , _n_noop('%s hour', '%s hours', 'crontrol')),
694
+ array(60 , _n_noop('%s minute', '%s minutes', 'crontrol')),
695
+ array( 1 , _n_noop('%s second', '%s seconds', 'crontrol')),
696
+ );
697
+
698
+
699
+ if( $since <= 0 ) {
700
+ return __( 'now', 'wprss' );
701
+ }
702
+
703
+ // we only want to output two chunks of time here, eg:
704
+ // x years, xx months
705
+ // x days, xx hours
706
+ // so there's only two bits of calculation below:
707
+
708
+ // step one: the first chunk
709
+ for ($i = 0, $j = count($chunks); $i < $j; $i++)
710
+ {
711
+ $seconds = $chunks[$i][0];
712
+ $name = $chunks[$i][1];
713
+
714
+ // finding the biggest chunk (if the chunk fits, break)
715
+ if (($count = floor($since / $seconds)) != 0)
716
+ {
717
+ break;
718
+ }
719
+ }
720
+
721
+ // set output var
722
+ $output = sprintf(_n($name[0], $name[1], $count, 'wprss'), $count);
723
+
724
+ // step two: the second chunk
725
+ if ($i + 1 < $j)
726
+ {
727
+ $seconds2 = $chunks[$i + 1][0];
728
+ $name2 = $chunks[$i + 1][1];
729
+
730
+ if (($count2 = floor(($since - ($seconds * $count)) / $seconds2)) != 0)
731
+ {
732
+ // add to output var
733
+ $output .= ' '.sprintf(_n($name2[0], $name2[1], $count2, 'wprss'), $count2);
734
+ }
735
+ }
736
+
737
+ return $output;
738
+ }
739
+
740
+
741
+ /**
742
+ * Validate inputs from the general settings page
743
+ * @since 3.0
744
+ */
745
+ function wprss_settings_general_validate( $input ) {
746
+ $options = get_option( 'wprss_settings_general' );
747
+ $current_cron_interval = $options['cron_interval'];
748
+
749
+ // Create our array for storing the validated options
750
+ $output = array();
751
+
752
+ // Loop through each of the incoming options
753
+ foreach( $input as $key => $value ) {
754
+
755
+ // Check to see if the current option has a value. If so, process it.
756
+ if( isset( $input[ $key ] ) ) {
757
+
758
+ // Strip all HTML and PHP tags and properly handle quoted strings
759
+ $output[ $key ] = strip_tags( stripslashes( $input[ $key ] ) );
760
+
761
+ } // end if
762
+
763
+ } // end foreach
764
+
765
+ // If limit_feed_items_age_unit is not set or it set to zero, set it to empty
766
+ if ( ! isset( $input['limit_feed_items_age'] ) || strval( $input['limit_feed_items_age'] ) == '0' ) {
767
+ $output['limit_feed_items_age'] = '';
768
+ }
769
+
770
+ if ( ! isset( $input['title_link'] ) || $input['title_link'] != '1' )
771
+ $output['title_link'] = 0;
772
+ else
773
+ $output['title_link'] = 1;
774
+
775
+ if ( ! isset( $input['source_enable'] ) || $input['source_enable'] != '1' )
776
+ $output['source_enable'] = 0;
777
+ else
778
+ $output['source_enable'] = 1;
779
+
780
+ if ( ! isset( $input['date_enable'] ) || $input['date_enable'] != '1' )
781
+ $output['date_enable'] = 0;
782
+ else
783
+ $output['date_enable'] = 1;
784
+
785
+ if ( ! isset( $input['styles_disable'] ) || $input['styles_disable'] != '1' )
786
+ $output['styles_disable'] = 0;
787
+ else
788
+ $output['styles_disable'] = 1;
789
+
790
+ if ( ! isset( $input['video_link'] ) || strtolower( $input['video_link'] ) !== 'true' )
791
+ $output['video_link'] = 'false';
792
+ else
793
+ $output['video_link'] = 'true';
794
+
795
+ if ( $input['cron_interval'] != $current_cron_interval ) {
796
+ wp_clear_scheduled_hook( 'wprss_fetch_all_feeds_hook' );
797
+ wp_schedule_event( time(), $input['cron_interval'], 'wprss_fetch_all_feeds_hook' );
798
+ }
799
+
800
+ // Return the array processing any additional functions filtered by this action
801
+ return apply_filters( 'wprss_settings_general_validate', $output, $input );
802
+ }
803
+
804
+
805
+ /**
806
+ * Validates the licenses settings
807
+ *
808
+ * @since 3.8
809
+ */
810
+ function wprss_settings_license_keys_validate( $input ) {
811
+ // Get the current licenses option
812
+ $licenses = get_option( 'wprss_settings_license_keys' );
813
+ // For each entry in the recieved input
814
+ foreach ( $input as $addon => $license_code ) {
815
+ // If the entry does not exist OR the code is different
816
+ if ( !array_key_exists( $addon, $licenses ) || $license_code !== $licenses[ $addon ] ) {
817
+ // Save it to the licenses option
818
+ $licenses[ $addon ] = $license_code;
819
+ }
820
+ }
821
+ wprss_check_license_statuses();
822
+ // Return the new licenses
823
+ return $licenses;
824
+ }
825
+
826
+
827
+
828
+ add_action( 'wprss_check_license_statuses', 'wprss_check_license_statuses' );
829
+ /**
830
+ * Checks the license statuses
831
+ *
832
+ * @since 3.8.1
833
+ */
834
+ function wprss_check_license_statuses() {
835
+ $license_statuses = get_option( 'wprss_settings_license_statuses', array() );
836
+
837
+ if ( count( $license_statuses ) === 0 ) return;
838
+
839
+ $found_inactive = FALSE;
840
+ foreach ( $license_statuses as $addon => $status ) {
841
+ if ( $status !== 'active' ) {
842
+ $found_inactive = TRUE;
843
+ break;
844
+ }
845
+ }
846
+
847
+ if ( $found_inactive ) {
848
+ set_transient( 'wprss_notify_inactive_licenses', 1, 0 );
849
+ }
850
+ }
851
+
852
+
853
+
854
+ /**
855
+ * Validates the wprss_secure_reset_code option
856
+ *
857
+ * @since 3.7.1
858
+ */
859
+ function wprss_secure_reset_code_validate( $input ) {
860
+ return $input;
861
+ }
862
+
863
+
864
+
865
+ /**
866
+ * Validates the presstrends setting
867
+ *
868
+ * @since 3.6
869
+ */
870
+ function wprss_tracking_validate ( $input ) {
871
+ $output = $input;
872
+ if ( ! isset( $input['wprss_tracking'] ) ) {
873
+ $output['wprss_tracking'] = 0;
874
+ }
875
+ return $output;
876
+ }
877
+
878
+
879
+
880
+ /**
881
+ * Returns the units used for the limit by age option.
882
+ *
883
+ * @since 3.8
884
+ */
885
+ function wprss_age_limit_units() {
886
+ return apply_filters(
887
+ 'wprss_age_limit_units',
888
+ array(
889
+ 'days',
890
+ 'weeks',
891
+ 'months',
892
+ 'years'
893
+ )
894
+ );
895
+ }
includes/admin-welcome.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @todo Localize
5
+ */
6
+
7
+ // Exit if the page is accessed directly
8
+ if ( ! defined( 'ABSPATH' ) ) exit;
9
+
10
+
11
+ // The tabs to be shown
12
+ $tabs = array(
13
+ /* 'cat' => 'Categories',
14
+ 'et' => 'Excerpts &amp; Thumbnails',
15
+ 'kf' => 'Keyword Filtering'*/
16
+ );
17
+
18
+ // Determine the tab currently being shown
19
+ $tab = null;
20
+ if ( isset( $_GET['tab'] ) && !empty( $_GET['tab'] ) ) {
21
+ $tab = $_GET['tab'];
22
+ }
23
+
24
+ ?>
25
+
26
+ <div class="wrap about-wrap">
27
+ <h1><?php printf( __( 'Welcome to WP RSS Aggregator %s !', 'wprss' ), WPRSS_VERSION ); ?></h1>
28
+ <div class="about-text">
29
+ Thank you for upgrading to the latest version!
30
+ </div>
31
+ <!-- <div class="wprss-badge">Version</div>-->
32
+
33
+ <!-- TAB WRAPPER -->
34
+ <h2 class="nav-tab-wrapper">
35
+ <a class="nav-tab <?php if ( $tab === null ) echo 'nav-tab-active'; ?>"
36
+ href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'wprss-welcome' ), 'index.php' ) ) ); ?>">
37
+ Overview
38
+ </a>
39
+
40
+ <!-- SHOW ALL TABS -->
41
+ <?php foreach ($tabs as $slug => $title) : ?>
42
+
43
+ <a class="nav-tab <?php if ( $tab === $slug ) echo 'nav-tab-active'; ?>"
44
+ href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'wprss-welcome', 'tab' => $slug ), 'index.php' ) ) ); ?>">
45
+ <?php echo $title; ?>
46
+ </a>
47
+
48
+ <?php endforeach; ?>
49
+
50
+ </h2>
51
+
52
+ <!-- TAB CONTENT -->
53
+ <?php
54
+ /* Show content depending on the current tab */
55
+ switch( $tab ) {
56
+
57
+ // Default tab. ( when tab = null )
58
+ default: ?>
59
+
60
+ <p class="about-description">
61
+ Check out our add-ons:</p>
62
+
63
+ <ul>
64
+ <li><strong><a href="http://www.wprssaggregator.com/extension/feed-post/" target="wprss_ftp">Feed to Post</a> <span style="color: green;">*New*</span></strong></li>
65
+ <li><strong><a href="http://www.wprssaggregator.com/extension/excerpts-thumbnails/" target="wprss_et">Excerpts &amp; Thumbnails</a></strong></li>
66
+ <li><strong><a href="http://www.wprssaggregator.com/extension/categories/" target="wprss_cat">Categories</a></strong></li>
67
+ <li><strong><a href="http://www.wprssaggregator.com/extension/keyword-filtering/" target="wprss_kf">Keyword Filtering</a></strong></li>
68
+ </ul>
69
+ </p>
70
+ <p>Plus we've got some other add-ons already being developed!</p>
71
+ <p>More information about add-ons can be found on our website <a href="http://www.wprssaggregator.com">www.wprssaggregator.com</a></p>
72
+
73
+
74
+
75
+ <h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
76
+ <ul>
77
+ <li>Enhanced: Added a feed validator link in the New/Edit Feed Sources page.</li>
78
+ <li>Enhanced: The Next Update column also shows the time remaining for next update, for feed source on the global update interval.</li>
79
+ <li>Enhanced: The custom feed has been improved, and is now identical to the feeds displayed with the shortcode.</li>
80
+ <li>Enhanced: License notifications only appear on the main site when using WordPress multisite.</li>
81
+ <li>Enhanced: Updated Colorbox script to 1.4.33</li>
82
+ <li>Fixed bug: The Imported Items column was always showing zero.</li>
83
+ <li>Fixed bug: Feed items not being imported with limit set to zero. Should be unlimited.</li>
84
+ </ul>
85
+
86
+
87
+ <?php
88
+ break;
89
+
90
+ // Excerpts and Thumbnails tab
91
+ case 'et': ?>
92
+
93
+ <p class="about-description">
94
+ Fetch RSS feed excerpts to your blog and add thumbnails! Perfect for adding some life and color to your feeds.
95
+ </p>
96
+
97
+ <?php
98
+ break;
99
+
100
+ // Categories Tab
101
+ case 'cat': ?>
102
+
103
+ <p class="about-description">
104
+ Organize your feeds into custom categories. Filter feed items by category and make custom WordPress feeds for specific categories.
105
+ </p>
106
+
107
+ <?php
108
+ break;
109
+
110
+ // Keyword Filtering tab
111
+ case 'kf': ?>
112
+
113
+ <p class="about-description">
114
+ Import and store feeds that contain specific keywords in either the title or their content. Control what gets imported to your blog.
115
+ </p>
116
+
117
+ <?php
118
+ break;
119
+ }
120
+ ?>
121
+
122
+ <hr/>
123
+
124
+ <p><a href="<?php echo admin_url( 'edit.php?post_type=wprss_feed&page=wprss-aggregator-settings'); ?>">Go to WP RSS Aggregator settings</a></p>
125
+
126
+ </div>
127
+
128
+ <?php update_option( 'wprss_pwsv', WPRSS_VERSION ); // Update the previous welcome screen version ?>
includes/admin.php ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin administration related functions
4
+ *
5
+ * @package WPRSSAggregator
6
+ */
7
+
8
+ add_action( 'admin_head', 'wprss_custom_post_type_icon' );
9
+ /**
10
+ * Custom Post Type Icon for Admin Menu & Post Screen
11
+ * @since 2.0
12
+ */
13
+ function wprss_custom_post_type_icon() {
14
+ ?>
15
+ <style>
16
+ /* Post Screen - 32px */
17
+ .icon32-posts-wprss_feed {
18
+ background: transparent url( <?php echo WPRSS_IMG . 'icon-adminpage32.png'; ?> ) no-repeat left top !important;
19
+ }
20
+ /* Post Screen - 32px */
21
+ .icon32-posts-wprss_feed_item {
22
+ background: transparent url( <?php echo WPRSS_IMG . 'icon-adminpage32.png'; ?> ) no-repeat left top !important;
23
+ }
24
+ </style>
25
+ <?php }
26
+
27
+
28
+ add_action( 'admin_menu', 'wprss_register_menu_pages' );
29
+ /**
30
+ * Register menu and submenus
31
+ * @since 2.0
32
+ */
33
+
34
+ // Add the admin options pages as submenus to the Feed CPT
35
+ function wprss_register_menu_pages() {
36
+
37
+ //create submenu items
38
+ add_submenu_page( 'edit.php?post_type=wprss_feed', __( 'WP RSS Aggregator Settings', 'wprss' ), __( 'Settings', 'wprss' ), apply_filters( 'wprss_capability', 'manage_feed_settings' ), 'wprss-aggregator-settings', 'wprss_settings_page_display' );
39
+ add_submenu_page( 'edit.php?post_type=wprss_feed', __( 'Export & Import Settings', 'wprss' ), __( 'Import & Export', 'wprss' ), apply_filters( 'wprss_capability', 'manage_feed_settings' ), 'wprss-import-export-settings', 'wprss_import_export_settings_page_display' );
40
+ add_submenu_page( 'edit.php?post_type=wprss_feed', __( 'Debugging', 'wprss' ), __( 'Debugging', 'wprss' ), apply_filters( 'wprss_capability', 'manage_feed_settings'), 'wprss-debugging', 'wprss_debugging_page_display' );
41
+ }
42
+
43
+
44
+ add_filter('admin_body_class', 'wprss_base_admin_body_class');
45
+ /**
46
+ * Set body class for admin screens
47
+ * http://www.kevinleary.net/customizing-wordpress-admin-css-javascript/
48
+ * @since 2.0
49
+ */
50
+ function wprss_base_admin_body_class( $classes )
51
+ {
52
+ // Current action
53
+ if ( is_admin() && isset($_GET['action']) ) {
54
+ $classes .= 'action-'.$_GET['action'];
55
+ }
56
+ // Current post ID
57
+ if ( is_admin() && isset($_GET['post']) ) {
58
+ $classes .= ' ';
59
+ $classes .= 'post-'.$_GET['post'];
60
+ }
61
+ // New post type & listing page
62
+ if ( isset($_GET['post_type']) ) $post_type = $_GET['post_type'];
63
+ if ( isset($post_type) ) {
64
+ $classes .= ' ';
65
+ $classes .= 'post-type-'.$post_type;
66
+ }
67
+ // Editting a post type
68
+ if ( isset( $_GET['post'] ) ) {
69
+ $post_query = $_GET['post'];
70
+ }
71
+ if ( isset($post_query) ) {
72
+ $current_post_edit = get_post($post_query);
73
+ $current_post_type = $current_post_edit->post_type;
74
+ if ( !empty($current_post_type) ) {
75
+ $classes .= ' ';
76
+ $classes .= 'post-type-'.$current_post_type;
77
+ }
78
+ }
79
+ // Return the $classes array
80
+ return $classes;
81
+ }
82
+
83
+
84
+ /**
85
+ * Change title on wprss_feed post type screen
86
+ *
87
+ * @since 2.0
88
+ * @return void
89
+ */
90
+ function wprss_change_title_text() {
91
+ return __( 'Enter feed name here (e.g. WP Mayor)', 'wprss' );
92
+ }
93
+
94
+
95
+ add_filter( 'plugin_action_links', 'wprss_plugin_action_links', 10, 2 );
96
+ /**
97
+ * Add Settings action link in plugin listing
98
+ *
99
+ * @since 3.0
100
+ * @param array $action_links
101
+ * @param string $plugin_file
102
+ * @return array
103
+ */
104
+ function wprss_plugin_action_links( $action_links, $plugin_file ) {
105
+ // check to make sure we are on the correct plugin
106
+ if ( $plugin_file == 'wp-rss-aggregator/wp-rss-aggregator.php' ) {
107
+ // the anchor tag and href to the URLs we want.
108
+ $settings_link = '<a href="' . admin_url() . 'edit.php?post_type=wprss_feed&page=wprss-aggregator-settings">' . __( 'Settings', 'wprss' ) . '</a>';
109
+ $docs_link = '<a href="http://www.wprssaggregator.com/documentation/">' . __( 'Documentation', 'wprss' ) . '</a>';
110
+ // add the links to the beginning of the list
111
+ array_unshift( $action_links, $settings_link, $docs_link );
112
+ }
113
+ return $action_links;
114
+ }
115
+
116
+
117
+
118
+ if ( is_main_site() ) {
119
+ add_action( 'admin_notices', 'wprss_notify_inactive_licenses' );
120
+ }
121
+ /**
122
+ * Shows a notification that tells the user that there are saved licenses that have not been activated.
123
+ *
124
+ * @since 3.8.1
125
+ */
126
+ function wprss_notify_inactive_licenses() {
127
+ // Check if a transient to show the notice is set
128
+ $transient = get_transient( 'wprss_notify_inactive_licenses' );
129
+ // If it is not set, then do nothing and return
130
+ if ( $transient === FALSE ) return;
131
+ // If it is set, delete it
132
+ delete_transient( 'wprss_notify_inactive_licenses' );
133
+
134
+ // Show the notice ?>
135
+ <div class="updated">
136
+ <p>
137
+ <b>WP RSS Aggregator</b>:
138
+ There are saved licenses that have not yet been actived. Go to the
139
+ <a href="<?php echo admin_url() . 'edit.php?post_type=wprss_feed&page=wprss-aggregator-settings&tab=licenses_settings'; ?>">
140
+ License page
141
+ </a>
142
+ to activate them.
143
+ </p>
144
+ </div>
145
+ <?php
146
+ }
includes/cron-jobs.php ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Contains all the cron jobs in use by WP RSS Aggregator
4
+ *
5
+ * @package WPRSSAggregator
6
+ */
7
+
8
+
9
+ add_action( 'init', 'wprss_schedule_fetch_all_feeds_cron' );
10
+ /**
11
+ * Creates the cron to fetch feeds every hour
12
+ *
13
+ * @since 2.0
14
+ */
15
+ function wprss_schedule_fetch_all_feeds_cron() {
16
+
17
+ $options = get_option( 'wprss_settings_general' );
18
+
19
+ $cron_interval = $options['cron_interval'];
20
+
21
+ // verify event has not been scheduled
22
+ if ( ! wp_next_scheduled( 'wprss_fetch_all_feeds_hook' ) ) {
23
+ // Schedule to run hourly
24
+ wp_schedule_event( time(), $cron_interval, 'wprss_fetch_all_feeds_hook' );
25
+ }
26
+
27
+ add_action( 'wprss_fetch_all_feeds_hook', 'wprss_fetch_insert_all_feed_items_from_cron' );
28
+ }
29
+
30
+
31
+ add_action( 'init', 'wprss_schedule_truncate_posts_cron' );
32
+ /**
33
+ * Creates the cron to truncate wprss_feed_item posts daily
34
+ *
35
+ * @since 2.0
36
+ */
37
+ function wprss_schedule_truncate_posts_cron() {
38
+
39
+ // verify event has not been scheduled
40
+ if ( ! wp_next_scheduled( 'wprss_truncate_posts_hook') ) {
41
+ // Schedule to run daily
42
+ wp_schedule_event( time(), 'daily', 'wprss_truncate_posts_hook' );
43
+ }
44
+
45
+ add_action( 'wprss_truncate_posts_hook', 'wprss_truncate_posts' );
46
+ }
47
+
48
+
49
+ // filter to add new possible frequencies to the cron
50
+ add_filter( 'cron_schedules', 'wprss_filter_cron_schedules' );
51
+ /**
52
+ * Adding a few more handy cron schedules to the default ones
53
+ * @since 3.0
54
+ */
55
+ function wprss_filter_cron_schedules( $schedules) {
56
+ $frequencies = array(
57
+ 'five_min' => array(
58
+ 'interval' => 5 * MINUTE_IN_SECONDS,
59
+ 'display' => __( 'Once every five minutes', 'wprss' )
60
+ ),
61
+ 'ten_min' => array(
62
+ 'interval' => 10 * MINUTE_IN_SECONDS,
63
+ 'display' => __( 'Once every ten minutes', 'wprss' )
64
+ ),
65
+ 'fifteen_min' => array(
66
+ 'interval' => 15 * MINUTE_IN_SECONDS,
67
+ 'display' => __( 'Once every fifteen minutes', 'wprss' )
68
+ ),
69
+ 'thirty_min' => array(
70
+ 'interval' => 30 * MINUTE_IN_SECONDS,
71
+ 'display' => __( 'Once every thirty minutes', 'wprss' )
72
+ ),
73
+ 'two_hours' => array(
74
+ 'interval' => 2 * HOUR_IN_SECONDS,
75
+ 'display' => __( 'Once every two hours', 'wprss' )
76
+ ),
77
+ );
78
+
79
+ return array_merge( $schedules, $frequencies );
80
+ }
81
+
82
+
83
+
84
+
85
+ /**
86
+ * Deletes a custom cron schedule.
87
+ *
88
+ * Credits: WPCrontrol
89
+ *
90
+ * @param string $name The internal_name of the schedule to delete.
91
+ * @since 3.7
92
+ */
93
+ function wprss_delete_schedule($name) {
94
+ $scheds = get_option('crontrol_schedules',array());
95
+ unset($scheds[$name]);
96
+ update_option('crontrol_schedules', $scheds);
97
+ }
98
+
99
+
100
+
101
+
102
+ /**
103
+ * Updates the feed processing cron job schedules.
104
+ * Removes the current schedules and adds the ones in the feed source's meta.
105
+ *
106
+ * @param $feed_id The id of the wprss_feed
107
+ * @since 3.8
108
+ */
109
+ function wprss_update_feed_processing_schedules( $feed_id ) {
110
+ // Get the new feed processing schedules
111
+ $activate = get_post_meta( $feed_id, 'wprss_activate_feed', TRUE );
112
+ $pause = get_post_meta( $feed_id, 'wprss_pause_feed', TRUE );
113
+
114
+ $schedule_args = array( $feed_id );
115
+
116
+ if ( $activate !== '' ) {
117
+ // Convert the meta data values to time stamps
118
+ $new_activate_time = wprss_strtotime( $activate );
119
+ // Get the current schedules
120
+ $activate_feed_timestamp = wp_next_scheduled( 'wprss_activate_feed_schedule_hook', $schedule_args );
121
+ // If a previous schedule exists, unschedule it
122
+ if ( $activate_feed_timestamp !== FALSE ) {
123
+ wp_unschedule_event( $activate_feed_timestamp, 'wprss_activate_feed_schedule_hook', $schedule_args );
124
+ }
125
+ wp_schedule_single_event( $new_activate_time, 'wprss_activate_feed_schedule_hook', $schedule_args );
126
+ }
127
+
128
+ if ( $pause !== '' ){
129
+ // Convert the meta data values to time stamps
130
+ $new_pause_time = wprss_strtotime( $pause );
131
+ // Get the current schedules
132
+ $pause_feed_timestamp = wp_next_scheduled( 'wprss_pause_feed_schedule_hook', $schedule_args );
133
+ // If a previous schedule exists, unschedule it
134
+ if ( $pause_feed_timestamp !== FALSE ) {
135
+ wp_unschedule_event( $pause_feed_timestamp, 'wprss_pause_feed_schedule_hook', $schedule_args );
136
+ }
137
+ wp_schedule_single_event( $new_pause_time, 'wprss_pause_feed_schedule_hook', $schedule_args );
138
+ }
139
+
140
+ }
141
+
142
+
143
+ add_action( 'wprss_activate_feed_schedule_hook', 'wprss_activate_feed_source', 10, 1 );
144
+ /**
145
+ * Activates the feed source. Runs on a schedule.
146
+ *
147
+ * @param $feed_id The of of the wprss_feed
148
+ * @since 3.7
149
+ */
150
+ function wprss_activate_feed_source( $feed_id ) {
151
+ update_post_meta( $feed_id, 'wprss_state', 'active' );
152
+ update_post_meta( $feed_id, 'wprss_activate_feed', '' );
153
+
154
+ // Add an action hook, so functions can be run when a feed source is activated
155
+ do_action( 'wprss_on_feed_source_activated', $feed_id );
156
+ }
157
+
158
+
159
+ add_action( 'wprss_pause_feed_schedule_hook', 'wprss_pause_feed_source', 10 , 1 );
160
+ /**
161
+ * Pauses the feed source. Runs on a schedule.
162
+ *
163
+ * @param $feed_id The of of the wprss_feed
164
+ * @since 3.7
165
+ */
166
+ function wprss_pause_feed_source( $feed_id ) {
167
+ update_post_meta( $feed_id, 'wprss_state', 'paused' );
168
+ update_post_meta( $feed_id, 'wprss_pause_feed', '' );
169
+
170
+ // Add an action hook, so functions can be run when a feed source is paused
171
+ do_action( 'wprss_on_feed_source_paused', $feed_id );
172
+ }
173
+
174
+
175
+ add_action( 'wprss_on_feed_source_activated', 'wprss_feed_source_update_start_schedule' );
176
+ /**
177
+ * Starts the looping schedule for a feed source. Runs on a schedule
178
+ *
179
+ * @param $feed_id The ID of the feed source
180
+ * @since 3.9
181
+ */
182
+ function wprss_feed_source_update_start_schedule( $feed_id ) {
183
+ // Stop any currently scheduled update operations
184
+ wprss_feed_source_update_stop_schedule( $feed_id );
185
+ // Prepare the schedule
186
+ $schedule_args = array( strval( $feed_id ) );
187
+
188
+ // Get the interval
189
+ $interval = get_post_meta( $feed_id, 'wprss_update_interval', TRUE );
190
+ // Do nothing if the feed source has no update interval (not sure if possible) or if the interval
191
+ // is set to global
192
+ if ( $interval === '' || $interval === wprss_get_default_feed_source_update_interval() ) return;
193
+
194
+ wp_schedule_event( time(), $interval , 'wprss_fetch_single_feed_hook', $schedule_args );
195
+ }
196
+
197
+
198
+ add_action( 'wprss_on_feed_source_paused', 'wprss_feed_source_update_stop_schedule' );
199
+ /**
200
+ * Stops any scheduled update operations for a feed source. Runs on a schedule.
201
+ *
202
+ * @param $feed_id The ID of the feed source ( wprss_feed )
203
+ * @since 3.9
204
+ */
205
+ function wprss_feed_source_update_stop_schedule( $feed_id ) {
206
+ $schedule_timestamp = wprss_get_next_feed_source_update( $feed_id );
207
+ // If a schedule exists, unschedule it
208
+ if ( $schedule_timestamp !== FALSE ) {
209
+ $schedule_args = array( strval( $feed_id ) );
210
+ wp_unschedule_event( $schedule_timestamp, 'wprss_fetch_single_feed_hook', $schedule_args );
211
+ }
212
+ }
213
+
214
+
215
+ /**
216
+ * Returns the timestamp for the next feed source update
217
+ *
218
+ * @param $feed_id The ID of the feed source ( wprss_feed )
219
+ * @return The timestamp of the next update operation, or false is no
220
+ * update is scheduled.
221
+ * @since 3.9
222
+ */
223
+ function wprss_get_next_feed_source_update( $feed_id ) {
224
+ $schedule_args = array( strval( $feed_id ) );
225
+ $timestamp = wp_next_scheduled( 'wprss_fetch_single_feed_hook', $schedule_args );
226
+ return $timestamp;
227
+ }
228
+
229
+
230
+ /**
231
+ * Parses the date time string into a UTC timestamp.
232
+ * The string must be in the format: m/d/y h:m:s
233
+ *
234
+ * @since 3.9
235
+ */
236
+ function wprss_strtotime( $str ){
237
+ $parts = explode(' ', $str);
238
+ $date = explode( '/', $parts[0] );
239
+ $time = explode( ':', $parts[1] );
240
+ return mktime( $time[0], $time[1], $time[2], $date[1], $date[0], $date[2] );
241
+ }
242
+
243
+
244
+ /**
245
+ * Returns the default value for the per feed source update interval
246
+ *
247
+ * @since 3.9
248
+ */
249
+ function wprss_get_default_feed_source_update_interval() {
250
+ return 'global';
251
+ }
includes/custom-feed.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Function to create a custom feed with the latest imported feed items
4
+ *
5
+ * @package WP RSS Aggregator
6
+ */
7
+
8
+
9
+ add_action( 'init', 'wprss_addfeed_add_feed' );
10
+ /**
11
+ * Adds the custom feed, as specified by the user in the general settings.
12
+ *
13
+ * @since 3.3
14
+ */
15
+ function wprss_addfeed_add_feed() {
16
+ $general_settings = get_option( 'wprss_settings_general', 'wprss' );
17
+ if ( !empty( $general_settings ) && isset( $general_settings['custom_feed_url'] ) && !empty( $general_settings['custom_feed_url'] ) ) {
18
+ $url = $general_settings['custom_feed_url'];
19
+ }
20
+ else {
21
+ $url = $general_settings['custom_feed_url'] = 'wprss';
22
+ update_option( 'wprss_settings_general', $general_settings );
23
+ }
24
+
25
+ // Add the feed
26
+ add_feed( $url, 'wprss_addfeed_do_feed' );
27
+
28
+ // Whether or not the feed is already registered or not
29
+ $registered = FALSE;
30
+
31
+ // Get all registered rewrite rules
32
+ $rules = get_option( 'rewrite_rules' );
33
+
34
+ // If no rules exist, then it is not registered
35
+ if ( !is_array( $rules ) ) {
36
+ $registered = FALSE;
37
+ }
38
+ // If there are exisiting rules
39
+ else {
40
+ // Get all the array keys that match the given pattern
41
+ // The resulting array will only contain the second part of each matching key ( $matches[1] )
42
+ $feeds = array_keys( $rules, 'index.php?&feed=$matches[1]' );
43
+ // Check if the rewrite rule for the custom feed is already registered
44
+ foreach( $feeds as $feed ) {
45
+ if ( strpos( $feed, $url ) !== FALSE ) {
46
+ $registered = TRUE;
47
+ }
48
+ }
49
+ }
50
+
51
+ // If not registered, flush the rewrite rules
52
+ if ( ! $registered ) {
53
+ flush_rewrite_rules();
54
+ }
55
+
56
+ }
57
+
58
+
59
+ /**
60
+ * Generate the feed
61
+ *
62
+ * @since 3.3
63
+ */
64
+ function wprss_addfeed_do_feed( $in ) {
65
+
66
+ // Prepare the post query
67
+ /*
68
+ $wprss_custom_feed_query = apply_filters(
69
+ 'wprss_custom_feed_query',
70
+ array(
71
+ 'post_type' => 'wprss_feed_item',
72
+ 'post_status' => 'publish',
73
+ 'cache_results' => false, // disable caching
74
+ )
75
+
76
+ );*/
77
+ $wprss_custom_feed_query = wprss_get_feed_items_query(
78
+ apply_filters(
79
+ 'wprss_custom_feed_query',
80
+ array(
81
+ 'get-args' => TRUE, // Get the query args instead of the query object
82
+ 'no-paged' => TRUE, // ignore pagination
83
+ 'feed_limit' => 0, // ignore limit
84
+ )
85
+ )
86
+ );
87
+
88
+ // Suppress caching
89
+ $wprss_custom_feed_query['cache_results'] = FALSE;
90
+
91
+ // Get options
92
+ $options = get_option( 'wprss_settings_general' );
93
+ if ( $options !== FALSE ) {
94
+ // If options exist, get the limit
95
+ $limit = $options['custom_feed_limit'];
96
+ if ( $limit !== FALSE ) {
97
+ // if limit exists, set the query limit
98
+ $wprss_custom_feed_query['posts_per_page'] = $limit;
99
+ }
100
+ }
101
+
102
+ // Submit the query to get latest feed items
103
+ query_posts( $wprss_custom_feed_query );
104
+
105
+ // Send content header and start ATOM output
106
+ header('Content-Type: text/xml');
107
+ // Disabling caching
108
+ header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
109
+ header('Pragma: no-cache'); // HTTP 1.0.
110
+ header('Expires: 0'); // Proxies.
111
+ echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '"?' . '>';
112
+ ?>
113
+ <feed xmlns="http://www.w3.org/2005/Atom">
114
+ <title type="text">Latest imported feed items on <?php bloginfo_rss('name'); ?></title>
115
+ <?php
116
+ // Start the Loop
117
+ while ( have_posts() ) : the_post();
118
+ $permalink = get_post_meta( get_the_ID(), 'wprss_item_permalink', true );
119
+ ?>
120
+ <entry>
121
+ <title><![CDATA[<?php the_title_rss(); ?>]]></title>
122
+ <link href="<?php echo $permalink; ?>" />
123
+ <?php // Enable below to link to post on our site rather than original source ?>
124
+ <!--<link href="<?php the_permalink_rss(); ?>" />-->
125
+ <published><?php echo get_post_time( 'Y-m-d\TH:i:s\Z' ); ?></published>
126
+ <content type="html"><![CDATA[<?php the_content(); ?>]]></content>
127
+ </entry>
128
+ <?php
129
+ // End of the Loop
130
+ endwhile;
131
+ ?>
132
+ </feed>
133
+ <?php
134
+ }
135
+
136
+
137
+ add_filter( 'post_limits', 'wprss_custom_feed_limits' );
138
+ /**
139
+ * Set a different limit to our custom feeds
140
+ *
141
+ * @since 3.3
142
+ */
143
+ function wprss_custom_feed_limits( $limit ) {
144
+ if ( is_feed( ) ) {
145
+ // return 'LIMIT 0, 3';
146
+ return $limit;
147
+ }
148
+ return $limit;
149
+ }
includes/custom-post-types.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Contains all custom post type related functions
4
+ *
5
+ * @package WPRSSAggregator
6
+ */
7
+
8
+
9
+ add_action( 'init', 'wprss_register_post_types' );
10
+ /**
11
+ * Create Custom Post Types wprss_feed and wprss_feed_item
12
+ *
13
+ * @since 2.0
14
+ */
15
+ function wprss_register_post_types() {
16
+
17
+ // Set up labels for the 'wprss_feed' post type
18
+ $labels = apply_filters(
19
+ 'wprss_feed_post_type_labels',
20
+ array(
21
+ 'name' => __( 'Feed Sources', 'wprss' ),
22
+ 'singular_name' => __( 'Feed', 'wprss' ),
23
+ 'add_new' => __( 'Add New', 'wprss' ),
24
+ 'all_items' => __( 'All Feed Sources', 'wprss' ),
25
+ 'add_new_item' => __( 'Add New Feed Source', 'wprss' ),
26
+ 'edit_item' => __( 'Edit Feed Source', 'wprss' ),
27
+ 'new_item' => __( 'New Feed Source', 'wprss' ),
28
+ 'view_item' => __( 'View Feed Source', 'wprss' ),
29
+ 'search_items' => __( 'Search Feeds', 'wprss' ),
30
+ 'not_found' => __( 'No Feed Sources Found', 'wprss' ),
31
+ 'not_found_in_trash' => __( 'No Feed Sources Found In Trash', 'wprss' ),
32
+ 'menu_name' => __( 'RSS Aggregator', 'wprss' )
33
+ )
34
+ );
35
+
36
+ // Set up the arguments for the 'wprss_feed' post type
37
+ $feed_args = apply_filters(
38
+ 'wprss_feed_post_type_args',
39
+ array(
40
+ 'exclude_from_search' => true,
41
+ 'publicly_querable' => false,
42
+ 'show_in_nav_menus' => false,
43
+ 'show_in_admin_bar' => true,
44
+ 'public' => true,
45
+ 'show_ui' => true,
46
+ 'query_var' => 'feed_source',
47
+ 'menu_position' => 100,
48
+ 'show_in_menu' => true,
49
+ 'show_in_admin_bar' => true,
50
+ 'rewrite' => array(
51
+ 'slug' => 'feeds',
52
+ 'with_front' => false
53
+ ),
54
+ 'capability_type' => 'feed',
55
+ 'supports' => array( 'title' ),
56
+ 'labels' => $labels
57
+ )
58
+ );
59
+
60
+ if ( version_compare( get_bloginfo( 'version' ), '3.8', '<' ) ) {
61
+ $feed_args['menu_icon'] = WPRSS_IMG . 'icon-adminmenu16-sprite.png';
62
+ }
63
+
64
+ // Register the 'wprss_feed' post type
65
+ register_post_type( 'wprss_feed', $feed_args );
66
+
67
+ // Set up labels for the 'wprss_feed_item' post type
68
+ $labels = apply_filters(
69
+ 'wprss_feed_item_post_type_labels',
70
+ array(
71
+ 'name' => __( 'Imported Feeds', 'wprss' ),
72
+ 'singular_name' => __( 'Imported Feed', 'wprss' ),
73
+ 'all_items' => __( 'Imported Feeds', 'wprss' ),
74
+ 'view_item' => __( 'View Imported Feed', 'wprss' ),
75
+ 'search_items' => __( 'Search Imported Feeds', 'wprss' ),
76
+ 'not_found' => __( 'No Imported Feeds Found', 'wprss' ),
77
+ 'not_found_in_trash' => __( 'No Imported Feeds Found In Trash', 'wprss' )
78
+ )
79
+ );
80
+
81
+ // Set up the arguments for the 'wprss_feed_item' post type
82
+ $feed_item_args = apply_filters(
83
+ 'wprss_feed_item_post_type_args',
84
+ array(
85
+ 'exclude_from_search' => true,
86
+ 'publicly_querable' => false,
87
+ 'show_in_nav_menus' => false,
88
+ 'show_in_admin_bar' => true,
89
+ 'public' => true,
90
+ 'show_ui' => true,
91
+ 'query_var' => 'feed_item',
92
+ 'show_in_menu' => 'edit.php?post_type=wprss_feed',
93
+ 'show_in_admin_bar' => false,
94
+ 'rewrite' => array(
95
+ 'slug' => 'feeds/items',
96
+ 'with_front' => false,
97
+ ),
98
+ 'capability_type' => 'feed_source',
99
+ 'labels' => $labels
100
+ )
101
+ );
102
+
103
+ // Register the 'feed_item' post type
104
+ register_post_type( 'wprss_feed_item', $feed_item_args );
105
+ }
106
+
107
+
108
+ /**
109
+ * Filter the link query arguments to exclude the feed and feed item post types.
110
+ * This filter will only work for WordPress versions 3.7 or higher.
111
+ *
112
+ * @since 3.4.3
113
+ * @param array $query An array of WP_Query arguments.
114
+ * @return array $query
115
+ */
116
+ function wprss_modify_link_builder_query( $query ){
117
+
118
+ // custom post type slug to be removed
119
+ $to_remove = array( 'wprss_feed', 'wprss_feed_item' );
120
+
121
+ // find and remove the array keys
122
+ foreach( $to_remove as $post_type ) {
123
+ $key = array_search( $post_type, $query['post_type'] );
124
+ // remove the array item
125
+ if( $key ) unset( $query['post_type'][$key] );
126
+ }
127
+
128
+ return $query;
129
+ }
130
+ add_filter( 'wp_link_query_args', 'wprss_modify_link_builder_query' );
includes/deprecated-functions.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Fetches feed items from sources provided
5
+ * DEPRECATED - JUST FOR REFERENCE
6
+ *
7
+ * @since 2.0
8
+ * @deprecated 3.0
9
+ */
10
+ function wprss_fetch_all_feed_items( ) {
11
+
12
+ // Get all feed sources
13
+ $feed_sources = new WP_Query( array(
14
+ 'post_type' => 'wprss_feed',
15
+ 'post_status' => 'publish',
16
+ 'posts_per_page' => -1,
17
+ ) );
18
+
19
+ if( $feed_sources->have_posts() ) {
20
+ /* Start by getting one feed source, we will cycle through them one by one,
21
+ fetching feed items and adding them to the database in each pass */
22
+ while ( $feed_sources->have_posts() ) {
23
+ $feed_sources->the_post();
24
+
25
+ $feed_ID = get_the_ID();
26
+ $feed_url = get_post_meta( get_the_ID(), 'wprss_url', true );
27
+
28
+ // Use the URL custom field to fetch the feed items for this source
29
+ if( !empty( $feed_url ) ) {
30
+
31
+ add_filter( 'wp_feed_cache_transient_lifetime' , 'wprss_return_7200' );
32
+ //$feed = fetch_feed( $feed_url );
33
+ $feed = wprss_fetch_feed( $feed_url );
34
+ remove_filter( 'wp_feed_cache_transient_lifetime' , 'wprss_return_7200' );
35
+
36
+ // $feed->strip_htmltags( array_merge( $feed->strip_htmltags, array('h1', 'a', 'img') ) );
37
+
38
+ if ( !is_wp_error( $feed ) ) {
39
+ // Figure out how many total items there are, but limit it to 10.
40
+ $maxitems = $feed->get_item_quantity(10);
41
+
42
+ // Build an array of all the items, starting with element 0 (first element).
43
+ $items = $feed->get_items( 0, $maxitems );
44
+ }
45
+ else { return; }
46
+ }
47
+
48
+ if ( ! empty( $items ) ) {
49
+ // Gather the permalinks of existing feed item's related to this feed source
50
+ global $wpdb;
51
+ $existing_permalinks = $wpdb->get_col(
52
+ "SELECT meta_value
53
+ FROM $wpdb->postmeta
54
+ WHERE meta_key = 'wprss_item_permalink'
55
+ AND post_id IN ( SELECT post_id FROM $wpdb->postmeta WHERE meta_value = $feed_ID)
56
+ ");
57
+
58
+ foreach ( $items as $item ) {
59
+ // Check if newly fetched item already present in existing feed item item,
60
+ // if not insert it into wp_posts and insert post meta.
61
+ if ( ! ( in_array( $item->get_permalink(), $existing_permalinks ) ) ) {
62
+ // Create post object
63
+ $feed_item = array(
64
+ 'post_title' => $item->get_title(),
65
+ 'post_content' => '',
66
+ 'post_status' => 'publish',
67
+ 'post_type' => 'wprss_feed_item'
68
+ );
69
+ $inserted_ID = wp_insert_post( $feed_item );
70
+ wprss_items_create_post_meta( $inserted_ID, $item, $feed_ID );
71
+ } //end if
72
+ } //end foreach
73
+ } // end if
74
+ } // end $feed_sources while loop
75
+ wp_reset_postdata(); // Restore the $post global to the current post in the main query
76
+ // } // end if
77
+ } // end if
78
+ }
79
+
80
+ // For testing query speed
81
+ // $time_start = microtime( true );
82
+ // wp_die(number_format( microtime( true ) - $time_start, 10 ));
83
+
includes/feed-display.php ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed display related functions
4
+ *
5
+ * @package WPRSSAggregator
6
+ */
7
+
8
+
9
+ /**
10
+ * Retrieve settings and prepare them for use in the display function
11
+ *
12
+ * @since 3.0
13
+ */
14
+ function wprss_get_display_settings( $settings ) {
15
+
16
+ $display_settings = array(
17
+ 'open' => '',
18
+ 'follow' => ''
19
+ );
20
+
21
+ switch ( $settings['open_dd'] ) {
22
+
23
+ case 'Lightbox' :
24
+ $display_settings['open'] = 'class="colorbox"';
25
+ break;
26
+
27
+ case 'New window' :
28
+ $display_settings['open'] = 'target="_blank"';
29
+ break;
30
+ }
31
+
32
+ switch ( $settings['follow_dd'] ) {
33
+
34
+ case 'no_follow' :
35
+ $display_settings['follow'] = 'rel="nofollow"';
36
+ break;
37
+
38
+ default:
39
+ $display_settings['follow'] = '';
40
+ break;
41
+ }
42
+
43
+ do_action( 'wprss_get_settings' );
44
+
45
+ return $display_settings;
46
+ }
47
+
48
+
49
+ /**
50
+ * Merges the default arguments with the user set arguments
51
+ *
52
+ * @since 3.0
53
+ */
54
+ function wprss_get_shortcode_default_args( $args ) {
55
+ // Default shortcode/function arguments for displaying feed items
56
+ $shortcode_args = apply_filters(
57
+ 'wprss_shortcode_args',
58
+ array(
59
+ 'links_before' => '<ul class="rss-aggregator">',
60
+ 'links_after' => '</ul>',
61
+ 'link_before' => '<li class="feed-item">',
62
+ 'link_after' => '</li>'
63
+ )
64
+ );
65
+
66
+ // Parse incoming $args into an array and merge it with $shortcode_args
67
+ $args = wp_parse_args( $args, $shortcode_args );
68
+
69
+ return $args;
70
+ }
71
+
72
+
73
+ /**
74
+ * Prepares and builds the query for fetching the feed items
75
+ *
76
+ * @since 3.0
77
+ */
78
+ function wprss_get_feed_items_query( $settings ) {
79
+ $posts_per_page = ( isset( $settings['posts_per_page'] ) )? $settings['posts_per_page'] : $settings['feed_limit'];
80
+ global $paged;
81
+ if ( get_query_var('paged') ) {
82
+ $paged = get_query_var('paged');
83
+ } elseif ( get_query_var('page') ) {
84
+ $paged = get_query_var('page');
85
+ } else {
86
+ $paged = 1;
87
+ }
88
+
89
+ $feed_items_args = array(
90
+ 'post_type' => 'wprss_feed_item',
91
+ 'posts_per_page' => $posts_per_page,
92
+ 'orderby' => 'meta_value',
93
+ 'meta_key' => 'wprss_item_date',
94
+ 'order' => 'DESC',
95
+ 'paged' => $paged,
96
+ 'suppress_filters' => true
97
+ );
98
+
99
+ if ( isset( $settings['no-paged'] ) && $settings['no-paged'] === TRUE ) {
100
+ unset( $feed_items_args['no-paged'] );
101
+ }
102
+
103
+ // If either the source or exclude arguments are set (but not both), prepare a meta query
104
+ if ( isset( $settings['source'] ) xor isset( $settings['exclude'] ) ) {
105
+ // Set the appropriate setting and operator
106
+ $setting = 'source';
107
+ $operator = 'IN';
108
+ if ( isset( $settings['exclude'] ) ) {
109
+ $setting = 'exclude';
110
+ $operator = 'NOT IN';
111
+ }
112
+ $feeds = array_filter( array_map( 'intval', explode( ',', $settings[$setting] ) ) );
113
+ foreach ( $feeds as $feed )
114
+ trim( $feed );
115
+ if ( !empty( $feeds ) ) {
116
+ $feed_items_args['meta_query'] = array(
117
+ array(
118
+ 'key' => 'wprss_feed_id',
119
+ 'value' => $feeds,
120
+ 'type' => 'numeric',
121
+ 'compare' => $operator,
122
+ ),
123
+ );
124
+ }
125
+ }
126
+
127
+ // Arguments for the next query to fetch all feed items
128
+ $feed_items_args = apply_filters( 'wprss_display_feed_items_query', $feed_items_args, $settings );
129
+
130
+ // Query to get all feed items for display
131
+ $feed_items = new WP_Query( $feed_items_args );
132
+
133
+ if ( isset( $settings['get-args'] ) && $settings['get-args'] === TRUE ) {
134
+ return $feed_items_args;
135
+ } else return $feed_items;
136
+ }
137
+
138
+
139
+ add_action( 'wprss_display_template', 'wprss_default_display_template', 10, 3 );
140
+ /**
141
+ * Default template for feed items display
142
+ *
143
+ * @since 3.0
144
+ */
145
+ function wprss_default_display_template( $display_settings, $args, $feed_items ) {
146
+ global $wp_query;
147
+ global $paged;
148
+ $old_wp_query = $wp_query;
149
+ $wp_query = $feed_items;
150
+ $general_settings = get_option( 'wprss_settings_general' );
151
+ $excerpts_settings = get_option( 'wprss_settings_excerpts' );
152
+ $thumbnails_settings = get_option( 'wprss_settings_thumbnails' );
153
+
154
+ $source_link = isset( $general_settings['source_link'] )? $general_settings['source_link'] : 0;
155
+ // Declare each item in $args as its own variable
156
+ extract( $args, EXTR_SKIP );
157
+
158
+ $output = '';
159
+
160
+
161
+ if( $feed_items->have_posts() ) {
162
+
163
+ $output .= "$links_before";
164
+
165
+ while ( $feed_items->have_posts() ) {
166
+ $feed_items->the_post();
167
+ $permalink = get_post_meta( get_the_ID(), 'wprss_item_permalink', true );
168
+ $feed_source_id = get_post_meta( get_the_ID(), 'wprss_feed_id', true );
169
+ $source_name = get_the_title( $feed_source_id );
170
+ $source_url = get_post_meta( $feed_source_id, 'wprss_site_url', true );
171
+ // Fallback for feeds created with older versions of the plugin
172
+ if ( $source_url === '' )
173
+ $source_url = get_post_meta( $feed_source_id, 'wprss_url', true );
174
+
175
+ do_action( 'wprss_get_post_data' );
176
+
177
+ // convert from Unix timestamp
178
+ $date = date_i18n( $general_settings['date_format'], intval( get_post_meta( get_the_ID(), 'wprss_item_date', true ) ) );
179
+
180
+ if ( $general_settings['title_link'] == 1 ) {
181
+ $output .= "$link_before" . '<a ' . $display_settings['open'] . ' ' . $display_settings['follow'] . ' href="'. $permalink . '">'. get_the_title(). '</a>';
182
+ }
183
+ else {
184
+ $output .= "$link_before" . get_the_title();
185
+ }
186
+
187
+ if ( ( $general_settings['source_enable'] == 1 ) && ( $general_settings['date_enable'] == 1 ) ) {
188
+ $output .= '<div class="source-date"><span class="feed-source">' .
189
+ ( !empty( $general_settings['text_preceding_source'] ) ? $general_settings['text_preceding_source'] . ' ' : '' );
190
+
191
+ if ( $source_link == 1 ) {
192
+ $output .= '<a href="' . $source_url . '">' . $source_name . "</a>";
193
+ }
194
+ else $output .= $source_name;
195
+
196
+ $output .= ' | ' .
197
+ ( !empty( $general_settings['text_preceding_date'] ) ? $general_settings['text_preceding_date'] . ' ' : '' ) . $date .
198
+ '</span></div>' . "$link_after";
199
+ }
200
+
201
+ else if ( ( $general_settings['source_enable'] == 1 ) && ( $general_settings['date_enable'] == 0 ) ) {
202
+ $output .= '<div class="source-date"><span class="feed-source">' .
203
+ ( !empty( $general_settings['text_preceding_source'] ) ? $general_settings['text_preceding_source'] . ' ' : '' );
204
+
205
+ if ( $source_link == 1 ) {
206
+ $output .= '<a href="' . $source_url . '">' . $source_name . "</a>";
207
+ }
208
+ else $output .= $source_name;
209
+
210
+ $output .= '</span></div>' . "$link_after";
211
+ }
212
+
213
+ else if ( ( $general_settings['source_enable'] == 0 ) && ( $general_settings['date_enable'] == 1 ) ) {
214
+ $output .= '<div class="source-date"><span class="feed-source">' .
215
+ ( !empty( $general_settings['text_preceding_date'] ) ? $general_settings['text_preceding_date'] . ' ' : '' ) . $date .
216
+ '</span></div>' . "$link_after";
217
+ }
218
+
219
+ // No source, no date
220
+ else { $output .= "$link_after"; }
221
+
222
+
223
+ }
224
+ $output .= "$links_after";
225
+
226
+ $output = apply_filters( 'wprss_pagination', $output );
227
+
228
+ $output = apply_filters( 'feed_output', $output );
229
+
230
+ echo $output;
231
+
232
+ wp_reset_postdata();
233
+
234
+ } else {
235
+ $output = apply_filters( 'no_feed_items_found', __( 'No feed items found.', 'wprss' ) );
236
+ echo $output;
237
+ }
238
+ $wp_query = $old_wp_query;
239
+ }
240
+
241
+
242
+ add_filter( 'wprss_pagination', 'wprss_pagination_links' );
243
+
244
+ /**
245
+ * Display pagination links
246
+ *
247
+ * @since 3.5
248
+ */
249
+ function wprss_pagination_links( $output ) {
250
+ $output .= '<div class="nav-links">';
251
+ $output .= ' <div class="nav-previous alignleft">' . get_next_posts_link( 'Older posts' ) . '</div>';
252
+ $output .= ' <div class="nav-next alignright">' . get_previous_posts_link( 'Newer posts' ) . '</div>';
253
+ $output .= '</div>';
254
+ return $output;
255
+ }
256
+
257
+
258
+
259
+ add_filter( 'the_title', 'wprss_shorten_title', 10, 2 );
260
+ /**
261
+ * Checks the title limit option and shortens the title when necassary.
262
+ *
263
+ * @since 1.0
264
+ */
265
+ function wprss_shorten_title( $title, $id = null ) {
266
+ if ( $id === null ) return $title;
267
+ // Get the option. If does not exist, use 0, which is ignored.
268
+ $general_settings = get_option( 'wprss_settings_general' );
269
+ $title_limit = isset( $general_settings['title_limit'] )? intval( $general_settings['title_limit'] ) : 0;
270
+ // Check if the title is for a wprss_feed_item, and check if trimming is needed
271
+ if ( isset( $id ) && get_post_type( $id ) === 'wprss_feed_item' && $title_limit > 0 && strlen( $title ) > $title_limit ) {
272
+ // Return the trimmed version of the title
273
+ return substr( $title, 0, $title_limit ) . apply_filters( 'wprss_shortened_title_ending', '...' );
274
+ }
275
+ // Otherwise, return the same title
276
+ return $title;
277
+ }
278
+
279
+
280
+
281
+ /**
282
+ * Display feed items on the front end (via shortcode or function)
283
+ *
284
+ * @since 2.0
285
+ */
286
+ function wprss_display_feed_items( $args = array() ) {
287
+ $settings = get_option( 'wprss_settings_general' );
288
+ $display_settings = wprss_get_display_settings( $settings );
289
+ $args = wprss_get_shortcode_default_args( $args );
290
+
291
+ $args = apply_filters( 'wprss_shortcode_args', $args );
292
+
293
+ $query_args = $settings;
294
+ if ( isset( $args['limit'] ) ) {
295
+ $query_args['feed_limit'] = filter_var( $args['limit'], FILTER_VALIDATE_INT, array(
296
+ 'options' => array(
297
+ 'min_range' => 1,
298
+ 'default' => $query_args['feed_limit'],
299
+ ),
300
+ ) );
301
+ }
302
+
303
+ if ( isset( $args['source'] ) ) {
304
+ $query_args['source'] = $args['source'];
305
+ }
306
+ elseif ( isset( $args['exclude'] ) ) {
307
+ $query_args['exclude'] = $args['exclude'];
308
+ }
309
+
310
+ $feed_items = wprss_get_feed_items_query( $query_args );
311
+
312
+ do_action( 'wprss_display_template', $display_settings, $args, $feed_items );
313
+ }
314
+
315
+
316
+ /**
317
+ * Redirects to wprss_display_feed_items
318
+ * It is used for backwards compatibility to versions < 2.0
319
+ *
320
+ * @since 2.1
321
+ */
322
+ function wp_rss_aggregator( $args = array() ) {
323
+ wprss_display_feed_items( $args );
324
+ }
325
+
326
+
327
+ /**
328
+ * Limits a phrase/content to a defined number of words
329
+ *
330
+ * NOT BEING USED as we're using the native WP function, although the native one strips tags, so I'll
331
+ * probably revisit this one again soon.
332
+ *
333
+ * @since 3.0
334
+ * @param string $words
335
+ * @param integer $limit
336
+ * @param string $append
337
+ * @return string
338
+ */
339
+ function wprss_limit_words( $words, $limit, $append = '' ) {
340
+ /* Add 1 to the specified limit becuase arrays start at 0 */
341
+ $limit = $limit + 1;
342
+ /* Store each individual word as an array element
343
+ up to the limit */
344
+ $words = explode( ' ', $words, $limit );
345
+ /* Shorten the array by 1 because that final element will be the sum of all the words after the limit */
346
+ array_pop( $words );
347
+ /* Implode the array for output, and append an ellipse */
348
+ $words = implode( ' ', $words ) . $append;
349
+ /* Return the result */
350
+ return rtrim( $words );
351
+ }
includes/feed-processing.php ADDED
@@ -0,0 +1,884 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed processing related functions
4
+ *
5
+ * @package WPRSSAggregator
6
+ */
7
+
8
+
9
+
10
+ add_action( 'init', 'wprss_change_feed_state' );
11
+ /**
12
+ * Changes the state of a feed source, using POST data
13
+ *
14
+ * @since 3.7
15
+ */
16
+ function wprss_change_feed_state() {
17
+ // If the id and state are in POST data
18
+ if ( isset( $_GET['wprss-feed-id'] ) ) {
19
+ // Get the id and state
20
+ $feed_ID = $_GET['wprss-feed-id'];
21
+ // Change the state
22
+ if ( wprss_is_feed_source_active( $feed_ID ) ) {
23
+ wprss_pause_feed_source( $feed_ID );
24
+ } else {
25
+ wprss_activate_feed_source( $feed_ID );
26
+ }
27
+ // Check for a redirect
28
+ if ( isset( $_GET['wprss-redirect'] ) && $_GET['wprss-redirect'] == '1' ) {
29
+ wp_redirect( admin_url( 'edit.php?post_type=wprss_feed', 301 ) );
30
+ exit();
31
+ }
32
+ }
33
+ }
34
+
35
+
36
+ /**
37
+ * Returns whether or not a feed source is active.
38
+ *
39
+ * @param $source_id The ID of the feed soruce
40
+ * @return boolean
41
+ * @since 3.7
42
+ */
43
+ function wprss_is_feed_source_active( $source_id ) {
44
+ $state = get_post_meta( $source_id, 'wprss_state', TRUE );
45
+ return ( $state === '' || $state === 'active' );
46
+ }
47
+
48
+
49
+ /**
50
+ * Returns whether or not the feed source will forcefully fetch the next fetch,
51
+ * ignoring whether or not it is paused or not.
52
+ *
53
+ * @param $source_id The ID of the feed soruce
54
+ * @return boolean
55
+ * @since 3.7
56
+ */
57
+ function wprss_feed_source_force_next_fetch( $source_id ) {
58
+ $force = get_post_meta( $source_id, 'wprss_force_next_fetch', TRUE );
59
+ return ( $force !== '' || $force == '1' );
60
+ }
61
+
62
+
63
+
64
+ /**
65
+ * Change the default feed cache recreation period to 2 hours
66
+ *
67
+ * Probably not needed since we are now disabling caching altogether
68
+ *
69
+ * @since 2.1
70
+ */
71
+ function wprss_feed_cache_lifetime( $seconds )
72
+ {
73
+ return 1; // one second
74
+ }
75
+
76
+
77
+ /**
78
+ * Disable caching of feeds in transients, we don't need it as we are storing them in the wp_posts table
79
+ *
80
+ * @since 3.0
81
+ */
82
+ function wprss_do_not_cache_feeds( &$feed ) {
83
+ $feed->enable_cache( false );
84
+ }
85
+
86
+
87
+ /**
88
+ * Parameters for query to get all feed sources
89
+ *
90
+ * @since 3.0
91
+ */
92
+ function wprss_get_all_feed_sources() {
93
+ // Get all feed sources
94
+ $feed_sources = new WP_Query( apply_filters(
95
+ 'wprss_get_all_feed_sources',
96
+ array(
97
+ 'post_type' => 'wprss_feed',
98
+ 'post_status' => 'publish',
99
+ 'cache_results' => false, // Disable caching, used for one-off queries
100
+ 'no_found_rows' => true, // We don't need pagination, so disable it
101
+ 'posts_per_page' => -1
102
+ )
103
+ ) );
104
+ return $feed_sources;
105
+ }
106
+
107
+
108
+
109
+ /**
110
+ * Returns all the feed items of a source.
111
+ *
112
+ * @since 3.8
113
+ */
114
+ function wprss_get_feed_items_for_source( $source_id ) {
115
+ $args = apply_filters(
116
+ 'wprss_get_feed_items_for_source_args',
117
+ array(
118
+ 'post_type' => 'wprss_feed_item',
119
+ 'cache_results' => false, // Disable caching, used for one-off queries
120
+ 'no_found_rows' => true, // We don't need pagination, so disable it
121
+ 'posts_per_page'=> -1,
122
+ 'meta_query' => array(
123
+ array(
124
+ 'key' => 'wprss_feed_id',
125
+ 'value' => $source_id,
126
+ 'compare' => 'LIKE',
127
+ ),
128
+ )
129
+ )
130
+ );
131
+ return new WP_Query( $args );
132
+ }
133
+
134
+
135
+ /**
136
+ * Parameters for query to get feed sources
137
+ *
138
+ * @since 3.0
139
+ */
140
+ function wprss_get_feed_source() {
141
+ // Get all feed sources
142
+ $feed_sources = new WP_Query( apply_filters(
143
+ 'wprss_get_all_feed_sources',
144
+ array(
145
+ 'post_type' => 'wprss_feed',
146
+ 'post_status' => 'publish',
147
+ 'cache_results' => false, // Disable caching, used for one-off queries
148
+ 'no_found_rows' => true, // We don't need pagination, so disable it
149
+ 'posts_per_page' => -1
150
+ )
151
+ ) );
152
+ return $feed_sources;
153
+ }
154
+
155
+
156
+ /**
157
+ * Database query to get existing permalinks
158
+ *
159
+ * @since 3.0
160
+ */
161
+ function get_existing_permalinks( $feed_ID ) {
162
+ global $wpdb;
163
+
164
+ $existing_permalinks = $wpdb->get_col(
165
+ "SELECT meta_value
166
+ FROM $wpdb->postmeta
167
+ WHERE meta_key = 'wprss_item_permalink'
168
+ AND post_id IN ( SELECT post_id FROM $wpdb->postmeta WHERE meta_value = $feed_ID )"
169
+ );
170
+
171
+ return $existing_permalinks;
172
+ }
173
+
174
+
175
+ /**
176
+ * A clone of the function 'fetch_feed' in wp-includes/feed.php [line #529]
177
+ *
178
+ * @since 3.5
179
+ */
180
+ function wprss_fetch_feed( $url ) {
181
+ require_once ( ABSPATH . WPINC . '/class-feed.php' );
182
+
183
+ $feed = new SimplePie();
184
+
185
+ // Commented out Sanitization, due to a conflict with google RSS image URLS.
186
+ // With sanitization on, the urls get truncated from the front.
187
+
188
+ // $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' );
189
+ // We must manually overwrite $feed->sanitize because SimplePie's
190
+ // constructor sets it before we have a chance to set the sanitization class
191
+ // $feed->sanitize = new WP_SimplePie_Sanitize_KSES();
192
+
193
+ $feed->set_cache_class( 'WP_Feed_Cache' );
194
+ $feed->set_file_class( 'WP_SimplePie_File' );
195
+
196
+ $feed->set_feed_url( $url );
197
+
198
+ $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
199
+ do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
200
+ $feed->init();
201
+ $feed->handle_content_type();
202
+
203
+ if ( $feed->error() )
204
+ return new WP_Error( 'simplepie-error', $feed->error() );
205
+
206
+ return $feed;
207
+ }
208
+
209
+
210
+ /**
211
+ * Fetch the feeds from a feed item url
212
+ *
213
+ * @since 3.0
214
+ */
215
+ function wprss_get_feed_items( $feed_url ) {
216
+ $general_settings = get_option( 'wprss_settings_general' );
217
+ $feed_item_limit = $general_settings['limit_feed_items_imported'];
218
+
219
+ // Don't fetch the feed if feed item limit is 0, there's no need, huge speed improvement
220
+ if ( $feed_item_limit === '' ) return;
221
+
222
+ add_filter( 'wp_feed_cache_transient_lifetime' , 'wprss_feed_cache_lifetime' );
223
+
224
+ /* Disable caching of feeds */
225
+ add_action( 'wp_feed_options', 'wprss_do_not_cache_feeds' );
226
+ /* Fetch the feed from the soure URL specified */
227
+ $feed = wprss_fetch_feed( $feed_url );
228
+ //$feed = new SimplePie();
229
+ //$feed->set_feed_url( $feed_url );
230
+ //$feed->init();
231
+ /* Remove action here because we only don't want it active feed imports outside of our plugin */
232
+ remove_action( 'wp_feed_options', 'wprss_do_not_cache_feeds' );
233
+
234
+ //$feed = wprss_fetch_feed( $feed_url );
235
+ remove_filter( 'wp_feed_cache_transient_lifetime' , 'wprss_feed_cache_lifetime' );
236
+
237
+ if ( !is_wp_error( $feed ) ) {
238
+
239
+ // Figure out how many total items there are, but limit it to the number of items set in options.
240
+ $maxitems = $feed->get_item_quantity( $feed_item_limit );
241
+
242
+ if ( $maxitems == 0 ) { return; }
243
+
244
+ // Build an array of all the items, starting with element 0 (first element).
245
+ $items = $feed->get_items( 0, $maxitems );
246
+ return $items;
247
+ }
248
+
249
+ else { return; }
250
+ }
251
+
252
+
253
+ /**
254
+ * Insert a WPRSS feed item post
255
+ *
256
+ * @since 3.0
257
+ */
258
+ function wprss_items_insert_post( $items, $feed_ID ) {
259
+
260
+ // Gather the permalinks of existing feed item's related to this feed source
261
+ $existing_permalinks = get_existing_permalinks( $feed_ID );
262
+
263
+ foreach ( $items as $item ) {
264
+
265
+ // normalize permalink to pass through feed proxy URL
266
+ $permalink = $item->get_permalink();
267
+
268
+ // CHECK PERMALINK FOR VIDEO HOSTS : YOUTUBE, VIMEO AND DAILYMOTION
269
+ $found_video_host = preg_match( '/http[s]?:\/\/(www\.)?(youtube|dailymotion|vimeo)\.com\/(.*)/i', $permalink, $matches );
270
+
271
+ // If video host was found
272
+ if ( $found_video_host !== 0 && $found_video_host !== FALSE ) {
273
+
274
+ // Get general options
275
+ $options = get_option( 'wprss_settings_general' );
276
+ // Get the video link option entry, or false if it does not exist
277
+ $video_link = ( isset($options['video_link']) )? $options['video_link'] : 'false';
278
+
279
+ // If the video link option is true, change the video URL to its repective host's embedded
280
+ // video player URL. Otherwise, leave the permalink as is.
281
+ if ( strtolower( $video_link ) === 'true' ) {
282
+ $host = $matches[2];
283
+ switch( $host ) {
284
+ case 'youtube':
285
+ preg_match( '/(&|\?)v=([^&]+)/', $permalink, $yt_matches );
286
+ $permalink = 'http://www.youtube.com/embed/' . $yt_matches[2];
287
+ break;
288
+ case 'vimeo':
289
+ preg_match( '/(\d*)$/i', $permalink, $vim_matches );
290
+ $permalink = 'http://player.vimeo.com/video/' . $vim_matches[0];
291
+ break;
292
+ case 'dailymotion':
293
+ preg_match( '/(\.com\/)(video\/)(.*)/i', $permalink, $dm_matches );
294
+ $permalink = 'http://www.dailymotion.com/embed/video/' . $dm_matches[3];
295
+ break;
296
+ }
297
+ }
298
+ }
299
+
300
+
301
+ /*
302
+ $response = wp_remote_head( $permalink );
303
+ if ( !is_wp_error( $response ) && isset( $response['headers']['location'] ) ) {
304
+ $permalink = current( explode( '?', $response['headers']['location'] ) );
305
+ }*/
306
+
307
+ // Check if newly fetched item already present in existing feed items,
308
+ // if not insert it into wp_posts and insert post meta.
309
+ if ( ! ( in_array( $permalink, $existing_permalinks ) ) ) {
310
+
311
+ // Apply filters that determine if the feed item should be inserted into the DB or not.
312
+ $item = apply_filters( 'wprss_insert_post_item_conditionals', $item, $feed_ID, $permalink );
313
+
314
+ // If the item is not NULL, continue to inserting the feed item post into the DB
315
+ if ( $item !== NULL ) {
316
+
317
+ $feed_item = apply_filters(
318
+ 'wprss_populate_post_data',
319
+ array(
320
+ 'post_title' => $item->get_title(),
321
+ 'post_content' => '',
322
+ 'post_status' => 'publish',
323
+ 'post_type' => 'wprss_feed_item',
324
+ 'post_date' => get_date_from_gmt( $item->get_date( 'Y-m-d H:i:s' ) ),
325
+ 'post_date_gmt' => $item->get_date( 'Y-m-d H:i:s' ),
326
+ ),
327
+ $item
328
+ );
329
+
330
+ if ( defined('ICL_SITEPRESS_VERSION') )
331
+ @include_once( WP_PLUGIN_DIR . '/sitepress-multilingual-cms/inc/wpml-api.php' );
332
+ if ( defined('ICL_LANGUAGE_CODE') )
333
+ $_POST['icl_post_language'] = $language_code = ICL_LANGUAGE_CODE;
334
+
335
+ // Create and insert post object into the DB
336
+ $inserted_ID = wp_insert_post( $feed_item );
337
+
338
+ if ( !is_wp_error( $inserted_ID ) ) {
339
+
340
+ if ( is_object( $inserted_ID ) ) {
341
+ if ( isset( $inserted_ID['ID'] ) ) {
342
+ $inserted_ID = $inserted_ID['ID'];
343
+ }
344
+ elseif ( isset( $inserted_ID->ID ) ) {
345
+ $inserted_ID = $inserted_ID->ID;
346
+ }
347
+ }
348
+
349
+ // Create and insert post meta into the DB
350
+ wprss_items_insert_post_meta( $inserted_ID, $item, $feed_ID, $permalink );
351
+
352
+ // Remember newly added permalink
353
+ $existing_permalinks[] = $permalink;
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+
360
+
361
+ /**
362
+ * Creates meta entries for feed items while they are being imported
363
+ *
364
+ * @since 2.3
365
+ */
366
+ function wprss_items_insert_post_meta( $inserted_ID, $item, $feed_ID, $feed_url) {
367
+ update_post_meta( $inserted_ID, 'wprss_item_permalink', $feed_url );
368
+ update_post_meta( $inserted_ID, 'wprss_item_description', $item->get_description() );
369
+ update_post_meta( $inserted_ID, 'wprss_item_date', $item->get_date( 'U' ) ); // Save as Unix timestamp format
370
+ update_post_meta( $inserted_ID, 'wprss_feed_id', $feed_ID);
371
+ do_action( 'wprss_items_create_post_meta', $inserted_ID, $item, $feed_ID );
372
+ }
373
+
374
+
375
+ add_action( 'publish_wprss_feed', 'wprss_fetch_insert_feed_items', 10 );
376
+ /**
377
+ * Fetches feed items from source provided and inserts into db
378
+ *
379
+ * This function is used when inserting or untrashing a new feed source, it only gets feeds from that particular source
380
+ *
381
+ * @since 3.0
382
+ */
383
+ function wprss_fetch_insert_feed_items( $post_id ) {
384
+ wp_schedule_single_event( time(), 'wprss_fetch_single_feed_hook', array( $post_id ) );
385
+ }
386
+
387
+
388
+
389
+ /**
390
+ * Returns the image of the feed.
391
+ * The reason this function exists is for add-ons to be able to detect if the plugin core
392
+ * supports feed image functionality through a simple function_exists() call.
393
+ *
394
+ * @param $source_id The ID of the feed source
395
+ * @return string The link to the feed image
396
+ * @since 1.0
397
+ */
398
+ function wprss_get_feed_image( $source_id ) {
399
+ return get_post_meta( $source_id, 'wprss_feed_image', true );
400
+ }
401
+
402
+
403
+ add_action( 'post_updated', 'wprss_updated_feed_source', 10, 3 );
404
+ /**
405
+ * This function is triggered just after a post is updated.
406
+ * It checks if the updated post is a feed source, and carries out any
407
+ * updating necassary.
408
+ *
409
+ * @since 3.3
410
+ */
411
+ function wprss_updated_feed_source( $post_ID, $post_after, $post_before ) {
412
+ // Check if the post is a feed source and is published
413
+
414
+ if ( ( $post_after->post_type == 'wprss_feed' ) && ( $post_after->post_status == 'publish' ) ) {
415
+
416
+ if ( isset( $_POST['wprss_url'] ) && !empty( $_POST['wprss_url'] ) ) {
417
+ $url = $_POST['wprss_url'];
418
+ $feed = wprss_fetch_feed( $url );
419
+ if ( $feed !== NULL && !is_wp_error( $feed ) ) {
420
+ update_post_meta( $post_ID, 'wprss_site_url', $feed->get_permalink() );
421
+ update_post_meta( $post_ID, 'wprss_feed_image', $feed->get_image_url() );
422
+ }
423
+ }
424
+
425
+
426
+ if ( isset( $_POST['wprss_limit'] ) && !empty( $_POST['wprss_limit'] ) ) {
427
+ // Checking feed limit change
428
+ // Get the limit currently saved in db, and limit in POST request
429
+ //$limit = get_post_meta( $post_ID, 'wprss_limit', true );
430
+ $limit = $_POST['wprss_limit'];
431
+ // Get all feed items for this source
432
+ $feed_sources = new WP_Query(
433
+ array(
434
+ 'post_type' => 'wprss_feed_item',
435
+ 'post_status' => 'publish',
436
+ 'cache_results' => false, // Disable caching, used for one-off queries
437
+ 'no_found_rows' => true, // We don't need pagination, so disable it
438
+ 'posts_per_page' => -1,
439
+ 'orderby' => 'date',
440
+ 'order' => 'ASC',
441
+ 'meta_query' => array(
442
+ array(
443
+ 'key' => 'wprss_feed_id',
444
+ 'value' => $post_ID,
445
+ 'compare' => 'LIKE'
446
+ )
447
+ )
448
+ )
449
+ );
450
+ // If the limit is smaller than the number of found posts, delete the feed items
451
+ // and re-import, to ensure that most recent feed items are present.
452
+ $difference = intval( $feed_sources->post_count ) - intval( $limit );
453
+ if ( $difference > 0 ) {
454
+ // Loop and delete the excess feed items
455
+ while ( $feed_sources->have_posts() && $difference > 0 ) {
456
+ $feed_sources->the_post();
457
+ wp_delete_post( get_the_ID(), true );
458
+ $difference--;
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+
465
+
466
+
467
+ add_action( 'wprss_fetch_single_feed_hook', 'wprss_fetch_insert_single_feed_items' );
468
+ /**
469
+ * Fetches feed items from source provided and inserts into db
470
+ *
471
+ * @since 3.2
472
+ */
473
+ function wprss_fetch_insert_single_feed_items( $feed_ID ) {
474
+ // Check if the feed source is active.
475
+ if ( wprss_is_feed_source_active( $feed_ID ) === FALSE && wprss_feed_source_force_next_fetch( $feed_ID ) === FALSE ) {
476
+ // If it is not active ( paused ), return without fetching the feed items.
477
+ return;
478
+ }
479
+ if ( wprss_feed_source_force_next_fetch( $feed_ID ) ) {
480
+ delete_post_meta( $feed_ID, 'wprss_force_next_fetch' );
481
+ }
482
+
483
+ // Get the URL and Feed Limit post meta data
484
+ $feed_url = get_post_meta( $feed_ID, 'wprss_url', true );
485
+ $feed_limit = get_post_meta( $feed_ID, 'wprss_limit', true );
486
+
487
+ $feed_url = apply_filters( 'wprss_feed_source_url', $feed_url, $feed_ID );
488
+
489
+ // Use the URL custom field to fetch the feed items for this source
490
+ if ( filter_var( $feed_url, FILTER_VALIDATE_URL ) ) {
491
+ $items = wprss_get_feed_items( $feed_url );
492
+ if ( $items === NULL ) $items = array();
493
+
494
+ // If the feed has its own meta limit, which is not zero,
495
+ // slice the items array using the feed meta limit
496
+ if ( !empty( $feed_limit ) && $feed_limit !== 0 )
497
+ $items_to_insert = array_slice($items, 0, $feed_limit);
498
+ else $items_to_insert = $items;
499
+
500
+ // Insert the items into the db
501
+ if ( !empty( $items_to_insert ) ) {
502
+ wprss_items_insert_post( $items_to_insert, $feed_ID );
503
+ }
504
+ }
505
+ }
506
+
507
+
508
+ /**
509
+ * Fetches all feed items from sources provided and inserts into db
510
+ *
511
+ * This function is used by the cron job or the debugging functions to get all feeds from all feed sources
512
+ *
513
+ * @param $all If set to TRUE, the function will pull from all feed sources, regardless of their individual
514
+ * update interval. If set to FALSE, only feed sources using the global update system will be updated.
515
+ * (Optional) Default: TRUE.
516
+ * @since 3.0
517
+ */
518
+ function wprss_fetch_insert_all_feed_items( $all = TRUE ) {
519
+ // Get all feed sources
520
+ $feed_sources = wprss_get_all_feed_sources();
521
+
522
+ if( $feed_sources->have_posts() ) {
523
+ // Start by getting one feed source, we will cycle through them one by one,
524
+ // fetching feed items and adding them to the database in each pass
525
+ while ( $feed_sources->have_posts() ) {
526
+ $feed_sources->the_post();
527
+
528
+ $interval = get_post_meta( get_the_ID(), 'wprss_update_interval', TRUE );
529
+ $using_global_interval = ( $interval === wprss_get_default_feed_source_update_interval() || $interval === '' );
530
+
531
+ // Check if fetching from all, or if feed source uses the global interval
532
+ if ( $all === TRUE || $using_global_interval ) {
533
+ wp_schedule_single_event( time(), 'wprss_fetch_single_feed_hook', array( get_the_ID() ) );
534
+ }
535
+ }
536
+ wp_reset_postdata(); // Restore the $post global to the current post in the main query
537
+ }
538
+ }
539
+ /**
540
+ * Runs the above function with parameter FALSE
541
+ *
542
+ * @since 3.9
543
+ */
544
+ function wprss_fetch_insert_all_feed_items_from_cron() {
545
+ wprss_fetch_insert_all_feed_items( FALSE );
546
+ }
547
+
548
+
549
+
550
+ add_action( 'updated_post_meta', 'wprss_update_feed_meta', 10, 4 );
551
+ /**
552
+ * This function is run whenever a post is saved or updated.
553
+ *
554
+ * @since 3.4
555
+ */
556
+ function wprss_update_feed_meta( $meta_id, $post_id, $meta_key, $meta_value ) {
557
+ $post = get_post( $post_id );
558
+ if ( $post->post_status === 'publish' && $post->post_type === 'wprss_feed' ) {
559
+ if ( $meta_key === 'wprss_url' )
560
+ wprss_change_fb_url( $post_id, $meta_value );
561
+ }
562
+ }
563
+
564
+
565
+ function wprss_change_fb_url( $post_id, $url ) {
566
+ # Check if url begins with a known facebook hostname.
567
+ if ( stripos( $url, 'http://facebook.com' ) === 0
568
+ || stripos( $url, 'http://www.facebook.com' ) === 0
569
+ || stripos( $url, 'https://facebook.com' ) === 0
570
+ || stripos( $url, 'https://www.facebook.com' ) === 0
571
+ ) {
572
+ # Generate the new URL to FB Graph
573
+ $com_index = stripos( $url, '.com' );
574
+ $fb_page = substr( $url, $com_index + 4 ); # 4 = length of ".com"
575
+ $fb_graph_url = 'http://graph.facebook.com' . $fb_page;
576
+ # Contact FB Graph and get data
577
+ $response = wp_remote_get( $fb_graph_url );
578
+ # If the repsonse successful and has a body
579
+ if ( !is_wp_error( $response ) && isset( $response['body'] ) ) {
580
+ # Parse the body as a JSON string
581
+ $json = json_decode( $response['body'], true );
582
+ # If an id is present ...
583
+ if ( isset( $json['id'] ) ) {
584
+ # Generate the final URL for this feed and update the post meta
585
+ $final_url = "http://www.facebook.com/feeds/page.php?format=atom10&id=" . $json['id'];
586
+ update_post_meta( $post_id, 'wprss_url', $final_url, $url );
587
+ }
588
+ }
589
+ }
590
+ }
591
+
592
+
593
+ add_action( 'trash_wprss_feed', 'wprss_delete_feed_items' ); // maybe use wp_trash_post action? wp_trash_wprss_feed
594
+ /**
595
+ * Delete feed items on trashing of corresponding feed source
596
+ *
597
+ * @since 2.0
598
+ */
599
+ function wprss_delete_feed_items( $postid ) {
600
+
601
+ $args = array(
602
+ 'post_type' => 'wprss_feed_item',
603
+ // Next 3 parameters for performance, see http://thomasgriffinmedia.com/blog/2012/10/optimize-wordpress-queries
604
+ 'cache_results' => false, // Disable caching, used for one-off queries
605
+ 'no_found_rows' => true, // We don't need pagination, so disable it
606
+ 'fields' => 'ids', // Returns post IDs only
607
+ 'posts_per_page'=> -1,
608
+ 'meta_query' => array(
609
+ array(
610
+ 'key' => 'wprss_feed_id',
611
+ 'value' => $postid,
612
+ 'compare' => 'LIKE'
613
+ )
614
+ )
615
+ );
616
+
617
+ $feed_item_ids = get_posts( $args );
618
+ foreach( $feed_item_ids as $feed_item_id ) {
619
+ $purge = wp_delete_post( $feed_item_id, true ); // delete the feed item, skipping trash
620
+ }
621
+ wp_reset_postdata();
622
+ }
623
+
624
+
625
+ add_action( 'wprss_delete_all_feed_items_hook', 'wprss_delete_all_feed_items' );
626
+ /**
627
+ * Delete all feed items
628
+ *
629
+ * @since 3.0
630
+ */
631
+ function wprss_delete_all_feed_items() {
632
+ $args = array(
633
+ 'post_type' => 'wprss_feed_item',
634
+ 'cache_results' => false, // Disable caching, used for one-off queries
635
+ 'no_found_rows' => true, // We don't need pagination, so disable it
636
+ 'fields' => 'ids', // Returns post IDs only
637
+ 'posts_per_page' => -1,
638
+ );
639
+
640
+ //$feed_items = new WP_Query( $args );
641
+
642
+ $feed_item_ids = get_posts( $args );
643
+ foreach( $feed_item_ids as $feed_item_id ) {
644
+ $purge = wp_delete_post( $feed_item_id, true ); // delete the feed item, skipping trash
645
+ }
646
+ wp_reset_postdata();
647
+ }
648
+
649
+
650
+ /**
651
+ * Returns the given parameter as a string. Used in wprss_truncate_posts()
652
+ *
653
+ * @return string The given parameter as a string
654
+ * @since 3.5.1
655
+ */
656
+ function wprss_return_as_string( $item ) {
657
+ return "'$item'";
658
+ }
659
+
660
+
661
+
662
+ /**
663
+ * Returns true if the feed item is older than the given timestamp,
664
+ * false otherwise;
665
+ *
666
+ * @since 3.8
667
+ */
668
+ function wprss_is_feed_item_older_than( $id, $timestamp ) {
669
+ // GET THE DATE
670
+ $age = get_post_meta( $id, 'wprss_item_date', TRUE );
671
+ if ( $age === '' ) return FALSE;
672
+ // Calculate the age difference
673
+ $difference = $age - $timestamp;
674
+ // Return whether the difference is negative ( the age is smaller than the timestamp )
675
+ return ( $difference <= 0 );
676
+ }
677
+
678
+
679
+ /**
680
+ * Returns the maximum age setting for a feed source.
681
+ *
682
+ * @since 3.8
683
+ */
684
+ function wprss_get_max_age_for_feed_source( $source_id ) {
685
+ $general_settings = get_option( 'wprss_settings_general' );
686
+ // Get the meta data for age for this feed source
687
+ $age_limit = get_post_meta( $source_id, 'wprss_age_limit', FALSE );
688
+ $age_unit = get_post_meta( $source_id, 'wprss_age_unit', FALSE );
689
+ // If the meta does not exist, use the global settings
690
+ $age_limit = ( count( $age_limit ) === 0 )? wprss_get_general_setting( 'limit_feed_items_age' ) : $age_limit[0];
691
+ $age_unit = ( count( $age_unit ) === 0 )? wprss_get_general_setting( 'limit_feed_items_age_unit' ) : $age_unit[0];
692
+ // If the age limit is an empty string, use no limit
693
+ if ( $age_limit === '' ) {
694
+ return FALSE;
695
+ }
696
+ // Return the timestamp of the max age date
697
+ return strtotime( "-$age_limit $age_unit" );
698
+ }
699
+
700
+
701
+ /**
702
+ * Delete old feed items from the database to avoid bloat.
703
+ * As if 3.8, it uses the new feed age system.
704
+ *
705
+ * @since 3.8
706
+ */
707
+ function wprss_truncate_posts() {
708
+ $general_settings = get_option( 'wprss_settings_general' );
709
+
710
+ // Get all feed sources
711
+ $feed_sources = wprss_get_all_feed_sources();
712
+
713
+
714
+ if( $feed_sources->have_posts() ) {
715
+
716
+ // FOR EACH FEED SOURCE
717
+ while ( $feed_sources->have_posts() ) {
718
+ $feed_sources->the_post();
719
+
720
+ // Get the max age setting for this feed source
721
+ $max_age = wprss_get_max_age_for_feed_source( get_the_ID() );
722
+
723
+ // If the data is empty, do not delete
724
+ if ( $max_age !== FALSE ) {
725
+
726
+ // Get all feed items for this source
727
+ $feed_items = wprss_get_feed_items_for_source( get_the_ID() );
728
+
729
+ // FOR EACH FEED ITEM
730
+ if ( $feed_items-> have_posts() ) {
731
+ while ( $feed_items->have_posts() ) {
732
+ $feed_items->the_post();
733
+ // If the post is older than the maximum age
734
+ if ( wprss_is_feed_item_older_than( get_the_ID(), $max_age ) === TRUE ){
735
+ // Delete the post
736
+ wp_delete_post( get_the_ID(), true );
737
+ }
738
+ }
739
+ // Reset feed items query data
740
+ wp_reset_postdata();
741
+ }
742
+
743
+ }
744
+ }
745
+ // Reset feed sources query data
746
+ wp_reset_postdata();
747
+ }
748
+
749
+ // If the filter to use the fixed limit is enabled, call the old truncation function
750
+ if ( apply_filters( 'wprss_use_fixed_feed_limit', FALSE ) === TRUE && isset( $general_settings['limit_feed_items_db'] ) ) {
751
+ wprss_old_truncate_posts();
752
+ }
753
+
754
+ }
755
+
756
+
757
+
758
+
759
+ /**
760
+ * The old truncation function.
761
+ * This truncation method uses the deprecated fixed feed limit.
762
+ *
763
+ * @since 2.0
764
+ */
765
+ function wprss_old_truncate_posts() {
766
+ global $wpdb;
767
+ $general_settings = get_option( 'wprss_settings_general' );
768
+
769
+ if ( $general_settings['limit_feed_items_db'] == 0 ) {
770
+ return;
771
+ }
772
+
773
+ // Set your threshold of max posts and post_type name
774
+ $threshold = $general_settings['limit_feed_items_db'];
775
+ $post_types = apply_filters( 'wprss_truncation_post_types', array( 'wprss_feed_item' ) );
776
+ $post_types_str = array_map( 'wprss_return_as_string', $post_types );
777
+
778
+ $post_type_list = implode( ',' , $post_types_str );
779
+
780
+ // Query post type
781
+ // $wpdb query allows me to select specific columns instead of grabbing the entire post object.
782
+ $query = "
783
+ SELECT ID, post_title FROM $wpdb->posts
784
+ WHERE post_type IN ($post_type_list)
785
+ AND post_status = 'publish'
786
+ ORDER BY post_modified DESC
787
+ ";
788
+
789
+ $results = $wpdb->get_results( $query );
790
+
791
+ // Check if there are any results
792
+ $i = 0;
793
+ if ( count( $results ) ){
794
+ foreach ( $results as $post ) {
795
+ $i++;
796
+
797
+ // Skip any posts within our threshold
798
+ if ( $i <= $threshold )
799
+ continue;
800
+
801
+ // Let the WordPress API do the heavy lifting for cleaning up entire post trails
802
+ $purge = wp_delete_post( $post->ID, true );
803
+ }
804
+ }
805
+ }
806
+
807
+
808
+ add_filter( 'wprss_insert_post_item_conditionals', 'wprss_check_feed_item_date_on_import', 2, 3 );
809
+ /**
810
+ * When a feed item is imported, it's date is compared against the max age of it's feed source.
811
+ *
812
+ *
813
+ * @since 3.8
814
+ */
815
+ function wprss_check_feed_item_date_on_import( $item, $source, $permalink ){
816
+ if ( $item === NULL ) return NULL;
817
+
818
+ // Get the age of the item and the max age setting for its feed source
819
+ $age = $item->get_date( 'U' );
820
+ $max_age = wprss_get_max_age_for_feed_source( $source );
821
+
822
+ // If the age is not a valid timestamp, and the max age setting is disabled, return the item
823
+ if ( $age === '' || $age === NULL || $max_age === FALSE || $max_age === NULL ) {
824
+ return $item;
825
+ }
826
+
827
+ // Calculate the age difference
828
+ $difference = $age - $max_age;
829
+
830
+ return ( $difference <= 0 )? NULL : $item;
831
+ }
832
+
833
+
834
+ /**
835
+ * Custom version of the WP fetch_feed() function, since we want custom sanitization of a feed
836
+ *
837
+ * Not being used at the moment, until we decide whether we can still use fetch_feed and modify its handling of sanitization
838
+ *
839
+ * @since 3.0
840
+ *
841
+ */
842
+ /*function wprss_fetch_feed($url) {
843
+ require_once (ABSPATH . WPINC . '/class-feed.php');
844
+
845
+ $feed = new SimplePie();
846
+
847
+ // $feed->set_sanitize_class( 'WP_SimplePie_Sanitize_KSES' );
848
+ // We must manually overwrite $feed->sanitize because SimplePie's
849
+ // constructor sets it before we have a chance to set the sanitization class
850
+ // $feed->sanitize = new WP_SimplePie_Sanitize_KSES();
851
+
852
+ $feed->set_cache_class( 'WP_Feed_Cache' );
853
+ $feed->set_file_class( 'WP_SimplePie_File' );
854
+
855
+ $feed->set_feed_url($url);
856
+ $feed->strip_htmltags(array_merge($feed->strip_htmltags, array( 'h1', 'h2', 'h3', 'h4', 'h5', 'a' )));
857
+ $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
858
+ do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
859
+ $feed->init();
860
+ $feed->handle_content_type();
861
+
862
+ if ( $feed->error() )
863
+ return new WP_Error('simplepie-error', $feed->error());
864
+
865
+ return $feed;
866
+ }*/
867
+
868
+
869
+ /**
870
+ * Deletes all imported feeds and re-imports everything
871
+ *
872
+ * @since 3.0
873
+ */
874
+ function wprss_feed_reset() {
875
+ wp_schedule_single_event( time(), 'wprss_delete_all_feed_items_hook' );
876
+ wprss_fetch_insert_all_feed_items( TRUE );
877
+ }
878
+
879
+ /* add_action( 'wp_feed_options', 'wprss_feed_options' );
880
+ function wprss_feed_options( $feed) {
881
+ $feed->strip_htmltags(array_merge($feed->strip_htmltags, array('h1', 'a', 'img','em')));
882
+ }
883
+
884
+ */
includes/libraries/WP_Logging.php ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class for logging events and errors
5
+ *
6
+ * @package WP Logging Class
7
+ * @copyright Copyright (c) 2012, Pippin Williamson
8
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+ */
10
+
11
+ class WP_Logging {
12
+
13
+
14
+ /**
15
+ * Class constructor.
16
+ *
17
+ * @since 1.0
18
+ *
19
+ * @access public
20
+ * @return void
21
+ */
22
+ function __construct() {
23
+
24
+ // create the log post type
25
+ add_action( 'init', array( $this, 'register_post_type' ) );
26
+
27
+ // create types taxonomy and default types
28
+ add_action( 'init', array( $this, 'register_taxonomy' ) );
29
+
30
+ }
31
+
32
+
33
+ /**
34
+ * Log types
35
+ *
36
+ * Sets up the default log types and allows for new ones to be created
37
+ *
38
+ * @access private
39
+ * @since 1.0
40
+ *
41
+ * @return array
42
+ */
43
+
44
+ private function log_types() {
45
+ $terms = array(
46
+ 'error', 'event'
47
+ );
48
+
49
+ return apply_filters( 'wp_log_types', $terms );
50
+ }
51
+
52
+
53
+ /**
54
+ * Registers the wp_log Post Type
55
+ *
56
+ * @access public
57
+ * @since 1.0
58
+ *
59
+ * @uses register_post_type()
60
+ *
61
+ * @return void
62
+ */
63
+
64
+ public function register_post_type() {
65
+
66
+ /* logs post type */
67
+
68
+ $log_args = array(
69
+ 'labels' => array( 'name' => __( 'Logs', 'wp-logging' ) ),
70
+ 'public' => false,
71
+ 'query_var' => false,
72
+ 'rewrite' => false,
73
+ 'capability_type' => 'post',
74
+ 'supports' => array( 'title', 'editor' ),
75
+ 'can_export' => false
76
+ );
77
+ register_post_type( 'wp_log', apply_filters( 'wp_logging_post_type_args', $log_args ) );
78
+
79
+ }
80
+
81
+
82
+ /**
83
+ * Registers the Type Taxonomy
84
+ *
85
+ * The Type taxonomy is used to determine the type of log entry
86
+ *
87
+ * @access public
88
+ * @since 1.0
89
+ *
90
+ * @uses register_taxonomy()
91
+ * @uses term_exists()
92
+ * @uses wp_insert_term()
93
+ *
94
+ * @return void
95
+ */
96
+
97
+ public function register_taxonomy() {
98
+
99
+ register_taxonomy( 'wp_log_type', 'wp_log' );
100
+
101
+ $types = self::log_types();
102
+
103
+ foreach ( $types as $type ) {
104
+ if( ! term_exists( $type, 'wp_log_type' ) ) {
105
+ wp_insert_term( $type, 'wp_log_type' );
106
+ }
107
+ }
108
+ }
109
+
110
+
111
+ /**
112
+ * Check if a log type is valid
113
+ *
114
+ * Checks to see if the specified type is in the registered list of types
115
+ *
116
+ * @access private
117
+ * @since 1.0
118
+ *
119
+ *
120
+ * @return array
121
+ */
122
+
123
+ private function valid_type( $type ) {
124
+ return in_array( $type, self::log_types() );
125
+ }
126
+
127
+
128
+ /**
129
+ * Create new log entry
130
+ *
131
+ * This is just a simple and fast way to log something. Use self::insert_log()
132
+ * if you need to store custom meta data
133
+ *
134
+ * @access private
135
+ * @since 1.0
136
+ *
137
+ * @uses self::insert_log()
138
+ *
139
+ * @return int The ID of the new log entry
140
+ */
141
+
142
+ public static function add( $title = '', $message = '', $parent = 0, $type = null ) {
143
+
144
+ $log_data = array(
145
+ 'post_title' => $title,
146
+ 'post_content' => $message,
147
+ 'post_parent' => $parent,
148
+ 'log_type' => $type
149
+ );
150
+
151
+ return self::insert_log( $log_data );
152
+
153
+ }
154
+
155
+
156
+ /**
157
+ * Stores a log entry
158
+ *
159
+ * @access private
160
+ * @since 1.0
161
+ *
162
+ * @uses wp_parse_args()
163
+ * @uses wp_insert_post()
164
+ * @uses update_post_meta()
165
+ * @uses wp_set_object_terms()
166
+ * @uses sanitize_key()
167
+ *
168
+ * @return int The ID of the newly created log item
169
+ */
170
+
171
+ public static function insert_log( $log_data = array(), $log_meta = array() ) {
172
+
173
+ $defaults = array(
174
+ 'post_type' => 'wp_log',
175
+ 'post_status' => 'publish',
176
+ 'post_parent' => 0,
177
+ 'post_content' => '',
178
+ 'log_type' => false
179
+ );
180
+
181
+ $args = wp_parse_args( $log_data, $defaults );
182
+
183
+ do_action( 'wp_pre_insert_log' );
184
+
185
+ // store the log entry
186
+ $log_id = wp_insert_post( $args );
187
+
188
+ // set the log type, if any
189
+ if( $log_data['log_type'] && self::valid_type( $log_data['log_type'] ) ) {
190
+ wp_set_object_terms( $log_id, $log_data['log_type'], 'wp_log_type', false );
191
+ }
192
+
193
+
194
+ // set log meta, if any
195
+ if( $log_id && ! empty( $log_meta ) ) {
196
+ foreach( (array) $log_meta as $key => $meta ) {
197
+ update_post_meta( $log_id, '_wp_log_' . sanitize_key( $key ), $meta );
198
+ }
199
+ }
200
+
201
+ do_action( 'wp_post_insert_log', $log_id );
202
+
203
+ return $log_id;
204
+
205
+ }
206
+
207
+
208
+ /**
209
+ * Update and existing log item
210
+ *
211
+ * @access private
212
+ * @since 1.0
213
+ *
214
+ * @uses wp_parse_args()
215
+ * @uses wp_update_post()
216
+ * @uses update_post_meta()
217
+ *
218
+ * @return bool True if successful, false otherwise
219
+ */
220
+ public static function update_log( $log_data = array(), $log_meta = array() ) {
221
+
222
+ do_action( 'wp_pre_update_log', $log_id );
223
+
224
+ $defaults = array(
225
+ 'post_type' => 'wp_log',
226
+ 'post_status' => 'publish',
227
+ 'post_parent' => 0
228
+ );
229
+
230
+ $args = wp_parse_args( $log_data, $defaults );
231
+
232
+ // store the log entry
233
+ $log_id = wp_update_post( $args );
234
+
235
+ if( $log_id && ! empty( $log_meta ) ) {
236
+ foreach( (array) $log_meta as $key => $meta ) {
237
+ if( ! empty( $meta ) )
238
+ update_post_meta( $log_id, '_wp_log_' . sanitize_key( $key ), $meta );
239
+ }
240
+ }
241
+
242
+ do_action( 'wp_post_update_log', $log_id );
243
+
244
+ }
245
+
246
+
247
+ /**
248
+ * Easily retrieves log items for a particular object ID
249
+ *
250
+ * @access private
251
+ * @since 1.0
252
+ *
253
+ * @uses self::get_connected_logs()
254
+ *
255
+ * @return array
256
+ */
257
+
258
+ public static function get_logs( $object_id = 0, $type = null, $paged = null ) {
259
+ return self::get_connected_logs( array( 'post_parent' => $object_id, 'paged' => $paged, 'log_type' => $type ) );
260
+
261
+ }
262
+
263
+
264
+ /**
265
+ * Retrieve all connected logs
266
+ *
267
+ * Used for retrieving logs related to particular items, such as a specific purchase.
268
+ *
269
+ * @access private
270
+ * @since 1.0
271
+ *
272
+ * @uses wp_parse_args()
273
+ * @uses get_posts()
274
+ * @uses get_query_var()
275
+ * @uses self::valid_type()
276
+ *
277
+ * @return array / false
278
+ */
279
+
280
+ public static function get_connected_logs( $args = array() ) {
281
+
282
+ $defaults = array(
283
+ 'post_parent' => 0,
284
+ 'post_type' => 'wp_log',
285
+ 'posts_per_page' => 10,
286
+ 'post_status' => 'publish',
287
+ 'paged' => get_query_var( 'paged' ),
288
+ 'log_type' => false
289
+ );
290
+
291
+ $query_args = wp_parse_args( $args, $defaults );
292
+
293
+ if( $query_args['log_type'] && self::valid_type( $query_args['log_type'] ) ) {
294
+
295
+ $query_args['tax_query'] = array(
296
+ array(
297
+ 'taxonomy' => 'wp_log_type',
298
+ 'field' => 'slug',
299
+ 'terms' => $query_args['log_type']
300
+ )
301
+ );
302
+
303
+ }
304
+
305
+ $logs = get_posts( $query_args );
306
+
307
+ if( $logs )
308
+ return $logs;
309
+
310
+ // no logs found
311
+ return false;
312
+
313
+ }
314
+
315
+
316
+ /**
317
+ * Retrieves number of log entries connected to particular object ID
318
+ *
319
+ * @access private
320
+ * @since 1.0
321
+ *
322
+ * @uses WP_Query()
323
+ * @uses self::valid_type()
324
+ *
325
+ * @return int
326
+ */
327
+
328
+ public static function get_log_count( $object_id = 0, $type = null, $meta_query = null ) {
329
+
330
+ $query_args = array(
331
+ 'post_parent' => $object_id,
332
+ 'post_type' => 'wp_log',
333
+ 'posts_per_page' => -1,
334
+ 'post_status' => 'publish'
335
+ );
336
+
337
+ if( ! empty( $type ) && self::valid_type( $type ) ) {
338
+
339
+ $query_args['tax_query'] = array(
340
+ array(
341
+ 'taxonomy' => 'wp_log_type',
342
+ 'field' => 'slug',
343
+ 'terms' => $type
344
+ )
345
+ );
346
+
347
+ }
348
+
349
+ if( ! empty( $meta_query ) ) {
350
+ $query_args['meta_query'] = $meta_query;
351
+ }
352
+
353
+ $logs = new WP_Query( $query_args );
354
+
355
+ return (int) $logs->post_count;
356
+
357
+ }
358
+
359
+ }
360
+ $GLOBALS['wp_logs'] = new WP_Logging();
includes/libraries/browser.php ADDED
@@ -0,0 +1,1082 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Modified to remove var
4
+ * Chris Christoff on 12/26/2012
5
+ * Changes: Changes vars to publics
6
+ *
7
+ * Modified to work for EDD by
8
+ * Chris Christoff on 12/23/2012
9
+ * Changes: Removed the browser string return and added spacing. Also removed return HTML formatting.
10
+ *
11
+ * Modified to add formatted User Agent string for EDD System Info by
12
+ * Chris Christoff on 12/23/2012
13
+ * Changes: Split user string and add formatting so we can print a nicely
14
+ * formatted user agent string on the EDD System Info
15
+ *
16
+ * File: Browser.php
17
+ * Author: Chris Schuld (http://chrisschuld.com/)
18
+ * Last Modified: August 20th, 2010
19
+ * @version 1.9
20
+ * @package PegasusPHP
21
+ *
22
+ * Copyright (C) 2008-2010 Chris Schuld (chris@chrisschuld.com)
23
+ *
24
+ * This program is free software; you can redistribute it and/or
25
+ * modify it under the terms of the GNU General Public License as
26
+ * published by the Free Software Foundation; either version 2 of
27
+ * the License, or (at your option) any later version.
28
+ *
29
+ * This program is distributed in the hope that it will be useful,
30
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32
+ * GNU General Public License for more details at:
33
+ * http://www.gnu.org/copyleft/gpl.html
34
+ *
35
+ *
36
+ * Typical Usage:
37
+ *
38
+ * $browser = new Browser();
39
+ * if( $browser->getBrowser() == Browser::BROWSER_FIREFOX && $browser->getVersion() >= 2 ) {
40
+ * echo 'You have FireFox version 2 or greater';
41
+ * }
42
+ *
43
+ * User Agents Sampled from: http://www.useragentstring.com/
44
+ *
45
+ * This implementation is based on the original work from Gary White
46
+ * http://apptools.com/phptools/browser/
47
+ *
48
+ * UPDATES:
49
+ *
50
+ * 2010-08-20 (v1.9):
51
+ * + Added MSN Explorer Browser (legacy)
52
+ * + Added Bing/MSN Robot (Thanks Rob MacDonald)
53
+ * + Added the Android Platform (PLATFORM_ANDROID)
54
+ * + Fixed issue with Android 1.6/2.2 (Thanks Tom Hirashima)
55
+ *
56
+ * 2010-04-27 (v1.8):
57
+ * + Added iPad Support
58
+ *
59
+ * 2010-03-07 (v1.7):
60
+ * + *MAJOR* Rebuild (preg_match and other "slow" routine removal(s))
61
+ * + Almost allof Gary's original code has been replaced
62
+ * + Large PHPUNIT testing environment created to validate new releases and additions
63
+ * + Added FreeBSD Platform
64
+ * + Added OpenBSD Platform
65
+ * + Added NetBSD Platform
66
+ * + Added SunOS Platform
67
+ * + Added OpenSolaris Platform
68
+ * + Added support of the Iceweazel Browser
69
+ * + Added isChromeFrame() call to check if chromeframe is in use
70
+ * + Moved the Opera check in front of the Firefox check due to legacy Opera User Agents
71
+ * + Added the __toString() method (Thanks Deano)
72
+ *
73
+ * 2009-11-15:
74
+ * + Updated the checkes for Firefox
75
+ * + Added the NOKIA platform
76
+ * + Added Checks for the NOKIA brower(s)
77
+ *
78
+ * 2009-11-08:
79
+ * + PHP 5.3 Support
80
+ * + Added support for BlackBerry OS and BlackBerry browser
81
+ * + Added support for the Opera Mini browser
82
+ * + Added additional documenation
83
+ * + Added support for isRobot() and isMobile()
84
+ * + Added support for Opera version 10
85
+ * + Added support for deprecated Netscape Navigator version 9
86
+ * + Added support for IceCat
87
+ * + Added support for Shiretoko
88
+ *
89
+ * 2010-04-27 (v1.8):
90
+ * + Added iPad Support
91
+ *
92
+ * 2009-08-18:
93
+ * + Updated to support PHP 5.3 - removed all deprecated function calls
94
+ * + Updated to remove all double quotes (") -- converted to single quotes (')
95
+ *
96
+ * 2009-04-27:
97
+ * + Updated the IE check to remove a typo and bug (thanks John)
98
+ *
99
+ * 2009-04-22:
100
+ * + Added detection for GoogleBot
101
+ * + Added detection for the W3C Validator.
102
+ * + Added detection for Yahoo! Slurp
103
+ *
104
+ * 2009-03-14:
105
+ * + Added detection for iPods.
106
+ * + Added Platform detection for iPhones
107
+ * + Added Platform detection for iPods
108
+ *
109
+ * 2009-02-16: (Rick Hale)
110
+ * + Added version detection for Android phones.
111
+ *
112
+ * 2008-12-09:
113
+ * + Removed unused constant
114
+ *
115
+ * 2008-11-07:
116
+ * + Added Google's Chrome to the detection list
117
+ * + Added isBrowser(string) to the list of functions special thanks to
118
+ * Daniel 'mavrick' Lang for the function concept (http://mavrick.id.au)
119
+ *
120
+ *
121
+ * Gary White noted: "Since browser detection is so unreliable, I am
122
+ * no longer maintaining this script. You are free to use and or
123
+ * modify/update it as you want, however the author assumes no
124
+ * responsibility for the accuracy of the detected values."
125
+ *
126
+ * Anyone experienced with Gary's script might be interested in these notes:
127
+ *
128
+ * Added class constants
129
+ * Added detection and version detection for Google's Chrome
130
+ * Updated the version detection for Amaya
131
+ * Updated the version detection for Firefox
132
+ * Updated the version detection for Lynx
133
+ * Updated the version detection for WebTV
134
+ * Updated the version detection for NetPositive
135
+ * Updated the version detection for IE
136
+ * Updated the version detection for OmniWeb
137
+ * Updated the version detection for iCab
138
+ * Updated the version detection for Safari
139
+ * Updated Safari to remove mobile devices (iPhone)
140
+ * Added detection for iPhone
141
+ * Added detection for robots
142
+ * Added detection for mobile devices
143
+ * Added detection for BlackBerry
144
+ * Removed Netscape checks (matches heavily with firefox & mozilla)
145
+ *
146
+ */
147
+
148
+ class Browser {
149
+ public $_agent = '';
150
+ public $_browser_name = '';
151
+ public $_version = '';
152
+ public $_platform = '';
153
+ public $_os = '';
154
+ public $_is_aol = false;
155
+ public $_is_mobile = false;
156
+ public $_is_robot = false;
157
+ public $_aol_version = '';
158
+
159
+ public $BROWSER_UNKNOWN = 'unknown';
160
+ public $VERSION_UNKNOWN = 'unknown';
161
+
162
+ public $BROWSER_OPERA = 'Opera'; // Http://www.opera.com/
163
+ public $BROWSER_OPERA_MINI = 'Opera Mini'; // Http://www.opera.com/mini/
164
+ public $BROWSER_WEBTV = 'WebTV'; // Http://www.webtv.net/pc/
165
+ public $BROWSER_IE = 'Internet Explorer'; // Http://www.microsoft.com/ie/
166
+ public $BROWSER_POCKET_IE = 'Pocket Internet Explorer'; // Http://en.wikipedia.org/wiki/Internet_Explorer_Mobile
167
+ public $BROWSER_KONQUEROR = 'Konqueror'; // Http://www.konqueror.org/
168
+ public $BROWSER_ICAB = 'iCab'; // Http://www.icab.de/
169
+ public $BROWSER_OMNIWEB = 'OmniWeb'; // Http://www.omnigroup.com/applications/omniweb/
170
+ public $BROWSER_FIREBIRD = 'Firebird'; // Http://www.ibphoenix.com/
171
+ public $BROWSER_FIREFOX = 'Firefox'; // Http://www.mozilla.com/en-US/firefox/firefox.html
172
+ public $BROWSER_ICEWEASEL = 'Iceweasel'; // Http://www.geticeweasel.org/
173
+ public $BROWSER_SHIRETOKO = 'Shiretoko'; // Http://wiki.mozilla.org/Projects/shiretoko
174
+ public $BROWSER_MOZILLA = 'Mozilla'; // Http://www.mozilla.com/en-US/
175
+ public $BROWSER_AMAYA = 'Amaya'; // Http://www.w3.org/Amaya/
176
+ public $BROWSER_LYNX = 'Lynx'; // Http://en.wikipedia.org/wiki/Lynx
177
+ public $BROWSER_SAFARI = 'Safari'; // Http://apple.com
178
+ public $BROWSER_IPHONE = 'iPhone'; // Http://apple.com
179
+ public $BROWSER_IPOD = 'iPod'; // Http://apple.com
180
+ public $BROWSER_IPAD = 'iPad'; // Http://apple.com
181
+ public $BROWSER_CHROME = 'Chrome'; // Http://www.google.com/chrome
182
+ public $BROWSER_ANDROID = 'Android'; // Http://www.android.com/
183
+ public $BROWSER_GOOGLEBOT = 'GoogleBot'; // Http://en.wikipedia.org/wiki/Googlebot
184
+ public $BROWSER_SLURP = 'Yahoo! Slurp'; // Http://en.wikipedia.org/wiki/Yahoo!_Slurp
185
+ public $BROWSER_W3CVALIDATOR = 'W3C Validator'; // Http://validator.w3.org/
186
+ public $BROWSER_BLACKBERRY = 'BlackBerry'; // Http://www.blackberry.com/
187
+ public $BROWSER_ICECAT = 'IceCat'; // Http://en.wikipedia.org/wiki/GNU_IceCat
188
+ public $BROWSER_NOKIA_S60 = 'Nokia S60 OSS Browser'; // Http://en.wikipedia.org/wiki/Web_Browser_for_S60
189
+ public $BROWSER_NOKIA = 'Nokia Browser'; // * all other WAP-based browsers on the Nokia Platform
190
+ public $BROWSER_MSN = 'MSN Browser'; // Http://explorer.msn.com/
191
+ public $BROWSER_MSNBOT = 'MSN Bot'; // Http://search.msn.com/msnbot.htm
192
+ // Http://en.wikipedia.org/wiki/Msnbot (used for Bing as well)
193
+
194
+ public $BROWSER_NETSCAPE_NAVIGATOR = 'Netscape Navigator'; // Http://browser.netscape.com/ (DEPRECATED)
195
+ public $BROWSER_GALEON = 'Galeon'; // Http://galeon.sourceforge.net/ (DEPRECATED)
196
+ public $BROWSER_NETPOSITIVE = 'NetPositive'; // Http://en.wikipedia.org/wiki/NetPositive (DEPRECATED)
197
+ public $BROWSER_PHOENIX = 'Phoenix'; // Http://en.wikipedia.org/wiki/History_of_Mozilla_Firefox (DEPRECATED)
198
+
199
+ public $PLATFORM_UNKNOWN = 'unknown';
200
+ public $PLATFORM_WINDOWS = 'Windows';
201
+ public $PLATFORM_WINDOWS_CE = 'Windows CE';
202
+ public $PLATFORM_APPLE = 'Apple';
203
+ public $PLATFORM_LINUX = 'Linux';
204
+ public $PLATFORM_OS2 = 'OS/2';
205
+ public $PLATFORM_BEOS = 'BeOS';
206
+ public $PLATFORM_IPHONE = 'iPhone';
207
+ public $PLATFORM_IPOD = 'iPod';
208
+ public $PLATFORM_IPAD = 'iPad';
209
+ public $PLATFORM_BLACKBERRY = 'BlackBerry';
210
+ public $PLATFORM_NOKIA = 'Nokia';
211
+ public $PLATFORM_FREEBSD = 'FreeBSD';
212
+ public $PLATFORM_OPENBSD = 'OpenBSD';
213
+ public $PLATFORM_NETBSD = 'NetBSD';
214
+ public $PLATFORM_SUNOS = 'SunOS';
215
+ public $PLATFORM_OPENSOLARIS = 'OpenSolaris';
216
+ public $PLATFORM_ANDROID = 'Android';
217
+
218
+ public $OPERATING_SYSTEM_UNKNOWN = 'unknown';
219
+
220
+ function Browser($useragent="") {
221
+ $this->reset();
222
+ if( $useragent != "" ) {
223
+ $this->setUserAgent($useragent);
224
+ }
225
+ else {
226
+ $this->determine();
227
+ }
228
+ }
229
+
230
+ /**
231
+ * Reset all properties
232
+ */
233
+ function reset() {
234
+ $this->_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
235
+ $this->_browser_name = $this->BROWSER_UNKNOWN;
236
+ $this->_version = $this->VERSION_UNKNOWN;
237
+ $this->_platform = $this->PLATFORM_UNKNOWN;
238
+ $this->_os = $this->OPERATING_SYSTEM_UNKNOWN;
239
+ $this->_is_aol = false;
240
+ $this->_is_mobile = false;
241
+ $this->_is_robot = false;
242
+ $this->_aol_version = $this->VERSION_UNKNOWN;
243
+ }
244
+
245
+ /**
246
+ * Check to see if the specific browser is valid
247
+ * @param string $browserName
248
+ * @return True if the browser is the specified browser
249
+ */
250
+ function isBrowser($browserName) { return( 0 == strcasecmp($this->_browser_name, trim($browserName))); }
251
+
252
+ /**
253
+ * The name of the browser. All return types are from the class contants
254
+ * @return string Name of the browser
255
+ */
256
+ function getBrowser() { return $this->_browser_name; }
257
+ /**
258
+ * Set the name of the browser
259
+ * @param $browser The name of the Browser
260
+ */
261
+ function setBrowser($browser) { return $this->_browser_name = $browser; }
262
+ /**
263
+ * The name of the platform. All return types are from the class contants
264
+ * @return string Name of the browser
265
+ */
266
+ function getPlatform() { return $this->_platform; }
267
+ /**
268
+ * Set the name of the platform
269
+ * @param $platform The name of the Platform
270
+ */
271
+ function setPlatform($platform) { return $this->_platform = $platform; }
272
+ /**
273
+ * The version of the browser.
274
+ * @return string Version of the browser (will only contain alpha-numeric characters and a period)
275
+ */
276
+ function getVersion() { return $this->_version; }
277
+ /**
278
+ * Set the version of the browser
279
+ * @param $version The version of the Browser
280
+ */
281
+ function setVersion($version) { $this->_version = preg_replace('/[^0-9,.,a-z,A-Z-]/','',$version); }
282
+ /**
283
+ * The version of AOL.
284
+ * @return string Version of AOL (will only contain alpha-numeric characters and a period)
285
+ */
286
+ function getAolVersion() { return $this->_aol_version; }
287
+ /**
288
+ * Set the version of AOL
289
+ * @param $version The version of AOL
290
+ */
291
+ function setAolVersion($version) { $this->_aol_version = preg_replace('/[^0-9,.,a-z,A-Z]/','',$version); }
292
+ /**
293
+ * Is the browser from AOL?
294
+ * @return boolean True if the browser is from AOL otherwise false
295
+ */
296
+ function isAol() { return $this->_is_aol; }
297
+ /**
298
+ * Is the browser from a mobile device?
299
+ * @return boolean True if the browser is from a mobile device otherwise false
300
+ */
301
+ function isMobile() { return $this->_is_mobile; }
302
+ /**
303
+ * Is the browser from a robot (ex Slurp,GoogleBot)?
304
+ * @return boolean True if the browser is from a robot otherwise false
305
+ */
306
+ function isRobot() { return $this->_is_robot; }
307
+ /**
308
+ * Set the browser to be from AOL
309
+ * @param $isAol
310
+ */
311
+ function setAol($isAol) { $this->_is_aol = $isAol; }
312
+ /**
313
+ * Set the Browser to be mobile
314
+ * @param boolean $value is the browser a mobile brower or not
315
+ */
316
+ function setMobile($value=true) { $this->_is_mobile = $value; }
317
+ /**
318
+ * Set the Browser to be a robot
319
+ * @param boolean $value is the browser a robot or not
320
+ */
321
+ function setRobot($value=true) { $this->_is_robot = $value; }
322
+ /**
323
+ * Get the user agent value in use to determine the browser
324
+ * @return string The user agent from the HTTP header
325
+ */
326
+ function getUserAgent() { return $this->_agent; }
327
+ /**
328
+ * Set the user agent value (the construction will use the HTTP header value - this will overwrite it)
329
+ * @param $agent_string The value for the User Agent
330
+ */
331
+ function setUserAgent($agent_string) {
332
+ $this->reset();
333
+ $this->_agent = $agent_string;
334
+ $this->determine();
335
+ }
336
+ /**
337
+ * Used to determine if the browser is actually "chromeframe"
338
+ * @since 1.7
339
+ * @return boolean True if the browser is using chromeframe
340
+ */
341
+ function isChromeFrame() {
342
+ return( strpos($this->_agent,"chromeframe") !== false );
343
+ }
344
+ /**
345
+ * Returns a formatted string with a summary of the details of the browser.
346
+ * @return string formatted string with a summary of the browser
347
+ */
348
+ function __toString() {
349
+ $text1 = $this->getUserAgent(); //grabs the UA (user agent) string
350
+ $UAline1 = substr($text1, 0, 32); //the first line we print should only be the first 32 characters of the UA string
351
+ $text2 = $this->getUserAgent();//now we grab it again and save it to a string
352
+ $towrapUA = str_replace($UAline1, '', $text2);//the rest of the printoff (other than first line) is equivolent
353
+ // To the whole string minus the part we printed off. IE
354
+ // User Agent: thefirst32charactersfromUAline1
355
+ // the rest of it is now stored in
356
+ // $text2 to be printed off
357
+ // But we need to add spaces before each line that is split other than line 1
358
+ $space = '';
359
+ for($i = 0; $i < 25; $i++) {
360
+ $space .= ' ';
361
+ }
362
+ // Now we split the remaining string of UA ($text2) into lines that are prefixed by spaces for formatting
363
+ $wordwrapped = chunk_split($towrapUA, 32, "\n $space");
364
+ return "Platform: {$this->getPlatform()} \n".
365
+ "Browser Name: {$this->getBrowser()} \n" .
366
+ "Browser Version: {$this->getVersion()} \n" .
367
+ "User Agent String: $UAline1 \n\t\t\t " .
368
+ "$wordwrapped";
369
+ }
370
+ /**
371
+ * Protected routine to calculate and determine what the browser is in use (including platform)
372
+ */
373
+ function determine() {
374
+ $this->checkPlatform();
375
+ $this->checkBrowsers();
376
+ $this->checkForAol();
377
+ }
378
+ /**
379
+ * Protected routine to determine the browser type
380
+ * @return boolean True if the browser was detected otherwise false
381
+ */
382
+ function checkBrowsers() {
383
+ return (
384
+ // Well-known, well-used
385
+ // Special Notes:
386
+ // (1) Opera must be checked before FireFox due to the odd
387
+ // user agents used in some older versions of Opera
388
+ // (2) WebTV is strapped onto Internet Explorer so we must
389
+ // check for WebTV before IE
390
+ // (3) (deprecated) Galeon is based on Firefox and needs to be
391
+ // tested before Firefox is tested
392
+ // (4) OmniWeb is based on Safari so OmniWeb check must occur
393
+ // before Safari
394
+ // (5) Netscape 9+ is based on Firefox so Netscape checks
395
+ // before FireFox are necessary
396
+ $this->checkBrowserWebTv() ||
397
+ $this->checkBrowserInternetExplorer() ||
398
+ $this->checkBrowserOpera() ||
399
+ $this->checkBrowserGaleon() ||
400
+ $this->checkBrowserNetscapeNavigator9Plus() ||
401
+ $this->checkBrowserFirefox() ||
402
+ $this->checkBrowserChrome() ||
403
+ $this->checkBrowserOmniWeb() ||
404
+
405
+ // Common mobile
406
+ $this->checkBrowserAndroid() ||
407
+ $this->checkBrowseriPad() ||
408
+ $this->checkBrowseriPod() ||
409
+ $this->checkBrowseriPhone() ||
410
+ $this->checkBrowserBlackBerry() ||
411
+ $this->checkBrowserNokia() ||
412
+
413
+ // Common bots
414
+ $this->checkBrowserGoogleBot() ||
415
+ $this->checkBrowserMSNBot() ||
416
+ $this->checkBrowserSlurp() ||
417
+
418
+ // WebKit base check (post mobile and others)
419
+ $this->checkBrowserSafari() ||
420
+
421
+ // Everyone else
422
+ $this->checkBrowserNetPositive() ||
423
+ $this->checkBrowserFirebird() ||
424
+ $this->checkBrowserKonqueror() ||
425
+ $this->checkBrowserIcab() ||
426
+ $this->checkBrowserPhoenix() ||
427
+ $this->checkBrowserAmaya() ||
428
+ $this->checkBrowserLynx() ||
429
+
430
+ $this->checkBrowserShiretoko() ||
431
+ $this->checkBrowserIceCat() ||
432
+ $this->checkBrowserW3CValidator() ||
433
+ $this->checkBrowserMozilla() /* Mozilla is such an open standard that you must check it last */
434
+ );
435
+ }
436
+
437
+ /**
438
+ * Determine if the user is using a BlackBerry (last updated 1.7)
439
+ * @return boolean True if the browser is the BlackBerry browser otherwise false
440
+ */
441
+ function checkBrowserBlackBerry() {
442
+ if( stripos($this->_agent,'blackberry') !== false ) {
443
+ $aresult = explode("/",stristr($this->_agent,"BlackBerry"));
444
+ $aversion = explode(' ',$aresult[1]);
445
+ $this->setVersion($aversion[0]);
446
+ $this->_browser_name = $this->BROWSER_BLACKBERRY;
447
+ $this->setMobile(true);
448
+ return true;
449
+ }
450
+ return false;
451
+ }
452
+
453
+ /**
454
+ * Determine if the user is using an AOL User Agent (last updated 1.7)
455
+ * @return boolean True if the browser is from AOL otherwise false
456
+ */
457
+ function checkForAol() {
458
+ $this->setAol(false);
459
+ $this->setAolVersion($this->VERSION_UNKNOWN);
460
+
461
+ if( stripos($this->_agent,'aol') !== false ) {
462
+ $aversion = explode(' ',stristr($this->_agent, 'AOL'));
463
+ $this->setAol(true);
464
+ $this->setAolVersion(preg_replace('/[^0-9\.a-z]/i', '', $aversion[1]));
465
+ return true;
466
+ }
467
+ return false;
468
+ }
469
+
470
+ /**
471
+ * Determine if the browser is the GoogleBot or not (last updated 1.7)
472
+ * @return boolean True if the browser is the GoogletBot otherwise false
473
+ */
474
+ function checkBrowserGoogleBot() {
475
+ if( stripos($this->_agent,'googlebot') !== false ) {
476
+ $aresult = explode('/',stristr($this->_agent,'googlebot'));
477
+ $aversion = explode(' ',$aresult[1]);
478
+ $this->setVersion(str_replace(';','',$aversion[0]));
479
+ $this->_browser_name = $this->BROWSER_GOOGLEBOT;
480
+ $this->setRobot(true);
481
+ return true;
482
+ }
483
+ return false;
484
+ }
485
+
486
+ /**
487
+ * Determine if the browser is the MSNBot or not (last updated 1.9)
488
+ * @return boolean True if the browser is the MSNBot otherwise false
489
+ */
490
+ function checkBrowserMSNBot() {
491
+ if( stripos($this->_agent,"msnbot") !== false ) {
492
+ $aresult = explode("/",stristr($this->_agent,"msnbot"));
493
+ $aversion = explode(" ",$aresult[1]);
494
+ $this->setVersion(str_replace(";","",$aversion[0]));
495
+ $this->_browser_name = $this->BROWSER_MSNBOT;
496
+ $this->setRobot(true);
497
+ return true;
498
+ }
499
+ return false;
500
+ }
501
+
502
+ /**
503
+ * Determine if the browser is the W3C Validator or not (last updated 1.7)
504
+ * @return boolean True if the browser is the W3C Validator otherwise false
505
+ */
506
+ function checkBrowserW3CValidator() {
507
+ if( stripos($this->_agent,'W3C-checklink') !== false ) {
508
+ $aresult = explode('/',stristr($this->_agent,'W3C-checklink'));
509
+ $aversion = explode(' ',$aresult[1]);
510
+ $this->setVersion($aversion[0]);
511
+ $this->_browser_name = $this->BROWSER_W3CVALIDATOR;
512
+ return true;
513
+ }
514
+ else if( stripos($this->_agent,'W3C_Validator') !== false ) {
515
+ // Some of the Validator versions do not delineate w/ a slash - add it back in
516
+ $ua = str_replace("W3C_Validator ", "W3C_Validator/", $this->_agent);
517
+ $aresult = explode('/',stristr($ua,'W3C_Validator'));
518
+ $aversion = explode(' ',$aresult[1]);
519
+ $this->setVersion($aversion[0]);
520
+ $this->_browser_name = $this->BROWSER_W3CVALIDATOR;
521
+ return true;
522
+ }
523
+ return false;
524
+ }
525
+
526
+ /**
527
+ * Determine if the browser is the Yahoo! Slurp Robot or not (last updated 1.7)
528
+ * @return boolean True if the browser is the Yahoo! Slurp Robot otherwise false
529
+ */
530
+ function checkBrowserSlurp() {
531
+ if( stripos($this->_agent,'slurp') !== false ) {
532
+ $aresult = explode('/',stristr($this->_agent,'Slurp'));
533
+ $aversion = explode(' ',$aresult[1]);
534
+ $this->setVersion($aversion[0]);
535
+ $this->_browser_name = $this->BROWSER_SLURP;
536
+ $this->setRobot(true);
537
+ $this->setMobile(false);
538
+ return true;
539
+ }
540
+ return false;
541
+ }
542
+
543
+ /**
544
+ * Determine if the browser is Internet Explorer or not (last updated 1.7)
545
+ * @return boolean True if the browser is Internet Explorer otherwise false
546
+ */
547
+ function checkBrowserInternetExplorer() {
548
+
549
+ // Test for v1 - v1.5 IE
550
+ if( stripos($this->_agent,'microsoft internet explorer') !== false ) {
551
+ $this->setBrowser($this->BROWSER_IE);
552
+ $this->setVersion('1.0');
553
+ $aresult = stristr($this->_agent, '/');
554
+ if( preg_match('/308|425|426|474|0b1/i', $aresult) ) {
555
+ $this->setVersion('1.5');
556
+ }
557
+ return true;
558
+ }
559
+ // Test for versions > 1.5
560
+ else if( stripos($this->_agent,'msie') !== false && stripos($this->_agent,'opera') === false ) {
561
+ // See if the browser is the odd MSN Explorer
562
+ if( stripos($this->_agent,'msnb') !== false ) {
563
+ $aresult = explode(' ',stristr(str_replace(';','; ',$this->_agent),'MSN'));
564
+ $this->setBrowser( $this->BROWSER_MSN );
565
+ $this->setVersion(str_replace(array('(',')',';'),'',$aresult[1]));
566
+ return true;
567
+ }
568
+ $aresult = explode(' ',stristr(str_replace(';','; ',$this->_agent),'msie'));
569
+ $this->setBrowser( $this->BROWSER_IE );
570
+ $this->setVersion(str_replace(array('(',')',';'),'',$aresult[1]));
571
+ return true;
572
+ }
573
+ // Test for Pocket IE
574
+ else if( stripos($this->_agent,'mspie') !== false || stripos($this->_agent,'pocket') !== false ) {
575
+ $aresult = explode(' ',stristr($this->_agent,'mspie'));
576
+ $this->setPlatform( $this->PLATFORM_WINDOWS_CE );
577
+ $this->setBrowser( $this->BROWSER_POCKET_IE );
578
+ $this->setMobile(true);
579
+
580
+ if( stripos($this->_agent,'mspie') !== false ) {
581
+ $this->setVersion($aresult[1]);
582
+ }
583
+ else {
584
+ $aversion = explode('/',$this->_agent);
585
+ $this->setVersion($aversion[1]);
586
+ }
587
+ return true;
588
+ }
589
+ return false;
590
+ }
591
+
592
+ /**
593
+ * Determine if the browser is Opera or not (last updated 1.7)
594
+ * @return boolean True if the browser is Opera otherwise false
595
+ */
596
+ function checkBrowserOpera() {
597
+ if( stripos($this->_agent,'opera mini') !== false ) {
598
+ $resultant = stristr($this->_agent, 'opera mini');
599
+ if( preg_match('/\//',$resultant) ) {
600
+ $aresult = explode('/',$resultant);
601
+ $aversion = explode(' ',$aresult[1]);
602
+ $this->setVersion($aversion[0]);
603
+ }
604
+ else {
605
+ $aversion = explode(' ',stristr($resultant,'opera mini'));
606
+ $this->setVersion($aversion[1]);
607
+ }
608
+ $this->_browser_name = $this->BROWSER_OPERA_MINI;
609
+ $this->setMobile(true);
610
+ return true;
611
+ }
612
+ else if( stripos($this->_agent,'opera') !== false ) {
613
+ $resultant = stristr($this->_agent, 'opera');
614
+ if( preg_match('/Version\/(10.*)$/',$resultant,$matches) ) {
615
+ $this->setVersion($matches[1]);
616
+ }
617
+ else if( preg_match('/\//',$resultant) ) {
618
+ $aresult = explode('/',str_replace("("," ",$resultant));
619
+ $aversion = explode(' ',$aresult[1]);
620
+ $this->setVersion($aversion[0]);
621
+ }
622
+ else {
623
+ $aversion = explode(' ',stristr($resultant,'opera'));
624
+ $this->setVersion(isset($aversion[1])?$aversion[1]:"");
625
+ }
626
+ $this->_browser_name = $this->BROWSER_OPERA;
627
+ return true;
628
+ }
629
+ return false;
630
+ }
631
+
632
+ /**
633
+ * Determine if the browser is Chrome or not (last updated 1.7)
634
+ * @return boolean True if the browser is Chrome otherwise false
635
+ */
636
+ function checkBrowserChrome() {
637
+ if( stripos($this->_agent,'Chrome') !== false ) {
638
+ $aresult = explode('/',stristr($this->_agent,'Chrome'));
639
+ $aversion = explode(' ',$aresult[1]);
640
+ $this->setVersion($aversion[0]);
641
+ $this->setBrowser($this->BROWSER_CHROME);
642
+ return true;
643
+ }
644
+ return false;
645
+ }
646
+
647
+
648
+ /**
649
+ * Determine if the browser is WebTv or not (last updated 1.7)
650
+ * @return boolean True if the browser is WebTv otherwise false
651
+ */
652
+ function checkBrowserWebTv() {
653
+ if( stripos($this->_agent,'webtv') !== false ) {
654
+ $aresult = explode('/',stristr($this->_agent,'webtv'));
655
+ $aversion = explode(' ',$aresult[1]);
656
+ $this->setVersion($aversion[0]);
657
+ $this->setBrowser($this->BROWSER_WEBTV);
658
+ return true;
659
+ }
660
+ return false;
661
+ }
662
+
663
+ /**
664
+ * Determine if the browser is NetPositive or not (last updated 1.7)
665
+ * @return boolean True if the browser is NetPositive otherwise false
666
+ */
667
+ function checkBrowserNetPositive() {
668
+ if( stripos($this->_agent,'NetPositive') !== false ) {
669
+ $aresult = explode('/',stristr($this->_agent,'NetPositive'));
670
+ $aversion = explode(' ',$aresult[1]);
671
+ $this->setVersion(str_replace(array('(',')',';'),'',$aversion[0]));
672
+ $this->setBrowser($this->BROWSER_NETPOSITIVE);
673
+ return true;
674
+ }
675
+ return false;
676
+ }
677
+
678
+ /**
679
+ * Determine if the browser is Galeon or not (last updated 1.7)
680
+ * @return boolean True if the browser is Galeon otherwise false
681
+ */
682
+ function checkBrowserGaleon() {
683
+ if( stripos($this->_agent,'galeon') !== false ) {
684
+ $aresult = explode(' ',stristr($this->_agent,'galeon'));
685
+ $aversion = explode('/',$aresult[0]);
686
+ $this->setVersion($aversion[1]);
687
+ $this->setBrowser($this->BROWSER_GALEON);
688
+ return true;
689
+ }
690
+ return false;
691
+ }
692
+
693
+ /**
694
+ * Determine if the browser is Konqueror or not (last updated 1.7)
695
+ * @return boolean True if the browser is Konqueror otherwise false
696
+ */
697
+ function checkBrowserKonqueror() {
698
+ if( stripos($this->_agent,'Konqueror') !== false ) {
699
+ $aresult = explode(' ',stristr($this->_agent,'Konqueror'));
700
+ $aversion = explode('/',$aresult[0]);
701
+ $this->setVersion($aversion[1]);
702
+ $this->setBrowser($this->BROWSER_KONQUEROR);
703
+ return true;
704
+ }
705
+ return false;
706
+ }
707
+
708
+ /**
709
+ * Determine if the browser is iCab or not (last updated 1.7)
710
+ * @return boolean True if the browser is iCab otherwise false
711
+ */
712
+ function checkBrowserIcab() {
713
+ if( stripos($this->_agent,'icab') !== false ) {
714
+ $aversion = explode(' ',stristr(str_replace('/',' ',$this->_agent),'icab'));
715
+ $this->setVersion($aversion[1]);
716
+ $this->setBrowser($this->BROWSER_ICAB);
717
+ return true;
718
+ }
719
+ return false;
720
+ }
721
+
722
+ /**
723
+ * Determine if the browser is OmniWeb or not (last updated 1.7)
724
+ * @return boolean True if the browser is OmniWeb otherwise false
725
+ */
726
+ function checkBrowserOmniWeb() {
727
+ if( stripos($this->_agent,'omniweb') !== false ) {
728
+ $aresult = explode('/',stristr($this->_agent,'omniweb'));
729
+ $aversion = explode(' ',isset($aresult[1])?$aresult[1]:"");
730
+ $this->setVersion($aversion[0]);
731
+ $this->setBrowser($this->BROWSER_OMNIWEB);
732
+ return true;
733
+ }
734
+ return false;
735
+ }
736
+
737
+ /**
738
+ * Determine if the browser is Phoenix or not (last updated 1.7)
739
+ * @return boolean True if the browser is Phoenix otherwise false
740
+ */
741
+ function checkBrowserPhoenix() {
742
+ if( stripos($this->_agent,'Phoenix') !== false ) {
743
+ $aversion = explode('/',stristr($this->_agent,'Phoenix'));
744
+ $this->setVersion($aversion[1]);
745
+ $this->setBrowser($this->BROWSER_PHOENIX);
746
+ return true;
747
+ }
748
+ return false;
749
+ }
750
+
751
+ /**
752
+ * Determine if the browser is Firebird or not (last updated 1.7)
753
+ * @return boolean True if the browser is Firebird otherwise false
754
+ */
755
+ function checkBrowserFirebird() {
756
+ if( stripos($this->_agent,'Firebird') !== false ) {
757
+ $aversion = explode('/',stristr($this->_agent,'Firebird'));
758
+ $this->setVersion($aversion[1]);
759
+ $this->setBrowser($this->BROWSER_FIREBIRD);
760
+ return true;
761
+ }
762
+ return false;
763
+ }
764
+
765
+ /**
766
+ * Determine if the browser is Netscape Navigator 9+ or not (last updated 1.7)
767
+ * NOTE: (http://browser.netscape.com/ - Official support ended on March 1st, 2008)
768
+ * @return boolean True if the browser is Netscape Navigator 9+ otherwise false
769
+ */
770
+ function checkBrowserNetscapeNavigator9Plus() {
771
+ if( stripos($this->_agent,'Firefox') !== false && preg_match('/Navigator\/([^ ]*)/i',$this->_agent,$matches) ) {
772
+ $this->setVersion($matches[1]);
773
+ $this->setBrowser($this->BROWSER_NETSCAPE_NAVIGATOR);
774
+ return true;
775
+ }
776
+ else if( stripos($this->_agent,'Firefox') === false && preg_match('/Netscape6?\/([^ ]*)/i',$this->_agent,$matches) ) {
777
+ $this->setVersion($matches[1]);
778
+ $this->setBrowser($this->BROWSER_NETSCAPE_NAVIGATOR);
779
+ return true;
780
+ }
781
+ return false;
782
+ }
783
+
784
+ /**
785
+ * Determine if the browser is Shiretoko or not (https://wiki.mozilla.org/Projects/shiretoko) (last updated 1.7)
786
+ * @return boolean True if the browser is Shiretoko otherwise false
787
+ */
788
+ function checkBrowserShiretoko() {
789
+ if( stripos($this->_agent,'Mozilla') !== false && preg_match('/Shiretoko\/([^ ]*)/i',$this->_agent,$matches) ) {
790
+ $this->setVersion($matches[1]);
791
+ $this->setBrowser($this->BROWSER_SHIRETOKO);
792
+ return true;
793
+ }
794
+ return false;
795
+ }
796
+
797
+ /**
798
+ * Determine if the browser is Ice Cat or not (http://en.wikipedia.org/wiki/GNU_IceCat) (last updated 1.7)
799
+ * @return boolean True if the browser is Ice Cat otherwise false
800
+ */
801
+ function checkBrowserIceCat() {
802
+ if( stripos($this->_agent,'Mozilla') !== false && preg_match('/IceCat\/([^ ]*)/i',$this->_agent,$matches) ) {
803
+ $this->setVersion($matches[1]);
804
+ $this->setBrowser($this->BROWSER_ICECAT);
805
+ return true;
806
+ }
807
+ return false;
808
+ }
809
+
810
+ /**
811
+ * Determine if the browser is Nokia or not (last updated 1.7)
812
+ * @return boolean True if the browser is Nokia otherwise false
813
+ */
814
+ function checkBrowserNokia() {
815
+ if( preg_match("/Nokia([^\/]+)\/([^ SP]+)/i",$this->_agent,$matches) ) {
816
+ $this->setVersion($matches[2]);
817
+ if( stripos($this->_agent,'Series60') !== false || strpos($this->_agent,'S60') !== false ) {
818
+ $this->setBrowser($this->BROWSER_NOKIA_S60);
819
+ }
820
+ else {
821
+ $this->setBrowser( $this->BROWSER_NOKIA );
822
+ }
823
+ $this->setMobile(true);
824
+ return true;
825
+ }
826
+ return false;
827
+ }
828
+
829
+ /**
830
+ * Determine if the browser is Firefox or not (last updated 1.7)
831
+ * @return boolean True if the browser is Firefox otherwise false
832
+ */
833
+ function checkBrowserFirefox() {
834
+ if( stripos($this->_agent,'safari') === false ) {
835
+ if( preg_match("/Firefox[\/ \(]([^ ;\)]+)/i",$this->_agent,$matches) ) {
836
+ $this->setVersion($matches[1]);
837
+ $this->setBrowser($this->BROWSER_FIREFOX);
838
+ return true;
839
+ }
840
+ else if( preg_match("/Firefox$/i",$this->_agent,$matches) ) {
841
+ $this->setVersion("");
842
+ $this->setBrowser($this->BROWSER_FIREFOX);
843
+ return true;
844
+ }
845
+ }
846
+ return false;
847
+ }
848
+
849
+ /**
850
+ * Determine if the browser is Firefox or not (last updated 1.7)
851
+ * @return boolean True if the browser is Firefox otherwise false
852
+ */
853
+ function checkBrowserIceweasel() {
854
+ if( stripos($this->_agent,'Iceweasel') !== false ) {
855
+ $aresult = explode('/',stristr($this->_agent,'Iceweasel'));
856
+ $aversion = explode(' ',$aresult[1]);
857
+ $this->setVersion($aversion[0]);
858
+ $this->setBrowser($this->BROWSER_ICEWEASEL);
859
+ return true;
860
+ }
861
+ return false;
862
+ }
863
+ /**
864
+ * Determine if the browser is Mozilla or not (last updated 1.7)
865
+ * @return boolean True if the browser is Mozilla otherwise false
866
+ */
867
+ function checkBrowserMozilla() {
868
+ if( stripos($this->_agent,'mozilla') !== false && preg_match('/rv:[0-9].[0-9][a-b]?/i',$this->_agent) && stripos($this->_agent,'netscape') === false) {
869
+ $aversion = explode(' ',stristr($this->_agent,'rv:'));
870
+ preg_match('/rv:[0-9].[0-9][a-b]?/i',$this->_agent,$aversion);
871
+ $this->setVersion(str_replace('rv:','',$aversion[0]));
872
+ $this->setBrowser($this->BROWSER_MOZILLA);
873
+ return true;
874
+ }
875
+ else if( stripos($this->_agent,'mozilla') !== false && preg_match('/rv:[0-9]\.[0-9]/i',$this->_agent) && stripos($this->_agent,'netscape') === false ) {
876
+ $aversion = explode('',stristr($this->_agent,'rv:'));
877
+ $this->setVersion(str_replace('rv:','',$aversion[0]));
878
+ $this->setBrowser($this->BROWSER_MOZILLA);
879
+ return true;
880
+ }
881
+ else if( stripos($this->_agent,'mozilla') !== false && preg_match('/mozilla\/([^ ]*)/i',$this->_agent,$matches) && stripos($this->_agent,'netscape') === false ) {
882
+ $this->setVersion($matches[1]);
883
+ $this->setBrowser($this->BROWSER_MOZILLA);
884
+ return true;
885
+ }
886
+ return false;
887
+ }
888
+
889
+ /**
890
+ * Determine if the browser is Lynx or not (last updated 1.7)
891
+ * @return boolean True if the browser is Lynx otherwise false
892
+ */
893
+ function checkBrowserLynx() {
894
+ if( stripos($this->_agent,'lynx') !== false ) {
895
+ $aresult = explode('/',stristr($this->_agent,'Lynx'));
896
+ $aversion = explode(' ',(isset($aresult[1])?$aresult[1]:""));
897
+ $this->setVersion($aversion[0]);
898
+ $this->setBrowser($this->BROWSER_LYNX);
899
+ return true;
900
+ }
901
+ return false;
902
+ }
903
+
904
+ /**
905
+ * Determine if the browser is Amaya or not (last updated 1.7)
906
+ * @return boolean True if the browser is Amaya otherwise false
907
+ */
908
+ function checkBrowserAmaya() {
909
+ if( stripos($this->_agent,'amaya') !== false ) {
910
+ $aresult = explode('/',stristr($this->_agent,'Amaya'));
911
+ $aversion = explode(' ',$aresult[1]);
912
+ $this->setVersion($aversion[0]);
913
+ $this->setBrowser($this->BROWSER_AMAYA);
914
+ return true;
915
+ }
916
+ return false;
917
+ }
918
+
919
+ /**
920
+ * Determine if the browser is Safari or not (last updated 1.7)
921
+ * @return boolean True if the browser is Safari otherwise false
922
+ */
923
+ function checkBrowserSafari() {
924
+ if( stripos($this->_agent,'Safari') !== false && stripos($this->_agent,'iPhone') === false && stripos($this->_agent,'iPod') === false ) {
925
+ $aresult = explode('/',stristr($this->_agent,'Version'));
926
+ if( isset($aresult[1]) ) {
927
+ $aversion = explode(' ',$aresult[1]);
928
+ $this->setVersion($aversion[0]);
929
+ }
930
+ else {
931
+ $this->setVersion($this->VERSION_UNKNOWN);
932
+ }
933
+ $this->setBrowser($this->BROWSER_SAFARI);
934
+ return true;
935
+ }
936
+ return false;
937
+ }
938
+
939
+ /**
940
+ * Determine if the browser is iPhone or not (last updated 1.7)
941
+ * @return boolean True if the browser is iPhone otherwise false
942
+ */
943
+ function checkBrowseriPhone() {
944
+ if( stripos($this->_agent,'iPhone') !== false ) {
945
+ $aresult = explode('/',stristr($this->_agent,'Version'));
946
+ if( isset($aresult[1]) ) {
947
+ $aversion = explode(' ',$aresult[1]);
948
+ $this->setVersion($aversion[0]);
949
+ }
950
+ else {
951
+ $this->setVersion($this->VERSION_UNKNOWN);
952
+ }
953
+ $this->setMobile(true);
954
+ $this->setBrowser($this->BROWSER_IPHONE);
955
+ return true;
956
+ }
957
+ return false;
958
+ }
959
+
960
+ /**
961
+ * Determine if the browser is iPod or not (last updated 1.7)
962
+ * @return boolean True if the browser is iPod otherwise false
963
+ */
964
+ function checkBrowseriPad() {
965
+ if( stripos($this->_agent,'iPad') !== false ) {
966
+ $aresult = explode('/',stristr($this->_agent,'Version'));
967
+ if( isset($aresult[1]) ) {
968
+ $aversion = explode(' ',$aresult[1]);
969
+ $this->setVersion($aversion[0]);
970
+ }
971
+ else {
972
+ $this->setVersion($this->VERSION_UNKNOWN);
973
+ }
974
+ $this->setMobile(true);
975
+ $this->setBrowser($this->BROWSER_IPAD);
976
+ return true;
977
+ }
978
+ return false;
979
+ }
980
+
981
+ /**
982
+ * Determine if the browser is iPod or not (last updated 1.7)
983
+ * @return boolean True if the browser is iPod otherwise false
984
+ */
985
+ function checkBrowseriPod() {
986
+ if( stripos($this->_agent,'iPod') !== false ) {
987
+ $aresult = explode('/',stristr($this->_agent,'Version'));
988
+ if( isset($aresult[1]) ) {
989
+ $aversion = explode(' ',$aresult[1]);
990
+ $this->setVersion($aversion[0]);
991
+ }
992
+ else {
993
+ $this->setVersion($this->VERSION_UNKNOWN);
994
+ }
995
+ $this->setMobile(true);
996
+ $this->setBrowser($this->BROWSER_IPOD);
997
+ return true;
998
+ }
999
+ return false;
1000
+ }
1001
+
1002
+ /**
1003
+ * Determine if the browser is Android or not (last updated 1.7)
1004
+ * @return boolean True if the browser is Android otherwise false
1005
+ */
1006
+ function checkBrowserAndroid() {
1007
+ if( stripos($this->_agent,'Android') !== false ) {
1008
+ $aresult = explode(' ',stristr($this->_agent,'Android'));
1009
+ if( isset($aresult[1]) ) {
1010
+ $aversion = explode(' ',$aresult[1]);
1011
+ $this->setVersion($aversion[0]);
1012
+ }
1013
+ else {
1014
+ $this->setVersion($this->VERSION_UNKNOWN);
1015
+ }
1016
+ $this->setMobile(true);
1017
+ $this->setBrowser($this->BROWSER_ANDROID);
1018
+ return true;
1019
+ }
1020
+ return false;
1021
+ }
1022
+
1023
+ /**
1024
+ * Determine the user's platform (last updated 1.7)
1025
+ */
1026
+ function checkPlatform() {
1027
+ if( stripos($this->_agent, 'windows') !== false ) {
1028
+ $this->_platform = $this->PLATFORM_WINDOWS;
1029
+ }
1030
+ else if( stripos($this->_agent, 'iPad') !== false ) {
1031
+ $this->_platform = $this->PLATFORM_IPAD;
1032
+ }
1033
+ else if( stripos($this->_agent, 'iPod') !== false ) {
1034
+ $this->_platform = $this->PLATFORM_IPOD;
1035
+ }
1036
+ else if( stripos($this->_agent, 'iPhone') !== false ) {
1037
+ $this->_platform = $this->PLATFORM_IPHONE;
1038
+ }
1039
+ elseif( stripos($this->_agent, 'mac') !== false ) {
1040
+ $this->_platform = $this->PLATFORM_APPLE;
1041
+ }
1042
+ elseif( stripos($this->_agent, 'android') !== false ) {
1043
+ $this->_platform = $this->PLATFORM_ANDROID;
1044
+ }
1045
+ elseif( stripos($this->_agent, 'linux') !== false ) {
1046
+ $this->_platform = $this->PLATFORM_LINUX;
1047
+ }
1048
+ else if( stripos($this->_agent, 'Nokia') !== false ) {
1049
+ $this->_platform = $this->PLATFORM_NOKIA;
1050
+ }
1051
+ else if( stripos($this->_agent, 'BlackBerry') !== false ) {
1052
+ $this->_platform = $this->PLATFORM_BLACKBERRY;
1053
+ }
1054
+ elseif( stripos($this->_agent,'FreeBSD') !== false ) {
1055
+ $this->_platform = $this->PLATFORM_FREEBSD;
1056
+ }
1057
+ elseif( stripos($this->_agent,'OpenBSD') !== false ) {
1058
+ $this->_platform = $this->PLATFORM_OPENBSD;
1059
+ }
1060
+ elseif( stripos($this->_agent,'NetBSD') !== false ) {
1061
+ $this->_platform = $this->PLATFORM_NETBSD;
1062
+ }
1063
+ elseif( stripos($this->_agent, 'OpenSolaris') !== false ) {
1064
+ $this->_platform = $this->PLATFORM_OPENSOLARIS;
1065
+ }
1066
+ elseif( stripos($this->_agent, 'SunOS') !== false ) {
1067
+ $this->_platform = $this->PLATFORM_SUNOS;
1068
+ }
1069
+ elseif( stripos($this->_agent, 'OS\/2') !== false ) {
1070
+ $this->_platform = $this->PLATFORM_OS2;
1071
+ }
1072
+ elseif( stripos($this->_agent, 'BeOS') !== false ) {
1073
+ $this->_platform = $this->PLATFORM_BEOS;
1074
+ }
1075
+ elseif( stripos($this->_agent, 'win') !== false ) {
1076
+ $this->_platform = $this->PLATFORM_WINDOWS;
1077
+ }
1078
+
1079
+ }
1080
+ }
1081
+
1082
+ ?>
includes/misc-functions.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WPRSS Let To Num
4
+ *
5
+ * Does Size Conversions
6
+ *
7
+ * @since 3.1
8
+ * @author Chris Christoff
9
+ * @return $ret
10
+ */
11
+ function wprss_let_to_num( $v ) {
12
+ $l = substr( $v, -1 );
13
+ $ret = substr( $v, 0, -1 );
14
+
15
+ switch ( strtoupper( $l ) ) {
16
+ case 'P':
17
+ $ret *= 1024;
18
+ case 'T':
19
+ $ret *= 1024;
20
+ case 'G':
21
+ $ret *= 1024;
22
+ case 'M':
23
+ $ret *= 1024;
24
+ case 'K':
25
+ $ret *= 1024;
26
+ break;
27
+ }
28
+
29
+ return $ret;
30
+ }
31
+
32
+
33
+
34
+
35
+ /**
36
+ * An enhanced version of WP's media_sideload_image function.
37
+ *
38
+ * If media_sideload_image fails, the file is downloaded manually
39
+ * as an image, inserted as an attachment, and attached to the post.
40
+ *
41
+ * @since 3.5.1
42
+ */
43
+ function wprss_media_sideload_image( $file, $post_id, $desc = null ) {
44
+ try {
45
+
46
+ if ( ! empty( $file ) ) {
47
+
48
+ // Download file to temp location
49
+ $tmp = download_url( $file );
50
+
51
+ // Set variables for storage
52
+ // fix file filename for query strings
53
+ preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches );
54
+
55
+ if ( count( $matches ) > 0 ) {
56
+ $file_array['name'] = basename( $matches[0] );
57
+ }
58
+ else {
59
+ preg_match( '/[\/\?\=\&]([^\/\?\=\&]*)[\?]*$/i', $file, $matches2 );
60
+ if ( count( $matches2 ) > 1 ) {
61
+ $file_array['name'] = $matches2[1] . '.png';
62
+ } else {
63
+ @unlink( $tmp );
64
+ return "<img src='$file' alt='' />";
65
+ }
66
+ }
67
+ $file_array['tmp_name'] = $tmp;
68
+
69
+ // If error storing temporarily, unlink
70
+ if ( is_wp_error( $tmp ) ) {
71
+ @unlink( $file_array['tmp_name'] );
72
+ $file_array['tmp_name'] = '';
73
+ }
74
+
75
+ // do the validation and storage stuff
76
+ $id = media_handle_sideload( $file_array, $post_id, $desc );
77
+ // If error storing permanently, unlink
78
+ if ( is_wp_error($id) ) {
79
+ @unlink( $file_array['tmp_name'] );
80
+ return "<img src='$file' alt='' />";
81
+ }
82
+
83
+ $src = wp_get_attachment_url( $id );
84
+ }
85
+
86
+ // Finally check to make sure the file has been saved, then return the html
87
+ if ( ! empty( $src ) ) {
88
+ $alt = isset( $desc )? esc_attr($desc) : '';
89
+ $html = "<img src='$src' alt='$alt' />";
90
+ return $html;
91
+ }
92
+
93
+ }
94
+ catch( Exception $e ) {
95
+ return "<img src='$file' alt='' />";
96
+ }
97
+ }
includes/opml-importer.php ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Define the WPRSS OPML Importer to set up the Import OPML Page
5
+ * and parse uploaded OPML files and import them into WPRSS'
6
+ * custom post types.
7
+ *
8
+ * @since 3.3
9
+ * @package WPRSSAggregator
10
+ */
11
+
12
+
13
+
14
+ /*
15
+ * Check if the WP_Importer Class is already loaded.
16
+ * If not, load it.
17
+ */
18
+ if ( !class_exists( 'WP_Importer' ) ) {
19
+ $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php';
20
+ if ( file_exists( $class_wp_importer ) )
21
+ require $class_wp_importer;
22
+ }
23
+
24
+ /**
25
+ * WPRSS_OPML_Importer Class handles the OPML Import Page and
26
+ * OPML file upload. It also constructs a WPRSS_OPML object
27
+ * for the uploaded file, which parses the file, and then
28
+ * imports it into WPRSS' custom post types.
29
+ *
30
+ * @since 3.3
31
+ */
32
+ class WPRSS_OPML_Importer extends WP_Importer {
33
+
34
+ /**
35
+ * The static Singleton Instance of the importer
36
+ */
37
+ public static $singleton;
38
+
39
+ /**
40
+ * The ID of the uploaded file to import
41
+ */
42
+ private $id;
43
+
44
+
45
+ /**
46
+ * Constructor: Prepares the Importer
47
+ */
48
+ public function __contruct() {
49
+ parent::__contruct();
50
+ }
51
+
52
+
53
+
54
+ /**
55
+ * Shows The Import Page and import form for step 1.
56
+ * Calls the parsing and importing function for step 2.
57
+ *
58
+ * @since 3.3
59
+ * @return void
60
+ */
61
+ public function opml_import() {
62
+ // Show the Icon and Title
63
+ echo '<div class="wrap">';
64
+ screen_icon();
65
+ echo '<h2>Import OPML</h2>';
66
+
67
+ // Get the current step from URL query string
68
+ $step = empty( $_GET['step'] ) ? 0 : (int) $_GET['step'];
69
+
70
+ // Check the current step
71
+ switch ( $step ) {
72
+ default :
73
+ case 0 :
74
+ // Show the Import Message and the import upload form
75
+ echo '<p>' . __( 'Howdy! Import your feeds here from an OPML (.xml) export file.', 'wprss' ) . '</p>';
76
+ echo '<p>' . __( "Click the button below, choose your file, and click 'Upload'.", 'wprss' ) . '</p>';
77
+ echo '<p>' . __( 'We will take care of the rest.', 'wprss' ) . '</p>';
78
+
79
+ // Show an import upload form that submits to the same page, with GET parameter step=1
80
+ wp_import_upload_form( 'admin.php?import=wprss_opml_importer&amp;step=1' );
81
+ break;
82
+
83
+ case 1:
84
+ // Check referer
85
+ check_admin_referer( 'import-upload' );
86
+ // If the handle_upload function returns true
87
+ if ( $this->handle_upload() ) {
88
+ // Get the uploaded file
89
+ $file = get_attached_file( $this->id );
90
+ set_time_limit(0);
91
+ // Parse the File and Import the feeds
92
+ $this->parse_and_import( $file );
93
+ }
94
+ break;
95
+ }
96
+
97
+ echo '</div>';
98
+ }
99
+
100
+
101
+
102
+ private function handle_upload() {
103
+ // Get the upload file
104
+ $file = wp_import_handle_upload();
105
+
106
+ // If the 'error' property is set, show the error message and return FALSE
107
+ if ( isset( $file['error'] ) ) {
108
+ echo '<p><strong>' . __( 'Sorry, an error has been encountered.', 'wprss' ) . '</strong><br />';
109
+ echo esc_html( $file['error'] ) . '</p>';
110
+ return false;
111
+ // If the file does not exist, then show the error message and return FALSE
112
+ } else if ( ! file_exists( $file['file'] ) ) {
113
+ echo '<p><strong>' . __( 'Sorry, it seems your uploaded file has been misplaced!', 'wprss' ) . '</strong><br />';
114
+ echo __( 'The uploaded file could not be found at ', 'wprss') . '<code>' . esc_html( $file['file'] ) . '</code>';
115
+ echo __( 'It is likely that this was caused by a permissions problem.' , 'wprss' );
116
+ echo '</p>';
117
+ return false;
118
+ }
119
+
120
+
121
+ $this->id = (int) $file['id'];
122
+ return true;
123
+ }
124
+
125
+
126
+ /**
127
+ * Imports the give <outline> OPML element as a wprss_feed
128
+ *
129
+ * @since 3.3
130
+ * @param $outline The outline OPML element
131
+ */
132
+ private function import_opml_feed( $outline ) {
133
+ // IF the necassary fields are not present in the element
134
+ if ( !isset( $outline['title'] ) && !isset( $outline['xmlUrl'] ) ) {
135
+ // Check if the element is an array
136
+ if ( is_array( $outline ) ) {
137
+ // Treat it as an array of sub <outline> elements
138
+ $inserted_ids = array();
139
+ // Insert all sub outline elements
140
+ foreach ( $outline as $key => $sub_outline ) {
141
+ $inserted_ids[] = $this->import_opml_feed( $sub_outline );
142
+ }
143
+ // Return the inserted IDs
144
+ return $inserted_ids;
145
+ }
146
+ // IF not an array, return NULL
147
+ else return NULL;
148
+ }
149
+
150
+ // Create an associative array, with the feed's properties
151
+ $feed = array(
152
+ 'post_title' => $outline['title'],
153
+ 'post_content' => '',
154
+ 'post_status' => 'publish',
155
+ 'post_type' => 'wprss_feed'
156
+ );
157
+ // Insert the post into the database and store the inserted ID
158
+ $inserted_id = wp_insert_post( $feed );
159
+ // Update the post's meta
160
+ update_post_meta( $inserted_id, 'wprss_url', $outline['xmlUrl'] );
161
+ // Return inserted ID
162
+ return $inserted_id;
163
+ }
164
+
165
+
166
+ /**
167
+ * Attempts to parse the given file as an OPML construct, and
168
+ * import each found feed.
169
+ *
170
+ * @since 3.3
171
+ * @param file The OPML file to parse and import
172
+ * @return void
173
+ * @todo Use the parsed $opml object to import the feeds AND remove var_dump
174
+ */
175
+ private function parse_and_import( $file ) {
176
+ try {
177
+ $opml = new WPRSS_OPML( $file );
178
+
179
+ // Show Success Message
180
+ echo '<h3>Feeds were imported successfully!</h3>';
181
+
182
+ // Show imported feeds
183
+ ?>
184
+ <table class="widefat">
185
+ <thead>
186
+ <tr>
187
+ <th>ID</th>
188
+ <th>Title</th>
189
+ <th>URL</th>
190
+ </tr>
191
+ </thead>
192
+
193
+ <tbody>
194
+ <?php
195
+ foreach ( $opml->body as $opml_feed ) :
196
+ $inserted_ids = $this->import_opml_feed( $opml_feed );
197
+ if ( !is_array( $inserted_ids ) ) {
198
+ $inserted_ids = array( $inserted_ids );
199
+ }
200
+ foreach ( $inserted_ids as $inserted_id ) :
201
+ if ( $inserted_id !== NULL ) :
202
+ $imported_feed = get_post( $inserted_id, 'ARRAY_A' );
203
+ ?>
204
+
205
+ <tr>
206
+ <td><?php echo $inserted_id; ?></td>
207
+ <td><?php echo $imported_feed['post_title']; ?> </td>
208
+ <td><?php echo get_post_meta( $inserted_id, 'wprss_url', TRUE ); ?></td>
209
+ </tr>
210
+
211
+ <?php endif; ?>
212
+ <?php endforeach; ?>
213
+ <?php endforeach; ?>
214
+ </tbody>
215
+
216
+ <tfoot>
217
+ <tr>
218
+ <th>ID</th>
219
+ <th>Title</th>
220
+ <th>URL</th>
221
+ </tr>
222
+ </tfoot>
223
+
224
+ </table>
225
+ <?php
226
+
227
+ } catch (Exception $e) {
228
+ // Show Error Message
229
+ echo '<div class="error"><p>' . $e->getMessage() . '</p></div>';
230
+ }
231
+ }
232
+
233
+ }
234
+
235
+
236
+ /* Initialize the Singleton Instance of the Importer */
237
+ WPRSS_OPML_Importer::$singleton = new WPRSS_OPML_Importer();
238
+
239
+
240
+
241
+ add_action( 'admin_init', 'wprss_opml_register_import' );
242
+ /**
243
+ * Initializes and registers the OPML Importer
244
+ * @since 3.3
245
+ */
246
+ function wprss_opml_register_import() {
247
+
248
+ register_importer(
249
+ 'wprss_opml_importer',
250
+ 'WP RSS OPML',
251
+ 'Import Feeds from an OPML file into WP RSS Aggregator',
252
+ array( WPRSS_OPML_Importer::$singleton ,'opml_import' )
253
+ );
254
+
255
+ }
256
+
257
+
258
+ ?>
includes/roles-capabilities.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Contains all roles and capabilities functions
5
+ *
6
+ * @package WPRSSAggregator
7
+ */
8
+
9
+
10
+ add_action('init', 'wprss_add_caps');
11
+ /**
12
+ * Add feed aggregator-specific capabilities
13
+ *
14
+ * @since 3.3
15
+ */
16
+ function wprss_add_caps() {
17
+ global $wp_roles;
18
+
19
+ if ( class_exists('WP_Roles') )
20
+ if ( ! isset( $wp_roles ) )
21
+ $wp_roles = new WP_Roles();
22
+
23
+ if ( is_object( $wp_roles ) ) {
24
+
25
+ $wp_roles->add_cap( 'administrator', 'manage_feed_settings' );
26
+ $wp_roles->add_cap( 'editor', 'manage_feed_settings' );
27
+
28
+ // Add the main post type capabilities
29
+ $capabilities = wprss_get_core_caps();
30
+ foreach ( $capabilities as $cap_group ) {
31
+ foreach ( $cap_group as $cap ) {
32
+ $wp_roles->add_cap( 'administrator', $cap );
33
+ $wp_roles->add_cap( 'editor', $cap );
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+
40
+ /**
41
+ * Gets the core post type capabilties
42
+ *
43
+ * @since 3.3
44
+ */
45
+ function wprss_get_core_caps() {
46
+ $capabilities = array();
47
+
48
+ $capability_types = array( 'feed', 'feed_source' );
49
+
50
+ foreach ( $capability_types as $capability_type ) {
51
+ $capabilities[ $capability_type ] = array(
52
+ // Post type
53
+ "edit_{$capability_type}",
54
+ "read_{$capability_type}",
55
+ "delete_{$capability_type}",
56
+ "edit_{$capability_type}s",
57
+ "edit_others_{$capability_type}s",
58
+ "publish_{$capability_type}s",
59
+ "read_private_{$capability_type}s",
60
+ "delete_{$capability_type}s",
61
+ "delete_private_{$capability_type}s",
62
+ "delete_published_{$capability_type}s",
63
+ "delete_others_{$capability_type}s",
64
+ "edit_private_{$capability_type}s",
65
+ "edit_published_{$capability_type}s",
66
+
67
+ // Terms
68
+ "manage_{$capability_type}_terms",
69
+ "edit_{$capability_type}_terms",
70
+ "delete_{$capability_type}_terms",
71
+ "assign_{$capability_type}_terms"
72
+ );
73
+ }
74
+
75
+ return $capabilities;
76
+ }
77
+
78
+
79
+ /**
80
+ * Remove core post type capabilities (called on uninstall)
81
+ *
82
+ * @since 3.3
83
+ * @return void
84
+ */
85
+ function wprss_remove_caps() {
86
+ if ( class_exists( 'WP_Roles' ) )
87
+ if ( ! isset( $wp_roles ) )
88
+ $wp_roles = new WP_Roles();
89
+
90
+ if ( is_object( $wp_roles ) ) {
91
+
92
+ /** Site Administrator Capabilities */
93
+ $wp_roles->remove_cap( 'administrator', 'manage_feed_settings' );
94
+ /** Editor Capabilities */
95
+ $wp_roles->remove_cap( 'editor', 'manage_feed_settings' );
96
+
97
+ /** Remove the Main Post Type Capabilities */
98
+ $capabilities = $this->get_core_caps();
99
+
100
+ foreach ( $capabilities as $cap_group ) {
101
+ foreach ( $cap_group as $cap ) {
102
+ $wp_roles->remove_cap( 'administrator', $cap );
103
+ $wp_roles->remove_cap( 'editor', $cap );
104
+ }
105
+ }
106
+ }
107
+ }
includes/scripts.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Scripts
4
+ *
5
+ * @package WPRSSAggregator
6
+ */
7
+
8
+
9
+ add_action( 'admin_enqueue_scripts', 'wprss_admin_scripts_styles' );
10
+ /**
11
+ * Insert required scripts, styles and filters on the admin side
12
+ *
13
+ * @since 2.0
14
+ */
15
+ function wprss_admin_scripts_styles() {
16
+
17
+ // Only load scripts if we are on this plugin's options or settings pages (admin)
18
+ if ( isset( $_GET['page'] ) && ( $_GET['page'] == 'wprss-aggregator' || $_GET['page'] == 'wprss-aggregator-settings'
19
+ || $_GET['page'] == 'wprss-import-export-settings' || $_GET['page'] == 'wprss-debugging' ) ) {
20
+ wp_enqueue_style( 'wprss-styles', WPRSS_CSS . 'admin-styles.css' );
21
+ }
22
+
23
+ $screen = get_current_screen();
24
+
25
+ wp_enqueue_script( 'wprss-admin-addon-ajax', WPRSS_JS .'admin-addon-ajax.js', array('jquery') );
26
+ wp_enqueue_style( 'wprss-admin-editor-styles', WPRSS_CSS . 'admin-editor.css' );
27
+ wp_enqueue_style( 'wprss-admin-tracking-styles', WPRSS_CSS . 'admin-tracking-styles.css' );
28
+
29
+ if ( ( 'post' === $screen->base || 'edit' === $screen->base || 'wprss-debugging' === $screen->base ) &&
30
+ ( 'wprss_feed' === $screen->post_type || 'wprss_feed_item' === $screen->post_type ) || ( isset( $_GET['page'] ) &&
31
+ ( $_GET['page'] == 'wprss-aggregator-settings' ) ) ) {
32
+ wp_enqueue_style( 'wprss-admin-styles', WPRSS_CSS . 'admin-styles.css' );
33
+ wp_enqueue_style( 'wprss-fa', WPRSS_CSS . 'font-awesome.min.css' );
34
+ wp_enqueue_script( 'wprss-admin-custom', WPRSS_JS .'admin-custom.js', array('jquery','jquery-ui-datepicker','jquery-ui-slider') );
35
+ wp_enqueue_script( 'jquery-ui-timepicker-addon', WPRSS_JS .'jquery-ui-timepicker-addon.js', array('jquery','jquery-ui-datepicker') );
36
+ wp_enqueue_style( 'jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' );
37
+ if ( 'post' === $screen->base && 'wprss_feed' === $screen->post_type ) {
38
+ // Change text on post screen from 'Enter title here' to 'Enter feed name here'
39
+ add_filter( 'enter_title_here', 'wprss_change_title_text' );
40
+ }
41
+ }
42
+
43
+ else if ( 'dashboard_page_wprss-welcome' === $screen->base ) {
44
+ wp_enqueue_style( 'wprss-admin-styles', WPRSS_CSS . 'admin-styles.css' );
45
+ }
46
+
47
+ if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
48
+ wp_enqueue_style( 'wprss-admin-styles', WPRSS_CSS . 'admin-3.8.css' );
49
+ }
50
+
51
+ do_action( 'wprss_admin_scripts_styles' );
52
+ } // end wprss_admin_scripts_styles
53
+
54
+
55
+ add_action( 'wp_enqueue_scripts', 'wprss_load_scripts' );
56
+ /**
57
+ * Enqueues the required scripts.
58
+ *
59
+ * @since 3.0
60
+ */
61
+ function wprss_load_scripts() {
62
+ /* wp_enqueue_script( 'jquery.colorbox-min', WPRSS_JS . 'jquery.colorbox-min.js', array( 'jquery' ) );
63
+ wp_enqueue_script( 'custom', WPRSS_JS . 'custom.js', array( 'jquery', 'jquery.colorbox-min' ) ); */
64
+ do_action( 'wprss_register_scripts' );
65
+ } // end wprss_head_scripts_styles
66
+
67
+
68
+ /**
69
+ * Returns the path to the WPRSS templates directory
70
+ *
71
+ * @since 3.0
72
+ * @return string
73
+ */
74
+ function wprss_get_templates_dir() {
75
+ return WPRSS_DIR . 'templates';
76
+ }
77
+
78
+
79
+ /**
80
+ * Returns the URL to the WPRSS templates directory
81
+ *
82
+ * @since 3.0
83
+ * @return string
84
+ */
85
+ function wprss_get_templates_uri() {
86
+ return WPRSS_URI . 'templates';
87
+ }
88
+
89
+
90
+ add_action( 'wp_enqueue_scripts', 'wprss_register_styles' );
91
+ /**
92
+ * Register front end CSS styling files
93
+ * Inspiration from Easy Digital Downloads
94
+ *
95
+ * @since 3.0
96
+ */
97
+ function wprss_register_styles() {
98
+
99
+ /* $general_settings = get_option( 'wprss_settings_general' );
100
+
101
+ if( $general_settings['styles_disable'] == 1 )
102
+ return;
103
+ wp_enqueue_style( 'colorbox', WPRSS_CSS . 'colorbox.css', array(), '1.4.1' );
104
+ wp_enqueue_style( 'styles', WPRSS_CSS . 'styles.css', array(), '' );
105
+
106
+ /* If using DISABLE CSS option:
107
+ global $edd_options;
108
+
109
+ if( isset( $edd_options['disable_styles'] ) )
110
+ return;
111
+
112
+ */
113
+
114
+ /* $file = 'wprss.css';
115
+
116
+ // Check child theme first
117
+ if ( file_exists( trailingslashit( get_stylesheet_directory() ) . 'wprss_templates/' . $file ) ) {
118
+ $url = trailingslashit( get_stylesheet_directory_uri() ) . 'wprss_templates/' . $file;
119
+
120
+ // Check parent theme next
121
+ } elseif ( file_exists( trailingslashit( get_template_directory() ) . 'wprss_templates/' . $file ) ) {
122
+ $url = trailingslashit( get_template_directory_uri() ) . 'wprss_templates/' . $file;
123
+
124
+ // Check theme compatibility last
125
+ } elseif ( file_exists( trailingslashit( wprss_get_templates_dir() ) . $file ) ) {
126
+ $url = trailingslashit( wprss_get_templates_uri() ) . $file;
127
+ }
128
+
129
+ wp_enqueue_style( 'wprss-styles', $url, WPRSS_VERSION );*/
130
+ }
includes/secure-reset.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Contains the secure reset functionality.
4
+ *
5
+ * @package WP PRSS Aggregator
6
+ */
7
+
8
+
9
+ add_action( 'plugins_loaded', 'wprss_check_secure_reset' );
10
+ /**
11
+ *
12
+ *
13
+ * @since 3.7.1
14
+ */
15
+ function wprss_check_secure_reset() {
16
+ // Get the GET parameters
17
+ $wprss_action = ( isset( $_GET['wprss_action'] ) )? $_GET['wprss_action'] : NULL;
18
+ $wprss_security_code = ( isset( $_GET['wprss_security_code'] ) )? $_GET['wprss_security_code'] : NULL;
19
+
20
+ // If at least one of them is not specified, exit
21
+ if ( $wprss_action === NULL || $wprss_security_code === NULL ) {
22
+ return;
23
+ }
24
+
25
+ // Get the code from the Database
26
+ $DB_CODE = get_option( 'wprss_secure_reset_code', '' );
27
+
28
+ // Check if the code is empty
29
+ if ( $DB_CODE === '' || strlen( $DB_CODE ) === 0 ) {
30
+ return;
31
+ }
32
+
33
+ // Check if the code in $_GET matches the one in the Database
34
+ if ( $DB_CODE !== $wprss_security_code ) {
35
+ // If not exit
36
+ return;
37
+ }
38
+
39
+ // Do a reset of settings
40
+ if ( $wprss_action === 'reset' || $wprss_action === 'reset_and_deactivate' ) {
41
+ delete_option( 'wprss_settings_general' );
42
+ delete_option( 'wprss_db_version' );
43
+ delete_option( 'wprss_settings_license_keys' );
44
+ delete_option( 'wprss_settings_license_statuses' );
45
+ delete_option( 'wprss_addon_notices' );
46
+ delete_option( 'wprss_settings_notices' );
47
+ delete_option( 'wprss_pwsv' );
48
+ }
49
+
50
+ // Deactivate the plugin
51
+ if ( $wprss_action === 'deactivate' || $wprss_action === 'reset_and_deactivate' ) {
52
+ require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
53
+ deactivate_plugins( WPRSS_FILE_CONSTANT, TRUE );
54
+ }
55
+
56
+ }
includes/shortcodes.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Set up shortcodes and call the main function for output
4
+ *
5
+ * @since 1.0
6
+ */
7
+ function wprss_shortcode( $atts ) {
8
+
9
+ //Enqueue scripts / styles
10
+ wp_enqueue_script( 'jquery.colorbox-min', WPRSS_JS . 'jquery.colorbox-min.js', array( 'jquery' ) );
11
+ wp_enqueue_script( 'custom', WPRSS_JS . 'custom.js', array( 'jquery', 'jquery.colorbox-min' ) );
12
+
13
+ $general_settings = get_option( 'wprss_settings_general' );
14
+
15
+ if( ! $general_settings['styles_disable'] == 1 ) {
16
+ wp_enqueue_style( 'colorbox', WPRSS_CSS . 'colorbox.css', array(), '1.4.33' );
17
+ wp_enqueue_style( 'styles', WPRSS_CSS . 'styles.css', array(), '' );
18
+ }
19
+
20
+ if ( !empty ($atts) ) {
21
+ foreach ( $atts as $key => &$val ) {
22
+ $val = html_entity_decode($val);
23
+ }
24
+ }
25
+ ob_start(); // start an output buffer to output of the following function
26
+ wprss_display_feed_items( $atts );
27
+ $feed_items = ob_get_clean(); // save the current buffer and clear it
28
+
29
+
30
+
31
+ return apply_filters( 'wprss_shortcode_output', $feed_items );
32
+ }
33
+
34
+ // Register shortcodes
35
+ add_shortcode( 'wp_rss_aggregator', 'wprss_shortcode');
36
+ add_shortcode( 'wp-rss-aggregator', 'wprss_shortcode');
includes/system-info.php ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * System information
4
+ *
5
+ * @package WPRSSAggregator
6
+ * @subpackage Includes
7
+ * @since 3.1
8
+ * @author Jean Galea <info@jeangalea.com>
9
+ * @copyright Copyright(c) 2012-2013, Jean Galea. Adapted from Easy Digital Downloads by Pippin Williamson
10
+ * @link http://www.wpmayor.com
11
+ * @license http://www.gnu.org/licenses/gpl.html
12
+ */
13
+
14
+ /**
15
+ * Generate the system information
16
+ *
17
+ * @since 3.1
18
+ */
19
+ function wprss_system_info() {
20
+ global $wpdb;
21
+
22
+ if ( ! class_exists( 'Browser' ) )
23
+ require_once WPRSS_DIR . 'includes/libraries/browser.php';
24
+
25
+ $browser = new Browser();
26
+ ?>
27
+ <h3><?php _e( 'System Information', 'wprss' ) ?></h3>
28
+ <form action="<?php echo esc_url( admin_url( 'edit.php?post_type=wprss_feed&page=wprss-debugging' ) ); ?>" method="post">
29
+ <textarea readonly="readonly" onclick="this.focus();this.select()" id="system-info-textarea" name="wprss-sysinfo" title="<?php _e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'wprss' ); ?>">
30
+ ### Begin System Info ###
31
+
32
+ ## Please include this information when posting support requests ##
33
+
34
+ Multi-site: <?php echo is_multisite() ? 'Yes' . "\n" : 'No' . "\n" ?>
35
+
36
+ SITE_URL: <?php echo site_url() . "\n"; ?>
37
+ HOME_URL: <?php echo home_url() . "\n"; ?>
38
+
39
+ Plugin Version: <?php echo WPRSS_VERSION . "\n"; ?>
40
+ WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
41
+
42
+ <?php echo $browser ; ?>
43
+
44
+ PHP Version: <?php echo PHP_VERSION . "\n"; ?>
45
+ MySQL Version: <?php echo mysql_get_server_info() . "\n"; ?>
46
+ Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
47
+
48
+ PHP Safe Mode: <?php echo ini_get( 'safe_mode' ) ? "Yes" : "No\n"; ?>
49
+ PHP Memory Limit: <?php echo ini_get( 'memory_limit' ) . "\n"; ?>
50
+ PHP Post Max Size: <?php echo ini_get( 'post_max_size' ) . "\n"; ?>
51
+ PHP Time Limit: <?php echo ini_get( 'max_execution_time' ) . "\n"; ?>
52
+
53
+ WP_DEBUG: <?php echo defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'Enabled' . "\n" : 'Disabled' . "\n" : 'Not set' . "\n" ?>
54
+
55
+ WP Table Prefix: <?php echo "Length: ". strlen( $wpdb->prefix ); echo " Status:"; if ( strlen( $wpdb->prefix )>16 ) {echo " ERROR: Too Long";} else {echo " Acceptable";} echo "\n"; ?>
56
+
57
+ Show On Front: <?php echo get_option( 'show_on_front' ) . "\n" ?>
58
+ Page On Front: <?php $id = get_option( 'page_on_front' ); echo get_the_title( $id ) . ' #' . $id . "\n" ?>
59
+ Page For Posts: <?php $id = get_option( 'page_on_front' ); echo get_the_title( $id ) . ' #' . $id . "\n" ?>
60
+
61
+ Session: <?php echo isset( $_SESSION ) ? 'Enabled' : 'Disabled'; ?><?php echo "\n"; ?>
62
+ Session Name: <?php echo esc_html( ini_get( 'session.name' ) ); ?><?php echo "\n"; ?>
63
+ Cookie Path: <?php echo esc_html( ini_get( 'session.cookie_path' ) ); ?><?php echo "\n"; ?>
64
+ Save Path: <?php echo esc_html( ini_get( 'session.save_path' ) ); ?><?php echo "\n"; ?>
65
+ Use Cookies: <?php echo ini_get( 'session.use_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
66
+ Use Only Cookies: <?php echo ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
67
+
68
+ UPLOAD_MAX_FILESIZE: <?php if ( function_exists( 'phpversion' ) ) echo ( wprss_let_to_num( ini_get( 'upload_max_filesize' ) )/( 1024*1024 ) )."MB"; ?><?php echo "\n"; ?>
69
+ POST_MAX_SIZE: <?php if ( function_exists( 'phpversion' ) ) echo ( wprss_let_to_num( ini_get( 'post_max_size' ) )/( 1024*1024 ) )."MB"; ?><?php echo "\n"; ?>
70
+ WordPress Memory Limit: <?php echo ( wprss_let_to_num( WP_MEMORY_LIMIT )/( 1024*1024 ) )."MB"; ?><?php echo "\n"; ?>
71
+ DISPLAY ERRORS: <?php echo ( ini_get( 'display_errors' ) ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A'; ?><?php echo "\n"; ?>
72
+ FSOCKOPEN: <?php echo ( function_exists( 'fsockopen' ) ) ? __( 'Your server supports fsockopen.', 'wprss' ) : __( 'Your server does not support fsockopen.', 'wprss' ); ?><?php echo "\n"; ?>
73
+
74
+ ACTIVE PLUGINS:
75
+
76
+ <?php
77
+ $plugins = get_plugins();
78
+ $active_plugins = get_option( 'active_plugins', array() );
79
+
80
+ foreach ( $plugins as $plugin_path => $plugin ):
81
+ // If the plugin isn't active, don't show it.
82
+ if ( ! in_array( $plugin_path, $active_plugins ) ) {
83
+ $inactive_plugins[] = $plugin;
84
+ continue;
85
+ }
86
+
87
+ echo $plugin['Name']; ?>: <?php echo $plugin['Version'] ."\n";
88
+
89
+ endforeach;
90
+
91
+ if ( is_multisite() ) :
92
+ ?>
93
+
94
+ NETWORK ACTIVE PLUGINS:
95
+
96
+ <?php
97
+ $plugins = wp_get_active_network_plugins();
98
+ $active_plugins = get_site_option( 'active_sitewide_plugins', array() );
99
+
100
+ foreach ( $plugins as $plugin_path ) {
101
+ $plugin_base = plugin_basename( $plugin_path );
102
+
103
+ // If the plugin isn't active, don't show it.
104
+ if ( ! array_key_exists( $plugin_base, $active_plugins ) )
105
+ continue;
106
+
107
+ $plugin = get_plugin_data( $plugin_path );
108
+
109
+ echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
110
+ }
111
+
112
+ endif;
113
+
114
+ if ( ! is_multisite() ) : ?>
115
+
116
+ DEACTIVATED PLUGINS:
117
+
118
+ <?php
119
+
120
+ foreach ( $inactive_plugins as $inactive_plugin ):
121
+
122
+ echo $inactive_plugin['Name']; ?>: <?php echo $inactive_plugin['Version'] ."\n";
123
+
124
+ endforeach;
125
+
126
+ endif; ?>
127
+
128
+ CURRENT THEME:
129
+
130
+ <?php
131
+ if ( get_bloginfo( 'version' ) < '3.4' ) {
132
+ $theme_data = get_theme_data( get_stylesheet_directory() . '/style.css' );
133
+ echo $theme_data['Name'] . ': ' . $theme_data['Version'];
134
+ } else {
135
+ $theme_data = wp_get_theme();
136
+ echo $theme_data->Name . ': ' . $theme_data->Version;
137
+ }
138
+ ?>
139
+
140
+
141
+ ### End System Info ###
142
+ </textarea>
143
+ <p class="submit">
144
+ <input type="hidden" name="wprss-action" value="download_sysinfo" />
145
+ <?php submit_button( __( 'Download System Info File', 'wprss' ), 'primary', 'wprss-download-sysinfo', false ); ?>
146
+ </p>
147
+ </form>
148
+
149
+ <?php
150
+ }
151
+
152
+ /**
153
+ * Generates the System Info Download File
154
+ *
155
+ * @since 3.1
156
+ * @return void
157
+ */
158
+ function wprss_generate_sysinfo_download() {
159
+ nocache_headers();
160
+
161
+ header( "Content-type: text/plain" );
162
+ header( 'Content-Disposition: attachment; filename="wprss-system-info.txt"' );
163
+
164
+ echo wp_strip_all_tags( $_POST['wprss-sysinfo'] );
165
+ exit;
166
+ }
167
+ add_action( 'wprss_download_sysinfo', 'wprss_generate_sysinfo_download' );
includes/update.php ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Contains all the functions related to updating the plugin from
4
+ * one version to another
5
+ *
6
+ * @package WP RSS Aggregator
7
+ */
8
+
9
+ add_action( 'init', 'wprss_version_check' );
10
+ /**
11
+ * Checks the version number and runs install or update functions if needed.
12
+ *
13
+ * @since 2.0
14
+ */
15
+ function wprss_version_check() {
16
+
17
+ // Get the old database version.
18
+ $old_db_version = get_option( 'wprss_db_version' );
19
+
20
+ // Get the plugin settings.
21
+ $settings = get_option( 'wprss_settings' );
22
+
23
+ // Get the plugin options
24
+ $options = get_option( 'wprss_options' );
25
+
26
+ // For fresh installs
27
+ // If there is no old database version and no settings, run the install.
28
+ if ( empty( $old_db_version ) && false === $settings && false === $options ) {
29
+ wprss_install();
30
+ }
31
+
32
+ // For version 1.0 to 3.0
33
+ // If there is no old database version and no settings, but only options
34
+ elseif ( empty( $old_db_version ) && false === $settings && !empty( $options ) ) {
35
+ wp_clear_scheduled_hook( 'wprss_generate_hook' );
36
+ wprss_install();
37
+ wprss_migrate();
38
+ wprss_fetch_insert_all_feed_items();
39
+ }
40
+
41
+ // For version 1.1 to 3.0
42
+ // If there is no old database version, but only settings and options
43
+ elseif ( empty( $old_db_version ) && !empty( $settings ) && !empty( $options ) ) {
44
+ wp_clear_scheduled_hook( 'wprss_generate_hook' );
45
+ wprss_update();
46
+ wprss_migrate();
47
+ wprss_fetch_insert_all_feed_items();
48
+ }
49
+
50
+ // For version 2+ to 3.0
51
+ // We check if wprss_settings option exists, as this only exists prior to version 3.0
52
+ // Settings field changed, and another added
53
+ elseif ( intval( $old_db_version ) < intval( WPRSS_DB_VERSION ) && ( FALSE != get_option( 'wprss_settings' ) ) ) {
54
+ wprss_upgrade_30();
55
+ wprss_update();
56
+ wprss_fetch_insert_all_feed_items();
57
+ }
58
+
59
+ // For any future versions where DB changes
60
+ // If the old version is less than the new version, run the update.
61
+ elseif ( intval( $old_db_version ) < intval( WPRSS_DB_VERSION ) ) {
62
+ wprss_update();
63
+ wprss_fetch_insert_all_feed_items();
64
+
65
+ // NO FOLLOW CHANGE FIX
66
+ $options = get_option( 'wprss_settings_general' );
67
+ if ( $options['follow_dd'] === __( "No Follow", 'wprss' ) ) {
68
+ $options['follow_dd'] = 'no_follow';
69
+ } elseif ( $options['follow_dd'] === __( "Follow", 'wprss' ) ) {
70
+ $options['follow_dd'] = 'follow';
71
+ }
72
+ }
73
+
74
+ }
75
+
76
+
77
+ /**
78
+ * Adds the plugin settings on install.
79
+ *
80
+ * @since 2.0
81
+ */
82
+ function wprss_install() {
83
+
84
+ // Add the database version setting.
85
+ add_option( 'wprss_db_version', WPRSS_DB_VERSION );
86
+
87
+ // Add the default plugin settings.
88
+ add_option( 'wprss_settings_general', wprss_get_default_settings_general() );
89
+ }
90
+
91
+
92
+ /**
93
+ * Update settings of plugin to reflect new version
94
+ *
95
+ * @since 2.0
96
+ */
97
+ function wprss_update() {
98
+
99
+ // Update the database version setting.
100
+ update_option( 'wprss_db_version', WPRSS_DB_VERSION );
101
+ // Initialize settings
102
+ wprss_settings_initialize();
103
+ }
104
+
105
+
106
+ /**
107
+ * Initialize settings to default ones if they are not yet set
108
+ *
109
+ * @since 3.0
110
+ */
111
+ function wprss_settings_initialize() {
112
+ // Get the settings from the new field in the database
113
+ $settings = get_option( 'wprss_settings_general' );
114
+
115
+ // Get the default plugin settings.
116
+ $default_settings = wprss_get_default_settings_general();
117
+
118
+ // Loop through each of the default plugin settings.
119
+ foreach ( $default_settings as $setting_key => $setting_value ) {
120
+
121
+ // If the setting didn't previously exist, add the default value to the $settings array.
122
+ if ( ! isset( $settings[ $setting_key ] ) )
123
+ $settings[ $setting_key ] = $setting_value;
124
+ }
125
+
126
+ // Update the plugin settings.
127
+ update_option( 'wprss_settings_general', $settings );
128
+ }
129
+
130
+
131
+ /**
132
+ * Takes care of cron and DB changes between versions 2+ and 3
133
+ *
134
+ * @since 3.0
135
+ */
136
+ function wprss_upgrade_30() {
137
+ wp_clear_scheduled_hook( 'wprss_fetch_feeds_hook' );
138
+
139
+ // Get the settings from the database.
140
+ $settings = get_option( 'wprss_settings' );
141
+
142
+ // Put them into our new field
143
+ update_option( 'wprss_settings_general', $settings );
144
+
145
+ // Remove old options field, we are now using wprss_settings_general
146
+ delete_option( 'wprss_settings' );
147
+ }
148
+
149
+
150
+ /**
151
+ * Migrates the feed sources from the wprss_options field to the wp_posts table (for older versions)
152
+ *
153
+ * @since 2.0
154
+ */
155
+ function wprss_migrate() {
156
+
157
+ // Get the plugin options
158
+ $options = get_option( 'wprss_options' );
159
+
160
+ $feed_sources = array_chunk( $options, 2 );
161
+
162
+ foreach ( $feed_sources as $feed_source ) {
163
+ $feed_title = $feed_source[0];
164
+ $feed_url = $feed_source[1];
165
+
166
+ // Create post object
167
+ $feed_item = array(
168
+ 'post_title' => $feed_title,
169
+ 'post_content' => '',
170
+ 'post_status' => 'publish',
171
+ 'post_type' => 'wprss_feed'
172
+ );
173
+
174
+ $inserted_ID = wp_insert_post( $feed_item, $wp_error );
175
+ // insert post meta
176
+ update_post_meta( $inserted_ID, 'wprss_url', $feed_url );
177
+ }
178
+ // delete unneeded option
179
+ delete_option( 'wprss_options' );
180
+ }
181
+
182
+
183
+ /**
184
+ * Returns an array of the default plugin settings. These are only used on initial setup.
185
+ *
186
+ * @since 2.0
187
+ */
188
+ function wprss_get_default_settings_general() {
189
+
190
+ // Set up the default plugin settings
191
+ $settings = apply_filters(
192
+ 'wprss_default_settings_general',
193
+ array(
194
+ // from version 1.1
195
+ 'open_dd' => __( 'New window' ),
196
+ 'follow_dd' => 'no_follow',
197
+
198
+ // from version 2.0
199
+ 'feed_limit' => 15,
200
+
201
+ // from version 3.0
202
+ 'date_format' => 'Y-m-d',
203
+ 'limit_feed_items_db' => 200,
204
+ 'cron_interval' => 'hourly',
205
+ 'styles_disable' => 0,
206
+ 'title_link' => 1,
207
+ 'title_limit' => '',
208
+ 'source_enable' => 1,
209
+ 'text_preceding_source' => 'Source:',
210
+ 'date_enable' => 1,
211
+ 'text_preceding_date' => 'Published on',
212
+
213
+ // from version 3.1
214
+ 'limit_feed_items_imported' => 200,
215
+
216
+ // from version 3.3
217
+ 'custom_feed_url' => 'wprss',
218
+ 'custom_feed_limit' => '',
219
+ 'source_link' => 0,
220
+
221
+ // from version 3.4
222
+ 'video_link' => 'false',
223
+
224
+ // from version 3.8
225
+ 'limit_feed_items_age' => '',
226
+ 'limit_feed_items_age_unit' => 'days',
227
+
228
+ // tracking
229
+ 'tracking' => 0,
230
+ )
231
+ );
232
+
233
+ // Return the default settings
234
+ return $settings;
235
+ }
236
+
237
+
238
+
239
+ /**
240
+ * Returns the default tracking settings.
241
+ *
242
+ * @since 3.6
243
+ */
244
+ function wprss_get_default_tracking_settings() {
245
+ return apply_filters(
246
+ 'wprss_default_tracking_settings',
247
+ array(
248
+ 'use_presstrends' => 'false',
249
+ 'tracking_notice' => ''
250
+ )
251
+ );
252
+ }
js/add-remove.js DELETED
@@ -1,38 +0,0 @@
1
- /*
2
- JQuery code to add or remove option fields
3
- */
4
-
5
-
6
- jQuery(function() { // when document has loaded
7
-
8
- var i = jQuery('input.wprss-input').size(); // check how many input exists on the document and add 1 for the add command to work
9
- i = (i / 2) + 1;
10
-
11
- jQuery('a#add').click(function() { // when you click the add link
12
- jQuery( "<div class='wprss-input'><p><label class='textinput' for='feed_name_" + i + "'>Feed name " + i + "</label>" +
13
- "<input id='feed_name_" + i + "' class='wprss-input' size='100' name='wprss_options[feed_name_" + i + "]' type='text' value='' /></p>" +
14
- "<p><label class='textinput' for='feed_url_" + i + "'>Feed URL " + i + "</label>" +
15
- "<input id='feed_url_" + i + "' class='wprss-input' size='100' name='wprss_options[feed_url_" + i + "]' type='text' value='' /></p></div>")
16
- .fadeIn('slow').insertBefore('div#buttons');
17
- // append (add) a new input to the document.
18
- // if you have the input inside a form, change body to form in the appendTo
19
- i++; //after the click i will be i = 3 if you click again i will be i = 4
20
- });
21
-
22
- jQuery('a#remove').click(function() { // similar to the previous, when you click remove link
23
- if(i > 1) { // if you have at least 1 input on the form
24
- jQuery('div.wprss-input:last').remove(); //remove the last input
25
- i--; //deduct 1 from i so if i = 3, after i--, i will be i = 2
26
- }
27
- });
28
-
29
- jQuery('a.reset').click(function() {
30
- while(i > 2) { // while you have more than 1 input on the page
31
- //jQuery('input.wprss-input:last').remove(); // remove inputs
32
- jQuery('div.wprss-input:last').remove(); // remove inputs
33
- i--;
34
- }
35
- });
36
-
37
- });
38
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/admin-addon-ajax.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( document ).ready( function($) {
2
+
3
+ $('.ajax-close-addon-notice').click( function() {
4
+ addon = $(this).attr( 'data-addon' );
5
+ notice = $(this).attr( 'data-notice' );
6
+ element = $(this).parent().parent();
7
+ if ( addon !== false && typeof addon !== 'undefined' && notice !== false && typeof notice !== 'undefined' ) {
8
+ $.ajax({
9
+ url: ajaxurl,
10
+ type: 'POST',
11
+ data: {
12
+ action: 'wprss_dismiss_addon_notice',
13
+ addon: addon,
14
+ notice: notice,
15
+ },
16
+ success: function( data, status, jqXHR) {
17
+ if ( data === 'true' ) {
18
+ element.slideUp( 'fast', function(){
19
+ element.remove();
20
+ });
21
+ }
22
+ }
23
+ });
24
+ $(this).text('Please wait ...');
25
+ }
26
+ });
27
+
28
+ });
js/admin-custom.js ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // jQuery for 'Fetch Feed Items' Row Action in 'All Feed Sources' page
2
+ function fetch_items_row_action_callback(){
3
+ var link = jQuery(this);
4
+ var original_text = link.text();
5
+ var id = link.attr('pid');
6
+ var url = link.attr('purl');
7
+ jQuery.post(
8
+ url,
9
+ {
10
+ 'action': 'wprss_fetch_feeds_row_action',
11
+ 'id': id
12
+ },
13
+ function(response){
14
+ link.text('Feed items imported!');
15
+ setTimeout( function(){
16
+ link.text( original_text ).click( fetch_items_row_action_callback );
17
+ }, 3500 );
18
+ }
19
+ );
20
+ link.text('Please wait ...');
21
+ link.unbind('click');
22
+ };
23
+
24
+
25
+
26
+ jQuery(window).load( function(){
27
+
28
+
29
+ function wprssParseDate(str){
30
+ var t = str.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
31
+ if( t!==null ){
32
+ var d=+t[1], m=+t[2], y=+t[3];
33
+ var date = new Date(y,m-1,d);
34
+ if( date.getFullYear() === y && date.getMonth() === m-1 ){
35
+ return date;
36
+ }
37
+ }
38
+ return null;
39
+ }
40
+
41
+
42
+ var WPRSS_DATE_FORMAT = 'dd/mm/yy';
43
+ var WPRSS_TIME_FORMAT = 'HH:mm:ss';
44
+ var WPRSS_NOW = new Date();
45
+ var WPRSS_NOW_UTC = new Date(
46
+ WPRSS_NOW.getUTCFullYear(),
47
+ WPRSS_NOW.getUTCMonth(),
48
+ WPRSS_NOW.getUTCDate(),
49
+ WPRSS_NOW.getUTCHours(),
50
+ WPRSS_NOW.getUTCMinutes(),
51
+ WPRSS_NOW.getUTCSeconds()
52
+ );
53
+
54
+ // Set datepickers
55
+ jQuery.datepicker.setDefaults({
56
+ dateFormat: WPRSS_DATE_FORMAT,
57
+ });
58
+ jQuery.timepicker.setDefaults({
59
+ controlType: 'slider',
60
+ timezone: 0,
61
+ timeFormat: WPRSS_TIME_FORMAT,
62
+ });
63
+ jQuery('.wprss-datetimepicker').datetimepicker();
64
+ jQuery('.wprss-datetimepicker-from-today').datetimepicker({ minDate: WPRSS_NOW_UTC });
65
+
66
+
67
+ jQuery('.wprss-datepicker, .wprss-datepicker-from-today').focusout( function(){
68
+ val = jQuery(this).val();
69
+ if ( val !== '' && wprssParseDate( val ) === null ) {
70
+ jQuery(this).addClass('wprss-date-error');
71
+ } else jQuery(this).removeClass('wprss-date-error');
72
+ });
73
+
74
+ // On TAB pressed when on title input field, go to URL input field
75
+ jQuery('input#title').on( 'keydown', function( event ) {
76
+
77
+ if ( event.which == 9 ) {
78
+ event.preventDefault();
79
+ jQuery('input#wprss_url').focus();
80
+ }
81
+ }
82
+ );
83
+
84
+ // On TAB pressed when on description textarea field, go to Publish submit button
85
+ jQuery('textarea#wprss_description').on( 'keydown', function( event ) {
86
+
87
+ if ( event.which == 9 ) {
88
+ event.preventDefault();
89
+ jQuery('input#publish').focus();
90
+ }
91
+ }
92
+ );
93
+
94
+ jQuery('.wprss_ajax_action').click( fetch_items_row_action_callback );
95
+
96
+ // Make the number rollers change their value to empty string when value is 0, making
97
+ // them use the placeholder.
98
+ jQuery('.wprss-number-roller').on('change', function(){
99
+ if ( jQuery(this).val() == 0 )
100
+ jQuery(this).val('');
101
+ });
102
+
103
+
104
+ /* JS for admin notice - Leave a review */
105
+
106
+
107
+ // Check to see if the Ajax Notification is visible
108
+ if ( jQuery('#dismiss-ajax-notification').length > 0 ) {
109
+ NOTIFICATION = jQuery('#ajax-notification');
110
+ NOTIFICATION_DISMISS = jQuery('#dismiss-ajax-notification');
111
+ NOTIFICATION_DISMISS.click( function(evt){
112
+ evt.preventDefault();
113
+ evt.stopPropagation();
114
+
115
+ jQuery.post(ajaxurl, {
116
+ // The name of the function to fire on the server
117
+ action: 'wprss_hide_admin_notification',
118
+ // The nonce value to send for the security check
119
+ nonce: jQuery.trim( jQuery('#ajax-notification-nonce').text() )
120
+ }, function (response) {
121
+ // If the response was successful (that is, 1 was returned), hide the notification;
122
+ // Otherwise, we'll change the class name of the notification
123
+ if ( response !== '1' ) {
124
+ NOTIFICATION.removeClass('updated').addClass('error');
125
+ } // end if
126
+ });
127
+
128
+ NOTIFICATION.fadeOut(400);
129
+ });
130
+ }
131
+
132
+
133
+ if ( jQuery('#wprss_tracking_notice') ) {
134
+
135
+ }
136
+
137
+
138
+
139
+ // GENERATES A RANDOM STRING FOR THE SECURE RESET CODE FIELD
140
+ jQuery('#wprss-secure-reset-generate').click( function(){
141
+ jQuery('input#wprss-secure-reset-code').val( Math.random().toString(36).substr(2) );
142
+ });
143
+
144
+
145
+ });
146
+
147
+
148
+ /**
149
+ * WP-like collapsing settings in metabox
150
+ */
151
+ (function($){
152
+ $(window).load( function(){
153
+
154
+ // Initialize all collapsable meta settings
155
+ $('.wprss-meta-slider').each(function(){
156
+ // Get all required elements
157
+ var slider = $(this);
158
+ var viewerID = slider.attr('data-collapse-viewer');
159
+ var viewer = $( '#' + viewerID );
160
+ var editLink = viewer.next();
161
+
162
+ var hybrid = slider.attr('data-hybrid');
163
+ var fields = ( typeof hybrid !== 'undefined' && hybrid !== false ) ? $( hybrid ) : slider.find('*').first();
164
+
165
+ var labelAttr = slider.attr('data-label');
166
+ var label = ( typeof labelAttr !== 'undefined' && labelAttr !== false ) ? $( labelAttr ) : null;
167
+
168
+ // The controller is the field that, when using hybrid fields, determines if the value is empty or not
169
+ var controllerAttr = slider.attr( 'data-empty-controller' );
170
+ var controller = ( typeof controllerAttr !== 'undefined' && controllerAttr !== false ) ? $( controllerAttr ) : null;
171
+
172
+ var labelWhenEmpty = null;
173
+ if ( label !== null ) {
174
+ var whenEmpty = label.attr('data-when-empty');
175
+ labelWhenEmpty = ( typeof whenEmpty !== 'undefined' && whenEmpty !== false ) ? whenEmpty : label.text();
176
+ }
177
+
178
+ var defaultValue = slider.attr('data-default-value');
179
+ // Edit link opens the settings
180
+ editLink.click(function( e ){
181
+ // If not open already, open it
182
+ if ( !slider.hasClass('wprss-open') )
183
+ slider.slideDown().addClass('wprss-open');
184
+ e.preventDefault();
185
+ fields.each( function(){
186
+ $(this).attr( 'data-old-value', $(this).val() );
187
+ });
188
+ });
189
+
190
+ // The update function
191
+ var update = function(){
192
+ // On click, get the value of the fields
193
+ var val = '';
194
+ fields.each( function(){
195
+ if ( $(this).is('select') ) {
196
+ val += ' ' + $( this ).find('option:selected').text();
197
+ }
198
+ else val += ' ' + $(this).val();
199
+ });
200
+ // check the controller
201
+ var controllerVal = '=';
202
+ if ( controller !== null ) {
203
+ if ( controller.is('select') ) {
204
+ controllerVal = ' ' + controller.find('option:selected').text();
205
+ } else controllerVal = ' ' + controller.val();
206
+ }
207
+ // If empty, use the default value
208
+ if ( val.trim() === '' || controllerVal.trim() === '' ) {
209
+ val = defaultValue;
210
+ // If the label is set, and it has alternate text for empty values, switch its text and attr
211
+ if ( label !== null ) {
212
+ var whenEmpty = label.attr('data-when-empty');
213
+ var labelWhenEmpty = ( typeof whenEmpty !== 'undefined' && whenEmpty !== false ) ? whenEmpty : null;
214
+ if ( labelWhenEmpty !== null ) {
215
+ label.attr( 'data-when-not-empty', label.text() ).text( labelWhenEmpty );
216
+ }
217
+ }
218
+ }
219
+ // Otherwise if the value is not empty, and the label is set to its empty counterpart, switch it back
220
+ else {
221
+ if ( label !== null ) {
222
+ var whenNotEmpty = label.attr('data-when-not-empty');
223
+ var labelWhenNotEmpty = ( typeof whenNotEmpty !== 'undefined' && whenNotEmpty !== false ) ? whenNotEmpty : null;
224
+ if ( labelWhenNotEmpty !== null ) {
225
+ label.attr( 'data-when-empty', label.text() ).text( labelWhenNotEmpty );
226
+ }
227
+ }
228
+ }
229
+ // Set the text of the viewer to the value
230
+ viewer.text( val );
231
+ };
232
+
233
+ // Create the OK Button
234
+ var okBtn = $('<a>').addClass('wprss-slider-button button-secondary').text('OK').click( update );
235
+ // Create the Cancel Button
236
+ var cancelBtn = $('<a>').addClass('wprss-slider-button').text('Cancel').click( function() {
237
+ fields.each( function(){
238
+ $(this).val( $(this).attr( 'data-old-value' ) );
239
+ $(this).removeAttr( 'data-old-value' );
240
+ });
241
+ });
242
+
243
+ // Add the buttons
244
+ slider.append( $('<br>') ).append( $('<br>') ).append( okBtn ).append( cancelBtn );
245
+
246
+ // Make both buttons close the div
247
+ slider.find('.wprss-slider-button').click( function(){
248
+ slider.slideUp().removeClass('wprss-open');
249
+ });
250
+
251
+ // Update when ready
252
+ update();
253
+ });
254
+
255
+ });
256
+ })(jQuery);
257
+
258
+ // Utility string trim method, if it does not exist
259
+ if ( !String.prototype.trim ) {
260
+ String.prototype.trim = function(){
261
+ return this.replace(/^\s+|\s+$/g, '');
262
+ };
263
+ }
js/custom.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ jQuery( document ).ready( function() {
2
+ if(jQuery.fn.colorbox) {
3
+ jQuery( 'a.colorbox' ).colorbox(
4
+ {iframe:true, width:'80%', height:'80%'}
5
+ );
6
+ }
7
+ });
js/editor.js ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var WPRSS_TMCE_PLUGIN_ID = 'wprss';
2
+ var WPRSS_ED = null;
3
+ var wprss_dialog_submit = null;
4
+
5
+ jQuery( document ).ready( function($) {
6
+
7
+ wprss_dialog_submit = function() {
8
+ all = $('#wprss-dialog-all-sources').is(':checked');
9
+
10
+ sources = [];
11
+ $('#wprss-dialog-feed-source-list :selected').each( function( i, selected ){
12
+ sources[i] = $(selected).val();
13
+ });
14
+ sources = sources.join(',');
15
+
16
+ excludes = [];
17
+ $('#wprss-dialog-exclude-list :selected').each( function( i, selected ){
18
+ excludes[i] = $(selected).val();
19
+ });
20
+ excludes = excludes.join(',');
21
+
22
+ limit = $('#wprss-dialog-feed-limit').val();
23
+
24
+ shortcode = '[wp-rss-aggregator';
25
+ if ( all ) {
26
+ if ( excludes.length > 0 )
27
+ shortcode += ' exclude="' + excludes + '"'
28
+ } else {
29
+ if ( sources.length > 0 )
30
+ shortcode += ' source="' + sources + '"'
31
+ }
32
+
33
+ if ( limit !== '' && limit !== '0' )
34
+ shortcode += ' limit="' + limit + '"';
35
+ shortcode += ']';
36
+
37
+ WPRSS_ED.execCommand('mceInsertContent', false, shortcode);
38
+ WPRSS_Dialog.close();
39
+ }
40
+
41
+ window.WPRSS_Dialog = new function() {
42
+ // Keep a reference to the current object
43
+ var base = this;
44
+ var dialog = null;
45
+ var dialog_head = null;
46
+ var dialog_head_close = null;
47
+ var dialog_inside = null;
48
+
49
+ var close = function( e ) {
50
+ overlay.fadeOut();
51
+ dialog_inside.empty();
52
+ };
53
+
54
+ base.close = close;
55
+
56
+ base.init = function() {
57
+ overlay = $('<div id="wprss-overlay"></div>');
58
+ dialog = $('<div id="wprss-editor-dialog" class="postbox"></div>');
59
+
60
+ dialog_head = $('<div class="wprss-dialog-header"> <h1>WPRSS Aggregator Shortcode</h1> </div>');
61
+ dialog_head_close = $('<span class="close-btn"></span>').html('&times;').appendTo( dialog_head );
62
+ dialog_inside = $('<div class="wprss-dialog-inside"></div>');
63
+ dialog.append( dialog_head );
64
+ dialog.append( dialog_inside );
65
+
66
+ overlay.hide().appendTo('body');
67
+ dialog.appendTo(overlay);
68
+
69
+ overlay.click( close );
70
+ dialog_head_close.click( close );
71
+
72
+ dialog.on( 'click', function( e ) {
73
+ e.stopPropagation();
74
+ });
75
+ };
76
+
77
+
78
+ base.getDialog = function() {
79
+ overlay.show();
80
+
81
+ $.ajax({
82
+ url: ajaxurl,
83
+ type: 'POST',
84
+ data: {
85
+ action: 'wprss_editor_dialog'
86
+ },
87
+ success: function( data, status, jqXHR) {
88
+ if ( data.length > 0 ) {
89
+ dialog_inside.html( data );
90
+ }
91
+ }
92
+ });
93
+
94
+
95
+ };
96
+ }
97
+
98
+
99
+ WPRSS_Dialog.init();
100
+
101
+
102
+
103
+
104
+ tinymce.create( 'tinymce.plugins.' + WPRSS_TMCE_PLUGIN_ID, {
105
+ // INITIALIZE THE BUTTON
106
+ init : function( ed, url ) {
107
+ // Add the button
108
+ ed.addButton( WPRSS_TMCE_PLUGIN_ID, {
109
+ title : 'WPRSS Aggregator shortcode',
110
+ image : url + '/../images/icon-adminpage32.png',
111
+ onclick : function() {
112
+ idPattern = /(?:(?:[^v]+)+v.)?([^&=]{11})(?=&|$)/;
113
+ WPRSS_Dialog.getDialog();
114
+ WPRSS_ED = ed;
115
+ /*
116
+ var vidId = prompt("WP RSS Aggregator", "Choose feed source");
117
+ var m = idPattern.exec(vidId);
118
+ if (m != null && m != 'undefined')
119
+ ed.execCommand('mceInsertContent', false, '[wprss source="'+m[1]+'"]');
120
+ */
121
+ }
122
+ });
123
+ },
124
+ createControl : function( n, cm ) {
125
+ return null;
126
+ },
127
+ getInfo : function() {
128
+ return {
129
+ longname : "WPRSS Aggregator Shortcode",
130
+ author : 'John Galea',
131
+ authorurl : 'http://profiles.wordpress.org/jeangalea/',
132
+ infourl : 'http://www.wprssaggregator.com/',
133
+ version : "1.0"
134
+ };
135
+ }
136
+ });
137
+ tinymce.PluginManager.add( WPRSS_TMCE_PLUGIN_ID, tinymce.plugins.wprss );
138
+ });
js/jquery-ui-timepicker-addon.js ADDED
@@ -0,0 +1,2145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery Timepicker Addon - v1.4.2 - 2013-11-23
2
+ * http://trentrichardson.com/examples/timepicker
3
+ * Copyright (c) 2013 Trent Richardson; Licensed MIT */
4
+ (function ($) {
5
+
6
+ /*
7
+ * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded"
8
+ */
9
+ $.ui.timepicker = $.ui.timepicker || {};
10
+ if ($.ui.timepicker.version) {
11
+ return;
12
+ }
13
+
14
+ /*
15
+ * Extend jQueryUI, get it started with our version number
16
+ */
17
+ $.extend($.ui, {
18
+ timepicker: {
19
+ version: "1.4.2"
20
+ }
21
+ });
22
+
23
+ /*
24
+ * Timepicker manager.
25
+ * Use the singleton instance of this class, $.timepicker, to interact with the time picker.
26
+ * Settings for (groups of) time pickers are maintained in an instance object,
27
+ * allowing multiple different settings on the same page.
28
+ */
29
+ var Timepicker = function () {
30
+ this.regional = []; // Available regional settings, indexed by language code
31
+ this.regional[''] = { // Default regional settings
32
+ currentText: 'Now',
33
+ closeText: 'Done',
34
+ amNames: ['AM', 'A'],
35
+ pmNames: ['PM', 'P'],
36
+ timeFormat: 'HH:mm',
37
+ timeSuffix: '',
38
+ timeOnlyTitle: 'Choose Time',
39
+ timeText: 'Time',
40
+ hourText: 'Hour',
41
+ minuteText: 'Minute',
42
+ secondText: 'Second',
43
+ millisecText: 'Millisecond',
44
+ microsecText: 'Microsecond',
45
+ timezoneText: 'Time Zone',
46
+ isRTL: false
47
+ };
48
+ this._defaults = { // Global defaults for all the datetime picker instances
49
+ showButtonPanel: true,
50
+ timeOnly: false,
51
+ showHour: null,
52
+ showMinute: null,
53
+ showSecond: null,
54
+ showMillisec: null,
55
+ showMicrosec: null,
56
+ showTimezone: null,
57
+ showTime: true,
58
+ stepHour: 1,
59
+ stepMinute: 1,
60
+ stepSecond: 1,
61
+ stepMillisec: 1,
62
+ stepMicrosec: 1,
63
+ hour: 0,
64
+ minute: 0,
65
+ second: 0,
66
+ millisec: 0,
67
+ microsec: 0,
68
+ timezone: null,
69
+ hourMin: 0,
70
+ minuteMin: 0,
71
+ secondMin: 0,
72
+ millisecMin: 0,
73
+ microsecMin: 0,
74
+ hourMax: 23,
75
+ minuteMax: 59,
76
+ secondMax: 59,
77
+ millisecMax: 999,
78
+ microsecMax: 999,
79
+ minDateTime: null,
80
+ maxDateTime: null,
81
+ onSelect: null,
82
+ hourGrid: 0,
83
+ minuteGrid: 0,
84
+ secondGrid: 0,
85
+ millisecGrid: 0,
86
+ microsecGrid: 0,
87
+ alwaysSetTime: true,
88
+ separator: ' ',
89
+ altFieldTimeOnly: true,
90
+ altTimeFormat: null,
91
+ altSeparator: null,
92
+ altTimeSuffix: null,
93
+ pickerTimeFormat: null,
94
+ pickerTimeSuffix: null,
95
+ showTimepicker: true,
96
+ timezoneList: null,
97
+ addSliderAccess: false,
98
+ sliderAccessArgs: null,
99
+ controlType: 'slider',
100
+ defaultValue: null,
101
+ parse: 'strict'
102
+ };
103
+ $.extend(this._defaults, this.regional['']);
104
+ };
105
+
106
+ $.extend(Timepicker.prototype, {
107
+ $input: null,
108
+ $altInput: null,
109
+ $timeObj: null,
110
+ inst: null,
111
+ hour_slider: null,
112
+ minute_slider: null,
113
+ second_slider: null,
114
+ millisec_slider: null,
115
+ microsec_slider: null,
116
+ timezone_select: null,
117
+ hour: 0,
118
+ minute: 0,
119
+ second: 0,
120
+ millisec: 0,
121
+ microsec: 0,
122
+ timezone: null,
123
+ hourMinOriginal: null,
124
+ minuteMinOriginal: null,
125
+ secondMinOriginal: null,
126
+ millisecMinOriginal: null,
127
+ microsecMinOriginal: null,
128
+ hourMaxOriginal: null,
129
+ minuteMaxOriginal: null,
130
+ secondMaxOriginal: null,
131
+ millisecMaxOriginal: null,
132
+ microsecMaxOriginal: null,
133
+ ampm: '',
134
+ formattedDate: '',
135
+ formattedTime: '',
136
+ formattedDateTime: '',
137
+ timezoneList: null,
138
+ units: ['hour', 'minute', 'second', 'millisec', 'microsec'],
139
+ support: {},
140
+ control: null,
141
+
142
+ /*
143
+ * Override the default settings for all instances of the time picker.
144
+ * @param {Object} settings object - the new settings to use as defaults (anonymous object)
145
+ * @return {Object} the manager object
146
+ */
147
+ setDefaults: function (settings) {
148
+ extendRemove(this._defaults, settings || {});
149
+ return this;
150
+ },
151
+
152
+ /*
153
+ * Create a new Timepicker instance
154
+ */
155
+ _newInst: function ($input, opts) {
156
+ var tp_inst = new Timepicker(),
157
+ inlineSettings = {},
158
+ fns = {},
159
+ overrides, i;
160
+
161
+ for (var attrName in this._defaults) {
162
+ if (this._defaults.hasOwnProperty(attrName)) {
163
+ var attrValue = $input.attr('time:' + attrName);
164
+ if (attrValue) {
165
+ try {
166
+ inlineSettings[attrName] = eval(attrValue);
167
+ } catch (err) {
168
+ inlineSettings[attrName] = attrValue;
169
+ }
170
+ }
171
+ }
172
+ }
173
+
174
+ overrides = {
175
+ beforeShow: function (input, dp_inst) {
176
+ if ($.isFunction(tp_inst._defaults.evnts.beforeShow)) {
177
+ return tp_inst._defaults.evnts.beforeShow.call($input[0], input, dp_inst, tp_inst);
178
+ }
179
+ },
180
+ onChangeMonthYear: function (year, month, dp_inst) {
181
+ // Update the time as well : this prevents the time from disappearing from the $input field.
182
+ tp_inst._updateDateTime(dp_inst);
183
+ if ($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)) {
184
+ tp_inst._defaults.evnts.onChangeMonthYear.call($input[0], year, month, dp_inst, tp_inst);
185
+ }
186
+ },
187
+ onClose: function (dateText, dp_inst) {
188
+ if (tp_inst.timeDefined === true && $input.val() !== '') {
189
+ tp_inst._updateDateTime(dp_inst);
190
+ }
191
+ if ($.isFunction(tp_inst._defaults.evnts.onClose)) {
192
+ tp_inst._defaults.evnts.onClose.call($input[0], dateText, dp_inst, tp_inst);
193
+ }
194
+ }
195
+ };
196
+ for (i in overrides) {
197
+ if (overrides.hasOwnProperty(i)) {
198
+ fns[i] = opts[i] || null;
199
+ }
200
+ }
201
+
202
+ tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, opts, overrides, {
203
+ evnts: fns,
204
+ timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
205
+ });
206
+ tp_inst.amNames = $.map(tp_inst._defaults.amNames, function (val) {
207
+ return val.toUpperCase();
208
+ });
209
+ tp_inst.pmNames = $.map(tp_inst._defaults.pmNames, function (val) {
210
+ return val.toUpperCase();
211
+ });
212
+
213
+ // detect which units are supported
214
+ tp_inst.support = detectSupport(
215
+ tp_inst._defaults.timeFormat +
216
+ (tp_inst._defaults.pickerTimeFormat ? tp_inst._defaults.pickerTimeFormat : '') +
217
+ (tp_inst._defaults.altTimeFormat ? tp_inst._defaults.altTimeFormat : ''));
218
+
219
+ // controlType is string - key to our this._controls
220
+ if (typeof(tp_inst._defaults.controlType) === 'string') {
221
+ if (tp_inst._defaults.controlType === 'slider' && typeof($.ui.slider) === 'undefined') {
222
+ tp_inst._defaults.controlType = 'select';
223
+ }
224
+ tp_inst.control = tp_inst._controls[tp_inst._defaults.controlType];
225
+ }
226
+ // controlType is an object and must implement create, options, value methods
227
+ else {
228
+ tp_inst.control = tp_inst._defaults.controlType;
229
+ }
230
+
231
+ // prep the timezone options
232
+ var timezoneList = [-720, -660, -600, -570, -540, -480, -420, -360, -300, -270, -240, -210, -180, -120, -60,
233
+ 0, 60, 120, 180, 210, 240, 270, 300, 330, 345, 360, 390, 420, 480, 525, 540, 570, 600, 630, 660, 690, 720, 765, 780, 840];
234
+ if (tp_inst._defaults.timezoneList !== null) {
235
+ timezoneList = tp_inst._defaults.timezoneList;
236
+ }
237
+ var tzl = timezoneList.length, tzi = 0, tzv = null;
238
+ if (tzl > 0 && typeof timezoneList[0] !== 'object') {
239
+ for (; tzi < tzl; tzi++) {
240
+ tzv = timezoneList[tzi];
241
+ timezoneList[tzi] = { value: tzv, label: $.timepicker.timezoneOffsetString(tzv, tp_inst.support.iso8601) };
242
+ }
243
+ }
244
+ tp_inst._defaults.timezoneList = timezoneList;
245
+
246
+ // set the default units
247
+ tp_inst.timezone = tp_inst._defaults.timezone !== null ? $.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone) :
248
+ ((new Date()).getTimezoneOffset() * -1);
249
+ tp_inst.hour = tp_inst._defaults.hour < tp_inst._defaults.hourMin ? tp_inst._defaults.hourMin :
250
+ tp_inst._defaults.hour > tp_inst._defaults.hourMax ? tp_inst._defaults.hourMax : tp_inst._defaults.hour;
251
+ tp_inst.minute = tp_inst._defaults.minute < tp_inst._defaults.minuteMin ? tp_inst._defaults.minuteMin :
252
+ tp_inst._defaults.minute > tp_inst._defaults.minuteMax ? tp_inst._defaults.minuteMax : tp_inst._defaults.minute;
253
+ tp_inst.second = tp_inst._defaults.second < tp_inst._defaults.secondMin ? tp_inst._defaults.secondMin :
254
+ tp_inst._defaults.second > tp_inst._defaults.secondMax ? tp_inst._defaults.secondMax : tp_inst._defaults.second;
255
+ tp_inst.millisec = tp_inst._defaults.millisec < tp_inst._defaults.millisecMin ? tp_inst._defaults.millisecMin :
256
+ tp_inst._defaults.millisec > tp_inst._defaults.millisecMax ? tp_inst._defaults.millisecMax : tp_inst._defaults.millisec;
257
+ tp_inst.microsec = tp_inst._defaults.microsec < tp_inst._defaults.microsecMin ? tp_inst._defaults.microsecMin :
258
+ tp_inst._defaults.microsec > tp_inst._defaults.microsecMax ? tp_inst._defaults.microsecMax : tp_inst._defaults.microsec;
259
+ tp_inst.ampm = '';
260
+ tp_inst.$input = $input;
261
+
262
+ if (tp_inst._defaults.altField) {
263
+ tp_inst.$altInput = $(tp_inst._defaults.altField).css({
264
+ cursor: 'pointer'
265
+ }).focus(function () {
266
+ $input.trigger("focus");
267
+ });
268
+ }
269
+
270
+ if (tp_inst._defaults.minDate === 0 || tp_inst._defaults.minDateTime === 0) {
271
+ tp_inst._defaults.minDate = new Date();
272
+ }
273
+ if (tp_inst._defaults.maxDate === 0 || tp_inst._defaults.maxDateTime === 0) {
274
+ tp_inst._defaults.maxDate = new Date();
275
+ }
276
+
277
+ // datepicker needs minDate/maxDate, timepicker needs minDateTime/maxDateTime..
278
+ if (tp_inst._defaults.minDate !== undefined && tp_inst._defaults.minDate instanceof Date) {
279
+ tp_inst._defaults.minDateTime = new Date(tp_inst._defaults.minDate.getTime());
280
+ }
281
+ if (tp_inst._defaults.minDateTime !== undefined && tp_inst._defaults.minDateTime instanceof Date) {
282
+ tp_inst._defaults.minDate = new Date(tp_inst._defaults.minDateTime.getTime());
283
+ }
284
+ if (tp_inst._defaults.maxDate !== undefined && tp_inst._defaults.maxDate instanceof Date) {
285
+ tp_inst._defaults.maxDateTime = new Date(tp_inst._defaults.maxDate.getTime());
286
+ }
287
+ if (tp_inst._defaults.maxDateTime !== undefined && tp_inst._defaults.maxDateTime instanceof Date) {
288
+ tp_inst._defaults.maxDate = new Date(tp_inst._defaults.maxDateTime.getTime());
289
+ }
290
+ tp_inst.$input.bind('focus', function () {
291
+ tp_inst._onFocus();
292
+ });
293
+
294
+ return tp_inst;
295
+ },
296
+
297
+ /*
298
+ * add our sliders to the calendar
299
+ */
300
+ _addTimePicker: function (dp_inst) {
301
+ var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();
302
+
303
+ this.timeDefined = this._parseTime(currDT);
304
+ this._limitMinMaxDateTime(dp_inst, false);
305
+ this._injectTimePicker();
306
+ },
307
+
308
+ /*
309
+ * parse the time string from input value or _setTime
310
+ */
311
+ _parseTime: function (timeString, withDate) {
312
+ if (!this.inst) {
313
+ this.inst = $.datepicker._getInst(this.$input[0]);
314
+ }
315
+
316
+ if (withDate || !this._defaults.timeOnly) {
317
+ var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
318
+ try {
319
+ var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults);
320
+ if (!parseRes.timeObj) {
321
+ return false;
322
+ }
323
+ $.extend(this, parseRes.timeObj);
324
+ } catch (err) {
325
+ $.timepicker.log("Error parsing the date/time string: " + err +
326
+ "\ndate/time string = " + timeString +
327
+ "\ntimeFormat = " + this._defaults.timeFormat +
328
+ "\ndateFormat = " + dp_dateFormat);
329
+ return false;
330
+ }
331
+ return true;
332
+ } else {
333
+ var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults);
334
+ if (!timeObj) {
335
+ return false;
336
+ }
337
+ $.extend(this, timeObj);
338
+ return true;
339
+ }
340
+ },
341
+
342
+ /*
343
+ * generate and inject html for timepicker into ui datepicker
344
+ */
345
+ _injectTimePicker: function () {
346
+ var $dp = this.inst.dpDiv,
347
+ o = this.inst.settings,
348
+ tp_inst = this,
349
+ litem = '',
350
+ uitem = '',
351
+ show = null,
352
+ max = {},
353
+ gridSize = {},
354
+ size = null,
355
+ i = 0,
356
+ l = 0;
357
+
358
+ // Prevent displaying twice
359
+ if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) {
360
+ var noDisplay = ' style="display:none;"',
361
+ html = '<div class="ui-timepicker-div' + (o.isRTL ? ' ui-timepicker-rtl' : '') + '"><dl>' + '<dt class="ui_tpicker_time_label"' + ((o.showTime) ? '' : noDisplay) + '>' + o.timeText + '</dt>' +
362
+ '<dd class="ui_tpicker_time"' + ((o.showTime) ? '' : noDisplay) + '></dd>';
363
+
364
+ // Create the markup
365
+ for (i = 0, l = this.units.length; i < l; i++) {
366
+ litem = this.units[i];
367
+ uitem = litem.substr(0, 1).toUpperCase() + litem.substr(1);
368
+ show = o['show' + uitem] !== null ? o['show' + uitem] : this.support[litem];
369
+
370
+ // Added by Peter Medeiros:
371
+ // - Figure out what the hour/minute/second max should be based on the step values.
372
+ // - Example: if stepMinute is 15, then minMax is 45.
373
+ max[litem] = parseInt((o[litem + 'Max'] - ((o[litem + 'Max'] - o[litem + 'Min']) % o['step' + uitem])), 10);
374
+ gridSize[litem] = 0;
375
+
376
+ html += '<dt class="ui_tpicker_' + litem + '_label"' + (show ? '' : noDisplay) + '>' + o[litem + 'Text'] + '</dt>' +
377
+ '<dd class="ui_tpicker_' + litem + '"><div class="ui_tpicker_' + litem + '_slider"' + (show ? '' : noDisplay) + '></div>';
378
+
379
+ if (show && o[litem + 'Grid'] > 0) {
380
+ html += '<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>';
381
+
382
+ if (litem === 'hour') {
383
+ for (var h = o[litem + 'Min']; h <= max[litem]; h += parseInt(o[litem + 'Grid'], 10)) {
384
+ gridSize[litem]++;
385
+ var tmph = $.datepicker.formatTime(this.support.ampm ? 'hht' : 'HH', {hour: h}, o);
386
+ html += '<td data-for="' + litem + '">' + tmph + '</td>';
387
+ }
388
+ }
389
+ else {
390
+ for (var m = o[litem + 'Min']; m <= max[litem]; m += parseInt(o[litem + 'Grid'], 10)) {
391
+ gridSize[litem]++;
392
+ html += '<td data-for="' + litem + '">' + ((m < 10) ? '0' : '') + m + '</td>';
393
+ }
394
+ }
395
+
396
+ html += '</tr></table></div>';
397
+ }
398
+ html += '</dd>';
399
+ }
400
+
401
+ // Timezone
402
+ var showTz = o.showTimezone !== null ? o.showTimezone : this.support.timezone;
403
+ html += '<dt class="ui_tpicker_timezone_label"' + (showTz ? '' : noDisplay) + '>' + o.timezoneText + '</dt>';
404
+ html += '<dd class="ui_tpicker_timezone" ' + (showTz ? '' : noDisplay) + '></dd>';
405
+
406
+ // Create the elements from string
407
+ html += '</dl></div>';
408
+ var $tp = $(html);
409
+
410
+ // if we only want time picker...
411
+ if (o.timeOnly === true) {
412
+ $tp.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all">' + '<div class="ui-datepicker-title">' + o.timeOnlyTitle + '</div>' + '</div>');
413
+ $dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide();
414
+ }
415
+
416
+ // add sliders, adjust grids, add events
417
+ for (i = 0, l = tp_inst.units.length; i < l; i++) {
418
+ litem = tp_inst.units[i];
419
+ uitem = litem.substr(0, 1).toUpperCase() + litem.substr(1);
420
+ show = o['show' + uitem] !== null ? o['show' + uitem] : this.support[litem];
421
+
422
+ // add the slider
423
+ tp_inst[litem + '_slider'] = tp_inst.control.create(tp_inst, $tp.find('.ui_tpicker_' + litem + '_slider'), litem, tp_inst[litem], o[litem + 'Min'], max[litem], o['step' + uitem]);
424
+
425
+ // adjust the grid and add click event
426
+ if (show && o[litem + 'Grid'] > 0) {
427
+ size = 100 * gridSize[litem] * o[litem + 'Grid'] / (max[litem] - o[litem + 'Min']);
428
+ $tp.find('.ui_tpicker_' + litem + ' table').css({
429
+ width: size + "%",
430
+ marginLeft: o.isRTL ? '0' : ((size / (-2 * gridSize[litem])) + "%"),
431
+ marginRight: o.isRTL ? ((size / (-2 * gridSize[litem])) + "%") : '0',
432
+ borderCollapse: 'collapse'
433
+ }).find("td").click(function (e) {
434
+ var $t = $(this),
435
+ h = $t.html(),
436
+ n = parseInt(h.replace(/[^0-9]/g), 10),
437
+ ap = h.replace(/[^apm]/ig),
438
+ f = $t.data('for'); // loses scope, so we use data-for
439
+
440
+ if (f === 'hour') {
441
+ if (ap.indexOf('p') !== -1 && n < 12) {
442
+ n += 12;
443
+ }
444
+ else {
445
+ if (ap.indexOf('a') !== -1 && n === 12) {
446
+ n = 0;
447
+ }
448
+ }
449
+ }
450
+
451
+ tp_inst.control.value(tp_inst, tp_inst[f + '_slider'], litem, n);
452
+
453
+ tp_inst._onTimeChange();
454
+ tp_inst._onSelectHandler();
455
+ }).css({
456
+ cursor: 'pointer',
457
+ width: (100 / gridSize[litem]) + '%',
458
+ textAlign: 'center',
459
+ overflow: 'hidden'
460
+ });
461
+ } // end if grid > 0
462
+ } // end for loop
463
+
464
+ // Add timezone options
465
+ this.timezone_select = $tp.find('.ui_tpicker_timezone').append('<select></select>').find("select");
466
+ $.fn.append.apply(this.timezone_select,
467
+ $.map(o.timezoneList, function (val, idx) {
468
+ return $("<option />").val(typeof val === "object" ? val.value : val).text(typeof val === "object" ? val.label : val);
469
+ }));
470
+ if (typeof(this.timezone) !== "undefined" && this.timezone !== null && this.timezone !== "") {
471
+ var local_timezone = (new Date(this.inst.selectedYear, this.inst.selectedMonth, this.inst.selectedDay, 12)).getTimezoneOffset() * -1;
472
+ if (local_timezone === this.timezone) {
473
+ selectLocalTimezone(tp_inst);
474
+ } else {
475
+ this.timezone_select.val(this.timezone);
476
+ }
477
+ } else {
478
+ if (typeof(this.hour) !== "undefined" && this.hour !== null && this.hour !== "") {
479
+ this.timezone_select.val(o.timezone);
480
+ } else {
481
+ selectLocalTimezone(tp_inst);
482
+ }
483
+ }
484
+ this.timezone_select.change(function () {
485
+ tp_inst._onTimeChange();
486
+ tp_inst._onSelectHandler();
487
+ });
488
+ // End timezone options
489
+
490
+ // inject timepicker into datepicker
491
+ var $buttonPanel = $dp.find('.ui-datepicker-buttonpane');
492
+ if ($buttonPanel.length) {
493
+ $buttonPanel.before($tp);
494
+ } else {
495
+ $dp.append($tp);
496
+ }
497
+
498
+ this.$timeObj = $tp.find('.ui_tpicker_time');
499
+
500
+ if (this.inst !== null) {
501
+ var timeDefined = this.timeDefined;
502
+ this._onTimeChange();
503
+ this.timeDefined = timeDefined;
504
+ }
505
+
506
+ // slideAccess integration: http://trentrichardson.com/2011/11/11/jquery-ui-sliders-and-touch-accessibility/
507
+ if (this._defaults.addSliderAccess) {
508
+ var sliderAccessArgs = this._defaults.sliderAccessArgs,
509
+ rtl = this._defaults.isRTL;
510
+ sliderAccessArgs.isRTL = rtl;
511
+
512
+ setTimeout(function () { // fix for inline mode
513
+ if ($tp.find('.ui-slider-access').length === 0) {
514
+ $tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);
515
+
516
+ // fix any grids since sliders are shorter
517
+ var sliderAccessWidth = $tp.find('.ui-slider-access:eq(0)').outerWidth(true);
518
+ if (sliderAccessWidth) {
519
+ $tp.find('table:visible').each(function () {
520
+ var $g = $(this),
521
+ oldWidth = $g.outerWidth(),
522
+ oldMarginLeft = $g.css(rtl ? 'marginRight' : 'marginLeft').toString().replace('%', ''),
523
+ newWidth = oldWidth - sliderAccessWidth,
524
+ newMarginLeft = ((oldMarginLeft * newWidth) / oldWidth) + '%',
525
+ css = { width: newWidth, marginRight: 0, marginLeft: 0 };
526
+ css[rtl ? 'marginRight' : 'marginLeft'] = newMarginLeft;
527
+ $g.css(css);
528
+ });
529
+ }
530
+ }
531
+ }, 10);
532
+ }
533
+ // end slideAccess integration
534
+
535
+ tp_inst._limitMinMaxDateTime(this.inst, true);
536
+ }
537
+ },
538
+
539
+ /*
540
+ * This function tries to limit the ability to go outside the
541
+ * min/max date range
542
+ */
543
+ _limitMinMaxDateTime: function (dp_inst, adjustSliders) {
544
+ var o = this._defaults,
545
+ dp_date = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay);
546
+
547
+ if (!this._defaults.showTimepicker) {
548
+ return;
549
+ } // No time so nothing to check here
550
+
551
+ if ($.datepicker._get(dp_inst, 'minDateTime') !== null && $.datepicker._get(dp_inst, 'minDateTime') !== undefined && dp_date) {
552
+ var minDateTime = $.datepicker._get(dp_inst, 'minDateTime'),
553
+ minDateTimeDate = new Date(minDateTime.getFullYear(), minDateTime.getMonth(), minDateTime.getDate(), 0, 0, 0, 0);
554
+
555
+ if (this.hourMinOriginal === null || this.minuteMinOriginal === null || this.secondMinOriginal === null || this.millisecMinOriginal === null || this.microsecMinOriginal === null) {
556
+ this.hourMinOriginal = o.hourMin;
557
+ this.minuteMinOriginal = o.minuteMin;
558
+ this.secondMinOriginal = o.secondMin;
559
+ this.millisecMinOriginal = o.millisecMin;
560
+ this.microsecMinOriginal = o.microsecMin;
561
+ }
562
+
563
+ if (dp_inst.settings.timeOnly || minDateTimeDate.getTime() === dp_date.getTime()) {
564
+ this._defaults.hourMin = minDateTime.getHours();
565
+ if (this.hour <= this._defaults.hourMin) {
566
+ this.hour = this._defaults.hourMin;
567
+ this._defaults.minuteMin = minDateTime.getMinutes();
568
+ if (this.minute <= this._defaults.minuteMin) {
569
+ this.minute = this._defaults.minuteMin;
570
+ this._defaults.secondMin = minDateTime.getSeconds();
571
+ if (this.second <= this._defaults.secondMin) {
572
+ this.second = this._defaults.secondMin;
573
+ this._defaults.millisecMin = minDateTime.getMilliseconds();
574
+ if (this.millisec <= this._defaults.millisecMin) {
575
+ this.millisec = this._defaults.millisecMin;
576
+ this._defaults.microsecMin = minDateTime.getMicroseconds();
577
+ } else {
578
+ if (this.microsec < this._defaults.microsecMin) {
579
+ this.microsec = this._defaults.microsecMin;
580
+ }
581
+ this._defaults.microsecMin = this.microsecMinOriginal;
582
+ }
583
+ } else {
584
+ this._defaults.millisecMin = this.millisecMinOriginal;
585
+ this._defaults.microsecMin = this.microsecMinOriginal;
586
+ }
587
+ } else {
588
+ this._defaults.secondMin = this.secondMinOriginal;
589
+ this._defaults.millisecMin = this.millisecMinOriginal;
590
+ this._defaults.microsecMin = this.microsecMinOriginal;
591
+ }
592
+ } else {
593
+ this._defaults.minuteMin = this.minuteMinOriginal;
594
+ this._defaults.secondMin = this.secondMinOriginal;
595
+ this._defaults.millisecMin = this.millisecMinOriginal;
596
+ this._defaults.microsecMin = this.microsecMinOriginal;
597
+ }
598
+ } else {
599
+ this._defaults.hourMin = this.hourMinOriginal;
600
+ this._defaults.minuteMin = this.minuteMinOriginal;
601
+ this._defaults.secondMin = this.secondMinOriginal;
602
+ this._defaults.millisecMin = this.millisecMinOriginal;
603
+ this._defaults.microsecMin = this.microsecMinOriginal;
604
+ }
605
+ }
606
+
607
+ if ($.datepicker._get(dp_inst, 'maxDateTime') !== null && $.datepicker._get(dp_inst, 'maxDateTime') !== undefined && dp_date) {
608
+ var maxDateTime = $.datepicker._get(dp_inst, 'maxDateTime'),
609
+ maxDateTimeDate = new Date(maxDateTime.getFullYear(), maxDateTime.getMonth(), maxDateTime.getDate(), 0, 0, 0, 0);
610
+
611
+ if (this.hourMaxOriginal === null || this.minuteMaxOriginal === null || this.secondMaxOriginal === null || this.millisecMaxOriginal === null) {
612
+ this.hourMaxOriginal = o.hourMax;
613
+ this.minuteMaxOriginal = o.minuteMax;
614
+ this.secondMaxOriginal = o.secondMax;
615
+ this.millisecMaxOriginal = o.millisecMax;
616
+ this.microsecMaxOriginal = o.microsecMax;
617
+ }
618
+
619
+ if (dp_inst.settings.timeOnly || maxDateTimeDate.getTime() === dp_date.getTime()) {
620
+ this._defaults.hourMax = maxDateTime.getHours();
621
+ if (this.hour >= this._defaults.hourMax) {
622
+ this.hour = this._defaults.hourMax;
623
+ this._defaults.minuteMax = maxDateTime.getMinutes();
624
+ if (this.minute >= this._defaults.minuteMax) {
625
+ this.minute = this._defaults.minuteMax;
626
+ this._defaults.secondMax = maxDateTime.getSeconds();
627
+ if (this.second >= this._defaults.secondMax) {
628
+ this.second = this._defaults.secondMax;
629
+ this._defaults.millisecMax = maxDateTime.getMilliseconds();
630
+ if (this.millisec >= this._defaults.millisecMax) {
631
+ this.millisec = this._defaults.millisecMax;
632
+ this._defaults.microsecMax = maxDateTime.getMicroseconds();
633
+ } else {
634
+ if (this.microsec > this._defaults.microsecMax) {
635
+ this.microsec = this._defaults.microsecMax;
636
+ }
637
+ this._defaults.microsecMax = this.microsecMaxOriginal;
638
+ }
639
+ } else {
640
+ this._defaults.millisecMax = this.millisecMaxOriginal;
641
+ this._defaults.microsecMax = this.microsecMaxOriginal;
642
+ }
643
+ } else {
644
+ this._defaults.secondMax = this.secondMaxOriginal;
645
+ this._defaults.millisecMax = this.millisecMaxOriginal;
646
+ this._defaults.microsecMax = this.microsecMaxOriginal;
647
+ }
648
+ } else {
649
+ this._defaults.minuteMax = this.minuteMaxOriginal;
650
+ this._defaults.secondMax = this.secondMaxOriginal;
651
+ this._defaults.millisecMax = this.millisecMaxOriginal;
652
+ this._defaults.microsecMax = this.microsecMaxOriginal;
653
+ }
654
+ } else {
655
+ this._defaults.hourMax = this.hourMaxOriginal;
656
+ this._defaults.minuteMax = this.minuteMaxOriginal;
657
+ this._defaults.secondMax = this.secondMaxOriginal;
658
+ this._defaults.millisecMax = this.millisecMaxOriginal;
659
+ this._defaults.microsecMax = this.microsecMaxOriginal;
660
+ }
661
+ }
662
+
663
+ if (adjustSliders !== undefined && adjustSliders === true) {
664
+ var hourMax = parseInt((this._defaults.hourMax - ((this._defaults.hourMax - this._defaults.hourMin) % this._defaults.stepHour)), 10),
665
+ minMax = parseInt((this._defaults.minuteMax - ((this._defaults.minuteMax - this._defaults.minuteMin) % this._defaults.stepMinute)), 10),
666
+ secMax = parseInt((this._defaults.secondMax - ((this._defaults.secondMax - this._defaults.secondMin) % this._defaults.stepSecond)), 10),
667
+ millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10),
668
+ microsecMax = parseInt((this._defaults.microsecMax - ((this._defaults.microsecMax - this._defaults.microsecMin) % this._defaults.stepMicrosec)), 10);
669
+
670
+ if (this.hour_slider) {
671
+ this.control.options(this, this.hour_slider, 'hour', { min: this._defaults.hourMin, max: hourMax });
672
+ this.control.value(this, this.hour_slider, 'hour', this.hour - (this.hour % this._defaults.stepHour));
673
+ }
674
+ if (this.minute_slider) {
675
+ this.control.options(this, this.minute_slider, 'minute', { min: this._defaults.minuteMin, max: minMax });
676
+ this.control.value(this, this.minute_slider, 'minute', this.minute - (this.minute % this._defaults.stepMinute));
677
+ }
678
+ if (this.second_slider) {
679
+ this.control.options(this, this.second_slider, 'second', { min: this._defaults.secondMin, max: secMax });
680
+ this.control.value(this, this.second_slider, 'second', this.second - (this.second % this._defaults.stepSecond));
681
+ }
682
+ if (this.millisec_slider) {
683
+ this.control.options(this, this.millisec_slider, 'millisec', { min: this._defaults.millisecMin, max: millisecMax });
684
+ this.control.value(this, this.millisec_slider, 'millisec', this.millisec - (this.millisec % this._defaults.stepMillisec));
685
+ }
686
+ if (this.microsec_slider) {
687
+ this.control.options(this, this.microsec_slider, 'microsec', { min: this._defaults.microsecMin, max: microsecMax });
688
+ this.control.value(this, this.microsec_slider, 'microsec', this.microsec - (this.microsec % this._defaults.stepMicrosec));
689
+ }
690
+ }
691
+
692
+ },
693
+
694
+ /*
695
+ * when a slider moves, set the internal time...
696
+ * on time change is also called when the time is updated in the text field
697
+ */
698
+ _onTimeChange: function () {
699
+ if (!this._defaults.showTimepicker) {
700
+ return;
701
+ }
702
+ var hour = (this.hour_slider) ? this.control.value(this, this.hour_slider, 'hour') : false,
703
+ minute = (this.minute_slider) ? this.control.value(this, this.minute_slider, 'minute') : false,
704
+ second = (this.second_slider) ? this.control.value(this, this.second_slider, 'second') : false,
705
+ millisec = (this.millisec_slider) ? this.control.value(this, this.millisec_slider, 'millisec') : false,
706
+ microsec = (this.microsec_slider) ? this.control.value(this, this.microsec_slider, 'microsec') : false,
707
+ timezone = (this.timezone_select) ? this.timezone_select.val() : false,
708
+ o = this._defaults,
709
+ pickerTimeFormat = o.pickerTimeFormat || o.timeFormat,
710
+ pickerTimeSuffix = o.pickerTimeSuffix || o.timeSuffix;
711
+
712
+ if (typeof(hour) === 'object') {
713
+ hour = false;
714
+ }
715
+ if (typeof(minute) === 'object') {
716
+ minute = false;
717
+ }
718
+ if (typeof(second) === 'object') {
719
+ second = false;
720
+ }
721
+ if (typeof(millisec) === 'object') {
722
+ millisec = false;
723
+ }
724
+ if (typeof(microsec) === 'object') {
725
+ microsec = false;
726
+ }
727
+ if (typeof(timezone) === 'object') {
728
+ timezone = false;
729
+ }
730
+
731
+ if (hour !== false) {
732
+ hour = parseInt(hour, 10);
733
+ }
734
+ if (minute !== false) {
735
+ minute = parseInt(minute, 10);
736
+ }
737
+ if (second !== false) {
738
+ second = parseInt(second, 10);
739
+ }
740
+ if (millisec !== false) {
741
+ millisec = parseInt(millisec, 10);
742
+ }
743
+ if (microsec !== false) {
744
+ microsec = parseInt(microsec, 10);
745
+ }
746
+ if (timezone !== false) {
747
+ timezone = timezone.toString();
748
+ }
749
+
750
+ var ampm = o[hour < 12 ? 'amNames' : 'pmNames'][0];
751
+
752
+ // If the update was done in the input field, the input field should not be updated.
753
+ // If the update was done using the sliders, update the input field.
754
+ var hasChanged = (
755
+ hour !== parseInt(this.hour,10) || // sliders should all be numeric
756
+ minute !== parseInt(this.minute,10) ||
757
+ second !== parseInt(this.second,10) ||
758
+ millisec !== parseInt(this.millisec,10) ||
759
+ microsec !== parseInt(this.microsec,10) ||
760
+ (this.ampm.length > 0 && (hour < 12) !== ($.inArray(this.ampm.toUpperCase(), this.amNames) !== -1)) ||
761
+ (this.timezone !== null && timezone !== this.timezone.toString()) // could be numeric or "EST" format, so use toString()
762
+ );
763
+
764
+ if (hasChanged) {
765
+
766
+ if (hour !== false) {
767
+ this.hour = hour;
768
+ }
769
+ if (minute !== false) {
770
+ this.minute = minute;
771
+ }
772
+ if (second !== false) {
773
+ this.second = second;
774
+ }
775
+ if (millisec !== false) {
776
+ this.millisec = millisec;
777
+ }
778
+ if (microsec !== false) {
779
+ this.microsec = microsec;
780
+ }
781
+ if (timezone !== false) {
782
+ this.timezone = timezone;
783
+ }
784
+
785
+ if (!this.inst) {
786
+ this.inst = $.datepicker._getInst(this.$input[0]);
787
+ }
788
+
789
+ this._limitMinMaxDateTime(this.inst, true);
790
+ }
791
+ if (this.support.ampm) {
792
+ this.ampm = ampm;
793
+ }
794
+
795
+ // Updates the time within the timepicker
796
+ this.formattedTime = $.datepicker.formatTime(o.timeFormat, this, o);
797
+ if (this.$timeObj) {
798
+ if (pickerTimeFormat === o.timeFormat) {
799
+ this.$timeObj.text(this.formattedTime + pickerTimeSuffix);
800
+ }
801
+ else {
802
+ this.$timeObj.text($.datepicker.formatTime(pickerTimeFormat, this, o) + pickerTimeSuffix);
803
+ }
804
+ }
805
+
806
+ this.timeDefined = true;
807
+ if (hasChanged) {
808
+ this._updateDateTime();
809
+ this.$input.focus();
810
+ }
811
+ },
812
+
813
+ /*
814
+ * call custom onSelect.
815
+ * bind to sliders slidestop, and grid click.
816
+ */
817
+ _onSelectHandler: function () {
818
+ var onSelect = this._defaults.onSelect || this.inst.settings.onSelect;
819
+ var inputEl = this.$input ? this.$input[0] : null;
820
+ if (onSelect && inputEl) {
821
+ onSelect.apply(inputEl, [this.formattedDateTime, this]);
822
+ }
823
+ },
824
+
825
+ /*
826
+ * update our input with the new date time..
827
+ */
828
+ _updateDateTime: function (dp_inst) {
829
+ dp_inst = this.inst || dp_inst;
830
+ var dtTmp = (dp_inst.currentYear > 0?
831
+ new Date(dp_inst.currentYear, dp_inst.currentMonth, dp_inst.currentDay) :
832
+ new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
833
+ dt = $.datepicker._daylightSavingAdjust(dtTmp),
834
+ //dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
835
+ //dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.currentYear, dp_inst.currentMonth, dp_inst.currentDay)),
836
+ dateFmt = $.datepicker._get(dp_inst, 'dateFormat'),
837
+ formatCfg = $.datepicker._getFormatConfig(dp_inst),
838
+ timeAvailable = dt !== null && this.timeDefined;
839
+ this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg);
840
+ var formattedDateTime = this.formattedDate;
841
+
842
+ // if a slider was changed but datepicker doesn't have a value yet, set it
843
+ if (dp_inst.lastVal === "") {
844
+ dp_inst.currentYear = dp_inst.selectedYear;
845
+ dp_inst.currentMonth = dp_inst.selectedMonth;
846
+ dp_inst.currentDay = dp_inst.selectedDay;
847
+ }
848
+
849
+ /*
850
+ * remove following lines to force every changes in date picker to change the input value
851
+ * Bug descriptions: when an input field has a default value, and click on the field to pop up the date picker.
852
+ * If the user manually empty the value in the input field, the date picker will never change selected value.
853
+ */
854
+ //if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0)) {
855
+ // return;
856
+ //}
857
+
858
+ if (this._defaults.timeOnly === true) {
859
+ formattedDateTime = this.formattedTime;
860
+ } else if (this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) {
861
+ formattedDateTime += this._defaults.separator + this.formattedTime + this._defaults.timeSuffix;
862
+ }
863
+
864
+ this.formattedDateTime = formattedDateTime;
865
+
866
+ if (!this._defaults.showTimepicker) {
867
+ this.$input.val(this.formattedDate);
868
+ } else if (this.$altInput && this._defaults.timeOnly === false && this._defaults.altFieldTimeOnly === true) {
869
+ this.$altInput.val(this.formattedTime);
870
+ this.$input.val(this.formattedDate);
871
+ } else if (this.$altInput) {
872
+ this.$input.val(formattedDateTime);
873
+ var altFormattedDateTime = '',
874
+ altSeparator = this._defaults.altSeparator ? this._defaults.altSeparator : this._defaults.separator,
875
+ altTimeSuffix = this._defaults.altTimeSuffix ? this._defaults.altTimeSuffix : this._defaults.timeSuffix;
876
+
877
+ if (!this._defaults.timeOnly) {
878
+ if (this._defaults.altFormat) {
879
+ altFormattedDateTime = $.datepicker.formatDate(this._defaults.altFormat, (dt === null ? new Date() : dt), formatCfg);
880
+ }
881
+ else {
882
+ altFormattedDateTime = this.formattedDate;
883
+ }
884
+
885
+ if (altFormattedDateTime) {
886
+ altFormattedDateTime += altSeparator;
887
+ }
888
+ }
889
+
890
+ if (this._defaults.altTimeFormat) {
891
+ altFormattedDateTime += $.datepicker.formatTime(this._defaults.altTimeFormat, this, this._defaults) + altTimeSuffix;
892
+ }
893
+ else {
894
+ altFormattedDateTime += this.formattedTime + altTimeSuffix;
895
+ }
896
+ this.$altInput.val(altFormattedDateTime);
897
+ } else {
898
+ this.$input.val(formattedDateTime);
899
+ }
900
+
901
+ this.$input.trigger("change");
902
+ },
903
+
904
+ _onFocus: function () {
905
+ if (!this.$input.val() && this._defaults.defaultValue) {
906
+ this.$input.val(this._defaults.defaultValue);
907
+ var inst = $.datepicker._getInst(this.$input.get(0)),
908
+ tp_inst = $.datepicker._get(inst, 'timepicker');
909
+ if (tp_inst) {
910
+ if (tp_inst._defaults.timeOnly && (inst.input.val() !== inst.lastVal)) {
911
+ try {
912
+ $.datepicker._updateDatepicker(inst);
913
+ } catch (err) {
914
+ $.timepicker.log(err);
915
+ }
916
+ }
917
+ }
918
+ }
919
+ },
920
+
921
+ /*
922
+ * Small abstraction to control types
923
+ * We can add more, just be sure to follow the pattern: create, options, value
924
+ */
925
+ _controls: {
926
+ // slider methods
927
+ slider: {
928
+ create: function (tp_inst, obj, unit, val, min, max, step) {
929
+ var rtl = tp_inst._defaults.isRTL; // if rtl go -60->0 instead of 0->60
930
+ return obj.prop('slide', null).slider({
931
+ orientation: "horizontal",
932
+ value: rtl ? val * -1 : val,
933
+ min: rtl ? max * -1 : min,
934
+ max: rtl ? min * -1 : max,
935
+ step: step,
936
+ slide: function (event, ui) {
937
+ tp_inst.control.value(tp_inst, $(this), unit, rtl ? ui.value * -1 : ui.value);
938
+ tp_inst._onTimeChange();
939
+ },
940
+ stop: function (event, ui) {
941
+ tp_inst._onSelectHandler();
942
+ }
943
+ });
944
+ },
945
+ options: function (tp_inst, obj, unit, opts, val) {
946
+ if (tp_inst._defaults.isRTL) {
947
+ if (typeof(opts) === 'string') {
948
+ if (opts === 'min' || opts === 'max') {
949
+ if (val !== undefined) {
950
+ return obj.slider(opts, val * -1);
951
+ }
952
+ return Math.abs(obj.slider(opts));
953
+ }
954
+ return obj.slider(opts);
955
+ }
956
+ var min = opts.min,
957
+ max = opts.max;
958
+ opts.min = opts.max = null;
959
+ if (min !== undefined) {
960
+ opts.max = min * -1;
961
+ }
962
+ if (max !== undefined) {
963
+ opts.min = max * -1;
964
+ }
965
+ return obj.slider(opts);
966
+ }
967
+ if (typeof(opts) === 'string' && val !== undefined) {
968
+ return obj.slider(opts, val);
969
+ }
970
+ return obj.slider(opts);
971
+ },
972
+ value: function (tp_inst, obj, unit, val) {
973
+ if (tp_inst._defaults.isRTL) {
974
+ if (val !== undefined) {
975
+ return obj.slider('value', val * -1);
976
+ }
977
+ return Math.abs(obj.slider('value'));
978
+ }
979
+ if (val !== undefined) {
980
+ return obj.slider('value', val);
981
+ }
982
+ return obj.slider('value');
983
+ }
984
+ },
985
+ // select methods
986
+ select: {
987
+ create: function (tp_inst, obj, unit, val, min, max, step) {
988
+ var sel = '<select class="ui-timepicker-select" data-unit="' + unit + '" data-min="' + min + '" data-max="' + max + '" data-step="' + step + '">',
989
+ format = tp_inst._defaults.pickerTimeFormat || tp_inst._defaults.timeFormat;
990
+
991
+ for (var i = min; i <= max; i += step) {
992
+ sel += '<option value="' + i + '"' + (i === val ? ' selected' : '') + '>';
993
+ if (unit === 'hour') {
994
+ sel += $.datepicker.formatTime($.trim(format.replace(/[^ht ]/ig, '')), {hour: i}, tp_inst._defaults);
995
+ }
996
+ else if (unit === 'millisec' || unit === 'microsec' || i >= 10) { sel += i; }
997
+ else {sel += '0' + i.toString(); }
998
+ sel += '</option>';
999
+ }
1000
+ sel += '</select>';
1001
+
1002
+ obj.children('select').remove();
1003
+
1004
+ $(sel).appendTo(obj).change(function (e) {
1005
+ tp_inst._onTimeChange();
1006
+ tp_inst._onSelectHandler();
1007
+ });
1008
+
1009
+ return obj;
1010
+ },
1011
+ options: function (tp_inst, obj, unit, opts, val) {
1012
+ var o = {},
1013
+ $t = obj.children('select');
1014
+ if (typeof(opts) === 'string') {
1015
+ if (val === undefined) {
1016
+ return $t.data(opts);
1017
+ }
1018
+ o[opts] = val;
1019
+ }
1020
+ else { o = opts; }
1021
+ return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
1022
+ },
1023
+ value: function (tp_inst, obj, unit, val) {
1024
+ var $t = obj.children('select');
1025
+ if (val !== undefined) {
1026
+ return $t.val(val);
1027
+ }
1028
+ return $t.val();
1029
+ }
1030
+ }
1031
+ } // end _controls
1032
+
1033
+ });
1034
+
1035
+ $.fn.extend({
1036
+ /*
1037
+ * shorthand just to use timepicker.
1038
+ */
1039
+ timepicker: function (o) {
1040
+ o = o || {};
1041
+ var tmp_args = Array.prototype.slice.call(arguments);
1042
+
1043
+ if (typeof o === 'object') {
1044
+ tmp_args[0] = $.extend(o, {
1045
+ timeOnly: true
1046
+ });
1047
+ }
1048
+
1049
+ return $(this).each(function () {
1050
+ $.fn.datetimepicker.apply($(this), tmp_args);
1051
+ });
1052
+ },
1053
+
1054
+ /*
1055
+ * extend timepicker to datepicker
1056
+ */
1057
+ datetimepicker: function (o) {
1058
+ o = o || {};
1059
+ var tmp_args = arguments;
1060
+
1061
+ if (typeof(o) === 'string') {
1062
+ if (o === 'getDate') {
1063
+ return $.fn.datepicker.apply($(this[0]), tmp_args);
1064
+ } else {
1065
+ return this.each(function () {
1066
+ var $t = $(this);
1067
+ $t.datepicker.apply($t, tmp_args);
1068
+ });
1069
+ }
1070
+ } else {
1071
+ return this.each(function () {
1072
+ var $t = $(this);
1073
+ $t.datepicker($.timepicker._newInst($t, o)._defaults);
1074
+ });
1075
+ }
1076
+ }
1077
+ });
1078
+
1079
+ /*
1080
+ * Public Utility to parse date and time
1081
+ */
1082
+ $.datepicker.parseDateTime = function (dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
1083
+ var parseRes = parseDateTimeInternal(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings);
1084
+ if (parseRes.timeObj) {
1085
+ var t = parseRes.timeObj;
1086
+ parseRes.date.setHours(t.hour, t.minute, t.second, t.millisec);
1087
+ parseRes.date.setMicroseconds(t.microsec);
1088
+ }
1089
+
1090
+ return parseRes.date;
1091
+ };
1092
+
1093
+ /*
1094
+ * Public utility to parse time
1095
+ */
1096
+ $.datepicker.parseTime = function (timeFormat, timeString, options) {
1097
+ var o = extendRemove(extendRemove({}, $.timepicker._defaults), options || {}),
1098
+ iso8601 = (timeFormat.replace(/\'.*?\'/g, '').indexOf('Z') !== -1);
1099
+
1100
+ // Strict parse requires the timeString to match the timeFormat exactly
1101
+ var strictParse = function (f, s, o) {
1102
+
1103
+ // pattern for standard and localized AM/PM markers
1104
+ var getPatternAmpm = function (amNames, pmNames) {
1105
+ var markers = [];
1106
+ if (amNames) {
1107
+ $.merge(markers, amNames);
1108
+ }
1109
+ if (pmNames) {
1110
+ $.merge(markers, pmNames);
1111
+ }
1112
+ markers = $.map(markers, function (val) {
1113
+ return val.replace(/[.*+?|()\[\]{}\\]/g, '\\$&');
1114
+ });
1115
+ return '(' + markers.join('|') + ')?';
1116
+ };
1117
+
1118
+ // figure out position of time elements.. cause js cant do named captures
1119
+ var getFormatPositions = function (timeFormat) {
1120
+ var finds = timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),
1121
+ orders = {
1122
+ h: -1,
1123
+ m: -1,
1124
+ s: -1,
1125
+ l: -1,
1126
+ c: -1,
1127
+ t: -1,
1128
+ z: -1
1129
+ };
1130
+
1131
+ if (finds) {
1132
+ for (var i = 0; i < finds.length; i++) {
1133
+ if (orders[finds[i].toString().charAt(0)] === -1) {
1134
+ orders[finds[i].toString().charAt(0)] = i + 1;
1135
+ }
1136
+ }
1137
+ }
1138
+ return orders;
1139
+ };
1140
+
1141
+ var regstr = '^' + f.toString()
1142
+ .replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g, function (match) {
1143
+ var ml = match.length;
1144
+ switch (match.charAt(0).toLowerCase()) {
1145
+ case 'h':
1146
+ return ml === 1 ? '(\\d?\\d)' : '(\\d{' + ml + '})';
1147
+ case 'm':
1148
+ return ml === 1 ? '(\\d?\\d)' : '(\\d{' + ml + '})';
1149
+ case 's':
1150
+ return ml === 1 ? '(\\d?\\d)' : '(\\d{' + ml + '})';
1151
+ case 'l':
1152
+ return '(\\d?\\d?\\d)';
1153
+ case 'c':
1154
+ return '(\\d?\\d?\\d)';
1155
+ case 'z':
1156
+ return '(z|[-+]\\d\\d:?\\d\\d|\\S+)?';
1157
+ case 't':
1158
+ return getPatternAmpm(o.amNames, o.pmNames);
1159
+ default: // literal escaped in quotes
1160
+ return '(' + match.replace(/\'/g, "").replace(/(\.|\$|\^|\\|\/|\(|\)|\[|\]|\?|\+|\*)/g, function (m) { return "\\" + m; }) + ')?';
1161
+ }
1162
+ })
1163
+ .replace(/\s/g, '\\s?') +
1164
+ o.timeSuffix + '$',
1165
+ order = getFormatPositions(f),
1166
+ ampm = '',
1167
+ treg;
1168
+
1169
+ treg = s.match(new RegExp(regstr, 'i'));
1170
+
1171
+ var resTime = {
1172
+ hour: 0,
1173
+ minute: 0,
1174
+ second: 0,
1175
+ millisec: 0,
1176
+ microsec: 0
1177
+ };
1178
+
1179
+ if (treg) {
1180
+ if (order.t !== -1) {
1181
+ if (treg[order.t] === undefined || treg[order.t].length === 0) {
1182
+ ampm = '';
1183
+ resTime.ampm = '';
1184
+ } else {
1185
+ ampm = $.inArray(treg[order.t].toUpperCase(), o.amNames) !== -1 ? 'AM' : 'PM';
1186
+ resTime.ampm = o[ampm === 'AM' ? 'amNames' : 'pmNames'][0];
1187
+ }
1188
+ }
1189
+
1190
+ if (order.h !== -1) {
1191
+ if (ampm === 'AM' && treg[order.h] === '12') {
1192
+ resTime.hour = 0; // 12am = 0 hour
1193
+ } else {
1194
+ if (ampm === 'PM' && treg[order.h] !== '12') {
1195
+ resTime.hour = parseInt(treg[order.h], 10) + 12; // 12pm = 12 hour, any other pm = hour + 12
1196
+ } else {
1197
+ resTime.hour = Number(treg[order.h]);
1198
+ }
1199
+ }
1200
+ }
1201
+
1202
+ if (order.m !== -1) {
1203
+ resTime.minute = Number(treg[order.m]);
1204
+ }
1205
+ if (order.s !== -1) {
1206
+ resTime.second = Number(treg[order.s]);
1207
+ }
1208
+ if (order.l !== -1) {
1209
+ resTime.millisec = Number(treg[order.l]);
1210
+ }
1211
+ if (order.c !== -1) {
1212
+ resTime.microsec = Number(treg[order.c]);
1213
+ }
1214
+ if (order.z !== -1 && treg[order.z] !== undefined) {
1215
+ resTime.timezone = $.timepicker.timezoneOffsetNumber(treg[order.z]);
1216
+ }
1217
+
1218
+
1219
+ return resTime;
1220
+ }
1221
+ return false;
1222
+ };// end strictParse
1223
+
1224
+ // First try JS Date, if that fails, use strictParse
1225
+ var looseParse = function (f, s, o) {
1226
+ try {
1227
+ var d = new Date('2012-01-01 ' + s);
1228
+ if (isNaN(d.getTime())) {
1229
+ d = new Date('2012-01-01T' + s);
1230
+ if (isNaN(d.getTime())) {
1231
+ d = new Date('01/01/2012 ' + s);
1232
+ if (isNaN(d.getTime())) {
1233
+ throw "Unable to parse time with native Date: " + s;
1234
+ }
1235
+ }
1236
+ }
1237
+
1238
+ return {
1239
+ hour: d.getHours(),
1240
+ minute: d.getMinutes(),
1241
+ second: d.getSeconds(),
1242
+ millisec: d.getMilliseconds(),
1243
+ microsec: d.getMicroseconds(),
1244
+ timezone: d.getTimezoneOffset() * -1
1245
+ };
1246
+ }
1247
+ catch (err) {
1248
+ try {
1249
+ return strictParse(f, s, o);
1250
+ }
1251
+ catch (err2) {
1252
+ $.timepicker.log("Unable to parse \ntimeString: " + s + "\ntimeFormat: " + f);
1253
+ }
1254
+ }
1255
+ return false;
1256
+ }; // end looseParse
1257
+
1258
+ if (typeof o.parse === "function") {
1259
+ return o.parse(timeFormat, timeString, o);
1260
+ }
1261
+ if (o.parse === 'loose') {
1262
+ return looseParse(timeFormat, timeString, o);
1263
+ }
1264
+ return strictParse(timeFormat, timeString, o);
1265
+ };
1266
+
1267
+ /**
1268
+ * Public utility to format the time
1269
+ * @param {string} format format of the time
1270
+ * @param {Object} time Object not a Date for timezones
1271
+ * @param {Object} [options] essentially the regional[].. amNames, pmNames, ampm
1272
+ * @returns {string} the formatted time
1273
+ */
1274
+ $.datepicker.formatTime = function (format, time, options) {
1275
+ options = options || {};
1276
+ options = $.extend({}, $.timepicker._defaults, options);
1277
+ time = $.extend({
1278
+ hour: 0,
1279
+ minute: 0,
1280
+ second: 0,
1281
+ millisec: 0,
1282
+ microsec: 0,
1283
+ timezone: null
1284
+ }, time);
1285
+
1286
+ var tmptime = format,
1287
+ ampmName = options.amNames[0],
1288
+ hour = parseInt(time.hour, 10);
1289
+
1290
+ if (hour > 11) {
1291
+ ampmName = options.pmNames[0];
1292
+ }
1293
+
1294
+ tmptime = tmptime.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g, function (match) {
1295
+ switch (match) {
1296
+ case 'HH':
1297
+ return ('0' + hour).slice(-2);
1298
+ case 'H':
1299
+ return hour;
1300
+ case 'hh':
1301
+ return ('0' + convert24to12(hour)).slice(-2);
1302
+ case 'h':
1303
+ return convert24to12(hour);
1304
+ case 'mm':
1305
+ return ('0' + time.minute).slice(-2);
1306
+ case 'm':
1307
+ return time.minute;
1308
+ case 'ss':
1309
+ return ('0' + time.second).slice(-2);
1310
+ case 's':
1311
+ return time.second;
1312
+ case 'l':
1313
+ return ('00' + time.millisec).slice(-3);
1314
+ case 'c':
1315
+ return ('00' + time.microsec).slice(-3);
1316
+ case 'z':
1317
+ return $.timepicker.timezoneOffsetString(time.timezone === null ? options.timezone : time.timezone, false);
1318
+ case 'Z':
1319
+ return $.timepicker.timezoneOffsetString(time.timezone === null ? options.timezone : time.timezone, true);
1320
+ case 'T':
1321
+ return ampmName.charAt(0).toUpperCase();
1322
+ case 'TT':
1323
+ return ampmName.toUpperCase();
1324
+ case 't':
1325
+ return ampmName.charAt(0).toLowerCase();
1326
+ case 'tt':
1327
+ return ampmName.toLowerCase();
1328
+ default:
1329
+ return match.replace(/'/g, "");
1330
+ }
1331
+ });
1332
+
1333
+ return tmptime;
1334
+ };
1335
+
1336
+ /*
1337
+ * the bad hack :/ override datepicker so it doesn't close on select
1338
+ // inspired: http://stackoverflow.com/questions/1252512/jquery-datepicker-prevent-closing-picker-when-clicking-a-date/1762378#1762378
1339
+ */
1340
+ $.datepicker._base_selectDate = $.datepicker._selectDate;
1341
+ $.datepicker._selectDate = function (id, dateStr) {
1342
+ var inst = this._getInst($(id)[0]),
1343
+ tp_inst = this._get(inst, 'timepicker');
1344
+
1345
+ if (tp_inst) {
1346
+ tp_inst._limitMinMaxDateTime(inst, true);
1347
+ inst.inline = inst.stay_open = true;
1348
+ //This way the onSelect handler called from calendarpicker get the full dateTime
1349
+ this._base_selectDate(id, dateStr);
1350
+ inst.inline = inst.stay_open = false;
1351
+ this._notifyChange(inst);
1352
+ this._updateDatepicker(inst);
1353
+ } else {
1354
+ this._base_selectDate(id, dateStr);
1355
+ }
1356
+ };
1357
+
1358
+ /*
1359
+ * second bad hack :/ override datepicker so it triggers an event when changing the input field
1360
+ * and does not redraw the datepicker on every selectDate event
1361
+ */
1362
+ $.datepicker._base_updateDatepicker = $.datepicker._updateDatepicker;
1363
+ $.datepicker._updateDatepicker = function (inst) {
1364
+
1365
+ // don't popup the datepicker if there is another instance already opened
1366
+ var input = inst.input[0];
1367
+ if ($.datepicker._curInst && $.datepicker._curInst !== inst && $.datepicker._datepickerShowing && $.datepicker._lastInput !== input) {
1368
+ return;
1369
+ }
1370
+
1371
+ if (typeof(inst.stay_open) !== 'boolean' || inst.stay_open === false) {
1372
+
1373
+ this._base_updateDatepicker(inst);
1374
+
1375
+ // Reload the time control when changing something in the input text field.
1376
+ var tp_inst = this._get(inst, 'timepicker');
1377
+ if (tp_inst) {
1378
+ tp_inst._addTimePicker(inst);
1379
+ }
1380
+ }
1381
+ };
1382
+
1383
+ /*
1384
+ * third bad hack :/ override datepicker so it allows spaces and colon in the input field
1385
+ */
1386
+ $.datepicker._base_doKeyPress = $.datepicker._doKeyPress;
1387
+ $.datepicker._doKeyPress = function (event) {
1388
+ var inst = $.datepicker._getInst(event.target),
1389
+ tp_inst = $.datepicker._get(inst, 'timepicker');
1390
+
1391
+ if (tp_inst) {
1392
+ if ($.datepicker._get(inst, 'constrainInput')) {
1393
+ var ampm = tp_inst.support.ampm,
1394
+ tz = tp_inst._defaults.showTimezone !== null ? tp_inst._defaults.showTimezone : tp_inst.support.timezone,
1395
+ dateChars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')),
1396
+ datetimeChars = tp_inst._defaults.timeFormat.toString()
1397
+ .replace(/[hms]/g, '')
1398
+ .replace(/TT/g, ampm ? 'APM' : '')
1399
+ .replace(/Tt/g, ampm ? 'AaPpMm' : '')
1400
+ .replace(/tT/g, ampm ? 'AaPpMm' : '')
1401
+ .replace(/T/g, ampm ? 'AP' : '')
1402
+ .replace(/tt/g, ampm ? 'apm' : '')
1403
+ .replace(/t/g, ampm ? 'ap' : '') +
1404
+ " " + tp_inst._defaults.separator +
1405
+ tp_inst._defaults.timeSuffix +
1406
+ (tz ? tp_inst._defaults.timezoneList.join('') : '') +
1407
+ (tp_inst._defaults.amNames.join('')) + (tp_inst._defaults.pmNames.join('')) +
1408
+ dateChars,
1409
+ chr = String.fromCharCode(event.charCode === undefined ? event.keyCode : event.charCode);
1410
+ return event.ctrlKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);
1411
+ }
1412
+ }
1413
+
1414
+ return $.datepicker._base_doKeyPress(event);
1415
+ };
1416
+
1417
+ /*
1418
+ * Fourth bad hack :/ override _updateAlternate function used in inline mode to init altField
1419
+ * Update any alternate field to synchronise with the main field.
1420
+ */
1421
+ $.datepicker._base_updateAlternate = $.datepicker._updateAlternate;
1422
+ $.datepicker._updateAlternate = function (inst) {
1423
+ var tp_inst = this._get(inst, 'timepicker');
1424
+ if (tp_inst) {
1425
+ var altField = tp_inst._defaults.altField;
1426
+ if (altField) { // update alternate field too
1427
+ var altFormat = tp_inst._defaults.altFormat || tp_inst._defaults.dateFormat,
1428
+ date = this._getDate(inst),
1429
+ formatCfg = $.datepicker._getFormatConfig(inst),
1430
+ altFormattedDateTime = '',
1431
+ altSeparator = tp_inst._defaults.altSeparator ? tp_inst._defaults.altSeparator : tp_inst._defaults.separator,
1432
+ altTimeSuffix = tp_inst._defaults.altTimeSuffix ? tp_inst._defaults.altTimeSuffix : tp_inst._defaults.timeSuffix,
1433
+ altTimeFormat = tp_inst._defaults.altTimeFormat !== null ? tp_inst._defaults.altTimeFormat : tp_inst._defaults.timeFormat;
1434
+
1435
+ altFormattedDateTime += $.datepicker.formatTime(altTimeFormat, tp_inst, tp_inst._defaults) + altTimeSuffix;
1436
+ if (!tp_inst._defaults.timeOnly && !tp_inst._defaults.altFieldTimeOnly && date !== null) {
1437
+ if (tp_inst._defaults.altFormat) {
1438
+ altFormattedDateTime = $.datepicker.formatDate(tp_inst._defaults.altFormat, date, formatCfg) + altSeparator + altFormattedDateTime;
1439
+ }
1440
+ else {
1441
+ altFormattedDateTime = tp_inst.formattedDate + altSeparator + altFormattedDateTime;
1442
+ }
1443
+ }
1444
+ $(altField).val(altFormattedDateTime);
1445
+ }
1446
+ }
1447
+ else {
1448
+ $.datepicker._base_updateAlternate(inst);
1449
+ }
1450
+ };
1451
+
1452
+ /*
1453
+ * Override key up event to sync manual input changes.
1454
+ */
1455
+ $.datepicker._base_doKeyUp = $.datepicker._doKeyUp;
1456
+ $.datepicker._doKeyUp = function (event) {
1457
+ var inst = $.datepicker._getInst(event.target),
1458
+ tp_inst = $.datepicker._get(inst, 'timepicker');
1459
+
1460
+ if (tp_inst) {
1461
+ if (tp_inst._defaults.timeOnly && (inst.input.val() !== inst.lastVal)) {
1462
+ try {
1463
+ $.datepicker._updateDatepicker(inst);
1464
+ } catch (err) {
1465
+ $.timepicker.log(err);
1466
+ }
1467
+ }
1468
+ }
1469
+
1470
+ return $.datepicker._base_doKeyUp(event);
1471
+ };
1472
+
1473
+ /*
1474
+ * override "Today" button to also grab the time.
1475
+ */
1476
+ $.datepicker._base_gotoToday = $.datepicker._gotoToday;
1477
+ $.datepicker._gotoToday = function (id) {
1478
+ var inst = this._getInst($(id)[0]),
1479
+ $dp = inst.dpDiv;
1480
+ this._base_gotoToday(id);
1481
+ var tp_inst = this._get(inst, 'timepicker');
1482
+ selectLocalTimezone(tp_inst);
1483
+ var now = new Date();
1484
+ this._setTime(inst, now);
1485
+ $('.ui-datepicker-today', $dp).click();
1486
+ };
1487
+
1488
+ /*
1489
+ * Disable & enable the Time in the datetimepicker
1490
+ */
1491
+ $.datepicker._disableTimepickerDatepicker = function (target) {
1492
+ var inst = this._getInst(target);
1493
+ if (!inst) {
1494
+ return;
1495
+ }
1496
+
1497
+ var tp_inst = this._get(inst, 'timepicker');
1498
+ $(target).datepicker('getDate'); // Init selected[Year|Month|Day]
1499
+ if (tp_inst) {
1500
+ inst.settings.showTimepicker = false;
1501
+ tp_inst._defaults.showTimepicker = false;
1502
+ tp_inst._updateDateTime(inst);
1503
+ }
1504
+ };
1505
+
1506
+ $.datepicker._enableTimepickerDatepicker = function (target) {
1507
+ var inst = this._getInst(target);
1508
+ if (!inst) {
1509
+ return;
1510
+ }
1511
+
1512
+ var tp_inst = this._get(inst, 'timepicker');
1513
+ $(target).datepicker('getDate'); // Init selected[Year|Month|Day]
1514
+ if (tp_inst) {
1515
+ inst.settings.showTimepicker = true;
1516
+ tp_inst._defaults.showTimepicker = true;
1517
+ tp_inst._addTimePicker(inst); // Could be disabled on page load
1518
+ tp_inst._updateDateTime(inst);
1519
+ }
1520
+ };
1521
+
1522
+ /*
1523
+ * Create our own set time function
1524
+ */
1525
+ $.datepicker._setTime = function (inst, date) {
1526
+ var tp_inst = this._get(inst, 'timepicker');
1527
+ if (tp_inst) {
1528
+ var defaults = tp_inst._defaults;
1529
+
1530
+ // calling _setTime with no date sets time to defaults
1531
+ tp_inst.hour = date ? date.getHours() : defaults.hour;
1532
+ tp_inst.minute = date ? date.getMinutes() : defaults.minute;
1533
+ tp_inst.second = date ? date.getSeconds() : defaults.second;
1534
+ tp_inst.millisec = date ? date.getMilliseconds() : defaults.millisec;
1535
+ tp_inst.microsec = date ? date.getMicroseconds() : defaults.microsec;
1536
+
1537
+ //check if within min/max times..
1538
+ tp_inst._limitMinMaxDateTime(inst, true);
1539
+
1540
+ tp_inst._onTimeChange();
1541
+ tp_inst._updateDateTime(inst);
1542
+ }
1543
+ };
1544
+
1545
+ /*
1546
+ * Create new public method to set only time, callable as $().datepicker('setTime', date)
1547
+ */
1548
+ $.datepicker._setTimeDatepicker = function (target, date, withDate) {
1549
+ var inst = this._getInst(target);
1550
+ if (!inst) {
1551
+ return;
1552
+ }
1553
+
1554
+ var tp_inst = this._get(inst, 'timepicker');
1555
+
1556
+ if (tp_inst) {
1557
+ this._setDateFromField(inst);
1558
+ var tp_date;
1559
+ if (date) {
1560
+ if (typeof date === "string") {
1561
+ tp_inst._parseTime(date, withDate);
1562
+ tp_date = new Date();
1563
+ tp_date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec);
1564
+ tp_date.setMicroseconds(tp_inst.microsec);
1565
+ } else {
1566
+ tp_date = new Date(date.getTime());
1567
+ tp_date.setMicroseconds(date.getMicroseconds());
1568
+ }
1569
+ if (tp_date.toString() === 'Invalid Date') {
1570
+ tp_date = undefined;
1571
+ }
1572
+ this._setTime(inst, tp_date);
1573
+ }
1574
+ }
1575
+
1576
+ };
1577
+
1578
+ /*
1579
+ * override setDate() to allow setting time too within Date object
1580
+ */
1581
+ $.datepicker._base_setDateDatepicker = $.datepicker._setDateDatepicker;
1582
+ $.datepicker._setDateDatepicker = function (target, date) {
1583
+ var inst = this._getInst(target);
1584
+ if (!inst) {
1585
+ return;
1586
+ }
1587
+
1588
+ if (typeof(date) === 'string') {
1589
+ date = new Date(date);
1590
+ if (!date.getTime()) {
1591
+ $.timepicker.log("Error creating Date object from string.");
1592
+ }
1593
+ }
1594
+
1595
+ var tp_inst = this._get(inst, 'timepicker');
1596
+ var tp_date;
1597
+ if (date instanceof Date) {
1598
+ tp_date = new Date(date.getTime());
1599
+ tp_date.setMicroseconds(date.getMicroseconds());
1600
+ } else {
1601
+ tp_date = date;
1602
+ }
1603
+
1604
+ // This is important if you are using the timezone option, javascript's Date
1605
+ // object will only return the timezone offset for the current locale, so we
1606
+ // adjust it accordingly. If not using timezone option this won't matter..
1607
+ // If a timezone is different in tp, keep the timezone as is
1608
+ if (tp_inst) {
1609
+ // look out for DST if tz wasn't specified
1610
+ if (!tp_inst.support.timezone && tp_inst._defaults.timezone === null) {
1611
+ tp_inst.timezone = tp_date.getTimezoneOffset() * -1;
1612
+ }
1613
+ date = $.timepicker.timezoneAdjust(date, tp_inst.timezone);
1614
+ tp_date = $.timepicker.timezoneAdjust(tp_date, tp_inst.timezone);
1615
+ }
1616
+
1617
+ this._updateDatepicker(inst);
1618
+ this._base_setDateDatepicker.apply(this, arguments);
1619
+ this._setTimeDatepicker(target, tp_date, true);
1620
+ };
1621
+
1622
+ /*
1623
+ * override getDate() to allow getting time too within Date object
1624
+ */
1625
+ $.datepicker._base_getDateDatepicker = $.datepicker._getDateDatepicker;
1626
+ $.datepicker._getDateDatepicker = function (target, noDefault) {
1627
+ var inst = this._getInst(target);
1628
+ if (!inst) {
1629
+ return;
1630
+ }
1631
+
1632
+ var tp_inst = this._get(inst, 'timepicker');
1633
+
1634
+ if (tp_inst) {
1635
+ // if it hasn't yet been defined, grab from field
1636
+ if (inst.lastVal === undefined) {
1637
+ this._setDateFromField(inst, noDefault);
1638
+ }
1639
+
1640
+ var date = this._getDate(inst);
1641
+ if (date && tp_inst._parseTime($(target).val(), tp_inst.timeOnly)) {
1642
+ date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec);
1643
+ date.setMicroseconds(tp_inst.microsec);
1644
+
1645
+ // This is important if you are using the timezone option, javascript's Date
1646
+ // object will only return the timezone offset for the current locale, so we
1647
+ // adjust it accordingly. If not using timezone option this won't matter..
1648
+ if (tp_inst.timezone != null) {
1649
+ // look out for DST if tz wasn't specified
1650
+ if (!tp_inst.support.timezone && tp_inst._defaults.timezone === null) {
1651
+ tp_inst.timezone = date.getTimezoneOffset() * -1;
1652
+ }
1653
+ date = $.timepicker.timezoneAdjust(date, tp_inst.timezone);
1654
+ }
1655
+ }
1656
+ return date;
1657
+ }
1658
+ return this._base_getDateDatepicker(target, noDefault);
1659
+ };
1660
+
1661
+ /*
1662
+ * override parseDate() because UI 1.8.14 throws an error about "Extra characters"
1663
+ * An option in datapicker to ignore extra format characters would be nicer.
1664
+ */
1665
+ $.datepicker._base_parseDate = $.datepicker.parseDate;
1666
+ $.datepicker.parseDate = function (format, value, settings) {
1667
+ var date;
1668
+ try {
1669
+ date = this._base_parseDate(format, value, settings);
1670
+ } catch (err) {
1671
+ // Hack! The error message ends with a colon, a space, and
1672
+ // the "extra" characters. We rely on that instead of
1673
+ // attempting to perfectly reproduce the parsing algorithm.
1674
+ if (err.indexOf(":") >= 0) {
1675
+ date = this._base_parseDate(format, value.substring(0, value.length - (err.length - err.indexOf(':') - 2)), settings);
1676
+ $.timepicker.log("Error parsing the date string: " + err + "\ndate string = " + value + "\ndate format = " + format);
1677
+ } else {
1678
+ throw err;
1679
+ }
1680
+ }
1681
+ return date;
1682
+ };
1683
+
1684
+ /*
1685
+ * override formatDate to set date with time to the input
1686
+ */
1687
+ $.datepicker._base_formatDate = $.datepicker._formatDate;
1688
+ $.datepicker._formatDate = function (inst, day, month, year) {
1689
+ var tp_inst = this._get(inst, 'timepicker');
1690
+ if (tp_inst) {
1691
+ tp_inst._updateDateTime(inst);
1692
+ return tp_inst.$input.val();
1693
+ }
1694
+ return this._base_formatDate(inst);
1695
+ };
1696
+
1697
+ /*
1698
+ * override options setter to add time to maxDate(Time) and minDate(Time). MaxDate
1699
+ */
1700
+ $.datepicker._base_optionDatepicker = $.datepicker._optionDatepicker;
1701
+ $.datepicker._optionDatepicker = function (target, name, value) {
1702
+ var inst = this._getInst(target),
1703
+ name_clone;
1704
+ if (!inst) {
1705
+ return null;
1706
+ }
1707
+
1708
+ var tp_inst = this._get(inst, 'timepicker');
1709
+ if (tp_inst) {
1710
+ var min = null,
1711
+ max = null,
1712
+ onselect = null,
1713
+ overrides = tp_inst._defaults.evnts,
1714
+ fns = {},
1715
+ prop;
1716
+ if (typeof name === 'string') { // if min/max was set with the string
1717
+ if (name === 'minDate' || name === 'minDateTime') {
1718
+ min = value;
1719
+ } else if (name === 'maxDate' || name === 'maxDateTime') {
1720
+ max = value;
1721
+ } else if (name === 'onSelect') {
1722
+ onselect = value;
1723
+ } else if (overrides.hasOwnProperty(name)) {
1724
+ if (typeof (value) === 'undefined') {
1725
+ return overrides[name];
1726
+ }
1727
+ fns[name] = value;
1728
+ name_clone = {}; //empty results in exiting function after overrides updated
1729
+ }
1730
+ } else if (typeof name === 'object') { //if min/max was set with the JSON
1731
+ if (name.minDate) {
1732
+ min = name.minDate;
1733
+ } else if (name.minDateTime) {
1734
+ min = name.minDateTime;
1735
+ } else if (name.maxDate) {
1736
+ max = name.maxDate;
1737
+ } else if (name.maxDateTime) {
1738
+ max = name.maxDateTime;
1739
+ }
1740
+ for (prop in overrides) {
1741
+ if (overrides.hasOwnProperty(prop) && name[prop]) {
1742
+ fns[prop] = name[prop];
1743
+ }
1744
+ }
1745
+ }
1746
+ for (prop in fns) {
1747
+ if (fns.hasOwnProperty(prop)) {
1748
+ overrides[prop] = fns[prop];
1749
+ if (!name_clone) { name_clone = $.extend({}, name); }
1750
+ delete name_clone[prop];
1751
+ }
1752
+ }
1753
+ if (name_clone && isEmptyObject(name_clone)) { return; }
1754
+ if (min) { //if min was set
1755
+ if (min === 0) {
1756
+ min = new Date();
1757
+ } else {
1758
+ min = new Date(min);
1759
+ }
1760
+ tp_inst._defaults.minDate = min;
1761
+ tp_inst._defaults.minDateTime = min;
1762
+ } else if (max) { //if max was set
1763
+ if (max === 0) {
1764
+ max = new Date();
1765
+ } else {
1766
+ max = new Date(max);
1767
+ }
1768
+ tp_inst._defaults.maxDate = max;
1769
+ tp_inst._defaults.maxDateTime = max;
1770
+ } else if (onselect) {
1771
+ tp_inst._defaults.onSelect = onselect;
1772
+ }
1773
+ }
1774
+ if (value === undefined) {
1775
+ return this._base_optionDatepicker.call($.datepicker, target, name);
1776
+ }
1777
+ return this._base_optionDatepicker.call($.datepicker, target, name_clone || name, value);
1778
+ };
1779
+
1780
+ /*
1781
+ * jQuery isEmptyObject does not check hasOwnProperty - if someone has added to the object prototype,
1782
+ * it will return false for all objects
1783
+ */
1784
+ var isEmptyObject = function (obj) {
1785
+ var prop;
1786
+ for (prop in obj) {
1787
+ if (obj.hasOwnProperty(prop)) {
1788
+ return false;
1789
+ }
1790
+ }
1791
+ return true;
1792
+ };
1793
+
1794
+ /*
1795
+ * jQuery extend now ignores nulls!
1796
+ */
1797
+ var extendRemove = function (target, props) {
1798
+ $.extend(target, props);
1799
+ for (var name in props) {
1800
+ if (props[name] === null || props[name] === undefined) {
1801
+ target[name] = props[name];
1802
+ }
1803
+ }
1804
+ return target;
1805
+ };
1806
+
1807
+ /*
1808
+ * Determine by the time format which units are supported
1809
+ * Returns an object of booleans for each unit
1810
+ */
1811
+ var detectSupport = function (timeFormat) {
1812
+ var tf = timeFormat.replace(/'.*?'/g, '').toLowerCase(), // removes literals
1813
+ isIn = function (f, t) { // does the format contain the token?
1814
+ return f.indexOf(t) !== -1 ? true : false;
1815
+ };
1816
+ return {
1817
+ hour: isIn(tf, 'h'),
1818
+ minute: isIn(tf, 'm'),
1819
+ second: isIn(tf, 's'),
1820
+ millisec: isIn(tf, 'l'),
1821
+ microsec: isIn(tf, 'c'),
1822
+ timezone: isIn(tf, 'z'),
1823
+ ampm: isIn(tf, 't') && isIn(timeFormat, 'h'),
1824
+ iso8601: isIn(timeFormat, 'Z')
1825
+ };
1826
+ };
1827
+
1828
+ /*
1829
+ * Converts 24 hour format into 12 hour
1830
+ * Returns 12 hour without leading 0
1831
+ */
1832
+ var convert24to12 = function (hour) {
1833
+ hour %= 12;
1834
+
1835
+ if (hour === 0) {
1836
+ hour = 12;
1837
+ }
1838
+
1839
+ return String(hour);
1840
+ };
1841
+
1842
+ var computeEffectiveSetting = function (settings, property) {
1843
+ return settings && settings[property] ? settings[property] : $.timepicker._defaults[property];
1844
+ };
1845
+
1846
+ /*
1847
+ * Splits datetime string into date and time substrings.
1848
+ * Throws exception when date can't be parsed
1849
+ * Returns {dateString: dateString, timeString: timeString}
1850
+ */
1851
+ var splitDateTime = function (dateTimeString, timeSettings) {
1852
+ // The idea is to get the number separator occurrences in datetime and the time format requested (since time has
1853
+ // fewer unknowns, mostly numbers and am/pm). We will use the time pattern to split.
1854
+ var separator = computeEffectiveSetting(timeSettings, 'separator'),
1855
+ format = computeEffectiveSetting(timeSettings, 'timeFormat'),
1856
+ timeParts = format.split(separator), // how many occurrences of separator may be in our format?
1857
+ timePartsLen = timeParts.length,
1858
+ allParts = dateTimeString.split(separator),
1859
+ allPartsLen = allParts.length;
1860
+
1861
+ if (allPartsLen > 1) {
1862
+ return {
1863
+ dateString: allParts.splice(0, allPartsLen - timePartsLen).join(separator),
1864
+ timeString: allParts.splice(0, timePartsLen).join(separator)
1865
+ };
1866
+ }
1867
+
1868
+ return {
1869
+ dateString: dateTimeString,
1870
+ timeString: ''
1871
+ };
1872
+ };
1873
+
1874
+ /*
1875
+ * Internal function to parse datetime interval
1876
+ * Returns: {date: Date, timeObj: Object}, where
1877
+ * date - parsed date without time (type Date)
1878
+ * timeObj = {hour: , minute: , second: , millisec: , microsec: } - parsed time. Optional
1879
+ */
1880
+ var parseDateTimeInternal = function (dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
1881
+ var date,
1882
+ parts,
1883
+ parsedTime;
1884
+
1885
+ parts = splitDateTime(dateTimeString, timeSettings);
1886
+ date = $.datepicker._base_parseDate(dateFormat, parts.dateString, dateSettings);
1887
+
1888
+ if (parts.timeString === '') {
1889
+ return {
1890
+ date: date
1891
+ };
1892
+ }
1893
+
1894
+ parsedTime = $.datepicker.parseTime(timeFormat, parts.timeString, timeSettings);
1895
+
1896
+ if (!parsedTime) {
1897
+ throw 'Wrong time format';
1898
+ }
1899
+
1900
+ return {
1901
+ date: date,
1902
+ timeObj: parsedTime
1903
+ };
1904
+ };
1905
+
1906
+ /*
1907
+ * Internal function to set timezone_select to the local timezone
1908
+ */
1909
+ var selectLocalTimezone = function (tp_inst, date) {
1910
+ if (tp_inst && tp_inst.timezone_select) {
1911
+ var now = date || new Date();
1912
+ tp_inst.timezone_select.val(-now.getTimezoneOffset());
1913
+ }
1914
+ };
1915
+
1916
+ /*
1917
+ * Create a Singleton Instance
1918
+ */
1919
+ $.timepicker = new Timepicker();
1920
+
1921
+ /**
1922
+ * Get the timezone offset as string from a date object (eg '+0530' for UTC+5.5)
1923
+ * @param {number} tzMinutes if not a number, less than -720 (-1200), or greater than 840 (+1400) this value is returned
1924
+ * @param {boolean} iso8601 if true formats in accordance to iso8601 "+12:45"
1925
+ * @return {string}
1926
+ */
1927
+ $.timepicker.timezoneOffsetString = function (tzMinutes, iso8601) {
1928
+ if (isNaN(tzMinutes) || tzMinutes > 840 || tzMinutes < -720) {
1929
+ return tzMinutes;
1930
+ }
1931
+
1932
+ var off = tzMinutes,
1933
+ minutes = off % 60,
1934
+ hours = (off - minutes) / 60,
1935
+ iso = iso8601 ? ':' : '',
1936
+ tz = (off >= 0 ? '+' : '-') + ('0' + Math.abs(hours)).slice(-2) + iso + ('0' + Math.abs(minutes)).slice(-2);
1937
+
1938
+ if (tz === '+00:00') {
1939
+ return 'Z';
1940
+ }
1941
+ return tz;
1942
+ };
1943
+
1944
+ /**
1945
+ * Get the number in minutes that represents a timezone string
1946
+ * @param {string} tzString formatted like "+0500", "-1245", "Z"
1947
+ * @return {number} the offset minutes or the original string if it doesn't match expectations
1948
+ */
1949
+ $.timepicker.timezoneOffsetNumber = function (tzString) {
1950
+ var normalized = tzString.toString().replace(':', ''); // excuse any iso8601, end up with "+1245"
1951
+
1952
+ if (normalized.toUpperCase() === 'Z') { // if iso8601 with Z, its 0 minute offset
1953
+ return 0;
1954
+ }
1955
+
1956
+ if (!/^(\-|\+)\d{4}$/.test(normalized)) { // possibly a user defined tz, so just give it back
1957
+ return tzString;
1958
+ }
1959
+
1960
+ return ((normalized.substr(0, 1) === '-' ? -1 : 1) * // plus or minus
1961
+ ((parseInt(normalized.substr(1, 2), 10) * 60) + // hours (converted to minutes)
1962
+ parseInt(normalized.substr(3, 2), 10))); // minutes
1963
+ };
1964
+
1965
+ /**
1966
+ * No way to set timezone in js Date, so we must adjust the minutes to compensate. (think setDate, getDate)
1967
+ * @param {Date} date
1968
+ * @param {string} toTimezone formatted like "+0500", "-1245"
1969
+ * @return {Date}
1970
+ */
1971
+ $.timepicker.timezoneAdjust = function (date, toTimezone) {
1972
+ var toTz = $.timepicker.timezoneOffsetNumber(toTimezone);
1973
+ if (!isNaN(toTz)) {
1974
+ date.setMinutes(date.getMinutes() + -date.getTimezoneOffset() - toTz);
1975
+ }
1976
+ return date;
1977
+ };
1978
+
1979
+ /**
1980
+ * Calls `timepicker()` on the `startTime` and `endTime` elements, and configures them to
1981
+ * enforce date range limits.
1982
+ * n.b. The input value must be correctly formatted (reformatting is not supported)
1983
+ * @param {Element} startTime
1984
+ * @param {Element} endTime
1985
+ * @param {Object} options Options for the timepicker() call
1986
+ * @return {jQuery}
1987
+ */
1988
+ $.timepicker.timeRange = function (startTime, endTime, options) {
1989
+ return $.timepicker.handleRange('timepicker', startTime, endTime, options);
1990
+ };
1991
+
1992
+ /**
1993
+ * Calls `datetimepicker` on the `startTime` and `endTime` elements, and configures them to
1994
+ * enforce date range limits.
1995
+ * @param {Element} startTime
1996
+ * @param {Element} endTime
1997
+ * @param {Object} options Options for the `timepicker()` call. Also supports `reformat`,
1998
+ * a boolean value that can be used to reformat the input values to the `dateFormat`.
1999
+ * @param {string} method Can be used to specify the type of picker to be added
2000
+ * @return {jQuery}
2001
+ */
2002
+ $.timepicker.datetimeRange = function (startTime, endTime, options) {
2003
+ $.timepicker.handleRange('datetimepicker', startTime, endTime, options);
2004
+ };
2005
+
2006
+ /**
2007
+ * Calls `datepicker` on the `startTime` and `endTime` elements, and configures them to
2008
+ * enforce date range limits.
2009
+ * @param {Element} startTime
2010
+ * @param {Element} endTime
2011
+ * @param {Object} options Options for the `timepicker()` call. Also supports `reformat`,
2012
+ * a boolean value that can be used to reformat the input values to the `dateFormat`.
2013
+ * @return {jQuery}
2014
+ */
2015
+ $.timepicker.dateRange = function (startTime, endTime, options) {
2016
+ $.timepicker.handleRange('datepicker', startTime, endTime, options);
2017
+ };
2018
+
2019
+ /**
2020
+ * Calls `method` on the `startTime` and `endTime` elements, and configures them to
2021
+ * enforce date range limits.
2022
+ * @param {string} method Can be used to specify the type of picker to be added
2023
+ * @param {Element} startTime
2024
+ * @param {Element} endTime
2025
+ * @param {Object} options Options for the `timepicker()` call. Also supports `reformat`,
2026
+ * a boolean value that can be used to reformat the input values to the `dateFormat`.
2027
+ * @return {jQuery}
2028
+ */
2029
+ $.timepicker.handleRange = function (method, startTime, endTime, options) {
2030
+ options = $.extend({}, {
2031
+ minInterval: 0, // min allowed interval in milliseconds
2032
+ maxInterval: 0, // max allowed interval in milliseconds
2033
+ start: {}, // options for start picker
2034
+ end: {} // options for end picker
2035
+ }, options);
2036
+
2037
+ function checkDates(changed, other) {
2038
+ var startdt = startTime[method]('getDate'),
2039
+ enddt = endTime[method]('getDate'),
2040
+ changeddt = changed[method]('getDate');
2041
+
2042
+ if (startdt !== null) {
2043
+ var minDate = new Date(startdt.getTime()),
2044
+ maxDate = new Date(startdt.getTime());
2045
+
2046
+ minDate.setMilliseconds(minDate.getMilliseconds() + options.minInterval);
2047
+ maxDate.setMilliseconds(maxDate.getMilliseconds() + options.maxInterval);
2048
+
2049
+ if (options.minInterval > 0 && minDate > enddt) { // minInterval check
2050
+ endTime[method]('setDate', minDate);
2051
+ }
2052
+ else if (options.maxInterval > 0 && maxDate < enddt) { // max interval check
2053
+ endTime[method]('setDate', maxDate);
2054
+ }
2055
+ else if (startdt > enddt) {
2056
+ other[method]('setDate', changeddt);
2057
+ }
2058
+ }
2059
+ }
2060
+
2061
+ function selected(changed, other, option) {
2062
+ if (!changed.val()) {
2063
+ return;
2064
+ }
2065
+ var date = changed[method].call(changed, 'getDate');
2066
+ if (date !== null && options.minInterval > 0) {
2067
+ if (option === 'minDate') {
2068
+ date.setMilliseconds(date.getMilliseconds() + options.minInterval);
2069
+ }
2070
+ if (option === 'maxDate') {
2071
+ date.setMilliseconds(date.getMilliseconds() - options.minInterval);
2072
+ }
2073
+ }
2074
+ if (date.getTime) {
2075
+ other[method].call(other, 'option', option, date);
2076
+ }
2077
+ }
2078
+
2079
+ $.fn[method].call(startTime, $.extend({
2080
+ onClose: function (dateText, inst) {
2081
+ checkDates($(this), endTime);
2082
+ },
2083
+ onSelect: function (selectedDateTime) {
2084
+ selected($(this), endTime, 'minDate');
2085
+ }
2086
+ }, options, options.start));
2087
+ $.fn[method].call(endTime, $.extend({
2088
+ onClose: function (dateText, inst) {
2089
+ checkDates($(this), startTime);
2090
+ },
2091
+ onSelect: function (selectedDateTime) {
2092
+ selected($(this), startTime, 'maxDate');
2093
+ }
2094
+ }, options, options.end));
2095
+
2096
+ checkDates(startTime, endTime);
2097
+ selected(startTime, endTime, 'minDate');
2098
+ selected(endTime, startTime, 'maxDate');
2099
+ return $([startTime.get(0), endTime.get(0)]);
2100
+ };
2101
+
2102
+ /**
2103
+ * Log error or data to the console during error or debugging
2104
+ * @param {Object} err pass any type object to log to the console during error or debugging
2105
+ * @return {void}
2106
+ */
2107
+ $.timepicker.log = function (err) {
2108
+ if (window.console) {
2109
+ window.console.log(err);
2110
+ }
2111
+ };
2112
+
2113
+ /*
2114
+ * Add util object to allow access to private methods for testability.
2115
+ */
2116
+ $.timepicker._util = {
2117
+ _extendRemove: extendRemove,
2118
+ _isEmptyObject: isEmptyObject,
2119
+ _convert24to12: convert24to12,
2120
+ _detectSupport: detectSupport,
2121
+ _selectLocalTimezone: selectLocalTimezone,
2122
+ _computeEffectiveSetting: computeEffectiveSetting,
2123
+ _splitDateTime: splitDateTime,
2124
+ _parseDateTimeInternal: parseDateTimeInternal
2125
+ };
2126
+
2127
+ /*
2128
+ * Microsecond support
2129
+ */
2130
+ if (!Date.prototype.getMicroseconds) {
2131
+ Date.prototype.microseconds = 0;
2132
+ Date.prototype.getMicroseconds = function () { return this.microseconds; };
2133
+ Date.prototype.setMicroseconds = function (m) {
2134
+ this.setMilliseconds(this.getMilliseconds() + Math.floor(m / 1000));
2135
+ this.microseconds = m % 1000;
2136
+ return this;
2137
+ };
2138
+ }
2139
+
2140
+ /*
2141
+ * Keep up with the version
2142
+ */
2143
+ $.timepicker.version = "1.4.2";
2144
+
2145
+ })(jQuery);
js/jquery.colorbox-min.js CHANGED
@@ -1,4 +1,7 @@
1
- // ColorBox v1.3.19 - jQuery lightbox plugin
2
- // (c) 2011 Jack Moore - jacklmoore.com
3
- // License: http://www.opensource.org/licenses/mit-license.php
4
- (function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}function _(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function ba(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function bb(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.slice(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function bc(b,c){a.event.trigger(b),c&&c.call(P)}function bd(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(K.loop||y[Q+1])a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function be(b){U||(P=b,bb(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1)),S||(S=T=!0,r.show(),K.returnFocus&&a(P).blur().one(l,function(){a(this).focus()}),q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=_(K.initialWidth,"x"),K.h=_(K.initialHeight,"y"),W.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bc(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()),W.load(!0))}function bf(){!r&&b.body&&(Y=!1,z=a(c),r=Z(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}).hide(),q=Z(X,"Overlay",o?"position:absolute":"").hide(),s=Z(X,"Wrapper"),t=Z(X,"Content").append(A=Z(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Z(X,"LoadingOverlay").add(Z(X,"LoadingGraphic")),D=Z(X,"Title"),E=Z(X,"Current"),G=Z(X,"Next"),H=Z(X,"Previous"),F=Z(X,"Slideshow").bind(h,bd),I=Z(X,"Close")),s.append(Z(X).append(Z(X,"TopLeft"),u=Z(X,"TopCenter"),Z(X,"TopRight")),Z(X,!1,"clear:left").append(v=Z(X,"MiddleLeft"),t,w=Z(X,"MiddleRight")),Z(X,!1,"clear:left").append(Z(X,"BottomLeft"),x=Z(X,"BottomCenter"),Z(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Z(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),J=G.add(H).add(E).add(F),a(b.body).append(q,r.append(s,B)))}function bg(){return r?(Y||(Y=!0,L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),q.click(function(){K.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),W.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))}),a("."+g,b).live("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),be(this))})),!0):!1}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=!a.support.opacity&&!a.support.style,o=n&&!c.XMLHttpRequest,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div",Y;if(a.colorbox)return;a(bf),W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},bf();if(bg()){if(!f[0]){if(f.selector)return f;f=a("<a/>"),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b))}).addClass(g),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&be(f[0])}return f},W.position=function(a,b){function i(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset(),g=z.scrollTop(),h=z.scrollLeft();z.unbind("resize."+f),r.css({top:-9e4,left:-9e4}),K.fixed&&!o?(e.top-=g,e.left-=h,r.css({position:"fixed"})):(c=g,d=h,r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-_(K.right,"x"),0):K.left!==!1?d+=_(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-_(K.bottom,"y"),0):K.top!==!1?c+=_(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left:e.left}),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){i(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",K.reposition&&setTimeout(function(){z.bind("resize."+f,W.position)},1),b&&b()},step:function(){i(this)}})},W.resize=function(a){S&&(a=a||{},a.width&&(K.w=_(a.width,"x")-O-M),a.innerWidth&&(K.w=_(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=_(a.height,"y")-N-L),a.innerHeight&&(K.h=_(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w,K.w}function h(){return K.h=K.h||A.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h,K.h}if(!S)return;var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Z(X,"LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function q(){n&&r[0].style.removeAttribute("filter")}var b,c,g=y.length,h,i="frameBorder",k="allowTransparency",l,o,p;if(!S)return;l=function(){clearTimeout(V),C.hide(),bc(j,K.onComplete)},n&&R&&A.fadeIn(100),D.html(K.title).add(A).show();if(g>1){typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||Q<g-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),K.slideshow&&F.show();if(K.preloading){b=[$(-1),$(1)];while(c=y[b.pop()])o=a.data(c,e).href||c.href,a.isFunction(o)&&(o=o.call(c)),ba(o)&&(p=new Image,p.src=o)}}else J.hide();K.iframe?(h=Z("iframe")[0],i in h&&(h[i]=0),k in h&&(h[k]="true"),h.name=f+ +(new Date),K.fastIframe?l():a(h).one("load",l),h.src=K.href,K.scrolling||(h.scrolling="no"),a(h).addClass(f+"Iframe").appendTo(A).one(m,function(){h.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,q):q()},K.transition==="fade"?r.fadeTo(d,0,function(){W.position(0,c)}):W.position(d,c)},W.load=function(b){var c,d,e=W.prep;T=!0,R=!1,P=y[Q],b||bb(),bc(m),bc(i,K.onLoad),K.h=K.height?_(K.height,"y")-N-L:K.innerHeight&&_(K.innerHeight,"y"),K.w=K.width?_(K.width,"x")-O-M:K.innerWidth&&_(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=_(K.maxWidth,"x")-O-M,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=_(K.maxHeight,"y")-N-L,K.mh=K.h&&K.h<K.mh?K.h:K.mh),c=K.href,V=setTimeout(function(){C.show()},100),K.inline?(Z(X).hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):ba(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Z(X,"Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&&(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&&R.width>K.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(K.loop||y[Q+1])&&(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Z(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&&y[1]&&(K.loop||y[Q+1])&&(Q=$(1),W.load())},W.prev=function(){!T&&y[1]&&(K.loop||Q)&&(Q=$(-1),W.load())},W.close=function(){S&&!U&&(U=!0,S=!1,bc(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bc(m),A.remove(),setTimeout(function(){U=!1,bc(l,K.onClosed)},1)}))},W.remove=function(){a([]).add(r).add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g).die()},W.element=function(){return a(P)},W.settings=d})(jQuery,document,this);
 
 
 
1
+ /*!
2
+ Colorbox v1.4.33 - 2013-10-31
3
+ jQuery lightbox and modal window plugin
4
+ (c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
5
+ license: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+ (function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=Z+o),n&&(r.style.cssText=n),e(r)}function n(){return i.innerHeight?i.innerHeight:e(i).height()}function r(e){var t=k.length,i=(z+e)%t;return 0>i?t+i:i}function h(e,t){return Math.round((/%/.test(e)?("x"===t?E.width():n())/100:1)*parseInt(e,10))}function l(e,t){return e.photo||e.photoRegex.test(t)}function s(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function a(e){"contains"in g[0]&&!g[0].contains(e.target)&&(e.stopPropagation(),g.focus())}function d(){var t,i=e.data(N,Y);null==i?(B=e.extend({},X),console&&console.log&&console.log("Error: cboxElement missing settings object")):B=e.extend({},i);for(t in B)e.isFunction(B[t])&&"on"!==t.slice(0,2)&&(B[t]=B[t].call(N));B.rel=B.rel||N.rel||e(N).data("rel")||"nofollow",B.href=B.href||e(N).attr("href"),B.title=B.title||N.title,"string"==typeof B.href&&(B.href=e.trim(B.href))}function c(i,o){e(t).trigger(i),lt.triggerHandler(i),e.isFunction(o)&&o.call(N)}function u(i){q||(N=i,d(),k=e(N),z=0,"nofollow"!==B.rel&&(k=e("."+et).filter(function(){var t,i=e.data(this,Y);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===B.rel}),z=k.index(N),-1===z&&(k=k.add(N),z=k.length-1)),w.css({opacity:parseFloat(B.opacity),cursor:B.overlayClose?"pointer":"auto",visibility:"visible"}).show(),J&&g.add(w).removeClass(J),B.className&&g.add(w).addClass(B.className),J=B.className,B.closeButton?K.html(B.close).appendTo(y):K.appendTo("<div/>"),U||(U=$=!0,g.css({visibility:"hidden",display:"block"}),H=o(st,"LoadedContent","width:0; height:0; overflow:hidden"),y.css({width:"",height:""}).append(H),O=x.height()+C.height()+y.outerHeight(!0)-y.height(),_=b.width()+T.width()+y.outerWidth(!0)-y.width(),D=H.outerHeight(!0),A=H.outerWidth(!0),B.w=h(B.initialWidth,"x"),B.h=h(B.initialHeight,"y"),H.css({width:"",height:B.h}),Q.position(),c(tt,B.onOpen),P.add(L).hide(),g.focus(),B.trapFocus&&t.addEventListener&&(t.addEventListener("focus",a,!0),lt.one(rt,function(){t.removeEventListener("focus",a,!0)})),B.returnFocus&&lt.one(rt,function(){e(N).focus()})),m())}function f(){!g&&t.body&&(V=!1,E=e(i),g=o(st).attr({id:Y,"class":e.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=o(st,"Overlay").hide(),F=e([o(st,"LoadingOverlay")[0],o(st,"LoadingGraphic")[0]]),v=o(st,"Wrapper"),y=o(st,"Content").append(L=o(st,"Title"),S=o(st,"Current"),I=e('<button type="button"/>').attr({id:Z+"Previous"}),R=e('<button type="button"/>').attr({id:Z+"Next"}),M=o("button","Slideshow"),F),K=e('<button type="button"/>').attr({id:Z+"Close"}),v.append(o(st).append(o(st,"TopLeft"),x=o(st,"TopCenter"),o(st,"TopRight")),o(st,!1,"clear:left").append(b=o(st,"MiddleLeft"),y,T=o(st,"MiddleRight")),o(st,!1,"clear:left").append(o(st,"BottomLeft"),C=o(st,"BottomCenter"),o(st,"BottomRight"))).find("div div").css({"float":"left"}),W=o(st,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),P=R.add(I).add(S).add(M),e(t.body).append(w,g.append(v,W)))}function p(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),u(this))}return g?(V||(V=!0,R.click(function(){Q.next()}),I.click(function(){Q.prev()}),K.click(function(){Q.close()}),w.click(function(){B.overlayClose&&Q.close()}),e(t).bind("keydown."+Z,function(e){var t=e.keyCode;U&&B.escKey&&27===t&&(e.preventDefault(),Q.close()),U&&B.arrowKey&&k[1]&&!e.altKey&&(37===t?(e.preventDefault(),I.click()):39===t&&(e.preventDefault(),R.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+Z,"."+et,i):e("."+et).live("click."+Z,i)),!0):!1}function m(){var n,r,a,u=Q.prep,f=++at;$=!0,j=!1,N=k[z],d(),c(ht),c(it,B.onLoad),B.h=B.height?h(B.height,"y")-D-O:B.innerHeight&&h(B.innerHeight,"y"),B.w=B.width?h(B.width,"x")-A-_:B.innerWidth&&h(B.innerWidth,"x"),B.mw=B.w,B.mh=B.h,B.maxWidth&&(B.mw=h(B.maxWidth,"x")-A-_,B.mw=B.w&&B.w<B.mw?B.w:B.mw),B.maxHeight&&(B.mh=h(B.maxHeight,"y")-D-O,B.mh=B.h&&B.h<B.mh?B.h:B.mh),n=B.href,G=setTimeout(function(){F.show()},100),B.inline?(a=o(st).hide().insertBefore(e(n)[0]),lt.one(ht,function(){a.replaceWith(H.children())}),u(e(n))):B.iframe?u(" "):B.html?u(B.html):l(B,n)?(n=s(B,n),j=t.createElement("img"),e(j).addClass(Z+"Photo").bind("error",function(){B.title=!1,u(o(st,"Error").html(B.imgError))}).one("load",function(){var t;f===at&&(e.each(["alt","longdesc","aria-describedby"],function(t,i){var o=e(N).attr(i)||e(N).attr("data-"+i);o&&j.setAttribute(i,o)}),B.retinaImage&&i.devicePixelRatio>1&&(j.height=j.height/i.devicePixelRatio,j.width=j.width/i.devicePixelRatio),B.scalePhotos&&(r=function(){j.height-=j.height*t,j.width-=j.width*t},B.mw&&j.width>B.mw&&(t=(j.width-B.mw)/j.width,r()),B.mh&&j.height>B.mh&&(t=(j.height-B.mh)/j.height,r())),B.h&&(j.style.marginTop=Math.max(B.mh-j.height,0)/2+"px"),k[1]&&(B.loop||k[z+1])&&(j.style.cursor="pointer",j.onclick=function(){Q.next()}),j.style.width=j.width+"px",j.style.height=j.height+"px",setTimeout(function(){u(j)},1))}),setTimeout(function(){j.src=n},1)):n&&W.load(n,B.data,function(t,i){f===at&&u("error"===i?o(st,"Error").html(B.xhrError):e(this).contents())})}var w,g,v,y,x,b,T,C,k,E,H,W,F,L,S,M,R,I,K,P,B,O,_,D,A,N,z,j,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1},Y="colorbox",Z="cbox",et=Z+"Element",tt=Z+"_open",it=Z+"_load",ot=Z+"_complete",nt=Z+"_cleanup",rt=Z+"_closed",ht=Z+"_purge",lt=e("<a/>"),st="div",at=0,dt={},ct=function(){function e(){clearTimeout(h)}function t(){(B.loop||k[z+1])&&(e(),h=setTimeout(Q.next,B.slideshowSpeed))}function i(){M.html(B.slideshowStop).unbind(s).one(s,o),lt.bind(ot,t).bind(it,e),g.removeClass(l+"off").addClass(l+"on")}function o(){e(),lt.unbind(ot,t).unbind(it,e),M.html(B.slideshowStart).unbind(s).one(s,function(){Q.next(),i()}),g.removeClass(l+"on").addClass(l+"off")}function n(){r=!1,M.hide(),e(),lt.unbind(ot,t).unbind(it,e),g.removeClass(l+"off "+l+"on")}var r,h,l=Z+"Slideshow_",s="click."+Z;return function(){r?B.slideshow||(lt.unbind(nt,n),n()):B.slideshow&&k[1]&&(r=!0,lt.one(nt,n),B.slideshowAuto?i():o(),M.show())}}();e.colorbox||(e(f),Q=e.fn[Y]=e[Y]=function(t,i){var o=this;if(t=t||{},f(),p()){if(e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,Y,e.extend({},e.data(this,Y)||X,t))}).addClass(et),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&u(o[0])}return o},Q.position=function(t,i){function o(){x[0].style.width=C[0].style.width=y[0].style.width=parseInt(g[0].style.width,10)-_+"px",y[0].style.height=b[0].style.height=T[0].style.height=parseInt(g[0].style.height,10)-O+"px"}var r,l,s,a=0,d=0,c=g.offset();if(E.unbind("resize."+Z),g.css({top:-9e4,left:-9e4}),l=E.scrollTop(),s=E.scrollLeft(),B.fixed?(c.top-=l,c.left-=s,g.css({position:"fixed"})):(a=l,d=s,g.css({position:"absolute"})),d+=B.right!==!1?Math.max(E.width()-B.w-A-_-h(B.right,"x"),0):B.left!==!1?h(B.left,"x"):Math.round(Math.max(E.width()-B.w-A-_,0)/2),a+=B.bottom!==!1?Math.max(n()-B.h-D-O-h(B.bottom,"y"),0):B.top!==!1?h(B.top,"y"):Math.round(Math.max(n()-B.h-D-O,0)/2),g.css({top:c.top,left:c.left,visibility:"visible"}),v[0].style.width=v[0].style.height="9999px",r={width:B.w+A+_,height:B.h+D+O,top:a,left:d},t){var u=0;e.each(r,function(e){return r[e]!==dt[e]?(u=t,void 0):void 0}),t=u}dt=r,t||g.css(r),g.dequeue().animate(r,{duration:t||0,complete:function(){o(),$=!1,v[0].style.width=B.w+A+_+"px",v[0].style.height=B.h+D+O+"px",B.reposition&&setTimeout(function(){E.bind("resize."+Z,Q.position)},1),i&&i()},step:o})},Q.resize=function(e){var t;U&&(e=e||{},e.width&&(B.w=h(e.width,"x")-A-_),e.innerWidth&&(B.w=h(e.innerWidth,"x")),H.css({width:B.w}),e.height&&(B.h=h(e.height,"y")-D-O),e.innerHeight&&(B.h=h(e.innerHeight,"y")),e.innerHeight||e.height||(t=H.scrollTop(),H.css({height:"auto"}),B.h=H.height()),H.css({height:B.h}),t&&H.scrollTop(t),Q.position("none"===B.transition?0:B.speed))},Q.prep=function(i){function n(){return B.w=B.w||H.width(),B.w=B.mw&&B.mw<B.w?B.mw:B.w,B.w}function h(){return B.h=B.h||H.height(),B.h=B.mh&&B.mh<B.h?B.mh:B.h,B.h}if(U){var a,d="none"===B.transition?0:B.speed;H.empty().remove(),H=o(st,"LoadedContent").append(i),H.hide().appendTo(W.show()).css({width:n(),overflow:B.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(y),W.hide(),e(j).css({"float":"none"}),a=function(){function i(){e.support.opacity===!1&&g[0].style.removeAttribute("filter")}var n,h,a=k.length,u="frameBorder",f="allowTransparency";U&&(h=function(){clearTimeout(G),F.hide(),c(ot,B.onComplete)},L.html(B.title).add(H).show(),a>1?("string"==typeof B.current&&S.html(B.current.replace("{current}",z+1).replace("{total}",a)).show(),R[B.loop||a-1>z?"show":"hide"]().html(B.next),I[B.loop||z?"show":"hide"]().html(B.previous),ct(),B.preloading&&e.each([r(-1),r(1)],function(){var i,o,n=k[this],r=e.data(n,Y);r&&r.href?(i=r.href,e.isFunction(i)&&(i=i.call(n))):i=e(n).attr("href"),i&&l(r,i)&&(i=s(r,i),o=t.createElement("img"),o.src=i)})):P.hide(),B.iframe?(n=o("iframe")[0],u in n&&(n[u]=0),f in n&&(n[f]="true"),B.scrolling||(n.scrolling="no"),e(n).attr({src:B.href,name:(new Date).getTime(),"class":Z+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",h).appendTo(H),lt.one(ht,function(){n.src="//about:blank"}),B.fastIframe&&e(n).trigger("load")):h(),"fade"===B.transition?g.fadeTo(d,1,i):i())},"fade"===B.transition?g.fadeTo(d,0,function(){Q.position(0,a)}):Q.position(d,a)}},Q.next=function(){!$&&k[1]&&(B.loop||k[z+1])&&(z=r(1),u(k[z]))},Q.prev=function(){!$&&k[1]&&(B.loop||z)&&(z=r(-1),u(k[z]))},Q.close=function(){U&&!q&&(q=!0,U=!1,c(nt,B.onCleanup),E.unbind("."+Z),w.fadeTo(B.fadeOut||0,0),g.stop().fadeTo(B.fadeOut||0,0,function(){g.add(w).css({opacity:1,cursor:"auto"}).hide(),c(ht),H.empty().remove(),setTimeout(function(){q=!1,c(rt,B.onClosed)},1)}))},Q.remove=function(){g&&(g.stop(),e.colorbox.close(),g.stop().remove(),w.remove(),q=!1,g=null,e("."+et).removeData(Y).removeClass(et),e(t).unbind("click."+Z))},Q.element=function(){return e(N)},Q.settings=X)})(jQuery,document,window);
js/pointers.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function wprssTrackingOptAJAX( opted ) {
2
+ jQuery.ajax({
3
+ url: ajaxurl,
4
+ type: 'POST',
5
+ data: {
6
+ action: 'wprss_tracking_ajax_opt',
7
+ opted: opted
8
+ },
9
+ success: function( data, t, f ) {
10
+ console.log( data );
11
+ console.log( t );
12
+ console.log( f );
13
+ }
14
+ });
15
+ }
languages/default.mo ADDED
Binary file
languages/default.po ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wprss\n"
4
+ "POT-Creation-Date: 2012-09-25 12:09+0100\n"
5
+ "PO-Revision-Date: 2012-09-25 13:52+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.3\n"
12
+ "X-Poedit-KeywordsList: _;__;_e\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: wp-rss-aggregator.php:152
17
+ msgid "Enter feed name here (e.g. WP Mayor)"
18
+ msgstr ""
19
+
20
+ #: wp-rss-aggregator.php:394
21
+ msgid "No feed items found"
22
+ msgstr ""
23
+
24
+ #: inc/activation.php:11
25
+ msgid "This plugin requires WordPress version 3.2 or higher."
26
+ msgstr ""
27
+
28
+ #: inc/admin-options.php:45 inc/admin-options.php:88
29
+ msgid "WP RSS Aggregator Settings"
30
+ msgstr ""
31
+
32
+ #: inc/admin-options.php:45
33
+ msgid "Settings"
34
+ msgstr ""
35
+
36
+ #: inc/admin-options.php:67
37
+ msgid "Open links behaviour"
38
+ msgstr ""
39
+
40
+ #: inc/admin-options.php:70
41
+ msgid "Set links as"
42
+ msgstr ""
43
+
44
+ #: inc/admin-options.php:73
45
+ msgid "Feed limit"
46
+ msgstr ""
47
+
48
+ #: inc/admin-options.php:93
49
+ msgid "Save Settings"
50
+ msgstr ""
51
+
52
+ #: inc/admin-options.php:113
53
+ msgid "No follow"
54
+ msgstr ""
55
+
56
+ #: inc/admin-options.php:114
57
+ msgid "Follow"
58
+ msgstr ""
59
+
60
+ #: inc/admin-options.php:132
61
+ msgid "Lightbox"
62
+ msgstr ""
63
+
64
+ #: inc/admin-options.php:133
65
+ msgid "New window"
66
+ msgstr ""
67
+
68
+ #: inc/admin-options.php:134
69
+ msgid "None"
70
+ msgstr ""
71
+
72
+ #: inc/cron-jobs.php:53
73
+ msgid "Once Weekly"
74
+ msgstr ""
75
+
76
+ #: inc/custom-post-types.php:30
77
+ msgid "Feed Sources"
78
+ msgstr ""
79
+
80
+ #: inc/custom-post-types.php:31
81
+ msgid "Feed"
82
+ msgstr ""
83
+
84
+ #: inc/custom-post-types.php:32 inc/custom-post-types.php:34
85
+ msgid "Add New Feed Source"
86
+ msgstr ""
87
+
88
+ #: inc/custom-post-types.php:33
89
+ msgid "All Feed Sources"
90
+ msgstr ""
91
+
92
+ #: inc/custom-post-types.php:35
93
+ msgid "Edit Feed Source"
94
+ msgstr ""
95
+
96
+ #: inc/custom-post-types.php:36
97
+ msgid "New Feed Source"
98
+ msgstr ""
99
+
100
+ #: inc/custom-post-types.php:37
101
+ msgid "View Feed Source"
102
+ msgstr ""
103
+
104
+ #: inc/custom-post-types.php:38
105
+ msgid "Search Feeds"
106
+ msgstr ""
107
+
108
+ #: inc/custom-post-types.php:39
109
+ msgid "No Feed Sources Found"
110
+ msgstr ""
111
+
112
+ #: inc/custom-post-types.php:40
113
+ msgid "No Feed Sources Found In Trash"
114
+ msgstr ""
115
+
116
+ #: inc/custom-post-types.php:41
117
+ msgid "RSS Aggregator"
118
+ msgstr ""
119
+
120
+ #: inc/custom-post-types.php:58 inc/custom-post-types.php:60
121
+ msgid "Imported Feeds"
122
+ msgstr ""
123
+
124
+ #: inc/custom-post-types.php:59
125
+ msgid "Imported Feed"
126
+ msgstr ""
127
+
128
+ #: inc/custom-post-types.php:61
129
+ msgid "View Imported Feed"
130
+ msgstr ""
131
+
132
+ #: inc/custom-post-types.php:62
133
+ msgid "Search Imported Feeds"
134
+ msgstr ""
135
+
136
+ #: inc/custom-post-types.php:63
137
+ msgid "No Imported Feeds Found"
138
+ msgstr ""
139
+
140
+ #: inc/custom-post-types.php:64
141
+ msgid "No Imported Feeds Found In Trash"
142
+ msgstr ""
143
+
144
+ #: inc/custom-post-types.php:83 inc/custom-post-types.php:135
145
+ msgid "Name"
146
+ msgstr ""
147
+
148
+ #: inc/custom-post-types.php:84 inc/custom-post-types.php:306
149
+ msgid "URL"
150
+ msgstr ""
151
+
152
+ #: inc/custom-post-types.php:85 inc/custom-post-types.php:313
153
+ msgid "Description"
154
+ msgstr ""
155
+
156
+ #: inc/custom-post-types.php:136
157
+ msgid "Permalink"
158
+ msgstr ""
159
+
160
+ #: inc/custom-post-types.php:137
161
+ msgid "Date published"
162
+ msgstr ""
163
+
164
+ #: inc/custom-post-types.php:138
165
+ msgid "Source"
166
+ msgstr ""
167
+
168
+ #: inc/custom-post-types.php:226
169
+ msgid "Save Feed Source"
170
+ msgstr ""
171
+
172
+ #: inc/custom-post-types.php:252
173
+ msgid "WP RSS Aggregator Help"
174
+ msgstr ""
175
+
176
+ #: inc/custom-post-types.php:261
177
+ msgid "Like this plugin?"
178
+ msgstr ""
179
+
180
+ #: inc/custom-post-types.php:270
181
+ msgid "Follow us"
182
+ msgstr ""
183
+
184
+ #: inc/custom-post-types.php:279
185
+ msgid "Feed Source Details"
186
+ msgstr ""
187
+
188
+ #: inc/custom-post-types.php:288
189
+ msgid "Feed Preview"
190
+ msgstr ""
191
+
192
+ #: inc/custom-post-types.php:307
193
+ msgid "Enter feed URL (including http://)"
194
+ msgstr ""
195
+
196
+ #: inc/custom-post-types.php:314
197
+ msgid "A short description about this feed source (optional)"
198
+ msgstr ""
199
+
200
+ #: inc/custom-post-types.php:438
201
+ msgid "Delete Permanently"
202
+ msgstr ""
203
+
204
+ #: inc/custom-post-types.php:440
205
+ msgid "Move to Trash"
206
+ msgstr ""
207
+
208
+ #: inc/custom-post-types.php:471
209
+ msgid ""
210
+ "<strong>Invalid feed URL</strong> - Double check the feed source URL setting "
211
+ "above."
212
+ msgstr ""
213
+
214
+ #: inc/custom-post-types.php:474
215
+ msgid "No feed URL defined yet"
216
+ msgstr ""
217
+
218
+ #: inc/custom-post-types.php:486
219
+ msgid "Need help?"
220
+ msgstr ""
221
+
222
+ #: inc/custom-post-types.php:488
223
+ msgid "Check out the support forum"
224
+ msgstr ""
225
+
226
+ #: inc/custom-post-types.php:499
227
+ msgid "Why not do any or all of the following"
228
+ msgstr ""
229
+
230
+ #: inc/custom-post-types.php:501
231
+ msgid "Give it a 5 star rating on WordPress.org."
232
+ msgstr ""
233
+
234
+ #: inc/custom-post-types.php:502
235
+ msgid "Donate a token of your appreciation."
236
+ msgstr ""
237
+
238
+ #: inc/custom-post-types.php:517
239
+ msgid "Follow WP Mayor on Twitter."
240
+ msgstr ""
241
+
242
+ #: inc/custom-post-types.php:518
243
+ msgid "Like WP Mayor on Facebook."
244
+ msgstr ""
245
+
246
+ #: inc/custom-post-types.php:535
247
+ msgid "Feed source updated. "
248
+ msgstr ""
249
+
250
+ #: inc/custom-post-types.php:536
251
+ msgid "Custom field updated."
252
+ msgstr ""
253
+
254
+ #: inc/custom-post-types.php:537
255
+ msgid "Custom field deleted."
256
+ msgstr ""
257
+
258
+ #: inc/custom-post-types.php:538 inc/custom-post-types.php:544
259
+ msgid "Feed source updated."
260
+ msgstr ""
261
+
262
+ #: inc/custom-post-types.php:540 inc/custom-post-types.php:541
263
+ msgid "Feed source saved."
264
+ msgstr ""
265
+
266
+ #: inc/custom-post-types.php:542
267
+ msgid "Feed source submitted."
268
+ msgstr ""
269
+
270
+ #: inc/custom-post-types.php:628
271
+ msgid "Publish Feed"
272
+ msgstr ""
languages/it.mo ADDED
Binary file
languages/it.po ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wprss\n"
4
+ "POT-Creation-Date: 2012-09-25 12:09+0100\n"
5
+ "PO-Revision-Date: 2012-09-30 11:18+0100\n"
6
+ "Last-Translator: Davide De Maestri <davide.demaestri@gmail.com>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.3\n"
12
+ "X-Poedit-KeywordsList: _;__;_e\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: wp-rss-aggregator.php:152
17
+ msgid "Enter feed name here (e.g. WP Mayor)"
18
+ msgstr "Inserisci il nome del feed qui (es: WP Mayor)"
19
+
20
+ #: wp-rss-aggregator.php:394
21
+ msgid "No feed items found"
22
+ msgstr "Nessun feed trovato"
23
+
24
+ #: inc/activation.php:11
25
+ msgid "This plugin requires WordPress version 3.2 or higher."
26
+ msgstr "Questo plugin richiede la versione di WordPress 3.2 o superiore"
27
+
28
+ #: inc/admin-options.php:45 inc/admin-options.php:88
29
+ msgid "WP RSS Aggregator Settings"
30
+ msgstr "Impostazioni WP RSS Aggregator"
31
+
32
+ #: inc/admin-options.php:45
33
+ msgid "Settings"
34
+ msgstr "Impostazioni"
35
+
36
+ #: inc/admin-options.php:67
37
+ msgid "Open links behaviour"
38
+ msgstr "Comportamento di apertura dei links"
39
+
40
+ #: inc/admin-options.php:70
41
+ msgid "Set links as"
42
+ msgstr "Imposta links come"
43
+
44
+ #: inc/admin-options.php:73
45
+ msgid "Feed limit"
46
+ msgstr "Limite Feed"
47
+
48
+ #: inc/admin-options.php:93
49
+ msgid "Save Settings"
50
+ msgstr "Salva impostazioni"
51
+
52
+ #: inc/admin-options.php:113
53
+ msgid "No follow"
54
+ msgstr "No follow"
55
+
56
+ #: inc/admin-options.php:114
57
+ msgid "Follow"
58
+ msgstr "Follow"
59
+
60
+ #: inc/admin-options.php:132
61
+ msgid "Lightbox"
62
+ msgstr "Lightbox"
63
+
64
+ #: inc/admin-options.php:133
65
+ msgid "New window"
66
+ msgstr "Nuova finestra"
67
+
68
+ #: inc/admin-options.php:134
69
+ msgid "None"
70
+ msgstr "Nessuno"
71
+
72
+ #: inc/cron-jobs.php:53
73
+ msgid "Once Weekly"
74
+ msgstr "Una volta alla settimana"
75
+
76
+ #: inc/custom-post-types.php:30
77
+ msgid "Feed Sources"
78
+ msgstr "Sorgenti Feed"
79
+
80
+ #: inc/custom-post-types.php:31
81
+ msgid "Feed"
82
+ msgstr "Feed"
83
+
84
+ #: inc/custom-post-types.php:32 inc/custom-post-types.php:34
85
+ msgid "Add New Feed Source"
86
+ msgstr "Aggiungi nuova sorgente Feed"
87
+
88
+ #: inc/custom-post-types.php:33
89
+ msgid "All Feed Sources"
90
+ msgstr "Tutte le sorgenti feed"
91
+
92
+ #: inc/custom-post-types.php:35
93
+ msgid "Edit Feed Source"
94
+ msgstr "Modifica sorgente feed"
95
+
96
+ #: inc/custom-post-types.php:36
97
+ msgid "New Feed Source"
98
+ msgstr "Nuova sorgente feed"
99
+
100
+ #: inc/custom-post-types.php:37
101
+ msgid "View Feed Source"
102
+ msgstr "Visualizza sorgente feed"
103
+
104
+ #: inc/custom-post-types.php:38
105
+ msgid "Search Feeds"
106
+ msgstr "Cerca feeds"
107
+
108
+ #: inc/custom-post-types.php:39
109
+ msgid "No Feed Sources Found"
110
+ msgstr "Nessuna sorgente di feed trovata"
111
+
112
+ #: inc/custom-post-types.php:40
113
+ msgid "No Feed Sources Found In Trash"
114
+ msgstr "Nessuna sorgente di feed trovata nel cestino"
115
+
116
+ #: inc/custom-post-types.php:41
117
+ msgid "RSS Aggregator"
118
+ msgstr "Aggregatore RSS"
119
+
120
+ #: inc/custom-post-types.php:58 inc/custom-post-types.php:60
121
+ msgid "Imported Feeds"
122
+ msgstr "Feeds importati"
123
+
124
+ #: inc/custom-post-types.php:59
125
+ msgid "Imported Feed"
126
+ msgstr "Feed importato"
127
+
128
+ #: inc/custom-post-types.php:61
129
+ msgid "View Imported Feed"
130
+ msgstr "Visualizza feed importato"
131
+
132
+ #: inc/custom-post-types.php:62
133
+ msgid "Search Imported Feeds"
134
+ msgstr "Cerca feeds importati"
135
+
136
+ #: inc/custom-post-types.php:63
137
+ msgid "No Imported Feeds Found"
138
+ msgstr "Nessun feed importato trovato"
139
+
140
+ #: inc/custom-post-types.php:64
141
+ msgid "No Imported Feeds Found In Trash"
142
+ msgstr "Nessun feed importato trovato nel cestino"
143
+
144
+ #: inc/custom-post-types.php:83 inc/custom-post-types.php:135
145
+ msgid "Name"
146
+ msgstr "Nome"
147
+
148
+ #: inc/custom-post-types.php:84 inc/custom-post-types.php:306
149
+ msgid "URL"
150
+ msgstr "URL"
151
+
152
+ #: inc/custom-post-types.php:85 inc/custom-post-types.php:313
153
+ msgid "Description"
154
+ msgstr "Descrizione"
155
+
156
+ #: inc/custom-post-types.php:136
157
+ msgid "Permalink"
158
+ msgstr "Permalink"
159
+
160
+ #: inc/custom-post-types.php:137
161
+ msgid "Date published"
162
+ msgstr "Data di pubblicazione"
163
+
164
+ #: inc/custom-post-types.php:138
165
+ msgid "Source"
166
+ msgstr "Sorgente"
167
+
168
+ #: inc/custom-post-types.php:226
169
+ msgid "Save Feed Source"
170
+ msgstr "Salva sorgente feed"
171
+
172
+ #: inc/custom-post-types.php:252
173
+ msgid "WP RSS Aggregator Help"
174
+ msgstr "Aiuto WP RSS Aggregator"
175
+
176
+ #: inc/custom-post-types.php:261
177
+ msgid "Like this plugin?"
178
+ msgstr "Ti piace questo plugin?"
179
+
180
+ #: inc/custom-post-types.php:270
181
+ msgid "Follow us"
182
+ msgstr "Seguici"
183
+
184
+ #: inc/custom-post-types.php:279
185
+ msgid "Feed Source Details"
186
+ msgstr "Dettagli sorgente feed"
187
+
188
+ #: inc/custom-post-types.php:288
189
+ msgid "Feed Preview"
190
+ msgstr "Anteprima Feed"
191
+
192
+ #: inc/custom-post-types.php:307
193
+ msgid "Enter feed URL (including http://)"
194
+ msgstr "Inserisci l'URL del feed (includi http://)"
195
+
196
+ #: inc/custom-post-types.php:314
197
+ msgid "A short description about this feed source (optional)"
198
+ msgstr "Una breve descrizione di questa sorgente feed (opzionale)"
199
+
200
+ #: inc/custom-post-types.php:438
201
+ msgid "Delete Permanently"
202
+ msgstr "Elimina permanentemente"
203
+
204
+ #: inc/custom-post-types.php:440
205
+ msgid "Move to Trash"
206
+ msgstr "Sposta nel cestino"
207
+
208
+ #: inc/custom-post-types.php:471
209
+ msgid ""
210
+ "<strong>Invalid feed URL</strong> - Double check the feed source URL setting "
211
+ "above."
212
+ msgstr ""
213
+ "<strong>URL del feed non valido</strong> - Ricontrolla l'URL della sorgente "
214
+ "del feed nelle impostazioni sopra."
215
+
216
+ #: inc/custom-post-types.php:474
217
+ msgid "No feed URL defined yet"
218
+ msgstr "Nessun URL del feed ancora definito"
219
+
220
+ #: inc/custom-post-types.php:486
221
+ msgid "Need help?"
222
+ msgstr "Hai bisogno di aiuto?"
223
+
224
+ #: inc/custom-post-types.php:488
225
+ msgid "Check out the support forum"
226
+ msgstr "Controlla il forum di supporto"
227
+
228
+ #: inc/custom-post-types.php:499
229
+ msgid "Why not do any or all of the following"
230
+ msgstr "Perchè non fare alcuna o tutte delle seguenti cose"
231
+
232
+ #: inc/custom-post-types.php:501
233
+ msgid "Give it a 5 star rating on WordPress.org."
234
+ msgstr "Dare 5 stelle su WordPress.org"
235
+
236
+ #: inc/custom-post-types.php:502
237
+ msgid "Donate a token of your appreciation."
238
+ msgstr "Donare una moneta come ringraziamento."
239
+
240
+ #: inc/custom-post-types.php:517
241
+ msgid "Follow WP Mayor on Twitter."
242
+ msgstr "Segui WP Mayor su Twitter"
243
+
244
+ #: inc/custom-post-types.php:518
245
+ msgid "Like WP Mayor on Facebook."
246
+ msgstr "Segui WP Mayor su Facebook"
247
+
248
+ #: inc/custom-post-types.php:535
249
+ msgid "Feed source updated. "
250
+ msgstr "Sorgente feed aggiornata."
251
+
252
+ #: inc/custom-post-types.php:536
253
+ msgid "Custom field updated."
254
+ msgstr "Campo personalizzato aggiornato."
255
+
256
+ #: inc/custom-post-types.php:537
257
+ msgid "Custom field deleted."
258
+ msgstr "Campo personalizzato cancellato."
259
+
260
+ #: inc/custom-post-types.php:538 inc/custom-post-types.php:544
261
+ msgid "Feed source updated."
262
+ msgstr "Sorgente feed aggiornata."
263
+
264
+ #: inc/custom-post-types.php:540 inc/custom-post-types.php:541
265
+ msgid "Feed source saved."
266
+ msgstr "Sorgente feed salvata."
267
+
268
+ #: inc/custom-post-types.php:542
269
+ msgid "Feed source submitted."
270
+ msgstr "Sorgente feed inviata."
271
+
272
+ #: inc/custom-post-types.php:628
273
+ msgid "Publish Feed"
274
+ msgstr "Pubblica Feed"
readme.txt CHANGED
@@ -1,102 +1,361 @@
1
- === WP RSS Aggregator ===
2
- Contributors: jeangalea
3
- Donate link: http://www.jeangalea.com
4
- Tags: rss, feeds, aggregation, aggregator, import
5
- Requires at least: 3.0
6
- Tested up to: 3.3.1
7
- Stable tag: 1.1
8
- Imports and merges multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
9
-
10
- == Description ==
11
-
12
- WP RSS Aggregator helps you create a feed reader on your WordPress site. It works in a similar fashion to RSS readers like for example Netvibes.
13
- You can add any number of feeds through an administration panel, the plugin will then pull all the feeds from these sites, merge them and sort them by date.
14
-
15
- The output will be organised like this:
16
-
17
- * Today
18
- * Yesterday
19
- * 2 Days ago
20
- * More than 2 days ago
21
-
22
- The plugin uses SimplePie for the feed operations. The actual news feeds are not stored in your databases but only cached for faster response times.
23
- You can call the function from within the theme or even use a shortcode with parameters.
24
-
25
- = Demo =
26
- The plugin can be seen in use on the [WPMayor.com WordPress News page](http://www.wpmayor.com/wordpress-news/)
27
-
28
- = Credit =
29
- Created by Jean Galea. Need a [Web Developer](http://www.jeangalea.com/services/wordpress-consultancy-development/)?
30
-
31
- == Installation ==
32
-
33
- 1. Upload the `wp-rss-aggregator` folder to the `/wp-content/plugins/` directory
34
- 2. Activate the WP RSS Aggregator plugin through the 'Plugins' menu in WordPress
35
- 3. Configure the plugin by going to the `RSS Aggregator` menu item that appears in your dashboard menu.
36
- 3. Use the shortcode in your posts or pages: `[wp_rss_aggregator]`
37
-
38
- The parameters accepted are:
39
-
40
- * date_before
41
- * date_after
42
- * links_befor
43
- * links_after
44
- * link_before
45
- * link_after
46
-
47
- An example of a shortcode with parameters:
48
- `[wp_rss_aggregator date_before='<h2>' date_after='</h2>']`
49
- It is advisable to use the 'HTML' view of the editor when inserting the shortcode with paramters.
50
-
51
-
52
- An example of a function call from within the template files:
53
- `<?php
54
- wp_rss_aggregator(
55
- 'date_before' => '<h3>',
56
- 'date_after' => '</h3>',
57
- 'links_before' => '<ul>',
58
- 'links_after' => '</ul>',
59
- 'link_before' => '<li>',
60
- 'link_after' => '</li>'
61
- );
62
- ?>`
63
-
64
- You can also set whether the feed links should open in a new window, current window or even a lightbox, via the settings panel.
65
-
66
- The settings panel also has an option to set links as nofollow for SEO purposes.
67
-
68
- == Frequently Asked Questions ==
69
- = How can I output the feeds in my theme? =
70
-
71
- You can either call the function directly within the theme:
72
- `<?php wp_rss_aggregator(); ?>`
73
-
74
- Or use the shortcode in your posts and pages:
75
- [wp_rss_aggregator]
76
-
77
- == Screenshots ==
78
-
79
- 1. The output of this plugin on the frontend, as seen on www.wpmayor.com.
80
-
81
- 2. Admin administration panel.
82
-
83
- 3. The settings page.
84
-
85
- == Changelog ==
86
-
87
-
88
- = Version 1.1 (2012-08-13) =
89
- * Now requires WordPress 3.0
90
- * More flexible fetching of images directory
91
- * Has its own top level menu item
92
- * Added settings section
93
- * Ability to open in lightbox, new window or default browser behaviour
94
- * Ability to set links as follow or no follow
95
- * Using constants for oftenly used locations
96
- * Code refactoring
97
- * Changes in file and folder structure
98
-
99
-
100
- = Version 1.0 (2012-01-06) =
101
- * Initial release.
102
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === WP RSS Aggregator ===
2
+ Contributors: jeangalea
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X9GP6BL4BLXBJ
4
+ Plugin URI: http://www.wprssaggregator.com
5
+ Tags: rss, feeds, aggregation, autoblog aggregator, rss import, feed aggregator, rss aggregator, multiple rss feeds, multi rss feeds, rss multi importer, feed import, feed import, multiple feed import, feed aggregation, rss feader, feed reader, feed to post, multiple feeds, multi feed importer, multi feed import, multi import, autoblogging, autoblogger
6
+ Requires at least: 3.3
7
+ Tested up to: 3.8
8
+ Stable tag: 3.9.5
9
+ License: GPLv2 or later
10
+ Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
+
12
+
13
+ == Description ==
14
+
15
+ WP RSS Aggregator is the most comprehensive and elegant RSS feed solution for WordPress.
16
+
17
+ The original and premier plugin for importing, merging and displaying RSS and Atom feeds on your WordPress site.
18
+
19
+ With WP RSS Aggregator, you can:
20
+
21
+ * Display feeds from one or more sites on your blog
22
+ * Aggregate feeds from multiple sites
23
+
24
+ You can add any number of feeds through an administration panel, the plugin will then pull feed items from these sites, merge them and display them in date order.
25
+
26
+ To display your imported feed items, you can use a shortcode or call the display function directly from within your theme.
27
+
28
+ __More Features__:
29
+
30
+ * Export a custom RSS feed based on your feed sources
31
+ * Pagination
32
+ * Set the feed import time interval
33
+ * Scheduling of feed imports by feed source
34
+ * Various shortcode parameters you can use to further customize the output
35
+ * Choose whether to show/hide sources and dates
36
+ * Choose the date format
37
+ * Set the links as no-follow or not, or add no follow to meta tag
38
+ * Select how you would like the links to open (in a Lightbox, a new window, or the current window)
39
+ * Set the name of the feed source
40
+ * Select number of posts per feed you want to show and store
41
+ * Opens YouTube, DailyMotion and Vimeo videos directly
42
+ * Limit number of feed items stored in the database
43
+ * Feed autodiscovery, which lets you add feeds without even knowing the exact URL.
44
+ * Extendable via action and filter hooks
45
+ * Integrated with the Simplepie library that come with WordPress. This includes RSS 0.91 and RSS 1.0 formats, the popular RSS 2.0 format, Atom etc.
46
+
47
+ = Premium Add-Ons =
48
+ Add-Ons that add more functionality to the core plugin are now [available for purchase](http://www.wprssaggregator.com/extensions/).
49
+
50
+ * [Feed to Post](http://www.wprssaggregator.com/extensions/feed-to-post) - an advanced importer that lets you import RSS feeds into posts or custom post types. Populate a website in minutes (autoblog).
51
+ * [Keyword Filtering](http://www.wprssaggregator.com/extensions/keyword-filtering) - filter imported feeds based on keywords, so you only get items you're interested in.
52
+ * [Excerpts & Thumbnails](http://www.wprssaggregator.com/extensions/excerpts-thumbnails) - display excerpts and thumbnails together with the title, date and source.
53
+ * [Categories](http://www.wprssaggregator.com/extensions/categories) - categorise your feed sources and display items from a particular category at will within your site.
54
+
55
+ = Demo =
56
+ The plugin can be seen in use on the [demo page](http://www.wprssaggregator.com/demo/).
57
+
58
+ = Video Walkthrough =
59
+ [youtube http://www.youtube.com/watch?v=5J-S2vXtQ5w]
60
+
61
+ = Documentation =
62
+ Instructions for plugin usage are available on the plugin's [documentation page](http://www.wprssaggregator.com/documentation/).
63
+
64
+ = Credit =
65
+ Created by Jean Galea from [WP Mayor](http://www.wpmayor.com)
66
+
67
+ = Technical Stuff =
68
+ WP RSS Aggregator uses the SimplePie class to import and handle feeds, and stores all feed sources and feed items as custom post types in the WordPress default table structure, thus no custom tables are added.
69
+
70
+ = Translations =
71
+ Italian - Davide De Maestri
72
+
73
+
74
+ == Installation ==
75
+
76
+ 1. Upload the `wp-rss-aggregator` folder to the `/wp-content/plugins/` directory
77
+ 2. Activate the WP RSS Aggregator plugin through the 'Plugins' menu in WordPress
78
+ 3. Configure the plugin by going to the `RSS Aggregator` menu item that appears in your dashboard menu.
79
+ 3. Use the shortcode in your posts or pages: `[wp-rss-aggregator]`
80
+
81
+ The parameters accepted are:
82
+
83
+ * links_before
84
+ * links_after
85
+ * link_before
86
+ * link_after
87
+ * limit
88
+ * source
89
+
90
+ An example of a shortcode with parameters:
91
+ `[wp_rss_aggregator link_before='<li class="feed-link">' link_after='</li>']`
92
+ It is advisable to use the 'HTML' view of the editor when inserting the shortcode with paramters.
93
+
94
+ __Usage within theme files__
95
+
96
+ An example of a function call from within the theme's files:
97
+ `
98
+ <?php
99
+ wprss_display_feed_items( $args = array(
100
+ 'links_before' => '<ul>',
101
+ 'links_after' => '</ul>',
102
+ 'link_before' => '<li>',
103
+ 'link_after' => '</li>',
104
+ 'limit' => '8',
105
+ 'source' => '5,9'
106
+ ));
107
+ ?>
108
+ `
109
+
110
+ OR
111
+
112
+ `<?php do_shortcode('[wp-rss-aggregator]'); ?>`
113
+
114
+
115
+ == Frequently Asked Questions ==
116
+ = How can I output the feeds in my theme? =
117
+
118
+ You can either call the function directly within the theme:
119
+ `<?php wprss_display_feed_items(); ?>`
120
+
121
+ Or use the shortcode in your posts and pages:
122
+ [wp-rss-aggregator]
123
+
124
+ = Can I store imported feed items as posts? =
125
+
126
+ You can do that with the [Feed to Post](http://www.wprssaggregator.com/extensions/feed-to-post) add-on. You will not only be able to store items as posts, but also as other custom post types, as well as set the author, auto set tags and categories, and much more.
127
+
128
+ = Some RSS feeds only give a short excerpt, any way around that? =
129
+
130
+ Yes, within the [Feed to Post](http://www.wprssaggregator.com/extensions/feed-to-post) add-on we have an advanced feature that can get the full content of those feeds that only supply a short excerpt.
131
+
132
+
133
+ == Screenshots ==
134
+
135
+ 1. The output of this plugin on the frontend.
136
+
137
+ 2. The output from the aggregator with the [Excerpts & Thumbnails](http://www.wprssaggregator.com/extensions/excerpts-thumbnails) add-on installed.
138
+
139
+ 3. Adding a new feed source.
140
+
141
+ 4. Imported feeds.
142
+
143
+ 5. Plugin settings page.
144
+
145
+
146
+ == Changelog ==
147
+
148
+ = 3.9.5 (2014-01-02) =
149
+ * Enhanced: Added a feed validator link in the New/Edit Feed Sources page.
150
+ * Enhanced: The Next Update column also shows the time remaining for next update, for feed source on the global update interval.
151
+ * Enhanced: The custom feed has been improved, and is now identical to the feeds displayed with the shortcode.
152
+ * Enhanced: License notifications only appear on the main site when using WordPress multisite.
153
+ * Enhanced: Updated Colorbox script to 1.4.33
154
+ * Fixed bug: The Imported Items column was always showing zero.
155
+ * Fixed bug: Feed items not being imported with limit set to zero. Should be unlimited.
156
+ * Fixed bug: Fat header in Feed Sources page
157
+
158
+ = 3.9.4 (2013-12-24) =
159
+ * Enhanced: Added a column in the Feed Sources page that shows the number of feed items imported for each feed source.
160
+ * Fixed bug: Leaving the delete old feed items empty did not ignore the delete.
161
+
162
+ = 3.9.3 (2013-12-23) =
163
+ * Fixed bug: Fixed tracking pointer appearing on saving settings.
164
+
165
+ = 3.9.2 (2013-12-21) =
166
+ * Fixed bug: Incorrect file include call.
167
+
168
+ = 3.9.1 (2013-12-12) =
169
+ * Enhanced: Improved date and time handling for imported feed items.
170
+ * Fixed bug: Incorrect values being shown in the Feed Processing metabox.
171
+ * Fixed bug: Feed limits set to zero were causing feeds to not be imported.
172
+
173
+ = 3.9 (2013-12-12) =
174
+ * New Feature: Feed sources can have their own update interval.
175
+ * New Feature: The time remaining until the next update has been added to the Feed Source table.
176
+
177
+ = 3.8 (2013-12-05) =
178
+ * New Feature: Feed items can be limited and deleted by their age.
179
+ * Enhanced: Added utility functions for shorter filters.
180
+ * Fixed bug: License codes were being erased when add-ons were deactivated.
181
+ * Fixed bug: Some feed sources could not be set to active from the table controls.
182
+ * Fixed bug: str_pos errors appear when custom feed url is left empty.
183
+ * Fixed bug: Some options were producing undefined index errors.
184
+
185
+ = 3.7 (2013-11-28) =
186
+ * New Feature: State system - Feed sources can be activated/paused.
187
+ * New Feature: State system - Feed sources can be set to activate or pause themselves at a specific date and time.
188
+ * Enhanced: Added compatibility with nested outline elements in OPML files.
189
+ * Enhanced: Admin menu icon image will change into a Dashicon, when WordPress is updated to 3.8 (Decemeber 2013).
190
+ * Fixed bug: Custom Post types were breaking when the plugin is activated.
191
+
192
+ = 3.6.1 (2013-11-17) =
193
+ * Fixed bug: Missing 2nd argument for wprss_shorten_title()
194
+
195
+ = 3.6 (2013-11-16) =
196
+ * New Feature: Can set the maximum length for titles. Long titles get trimmed.
197
+ * Fixed bug: Fixed errors with undefined indexes for unchecked checkboxes in the settings page.
198
+ * Fixed bug: Pagination on front static page was not working.
199
+
200
+ = 3.5.2 (2013-11-11) =
201
+ * Fixed bug: Invalid feed source url was producing an Undefined method notice.
202
+ * Fixed bug: Custom feed was producing a 404 page.
203
+ * Fixed bug: Presstrends code firing on admin_init, opt-in implementation coming soon
204
+
205
+ = 3.5.1 (2013-11-09) =
206
+ * Enhanced: Increased compatibility with RSS sources.
207
+ * Fixed bug: Pagination not working on home page
208
+
209
+ = 3.5 (2013-11-6) =
210
+ * New Feature: Can delete feed items for a particular source
211
+ * Enhanced: the 'Fetch feed items' row action for feed sources resets itself after 3.5 seconds.
212
+ * Enhanced: The feed image is saved for each url.
213
+ * Fixed bug: Link to source now links to correct url. Previously linked to site's feed.
214
+
215
+ = 3.4.6 (2013-11-1) =
216
+ * Enhanced: Added more hooks to debugging page for the Feed to Post add-on.
217
+ * Fixed bug: Uninitialized loop index
218
+
219
+ = 3.4.5 (2013-10-30) =
220
+ * Bug Fix: Feed items were not being imported while the WPML plugin was active.
221
+
222
+ = 3.4.4 (2013-10-26) =
223
+ * New feature: Pagination
224
+ * New feature: First implementation of editor button for easy shortcode creation
225
+ * Enhanced: Feed items and sources don't show up in link manager
226
+ * Enhanced: Included Presstrends code for plugin usage monitoring
227
+
228
+ = 3.4.3 (2013-10-20) =
229
+ * Fixed bug: Removed anonymous functions for backwards PHP compatibility
230
+ * Bug fix: Added suppress_filters in feed-display.php to prevent a user reported error
231
+ * Bug fix: Missing <li> in certain feed displays
232
+
233
+ = 3.4.2 (2013-9-19) =
234
+ * Enhanced: Added some hooks for Feed to Post compatibility
235
+ * Enhanced: Moved date settings to a more appropriate location
236
+
237
+ = 3.4.1 (2013-9-16) =
238
+ * Fixed Bug: Minor issue with options page - PHP notice
239
+
240
+ = 3.4 (2013-9-15) =
241
+ * New Feature: Saving/Updating a feed source triggers an update for that source's feed items.
242
+ * New Feature: Option to change Youtube, Vimeo and Dailymotion feed item URLs to embedded video players URLs
243
+ * New Feature: Facebook Pages URLs are automatically detected and changed into Atom Feed URLs using FB's Graph
244
+ * Enhanced: Updated jQuery Colorbox library to 1.4.29
245
+ * Fixed Bug: Some settings did not have a default value set, and were throwing an 'Undefined Index' error
246
+ * Fixed Bug: Admin notices do not disappear immediately when dismissed.
247
+
248
+ = Version 3.3.3 (2013-09-08) =
249
+ * Fixed bug: Better function handling on uninstall, should remove uninstall issues
250
+
251
+ = Version 3.3.2 (2013-09-07) =
252
+ * New feature: Added exclude parameter to shortcode
253
+ * Enhanced: Added metabox links to documentation and add-ons
254
+ * Fixed bug: Custom feed linking to post on user site rather than original source
255
+ * Fixed bug: Custom post types issues when activitating the plugin
256
+
257
+ = Version 3.3.1 (2013-08-09) =
258
+ * Fixed Bug: Roles and Capabilities file had not been included
259
+ * Fixed Bug: Error on install, function not found
260
+
261
+ = Version 3.3 (2013-08-08) =
262
+ * New feature: OPML importer
263
+ * New feature: Feed item limits for individual Feed Sources
264
+ * New feature: Custom feed URL
265
+ * New feature: Feed limit on custom feed
266
+ * New feature: New 'Fetch feed items' action for each Feed Source in listing display
267
+ * New feature: Option to enable link to source
268
+ * Enhanced: Date strings now change according to locale being used (i.e. compatible with WPML)
269
+ * Enhanced: Capabilities implemented
270
+ * Enhanced: Feed Sources row action 'View' removed
271
+ * Fixed Bug: Proxy feed URLs resulting in the permalink: example.com/url
272
+
273
+ = Version 3.2 (2013-07-06) =
274
+ * New feature: Parameter to limit number of feeds displayed
275
+ * New feature: Paramter to limit feeds displayed to particular sources (via ID)
276
+ * Enhanced: Better feed import handling to handle large number of feed sources
277
+
278
+ = Version 3.1.1 (2013-06-06) =
279
+ * Fixed bug: Incompatibility with some other plugins due to function missing namespace
280
+
281
+ = Version 3.1 (2013-06-06) =
282
+ * New feature: Option to set the number of feed items imported from every feed (default 5)
283
+ * New feature: Import and Export aggregator settings and feed sources
284
+ * New feature: Debugging page allowing manual feed refresh and feed reset
285
+ * Enhanced: Faster handling of restoring sources from trash when feed limit is 0
286
+ * Fixed bug: Limiter on number of overall feeds stored not working
287
+ * Fixed bug: Incompatibility issue with Foobox plugin fixed
288
+ * Fixed bug: Duplicate feeds sometimes imported
289
+
290
+ = Version 3.0 (2013-03-16) =
291
+ * New feature: Option to select cron frequency
292
+ * New feature: Code extensibility added to be compatible with add-ons
293
+ * New feature: Option to set a limit to the number of feeds stored (previously 50, hard coded)
294
+ * New feature: Option to define the format of the date shown below each feed item
295
+ * New feature: Option to show or hide source of feed item
296
+ * New feature: Option to show or hide publish date of feed item
297
+ * New feature: Option to set text preceding publish date
298
+ * New feature: Option to set text preceding source of feed item
299
+ * New feature: Option to link title or not
300
+ * New feature: Limit of 5 items imported for each source instead of 10
301
+ * Enhanced: Performance improvement when publishing * New feeds in admin
302
+ * Enhanced: Query tuning for better performance
303
+ * Enhanced: Major code rewrite, refactoring and inclusion of hooks
304
+ * Enhanced: Updated Colorbox to v1.4.1
305
+ * Enhanced: Better security implementations
306
+ * Enhanced: Better feed preview display
307
+ * Fixed bug: Deletion of items upon source deletion not working properly
308
+ * Requires: WordPress 3.3
309
+
310
+ = Version 2.2.3 (2012-11-01) =
311
+ * Fixed bug: Tab navigation preventing typing in input boxes
312
+ * Removed: Feeds showing up in internal linking pop up
313
+
314
+ = Version 2.2.2 (2012-10-30) =
315
+ * Removed: Feeds showing up in site search results
316
+ * Enhanced: Better tab button navigation when adding a new feed
317
+ * Enhanced: Better guidance when a feed URL is invalid
318
+
319
+ = Version 2.2.1 (2012-10-17) =
320
+ * Fixed bug: wprss_feed_source_order assumes everyone is an admin
321
+
322
+ = Version 2.2 (2012-10-01) =
323
+ * Italian translation added
324
+ * Feed source order changed to alphabetical
325
+ * Fixed bug - repeated entries when having a non-valid feed source
326
+ * Fixed bug - all imported feeds deleted upon trashing a single feed source
327
+
328
+ = Version 2.1 (2012-09-27) =
329
+ * Now localised for translations
330
+ * Fixed bug with date string
331
+ * Fixed $link_before and $link_after, now working
332
+ * Added backwards compatibility for wp_rss_aggregator() function
333
+
334
+ = Version 2.0 (2012-09-21) =
335
+ * Bulk of code rewritten and refactored
336
+ * Added install and upgrade functions
337
+ * Added DB version setting
338
+ * Feed sources now stored as Custom Post Types
339
+ * Feed source list sortable ascending or descending by name
340
+ * Removed days subsections in feed display
341
+ * Ability to limit total number of feeds displayed
342
+ * Feeds now fetched via Cron
343
+ * Cron job to delete old feed items, keeps max of 50 items in DB
344
+ * Now requires WordPress 3.2
345
+ * Updated colorbox to v1.3.20.1
346
+ * Limit of 15 items max imported for each source
347
+ * Fixed issue of page content displaying incorrectly after feeds
348
+
349
+ = Version 1.1 (2012-08-13) =
350
+ * Now requires WordPress 3.0
351
+ * More flexible fetching of images directory
352
+ * Has its own top level menu item
353
+ * Added settings section
354
+ * Ability to open in lightbox, new window or default browser behaviour
355
+ * Ability to set links as follow or no follow
356
+ * Using constants for oftenly used locations
357
+ * Code refactoring
358
+ * Changes in file and folder structure
359
+
360
+ = Version 1.0 (2012-01-06) =
361
+ * Initial release.
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
templates/wprss.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * WP RSS Aggregator Styles
3
+ *
4
+ * @package WP RSS Aggregator
5
+ * @subpackage CSS
6
+ * @copyright Copyright (c) 2013, Jean Galea
7
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8
+ */
9
+
uninstall.php CHANGED
@@ -1,8 +1,15 @@
1
- <?php
2
- // If uninstall not called from WordPress exit
3
- if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
4
- exit ();
5
- // Delete option from options table
6
- delete_option( 'wprss_options' );
7
- //
8
- ?>
 
 
 
 
 
 
 
1
+ <?php
2
+ // If uninstall not called from WordPress exit
3
+ if( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
4
+ exit ();
5
+
6
+ // Remove capabilities
7
+ if ( function_exists( 'wprss_remove_caps' ) )
8
+ wprss_remove_caps();
9
+
10
+ // Delete option from options table
11
+ delete_option( 'wprss_options' );
12
+ delete_option( 'wprss_settings' );
13
+ delete_option( 'wprss_settings_general' );
14
+ delete_option( 'wprss_db_version' );
15
+ delete_option( 'wprss_settings_notices' );
wp-rss-aggregator.php CHANGED
@@ -1,236 +1,451 @@
1
- <?php
2
- /*
3
- Plugin Name: WP RSS Aggregator
4
- Plugin URI: http://www.jeangalea.com
5
- Description: Imports and merges multiple RSS Feeds using SimplePie
6
- Version: 1.1
7
- Author: Jean Galea
8
- Author URI: http://www.jeangalea.com
9
- License: GPLv2
10
- */
11
-
12
- /* Copyright 2011-2012 Jean Galea (email : jean@jpgalea.com)
13
- This program is free software; you can redistribute it and/or modify
14
- it under the terms of the GNU General Public License as published by
15
- the Free Software Foundation; either version 2 of the License, or
16
- (at your option) any later version.
17
-
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
-
23
- You should have received a copy of the GNU General Public License
24
- along with this program; if not, write to the Free Software
25
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
- */
27
-
28
- // Define constants for ease of updating/modification later on in the lifespan of the plugin
29
- define( 'WPRSS_VERSION', '1.1', true );
30
- define( 'WPRSS_JS', plugins_url( 'js', __FILE__ ) , true );
31
- define( 'WPRSS_CSS', plugins_url( 'css', __FILE__ ) , true );
32
- define( 'WPRSS_IMG', plugins_url( 'img', __FILE__ ) , true );
33
- define( 'WPRSS_INC', plugins_url( 'inc', __FILE__ ) , true );
34
- define( 'WPRSS_PATH', plugin_dir_path( __FILE__ ), true );
35
-
36
-
37
- /**
38
- * Initialisation of the plugin
39
- */
40
-
41
- add_action( 'init', 'wprss_init' );
42
-
43
- function wprss_init() {
44
-
45
- require ( WPRSS_PATH . 'inc/activation.php' );
46
- require ( WPRSS_PATH . 'inc/deactivation.php' );
47
- require ( WPRSS_PATH . 'inc/shortcodes.php' );
48
- require ( WPRSS_PATH . 'inc/admin-options.php' );
49
-
50
- register_activation_hook( WPRSS_INC . '/activation.php', 'wprss_activate' );
51
- register_deactivation_hook( WPRSS_INC . '/deactivation.php', 'wprss_deactivate' );
52
-
53
- add_action ( 'wp_head', 'wprss_head_output' );
54
-
55
- wp_enqueue_style( 'colorbox', WPRSS_CSS . '/colorbox.css' );
56
- wp_enqueue_script( 'jquery.colorbox-min', WPRSS_JS .'/jquery.colorbox-min.js', array('jquery') );
57
-
58
- // Only load scripts if we are on this plugin's options or settings pages (admin)
59
- if ( isset( $_GET['page'] ) && ( $_GET['page'] == 'wprss-aggregator' | $_GET['page'] == 'wprss-aggregator-settings' ) ) {
60
- wp_enqueue_style( 'styles', WPRSS_CSS . '/styles.css' );
61
- }
62
-
63
- // Only load scripts if we are on this plugin's options page (admin)
64
- if ( isset( $_GET['page'] ) && $_GET['page'] == 'wprss-aggregator' ) {
65
- wp_enqueue_script( 'jquery' );
66
- wp_enqueue_script( 'add-remove', WPRSS_JS . '/add-remove.js' );
67
- }
68
- }
69
-
70
-
71
- /**
72
- * jQuery code to trigger Colorbox for links, goes in the <head> section on frontend
73
- */
74
-
75
- function wprss_head_output() {
76
- echo "
77
- <script type='text/javascript'>
78
- jQuery( document ).ready( function() {
79
- jQuery( 'a.colorbox' ).colorbox(
80
- {iframe:true, width:'80%', height:'80%'}
81
- );
82
- });
83
- </script>";
84
- }
85
-
86
-
87
-
88
- /**
89
- * Convert from field name to user-friendly name
90
- */
91
-
92
- function wprss_convert_key( $key ) {
93
- if ( strpos( $key, 'feed_name_' ) === 0 ) {
94
- $label = str_replace( 'feed_name_', 'Feed name ', $key );
95
- }
96
-
97
- else if ( strpos( $key, 'feed_url_' ) === 0 ) {
98
- $label = str_replace( 'feed_url_', 'Feed URL ', $key );
99
- }
100
- return $label;
101
- }
102
-
103
-
104
- /**
105
- * Get feeds and output the aggregation
106
- */
107
-
108
- function wp_rss_aggregator( $args = array() ) {
109
-
110
- $defaults = array(
111
- 'date_before' => '<h3>',
112
- 'date_after' => '</h3>',
113
- 'links_before' => '<ul>',
114
- 'links_after' => '</ul>',
115
- 'link_before' => '<li>',
116
- 'link_after' => '</li>'
117
- );
118
-
119
- // Parse incoming $args into an array and merge it with $defaults
120
- $args = wp_parse_args( $args, $defaults );
121
- // Declare each item in $args as its own variable
122
- extract( $args, EXTR_SKIP );
123
-
124
- $wprss_options = get_option( 'wprss_options', 'option not found' );
125
-
126
- foreach ( $wprss_options as $key => $value ) {
127
- if ( strpos( $key, 'feed_url_' ) === 0 ) {
128
- $feed_uris[] = $value;
129
- }
130
- }
131
-
132
- if ( !empty( $feed_uris ) ) {
133
- // update feeds every hour else serve from cache
134
- function wprss_hourly_feed() { return 3600; }
135
- add_filter( 'wp_feed_cache_transient_lifetime', 'wprss_hourly_feed' );
136
- $feed = fetch_feed( $feed_uris );
137
- }
138
- else echo 'No feed defined';
139
- remove_filter( 'wp_feed_cache_transient_lifetime', 'wprss_hourly_feed' );
140
-
141
- $items = $feed->get_items();
142
- $items_today = array();
143
- $items_yesterday = array();
144
- $items_two_days_ago = array();
145
- $items_older = array();
146
-
147
-
148
- foreach ( $items as $item ):
149
- $item_date = $item->get_date('l jS F (Y-m-d)');
150
- if ( $item_date == date('l jS F (Y-m-d)', strtotime('today') ) ) {
151
- $items_today[] = $item;
152
- }
153
- else if ( $item_date == date('l jS F (Y-m-d)', strtotime('yesterday') ) ) {
154
- $items_yesterday[] = $item;
155
- }
156
- else if ( $item_date == date('l jS F (Y-m-d)', strtotime('-2 days') ) ) {
157
- $items_two_days_ago[] = $item;
158
- }
159
- else {
160
- $items_older[] = $item;
161
- }
162
- endforeach;
163
-
164
- $settings = get_option( 'wprss_settings' );
165
- $class = '';
166
- $open_setting = '';
167
- $follow_setting = '';
168
-
169
- switch ( $settings['open_dd'] ) {
170
-
171
- case 'Lightbox' :
172
- $class = 'class="colorbox"';
173
- break;
174
-
175
- case 'New window' :
176
- $open_setting = 'target="_blank"';
177
- break;
178
- }
179
-
180
- switch ( $settings['follow_dd'] ) {
181
-
182
- case 'No follow' :
183
- $follow_setting = 'rel="nofollow"';
184
- break;
185
- }
186
-
187
-
188
- if ( !empty( $items_today ) ) {
189
- echo $date_before . 'Today' . $date_after;
190
- echo $links_before;
191
- foreach ( $items_today as $item ) {
192
- echo $link_before . '<a ' . $class . $open_setting . $follow_setting . 'href="' . $item->get_permalink() .'">'. $item->get_title(). ' '. '</a>';
193
- echo '<br><span class="feed-source">Source: '.$item->get_feed()->get_title()/* . ' | ' . $item->get_date('l jS F').''*/ . '</span>';
194
- echo $link_after;
195
- }
196
- echo $links_after;
197
- }
198
-
199
- if ( !empty( $items_yesterday ) ) {
200
- echo $date_before . 'Yesterday' . $date_after;
201
- echo $links_before;
202
- foreach ( $items_yesterday as $item ) {
203
- echo '<li><a ' . $class . $open_setting . $follow_setting . 'href="' . $item->get_permalink() .'">'. $item->get_title(). ' '. '</a>';
204
- echo '<br><span class="feed-source">Source: '.$item->get_feed()->get_title()/* . ' | ' . $item->get_date('l jS F').''*/ . '</span>';
205
- echo $link_after;
206
- }
207
- echo $links_after;
208
- }
209
-
210
- if ( !empty( $items_two_days_ago ) ) {
211
- echo $date_before . '2 days ago' . $date_after;
212
- echo $links_before;
213
- foreach ( $items_two_days_ago as $item ) {
214
- echo '<li><a ' . $class . $open_setting . $follow_setting . 'href="' . $item->get_permalink() .'">'. $item->get_title(). ' '. '</a>';
215
- echo '<br><span class="feed-source">Source: '.$item->get_feed()->get_title()/* . ' | ' . $item->get_date('l jS F').''*/ . '</span>';
216
- echo $link_after;
217
- }
218
- echo $links_after;
219
- }
220
- if ( !empty( $items_older ) ) {
221
- echo $date_before . 'More than 2 days ago' . $date_after;
222
- echo $links_before;
223
- foreach ( $items_older as $item ) {
224
- echo '<li><a ' . $class . $open_setting . $follow_setting . 'href="' . $item->get_permalink() .'">'. $item->get_title(). ' '. '</a>';
225
- echo '<br><span class="feed-source">Source: '.$item->get_feed()->get_title() . ' | ' . $item->get_date('l jS F').'</span>';
226
- echo $link_after;
227
- }
228
- echo $links_after;
229
-
230
- }
231
- }
232
-
233
- // use just for testing - runs on each wp load
234
- //add_action( 'wp_loaded', 'wp_rss_aggregator' );
235
-
236
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: WP RSS Aggregator
4
+ Plugin URI: http://www.wprssaggregator.com
5
+ Description: Imports and aggregates multiple RSS Feeds using SimplePie
6
+ Version: 3.9.5
7
+ Author: Jean Galea
8
+ Author URI: http://www.wprssaggregator.com
9
+ License: GPLv2
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+ */
12
+
13
+ /*
14
+ Copyright 2012-2013 Jean Galea (email : info@jeangalea.com)
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License as published by
17
+ the Free Software Foundation; either version 2 of the License, or
18
+ (at your option) any later version.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /**
31
+ * @package WPRSSAggregator
32
+ * @version 3.9.5
33
+ * @since 1.0
34
+ * @author Jean Galea <info@jeangalea.com>
35
+ * @copyright Copyright (c) 2012-2013, Jean Galea
36
+ * @link http://www.wpmayor.com/
37
+ * @license http://www.gnu.org/licenses/gpl.html
38
+ */
39
+
40
+ /**
41
+ * Define constants used by the plugin.
42
+ */
43
+
44
+ // Set the version number of the plugin.
45
+ if( !defined( 'WPRSS_VERSION' ) )
46
+ define( 'WPRSS_VERSION', '3.9.5', true );
47
+
48
+ // Set the database version number of the plugin.
49
+ if( !defined( 'WPRSS_DB_VERSION' ) )
50
+ define( 'WPRSS_DB_VERSION', 12 );
51
+
52
+ // Set the plugin prefix
53
+ if( !defined( 'WPRSS_PREFIX' ) )
54
+ define( 'WPRSS_PREFIX', 'wprss', true );
55
+
56
+ // Set the plugin prefix
57
+ if( !defined( 'WPRSS_FILE_CONSTANT' ) )
58
+ define( 'WPRSS_FILE_CONSTANT', __FILE__, true );
59
+
60
+ // Set constant path to the plugin directory.
61
+ if( !defined( 'WPRSS_DIR' ) )
62
+ define( 'WPRSS_DIR', plugin_dir_path( __FILE__ ) );
63
+
64
+ // Set constant URI to the plugin URL.
65
+ if( !defined( 'WPRSS_URI' ) )
66
+ define( 'WPRSS_URI', plugin_dir_url( __FILE__ ) );
67
+
68
+ // Set the constant path to the plugin's javascript directory.
69
+ if( !defined( 'WPRSS_JS' ) )
70
+ define( 'WPRSS_JS', WPRSS_URI . trailingslashit( 'js' ), true );
71
+
72
+ // Set the constant path to the plugin's CSS directory.
73
+ if( !defined( 'WPRSS_CSS' ) )
74
+ define( 'WPRSS_CSS', WPRSS_URI . trailingslashit( 'css' ), true );
75
+
76
+ // Set the constant path to the plugin's images directory.
77
+ if( !defined( 'WPRSS_IMG' ) )
78
+ define( 'WPRSS_IMG', WPRSS_URI . trailingslashit( 'images' ), true );
79
+
80
+ // Set the constant path to the plugin's includes directory.
81
+ if( !defined( 'WPRSS_INC' ) )
82
+ define( 'WPRSS_INC', WPRSS_DIR . trailingslashit( 'includes' ), true );
83
+
84
+
85
+ /**
86
+ * Load required files.
87
+ */
88
+
89
+ /* Load install, upgrade and migration code. */
90
+ require_once ( WPRSS_INC . 'update.php' );
91
+
92
+ /* Load the shortcodes functions file. */
93
+ require_once ( WPRSS_INC . 'shortcodes.php' );
94
+
95
+ /* Load the custom post types and taxonomies. */
96
+ require_once ( WPRSS_INC . 'custom-post-types.php' );
97
+
98
+ /* Load the file for setting capabilities of our post types */
99
+ require_once ( WPRSS_INC . 'roles-capabilities.php' );
100
+
101
+ /* Load the feed processing functions file */
102
+ require_once ( WPRSS_INC . 'feed-processing.php' );
103
+
104
+ /* Load the feed display functions file */
105
+ require_once ( WPRSS_INC . 'feed-display.php' );
106
+
107
+ /* Load the custom feed file */
108
+ require_once ( WPRSS_INC . 'custom-feed.php' );
109
+
110
+ /* Load the cron job scheduling functions. */
111
+ require_once ( WPRSS_INC . 'cron-jobs.php' );
112
+
113
+ /* Load the admin functions file. */
114
+ require_once ( WPRSS_INC . 'admin.php' );
115
+
116
+ /* Load the admin options functions file. */
117
+ require_once ( WPRSS_INC . 'admin-options.php' );
118
+
119
+ /* Load the settings import/export file */
120
+ require_once ( WPRSS_INC . 'admin-import-export.php' );
121
+
122
+ /* Load the debugging file */
123
+ require_once ( WPRSS_INC . 'system-info.php' );
124
+
125
+ /* Load the miscellaneous functions file */
126
+ require_once ( WPRSS_INC . 'misc-functions.php' );
127
+
128
+ /* Load the OPML Class file */
129
+ require_once ( WPRSS_INC . 'OPML.php' );
130
+
131
+ /* Load the OPML Importer file */
132
+ require_once ( WPRSS_INC . 'opml-importer.php' );
133
+
134
+ /* Load the system info file */
135
+ require_once ( WPRSS_INC . 'admin-debugging.php' );
136
+
137
+ /* Load the admin display-related functions */
138
+ require_once ( WPRSS_INC . 'admin-display.php' );
139
+
140
+ /* Load the admin metaboxes functions */
141
+ require_once ( WPRSS_INC . 'admin-metaboxes.php' );
142
+
143
+ /* Load the scripts loading functions file */
144
+ require_once ( WPRSS_INC . 'scripts.php' );
145
+
146
+ /* Load the Ajax notification file */
147
+ require_once ( WPRSS_INC . 'admin-ajax-notice.php' );
148
+
149
+ /* Load the dashboard welcome screen file */
150
+ require_once ( WPRSS_INC . 'admin-dashboard.php' );
151
+
152
+ /* Load the logging class */
153
+ require_once ( WPRSS_INC . 'roles-capabilities.php' );
154
+
155
+ /* Load the security reset file */
156
+ require_once ( WPRSS_INC . 'secure-reset.php' );
157
+
158
+ /* Load the logging class
159
+ Need to make a check to avoid conflicts before loading. Not being used at the moment */
160
+ // require_once ( WPRSS_INC . 'libraries/WP_Logging.php' );
161
+
162
+ require_once ( WPRSS_INC . 'admin-editor.php' );
163
+
164
+
165
+ register_activation_hook( __FILE__ , 'wprss_activate' );
166
+ register_deactivation_hook( __FILE__ , 'wprss_deactivate' );
167
+
168
+
169
+ add_action( 'init', 'wprss_init' );
170
+ /**
171
+ * Initialise the plugin
172
+ *
173
+ * @since 1.0
174
+ * @return void
175
+ */
176
+ function wprss_init() {
177
+ do_action( 'wprss_init' );
178
+ }
179
+
180
+
181
+
182
+ add_filter( 'wprss_admin_pointers', 'wprss_check_tracking_notice' );
183
+ /**
184
+ * Сhecks the tracking option and if not set, shows a pointer with opt in and out options.
185
+ *
186
+ * @since 3.6
187
+ */
188
+ function wprss_check_tracking_notice( $pointers ){
189
+ $settings = get_option( 'wprss_settings_general', array( 'tracking' => '' ) );
190
+ $wprss_tracking = ( isset( $settings['tracking'] ) )? $settings['tracking'] : '';
191
+
192
+ if ( $wprss_tracking === '' ) {
193
+ $tracking_pointer = array(
194
+ 'wprss_tracking_pointer' => array(
195
+
196
+ 'target' => '#wpadminbar',
197
+ 'options' => array(
198
+ 'content' => '<h3>' . __( 'Help improve WP RSS Aggregator', 'wprss' ) . '</h3>' . '<p>' . __( 'You\'ve just installed WP RSS Aggregator. Please helps us improve it by allowing us to gather anonymous usage stats so we know which configurations, plugins and themes to test with.', 'wprss' ) . '</p>',
199
+ 'position' => array(
200
+ 'edge' => 'top',
201
+ 'align' => 'center',
202
+ ),
203
+ 'active' => TRUE,
204
+ 'btns' => array(
205
+ 'wprss-tracking-opt-out' => __( 'Do not allow tracking', 'wprss' ),
206
+ 'wprss-tracking-opt-in' => __( 'Allow tracking', 'wprss' ),
207
+ )
208
+ )
209
+ )
210
+
211
+ );
212
+ return array_merge( $pointers, $tracking_pointer );
213
+ }
214
+ else return $pointers;
215
+ }
216
+
217
+
218
+
219
+ add_action( 'admin_enqueue_scripts', 'wprss_prepare_pointers', 1000 );
220
+ /**
221
+ * Prepare the admin pointers
222
+ *
223
+ * @since 3.6
224
+ */
225
+ function wprss_prepare_pointers() {
226
+ // Don't run on WP < 3.3
227
+ if ( get_bloginfo( 'version' ) < '3.3' )
228
+ return;
229
+
230
+ $screen = get_current_screen();
231
+ $screen_id = $screen->id;
232
+
233
+ // Get pointers
234
+ $pointers = apply_filters( 'wprss_admin_pointers', array() );
235
+
236
+ if ( ! $pointers || ! is_array( $pointers ) )
237
+ return;
238
+
239
+ $dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
240
+ $valid_pointers = array();
241
+
242
+ // Check pointers and remove dismissed ones.
243
+ foreach ( $pointers as $pointer_id => $pointer ) {
244
+ // Sanity check
245
+ if ( in_array( $pointer_id, $dismissed ) || empty( $pointer ) || empty( $pointer_id ) || empty( $pointer['target'] ) || empty( $pointer['options'] ) )
246
+ continue;
247
+ $pointer['pointer_id'] = $pointer_id;
248
+ // Add the pointer to $valid_pointers array
249
+ $valid_pointers['pointers'][] = $pointer;
250
+ }
251
+
252
+ // No valid pointers? Stop here.
253
+ if ( empty( $valid_pointers ) )
254
+ return;
255
+
256
+ // Add pointers style to queue.
257
+ wp_enqueue_style( 'wp-pointer' );
258
+
259
+ // Add pointers script to queue. Add custom script.
260
+ wp_enqueue_script( 'wprss-pointers', WPRSS_JS . 'pointers.js', array( 'wp-pointer' ) );
261
+
262
+ // Add pointer options to script.
263
+ wp_localize_script( 'wprss-pointers', 'wprssPointers', $valid_pointers );
264
+
265
+ add_action( 'admin_print_footer_scripts', 'wprss_footer_pointer_scripts' );
266
+ }
267
+
268
+
269
+ /**
270
+ * Print the scripts for the admin pointers
271
+ *
272
+ * @since 3.6
273
+ */
274
+ function wprss_footer_pointer_scripts() {
275
+ ?>
276
+ <script type="text/javascript">
277
+
278
+ jQuery(document).ready( function($) {
279
+
280
+ for( i in wprssPointers.pointers ) {
281
+ pointer = wprssPointers.pointers[i];
282
+
283
+ options = $.extend( pointer.options, {
284
+ content: pointer.options.content,
285
+ position: pointer.options.position,
286
+ close: function() {
287
+ $.post( ajaxurl, {
288
+ pointer: pointer.pointer_id,
289
+ action: 'dismiss-wp-pointer'
290
+ });
291
+ },
292
+ buttons: function( event, t ){
293
+ btns = jQuery('<div></div>');
294
+ for( i in pointer.options.btns ) {
295
+ btn = jQuery('<a>').attr('id', i).css('margin-left','5px').text( pointer.options.btns[i] );
296
+ btn.bind('click.pointer', function () {
297
+ t.element.pointer('close');
298
+ });
299
+ btns.append( btn );
300
+ }
301
+ return btns;
302
+ }
303
+ });
304
+
305
+ $(pointer.target).pointer( options ).pointer('open');
306
+ }
307
+
308
+ $('#wprss-tracking-opt-in').addClass('button-primary').click( function(){ wprssTrackingOptAJAX(1); } );
309
+ $('#wprss-tracking-opt-out').addClass('button-secondary').click( function(){ wprssTrackingOptAJAX(0); } );;
310
+
311
+ });
312
+
313
+ </script>
314
+
315
+ <?php
316
+ }
317
+
318
+
319
+ /**
320
+ * Plugin activation procedure
321
+ *
322
+ * @since 1.0
323
+ * @return void
324
+ */
325
+ function wprss_activate() {
326
+ /* Prevents activation of plugin if compatible version of WordPress not found */
327
+ if ( version_compare( get_bloginfo( 'version' ), '3.3', '<' ) ) {
328
+ deactivate_plugins ( basename( __FILE__ )); // Deactivate plugin
329
+ wp_die( __( 'This plugin requires WordPress version 3.3 or higher.' ), 'WP RSS Aggregator', array( 'back_link' => true ) );
330
+ }
331
+ wprss_settings_initialize();
332
+ flush_rewrite_rules();
333
+ wprss_schedule_fetch_all_feeds_cron();
334
+
335
+ // Get the previous welcome screen version
336
+ $pwsv = get_option( 'wprss_pwsv', '0.0' );
337
+ // If the aggregator version is higher than the previous version ...
338
+ if ( version_compare( WPRSS_VERSION, $pwsv, '>' ) ) {
339
+ // Sets a transient to trigger a redirect upon completion of activation procedure
340
+ set_transient( '_wprss_activation_redirect', true, 30 );
341
+ }
342
+ }
343
+
344
+
345
+ /**
346
+ * Plugin deactivation procedure
347
+ *
348
+ * @since 1.0
349
+ */
350
+ function wprss_deactivate() {
351
+ // on deactivation remove the cron job
352
+ if ( wp_next_scheduled( 'wprss_fetch_all_feeds_hook' ) ) {
353
+ wp_clear_scheduled_hook( 'wprss_fetch_all_feeds_hook' );
354
+ }
355
+ flush_rewrite_rules();
356
+ }
357
+
358
+
359
+ add_action( 'plugins_loaded', 'wprss_load_textdomain' );
360
+ /**
361
+ * Loads the plugin's translated strings.
362
+ *
363
+ * @since 2.1
364
+ * @return void
365
+ */
366
+ function wprss_load_textdomain() {
367
+ load_plugin_textdomain( 'wprss', false, plugin_dir_path( __FILE__ ) . '/languages/' );
368
+ }
369
+
370
+
371
+ // PressTrends WordPress Action
372
+ add_action( 'admin_init', 'wprss_presstrends_plugin' );
373
+ /**
374
+ * Track plugin usage using PressTrends
375
+ *
376
+ * @since 3.5
377
+ * @return void
378
+ */
379
+ function wprss_presstrends_plugin() {
380
+ $settings = get_option( 'wprss_settings_general' );
381
+ if ( ! isset( $settings['tracking'] ) || $settings['tracking'] != 1 ) return;
382
+
383
+ // PressTrends Account API Key
384
+ $api_key = 'znggu7vk7x2ddsiigkerzsca9q22xu1j53hp';
385
+ $auth = 'd8giw5yyux4noasmo8gua98n7fv2hrl11';
386
+ // Start of Metrics
387
+ global $wpdb;
388
+ $data = get_transient( 'presstrends_cache_data' );
389
+ if ( !$data || $data == '' ) {
390
+ $api_base = 'http://api.presstrends.io/index.php/api/pluginsites/update?auth=';
391
+ $url = $api_base . $auth . '&api=' . $api_key . '';
392
+ $count_posts = wp_count_posts();
393
+ $count_pages = wp_count_posts( 'page' );
394
+ $comments_count = wp_count_comments();
395
+ if ( function_exists( 'wp_get_theme' ) ) {
396
+ $theme_data = wp_get_theme();
397
+ $theme_name = urlencode( $theme_data->Name );
398
+ } else {
399
+ $theme_data = get_theme_data( get_stylesheet_directory() . '/style.css' );
400
+ $theme_name = $theme_data['Name'];
401
+ }
402
+ $plugin_name = '&';
403
+ foreach ( get_plugins() as $plugin_info ) {
404
+ $plugin_name .= $plugin_info['Name'] . '&';
405
+ }
406
+ // CHANGE __FILE__ PATH IF LOCATED OUTSIDE MAIN PLUGIN FILE
407
+ $plugin_data = get_plugin_data( __FILE__ );
408
+ $posts_with_comments = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type='post' AND comment_count > 0" );
409
+ $data = array(
410
+ 'url' => base64_encode(site_url()),
411
+ 'posts' => $count_posts->publish,
412
+ 'pages' => $count_pages->publish,
413
+ 'comments' => $comments_count->total_comments,
414
+ 'approved' => $comments_count->approved,
415
+ 'spam' => $comments_count->spam,
416
+ 'pingbacks' => $wpdb->get_var( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_type = 'pingback'" ),
417
+ 'post_conversion' => ( $count_posts->publish > 0 && $posts_with_comments > 0 ) ? number_format( ( $posts_with_comments / $count_posts->publish ) * 100, 0, '.', '' ) : 0,
418
+ 'theme_version' => $plugin_data['Version'],
419
+ 'theme_name' => $theme_name,
420
+ 'site_name' => str_replace( ' ', '', get_bloginfo( 'name' ) ),
421
+ 'plugins' => count( get_option( 'active_plugins' ) ),
422
+ 'plugin' => urlencode( $plugin_name ),
423
+ 'wpversion' => get_bloginfo( 'version' ),
424
+ );
425
+ foreach ( $data as $k => $v ) {
426
+ $url .= '&' . $k . '=' . $v . '';
427
+ }
428
+ wp_remote_get( $url );
429
+ set_transient( 'presstrends_cache_data', $data, 60 * 60 * 24 );
430
+ }
431
+ }
432
+
433
+
434
+
435
+ /**
436
+ * Utility filter function that returns TRUE;
437
+ *
438
+ * @since 3.8
439
+ */
440
+ function wprss_enable() {
441
+ return TRUE;
442
+ }
443
+
444
+ /**
445
+ * Utility filter function that returns FALSE;
446
+ *
447
+ * @since 3.8
448
+ */
449
+ function wprss_disable() {
450
+ return FALSE;
451
+ }