Version Description
This version has improved UI, minified CSS and fixes minor bugs.
Download this release
Release Info
Developer | dipakcg |
Plugin | WP Performance Score Booster |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.6
- assets/css/style.css +63 -8
- assets/css/style.min.css +1 -0
- index.php +2 -0
- readme.txt +9 -4
- wp-performance-score-booster.php +82 -28
assets/css/style.css
CHANGED
@@ -1,28 +1,31 @@
|
|
1 |
.wppsb_settings {
|
2 |
-
font-size:
|
3 |
}
|
4 |
.wppsb_admin_dev_sidebar_div {
|
5 |
width:300px;
|
6 |
-
height:
|
7 |
-webkit-border-radius: 10px;
|
8 |
-moz-border-radius: 10px;
|
9 |
-
border-radius:
|
|
|
10 |
background-color:#FFFFFF;
|
11 |
-
padding: 10px
|
12 |
}
|
13 |
.wppsb_admin_dev_sidebar {
|
14 |
-
font-size:
|
15 |
-
margin: 0 20px
|
16 |
display: block;
|
17 |
}
|
18 |
.wppsb_admin_dev_sidebar a{
|
19 |
text-decoration: none;
|
20 |
}
|
21 |
.wppsb_admin_dev_sidebar img{
|
22 |
-
padding:
|
|
|
23 |
}
|
24 |
.news_section {
|
25 |
-
border-radius:
|
|
|
26 |
background-color: #FFFFFF;
|
27 |
padding: 20px 20px 20px 20px;
|
28 |
width: 98%;
|
@@ -34,4 +37,56 @@ a.rsswidget {
|
|
34 |
}
|
35 |
.rss-widget ul li {
|
36 |
margin-bottom: 25px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
1 |
.wppsb_settings {
|
2 |
+
font-size: 17px !important;
|
3 |
}
|
4 |
.wppsb_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 |
.wppsb_admin_dev_sidebar {
|
15 |
+
font-size: 14px;
|
16 |
+
margin: 0 20px 10px 0;
|
17 |
display: block;
|
18 |
}
|
19 |
.wppsb_admin_dev_sidebar a{
|
20 |
text-decoration: none;
|
21 |
}
|
22 |
.wppsb_admin_dev_sidebar img{
|
23 |
+
padding: 0 5px 0 0;
|
24 |
+
vertical-align: middle;
|
25 |
}
|
26 |
.news_section {
|
27 |
+
border-radius: 20px 20px 20px 0;
|
28 |
+
border: 1px solid #FF9900;
|
29 |
background-color: #FFFFFF;
|
30 |
padding: 20px 20px 20px 20px;
|
31 |
width: 98%;
|
37 |
}
|
38 |
.rss-widget ul li {
|
39 |
margin-bottom: 25px !important;
|
40 |
+
}
|
41 |
+
|
42 |
+
td.onoff {
|
43 |
+
width: 75px;
|
44 |
+
height: 50px;
|
45 |
+
}
|
46 |
+
/* ========= */
|
47 |
+
|
48 |
+
.onoffswitch {
|
49 |
+
position: relative; width: 70px;
|
50 |
+
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
|
51 |
+
}
|
52 |
+
.onoffswitch-checkbox {
|
53 |
+
display: none !important;
|
54 |
+
}
|
55 |
+
.onoffswitch-label {
|
56 |
+
display: block; overflow: hidden; cursor: pointer;
|
57 |
+
border: 2px solid #999999; border-radius: 20px;
|
58 |
+
}
|
59 |
+
.onoffswitch-inner {
|
60 |
+
display: block; width: 200%; margin-left: -100%;
|
61 |
+
transition: margin 0.3s ease-in 0s;
|
62 |
+
}
|
63 |
+
.onoffswitch-inner:before, .onoffswitch-inner:after {
|
64 |
+
display: block; float: left; width: 50%; padding: 0; /* height: 30px; line-height: 30px; */ height: 22px; line-height: 22px;
|
65 |
+
font-size: 15px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
|
66 |
+
box-sizing: border-box;
|
67 |
+
}
|
68 |
+
.onoffswitch-inner:before {
|
69 |
+
content: "ON";
|
70 |
+
padding-left: 10px;
|
71 |
+
background-color: #5CA21E; color: #FFFFFF;
|
72 |
+
}
|
73 |
+
.onoffswitch-inner:after {
|
74 |
+
content: "OFF";
|
75 |
+
padding-right: 10px;
|
76 |
+
background-color: #EEEEEE; color: #999999;
|
77 |
+
text-align: right;
|
78 |
+
}
|
79 |
+
.onoffswitch-switch {
|
80 |
+
display: block; /* width: 18px; */ width: 11px; margin: 6px;
|
81 |
+
background: #FFFFFF;
|
82 |
+
position: absolute; top: 0; bottom: 0;
|
83 |
+
right: 43px;
|
84 |
+
border: 2px solid #999999; border-radius: 20px;
|
85 |
+
transition: all 0.3s ease-in 0s;
|
86 |
+
}
|
87 |
+
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
|
88 |
+
margin-left: 0;
|
89 |
+
}
|
90 |
+
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
|
91 |
+
right: 0px;
|
92 |
}
|
assets/css/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wppsb_settings{font-size:17px !important}.wppsb_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}.wppsb_admin_dev_sidebar{font-size:14px;margin:0 20px 10px 0;display:block}.wppsb_admin_dev_sidebar a{text-decoration:none}.wppsb_admin_dev_sidebar img{padding:0 5px 0 0;vertical-align:middle}.news_section{border-radius:20px 20px 20px 0;border:1px solid #FF9900;background-color:#FFFFFF;padding:20px 20px 20px 20px;width:98%}a.rsswidget{font-size:16px !important;text-decoration:none !important}.rss-widget ul li{margin-bottom:25px !important}td.onoff{width:75px;height:50px}.onoffswitch{position:relative;width:70px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.onoffswitch-checkbox{display:none !important}.onoffswitch-label{display:block;overflow:hidden;cursor:pointer;border:2px solid #999999;border-radius:20px}.onoffswitch-inner{display:block;width:200%;margin-left:-100%;transition:margin 0.3s ease-in 0s}.onoffswitch-inner:before,.onoffswitch-inner:after{display:block;float:left;width:50%;padding:0;height:22px;line-height:22px;font-size:15px;color:white;font-family:Trebuchet, Arial, sans-serif;font-weight:bold;box-sizing:border-box}.onoffswitch-inner:before{content:"ON";padding-left:10px;background-color:#5CA21E;color:#FFFFFF}.onoffswitch-inner:after{content:"OFF";padding-right:10px;background-color:#EEEEEE;color:#999999;text-align:right}.onoffswitch-switch{display:block;width:11px;margin:6px;background:#FFFFFF;position:absolute;top:0;bottom:0;right:43px;border:2px solid #999999;border-radius:20px;transition:all 0.3s ease-in 0s}.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner{margin-left:0}.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch{right:0px}
|
index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// You shouldn't be here.
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dipakcg
|
|
3 |
Tags: performance, speed, time, query, strings, gzip, compression, caching, boost, pingdom, gtmetrix, yslow, pagespeed, enqueue, scripts
|
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 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -47,6 +47,11 @@ Pretty much, yeah.
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
= 1.5, Feb 02, 2016 =
|
51 |
* Fixed conflict with Divi and Divi Builder
|
52 |
* Moved Options / Settings under *'Settings'* menu
|
@@ -84,5 +89,5 @@ Pretty much, yeah.
|
|
84 |
* Initial release
|
85 |
|
86 |
== Upgrade Notice ==
|
87 |
-
= 1.
|
88 |
-
This version
|
3 |
Tags: performance, speed, time, query, strings, gzip, compression, caching, boost, pingdom, gtmetrix, yslow, pagespeed, enqueue, scripts
|
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.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 1.6, July 26, 2016 =
|
51 |
+
* Improved UI
|
52 |
+
* Fixed minor bugs
|
53 |
+
* Minified CSS
|
54 |
+
|
55 |
= 1.5, Feb 02, 2016 =
|
56 |
* Fixed conflict with Divi and Divi Builder
|
57 |
* Moved Options / Settings under *'Settings'* menu
|
89 |
* Initial release
|
90 |
|
91 |
== Upgrade Notice ==
|
92 |
+
= 1.6 =
|
93 |
+
This version has improved UI, minified CSS and fixes minor bugs.
|
wp-performance-score-booster.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Performance Score Booster
|
4 |
Plugin URI: https://github.com/dipakcg/wp-performance-score-booster
|
5 |
Description: Speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
|
6 |
-
Version: 1.
|
7 |
Author: Dipak C. Gajjar
|
8 |
Author URI: https://dipakgajjar.com
|
9 |
Text Domain: wp-performance-score-booster
|
@@ -14,7 +14,7 @@ if (!defined('WPPSB_PLUGIN_VERSION')) {
|
|
14 |
define('WPPSB_PLUGIN_VERSION', 'wppsb_plugin_version');
|
15 |
}
|
16 |
if (!defined('WPPSB_PLUGIN_VERSION_NUM')) {
|
17 |
-
define('WPPSB_PLUGIN_VERSION_NUM', '1.
|
18 |
}
|
19 |
update_option(WPPSB_PLUGIN_VERSION, WPPSB_PLUGIN_VERSION_NUM);
|
20 |
|
@@ -37,7 +37,7 @@ add_action( 'init', 'wppsb_load_plugin_textdomain' );
|
|
37 |
add_action( 'admin_init', 'wppsb_add_stylesheet' );
|
38 |
function wppsb_add_stylesheet() {
|
39 |
// Respects SSL, Style.css is relative to the current file
|
40 |
-
wp_register_style( 'wppsb-stylesheet', plugins_url('assets/css/style.css', __FILE__) );
|
41 |
wp_enqueue_style( 'wppsb-stylesheet' );
|
42 |
}
|
43 |
|
@@ -72,7 +72,7 @@ EOD;
|
|
72 |
return $gzip_htaccess_content . $rules;
|
73 |
}
|
74 |
|
75 |
-
// Enable expire caching
|
76 |
function wppsb_expire_caching_filter( $rules = '' ) {
|
77 |
$expire_cache_htaccess_content = <<<EOD
|
78 |
\n## BEGIN Expires Caching (Leverage Browser Caching) ##
|
@@ -160,27 +160,71 @@ function wppsb_admin_options() {
|
|
160 |
|
161 |
// Put the settings updated message on the screen
|
162 |
?>
|
163 |
-
<div class="updated"><p><strong><?php _e('Settings Saved
|
164 |
<?php
|
165 |
}
|
166 |
?>
|
167 |
<form method="post" name="options_form">
|
168 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
169 |
-
<
|
170 |
-
|
171 |
-
|
172 |
-
<
|
173 |
-
<?php
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
<?php }
|
176 |
-
else { ?>
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
<?php } ?>
|
179 |
-
</
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
</form>
|
185 |
</td>
|
186 |
<td style="text-align: left;">
|
@@ -189,7 +233,7 @@ function wppsb_admin_options() {
|
|
189 |
<br />
|
190 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-support-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38" target="_blank"> <?php _e('Donate and support this plugin', 'wp-performance-score-booster'); ?> </a> </span>
|
191 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-rate-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/view/plugin-reviews/wp-performance-score-booster" target="_blank"> <?php _e('Rate this plugin on WordPress.org', 'wp-performance-score-booster'); ?> </a> </span>
|
192 |
-
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-wordpress-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/plugin/wp-performance-score-booster" target="_blank"> <?php _e('Get support on
|
193 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-github-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://github.com/dipakcg/wp-performance-score-booster" target="_blank"> <?php _e('Contribute development on GitHub', 'wp-performance-score-booster'); ?> </a> </span>
|
194 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-other-plugins-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://profiles.wordpress.org/dipakcg#content-plugins" target="_blank"> <?php _e('Get my other plugins', 'wp-performance-score-booster'); ?> </a> </span>
|
195 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-twitter-16x16.png' , __FILE__ ) . '" > '; ?>Follow me on Twitter: <a href="https://twitter.com/dipakcgajjar" target="_blank">@dipakcgajjar</a> </span>
|
@@ -200,13 +244,21 @@ function wppsb_admin_options() {
|
|
200 |
</tr>
|
201 |
</table>
|
202 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
<?php
|
204 |
-
echo '<hr style="margin-bottom: 2em;" />';
|
205 |
-
echo '<table cellspacing="0" cellpadding="0" class="news_section"> <tr>';
|
206 |
-
echo '<td width="50%" valign="top">';
|
207 |
-
echo '<h2><strong>News & Updates from Dipak C. Gajjar</strong></h2>';
|
208 |
-
echo '<hr />';
|
209 |
-
echo '<div class="rss-widget">';
|
210 |
/* wp_widget_rss_output(array(
|
211 |
'url' => 'https://dipakgajjar.com/category/news/feed/?refresh='.rand(10,100).'', // feed URL
|
212 |
'title' => 'News & Updates from Dipak C. Gajjar',
|
@@ -218,9 +270,11 @@ function wppsb_admin_options() {
|
|
218 |
/* Load the news content from Dropbox url */
|
219 |
$news_content = wp_remote_fopen("https://dl.dropboxusercontent.com/u/21966579/news-and-updates.html");
|
220 |
echo $news_content;
|
221 |
-
|
222 |
-
|
223 |
-
|
|
|
|
|
224 |
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/dipakcgajjar" data-widget-id="547661367281729536">Tweets by @dipakcgajjar</a>
|
225 |
<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>
|
226 |
<?php echo '</td> </tr> </table>';
|
3 |
Plugin Name: WP Performance Score Booster
|
4 |
Plugin URI: https://github.com/dipakcg/wp-performance-score-booster
|
5 |
Description: Speed-up page load times and improve website scores in services like PageSpeed, YSlow, Pingdom and GTmetrix.
|
6 |
+
Version: 1.6
|
7 |
Author: Dipak C. Gajjar
|
8 |
Author URI: https://dipakgajjar.com
|
9 |
Text Domain: wp-performance-score-booster
|
14 |
define('WPPSB_PLUGIN_VERSION', 'wppsb_plugin_version');
|
15 |
}
|
16 |
if (!defined('WPPSB_PLUGIN_VERSION_NUM')) {
|
17 |
+
define('WPPSB_PLUGIN_VERSION_NUM', '1.6');
|
18 |
}
|
19 |
update_option(WPPSB_PLUGIN_VERSION, WPPSB_PLUGIN_VERSION_NUM);
|
20 |
|
37 |
add_action( 'admin_init', 'wppsb_add_stylesheet' );
|
38 |
function wppsb_add_stylesheet() {
|
39 |
// Respects SSL, Style.css is relative to the current file
|
40 |
+
wp_register_style( 'wppsb-stylesheet', plugins_url('assets/css/style.min.css', __FILE__) );
|
41 |
wp_enqueue_style( 'wppsb-stylesheet' );
|
42 |
}
|
43 |
|
72 |
return $gzip_htaccess_content . $rules;
|
73 |
}
|
74 |
|
75 |
+
// Enable expire caching (Leverage browser caching)
|
76 |
function wppsb_expire_caching_filter( $rules = '' ) {
|
77 |
$expire_cache_htaccess_content = <<<EOD
|
78 |
\n## BEGIN Expires Caching (Leverage Browser Caching) ##
|
160 |
|
161 |
// Put the settings updated message on the screen
|
162 |
?>
|
163 |
+
<div class="updated"><p><strong><?php _e('<strong>Settings Saved.</strong>', 'wp-performance-score-booster'); ?></strong></p></div>
|
164 |
<?php
|
165 |
}
|
166 |
?>
|
167 |
<form method="post" name="options_form">
|
168 |
<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
|
169 |
+
<table>
|
170 |
+
<!-- Remove Query String -->
|
171 |
+
<tr> <td class="onoff">
|
172 |
+
<div class="onoffswitch">
|
173 |
+
<input type="checkbox" name="<?php echo $remove_query_strings; ?>" <?php checked( $remove_query_strings_val == 'on',true); ?> class="onoffswitch-checkbox" id="<?php echo $remove_query_strings; ?>" />
|
174 |
+
<label class="onoffswitch-label" for="<?php echo $remove_query_strings; ?>">
|
175 |
+
<span class="onoffswitch-inner"></span>
|
176 |
+
<span class="onoffswitch-switch"></span>
|
177 |
+
</label>
|
178 |
+
</div>
|
179 |
+
</td> <td>
|
180 |
+
<span class="wppsb_settings" style="display: inline;"> <?php _e('Remove query strings from static content', 'wp-performance-score-booster'); ?> </span>
|
181 |
+
</td> </tr>
|
182 |
+
|
183 |
+
<!-- Enable GZIP -->
|
184 |
+
<tr>
|
185 |
+
<?php if (function_exists('ob_gzhandler') || ini_get('zlib.output_compression')) { // if web server supports GZIP ?>
|
186 |
+
<td class="onoff">
|
187 |
+
<div class="onoffswitch">
|
188 |
+
<input type="checkbox" name="<?php echo $enable_gzip; ?>" <?php checked( $enable_gzip_val == 'on',true); ?> class="onoffswitch-checkbox" id="<?php echo $enable_gzip; ?>" />
|
189 |
+
<label class="onoffswitch-label" for="<?php echo $enable_gzip; ?>">
|
190 |
+
<span class="onoffswitch-inner"></span>
|
191 |
+
<span class="onoffswitch-switch"></span>
|
192 |
+
</label>
|
193 |
+
</div>
|
194 |
+
</td> <td>
|
195 |
+
<span class="wppsb_settings"> <?php _e('Enable GZIP compression <i>(compress text, html, javascript, css, xml and so on)</i>', 'wp-performance-score-booster'); ?> </span>
|
196 |
+
</td>
|
197 |
<?php }
|
198 |
+
else { // if web server doesn't support GZIP ?>
|
199 |
+
<td class="onoff">
|
200 |
+
<div class="onoffswitch">
|
201 |
+
<input type="checkbox" name="<?php echo $enable_gzip; ?>" disabled="true" <?php checked( $enable_gzip_val == 'on',true); ?> class="onoffswitch-checkbox" id="<?php echo $enable_gzip; ?>" />
|
202 |
+
<label class="onoffswitch-label" for="<?php echo $enable_gzip; ?>">
|
203 |
+
<span class="onoffswitch-inner"></span>
|
204 |
+
<span class="onoffswitch-switch"></span>
|
205 |
+
</label>
|
206 |
+
</div>
|
207 |
+
</td> <td>
|
208 |
+
<span class="wppsb_settings"> <?php _e('Enable GZIP compression <i>(compress text, html, javascript, css, xml and so on)</i>', 'wp-performance-score-booster'); ?> </span> <br />
|
209 |
+
<span class="wppsb_settings" style="color:RED; font-style: italic;"> <?php _e('Your web server does not support GZIP compression. Contact your hosting provider to enable it.', 'wp-performance-score-booster'); ?> </span>
|
210 |
+
</td>
|
211 |
<?php } ?>
|
212 |
+
</tr>
|
213 |
+
|
214 |
+
<!-- Leverage Browser Caching -->
|
215 |
+
<tr> <td class="onoff">
|
216 |
+
<div class="onoffswitch">
|
217 |
+
<input type="checkbox" name="<?php echo $expire_caching; ?>" <?php checked( $expire_caching_val == 'on',true); ?> class="onoffswitch-checkbox" id="<?php echo $expire_caching; ?>" />
|
218 |
+
<label class="onoffswitch-label" for="<?php echo $expire_caching; ?>">
|
219 |
+
<span class="onoffswitch-inner"></span>
|
220 |
+
<span class="onoffswitch-switch"></span>
|
221 |
+
</label>
|
222 |
+
</div>
|
223 |
+
</td> <td>
|
224 |
+
<span class="wppsb_settings"> <?php _e('Leverage Browser Caching <i>(set expire caching)</i>', 'wp-performance-score-booster'); ?> </span>
|
225 |
+
</td> </tr>
|
226 |
+
</table>
|
227 |
+
<p><input style="font-size: 15px; color: white; font-weight: bold;" type="submit" value="<?php esc_attr_e('Save Changes', 'wp-performance-score-booster'); ?>" class="button button-primary" name="submit" /></p>
|
228 |
</form>
|
229 |
</td>
|
230 |
<td style="text-align: left;">
|
233 |
<br />
|
234 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-support-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S8BRPLWLNQ38" target="_blank"> <?php _e('Donate and support this plugin', 'wp-performance-score-booster'); ?> </a> </span>
|
235 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-rate-this-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/view/plugin-reviews/wp-performance-score-booster" target="_blank"> <?php _e('Rate this plugin on WordPress.org', 'wp-performance-score-booster'); ?> </a> </span>
|
236 |
+
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-wordpress-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://wordpress.org/support/plugin/wp-performance-score-booster" target="_blank"> <?php _e('Get support on WordPress.org', 'wp-performance-score-booster'); ?> </a> </span>
|
237 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-github-16x16.png' , __FILE__ ) . '" > '; ?> <a href="https://github.com/dipakcg/wp-performance-score-booster" target="_blank"> <?php _e('Contribute development on GitHub', 'wp-performance-score-booster'); ?> </a> </span>
|
238 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-other-plugins-16x16.png' , __FILE__ ) . '" > '; ?> <a href="http://profiles.wordpress.org/dipakcg#content-plugins" target="_blank"> <?php _e('Get my other plugins', 'wp-performance-score-booster'); ?> </a> </span>
|
239 |
<span class="wppsb_admin_dev_sidebar"> <?php echo '<img src="' . plugins_url( 'assets/images/wppsb-twitter-16x16.png' , __FILE__ ) . '" > '; ?>Follow me on Twitter: <a href="https://twitter.com/dipakcgajjar" target="_blank">@dipakcgajjar</a> </span>
|
244 |
</tr>
|
245 |
</table>
|
246 |
</div>
|
247 |
+
<hr style="margin: 2em 0 1.5em 0;" />
|
248 |
+
<?php
|
249 |
+
// Promo - Ad contents
|
250 |
+
$promo_content = wp_remote_fopen("https://dl.dropboxusercontent.com/u/21966579/promos.html");
|
251 |
+
echo $promo_content;
|
252 |
+
?>
|
253 |
+
<?php // Bottom - News and Tweets part ?>
|
254 |
+
<hr style="margin: 1.5em 0 2em 0;" />
|
255 |
+
<table cellspacing="0" cellpadding="0" class="news_section"> <tr>
|
256 |
+
<!-- News and Updates -->
|
257 |
+
<td width="50%" valign="top">
|
258 |
+
<h2><strong>News & Updates from Dipak C. Gajjar</strong></h2>
|
259 |
+
<hr />
|
260 |
+
<div class="rss-widget">
|
261 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
/* wp_widget_rss_output(array(
|
263 |
'url' => 'https://dipakgajjar.com/category/news/feed/?refresh='.rand(10,100).'', // feed URL
|
264 |
'title' => 'News & Updates from Dipak C. Gajjar',
|
270 |
/* Load the news content from Dropbox url */
|
271 |
$news_content = wp_remote_fopen("https://dl.dropboxusercontent.com/u/21966579/news-and-updates.html");
|
272 |
echo $news_content;
|
273 |
+
?>
|
274 |
+
</div> </td>
|
275 |
+
<!-- Tweets -->
|
276 |
+
<td width="5%">   </td>
|
277 |
+
<td valign="top">
|
278 |
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/dipakcgajjar" data-widget-id="547661367281729536">Tweets by @dipakcgajjar</a>
|
279 |
<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>
|
280 |
<?php echo '</td> </tr> </table>';
|