Robin image optimizer — save money on image compression - Version 1.4.1

Version Description

(24.12.2019) = * Fixed: Some bugs * Added: ompatible with Wordpress 5.3

Download this release

Release Info

Developer alexkovalevv
Plugin Icon 128x128 Robin image optimizer — save money on image compression
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.3.7 to 1.4.1

Files changed (208) hide show
  1. admin/activation.php +30 -2
  2. admin/ajax/bulk-optimization.php +4 -1
  3. admin/ajax/meta-migrations.php +1 -1
  4. admin/assets/css/base-statistic.css +658 -656
  5. admin/assets/css/base-statistic.css.map +1 -1
  6. admin/assets/css/base-statistic.less +3 -1
  7. admin/assets/js/bulk-optimization.js +16 -9
  8. admin/boot.php +15 -15
  9. admin/includes/classes/class-rio-optimize-template.php +4 -4
  10. admin/pages/class-rio-license.php +3 -3
  11. admin/pages/class-rio-log.php +4 -2
  12. admin/pages/class-rio-page.php +1 -1
  13. admin/pages/class-rio-settings.php +1 -1
  14. admin/pages/class-rio-statistic.php +1 -0
  15. includes/class-rio-plugin.php +62 -42
  16. includes/classes/class-rio-attachment.php +329 -232
  17. includes/classes/class-rio-image-statistic.php +129 -63
  18. includes/classes/class-rio-media-library.php +31 -53
  19. includes/classes/class-rio-views.php +4 -4
  20. includes/classes/index.php +1 -0
  21. includes/classes/logger/class-rio-logger.php +10 -6
  22. includes/classes/models/class-rio-process-queue-table.php +38 -5
  23. includes/functions.php +43 -8
  24. libs/addons/admin/ajax/folders.php +21 -5
  25. libs/addons/admin/assets/js/custom-folders.js +4 -4
  26. libs/addons/admin/boot.php +1 -1
  27. libs/addons/includes/classes/webp/class-webp-delivery.php +82 -18
  28. libs/addons/includes/classes/webp/class-webp-listener.php +10 -10
  29. libs/addons/includes/classes/webp/composer.lock +73 -73
  30. libs/addons/includes/classes/webp/vendor/autoload.php +1 -1
  31. libs/addons/includes/classes/webp/vendor/composer/ClassLoader.php +1 -1
  32. libs/addons/includes/classes/webp/vendor/composer/autoload_real.php +4 -4
  33. libs/addons/includes/classes/webp/vendor/composer/autoload_static.php +3 -3
  34. libs/addons/includes/classes/webp/vendor/composer/installed.json +8 -8
  35. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/README.md +6 -1
  36. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/composer.json +6 -4
  37. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/phpstan.neon +3 -0
  38. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/phpunit.xml.dist +9 -1
  39. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/{src → src-vendor}/simple_html_dom/simple_html_dom.inc +0 -0
  40. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/src/ImageUrlReplacer.php +23 -5
  41. libs/addons/includes/classes/webp/vendor/rosell-dk/dom-util-for-webp/src/PictureTags.php +6 -6
  42. libs/addons/includes/functions.php +110 -0
  43. libs/addons/views/modal-select-custom-folders.php +1 -1
  44. libs/addons/views/part-bulk-optimization-table-folders.php +1 -1
  45. libs/class-rio-relative-to-abs-uri.php +183 -0
  46. libs/factory/adverts/boot.php +50 -0
  47. libs/factory/adverts/includes/class-base.php +319 -0
  48. libs/factory/adverts/includes/class-dashboard-widget.php +125 -0
  49. libs/factory/adverts/includes/class-rest-request.php +197 -0
  50. libs/factory/adverts/includes/index.php +2 -0
  51. libs/factory/adverts/index.php +2 -0
  52. libs/factory/{core/langs/wbcr_factory_412-ru_RU.mo → adverts/langs/wbcr_factory_adverts_105-ru_RU.mo} +0 -0
  53. libs/factory/adverts/langs/wbcr_factory_adverts_105-ru_RU.po +83 -0
  54. libs/factory/bootstrap/assets/css-min/bootstrap.accordion.min.css +1 -1
  55. libs/factory/bootstrap/assets/css-min/bootstrap.blue.min.css +1 -1
  56. libs/factory/bootstrap/assets/css-min/bootstrap.coffee.min.css +1 -1
  57. libs/factory/bootstrap/assets/css-min/bootstrap.core.min.css +2 -2
  58. libs/factory/bootstrap/assets/css-min/bootstrap.ectoplasm.min.css +1 -1
  59. libs/factory/bootstrap/assets/css-min/bootstrap.form-group.min.css +1 -1
  60. libs/factory/bootstrap/assets/css-min/bootstrap.light.min.css +1 -1
  61. libs/factory/bootstrap/assets/css-min/bootstrap.midnight.min.css +1 -1
  62. libs/factory/bootstrap/assets/css-min/bootstrap.ocean.min.css +1 -1
  63. libs/factory/bootstrap/assets/css-min/bootstrap.separator.min.css +1 -1
  64. libs/factory/bootstrap/assets/css-min/bootstrap.sunrise.min.css +1 -1
  65. libs/factory/bootstrap/assets/css-min/control.checkbox.min.css +1 -1
  66. libs/factory/bootstrap/assets/css-min/control.dropdown.min.css +1 -1
  67. libs/factory/bootstrap/assets/css-min/control.multiple-textbox.min.css +1 -1
  68. libs/factory/bootstrap/assets/css-min/holder.more-link.min.css +1 -1
  69. libs/factory/bootstrap/assets/css-min/index.php +0 -0
  70. libs/factory/bootstrap/assets/images/index.php +0 -0
  71. libs/factory/bootstrap/assets/index.php +0 -0
  72. libs/factory/bootstrap/assets/js-min/bootstrap.dropdown.min.js +1 -1
  73. libs/factory/bootstrap/assets/js-min/control.checkbox.min.js +1 -1
  74. libs/factory/bootstrap/assets/js-min/control.dropdown.min.js +1 -1
  75. libs/factory/bootstrap/assets/js-min/control.list.min.js +1 -1
  76. libs/factory/bootstrap/assets/js-min/control.multiple-textbox.min.js +1 -1
  77. libs/factory/bootstrap/assets/js-min/index.php +0 -0
  78. libs/factory/bootstrap/boot.php +45 -36
  79. libs/factory/bootstrap/includes/functions.php +204 -260
  80. libs/factory/bootstrap/includes/index.php +2 -0
  81. libs/factory/bootstrap/index.php +2 -0
  82. libs/factory/clearfy/assets/css/clearfy-base.css +24 -24
  83. libs/factory/clearfy/assets/css/clearfy-base.css.map +1 -0
  84. libs/factory/clearfy/assets/css/index.php +0 -0
  85. libs/factory/clearfy/assets/index.php +0 -0
  86. libs/factory/clearfy/assets/js/globals.js +15 -15
  87. libs/factory/clearfy/assets/js/index.php +0 -0
  88. libs/factory/clearfy/assets/js/license-manager.js +14 -18
  89. libs/factory/clearfy/boot.php +20 -19
  90. libs/factory/clearfy/includes/ajax-handlers.php +44 -32
  91. libs/factory/clearfy/includes/check-clearfy-compatibility.php +0 -306
  92. libs/factory/clearfy/includes/class-clearfy-configurate.php +0 -120
  93. libs/factory/clearfy/includes/class-clearfy-helpers.php +0 -370
  94. libs/factory/clearfy/includes/class-configurate.php +116 -0
  95. libs/factory/clearfy/includes/class-helpers.php +266 -0
  96. libs/factory/clearfy/langs/index.php +0 -0
  97. libs/factory/clearfy/langs/{wbcr_factory_clearfy_208-ru_RU.mo → wbcr_factory_clearfy_216-ru_RU.mo} +0 -0
  98. libs/factory/clearfy/langs/{wbcr_factory_clearfy_208-ru_RU.po → wbcr_factory_clearfy_216-ru_RU.po} +0 -0
  99. libs/factory/clearfy/pages/class-clearfy-more-features.php +0 -148
  100. libs/factory/clearfy/pages/class-clearfy-pages.php +0 -385
  101. libs/factory/clearfy/pages/{class-clearfy-license.php → class-page-license.php} +107 -77
  102. libs/factory/clearfy/pages/class-page-more-features.php +170 -0
  103. libs/factory/clearfy/pages/class-pages.php +439 -0
  104. libs/factory/core/README.md +3 -0
  105. libs/factory/core/boot.php +30 -30
  106. libs/factory/core/includes/activation/class-factory-activator.php +13 -12
  107. libs/factory/core/includes/activation/class-factory-update.php +12 -11
  108. libs/factory/core/includes/activation/index.php +2 -0
  109. libs/factory/core/includes/assets-managment/class-factory-assets-list.php +32 -31
  110. libs/factory/core/includes/assets-managment/class-factory-script-list.php +43 -43
  111. libs/factory/core/includes/assets-managment/class-factory-style-list.php +22 -22
  112. libs/factory/core/includes/assets-managment/index.php +2 -0
  113. libs/factory/core/includes/class-check-compatibility.php +95 -101
  114. libs/factory/core/includes/class-factory-migrations.php +201 -145
  115. libs/factory/core/includes/class-factory-notices.php +115 -112
  116. libs/factory/core/includes/class-factory-options.php +207 -135
  117. libs/factory/core/includes/class-factory-plugin-abstract.php +335 -185
  118. libs/factory/core/includes/class-factory-plugin-base.php +300 -143
  119. libs/factory/core/includes/class-factory-requests.php +34 -27
  120. libs/factory/core/includes/class-factory-requirements.php +66 -62
  121. libs/factory/core/includes/entities/class-factory-paths.php +7 -8
  122. libs/factory/core/includes/entities/class-factory-support.php +31 -32
  123. libs/factory/core/includes/functions.php +52 -52
  124. libs/factory/core/includes/index.php +2 -0
  125. libs/factory/core/includes/premium/class-factory-license-interface.php +12 -12
  126. libs/factory/core/includes/premium/class-factory-manager.php +39 -37
  127. libs/factory/core/includes/premium/class-factory-provider-abstract.php +84 -85
  128. libs/factory/core/includes/premium/index.php +2 -0
  129. libs/factory/core/includes/updates/class-factory-premium-upgrader.php +266 -238
  130. libs/factory/core/includes/updates/class-factory-upgrader.php +29 -60
  131. libs/factory/core/includes/updates/index.php +2 -0
  132. libs/factory/core/includes/updates/repositories/class-factory-repository-abstract.php +17 -17
  133. libs/factory/core/includes/updates/repositories/class-factory-wordpress.php +17 -17
  134. libs/factory/core/index.php +2 -0
  135. libs/factory/core/langs/index.php +2 -0
  136. libs/factory/core/langs/wbcr_factory_424-ru_RU.mo +0 -0
  137. libs/factory/core/langs/{wbcr_factory_412-ru_RU.po → wbcr_factory_424-ru_RU.po} +0 -0
  138. libs/factory/forms/assets/css/index.php +0 -0
  139. libs/factory/forms/assets/index.php +0 -0
  140. libs/factory/forms/boot.php +251 -251
  141. libs/factory/forms/controls/checkbox.php +4 -4
  142. libs/factory/forms/controls/color-and-opacity.php +4 -4
  143. libs/factory/forms/controls/color.php +2 -2
  144. libs/factory/forms/controls/customs/html.php +2 -2
  145. libs/factory/forms/controls/customs/index.php +2 -0
  146. libs/factory/forms/controls/customs/separator.php +2 -2
  147. libs/factory/forms/controls/datepicker-range.php +4 -4
  148. libs/factory/forms/controls/dropdown-and-colors.php +6 -6
  149. libs/factory/forms/controls/dropdown.php +5 -5
  150. libs/factory/forms/controls/font.php +11 -11
  151. libs/factory/forms/controls/google-font.php +8 -8
  152. libs/factory/forms/controls/gradient.php +4 -4
  153. libs/factory/forms/controls/hidden.php +2 -2
  154. libs/factory/forms/controls/holders/accordion-item.php +2 -2
  155. libs/factory/forms/controls/holders/accordion.php +2 -2
  156. libs/factory/forms/controls/holders/columns.php +2 -2
  157. libs/factory/forms/controls/holders/control-group-item.php +2 -2
  158. libs/factory/forms/controls/holders/control-group.php +3 -3
  159. libs/factory/forms/controls/holders/div.php +2 -2
  160. libs/factory/forms/controls/holders/form-group.php +2 -2
  161. libs/factory/forms/controls/holders/index.php +2 -0
  162. libs/factory/forms/controls/holders/more-link.php +2 -2
  163. libs/factory/forms/controls/holders/tab-item.php +2 -2
  164. libs/factory/forms/controls/holders/tab.php +4 -4
  165. libs/factory/forms/controls/index.php +2 -0
  166. libs/factory/forms/controls/integer.php +2 -2
  167. libs/factory/forms/controls/list.php +4 -4
  168. libs/factory/forms/controls/multiple-textbox.php +3 -3
  169. libs/factory/forms/controls/paddings-editor.php +3 -3
  170. libs/factory/forms/controls/pattern.php +9 -9
  171. libs/factory/forms/controls/radio-colors.php +2 -2
  172. libs/factory/forms/controls/radio.php +2 -2
  173. libs/factory/forms/controls/textarea.php +2 -2
  174. libs/factory/forms/controls/textbox.php +2 -2
  175. libs/factory/forms/controls/url.php +3 -3
  176. libs/factory/forms/controls/wp-editor.php +3 -3
  177. libs/factory/forms/includes/complex-control.class.php +4 -4
  178. libs/factory/forms/includes/control-holder.class.php +5 -5
  179. libs/factory/forms/includes/control.class.php +5 -5
  180. libs/factory/forms/includes/custom-element.class.php +2 -2
  181. libs/factory/forms/includes/form-element.class.php +7 -7
  182. libs/factory/forms/includes/form-layout.class.php +5 -5
  183. libs/factory/forms/includes/form.class.php +39 -39
  184. libs/factory/forms/includes/holder.class.php +6 -6
  185. libs/factory/forms/includes/html-builder.class.php +2 -2
  186. libs/factory/forms/includes/index.php +2 -0
  187. libs/factory/forms/includes/providers/index.php +2 -0
  188. libs/factory/forms/includes/providers/meta-value-provider.class.php +2 -2
  189. libs/factory/forms/includes/providers/options-value-provider.class.php +3 -3
  190. libs/factory/forms/includes/providers/value-provider.interface.php +2 -2
  191. libs/factory/forms/index.php +2 -0
  192. libs/factory/forms/langs/index.php +0 -0
  193. libs/factory/forms/langs/{wbcr_factory_forms_412-ru_RU.mo → wbcr_factory_forms_422-ru_RU.mo} +0 -0
  194. libs/factory/forms/langs/{wbcr_factory_forms_412-ru_RU.po → wbcr_factory_forms_422-ru_RU.po} +0 -0
  195. libs/factory/forms/layouts/bootstrap-3/bootstrap-3.php +7 -7
  196. libs/factory/forms/layouts/bootstrap-3/index.php +2 -0
  197. libs/factory/forms/layouts/index.php +2 -0
  198. libs/factory/freemius/boot.php +28 -18
  199. libs/factory/freemius/includes/class-freemius-api.php +7 -7
  200. libs/factory/freemius/includes/entities/class-freemius-entity.php +1 -1
  201. libs/factory/freemius/includes/entities/class-freemius-license.php +2 -2
  202. libs/factory/freemius/includes/entities/class-freemius-plugin.php +1 -1
  203. libs/factory/freemius/includes/entities/class-freemius-scope.php +1 -1
  204. libs/factory/freemius/includes/entities/class-freemius-site.php +1 -1
  205. libs/factory/freemius/includes/entities/class-freemius-user.php +1 -1
  206. libs/factory/freemius/includes/entities/index.php +2 -0
  207. libs/factory/freemius/includes/index.php +2 -0
  208. libs/factory/freemius/includes/licensing/class-freemius-provider.php +9 -11
