Changeset 1464448
- Timestamp:
- 07/31/2016 08:47:14 PM (10 years ago)
- Location:
- wp-theme-optimizer
- Files:
-
- 5 added
- 28 edited
-
assets/banner-1544x500.jpg (added)
-
assets/banner-772x250.jpg (added)
-
assets/icon.jpg (added)
-
assets/icon.svg (added)
-
assets/screenshot-1.png (added)
-
tags/1.0.1/README.txt (modified) (2 diffs)
-
tags/1.0.1/admin/class-wpto-admin.php (modified) (2 diffs)
-
tags/1.0.1/admin/css/wpto-admin.css (modified) (7 diffs)
-
tags/1.0.1/admin/js/wpto-admin.js (modified) (1 diff)
-
tags/1.0.1/admin/partials/wpto-admin-display.php (modified) (3 diffs)
-
tags/1.0.1/admin/partials/wpto_wc.php (modified) (1 diff)
-
tags/1.0.1/includes/class-wpto-activator.php (modified) (1 diff)
-
tags/1.0.1/includes/class-wpto-deactivator.php (modified) (1 diff)
-
tags/1.0.1/includes/class-wpto-i18n.php (modified) (1 diff)
-
tags/1.0.1/includes/class-wpto-loader.php (modified) (1 diff)
-
tags/1.0.1/includes/class-wpto.php (modified) (3 diffs)
-
tags/1.0.1/public/class-wpto-public.php (modified) (3 diffs)
-
tags/1.0.1/uninstall.php (modified) (2 diffs)
-
tags/1.0.1/wpto.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-wpto-admin.php (modified) (2 diffs)
-
trunk/admin/css/wpto-admin.css (modified) (7 diffs)
-
trunk/admin/js/wpto-admin.js (modified) (1 diff)
-
trunk/admin/partials/wpto-admin-display.php (modified) (3 diffs)
-
trunk/admin/partials/wpto_wc.php (modified) (1 diff)
-
trunk/includes/class-wpto-activator.php (modified) (1 diff)
-
trunk/includes/class-wpto-deactivator.php (modified) (1 diff)
-
trunk/includes/class-wpto-i18n.php (modified) (1 diff)
-
trunk/includes/class-wpto-loader.php (modified) (1 diff)
-
trunk/includes/class-wpto.php (modified) (3 diffs)
-
trunk/public/class-wpto-public.php (modified) (3 diffs)
-
trunk/uninstall.php (modified) (2 diffs)
-
trunk/wpto.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-theme-optimizer/tags/1.0.1/README.txt
r1464219 r1464448 26 26 27 27 * Fixed a few bugs and updated the documentation to make it clearer. 28 * Reorganized tabs to make navigation easier. 29 * Added activate/deactivate all button. 30 * Changed spellings to be consistent between UK/US spellings. 28 31 29 32 = 1.0.0 = … … 44 47 * Remove Yoast SEO comments in front-end HTML 45 48 * Option to Minify front-end HTML 46 47 48 -
wp-theme-optimizer/tags/1.0.1/admin/class-wpto-admin.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Admin { … … 106 106 * 107 107 */ 108 $plugin_screen_hook_suffix = add_options_page( __('WP Theme Optimi ser', $this->plugin_name ), 'WP Theme Optimiser', 'manage_options', $this->plugin_name, array($this, 'display_plugin_setup_page')108 $plugin_screen_hook_suffix = add_options_page( __('WP Theme Optimizer', $this->plugin_name ), 'WP Theme Optimizer', 'manage_options', $this->plugin_name, array($this, 'display_plugin_setup_page') 109 109 ); 110 110 } -
wp-theme-optimizer/tags/1.0.1/admin/css/wpto-admin.css
r1464043 r1464448 8 8 9 9 .wpto-metaboxes .options-box { 10 min-height: 52px;11 margin-bottom: 1em;12 padding: 12px 15px;13 border: 1px solid #bbb;14 background-color: #f1f1f1;15 box-shadow: 0 2px 8px rgba(0, 0, 0, .1);16 position: relative;17 display: inline-block;18 width: 100%;10 min-height: 52px; 11 margin-bottom: 1em; 12 padding: 12px 15px; 13 border: 1px solid #bbb; 14 background-color: #f1f1f1; 15 box-shadow: 0 2px 8px rgba(0, 0, 0, .1); 16 position: relative; 17 display: inline-block; 18 width: 100%; 19 19 } 20 21 h2 { font-size: 1.6em;} 22 .wpto-metaboxes .options-box p { /* margin: 0.5em 0 1em; */display: table-cell; 23 vertical-align: middle;} 20 h2 { 21 font-size: 1.6em; 22 } 23 .wpto-metaboxes .options-box p { 24 /* margin: 0.5em 0 1em; */ 25 display: table-cell; 26 vertical-align: middle; 27 } 24 28 input[type=url] { 25 29 margin: 0 0 12px; 30 } 31 p.submit { 32 text-align: right; 33 margin-top: 0px; 34 } 35 .activate-label, .all { 36 float: right; 37 margin: 0px 0px 30px 0px; 38 line-height: 1.8; 39 font-weight: bold; 40 font-size: 1.2em !important; 41 } 42 .activate-label { 43 margin-right: 20px; 44 } 45 .all { 46 margin-right: 43px !important; 26 47 } 27 48 … … 56 77 width: 65%; 57 78 } 58 59 79 .options-box h3 { 60 margin: 0px 0px 10px 0px;61 font-size: 1.2em !important;62 font-weight: 600 !important;63 vertical-align: middle;64 clear:both;80 margin: 0px 0px 10px 0px; 81 font-size: 1.2em !important; 82 font-weight: 600 !important; 83 vertical-align: middle; 84 clear: both; 65 85 } 66 86 .options-box label { … … 68 88 width: 75%; 69 89 } 70 71 72 .options-checkbox { padding: 0; 73 margin:0; 74 vertical-align: bottom; 75 position: absolute; 76 top: 30%; 77 right:8%} 78 79 .options-checkbox input[type=checkbox] { 90 .options-checkbox { 91 padding: 0; 92 margin: 0; 93 vertical-align: bottom; 94 position: absolute; 95 top: 30%; 96 right: 8% 97 } 98 .tab-content input[type=checkbox] { 80 99 margin: 0px; 81 100 color: #f8f8f8; … … 83 102 line-height: 1.8; 84 103 text-align: left; 85 width: 70px;86 height: 30px;104 width: 70px; 105 height: 30px; 87 106 background-color: rgb(255, 62, 42); 88 -moz-transition: all 0.25s ease-in-out;107 -moz-transition: all 0.25s ease-in-out; 89 108 -webkit-transition: all 0.25s ease-in-out; 90 109 -o-transition: all 0.25s ease-in-out; … … 92 111 position: relative; 93 112 border: 0px; 94 border: 2px solid #ddd;95 border-radius: 20px;113 border: 2px solid #ddd; 114 border-radius: 20px; 96 115 content: none !important; 97 116 } 98 99 .options-checkbox input[type=checkbox]:checked { 117 .tab-content input[type=checkbox]:checked { 100 118 margin: 0px; 101 119 color: #f8f8f8; … … 103 121 line-height: 1.8; 104 122 text-align: left; 105 width: 70px;106 height: 30px;123 width: 70px; 124 height: 30px; 107 125 background-color: rgb(99, 225, 65); 108 -moz-transition: all 0.25s ease-in-out;126 -moz-transition: all 0.25s ease-in-out; 109 127 -webkit-transition: all 0.25s ease-in-out; 110 128 -o-transition: all 0.25s ease-in-out; … … 112 130 position: relative; 113 131 border: 0px; 114 border: 2px solid #ddd;115 border-radius: 20px;132 border: 2px solid #ddd; 133 border-radius: 20px; 116 134 content: none !important; 117 135 } 118 119 input[type="checkbox"]:checked::before { content:none !important;} 120 121 122 123 input[type="radio"]:checked::after, input[type="checkbox"]:checked::after { position: absolute; 124 content: ""; 125 height: 20px; 126 width: 20px; 127 left:38px; 128 margin:3px 5px; 129 border-radius:20px; 130 background-color: #f8f8f8; 131 -webkit-transition: all 0.25s ease-out; 132 -moz-transition: all 0.25s ease-out; 133 -ms-transition: all 0.25s ease-out; 134 -o-transition: all 0.25s ease-out; 135 transition: all 0.25s ease-out;} 136 137 input[type="radio"]::after, input[type="checkbox"]::after { position: absolute; 138 content: ""; 139 height: 20px; 140 width: 20px; 141 left:0 ; 142 margin:3px 3px; 143 border-radius:20px; 144 background-color: #f8f8f8; 145 -webkit-transition: .4s; 146 transition: .4s;} 147 148 136 input[type="checkbox"]:checked::before { 137 content: none !important; 138 } 139 input[type="radio"]:checked::after, input[type="checkbox"]:checked::after { 140 position: absolute; 141 content: ""; 142 height: 20px; 143 width: 20px; 144 left: 38px; 145 margin: 3px 5px; 146 border-radius: 20px; 147 background-color: #f8f8f8; 148 -webkit-transition: all 0.25s ease-out; 149 -moz-transition: all 0.25s ease-out; 150 -ms-transition: all 0.25s ease-out; 151 -o-transition: all 0.25s ease-out; 152 transition: all 0.25s ease-out; 153 } 154 input[type="radio"]::after, input[type="checkbox"]::after { 155 position: absolute; 156 content: ""; 157 height: 20px; 158 width: 20px; 159 left: 0; 160 margin: 3px 3px; 161 border-radius: 20px; 162 background-color: #f8f8f8; 163 -webkit-transition: .4s; 164 transition: .4s; 165 } 149 166 .checkbox-area { 150 167 position: relative; -
wp-theme-optimizer/tags/1.0.1/admin/js/wpto-admin.js
r1464043 r1464448 175 175 }); */ 176 176 177 178 $('.all').click(function() { 179 var $checkboxes = $(this).siblings().find('input[type=checkbox]'); 180 $checkboxes.prop('checked', $(this).is(':checked')); 181 }); 182 183 184 185 186 177 187 }); 178 188 -
wp-theme-optimizer/tags/1.0.1/admin/partials/wpto-admin-display.php
r1464043 r1464448 13 13 14 14 <h2 class="nav-tab-wrapper"> 15 <a href="#options" class="nav-tab nav-tab-active"><?php _e('Theme Options', $this->plugin_name);?></a> 16 17 <?php if ( class_exists( 'WooCommerce' ) ) { ?> 18 <a href="#wc" class="nav-tab"><?php _e('WooCommerce', $this->plugin_name);?></a> 19 <?php } ?> 20 <!-- <a href="#contact" class="nav-tab"><?php _e('Contact', $this->plugin_name);?></a> --> 15 <a href="#theme_scripts" class="nav-tab nav-tab-active"><?php _e('Theme Scripts', $this->plugin_name);?></a> 16 <a href="#theme_links" class="nav-tab"><?php _e('Theme Links', $this->plugin_name);?></a> 17 <a href="#misc" class="nav-tab"><?php _e('Misc Settings', $this->plugin_name);?></a> 18 <?php if ( class_exists( 'WooCommerce' ) ) { ?> 19 <a href="#wc" class="nav-tab"><?php _e('WooCommerce', $this->plugin_name);?></a> 20 <?php } ?> 21 <!-- <a href="#contact" class="nav-tab"><?php _e('Contact', $this->plugin_name);?></a> --> 21 22 </h2> 22 23 … … 77 78 $html_minify = $options['html_minify']; 78 79 79 80 81 82 83 84 /* 80 /* 85 81 * Set up hidden fields 86 82 * 87 83 */ 88 84 settings_fields($this->plugin_name); 89 do_settings_sections($this->plugin_name);85 do_settings_sections($this->plugin_name); 90 86 91 87 ?> 92 88 <div class="tab-content"> 93 <?php89 <?php 94 90 // Include tabs partials 95 require_once('wpto_options.php'); 91 require_once('wpto_theme_scripts.php'); 92 require_once('wpto_theme_links.php'); 93 require_once('wpto_misc.php'); 96 94 97 95 if ( class_exists( 'WooCommerce' ) ) { … … 100 98 101 99 ?> 100 <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?> 101 102 103 102 104 </div> 103 <p class="submit">104 <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?>105 </p>106 105 107 106 </form> -
wp-theme-optimizer/tags/1.0.1/admin/partials/wpto_wc.php
r1464043 r1464448 12 12 <h2><?php esc_attr_e( 'WooCommerce', $this->plugin_name ); ?></h2> 13 13 <p><?php _e('Here you can disable a number of scripts that ships with WooCommerce. Please check to make sure everything works after disabling scripts as some are required. Even scripts that are disabled will reappear on WooCommerce pages.', $this->plugin_name);?></p> 14 15 <!-- WOOCOMMERCE Array - doesn't work properly so removing it for now! 14 <input type="checkbox" class="all"/> 15 <h3 class="activate-label"><?php esc_attr_e('Activate/Deactivate All', $this->plugin_name);?></h3> 16 17 18 <!-- WOOCOMMERCE Array - doesn't work properly so removing it for now! 16 19 <?php 17 20 $wc_dequeue_scripts = array(); -
wp-theme-optimizer/tags/1.0.1/includes/class-wpto-activator.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Activator { -
wp-theme-optimizer/tags/1.0.1/includes/class-wpto-deactivator.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Deactivator { -
wp-theme-optimizer/tags/1.0.1/includes/class-wpto-i18n.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_i18n { -
wp-theme-optimizer/tags/1.0.1/includes/class-wpto-loader.php
r1464043 r1464448 1 1 2 <?php 2 3 /** 3 4 * @link https://www.designsbytouch.co.uk 4 5 * @since 1.0.0 5 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 6 7 */ 7 8 class wpto_Loader { -
wp-theme-optimizer/tags/1.0.1/includes/class-wpto.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto { … … 199 199 200 200 // WooCommerce 201 if ( class_exists( 'WooCommerce' ) ) { 202 201 203 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_add_payment_method' ); 202 204 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_lost_password' ); … … 219 221 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_fancybox' ); 220 222 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_jqueryui' ); 221 223 } 222 224 223 225 -
wp-theme-optimizer/tags/1.0.1/public/class-wpto-public.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Public { … … 106 106 public function wpto_remove_recent_comments_css( ) { 107 107 if(!empty($this->wpto_options['remove_recent_comments_css'])){ 108 function remove_recent_comments_style() { 109 global $wp_widget_factory; 108 function remove_recent_comments_style() { 109 global $wp_widget_factory; 110 110 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 111 } 111 } 112 112 add_action( 'widgets_init', 'remove_recent_comments_style' ); 113 113 114 114 } 115 115 } 116 117 116 117 118 118 // Remove RSD Link 119 119 public function wpto_remove_rsd_link( ) { … … 212 212 213 213 214 /* WOOCOMMERCE 214 /* WOOCOMMERCE 215 215 216 216 // Open Public function -
wp-theme-optimizer/tags/1.0.1/uninstall.php
r1464043 r1464448 1 1 2 <?php 2 3 … … 19 20 * @link https://www.designsbytouch.co.uk 20 21 * @since 1.0.0 21 * @package Wp_Theme_Optimi ser22 * @package Wp_Theme_Optimizer 22 23 */ 23 24 -
wp-theme-optimizer/tags/1.0.1/wpto.php
r1464043 r1464448 5 5 * @link https://www.designsbytouch.co.uk 6 6 * @since 1.0.0 7 * @package Wp_Theme_Optimi ser7 * @package Wp_Theme_Optimizer 8 8 * 9 9 * @wordpress-plugin 10 * Plugin Name: WP Theme Optimi ser11 * Plugin URI: www.themeoptimi ser.io12 * Description: Optimize your WordPress theme header by removing excess tags and scripts. Make your site faster and more secure by hiding the fact you are using WordPress.10 * Plugin Name: WP Theme Optimizer 11 * Plugin URI: www.themeoptimizer.io 12 * Description: Optimize your WordPress theme header by removing excess tags and scripts. Make your site faster and more secure by hiding WordPress tags. 13 13 * Version: 1.0.1 14 14 * Author: Studio Touch (Daniel Hand) … … 16 16 * License: GPL-2.0+ 17 17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 18 * Text Domain: wp-theme-optimi ser18 * Text Domain: wp-theme-optimizer 19 19 * Domain Path: /languages 20 20 */ -
wp-theme-optimizer/trunk/README.txt
r1464220 r1464448 26 26 27 27 * Fixed a few bugs and updated the documentation to make it clearer. 28 * Reorganized tabs to make navigation easier. 29 * Added activate/deactivate all button. 30 * Changed spellings to be consistent between UK/US spellings. 28 31 29 32 = 1.0.0 = … … 44 47 * Remove Yoast SEO comments in front-end HTML 45 48 * Option to Minify front-end HTML 46 47 48 -
wp-theme-optimizer/trunk/admin/class-wpto-admin.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Admin { … … 106 106 * 107 107 */ 108 $plugin_screen_hook_suffix = add_options_page( __('WP Theme Optimi ser', $this->plugin_name ), 'WP Theme Optimiser', 'manage_options', $this->plugin_name, array($this, 'display_plugin_setup_page')108 $plugin_screen_hook_suffix = add_options_page( __('WP Theme Optimizer', $this->plugin_name ), 'WP Theme Optimizer', 'manage_options', $this->plugin_name, array($this, 'display_plugin_setup_page') 109 109 ); 110 110 } -
wp-theme-optimizer/trunk/admin/css/wpto-admin.css
r1464043 r1464448 8 8 9 9 .wpto-metaboxes .options-box { 10 min-height: 52px;11 margin-bottom: 1em;12 padding: 12px 15px;13 border: 1px solid #bbb;14 background-color: #f1f1f1;15 box-shadow: 0 2px 8px rgba(0, 0, 0, .1);16 position: relative;17 display: inline-block;18 width: 100%;10 min-height: 52px; 11 margin-bottom: 1em; 12 padding: 12px 15px; 13 border: 1px solid #bbb; 14 background-color: #f1f1f1; 15 box-shadow: 0 2px 8px rgba(0, 0, 0, .1); 16 position: relative; 17 display: inline-block; 18 width: 100%; 19 19 } 20 21 h2 { font-size: 1.6em;} 22 .wpto-metaboxes .options-box p { /* margin: 0.5em 0 1em; */display: table-cell; 23 vertical-align: middle;} 20 h2 { 21 font-size: 1.6em; 22 } 23 .wpto-metaboxes .options-box p { 24 /* margin: 0.5em 0 1em; */ 25 display: table-cell; 26 vertical-align: middle; 27 } 24 28 input[type=url] { 25 29 margin: 0 0 12px; 30 } 31 p.submit { 32 text-align: right; 33 margin-top: 0px; 34 } 35 .activate-label, .all { 36 float: right; 37 margin: 0px 0px 30px 0px; 38 line-height: 1.8; 39 font-weight: bold; 40 font-size: 1.2em !important; 41 } 42 .activate-label { 43 margin-right: 20px; 44 } 45 .all { 46 margin-right: 43px !important; 26 47 } 27 48 … … 56 77 width: 65%; 57 78 } 58 59 79 .options-box h3 { 60 margin: 0px 0px 10px 0px;61 font-size: 1.2em !important;62 font-weight: 600 !important;63 vertical-align: middle;64 clear:both;80 margin: 0px 0px 10px 0px; 81 font-size: 1.2em !important; 82 font-weight: 600 !important; 83 vertical-align: middle; 84 clear: both; 65 85 } 66 86 .options-box label { … … 68 88 width: 75%; 69 89 } 70 71 72 .options-checkbox { padding: 0; 73 margin:0; 74 vertical-align: bottom; 75 position: absolute; 76 top: 30%; 77 right:8%} 78 79 .options-checkbox input[type=checkbox] { 90 .options-checkbox { 91 padding: 0; 92 margin: 0; 93 vertical-align: bottom; 94 position: absolute; 95 top: 30%; 96 right: 8% 97 } 98 .tab-content input[type=checkbox] { 80 99 margin: 0px; 81 100 color: #f8f8f8; … … 83 102 line-height: 1.8; 84 103 text-align: left; 85 width: 70px;86 height: 30px;104 width: 70px; 105 height: 30px; 87 106 background-color: rgb(255, 62, 42); 88 -moz-transition: all 0.25s ease-in-out;107 -moz-transition: all 0.25s ease-in-out; 89 108 -webkit-transition: all 0.25s ease-in-out; 90 109 -o-transition: all 0.25s ease-in-out; … … 92 111 position: relative; 93 112 border: 0px; 94 border: 2px solid #ddd;95 border-radius: 20px;113 border: 2px solid #ddd; 114 border-radius: 20px; 96 115 content: none !important; 97 116 } 98 99 .options-checkbox input[type=checkbox]:checked { 117 .tab-content input[type=checkbox]:checked { 100 118 margin: 0px; 101 119 color: #f8f8f8; … … 103 121 line-height: 1.8; 104 122 text-align: left; 105 width: 70px;106 height: 30px;123 width: 70px; 124 height: 30px; 107 125 background-color: rgb(99, 225, 65); 108 -moz-transition: all 0.25s ease-in-out;126 -moz-transition: all 0.25s ease-in-out; 109 127 -webkit-transition: all 0.25s ease-in-out; 110 128 -o-transition: all 0.25s ease-in-out; … … 112 130 position: relative; 113 131 border: 0px; 114 border: 2px solid #ddd;115 border-radius: 20px;132 border: 2px solid #ddd; 133 border-radius: 20px; 116 134 content: none !important; 117 135 } 118 119 input[type="checkbox"]:checked::before { content:none !important;} 120 121 122 123 input[type="radio"]:checked::after, input[type="checkbox"]:checked::after { position: absolute; 124 content: ""; 125 height: 20px; 126 width: 20px; 127 left:38px; 128 margin:3px 5px; 129 border-radius:20px; 130 background-color: #f8f8f8; 131 -webkit-transition: all 0.25s ease-out; 132 -moz-transition: all 0.25s ease-out; 133 -ms-transition: all 0.25s ease-out; 134 -o-transition: all 0.25s ease-out; 135 transition: all 0.25s ease-out;} 136 137 input[type="radio"]::after, input[type="checkbox"]::after { position: absolute; 138 content: ""; 139 height: 20px; 140 width: 20px; 141 left:0 ; 142 margin:3px 3px; 143 border-radius:20px; 144 background-color: #f8f8f8; 145 -webkit-transition: .4s; 146 transition: .4s;} 147 148 136 input[type="checkbox"]:checked::before { 137 content: none !important; 138 } 139 input[type="radio"]:checked::after, input[type="checkbox"]:checked::after { 140 position: absolute; 141 content: ""; 142 height: 20px; 143 width: 20px; 144 left: 38px; 145 margin: 3px 5px; 146 border-radius: 20px; 147 background-color: #f8f8f8; 148 -webkit-transition: all 0.25s ease-out; 149 -moz-transition: all 0.25s ease-out; 150 -ms-transition: all 0.25s ease-out; 151 -o-transition: all 0.25s ease-out; 152 transition: all 0.25s ease-out; 153 } 154 input[type="radio"]::after, input[type="checkbox"]::after { 155 position: absolute; 156 content: ""; 157 height: 20px; 158 width: 20px; 159 left: 0; 160 margin: 3px 3px; 161 border-radius: 20px; 162 background-color: #f8f8f8; 163 -webkit-transition: .4s; 164 transition: .4s; 165 } 149 166 .checkbox-area { 150 167 position: relative; -
wp-theme-optimizer/trunk/admin/js/wpto-admin.js
r1464043 r1464448 175 175 }); */ 176 176 177 178 $('.all').click(function() { 179 var $checkboxes = $(this).siblings().find('input[type=checkbox]'); 180 $checkboxes.prop('checked', $(this).is(':checked')); 181 }); 182 183 184 185 186 177 187 }); 178 188 -
wp-theme-optimizer/trunk/admin/partials/wpto-admin-display.php
r1464043 r1464448 13 13 14 14 <h2 class="nav-tab-wrapper"> 15 <a href="#options" class="nav-tab nav-tab-active"><?php _e('Theme Options', $this->plugin_name);?></a> 16 17 <?php if ( class_exists( 'WooCommerce' ) ) { ?> 18 <a href="#wc" class="nav-tab"><?php _e('WooCommerce', $this->plugin_name);?></a> 19 <?php } ?> 20 <!-- <a href="#contact" class="nav-tab"><?php _e('Contact', $this->plugin_name);?></a> --> 15 <a href="#theme_scripts" class="nav-tab nav-tab-active"><?php _e('Theme Scripts', $this->plugin_name);?></a> 16 <a href="#theme_links" class="nav-tab"><?php _e('Theme Links', $this->plugin_name);?></a> 17 <a href="#misc" class="nav-tab"><?php _e('Misc Settings', $this->plugin_name);?></a> 18 <?php if ( class_exists( 'WooCommerce' ) ) { ?> 19 <a href="#wc" class="nav-tab"><?php _e('WooCommerce', $this->plugin_name);?></a> 20 <?php } ?> 21 <!-- <a href="#contact" class="nav-tab"><?php _e('Contact', $this->plugin_name);?></a> --> 21 22 </h2> 22 23 … … 77 78 $html_minify = $options['html_minify']; 78 79 79 80 81 82 83 84 /* 80 /* 85 81 * Set up hidden fields 86 82 * 87 83 */ 88 84 settings_fields($this->plugin_name); 89 do_settings_sections($this->plugin_name);85 do_settings_sections($this->plugin_name); 90 86 91 87 ?> 92 88 <div class="tab-content"> 93 <?php89 <?php 94 90 // Include tabs partials 95 require_once('wpto_options.php'); 91 require_once('wpto_theme_scripts.php'); 92 require_once('wpto_theme_links.php'); 93 require_once('wpto_misc.php'); 96 94 97 95 if ( class_exists( 'WooCommerce' ) ) { … … 100 98 101 99 ?> 100 <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?> 101 102 103 102 104 </div> 103 <p class="submit">104 <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?>105 </p>106 105 107 106 </form> -
wp-theme-optimizer/trunk/admin/partials/wpto_wc.php
r1464043 r1464448 12 12 <h2><?php esc_attr_e( 'WooCommerce', $this->plugin_name ); ?></h2> 13 13 <p><?php _e('Here you can disable a number of scripts that ships with WooCommerce. Please check to make sure everything works after disabling scripts as some are required. Even scripts that are disabled will reappear on WooCommerce pages.', $this->plugin_name);?></p> 14 15 <!-- WOOCOMMERCE Array - doesn't work properly so removing it for now! 14 <input type="checkbox" class="all"/> 15 <h3 class="activate-label"><?php esc_attr_e('Activate/Deactivate All', $this->plugin_name);?></h3> 16 17 18 <!-- WOOCOMMERCE Array - doesn't work properly so removing it for now! 16 19 <?php 17 20 $wc_dequeue_scripts = array(); -
wp-theme-optimizer/trunk/includes/class-wpto-activator.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Activator { -
wp-theme-optimizer/trunk/includes/class-wpto-deactivator.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Deactivator { -
wp-theme-optimizer/trunk/includes/class-wpto-i18n.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_i18n { -
wp-theme-optimizer/trunk/includes/class-wpto-loader.php
r1464043 r1464448 1 1 2 <?php 2 3 /** 3 4 * @link https://www.designsbytouch.co.uk 4 5 * @since 1.0.0 5 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 6 7 */ 7 8 class wpto_Loader { -
wp-theme-optimizer/trunk/includes/class-wpto.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto { … … 199 199 200 200 // WooCommerce 201 if ( class_exists( 'WooCommerce' ) ) { 202 201 203 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_add_payment_method' ); 202 204 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_lost_password' ); … … 219 221 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_fancybox' ); 220 222 $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_jqueryui' ); 221 223 } 222 224 223 225 -
wp-theme-optimizer/trunk/public/class-wpto-public.php
r1464043 r1464448 4 4 * @link https://www.designsbytouch.co.uk 5 5 * @since 1.0.0 6 * @package Wp_Theme_Optimi ser6 * @package Wp_Theme_Optimizer 7 7 */ 8 8 class wpto_Public { … … 106 106 public function wpto_remove_recent_comments_css( ) { 107 107 if(!empty($this->wpto_options['remove_recent_comments_css'])){ 108 function remove_recent_comments_style() { 109 global $wp_widget_factory; 108 function remove_recent_comments_style() { 109 global $wp_widget_factory; 110 110 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 111 } 111 } 112 112 add_action( 'widgets_init', 'remove_recent_comments_style' ); 113 113 114 114 } 115 115 } 116 117 116 117 118 118 // Remove RSD Link 119 119 public function wpto_remove_rsd_link( ) { … … 212 212 213 213 214 /* WOOCOMMERCE 214 /* WOOCOMMERCE 215 215 216 216 // Open Public function -
wp-theme-optimizer/trunk/uninstall.php
r1464043 r1464448 1 1 2 <?php 2 3 … … 19 20 * @link https://www.designsbytouch.co.uk 20 21 * @since 1.0.0 21 * @package Wp_Theme_Optimi ser22 * @package Wp_Theme_Optimizer 22 23 */ 23 24 -
wp-theme-optimizer/trunk/wpto.php
r1464043 r1464448 5 5 * @link https://www.designsbytouch.co.uk 6 6 * @since 1.0.0 7 * @package Wp_Theme_Optimi ser7 * @package Wp_Theme_Optimizer 8 8 * 9 9 * @wordpress-plugin 10 * Plugin Name: WP Theme Optimi ser11 * Plugin URI: www.themeoptimi ser.io12 * Description: Optimize your WordPress theme header by removing excess tags and scripts. Make your site faster and more secure by hiding the fact you are using WordPress.10 * Plugin Name: WP Theme Optimizer 11 * Plugin URI: www.themeoptimizer.io 12 * Description: Optimize your WordPress theme header by removing excess tags and scripts. Make your site faster and more secure by hiding WordPress tags. 13 13 * Version: 1.0.1 14 14 * Author: Studio Touch (Daniel Hand) … … 16 16 * License: GPL-2.0+ 17 17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 18 * Text Domain: wp-theme-optimi ser18 * Text Domain: wp-theme-optimizer 19 19 * Domain Path: /languages 20 20 */
Note: See TracChangeset
for help on using the changeset viewer.