Image Optimizer by 10web – Image Optimizer and Compression plugin - Version 1.0.9

Version Description

  • Removed: Notification
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Image Optimizer by 10web – Image Optimizer and Compression plugin
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8 to 1.0.9

Files changed (4) hide show
  1. io-wd.php +1 -1
  2. iowd_class.php +78 -3
  3. readme.txt +4 -1
  4. wd/wd.php +2 -2
io-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Image Optimizer WD
5
  * Plugin URI: https://10web.io/services/image-optimizer/
6
  * Description: Image Optimizer WordPress plugin enables you to resize, compress and optimize PNG, JPG, GIF files while maintaining image quality.
7
- * Version: 1.0.8
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
4
  * Plugin Name: Image Optimizer WD
5
  * Plugin URI: https://10web.io/services/image-optimizer/
6
  * Description: Image Optimizer WordPress plugin enables you to resize, compress and optimize PNG, JPG, GIF files while maintaining image quality.
7
+ * Version: 1.0.9
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
iowd_class.php CHANGED
@@ -8,7 +8,7 @@ class IOWD
8
  {
9
 
10
  protected static $instance = null;
11
- private static $version = '1.0.8';
12
  private static $page;
13
  private $reg_autoloader = false;
14
  private $options = array();
@@ -69,6 +69,36 @@ class IOWD
69
  set_transient(IOWD_PREFIX . '_overview_visited', 1, '', 'no');
70
  }
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
  public static function activate()
@@ -302,9 +332,9 @@ class IOWD
302
  $main_title = 'Image Optimizer';
303
  if (get_option("iowd_subscribe_done") == 1) {
304
  $parent_slug = "iowd_settings";
305
- if (!get_transient(IOWD_PREFIX . '_overview_visited')) {
306
  $main_title .= ' <span class="update-plugins count-2" style="background-color: #d54e21;position: absolute; right: 6.4px;"> <span class="plugin-count">1</span></span>';
307
- }
308
  add_menu_page("Image Optimizer", $main_title, 'manage_options', $parent_slug, array($this, 'iowd_admin'), IOWD_URL_IMG . "/icon.png");
309
  }
310
  add_submenu_page($parent_slug, "Image Optimizer", "Image Optimizer", 'manage_options', "iowd_settings", array($this, 'iowd_admin'));
@@ -316,6 +346,7 @@ class IOWD
316
  {
317
  if ($this->is_iowd_page() == true) {
318
  $this->upgrade_pro();
 
319
  $view_class = ucfirst(strtolower(self::$page));
320
  $view = new $view_class();
321
  $view->display();
@@ -479,6 +510,50 @@ class IOWD
479
  <?php
480
  }
481
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
482
  }
483
 
484
 
8
  {
9
 
10
  protected static $instance = null;
11
+ private static $version = '1.0.9';
12
  private static $page;
13
  private $reg_autoloader = false;
14
  private $options = array();
69
  set_transient(IOWD_PREFIX . '_overview_visited', 1, '', 'no');
70
  }
71
 
72
+ // add meta fields
73
+ add_filter("plugin_row_meta", array($this, 'meta_links'), 10, 2);
74
+
75
+ }
76
+ public function meta_links($meta_fields, $file)
77
+ {
78
+ if (IOWD_MAIN_FILE == $file) {
79
+ $plugin_url = "https://wordpress.org/support/plugin/image-optimizer-wd";
80
+ $prefix = 'iowd';
81
+ $meta_fields[] = "<a href='" . $plugin_url . "' target='_blank'>" . __('Support Forum', $prefix) . "</a>";
82
+ $meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
83
+ <i class='wdi-rate-stars'>"
84
+ . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
85
+ . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
86
+ . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
87
+ . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
88
+ . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
89
+ . "</i></a>";
90
+
91
+ $stars_color = "#ffb900";
92
+
93
+ echo "<style>"
94
+ . ".wdi-rate-stars{display:inline-block;color:" . $stars_color . ";position:relative;top:3px;}"
95
+ . ".wdi-rate-stars svg{fill:" . $stars_color . ";}"
96
+ . ".wdi-rate-stars svg:hover{fill:" . $stars_color . "}"
97
+ . ".wdi-rate-stars svg:hover ~ svg{fill:none;}"
98
+ . "</style>";
99
+ }
100
+
101
+ return $meta_fields;
102
  }
103
 
104
  public static function activate()
332
  $main_title = 'Image Optimizer';