admin/activation.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * @author Webcraftic <wordpress.webraftic@gmail.com>
7
  * @copyright (c) 09.09.2017, Webcraftic
8
- * @see Factory412_Activator
9
  * @version 1.0
10
  */
11
 
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
  }
16
 
17
- class WIO_Activation extends Wbcr_Factory412_Activator {
18
 
19
  /**
20
  * Runs activation actions.
@@ -36,11 +36,39 @@ class WIO_Activation extends Wbcr_Factory412_Activator {
36
  WRIO_Logger::info( 'Premium plugin installation complete!' );
37
  }
38
 
 
 
 
 
 
 
 
 
 
 
 
39
  RIO_Process_Queue::try_create_plugin_tables();
40
 
 
 
41
  WRIO_Logger::info( 'Parent plugin installation complete!' );
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  /**
45
  * Runs activation actions.
46
  *
5
  *
6
  * @author Webcraftic <wordpress.webraftic@gmail.com>
7
  * @copyright (c) 09.09.2017, Webcraftic
8
+ * @see Factory424_Activator
9
  * @version 1.0
10
  */
11
 
14
  exit;
15
  }
16
 
17
+ class WIO_Activation extends Wbcr_Factory424_Activator {
18
 
19
  /**
20
  * Runs activation actions.
36
  WRIO_Logger::info( 'Premium plugin installation complete!' );
37
  }
38
 
39
+ $db_version = RIO_Process_Queue::get_db_version();
40
+ $plugin_version_in_db = $this->get_plugin_version_in_db();
41
+ $current_plugin_version = $this->plugin->getPluginVersion();
42
+
43
+ $create_table_log_message = "Plugin installation: try create plugin tables.\r\n";
44
+ $create_table_log_message .= "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-DB Version: {$db_version}\r\n";
45
+ $create_table_log_message .= "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-Plugin Version in DB: {$plugin_version_in_db}\r\n";
46
+ $create_table_log_message .= "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-Current Plugin Version: {$current_plugin_version}";
47
+
48
+ WRIO_Logger::info( $create_table_log_message );
49
+
50
  RIO_Process_Queue::try_create_plugin_tables();
51
 
52
+ WbcrFactoryClearfy216_Helpers::flushPageCache();
53
+
54
  WRIO_Logger::info( 'Parent plugin installation complete!' );
55
  }
56
 
57
+ /**
58
+ * Get previous plugin version
59
+ *
60
+ * @author Alexander Kovalev <alex.kovalevv@gmail.com>
61
+ * @since 1.3.8
62
+ * @return number
63
+ */
64
+ public function get_plugin_version_in_db() {
65
+ if ( WRIO_Plugin::app()->isNetworkActive() ) {
66
+ return get_site_option( WRIO_Plugin::app()->getOptionName( 'plugin_version' ), 0 );
67
+ }
68
+
69
+ return get_option( WRIO_Plugin::app()->getOptionName( 'plugin_version' ), 0 );
70
+ }
71
+
72
  /**
73
  * Runs activation actions.
74
  *
admin/ajax/bulk-optimization.php CHANGED
@@ -227,6 +227,7 @@ add_action( 'wp_ajax_wbcr-rio-check-servers-status', function () {
227
  $return_data = [ 'server_name' => $server_name ];
228
 
229
  $server_url = wrio_get_server_url( $server_name );
 
230
 
231
  $method = 'POST';
232
  if ( $server_name == 'server_4' ) {
@@ -239,7 +240,8 @@ add_action( 'wp_ajax_wbcr-rio-check-servers-status', function () {
239
  }
240
 
241
  $request = wp_remote_request( $api_url, [
242
- 'method' => $method
 
243
  ] );
244
 
245
  if ( is_wp_error( $request ) ) {
@@ -266,3 +268,4 @@ add_action( 'wp_ajax_wbcr-rio-check-servers-status', function () {
266
 
267
  wp_send_json_success( $return_data );
268
  } );
 
227
  $return_data = [ 'server_name' => $server_name ];
228
 
229
  $server_url = wrio_get_server_url( $server_name );
230
+ $headers = [];
231
 
232
  $method = 'POST';
233
  if ( $server_name == 'server_4' ) {
240
  }
241
 
242
  $request = wp_remote_request( $api_url, [
243
+ 'method' => $method,
244
+ 'headers' => $headers
245
  ] );
246
 
247
  if ( is_wp_error( $request ) ) {
268
 
269
  wp_send_json_success( $return_data );
270
  } );
271
+
admin/ajax/meta-migrations.php CHANGED
@@ -157,7 +157,7 @@ function wbcr_rio_migrate_postmeta_to_process_queue() {
157
  WRIO_Logger::info( 'Succefull migrated all items. Finishing-up...' );
158
 
159
  // Assumed to be 2 after 010105.php migration
160
- WRIO_Plugin::app()->updateOption( 'db_version', 2 );
161
 
162
  $need_more_time = false;
163
  $message = __( 'Finishing-up...', 'robin-image-optimizer' );
157
  WRIO_Logger::info( 'Succefull migrated all items. Finishing-up...' );
158
 
159
  // Assumed to be 2 after 010105.php migration
160
+ RIO_Process_Queue::update_db_version(2);
161
 
162
  $need_more_time = false;
163
  $message = __( 'Finishing-up...', 'robin-image-optimizer' );
admin/assets/css/base-statistic.css CHANGED
@@ -1,657 +1,659 @@
1
- /**
2
- * Styles for the Widget to be displayed in the Clearfy plugin
3
-
4
- * @author Alex Kovalev <alex.kovalevv@gmail.com>
5
- * @copyright Webcraftic 13.06.2018
6
- */
7
- #WBCR {
8
- /* Doughnut */
9
- /*@media (max-width: 1380px) and (min-width: 1246px), (max-width: 380px) {
10
- .wio-overview-chart-container {
11
- float: none;
12
- margin-right: 0;
13
- }
14
- }
15
-
16
- @media (max-width: 1380px) and (min-width: 1246px), (max-width: 380px) {
17
- .wio-overview-chart-container {
18
- float: none;
19
- margin-right: 0;
20
- }
21
-
22
- .wio-doughnut-legend {
23
- margin-top: 18px;
24
- }
25
-
26
- .wio-global-optim-phrase {
27
- padding-top: 0;
28
- width: auto;
29
- }
30
- }*/
31
- }
32
- #WBCR .wio-clear {
33
- clear: both;
34
- }
35
- #WBCR #io_folders_statistic-wbcr_clearfy-tab,
36
- #WBCR #io_nextgen_gallery_statistic-wbcr_clearfy-tab {
37
- display: none !important;
38
- }
39
- #WBCR .wrio-statistic-nav {
40
- margin: 0;
41
- background: #efefef;
42
- }
43
- #WBCR .wrio-statistic-nav ul {
44
- margin: 0;
45
- }
46
- #WBCR .wrio-statistic-nav ul li {
47
- position: relative;
48
- display: inline-block;
49
- margin: 0 0 0 0;
50
- background: #ffffff;
51
- box-shadow: 0 -2px 0 #eaeaea;
52
- }
53
- #WBCR .wrio-statistic-nav ul li:hover {
54
- background: #f7f7f7;
55
- }
56
- #WBCR .wrio-statistic-nav ul li.active {
57
- background: #f7f7f7;
58
- border-top: 1px solid #d4d4d4;
59
- border-left: 1px solid #d4d4d4;
60
- border-right: 1px solid #d4d4d4;
61
- border-bottom: 1px solid #f7f7f7;
62
- margin-bottom: -1px;
63
- }
64
- #WBCR .wrio-statistic-nav ul li.active a {
65
- color: #222;
66
- }
67
- #WBCR .wrio-statistic-nav ul li.active a .wrio-statistic-tab-percent {
68
- border: 2px dashed #8bc34a;
69
- color: #5e8237;
70
- }
71
- #WBCR .wrio-statistic-nav ul li.active .dashicons,
72
- #WBCR .wrio-statistic-nav ul li.active .dashicons-before:before {
73
- color: #ff8b66;
74
- }
75
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab {
76
- display: block;
77
- padding: 10px 20px 10px 20px;
78
- text-decoration: none;
79
- color: #d4d4d4;
80
- font-size: 22px;
81
- line-height: 2;
82
- }
83
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab:active,
84
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab:focus {
85
- background: 0;
86
- box-shadow: none;
87
- outline: none;
88
- }
89
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab .dashicons,
90
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab .dashicons-before:before {
91
- display: inline-block;
92
- width: 30px;
93
- height: 30px;
94
- font-size: 30px;
95
- line-height: 1.5;
96
- margin-right: 15px;
97
- color: #d4d4d4;
98
- }
99
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab .wrio-statistic-tab-percent {
100
- display: inline-block;
101
- width: 42px;
102
- height: 42px;
103
- border-radius: 100px;
104
- border: 2px dashed #e4e4e4;
105
- padding: 5px;
106
- margin-left: 30px;
107
- font-size: 14px;
108
- font-weight: 600;
109
- text-align: center;
110
- color: #bdbdbd;
111
- }
112
- #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab-premium-label:after {
113
- display: inline-block;
114
- position: absolute;
115
- content: 'PRO';
116
- background: #ff5722;
117
- border-radius: 4px;
118
- color: #fff;
119
- font-size: 10px;
120
- line-height: 1;
121
- font-style: normal;
122
- padding: 4px 6px;
123
- margin-left: 4px;
124
- vertical-align: top;
125
- top: 10px;
126
- left: auto;
127
- right: 10px;
128
- z-index: 11;
129
- }
130
- #WBCR .wrio-table {
131
- width: 100%;
132
- table-layout: fixed;
133
- box-sizing: border-box;
134
- border-spacing: 3px;
135
- background: #fff;
136
- border-top: 2px dashed #cac9c9;
137
- }
138
- #WBCR .wrio-table th,
139
- #WBCR .wrio-table td {
140
- padding: 16px 10px;
141
- text-align: center;
142
- }
143
- #WBCR .wrio-table th {
144
- background: #f3f3f3;
145
- color: #777777;
146
- box-shadow: 0 1px 0 #d8d8d8;
147
- }
148
- #WBCR .wrio-table th:nth-child(2n+1) {
149
- background: #f9f9f9;
150
- }
151
- #WBCR .wrio-table tr.wrio-error {
152
- background-color: #ffe9e9 !important;
153
- }
154
- #WBCR .wrio-table .wrio-table-spinner {
155
- background: url("../img/quick-start-loader.gif") center center no-repeat;
156
- }
157
- #WBCR .wrio-table .wrio-table-highlighter {
158
- display: inline-block;
159
- padding: 3px 7px;
160
- background: #f3f3f3;
161
- }
162
- #WBCR .wrio-table .wbcr-rio-server-success {
163
- color: #8CC152;
164
- }
165
- #WBCR .wrio-table .wbcr-rio-server-error {
166
- color: #fb5d49;
167
- }
168
- #WBCR .wrio-table .wbcr-rio-server-warning {
169
- color: #ffb635;
170
- }
171
- #WBCR .wrio-table.wbcr-rio-folders-table td:nth-child(3) {
172
- text-align: left;
173
- }
174
- #WBCR .wrio-servers {
175
- padding: 40px 20px;
176
- }
177
- #WBCR .wrio-servers label span {
178
- display: block;
179
- font-weight: normal;
180
- font-size: 12px;
181
- color: #b7b2b2;
182
- }
183
- #WBCR .wrio-servers #wrio-change-optimization-server {
184
- position: relative;
185
- max-width: 400px;
186
- margin-right: 15px;
187
- margin-bottom: 0;
188
- border: 1px solid #d2d0d0;
189
- background: #efefef;
190
- }
191
- #WBCR .wrio-servers .wrio-servers-info {
192
- margin: 0 0 0;
193
- padding: 20px;
194
- background: #fff;
195
- }
196
- #WBCR .wrio-servers .wrio-server-status-wrap {
197
- margin-top: 8px;
198
- }
199
- #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status {
200
- background: transparent;
201
- color: #fff;
202
- padding: 3px 5px;
203
- border-radius: 4px;
204
- }
205
- #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status.wrio-down {
206
- background: #ff5722;
207
- }
208
- #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status.wrio-stable {
209
- background: #8bc34a;
210
- }
211
- #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status.wrio-server-check-proccess {
212
- display: inline-block;
213
- height: 10px;
214
- width: 30px;
215
- background: url("../img/quick-start-loader.gif") center no-repeat;
216
- }
217
- #WBCR .wio-columns {
218
- overflow: hidden;
219
- padding: 15px 0;
220
- counter-reset: cols;
221
- }
222
- #WBCR .wio-columns [class^="col-"] {
223
- float: left;
224
- -webkit-box-sizing: border-box;
225
- -moz-box-sizing: border-box;
226
- box-sizing: border-box;
227
- }
228
- #WBCR .wio-columns .col-1-3 {
229
- width: 33.333%;
230
- padding-left: 28px;
231
- }
232
- #WBCR .wio-columns .col-2-3 {
233
- width: 66.666%;
234
- padding-left: 28px;
235
- }
236
- #WBCR .wio-columns .col-1-2 {
237
- width: 50%;
238
- padding: 0 20px;
239
- }
240
- #WBCR .wio-columns .col-statistics.col-statistics {
241
- width: 60%;
242
- }
243
- #WBCR .wio-columns .col-chart.col-chart {
244
- width: 40%;
245
- position: relative;
246
- padding: 20px;
247
- font-size: 12px;
248
- text-transform: uppercase;
249
- background: #f1f1f1b3;
250
- color: #abacaf;
251
- font-weight: bold;
252
- border-radius: 5px;
253
- margin-top: 10px;
254
- text-align: left;
255
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
256
- }
257
- #WBCR .wio-col {
258
- float: left;
259
- width: 50%;
260
- box-sizing: border-box;
261
- -webkit-flex-basis: 50%;
262
- -ms-flex-preferred-size: 50%;
263
- flex-basis: 50%;
264
- }
265
- #WBCR .wio-col {
266
- padding-right: 20px;
267
- }
268
- #WBCR .wio-col + .wio-col {
269
- padding-right: 0;
270
- padding-left: 50px;
271
- }
272
- #WBCR .wio-col:target {
273
- animation: wiohello 1s 3 linear backwards;
274
- }
275
- #WBCR .wio-number-you-optimized {
276
- margin-bottom: 1.35em;
277
- overflow: hidden;
278
- }
279
- #WBCR .wio-number-you-optimized #wio-total-optimized-attachments-pct {
280
- color: #828282;
281
- }
282
- #WBCR .wio-number-you-optimized .wio-number {
283
- display: table-cell;
284
- padding-right: 15px;
285
- font-size: 48px;
286
- font-weight: bold;
287
- line-height: 1;
288
- vertical-align: middle;
289
- white-space: nowrap;
290
- color: #828282;
291
- }
292
- #WBCR .wio-number-you-optimized .wio-text {
293
- display: table-cell;
294
- vertical-align: middle;
295
- overflow: hidden;
296
- font-size: 12px;
297
- color: #828282;
298
- }
299
- #WBCR .wio-number-you-optimized > p {
300
- display: table;
301
- }
302
- #WBCR .wio-bars {
303
- padding-right: 15px;
304
- }
305
- #WBCR .wio-bars p {
306
- font-size: 12px;
307
- margin-bottom: 5px;
308
- }
309
- #WBCR .wio-bars + .wio-number-you-optimized {
310
- border-bottom: 0;
311
- padding-top: 0.85em;
312
- }
313
- #WBCR .wio-bars + .wio-number-you-optimized p {
314
- color: #72a53b;
315
- }
316
- #WBCR .wio-bar-negative .wio-progress {
317
- background: #D2D3D6;
318
- }
319
- #WBCR .wio-bar-negative .wio-barnb {
320
- color: #9d9fa5;
321
- }
322
- #WBCR .wio-progress {
323
- height: 8px;
324
- transition: width .3s;
325
- /*.wio-bar-negative {
326
- width: 92% !important;
327
- }*/
328
- }
329
- #WBCR .wio-bar-positive .wio-progress {
330
- background: #8CC152;
331
- }
332
- #WBCR .wio-bar-positive .wio-barnb {
333
- color: #72a53b;
334
- }
335
- #WBCR .wio-bar-primary .wio-progress {
336
- background: #8CC152;
337
- }
338
- #WBCR .wio-bar-primary .wio-barnb {
339
- color: #72a53b;
340
- }
341
- #WBCR .wio-right-outside-number .wio-barnb {
342
- display: block;
343
- margin-right: -5.25em;
344
- text-align: right;
345
- font-weight: bold;
346
- line-height: .8;
347
- }
348
- #WBCR .wio-chart {
349
- position: relative;
350
- top: 1px;
351
- display: inline-block;
352
- vertical-align: middle;
353
- }
354
- #WBCR .wio-chart-container {
355
- position: relative;
356
- display: inline-block;
357
- margin-right: 5px;
358
- }
359
- #WBCR .wio-chart-container canvas {
360
- display: block;
361
- }
362
- #WBCR .wio-overview-chart-container {
363
- float: left;
364
- margin-right: 20px;
365
- }
366
- #WBCR .wio-chart-percent {
367
- position: absolute;
368
- left: 0;
369
- right: 0;
370
- top: 50%;
371
- margin-top: -0.5em;
372
- line-height: 0.8;
373
- text-align: center;
374
- font-size: 54px;
375
- font-weight: bold;
376
- color: #afafaf;
377
- }
378
- #WBCR .wio-chart-percent span {
379
- font-size: 20px;
380
- vertical-align: super;
381
- }
382
- #WBCR #wio-overview-chart-legend {
383
- overflow: hidden;
384
- }
385
- #WBCR .wio-doughnut-legend li {
386
- display: inline-block;
387
- position: relative;
388
- margin-bottom: 15px;
389
- border-radius: 5px;
390
- padding: 3px 8px 2px 31px;
391
- font-size: 9px;
392
- cursor: default;
393
- -webkit-transition: background-color 200ms ease-in-out;
394
- -moz-transition: background-color 200ms ease-in-out;
395
- -o-transition: background-color 200ms ease-in-out;
396
- transition: background-color 200ms ease-in-out;
397
- }
398
- #WBCR .wio-doughnut-legend li span {
399
- display: block;
400
- position: absolute;
401
- left: 0;
402
- top: 0;
403
- width: 25px;
404
- height: 25px;
405
- border-radius: 50%;
406
- }
407
- #WBCR .wio-optimize-button {
408
- min-width: 180px;
409
- padding: 12px 30px;
410
- background: #c9deb2;
411
- color: #586549;
412
- border: 0;
413
- box-shadow: none;
414
- font-size: 14px;
415
- text-transform: uppercase !important;
416
- font-weight: bold;
417
- border-radius: 4px;
418
- outline: none;
419
- }
420
- #WBCR .wio-optimize-button:active {
421
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
422
- }
423
- #WBCR .wio-optimize-button:disabled {
424
- background: #e2edd6;
425
- color: #a5b295;
426
- }
427
- #WBCR .wio-optimize-button.wio-running {
428
- color: #a57b3c;
429
- background: #fdd599 url("../img/Spinner-1s-33px.gif") 10px center no-repeat;
430
- padding-left: 50px;
431
- }
432
- #WBCR .wio-global-optim-phrase {
433
- width: 180px;
434
- padding-top: 20px;
435
- font-size: 14px;
436
- text-align: center;
437
- }
438
- #WBCR .wio-total-percent {
439
- color: #587f2e;
440
- }
441
- #WBCR #wio-start-msg-top,
442
- #WBCR #wio-start-msg-right,
443
- #WBCR #wio-start-msg-complete {
444
- display: none;
445
- }
446
- #WBCR .wio-text-left {
447
- text-align: left;
448
- }
449
- #WBCR span.wio-num {
450
- display: inline !important;
451
- position: inherit !important;
452
- }
453
- #WBCR .wio-image-optimize-board {
454
- padding-bottom: 0 !important;
455
- }
456
- #WBCR .wio-page-statistic {
457
- padding-left: 40px;
458
- }
459
- #WBCR .wio-page-statistic .wio-chart-percent {
460
- margin-top: -1.1em;
461
- }
462
- #WBCR .wrio-optimization-progress {
463
- background: none;
464
- padding: 0;
465
- /*button {
466
- padding: 5px 10px;
467
- border: 0;
468
- font-size: 11px;
469
- text-transform: uppercase !important;
470
- font-weight: bold;
471
- border-radius: 4px;
472
- outline: none;
473
- background: @greyButtonBg;
474
- color: @greyButtonColor;
475
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
476
-
477
- &:active {
478
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
479
- }
480
-
481
- &.wbcr-rio-loading {
482
- width: 56px;
483
- font-size: 0;
484
- background: @greyButtonBg url("../img/quick-start-loader.gif") center no-repeat;
485
- }
486
-
487
- &.wbcr-rio-selected {
488
- background: #f3efe2;
489
- color: #d8d8d8;
490
-
491
- &:active {
492
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
493
- }
494
- }
495
- }*/
496
- }
497
- #WBCR .wrio-optimization-progress h4 {
498
- font-size: 15px;
499
- font-weight: 700;
500
- }
501
- #WBCR .wrio-optimization-progress .wbcr-rio-warning-message {
502
- padding: 20px;
503
- background: #efefef;
504
- font-size: 15px;
505
- color: #b7b7b7;
506
- font-style: italic;
507
- }
508
- #WBCR .wio-widget {
509
- padding: 0 !important;
510
- }
511
- #WBCR .wio-widget .wio-chart-percent {
512
- font-size: 44px;
513
- line-height: 1;
514
- }
515
- #WBCR .wio-widget .wio-bars {
516
- width: 60%;
517
- margin-left: 155px;
518
- }
519
- #WBCR .wio-widget .col-chart.col-chart {
520
- width: 100%;
521
- }
522
- #WBCR .wio-widget .col-controls {
523
- width: 45%;
524
- padding-left: 5px;
525
- padding-top: 110px;
526
- }
527
- #WBCR .wio-widget .wio-doughnut-legend {
528
- /*padding-top:30px;*/
529
- text-align: left;
530
- }
531
- #WBCR .wio-widget .wio-widget-bottom {
532
- display: table;
533
- padding-top: 20px !important;
534
- width: 100%;
535
- text-align: right;
536
- }
537
- #WBCR .wio-widget .wio-widget-bottom li {
538
- display: table-cell;
539
- }
540
- #WBCR .wio-widget .wio-widget-bottom li:first-child {
541
- text-align: left;
542
- }
543
- #WBCR .factory-checkbox.wrio-checkbox-premium-label:after {
544
- display: inline-block;
545
- position: relative;
546
- content: 'PRO';
547
- background: #ff5722;
548
- border-radius: 4px;
549
- color: #fff;
550
- font-size: 10px;
551
- line-height: 1;
552
- font-style: normal;
553
- padding: 4px 6px;
554
- margin-left: 4px;
555
- vertical-align: top;
556
- top: -8px;
557
- left: -10px;
558
- right: auto;
559
- z-index: 11;
560
- }
561
- #WBCR .factory-checkbox-disabled input,
562
- #WBCR .factory-checkbox-disabled button {
563
- pointer-events: none;
564
- cursor: not-allowed;
565
- opacity: .65;
566
- filter: alpha(opacity=65);
567
- -webkit-box-shadow: none;
568
- box-shadow: none;
569
- }
570
- #WBCR #wrio-webp-options h3,
571
- #WBCR #wrio-error-log-options h3 {
572
- font-size: 14px;
573
- margin: 0 0 10px 0;
574
- font-weight: 600;
575
- color: #565656;
576
- }
577
- #WBCR #wrio-webp-options .wrio-webp-options-info,
578
- #WBCR #wrio-error-log-options .wrio-webp-options-info {
579
- color: #8a8787;
580
- font-size: 12px;
581
- }
582
- #WBCR #wrio-webp-options ul,
583
- #WBCR #wrio-error-log-options ul {
584
- padding-left: 0;
585
- }
586
- #WBCR #wrio-webp-options ul li:after,
587
- #WBCR #wrio-error-log-options ul li:after {
588
- content: '';
589
- display: block;
590
- clear: both;
591
- }
592
- #WBCR #wrio-webp-options ul li label,
593
- #WBCR #wrio-error-log-options ul li label {
594
- font-weight: 600;
595
- }
596
- #WBCR #wrio-webp-options ul li .wrio-webp-options-radio,
597
- #WBCR #wrio-error-log-options ul li .wrio-webp-options-radio,
598
- #WBCR #wrio-webp-options ul li .wrio-error-log-options-checkbox,
599
- #WBCR #wrio-error-log-options ul li .wrio-error-log-options-checkbox {
600
- display: block;
601
- float: left;
602
- margin-top: 2px;
603
- margin-right: 8px;
604
- }
605
- #WBCR #wrio-webp-options ul li .wrio-webp-options-radio:focus,
606
- #WBCR #wrio-error-log-options ul li .wrio-webp-options-radio:focus,
607
- #WBCR #wrio-webp-options ul li .wrio-error-log-options-checkbox:focus,
608
- #WBCR #wrio-error-log-options ul li .wrio-error-log-options-checkbox:focus {
609
- outline: none;
610
- box-shadow: none;
611
- }
612
- #WBCR #wrio-webp-options ul li .wrio-webp-options-info,
613
- #WBCR #wrio-error-log-options ul li .wrio-webp-options-info,
614
- #WBCR #wrio-webp-options ul li .wrio-error-log-options-info,
615
- #WBCR #wrio-error-log-options ul li .wrio-error-log-options-info {
616
- padding-left: 25px;
617
- }
618
- @media (max-width: 830px) {
619
- #WBCR .wio [class^="col-"] {
620
- float: none;
621
- margin-bottom: 1.5em;
622
- }
623
- #WBCR .wio .col-1-3,
624
- #WBCR .wio .col-1-2 {
625
- width: auto;
626
- padding: 0 28px;
627
- clear: both;
628
- padding-top: 1em;
629
- }
630
- }
631
- @keyframes wiohello {
632
- 0%,
633
- 100% {
634
- background: #FFF;
635
- }
636
- 50% {
637
- background: #F4F7F9;
638
- }
639
- }
640
- @media (max-width: 1520px) and (min-width: 1381px), (max-width: 1086px) {
641
- #WBCR .wio-columns .col-statistics.col-statistics,
642
- #WBCR .wio-columns .col-chart.col-chart {
643
- width: 50%;
644
- }
645
- }
646
- @media (max-width: 808px) {
647
- #WBCR .wio-columns .col-statistics.col-statistics,
648
- #WBCR .wio-columns .col-chart.col-chart {
649
- width: auto;
650
- float: none;
651
- padding: 0;
652
- }
653
- #WBCR .wio-columns .col-chart.col-chart {
654
- margin-top: 3em;
655
- }
656
- }
 
 
657
  /*# sourceMappingURL=base-statistic.css.map */
