WP Super Minify - Version 1.4

Version Description

Download this release

Release Info

Developer dipakcg
Plugin Icon 128x128 WP Super Minify
Version 1.4
Comparing to
See all releases

Code changes from version 1.3.2 to 1.4

assets/css/style.css CHANGED
@@ -3,35 +3,48 @@
3
  }
4
  .wpsmy_admin_dev_sidebar_div {
5
  width:300px;
6
- height:250px;
7
  -webkit-border-radius: 10px;
8
  -moz-border-radius: 10px;
9
- border-radius: 10px;
 
10
  background-color:#FFFFFF;
11
- padding: 10px 0 0 30px;
12
  }
13
  .wpsmy_admin_dev_sidebar {
14
- font-size: 13px;
15
- margin: 0 20px 5px 0;
16
  display: block;
17
  }
18
- .wpsmy_admin_dev_sidebar a{
19
- text-decoration: none;
20
- }
21
  .wpsmy_admin_dev_sidebar img{
22
- padding: 5px 5px 0 0;
 
 
23
  }
24
- .news_section {
25
- border-radius: 10px;
 
26
  background-color: #FFFFFF;
27
  padding: 20px 20px 20px 20px;
28
  width: 98%;
29
  }
30
-
31
- a.rsswidget {
32
  font-size: 16px !important;
33
  text-decoration: none !important;
34
  }
35
- .rss-widget ul li {
36
  margin-bottom: 25px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  }
3
  }
4
  .wpsmy_admin_dev_sidebar_div {
5
  width:300px;
6
+ height:255px;
7
  -webkit-border-radius: 10px;
8
  -moz-border-radius: 10px;
9
+ border-radius: 20px 20px 20px 0;
10
+ border: 1px solid #FF9900;
11
  background-color:#FFFFFF;
12
+ padding: 10px 10px 0 30px;
13
  }
14
  .wpsmy_admin_dev_sidebar {
15
+ font-size: 14px;
16
+ margin: 0 20px 10px 0;
17
  display: block;
18
  }
 
 
 
19
  .wpsmy_admin_dev_sidebar img{
20
+ /* padding: 5px 5px 0 0; */
21
+ padding: 0 5px 0 0;
22
+ vertical-align: middle;
23
  }
24
+ .wpsmy_news_section {
25
+ border-radius: 20px 20px 20px 0;
26
+ border: 1px solid #FF9900;
27
  background-color: #FFFFFF;
28
  padding: 20px 20px 20px 20px;
29
  width: 98%;
30
  }
31
+ a.wpsmy_rsswidget {
 
32
  font-size: 16px !important;
33
  text-decoration: none !important;
34
  }
35
+ .wpsmy_rss-widget ul li {
36
  margin-bottom: 25px !important;
37
+ }
38
+ .wpsmy_referrals {
39
+ background: #FFF;
40
+ width: 250px;
41
+ min-height: 270px;
42
+ border: 1px solid #CCC;
43
+ float: left;
44
+ padding: 15px;
45
+ position: relative;
46
+ margin: 32px 10px 10px 0;
47
+ color: #0073AA;
48
+ font-size: 14px;
49
+ line-height: 1.5;
50
  }