333
  if (get_option("iowd_subscribe_done") == 1) {
334
  $parent_slug = "iowd_settings";
335
+ /*if (!get_transient(IOWD_PREFIX . '_overview_visited')) {
336
  $main_title .= ' <span class="update-plugins count-2" style="background-color: #d54e21;position: absolute; right: 6.4px;"> <span class="plugin-count">1</span></span>';
337
+ }*/
338
  add_menu_page("Image Optimizer", $main_title, 'manage_options', $parent_slug, array($this, 'iowd_admin'), IOWD_URL_IMG . "/icon.png");
339
  }
340
  add_submenu_page($parent_slug, "Image Optimizer", "Image Optimizer", 'manage_options', "iowd_settings", array($this, 'iowd_admin'));
346
  {
347
  if ($this->is_iowd_page() == true) {
348
  $this->upgrade_pro();
349
+ $this->user_manual();
350
  $view_class = ucfirst(strtolower(self::$page));
351
  $view = new $view_class();
352
  $view->display();
510
  <?php
511
  }
512
 
513
+ public function user_manual()
514
+ {
515
+ $page = isset($_GET["page"]) ? $_GET["page"] : "";
516
+ ?>
517
+ <div class="iowd_upgrade wd-clear">
518
+ <div class="wd-left">
519
+ <?php
520
+ switch ($page) {
521
+ case "iowd_settings": ?>
522
+ <div style="font-size: 14px;margin-top: 6px;">
523
+ <?php
524
+ if (get_option(IOWD_PREFIX . '_mode') == "standart") {
525
+ _e("This section allows you quickly optimize the pictures, without going through advanced settings.", IOWD_PREFIX); ?>
526
+ <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;"
527
+ target="_blank"
528
+ href="http://docs.10web.io/docs/image-optimizer-wd/easy-mode.html"><?php _e("Read More in User Manual.", IOWD_PREFIX); ?></a>
529
+ <?php
530
+ } else {
531
+ _e("This section allows you configure image optimization and set up what best fits your website.", IOWD_PREFIX); ?>
532
+ <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;"
533
+ target="_blank"
534
+ href="http://docs.10web.io/docs/image-optimizer-wd/advanced-mode"><?php _e("Read More in User Manual.", IOWD_PREFIX); ?></a>
535
+ <?php
536
+ }
537
+ ?>
538
+ </div>
539
+ <?php
540
+ break;
541
+ case "iowd_report":
542
+ ?>
543
+ <div style="font-size: 14px;margin-top: 6px;">
544
+ <?php _e("This section allows you to check the optimization results.", IOWD_PREFIX); ?>
545
+ <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank"
546
+ href="http://docs.10web.io/docs/image-optimizer-wd/statistics-report"><?php _e("Read More in User Manual.", IOWD_PREFIX); ?></a>
547
+ </div>
548
+ <?php
549
+ break;
550
+ }
551
+ ?>
552
+ </div>
553
+ </div>
554
+ <?php
555
+ }
556
+
557
  }
558
 
559
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: : compress, image, images optimization, performance, photos, lossless, opt
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
  Requires PHP: 5.5
7
- Stable tag: 1.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -54,6 +54,9 @@ Upgrade to [Image Optimizer WD Pro](https://10web.io/services/image-optimizer/)
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.0.8 =
58
  * Fixed: Minor bug
59
 
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
  Requires PHP: 5.5
7
+ Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.0.9 =
58
+ * Removed: Notification
59
+
60
  = 1.0.8 =
61
  * Fixed: Minor bug
62
 
wd/wd.php CHANGED
@@ -69,9 +69,9 @@
69
  $parent_slug = null;
70
  }
71
  $title = __( 'Premium', $wd_options->prefix );
72
- if (!get_transient($wd_options->prefix . '_overview_visited')) {
73
  $title .= ' <span class="update-plugins count-2" > <span class="plugin-count">1</span></span>';
74
- }
75
  $overview_page = add_submenu_page( $parent_slug, __( 'Premium', $wd_options->prefix ), '<span style="color:#4481ea;">' . $title . '</span>', $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ));
76
 
77
 
69
  $parent_slug = null;
70
  }
71
  $title = __( 'Premium', $wd_options->prefix );
72
+ /*if (!get_transient($wd_options->prefix . '_overview_visited')) {
73
  $title .= ' <span class="update-plugins count-2" > <span class="plugin-count">1</span></span>';
74
+ }*/
75
  $overview_page = add_submenu_page( $parent_slug, __( 'Premium', $wd_options->prefix ), '<span style="color:#4481ea;">' . $title . '</span>', $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ));
76
 
77