1
+ /**
2
+ * Styles for the Widget to be displayed in the Clearfy plugin
3
+
4
+ * @author Alex Kovalev <alex.kovalevv@gmail.com>
5
+ * @copyright Webcraftic 13.06.2019
6
+ */
7
+ #WBCR {
8
+ /* Doughnut */
9
+ /*@media (max-width: 1380px) and (min-width: 1246px), (max-width: 380px) {
10
+ .wio-overview-chart-container {
11
+ float: none;
12
+ margin-right: 0;
13
+ }
14
+ }
15
+
16
+ @media (max-width: 1380px) and (min-width: 1246px), (max-width: 380px) {
17
+ .wio-overview-chart-container {
18
+ float: none;
19
+ margin-right: 0;
20
+ }
21
+
22
+ .wio-doughnut-legend {
23
+ margin-top: 18px;
24
+ }
25
+
26
+ .wio-global-optim-phrase {
27
+ padding-top: 0;
28
+ width: auto;
29
+ }
30
+ }*/
31
+ }
32
+ #WBCR .wio-clear {
33
+ clear: both;
34
+ }
35
+ #WBCR #io_folders_statistic-wbcr_clearfy-tab,
36
+ #WBCR #io_nextgen_gallery_statistic-wbcr_clearfy-tab {
37
+ display: none !important;
38
+ }
39
+ #WBCR .wrio-statistic-nav {
40
+ margin: 0;
41
+ background: #efefef;
42
+ }
43
+ #WBCR .wrio-statistic-nav ul {
44
+ margin: 0;
45
+ }
46
+ #WBCR .wrio-statistic-nav ul li {
47
+ position: relative;
48
+ display: inline-block;
49
+ margin: 0 0 0 0;
50
+ background: #ffffff;
51
+ box-shadow: 0 -2px 0 #eaeaea;
52
+ }
53
+ #WBCR .wrio-statistic-nav ul li:hover {
54
+ background: #f7f7f7;
55
+ }
56
+ #WBCR .wrio-statistic-nav ul li.active {
57
+ background: #f7f7f7;
58
+ border-top: 1px solid #d4d4d4;
59
+ border-left: 1px solid #d4d4d4;
60
+ border-right: 1px solid #d4d4d4;
61
+ border-bottom: 1px solid #f7f7f7;
62
+ margin-bottom: -1px;
63
+ }
64
+ #WBCR .wrio-statistic-nav ul li.active a {
65
+ color: #222;
66
+ }
67
+ #WBCR .wrio-statistic-nav ul li.active a .wrio-statistic-tab-percent {
68
+ border: 2px dashed #8bc34a;
69
+ color: #5e8237;
70
+ }
71
+ #WBCR .wrio-statistic-nav ul li.active .dashicons,
72
+ #WBCR .wrio-statistic-nav ul li.active .dashicons-before:before {
73
+ color: #ff8b66;
74
+ }
75
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab {
76
+ display: block;
77
+ padding: 10px 20px 10px 20px;
78
+ text-decoration: none;
79
+ color: #d4d4d4;
80
+ font-size: 22px;
81
+ line-height: 2;
82
+ }
83
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab:active,
84
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab:focus {
85
+ background: 0;
86
+ box-shadow: none;
87
+ outline: none;
88
+ }
89
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab .dashicons,
90
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab .dashicons-before:before {
91
+ display: inline-block;
92
+ width: 30px;
93
+ height: 30px;
94
+ font-size: 30px;
95
+ line-height: 1.5;
96
+ margin-right: 15px;
97
+ color: #d4d4d4;
98
+ }
99
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab .wrio-statistic-tab-percent {
100
+ display: inline-block;
101
+ width: 42px;
102
+ height: 42px;
103
+ border-radius: 100px;
104
+ border: 2px dashed #e4e4e4;
105
+ padding: 5px;
106
+ margin-left: 30px;
107
+ font-size: 14px;
108
+ font-weight: 600;
109
+ text-align: center;
110
+ color: #bdbdbd;
111
+ }
112
+ #WBCR .wrio-statistic-nav ul li .wrio-statistic-tab-premium-label:after {
113
+ display: inline-block;
114
+ position: absolute;
115
+ content: 'PRO';
116
+ background: #ff5722;
117
+ border-radius: 4px;
118
+ color: #fff;
119
+ font-size: 10px;
120
+ line-height: 1;
121
+ font-style: normal;
122
+ padding: 4px 6px;
123
+ margin-left: 4px;
124
+ vertical-align: top;
125
+ top: 10px;
126
+ left: auto;
127
+ right: 10px;
128
+ z-index: 11;
129
+ }
130
+ #WBCR .wrio-table {
131
+ width: 100%;
132
+ table-layout: fixed;
133
+ box-sizing: border-box;
134
+ border-spacing: 3px;
135
+ background: #fff;
136
+ border-top: 2px dashed #cac9c9;
137
+ }
138
+ #WBCR .wrio-table th,
139
+ #WBCR .wrio-table td {
140
+ padding: 16px 10px;
141
+ text-align: center;
142
+ }
143
+ #WBCR .wrio-table th {
144
+ background: #f3f3f3;
145
+ color: #777777;
146
+ box-shadow: 0 1px 0 #d8d8d8;
147
+ }
148
+ #WBCR .wrio-table th:nth-child(2n+1) {
149
+ background: #f9f9f9;
150
+ }
151
+ #WBCR .wrio-table tr.wrio-error {
152
+ background-color: #ffe9e9 !important;
153
+ }
154
+ #WBCR .wrio-table .wrio-table-spinner {
155
+ background: url("../img/quick-start-loader.gif") center center no-repeat;
156
+ }
157
+ #WBCR .wrio-table .wrio-table-highlighter {
158
+ display: inline-block;
159
+ padding: 3px 7px;
160
+ background: #f3f3f3;
161
+ }
162
+ #WBCR .wrio-table .wbcr-rio-server-success {
163
+ color: #8CC152;
164
+ }
165
+ #WBCR .wrio-table .wbcr-rio-server-error {
166
+ color: #fb5d49;
167
+ }
168
+ #WBCR .wrio-table .wbcr-rio-server-warning {
169
+ color: #ffb635;
170
+ }
171
+ #WBCR .wrio-table.wbcr-rio-folders-table td:nth-child(3) {
172
+ text-align: left;
173
+ }
174
+ #WBCR .wrio-servers {
175
+ padding: 40px 20px;
176
+ }
177
+ #WBCR .wrio-servers label span {
178
+ display: block;
179
+ font-weight: normal;
180
+ font-size: 12px;
181
+ color: #b7b2b2;
182
+ }
183
+ #WBCR .wrio-servers #wrio-change-optimization-server {
184
+ position: relative;
185
+ display: inline-block;
186
+ max-width: 400px;
187
+ margin-right: 15px;
188
+ margin-bottom: 0;
189
+ border: 1px solid #d2d0d0;
190
+ background: #efefef;
191
+ }
192
+ #WBCR .wrio-servers .wrio-servers-info {
193
+ margin: 0 0 0;
194
+ padding: 20px;
195
+ background: #fff;
196
+ }
197
+ #WBCR .wrio-servers .wrio-server-status-wrap {
198
+ display: inline-block;
199
+ margin-top: 8px;
200
+ }
201
+ #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status {
202
+ background: transparent;
203
+ color: #fff;
204
+ padding: 3px 5px;
205
+ border-radius: 4px;
206
+ }
207
+ #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status.wrio-down {
208
+ background: #ff5722;
209
+ }
210
+ #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status.wrio-stable {
211
+ background: #8bc34a;
212
+ }
213
+ #WBCR .wrio-servers .wrio-server-status-wrap .wrio-server-status.wrio-server-check-proccess {
214
+ display: inline-block;
215
+ height: 10px;
216
+ width: 30px;
217
+ background: url("../img/quick-start-loader.gif") center no-repeat;
218
+ }
219
+ #WBCR .wio-columns {
220
+ overflow: hidden;
221
+ padding: 15px 0;
222
+ counter-reset: cols;
223
+ }
224
+ #WBCR .wio-columns [class^="col-"] {
225
+ float: left;
226
+ -webkit-box-sizing: border-box;
227
+ -moz-box-sizing: border-box;
228
+ box-sizing: border-box;
229
+ }
230
+ #WBCR .wio-columns .col-1-3 {
231
+ width: 33.333%;
232
+ padding-left: 28px;
233
+ }
234
+ #WBCR .wio-columns .col-2-3 {
235
+ width: 66.666%;
236
+ padding-left: 28px;
237
+ }
238
+ #WBCR .wio-columns .col-1-2 {
239
+ width: 50%;
240
+ padding: 0 20px;
241
+ }
242
+ #WBCR .wio-columns .col-statistics.col-statistics {
243
+ width: 60%;
244
+ }
245
+ #WBCR .wio-columns .col-chart.col-chart {
246
+ width: 40%;
247
+ position: relative;
248
+ padding: 20px;
249
+ font-size: 12px;
250
+ text-transform: uppercase;
251
+ background: #f1f1f1b3;
252
+ color: #abacaf;
253
+ font-weight: bold;
254
+ border-radius: 5px;
255
+ margin-top: 10px;
256
+ text-align: left;
257
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
258
+ }
259
+ #WBCR .wio-col {
260
+ float: left;
261
+ width: 50%;
262
+ box-sizing: border-box;
263
+ -webkit-flex-basis: 50%;
264
+ -ms-flex-preferred-size: 50%;
265
+ flex-basis: 50%;
266
+ }
267
+ #WBCR .wio-col {
268
+ padding-right: 20px;
269
+ }
270
+ #WBCR .wio-col + .wio-col {
271
+ padding-right: 0;
272
+ padding-left: 50px;
273
+ }
274
+ #WBCR .wio-col:target {
275
+ animation: wiohello 1s 3 linear backwards;
276
+ }
277
+ #WBCR .wio-number-you-optimized {
278
+ margin-bottom: 1.35em;
279
+ overflow: hidden;
280
+ }
281
+ #WBCR .wio-number-you-optimized #wio-total-optimized-attachments-pct {
282
+ color: #828282;
283
+ }
284
+ #WBCR .wio-number-you-optimized .wio-number {
285
+ display: table-cell;
286
+ padding-right: 15px;
287
+ font-size: 48px;
288
+ font-weight: bold;
289
+ line-height: 1;
290
+ vertical-align: middle;
291
+ white-space: nowrap;
292
+ color: #828282;
293
+ }
294
+ #WBCR .wio-number-you-optimized .wio-text {
295
+ display: table-cell;
296
+ vertical-align: middle;
297
+ overflow: hidden;
298
+ font-size: 12px;
299
+ color: #828282;
300
+ }
301
+ #WBCR .wio-number-you-optimized > p {
302
+ display: table;
303
+ }
304
+ #WBCR .wio-bars {
305
+ padding-right: 15px;
306
+ }
307
+ #WBCR .wio-bars p {
308
+ font-size: 12px;
309
+ margin-bottom: 5px;
310
+ }
311
+ #WBCR .wio-bars + .wio-number-you-optimized {
312
+ border-bottom: 0;
313
+ padding-top: 0.85em;
314
+ }
315
+ #WBCR .wio-bars + .wio-number-you-optimized p {
316
+ color: #72a53b;
317
+ }
318
+ #WBCR .wio-bar-negative .wio-progress {
319
+ background: #D2D3D6;
320
+ }
321
+ #WBCR .wio-bar-negative .wio-barnb {
322
+ color: #9d9fa5;
323
+ }
324
+ #WBCR .wio-progress {
325
+ height: 8px;
326
+ transition: width 0.3s;
327
+ /*.wio-bar-negative {
328
+ width: 92% !important;
329
+ }*/
330
+ }
331
+ #WBCR .wio-bar-positive .wio-progress {
332
+ background: #8CC152;
333
+ }
334
+ #WBCR .wio-bar-positive .wio-barnb {
335
+ color: #72a53b;
336
+ }
337
+ #WBCR .wio-bar-primary .wio-progress {
338
+ background: #8CC152;
339
+ }
340
+ #WBCR .wio-bar-primary .wio-barnb {
341
+ color: #72a53b;
342
+ }
343
+ #WBCR .wio-right-outside-number .wio-barnb {
344
+ display: block;
345
+ margin-right: -5.25em;
346
+ text-align: right;
347
+ font-weight: bold;
348
+ line-height: 0.8;
349
+ }
350
+ #WBCR .wio-chart {
351
+ position: relative;
352
+ top: 1px;
353
+ display: inline-block;
354
+ vertical-align: middle;
355
+ }
356
+ #WBCR .wio-chart-container {
357
+ position: relative;
358
+ display: inline-block;
359
+ margin-right: 5px;
360
+ }
361
+ #WBCR .wio-chart-container canvas {
362
+ display: block;
363
+ }
364
+ #WBCR .wio-overview-chart-container {
365
+ float: left;
366
+ margin-right: 20px;
367
+ }
368
+ #WBCR .wio-chart-percent {
369
+ position: absolute;
370
+ left: 0;
371
+ right: 0;
372
+ top: 50%;
373
+ margin-top: -0.5em;
374
+ line-height: 0.8;
375
+ text-align: center;
376
+ font-size: 54px;
377
+ font-weight: bold;
378
+ color: #afafaf;
379
+ }
380
+ #WBCR .wio-chart-percent span {
381
+ font-size: 20px;
382
+ vertical-align: super;
383
+ }
384
+ #WBCR #wio-overview-chart-legend {
385
+ overflow: hidden;
386
+ }
387
+ #WBCR .wio-doughnut-legend li {
388
+ display: inline-block;
389
+ position: relative;
390
+ margin-bottom: 15px;
391
+ border-radius: 5px;
392
+ padding: 3px 8px 2px 31px;
393
+ font-size: 9px;
394
+ cursor: default;
395
+ -webkit-transition: background-color 200ms ease-in-out;
396
+ -moz-transition: background-color 200ms ease-in-out;
397
+ -o-transition: background-color 200ms ease-in-out;
398
+ transition: background-color 200ms ease-in-out;
399
+ }
400
+ #WBCR .wio-doughnut-legend li span {
401
+ display: block;
402
+ position: absolute;
403
+ left: 0;
404
+ top: 0;
405
+ width: 25px;
406
+ height: 25px;
407
+ border-radius: 50%;
408
+ }
409
+ #WBCR .wio-optimize-button {
410
+ min-width: 180px;
411
+ padding: 12px 30px;
412
+ background: #c9deb2;
413
+ color: #586549;
414
+ border: 0;
415
+ box-shadow: none;
416
+ font-size: 14px;
417
+ text-transform: uppercase !important;
418
+ font-weight: bold;
419
+ border-radius: 4px;
420
+ outline: none;
421
+ }
422
+ #WBCR .wio-optimize-button:active {
423
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
424
+ }
425
+ #WBCR .wio-optimize-button:disabled {
426
+ background: #e2edd6;
427
+ color: #a5b295;
428
+ }
429
+ #WBCR .wio-optimize-button.wio-running {
430
+ color: #a57b3c;
431
+ background: #fdd599 url("../img/Spinner-1s-33px.gif") 10px center no-repeat;
432
+ padding-left: 50px;
433
+ }
434
+ #WBCR .wio-global-optim-phrase {
435
+ width: 180px;
436
+ padding-top: 20px;
437
+ font-size: 14px;
438
+ text-align: center;
439
+ }
440
+ #WBCR .wio-total-percent {
441
+ color: #587f2e;
442
+ }
443
+ #WBCR #wio-start-msg-top,
444
+ #WBCR #wio-start-msg-right,
445
+ #WBCR #wio-start-msg-complete {
446
+ display: none;
447
+ }
448
+ #WBCR .wio-text-left {
449
+ text-align: left;
450
+ }
451
+ #WBCR span.wio-num {
452
+ display: inline !important;
453
+ position: inherit !important;
454
+ }
455
+ #WBCR .wio-image-optimize-board {
456
+ padding-bottom: 0 !important;
457
+ }
458
+ #WBCR .wio-page-statistic {
459
+ padding-left: 40px;
460
+ }
461
+ #WBCR .wio-page-statistic .wio-chart-percent {
462
+ margin-top: -1.1em;
463
+ }
464
+ #WBCR .wrio-optimization-progress {
465
+ background: none;
466
+ padding: 0;
467
+ /*button {
468
+ padding: 5px 10px;
469
+ border: 0;
470
+ font-size: 11px;
471
+ text-transform: uppercase !important;
472
+ font-weight: bold;
473
+ border-radius: 4px;
474
+ outline: none;
475
+ background: @greyButtonBg;
476
+ color: @greyButtonColor;
477
+ box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
478
+
479
+ &:active {
480
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
481
+ }
482
+
483
+ &.wbcr-rio-loading {
484
+ width: 56px;
485
+ font-size: 0;
486
+ background: @greyButtonBg url("../img/quick-start-loader.gif") center no-repeat;
487
+ }
488
+
489
+ &.wbcr-rio-selected {
490
+ background: #f3efe2;
491
+ color: #d8d8d8;
492
+
493
+ &:active {
494
+ box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
495
+ }
496
+ }
497
+ }*/
498
+ }
499
+ #WBCR .wrio-optimization-progress h4 {
500
+ font-size: 15px;
501
+ font-weight: 700;
502
+ }
503
+ #WBCR .wrio-optimization-progress .wbcr-rio-warning-message {
504
+ padding: 20px;
505
+ background: #efefef;
506
+ font-size: 15px;
507
+ color: #b7b7b7;
508
+ font-style: italic;
509
+ }
510
+ #WBCR .wio-widget {
511
+ padding: 0 !important;
512
+ }
513
+ #WBCR .wio-widget .wio-chart-percent {
514
+ font-size: 44px;
515
+ line-height: 1;
516
+ }
517
+ #WBCR .wio-widget .wio-bars {
518
+ width: 60%;
519
+ margin-left: 155px;
520
+ }
521
+ #WBCR .wio-widget .col-chart.col-chart {
522
+ width: 100%;
523
+ }
524
+ #WBCR .wio-widget .col-controls {
525
+ width: 45%;
526
+ padding-left: 5px;
527
+ padding-top: 110px;
528
+ }
529
+ #WBCR .wio-widget .wio-doughnut-legend {
530
+ /*padding-top:30px;*/
531
+ text-align: left;
532
+ }
533
+ #WBCR .wio-widget .wio-widget-bottom {
534
+ display: table;
535
+ padding-top: 20px !important;
536
+ width: 100%;
537
+ text-align: right;
538
+ }
539
+ #WBCR .wio-widget .wio-widget-bottom li {
540
+ display: table-cell;
541
+ }
542
+ #WBCR .wio-widget .wio-widget-bottom li:first-child {
543
+ text-align: left;
544
+ }
545
+ #WBCR .factory-checkbox.wrio-checkbox-premium-label:after {
546
+ display: inline-block;
547
+ position: relative;
548
+ content: 'PRO';
549
+ background: #ff5722;
550
+ border-radius: 4px;
551
+ color: #fff;
552
+ font-size: 10px;
553
+ line-height: 1;
554
+ font-style: normal;
555
+ padding: 4px 6px;
556
+ margin-left: 4px;
557
+ vertical-align: top;
558
+ top: -8px;
559
+ left: -10px;
560
+ right: auto;
561
+ z-index: 11;
562
+ }
563
+ #WBCR .factory-checkbox-disabled input,
564
+ #WBCR .factory-checkbox-disabled button {
565
+ pointer-events: none;
566
+ cursor: not-allowed;
567
+ opacity: 0.65;
568
+ filter: alpha(opacity=65);
569
+ -webkit-box-shadow: none;
570
+ box-shadow: none;
571
+ }
572
+ #WBCR #wrio-webp-options h3,
573
+ #WBCR #wrio-error-log-options h3 {
574
+ font-size: 14px;
575
+ margin: 0 0 10px 0;
576
+ font-weight: 600;
577
+ color: #565656;
578
+ }
579
+ #WBCR #wrio-webp-options .wrio-webp-options-info,
580
+ #WBCR #wrio-error-log-options .wrio-webp-options-info {
581
+ color: #8a8787;
582
+ font-size: 12px;
583
+ }
584
+ #WBCR #wrio-webp-options ul,
585
+ #WBCR #wrio-error-log-options ul {
586
+ padding-left: 0;
587
+ }
588
+ #WBCR #wrio-webp-options ul li:after,
589
+ #WBCR #wrio-error-log-options ul li:after {
590
+ content: '';
591
+ display: block;
592
+ clear: both;
593
+ }
594
+ #WBCR #wrio-webp-options ul li label,
595
+ #WBCR #wrio-error-log-options ul li label {
596
+ font-weight: 600;
597
+ }
598
+ #WBCR #wrio-webp-options ul li .wrio-webp-options-radio,
599
+ #WBCR #wrio-error-log-options ul li .wrio-webp-options-radio,
600
+ #WBCR #wrio-webp-options ul li .wrio-error-log-options-checkbox,
601
+ #WBCR #wrio-error-log-options ul li .wrio-error-log-options-checkbox {
602
+ display: block;
603
+ float: left;
604
+ margin-top: 2px;
605
+ margin-right: 8px;
606
+ }
607
+ #WBCR #wrio-webp-options ul li .wrio-webp-options-radio:focus,
608
+ #WBCR #wrio-error-log-options ul li .wrio-webp-options-radio:focus,
609
+ #WBCR #wrio-webp-options ul li .wrio-error-log-options-checkbox:focus,
610
+ #WBCR #wrio-error-log-options ul li .wrio-error-log-options-checkbox:focus {
611
+ outline: none;
612
+ box-shadow: none;
613
+ }
614
+ #WBCR #wrio-webp-options ul li .wrio-webp-options-info,
615
+ #WBCR #wrio-error-log-options ul li .wrio-webp-options-info,
616
+ #WBCR #wrio-webp-options ul li .wrio-error-log-options-info,
617
+ #WBCR #wrio-error-log-options ul li .wrio-error-log-options-info {
618
+ padding-left: 25px;
619
+ }
620
+ @media (max-width: 830px) {
621
+ #WBCR .wio [class^="col-"] {
622
+ float: none;
623
+ margin-bottom: 1.5em;
624
+ }
625
+ #WBCR .wio .col-1-3,
626
+ #WBCR .wio .col-1-2 {
627
+ width: auto;
628
+ padding: 0 28px;
629
+ clear: both;
630
+ padding-top: 1em;
631
+ }
632
+ }
633
+ @keyframes wiohello {
634
+ 0%,
635
+ 100% {
636
+ background: #FFF;
637
+ }
638
+ 50% {
639
+ background: #F4F7F9;
640
+ }
641
+ }
642
+ @media (max-width: 1520px) and (min-width: 1381px), (max-width: 1086px) {
643
+ #WBCR .wio-columns .col-statistics.col-statistics,
644
+ #WBCR .wio-columns .col-chart.col-chart {
645
+ width: 50%;
646
+ }
647
+ }
648
+ @media (max-width: 808px) {
649
+ #WBCR .wio-columns .col-statistics.col-statistics,
650
+ #WBCR .wio-columns .col-chart.col-chart {
651
+ width: auto;
652
+ float: none;
653
+ padding: 0;
654
+ }
655
+ #WBCR .wio-columns .col-chart.col-chart {
656
+ margin-top: 3em;
657
+ }
658
+ }
659
  /*# sourceMappingURL=base-statistic.css.map */