assets/css/style.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .wpsmy_settings{font-size:16px !important}.wpsmy_admin_dev_sidebar_div{width:300px;height:255px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:20px 20px 20px 0;border:1px solid #FF9900;background-color:#FFFFFF;padding:10px 10px 0 30px}.wpsmy_admin_dev_sidebar{font-size:14px;margin:0 20px 10px 0;display:block}.wpsmy_admin_dev_sidebar img{padding:0 5px 0 0;vertical-align:middle}.wpsmy_news_section{border-radius:20px 20px 20px 0;border:1px solid #FF9900;background-color:#FFFFFF;padding:20px 20px 20px 20px;width:98%}a.wpsmy_rsswidget{font-size:16px !important;text-decoration:none !important}.wpsmy_rss-widget ul li{margin-bottom:25px !important}.wpsmy_referrals{background:#FFF;width:250px;min-height:270px;border:1px solid #CCC;float:left;padding:15px;position:relative;margin:32px 10px 10px 0;color:#0073AA;font-size:14px;line-height:1.5}
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dipakcg
3
  Tags: minify, compress, combine, html, css, javascript, js, performance, load, speed, time, yslow, pagespeed
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
5
  Requires at least: 3.5
6
- Tested up to: 4.6
7
- Stable tag: 1.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -45,6 +45,10 @@ Pretty much, yeah.
45
  1. Admin Settings
46
 
47
  == Changelog ==
 
 
 
 
48
 
49
  = 1.3.2, May 24, 2016 =
50
  * Added Settings option (link) under Plugins page
3
  Tags: minify, compress, combine, html, css, javascript, js, performance, load, speed, time, yslow, pagespeed
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38
5
  Requires at least: 3.5
6
+ Tested up to: 4.7
7
+ Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
45
  1. Admin Settings
46
 
47
  == Changelog ==
48
+ = 1.4, October 1, 2016 =
49
+ * Fixed css conflict with WP Performance Score Booster.
50
+ * Improved Settings page.
51
+ * Added hosting recommendations (referrals).
52
 
53
  = 1.3.2, May 24, 2016 =
54
  * Added Settings option (link) under Plugins page
wp-super-minify.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Super Minify
4
  Plugin URI: https://github.com/dipakcg/wp-super-minify
5
  Description: Minifies, caches and combine inline JavaScript and CSS files to improve page load time.
6
- Version: 1.3.2
7
  Author: Dipak C. Gajjar
8
  Author URI: http://dipakgajjar.com
9
  */
@@ -13,7 +13,7 @@ if (!defined('WPSMY_PLUGIN_VERSION')) {
13
  define('WPSMY_PLUGIN_VERSION', 'wpsmy_plugin_version');
14
  }
15
  if (!defined('WPSMY_PLUGIN_VERSION_NUM')) {
16
- define('WPSMY_PLUGIN_VERSION_NUM', '1.3.2');
17
  }
18
  update_option(WPSMY_PLUGIN_VERSION, WPSMY_PLUGIN_VERSION_NUM);
19
 
@@ -21,7 +21,7 @@ update_option(WPSMY_PLUGIN_VERSION, WPSMY_PLUGIN_VERSION_NUM);
21
  add_action( 'admin_init', 'wpsmy_add_stylesheet' );
22
  function wpsmy_add_stylesheet() {
23
  // Respects SSL, Style.css is relative to the current file
24
- wp_register_style( 'wpsmy-stylesheet', plugins_url('assets/css/style.css', __FILE__) );
25
  wp_enqueue_style( 'wpsmy-stylesheet' );
26
  }
27
 
@@ -43,6 +43,20 @@ function wpsmy_settings_link($links) {
43
  $plugin = plugin_basename(__FILE__);
44
  add_filter("plugin_action_links_$plugin", 'wpsmy_settings_link' );
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  // Admin options/setting page
47
  function wpsmy_admin_options() {
48
  ?>
@@ -86,10 +100,12 @@ function wpsmy_admin_options() {
86
  <form method="post" name="options_form">
87
  <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
88
  <p>
89
- <input type="checkbox" name="<?php echo $combine_js; ?>" <?php checked( $combine_js_val == 'on',true); ?> /> &nbsp; <span class="wpsmy_settings"> Compress JavaScript </span>
 
90
  </p>
91
  <p>
92
- <input type="checkbox" name="<?php echo $combine_css; ?>" <?php checked( $combine_css_val == 'on',true); ?> /> &nbsp; <span class="wpsmy_settings"> Compress CSS </span>
 
93
  </p>
94
  <p><input type="submit" value="<?php esc_attr_e('Save Changes') ?>" class="button button-primary" name="submit" />
95
  </p>
@@ -112,12 +128,20 @@ function wpsmy_admin_options() {
112
  </tr>
113
  </table>
114
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  <?php
116
- echo '<hr style="margin-bottom: 2em;" />';
117
- echo '<table cellspacing="0" cellpadding="0" class="news_section"> <tr>';
118
- echo '<td width="50%" valign="top">';
119
- echo '<h1>News & Updates from Dipak C. Gajjar</h1>';
120
- echo '<div class="rss-widget">';
121
  /* wp_widget_rss_output(array(
122
  'url' => 'https://dipakgajjar.com/category/news/feed/?refresh='.rand(10,100).'', // feed URL
123
  'title' => 'News & Updates from Dipak C. Gajjar',
@@ -126,15 +150,24 @@ function wpsmy_admin_options() {
126
  'show_author' => 0,
127
  'show_date' => 0
128
  )); */
129
- /* Load the news content from Dropbox url */
130
- $news_content = wp_remote_fopen("https://dl.dropboxusercontent.com/u/21966579/news-and-updates.html");
131
  echo $news_content;
132
- echo '</div> <td width="5%"> &nbsp </td>';
133
- echo '</td> <td valign="top">';
134
  ?>
135
- <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/dipakcgajjar" data-widget-id="547661367281729536">Tweets by @dipakcgajjar</a>
136
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
137
- <?php echo '</td> </tr> </table>';
 
 
 
 
 
 
 
 
 
 
 
138
  }
139
 
140
  // Make the default value of enable javascript and enable CSS to true on plugin activation
3
  Plugin Name: WP Super Minify
4
  Plugin URI: https://github.com/dipakcg/wp-super-minify
5
  Description: Minifies, caches and combine inline JavaScript and CSS files to improve page load time.
6
+ Version: 1.4
7
  Author: Dipak C. Gajjar
8
  Author URI: http://dipakgajjar.com
9
  */
13
  define('WPSMY_PLUGIN_VERSION', 'wpsmy_plugin_version');
14
  }
15
  if (!defined('WPSMY_PLUGIN_VERSION_NUM')) {
16
+ define('WPSMY_PLUGIN_VERSION_NUM', '1.4');
17
  }
18
  update_option(WPSMY_PLUGIN_VERSION, WPSMY_PLUGIN_VERSION_NUM);
19
 
21
  add_action( 'admin_init', 'wpsmy_add_stylesheet' );
22
  function wpsmy_add_stylesheet() {
23
  // Respects SSL, Style.css is relative to the current file
24
+ wp_register_style( 'wpsmy-stylesheet', plugins_url('assets/css/style.min.css', __FILE__) );
25
  wp_enqueue_style( 'wpsmy-stylesheet' );
26
  }
27
 
43
  $plugin = plugin_basename(__FILE__);
44
  add_filter("plugin_action_links_$plugin", 'wpsmy_settings_link' );
45
 
46
+ // Adding WordPress plugin meta links
47
+ function wpsmy_plugin_meta_links( $links, $file ) {
48
+ $plugin = plugin_basename(__FILE__);
49
+ // Create link
50
+ if ( $file == $plugin ) {
51
+ return array_merge(
52
+ $links,
53
+ array( '<a href="https://dipakgajjar.com/products/wordpress-speed-optimisation-service?utm_source=plugins%20page&utm_medium=text%20link&utm_campaign=wordplress%20plugins" style="color:#FF0000;" target="_blank">Order WordPress Speed Optimisation Service</a>' )
54
+ );
55
+ }
56
+ return $links;
57
+ }
58
+ add_filter( 'plugin_row_meta', 'wpsmy_plugin_meta_links', 10, 2 );
59
+
60
  // Admin options/setting page
61
  function wpsmy_admin_options() {
62
  ?>
100
  <form method="post" name="options_form">
101
  <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
102
  <p>
103
+ <input type="checkbox" name="<?php echo $combine_js; ?>" id="<?php echo $combine_js; ?>" <?php checked( $combine_js_val == 'on',true); ?> />
104
+ <label for="<?php echo $combine_js; ?>" class="wpsmy_settings" style="display: inline;"> <?php _e('Compress JavaScript'); ?> </label>
105
  </p>
106
  <p>
107
+ <input type="checkbox" name="<?php echo $combine_css; ?>" id="<?php echo $combine_css; ?>" <?php checked( $combine_css_val == 'on',true); ?> />
108
+ <label for="<?php echo $combine_css; ?>" class="wpsmy_settings" style="display: inline;"> <?php _e('Compress CSS'); ?> </label>
109
  </p>
110
  <p><input type="submit" value="<?php esc_attr_e('Save Changes') ?>" class="button button-primary" name="submit" />
111
  </p>
128
  </tr>
129
  </table>
130
  </div>
131
+ <hr style="margin: 2em 0 1.5em 0;" />
132
+ <?php
133
+ // Promo - Ad contents
134
+ $promo_content = wp_remote_fopen("https://cdn.rawgit.com/dipakcg/wp-performance-score-booster/master/promos.html");
135
+ echo $promo_content;
136
+ ?>
137
+ <?php // Bottom - News and Referrals part ?>
138
+ <hr style="margin: 1.5em 0 2em 0;" />
139
+ <table cellspacing="0" cellpadding="0" class="wpsmy_news_section"> <tr>
140
+ <td width="49%" valign="top">
141
+ <h2><strong>News & Updates from Dipak C. Gajjar</strong></h2>
142
+ <hr />
143
+ <div class="wpsmy_rss-widget">
144
  <?php
 
 
 
 
 
145
  /* wp_widget_rss_output(array(
146
  'url' => 'https://dipakgajjar.com/category/news/feed/?refresh='.rand(10,100).'', // feed URL
147
  'title' => 'News & Updates from Dipak C. Gajjar',
150
  'show_author' => 0,
151
  'show_date' => 0
152
  )); */
153
+ /* Load the news content from Github */
154
+ $news_content = wp_remote_fopen("https://cdn.rawgit.com/dipakcg/wp-performance-score-booster/master/news-and-updates.html");
155
  echo $news_content;
 
 
156
  ?>
157
+ </div> </td>
158
+ <!-- Referrals -->
159
+ <td width="1%"> &nbsp </td>
160
+ <td width="50%" valign="top">
161
+ <div class="wpsmy_referrals">
162
+ Scalable and affordable SSD VPS at DigitalOcean starting from $5 per month. <br /> <br />
163
+ <a href="https://www.digitalocean.com" target="_blank" onClick="this.href='https://m.do.co/c/f90a24a27dcc'" ><img src="https://dl.dropboxusercontent.com/u/21966579/do-ssd-virtual-servers-250x250.jpg" alt="Digital Ocean SSD VPS" width="250" height="250" border="0"></a>
164
+ </div>
165
+ <div class="wpsmy_referrals">
166
+ Great managed WordPress hosting at SiteGround starting from $3.95 per month. <br /> <br />
167
+ <a href="http://www.siteground.com" target="_blank" onClick="this.href='https://www.siteground.com/wordpress-hosting.htm?afbannercode=783dd6fb6802e26ada6cf20768622fda'" ><img src="https://ua.siteground.com/img/banners/general/best-pack/250x250.gif" alt="WordPress Hosting" width="250" height="250" border="0"></a>
168
+ </div>
169
+ <?php echo '</td> </tr> </table>'; ?>
170
+ <?php
171
  }
172
 
173
  // Make the default value of enable javascript and enable CSS to true on plugin activation