WP Super Minify - Version 1.3.2

Version Description

Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

Files changed (3) hide show
  1. assets/css/style.css +5 -2
  2. readme.txt +7 -2
  3. wp-super-minify.php +28 -13
assets/css/style.css CHANGED
@@ -3,12 +3,12 @@
3
  }
4
  .wpsmy_admin_dev_sidebar_div {
5
  width:300px;
6
- height:300px;
7
  -webkit-border-radius: 10px;
8
  -moz-border-radius: 10px;
9
  border-radius: 10px;
10
  background-color:#FFFFFF;
11
- padding: 20px 0 0 30px;
12
  }
13
  .wpsmy_admin_dev_sidebar {
14
  font-size: 13px;
@@ -18,6 +18,9 @@
18
  .wpsmy_admin_dev_sidebar a{
19
  text-decoration: none;
20
  }
 
 
 
21
  .news_section {
22
  border-radius: 10px;
23
  background-color: #FFFFFF;
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;
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;
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.5
7
- Stable tag: 1.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -46,6 +46,11 @@ Pretty much, yeah.
46
 
47
  == Changelog ==
48
 
 
 
 
 
 
49
  = 1.3.1, March 17, 2015 =
50
  * Reverted support for combine external javascript and css files into a single file due to conflict with other plugins
51
 
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
 
46
 
47
  == Changelog ==
48
 
49
+ = 1.3.2, May 24, 2016 =
50
+ * Added Settings option (link) under Plugins page
51
+ * Moved plugin options (settings) from sidebar to under Settings
52
+ * Updated settings page
53
+
54
  = 1.3.1, March 17, 2015 =
55
  * Reverted support for combine external javascript and css files into a single file due to conflict with other plugins
56
 
wp-super-minify.php CHANGED
@@ -3,9 +3,9 @@
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.1
7
  Author: Dipak C. Gajjar
8
- Author URI: https://dipakgajjar.com
9
  */
10
 
11
  // Define plugin version for future releases
@@ -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.1');
17
  }
18
  update_option(WPSMY_PLUGIN_VERSION, WPSMY_PLUGIN_VERSION_NUM);
19
 
@@ -28,10 +28,21 @@ function wpsmy_add_stylesheet() {
28
  // Register admin menu
29
  add_action( 'admin_menu', 'wpsmy_add_admin_menu' );
30
  function wpsmy_add_admin_menu() {
 
31
  // add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function);
32
- add_menu_page( 'WP Super Minify Settings', 'WP Super Minify', 'manage_options', 'wp-super-minify', 'wpsmy_admin_options', plugins_url('assets/images/wpsmy-icon-24x24.png', __FILE__) );
33
  }
34
 
 
 
 
 
 
 
 
 
 
 
35
  // Admin options/setting page
36
  function wpsmy_admin_options() {
37
  ?>
@@ -86,10 +97,11 @@ function wpsmy_admin_options() {
86
  </td>
87
  <td style="text-align: left;">
88
  <div class="wpsmy_admin_dev_sidebar_div">
89
- <img src="//www.gravatar.com/avatar/38b380cf488d8f8c4007cf2015dc16ac.jpg" width="100px" height="100px" /> <br />
90
- <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-support-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38" target="_blank"> Support this plugin and donate </a> </span>
 
91
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-rate-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/view/plugin-reviews/wp-super-minify" target="_blank"> Rate this plugin on WordPress.org </a> </span>
92
- <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-wordpress-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/plugin/wp-super-minify" target="_blank"> Get support on on WordPress.org </a> </span>
93
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-github-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://github.com/dipakcg/wp-super-minify" target="_blank"> Contribute development on GitHub </a> </span>
94
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-other-plugins-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://profiles.wordpress.org/dipakcg#content-plugins" target="_blank"> Get my other plugins </a> </span>
95
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-twitter-16x16.png' , __FILE__ ) . '" > '; ?>Follow me on Twitter: <a href="https://twitter.com/dipakcgajjar" target="_blank">@dipakcgajjar</a> </span>
@@ -106,18 +118,21 @@ function wpsmy_admin_options() {
106
  echo '<td width="50%" valign="top">';
107
  echo '<h1>News & Updates from Dipak C. Gajjar</h1>';
108
  echo '<div class="rss-widget">';
109
- wp_widget_rss_output(array(
110
  'url' => 'https://dipakgajjar.com/category/news/feed/?refresh='.rand(10,100).'', // feed URL
111
  'title' => 'News & Updates from Dipak C. Gajjar',
112
  'items' => 3, // nubmer of posts to display
113
  'show_summary' => 1,
114
  'show_author' => 0,
115
  'show_date' => 0
116
- ));
117
- echo '</div> <td width="5%"> &nbsp </td>';
118
- echo '</td> <td valign="top">';
119
- ?>
120
- <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/dipakcgajjar" data-widget-id="547661367281729536">Tweets by @dipakcgajjar</a>
 
 
 
121
  <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>
122
  <?php echo '</td> </tr> </table>';
123
  }
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
  */
10
 
11
  // Define plugin version for future releases
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
 
28
  // Register admin menu
29
  add_action( 'admin_menu', 'wpsmy_add_admin_menu' );
30
  function wpsmy_add_admin_menu() {
31
+ // add_menu_page( 'WP Super Minify Settings', 'WP Super Minify', 'manage_options', 'wp-super-minify', 'wpsmy_admin_options', plugins_url('assets/images/wpsmy-icon-24x24.png', __FILE__) );
32
  // add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function);
33
+ add_options_page( 'WP Super Minify', 'WP Super Minify', 'manage_options', 'wp-super-minify', 'wpsmy_admin_options' );
34
  }
35
 
36
+ // Add settings link on plugin page
37
+ function wpsmy_settings_link($links) {
38
+ // $settings_link = '<a href="admin.php?page=wp-performance-score-booster">Settings</a>';
39
+ $settings_link = '<a href="options-general.php?page=wp-super-minify">Settings</a>';
40
+ array_unshift($links, $settings_link);
41
+ return $links;
42
+ }
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
  ?>
97
  </td>
98
  <td style="text-align: left;">
99
  <div class="wpsmy_admin_dev_sidebar_div">
100
+ <!-- <img src="//www.gravatar.com/avatar/38b380cf488d8f8c4007cf2015dc16ac.jpg" width="100px" height="100px" /> -->
101
+ <br />
102
+ <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-support-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38" target="_blank"> Donate and support this plugin </a> </span>
103
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-rate-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/view/plugin-reviews/wp-super-minify" target="_blank"> Rate this plugin on WordPress.org </a> </span>
104
+ <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-wordpress-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/plugin/wp-super-minify" target="_blank"> Get support on WordPress.org </a> </span>
105
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-github-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://github.com/dipakcg/wp-super-minify" target="_blank"> Contribute development on GitHub </a> </span>
106
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-other-plugins-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://profiles.wordpress.org/dipakcg#content-plugins" target="_blank"> Get my other plugins </a> </span>
107
  <span class="wpsmy_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wpsmy-twitter-16x16.png' , __FILE__ ) . '" > '; ?>Follow me on Twitter: <a href="https://twitter.com/dipakcgajjar" target="_blank">@dipakcgajjar</a> </span>
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',
124
  'items' => 3, // nubmer of posts to display
125
  'show_summary' => 1,
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
  }