admin/assets/css/base-statistic.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["base-statistic.less"],"names":[],"mappings":";;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,KAoBE;EACE,WAAA;;AArBJ,KA2BE;AA3BF,KA2B0C;EACtC,wBAAA;;AA5BJ,KAiCE;EACE,SAAA;EAEA,mBAAA;;AApCJ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R,KA8oBE,mBAaE,GAGE,GAuB2B;AArrBjC,KA8oBsB,wBAalB,GAGE,GAuB2B;EACvB,kBAAA;;AAWR,QAA0B;EAA1B,KACE,KAAK;IACH,WAAA;IACA,oBAAA;;EAHJ,KAME,KAAK;EANP,KAOE,KAAK;IACH,WAAA;IACA,eAAA;IACA,WAAA;IACA,gBAAA;;;AAIJ;EACE;EAAI;IACF,gBAAA;;EAEF;IACE,mBAAA;;;AAIJ,QAA2B,wBAAuB,qBAAsB;EAAxE,KACE,aACE,gBAAe;EAFnB,KACE,aACkC,WAAU;IACxC,UAAA;;;AAMN,QAA0B;EAA1B,KACE,aACE,gBAAe;EAFnB,KACE,aACkC,WAAU;IACxC,WAAA;IACA,WAAA;IACA,UAAA;;EALN,KACE,aAOE,WAAU;IACR,eAAA","file":"base-statistic.css"}
admin/assets/css/base-statistic.less CHANGED
@@ -2,7 +2,7 @@
2
  * Styles for the Widget to be displayed in the Clearfy plugin
3
 
4
  * @author Alex Kovalev <alex.kovalevv@gmail.com>
5
- * @copyright Webcraftic 13.06.2018
6
  */
7
 
8
  @positiveColor: #8CC152;
@@ -215,6 +215,7 @@
215
 
216
  #wrio-change-optimization-server {
217
  position: relative;
 
218
  max-width: 400px;
219
  margin-right: 15px;
220
  margin-bottom: 0;
@@ -229,6 +230,7 @@
229
  }
230
 
231
  .wrio-server-status-wrap {
 
232
  margin-top: 8px;
233
 
234
  .wrio-server-status {
2
  * Styles for the Widget to be displayed in the Clearfy plugin
3
 
4
  * @author Alex Kovalev <alex.kovalevv@gmail.com>
5
+ * @copyright Webcraftic 13.06.2019
6
  */
7
 
8
  @positiveColor: #8CC152;
215
 
216
  #wrio-change-optimization-server {
217
  position: relative;
218
+ display: inline-block;
219
  max-width: 400px;
220
  margin-right: 15px;
221
  margin-bottom: 0;
230
  }
231
 
232
  .wrio-server-status-wrap {
233
+ display: inline-block;
234
  margin-top: 8px;
235
 
236
  .wrio-server-status {
admin/assets/js/bulk-optimization.js CHANGED
@@ -24,10 +24,13 @@ jQuery(function($) {
24
  },
25
 
26
  registerEvents: function() {
27
- var self = this;
 
28
 
29
  $('#wrio-change-optimization-server').on('change', function() {
30
  $(this).prop('disabled', true);
 
 
31
  self.checkServerStatus();
32
  });
33
 
@@ -84,15 +87,18 @@ jQuery(function($) {
84
  serverStatus.removeClass('wrio-server-check-proccess');
85
 
86
  if( !response || !response.data || !response.success ) {
 
 
 
87
  if( !response || !response.data ) {
88
- console.log('[Error]: Response error');
89
  console.log(response);
90
- return;
91
  }
 
92
  serverStatus.addClass('wrio-down');
93
- console.log(self.i18n.server_status_down);
94
  serverStatus.text(self.i18n.server_status_down);
95
  self.serverDown = true;
 
 
96
  } else {
97
  serverStatus.addClass('wrio-stable');
98
  serverStatus.text(self.i18n.server_status_stable);
@@ -289,10 +295,10 @@ jQuery(function($) {
289
  throwError: function(error_message) {
290
  this.stop();
291
 
292
- var noticeId = $.wbcr_factory_clearfy_208.app.showNotice(error_message, 'danger');
293
 
294
  setTimeout(function() {
295
- $.wbcr_factory_clearfy_208.app.hideNotice(noticeId);
296
  }, 10000);
297
  },
298
 
@@ -386,8 +392,8 @@ jQuery(function($) {
386
  trEl.addClass('wrio-error');
387
  }
388
 
389
- var preview = $('<img width="40" height="40" src="' + value.url + '" alt="">'),
390
- previewUrl = $('<a href="' + value.url + '">' + value.file_name + '</a>');
391
 
392
  tableEl.prepend(trEl);
393
 
@@ -395,7 +401,8 @@ jQuery(function($) {
395
  trEl.append(tdEl.clone().append(previewUrl));
396
 
397
  if( 'error' === value.type ) {
398
- trEl.append(tdEl.clone().attr('colspan', '5').text("Error: " + value.error_msg));
 
399
  } else {
400
  trEl.append(tdEl.clone().text(value.original_size));
401
  trEl.append(tdEl.clone().text(value.optimized_size));
24
  },
25
 
26
  registerEvents: function() {
27
+ var self = this,
28
+ selectedServer = $("#wrio-change-optimization-server option:selected");
29
 
30
  $('#wrio-change-optimization-server').on('change', function() {
31
  $(this).prop('disabled', true);
32
+
33
+ selectedServer = $(this).find('option:selected');
34
  self.checkServerStatus();
35
  });
36
 
87
  serverStatus.removeClass('wrio-server-check-proccess');
88
 
89
  if( !response || !response.data || !response.success ) {
90
+ console.log('[Error]: Response error');
91
+ response.data && response.data.error && console.log(response.data.error);
92
+
93
  if( !response || !response.data ) {
 
94
  console.log(response);
 
95
  }
96
+
97
  serverStatus.addClass('wrio-down');
 
98
  serverStatus.text(self.i18n.server_status_down);
99
  self.serverDown = true;
100
+
101
+ return;
102
  } else {
103
  serverStatus.addClass('wrio-stable');
104
  serverStatus.text(self.i18n.server_status_stable);
295
  throwError: function(error_message) {
296
  this.stop();
297
 
298
+ var noticeId = $.wbcr_factory_clearfy_216.app.showNotice(error_message, 'danger');
299
 
300
  setTimeout(function() {
301
+ $.wbcr_factory_clearfy_216.app.hideNotice(noticeId);
302
  }, 10000);
303
  },
304
 
392
  trEl.addClass('wrio-error');
393
  }
394
 
395
+ var preview = $('<img width="40" height="40" src="' + value.thumbnail_url + '" alt="">'),
396
+ previewUrl = $('<a href="' + value.url + '" target="_blank">' + value.file_name + '</a>');
397
 
398
  tableEl.prepend(trEl);
399
 
401
  trEl.append(tdEl.clone().append(previewUrl));
402
 
403
  if( 'error' === value.type ) {
404
+ var colspan = value.scope !== 'custom-folders' ? '6' : '5';
405
+ trEl.append(tdEl.clone().attr('colspan', colspan).text("Error: " + value.error_msg));
406
  } else {
407
  trEl.append(tdEl.clone().text(value.original_size));
408
  trEl.append(tdEl.clone().text(value.optimized_size));
admin/boot.php CHANGED
@@ -73,7 +73,7 @@ add_action( 'admin_enqueue_scripts', function () {
73
 
74
  wp_enqueue_script( 'wrio-meta-migrations', WRIO_PLUGIN_URL . '/admin/assets/js/meta-migrations.js', [
75
  'jquery',
76
- 'wbcr-factory-clearfy-208-global'
77
  ], WRIO_Plugin::app()->getPluginVersion() );
78
  } );
79
 
@@ -97,7 +97,7 @@ add_action( 'admin_enqueue_scripts', function () {
97
  *
98
  * @see RIO_Process_Queue for further information about new table.
99
  */
100
- add_action( "wbcr_factory_notices_000_list", function ( $notices ) {
101
 
102
  if ( ! current_user_can( 'update_plugins' ) || ! wbcr_rio_has_meta_to_migrate() ) {
103
  return $notices;
@@ -126,8 +126,8 @@ add_action( "wbcr_factory_notices_000_list", function ( $notices ) {
126
  * @author Alexander Kovalev <alex.kovalevv@gmail.com>
127
  * @since 1.3.0
128
  *
129
- * @param Wbcr_Factory412_Plugin $plugin
130
- * @param Wbcr_FactoryPages412_ImpressiveThemplate $obj
131
  *
132
  * @see wbcr_rio_migrate_postmeta_to_process_queue() for further information about AJAX processing function.
133
  * @see wbcr_rio_has_meta_to_migrate() used to check whether to show notice or not.
@@ -146,11 +146,11 @@ add_action( 'wbcr/factory/pages/impressive/print_all_notices', function ( $plugi
146
  * Flush configuration after saving the settings
147
  *
148
  * @param WHM_Plugin $plugin
149
- * @param Wbcr_FactoryPages412_ImpressiveThemplate $obj
150
  *
151
  * @return bool
152
  */
153
- /*add_action('wbcr_factory_412_imppage_after_form_save', function ($plugin, $obj) {
154
  $is_rio = WRIO_Plugin::app()->getPluginName() == $plugin->getPluginName();
155
 
156
  if( $is_rio ) {
@@ -174,14 +174,14 @@ function wio_rating_widget_url( $page_url, $plugin_name ) {
174
  return $page_url;
175
  }
176
 
177
- add_filter( 'wbcr_factory_pages_412_imppage_rating_widget_url', 'wio_rating_widget_url', 10, 2 );
178
 
179
  /**
180
  * Widget with the offer to buy Clearfy Business
181
  *
182
  * @param array $widgets
183
  * @param string $position
184
- * @param Wbcr_Factory412_Plugin $plugin
185
  */
186
  add_filter( 'wbcr/factory/pages/impressive/widgets', function ( $widgets, $position, $plugin ) {
187
  if ( $plugin->getPluginName() == WRIO_Plugin::app()->getPluginName() ) {
@@ -191,27 +191,27 @@ add_filter( 'wbcr/factory/pages/impressive/widgets', function ( $widgets, $posit
191
  unset( $widgets['donate_widget'] );
192
 
193
  if ( $position == 'right' ) {
194
- unset( $widgets['businnes_suggetion'] );
195
  unset( $widgets['rating_widget'] );
196
  unset( $widgets['info_widget'] );
197
  }
198
 
199
- if ( $position == 'bottom' ) {
200
  $widgets['support'] = wrio_get_sidebar_support_widget();
201
- }
202
 
203
  return $widgets;
204
  } else {
205
  if ( $position == 'right' ) {
206
  unset( $widgets['info_widget'] );
207
  unset( $widgets['rating_widget'] );
208
- $widgets['support'] = wrio_get_sidebar_support_widget();
209
  }
210
  }
211
 
212
- if ( $position == 'bottom' ) {
213
- $widgets['donate_widget'] = wrio_get_sidebar_premium_widget();
214
- }
215
  }
216
 
217
  return $widgets;
73
 
74
  wp_enqueue_script( 'wrio-meta-migrations', WRIO_PLUGIN_URL . '/admin/assets/js/meta-migrations.js', [
75
  'jquery',
76
+ 'wbcr-factory-clearfy-216-global'
77
  ], WRIO_Plugin::app()->getPluginVersion() );
78
  } );
79
 
97
  *
98
  * @see RIO_Process_Queue for further information about new table.
99
  */
100
+ add_action( "wbcr/factory/admin_notices", function ( $notices ) {
101
 
102
  if ( ! current_user_can( 'update_plugins' ) || ! wbcr_rio_has_meta_to_migrate() ) {
103
  return $notices;
126
  * @author Alexander Kovalev <alex.kovalevv@gmail.com>
127
  * @since 1.3.0
128
  *
129
+ * @param Wbcr_Factory424_Plugin $plugin
130
+ * @param Wbcr_FactoryPages424_ImpressiveThemplate $obj
131
  *
132
  * @see wbcr_rio_migrate_postmeta_to_process_queue() for further information about AJAX processing function.
133
  * @see wbcr_rio_has_meta_to_migrate() used to check whether to show notice or not.
146
  * Flush configuration after saving the settings
147
  *
148
  * @param WHM_Plugin $plugin
149
+ * @param Wbcr_FactoryPages424_ImpressiveThemplate $obj
150
  *
151
  * @return bool
152
  */
153
+ /*add_action('wbcr_factory_424_imppage_after_form_save', function ($plugin, $obj) {
154
  $is_rio = WRIO_Plugin::app()->getPluginName() == $plugin->getPluginName();
155
 
156
  if( $is_rio ) {
174
  return $page_url;
175
  }
176
 
177
+ add_filter( 'wbcr_factory_pages_424_imppage_rating_widget_url', 'wio_rating_widget_url', 10, 2 );
178
 
179
  /**
180
  * Widget with the offer to buy Clearfy Business
181
  *
182
  * @param array $widgets
183
  * @param string $position
184
+ * @param Wbcr_Factory424_Plugin $plugin
185
  */
186
  add_filter( 'wbcr/factory/pages/impressive/widgets', function ( $widgets, $position, $plugin ) {
187
  if ( $plugin->getPluginName() == WRIO_Plugin::app()->getPluginName() ) {
191
  unset( $widgets['donate_widget'] );
192
 
193
  if ( $position == 'right' ) {
194
+ unset( $widgets['business_suggetion'] );
195
  unset( $widgets['rating_widget'] );
196
  unset( $widgets['info_widget'] );
197
  }
198
 
199
+ /*if ( $position == 'bottom' ) {
200
  $widgets['support'] = wrio_get_sidebar_support_widget();
201
+ }*/
202
 
203
  return $widgets;
204
  } else {
205
  if ( $position == 'right' ) {
206
  unset( $widgets['info_widget'] );
207
  unset( $widgets['rating_widget'] );
208
+ //$widgets['support'] = wrio_get_sidebar_support_widget();
209
  }
210
  }
211
 
212
+ //if ( $position == 'bottom' ) {
213
+ //$widgets['donate_widget'] = wrio_get_sidebar_premium_widget();
214
+ //}
215
  }
216
 
217
  return $widgets;
admin/includes/classes/class-rio-optimize-template.php CHANGED
@@ -26,12 +26,12 @@ class WIO_OptimizePageTemplate {
26
  /**
27
  * Выводит контент страницы с учётом мультисайта
28
  *
29
- * @param Wbcr_FactoryClearfy208_PageBase $page
30
  *
31
  * @throws Exception
32
  */
33
 
34
- /*public function showPageContent( Wbcr_FactoryClearfy208_PageBase $page ) {
35
  do_action( 'wbcr/rio/multisite_current_blog' );
36
  $this->pageContent( $page );
37
  do_action( 'wbcr/rio/multisite_restore_blog' );
@@ -174,7 +174,7 @@ class WIO_OptimizePageTemplate {
174
  class="wio-reoptimize button-wio-manual-override-upload"
175
  data-waiting-label="<?php _e( 'Optimization in progress', 'robin-image-optimizer' ); ?>">
176
  <span class="dashicons dashicons-admin-generic"></span><span
177
- class="wio-hide-if-small"><?php _e( 'Re-Optimize to', 'robin-image-optimizer' ); ?> </span><?php _e( 'Normal', 'robin-image-optimizer' ); ?>
178
  <span class="wio-hide-if-small"></span>
179
  </a>
180
  <?php endif; ?>
@@ -184,7 +184,7 @@ class WIO_OptimizePageTemplate {
184
  class="wio-reoptimize button-wio-manual-override-upload"
185
  data-waiting-label="<?php _e( 'Optimization in progress', 'robin-image-optimizer' ); ?>">
186
  <span class="dashicons dashicons-admin-generic"></span><span
187
- class="wio-hide-if-small"><?php _e( 'Re-Optimize to', 'robin-image-optimizer' ); ?> </span><?php _e( 'Medium', 'robin-image-optimizer' ); ?>
188
  <span class="wio-hide-if-small"></span>
189
  </a>
190
  <?php endif; ?>
26
  /**
27
  * Выводит контент страницы с учётом мультисайта
28
  *
29
+ * @param Wbcr_FactoryClearfy216_PageBase $page
30
  *
31
  * @throws Exception
32
  */
33
 
34
+ /*public function showPageContent( Wbcr_FactoryClearfy216_PageBase $page ) {
35
  do_action( 'wbcr/rio/multisite_current_blog' );
36
  $this->pageContent( $page );
37
  do_action( 'wbcr/rio/multisite_restore_blog' );
174
  class="wio-reoptimize button-wio-manual-override-upload"
175
  data-waiting-label="<?php _e( 'Optimization in progress', 'robin-image-optimizer' ); ?>">
176
  <span class="dashicons dashicons-admin-generic"></span><span
177
+ class="wio-hide-if-small"><?php _e( 'Re-Optimize to', 'robin-image-optimizer' ); ?> </span><?php _e( 'lossless', 'robin-image-optimizer' ); ?>
178
  <span class="wio-hide-if-small"></span>
179
  </a>
180
  <?php endif; ?>
184
  class="wio-reoptimize button-wio-manual-override-upload"
185
  data-waiting-label="<?php _e( 'Optimization in progress', 'robin-image-optimizer' ); ?>">
186
  <span class="dashicons dashicons-admin-generic"></span><span
187
+ class="wio-hide-if-small"><?php _e( 'Re-Optimize to', 'robin-image-optimizer' ); ?> </span><?php _e( 'lossy', 'robin-image-optimizer' ); ?>
188
  <span class="wio-hide-if-small"></span>
189
  </a>
190
  <?php endif; ?>
admin/pages/class-rio-license.php CHANGED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
9
  *
10
  * @author Alexander Teshabaev <sasha.tesh@gmail.com>
11
  */
12
- class WRIO_License_Page extends Wbcr_FactoryClearfy208_LicensePage {
13
 
14
  /**
15
  * {@inheritdoc}
@@ -43,9 +43,9 @@ class WRIO_License_Page extends Wbcr_FactoryClearfy208_LicensePage {
43
 
44
  /**
45
  * {@inheritdoc}
46
- * @param Wbcr_Factory412_Plugin $plugin
47
  */
48
- public function __construct( Wbcr_Factory412_Plugin $plugin ) {
49
  $this->menu_title = __( 'License', 'robin-image-optimizer' );
50
  $this->page_menu_short_description = __( 'Product activation', 'robin-image-optimizer' );
51
 
9
  *
10
  * @author Alexander Teshabaev <sasha.tesh@gmail.com>
11
  */
12
+ class WRIO_License_Page extends Wbcr_FactoryClearfy216_LicensePage {
13
 
14
  /**
15
  * {@inheritdoc}
43
 
44
  /**
45
  * {@inheritdoc}
46
+ * @param Wbcr_Factory424_Plugin $plugin
47
  */
48
+ public function __construct( Wbcr_Factory424_Plugin $plugin ) {
49
  $this->menu_title = __( 'License', 'robin-image-optimizer' );
50
  $this->page_menu_short_description = __( 'Product activation', 'robin-image-optimizer' );
51
 
admin/pages/class-rio-log.php CHANGED
@@ -49,6 +49,8 @@ class WRIO_LogPage extends WRIO_Page {
49
  public function assets( $scripts, $styles ) {
50
  parent::assets( $scripts, $styles );
51
 
 
 
52
  // Add Clearfy styles for HMWP pages
53
  if ( defined( 'WBCR_CLEARFY_PLUGIN_ACTIVE' ) ) {
54
  $this->styles->add( WCL_PLUGIN_URL . '/admin/assets/css/general.css' );
@@ -104,10 +106,10 @@ class WRIO_LogPage extends WRIO_Page {
104
 
105
  jQuery('#wbcr-log-viewer').html('');
106
  jQuery('#wbcr-log-size').text('0B');
107
- jQuery.wbcr_factory_clearfy_208.app.showNotice(data.message, data.type);
108
  },
109
  error: function(jqXHR, textStatus, errorThrown) {
110
- jQuery.wbcr_factory_clearfy_208.app.showNotice('Error: ' + errorThrown + ', status: ' + textStatus, 'danger');
111
  btn.html(currentBtnText);
112
  }
113
  });
49
  public function assets( $scripts, $styles ) {
50
  parent::assets( $scripts, $styles );
51
 
52
+ $this->styles->add( WRIO_PLUGIN_URL . '/admin/assets/css/base-statistic.css' );
53
+
54
  // Add Clearfy styles for HMWP pages
55
  if ( defined( 'WBCR_CLEARFY_PLUGIN_ACTIVE' ) ) {
56
  $this->styles->add( WCL_PLUGIN_URL . '/admin/assets/css/general.css' );
106
 
107
  jQuery('#wbcr-log-viewer').html('');
108
  jQuery('#wbcr-log-size').text('0B');
109
+ jQuery.wbcr_factory_clearfy_216.app.showNotice(data.message, data.type);
110
  },
111
  error: function(jqXHR, textStatus, errorThrown) {
112
+ jQuery.wbcr_factory_clearfy_216.app.showNotice('Error: ' + errorThrown + ', status: ' + textStatus, 'danger');
113
  btn.html(currentBtnText);
114
  }
115
  });
admin/pages/class-rio-page.php CHANGED
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
18
  * @copyright (c) 2018, Webcraftic
19
  * @version 1.0
20
  */
21
- class WRIO_Page extends Wbcr_FactoryClearfy208_PageBase {
22
 
23
  /**
24
  * {@inheritdoc}
18
  * @copyright (c) 2018, Webcraftic
19
  * @version 1.0
20
  */
21
+ class WRIO_Page extends Wbcr_FactoryClearfy216_PageBase {
22
 
23
  /**
24
  * {@inheritdoc}
admin/pages/class-rio-settings.php CHANGED
@@ -44,7 +44,7 @@ class WRIO_SettingsPage extends WRIO_Page {
44
  *
45
  * @since 1.0.0
46
  * @return void
47
- * @see Wbcr_FactoryPages412_AdminPage
48
  *
49
  */
50
  public function assets( $scripts, $styles ) {
44
  *
45
  * @since 1.0.0
46
  * @return void
47
+ * @see Wbcr_FactoryPages424_AdminPage
48
  *
49
  */
50
  public function assets( $scripts, $styles ) {
admin/pages/class-rio-statistic.php CHANGED
@@ -226,6 +226,7 @@ class WRIO_StatisticPage extends WRIO_Page {
226
  */
227
  protected function get_i18n() {
228
  return [
 
229
  'server_down_warning' => __( 'Your selected optimization server is down. This means that you cannot optimize images through this server. Try selecting another optimization server.', 'robin-image-optimizer' ),
230
  'server_status_down' => __( 'down', 'robin-image-optimizer' ),
231
  'server_status_stable' => __( 'stable', 'robin-image-optimizer' ),
226
  */
227
  protected function get_i18n() {
228
  return [
229
+ 'premium_server_disabled' => __( 'You cannot use the premium server on a free plan. You must activate the license to use all the features of the premium version.', 'robin-image-optimizer' ),
230
  'server_down_warning' => __( 'Your selected optimization server is down. This means that you cannot optimize images through this server. Try selecting another optimization server.', 'robin-image-optimizer' ),
231
  'server_status_down' => __( 'down', 'robin-image-optimizer' ),
232
  'server_status_stable' => __( 'stable', 'robin-image-optimizer' ),
includes/class-rio-plugin.php CHANGED
@@ -11,23 +11,37 @@ if ( ! defined( 'ABSPATH' ) ) {
11
  * @copyright (c) 19.02.2018, Webcraftic
12
  * @version 1.0
13
  */
14
- class WRIO_Plugin extends Wbcr_Factory412_Plugin {
15
 
16
  /**
17
- * @var Wbcr_Factory412_Plugin
 
18
  */
19
  private static $app;
20
 
21
  /**
 
 
 
 
 
 
 
 
 
 
 
22
  * @param string $plugin_path
23
  * @param array $data
24
  *
25
- * @throws Exception
26
  */
27
  public function __construct( $plugin_path, $data ) {
28
- self::$app = $this;
29
  parent::__construct( $plugin_path, $data );
30
 
 
 
 
31
  $this->includes();
32
 
33
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
@@ -47,6 +61,50 @@ class WRIO_Plugin extends Wbcr_Factory412_Plugin {
47
  add_action( 'plugins_loaded', [ $this, 'pluginsLoaded' ] );
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  /**
51
  * Подключаем модули классы и функции
52
  */
@@ -86,15 +144,6 @@ class WRIO_Plugin extends Wbcr_Factory412_Plugin {
86
  new WRIO_Logger();
87
  }
88
 
89
- /**
90
- * Статический метод для быстрого доступа к информации о плагине, а также часто использумых методах.
91
- *
92
- * @return Wbcr_Factory412_Plugin
93
- */
94
- public static function app() {
95
- return self::$app;
96
- }
97
-
98
  /**
99
  * Инициализируем активацию плагина
100
  */
@@ -125,34 +174,5 @@ class WRIO_Plugin extends Wbcr_Factory412_Plugin {
125
  self::app()->registerPage( 'WRIO_LogPage', $admin_path . '/class-rio-log.php' );
126
  }
127
  }
128
-
129
- /**
130
- * Подключаем функции бекенда
131
- *
132
- * @throws Exception
133
- */
134
- public function pluginsLoaded() {
135
- if ( is_admin() || wrio_doing_cron() || wrio_doing_rest_api() ) {
136
- $media_library = WRIO_Media_Library::get_instance();
137
- $media_library->initHooks();
138
- }
139
-
140
- if ( is_admin() ) {
141
- require_once( WRIO_PLUGIN_DIR . '/admin/boot.php' );
142
- //require_once( WRIO_PLUGIN_DIR . '/admin/includes/classes/class-rio-nextgen-landing.php' );
143
-
144
- $this->registerPages();
145
- }
146
-
147
- if ( wrio_doing_cron() || wrio_doing_rest_api() ) {
148
- $media_library = WRIO_Media_Library::get_instance();
149
- $media_library->initHooks();
150
- }
151
-
152
- if ( wrio_is_license_activate() ) {
153
- require_once( WRIO_PLUGIN_DIR . '/libs/addons/robin-image-optimizer-premium.php' );
154
- wrio_premium_load();
155
- }
156
- }
157
  }
158
 
11
  * @copyright (c) 19.02.2018, Webcraftic
12
  * @version 1.0
13
  */
14
+ class WRIO_Plugin extends Wbcr_Factory424_Plugin {
15
 
16
  /**
17
+ * @see self::app()
18
+ * @var Wbcr_Factory424_Plugin
19
  */
20
  private static $app;
21
 
22
  /**
23
+ * @since 3.1.0
24
+ * @var array
25
+ */
26
+ private $plugin_data;
27
+
28
+ /**
29
+ * Конструктор
30
+ *
31
+ * Применяет конструктор родительского класса и записывает экземпляр текущего класса в свойство $app.
32
+ * Подробнее о свойстве $app см. self::app()
33
+ *
34
  * @param string $plugin_path
35
  * @param array $data
36
  *
37
+ * @throws \Exception
38
  */
39
  public function __construct( $plugin_path, $data ) {
 
40
  parent::__construct( $plugin_path, $data );
41
 
42
+ self::$app = $this;
43
+ $this->plugin_data = $data;
44
+
45
  $this->includes();
46
 
47
  if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
61
  add_action( 'plugins_loaded', [ $this, 'pluginsLoaded' ] );
62
  }
63
 
64
+ /**
65
+ * Статический метод для быстрого доступа к интерфейсу плагина.
66
+ *
67
+ * Позволяет разработчику глобально получить доступ к экземпляру класса плагина в любом месте
68
+ * плагина, но при этом разработчик не может вносить изменения в основной класс плагина.
69
+ *
70
+ * Используется для получения настроек плагина, информации о плагине, для доступа к вспомогательным
71
+ * классам.
72
+ *
73
+ * @return \Wbcr_Factory424_Plugin|\WRIO_Plugin
74
+ */
75
+ public static function app() {
76
+ return self::$app;
77
+ }
78
+
79
+ /**
80
+ * Подключаем функции бекенда
81
+ *
82
+ * @throws Exception
83
+ */
84
+ public function pluginsLoaded() {
85
+ if ( is_admin() || wrio_doing_cron() || wrio_doing_rest_api() ) {
86
+ $media_library = WRIO_Media_Library::get_instance();
87
+ $media_library->initHooks();
88
+ }
89
+
90
+ if ( is_admin() ) {
91
+ require_once( WRIO_PLUGIN_DIR . '/admin/boot.php' );
92
+ //require_once( WRIO_PLUGIN_DIR . '/admin/includes/classes/class-rio-nextgen-landing.php' );
93
+
94
+ $this->registerPages();
95
+ }
96
+
97
+ if ( wrio_doing_cron() || wrio_doing_rest_api() ) {
98
+ $media_library = WRIO_Media_Library::get_instance();
99
+ $media_library->initHooks();
100
+ }
101
+
102
+ if ( wrio_is_license_activate() ) {
103
+ require_once( WRIO_PLUGIN_DIR . '/libs/addons/robin-image-optimizer-premium.php' );
104
+ wrio_premium_load();
105
+ }
106
+ }
107
+
108
  /**
109
  * Подключаем модули классы и функции
110
  */
144
  new WRIO_Logger();
145
  }
146
 
 
 
 
 
 
 
 
 
 
147
  /**
148
  * Инициализируем активацию плагина
149
  */
174
  self::app()->registerPage( 'WRIO_LogPage', $admin_path . '/class-rio-log.php' );
175
  }
176
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  }
178
 
includes/classes/class-rio-attachment.php CHANGED
@@ -8,104 +8,186 @@ if ( ! defined( 'ABSPATH' ) ) {
8
  /**
9
  * Класс для работы с WordPress attachment.
10
  *
11
- * @author Eugene Jokerov <jokerov@gmail.com>
12
  * @copyright (c) 2018, Webcraftic
13
- * @version 1.0
14
  */
15
  class WIO_Attachment {
16
-
17
  /**
18
  * @var int
19
  */
20
  private $id;
21
-
 
22
  /**
23
  * @var array meta-данные
24
  */
25
  private $attachment_meta;
26
-
27
  /**
28
  * @var array массив с данными о папке uploads
29
  */
30
  private $wp_upload_dir;
31
-
32
  /**
33
  * @var string
34
  */
35
  private $url;
36
-
37
  /**
38
  * @var string
39
  */
40
  private $path;
41
-
42
  /**
43
  * @var RIO_Process_Queue
44
  */
45
  private $optimization_data;
46
-
47
  /**
48
  * Инициализация аттачмента
49
  *
50
- * @param int $attachment_id Номер аттачмента из медиабиблиотеки
51
- * @param array|false $attachment_meta метаданные аттачмента. Ключи массива аналогичны функции wp_get_attachment_metadata
52
  */
53
  public function __construct( $attachment_id, $attachment_meta = false ) {
54
  $this->id = $attachment_id;
55
  $this->wp_upload_dir = wp_upload_dir();
56
  $this->attachment_meta = $attachment_meta;
57
-
58
  if ( ! $attachment_meta ) {
59
  // some meta can be missing due to: https://wordpress.stackexchange.com/q/330174/149161
60
  $this->attachment_meta = wp_get_attachment_metadata( $this->id );
61
  }
62
-
63
- if ( $this->attachment_meta && isset( $this->attachment_meta['file'] ) ) {
64
- $this->url = trailingslashit( $this->wp_upload_dir['baseurl'] ) . $this->attachment_meta['file'];
65
- $this->path = wp_normalize_path( trailingslashit( $this->wp_upload_dir['basedir'] ) . $this->attachment_meta['file'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
 
 
 
67
  }
68
-
69
  /**
70
  * Актуализирует мета данные аттачмента и загружает актуальные мета данные и данные по оптимизации из базы.
71
  */
72
- public function reload() {
73
- $this->attachment_meta = wp_get_attachment_metadata( $this->id );
74
- $this->optimization_data = new RIO_Process_Queue( array(
 
 
 
75
  'object_id' => $this->id,
76
  'object_name' => '',
77
  'item_type' => 'attachment',
78
- ) );
79
  $this->optimization_data->load();
 
80
  }
81
-