Plugin Directory

Changeset 1464448


Ignore:
Timestamp:
07/31/2016 08:47:14 PM (10 years ago)
Author:
dsgnr
Message:

Updated v1.0.1. Added images for plugin page

Location:
wp-theme-optimizer
Files:
5 added
28 edited

Legend:

Unmodified
Added
Removed
  • wp-theme-optimizer/tags/1.0.1/README.txt

    r1464219 r1464448  
    2626
    2727* 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.
    2831
    2932= 1.0.0 =
     
    4447    * Remove Yoast SEO comments in front-end HTML
    4548    * Option to Minify front-end HTML
    46 
    47 
    48 
  • wp-theme-optimizer/tags/1.0.1/admin/class-wpto-admin.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Admin {
     
    106106         *
    107107         */
    108         $plugin_screen_hook_suffix = add_options_page( __('WP Theme Optimiser', $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')
    109109        );
    110110    }
  • wp-theme-optimizer/tags/1.0.1/admin/css/wpto-admin.css

    r1464043 r1464448  
    88
    99.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%;
    1919}
    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;}
     20h2 {
     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}
    2428input[type=url] {
    2529    margin: 0 0 12px;
     30}
     31p.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;
    2647}
    2748
     
    5677    width: 65%;
    5778}
    58 
    5979.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;
    6585}
    6686.options-box label {
     
    6888    width: 75%;
    6989}
    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] {
    8099    margin: 0px;
    81100    color: #f8f8f8;
     
    83102    line-height: 1.8;
    84103    text-align: left;
    85     width:70px;
    86     height:30px;
     104    width: 70px;
     105    height: 30px;
    87106    background-color: rgb(255, 62, 42);
    88         -moz-transition: all 0.25s ease-in-out;
     107    -moz-transition: all 0.25s ease-in-out;
    89108    -webkit-transition: all 0.25s ease-in-out;
    90109    -o-transition: all 0.25s ease-in-out;
     
    92111    position: relative;
    93112    border: 0px;
    94     border:2px solid #ddd;
    95     border-radius:20px;
     113    border: 2px solid #ddd;
     114    border-radius: 20px;
    96115    content: none !important;
    97116}
    98 
    99 .options-checkbox input[type=checkbox]:checked {
     117.tab-content input[type=checkbox]:checked {
    100118    margin: 0px;
    101119    color: #f8f8f8;
     
    103121    line-height: 1.8;
    104122    text-align: left;
    105     width:70px;
    106     height:30px;
     123    width: 70px;
     124    height: 30px;
    107125    background-color: rgb(99, 225, 65);
    108         -moz-transition: all 0.25s ease-in-out;
     126    -moz-transition: all 0.25s ease-in-out;
    109127    -webkit-transition: all 0.25s ease-in-out;
    110128    -o-transition: all 0.25s ease-in-out;
     
    112130    position: relative;
    113131    border: 0px;
    114     border:2px solid #ddd;
    115     border-radius:20px;
     132    border: 2px solid #ddd;
     133    border-radius: 20px;
    116134    content: none !important;
    117135}
    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 
     136input[type="checkbox"]:checked::before {
     137    content: none !important;
     138}
     139input[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}
     154input[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}
    149166.checkbox-area {
    150167    position: relative;
  • wp-theme-optimizer/tags/1.0.1/admin/js/wpto-admin.js

    r1464043 r1464448  
    175175                }); */
    176176
     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
    177187    });
    178188
  • wp-theme-optimizer/tags/1.0.1/admin/partials/wpto-admin-display.php

    r1464043 r1464448  
    1313
    1414    <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> -->
    2122    </h2>
    2223
     
    7778        $html_minify = $options['html_minify'];
    7879
    79 
    80 
    81 
    82 
    83 
    84                 /*
     80            /*
    8581            * Set up hidden fields
    8682            *
    8783            */
    8884            settings_fields($this->plugin_name);
    89                         do_settings_sections($this->plugin_name);
     85            do_settings_sections($this->plugin_name);
    9086
    9187?>
    9288<div class="tab-content">
    93     <?php
     89        <?php
    9490         // 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');
    9694
    9795            if ( class_exists( 'WooCommerce' ) ) {
     
    10098
    10199        ?>
     100        <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?>
     101
     102
     103
    102104</div>
    103         <p class="submit">
    104             <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?>
    105         </p>
    106105
    107106    </form>
  • wp-theme-optimizer/tags/1.0.1/admin/partials/wpto_wc.php

    r1464043 r1464448  
    1212    <h2><?php esc_attr_e( 'WooCommerce', $this->plugin_name ); ?></h2>
    1313        <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!
    1619    <?php
    1720$wc_dequeue_scripts = array();
  • wp-theme-optimizer/tags/1.0.1/includes/class-wpto-activator.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Activator {
  • wp-theme-optimizer/tags/1.0.1/includes/class-wpto-deactivator.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Deactivator {
  • wp-theme-optimizer/tags/1.0.1/includes/class-wpto-i18n.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_i18n {
  • wp-theme-optimizer/tags/1.0.1/includes/class-wpto-loader.php

    r1464043 r1464448  
     1
    12<?php
    23/**
    34* @link              https://www.designsbytouch.co.uk
    45* @since             1.0.0
    5 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    67*/
    78class wpto_Loader {
  • wp-theme-optimizer/tags/1.0.1/includes/class-wpto.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto {
     
    199199
    200200// WooCommerce
     201 if ( class_exists( 'WooCommerce' ) ) {
     202
    201203$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_add_payment_method' );
    202204$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_lost_password' );
     
    219221$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_fancybox' );
    220222$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_jqueryui' );
    221 
     223}
    222224
    223225
  • wp-theme-optimizer/tags/1.0.1/public/class-wpto-public.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Public {
     
    106106        public function wpto_remove_recent_comments_css( ) {
    107107        if(!empty($this->wpto_options['remove_recent_comments_css'])){
    108 function remove_recent_comments_style() { 
    109   global $wp_widget_factory; 
     108function remove_recent_comments_style() {
     109  global $wp_widget_factory;
    110110  remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
    111 } 
     111}
    112112add_action( 'widgets_init', 'remove_recent_comments_style' );
    113113
    114114        }
    115115    }
    116    
    117    
     116
     117
    118118    // Remove RSD Link
    119119    public function wpto_remove_rsd_link( ) {
     
    212212
    213213
    214 /* WOOCOMMERCE 
     214/* WOOCOMMERCE
    215215
    216216// Open Public function
  • wp-theme-optimizer/tags/1.0.1/uninstall.php

    r1464043 r1464448  
     1
    12<?php
    23
     
    1920 * @link              https://www.designsbytouch.co.uk
    2021 * @since             1.0.0
    21  * @package           Wp_Theme_Optimiser
     22 * @package           Wp_Theme_Optimizer
    2223 */
    2324
  • wp-theme-optimizer/tags/1.0.1/wpto.php

    r1464043 r1464448  
    55 * @link              https://www.designsbytouch.co.uk
    66 * @since             1.0.0
    7  * @package           Wp_Theme_Optimiser
     7 * @package           Wp_Theme_Optimizer
    88 *
    99 * @wordpress-plugin
    10  * Plugin Name:       WP Theme Optimiser
    11  * Plugin URI:        www.themeoptimiser.io
    12  * 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.
    1313 * Version:           1.0.1
    1414 * Author:            Studio Touch (Daniel Hand)
     
    1616 * License:           GPL-2.0+
    1717 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    18  * Text Domain:       wp-theme-optimiser
     18 * Text Domain:       wp-theme-optimizer
    1919 * Domain Path:       /languages
    2020 */
  • wp-theme-optimizer/trunk/README.txt

    r1464220 r1464448  
    2626
    2727* 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.
    2831
    2932= 1.0.0 =
     
    4447    * Remove Yoast SEO comments in front-end HTML
    4548    * Option to Minify front-end HTML
    46 
    47 
    48 
  • wp-theme-optimizer/trunk/admin/class-wpto-admin.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Admin {
     
    106106         *
    107107         */
    108         $plugin_screen_hook_suffix = add_options_page( __('WP Theme Optimiser', $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')
    109109        );
    110110    }
  • wp-theme-optimizer/trunk/admin/css/wpto-admin.css

    r1464043 r1464448  
    88
    99.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%;
    1919}
    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;}
     20h2 {
     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}
    2428input[type=url] {
    2529    margin: 0 0 12px;
     30}
     31p.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;
    2647}
    2748
     
    5677    width: 65%;
    5778}
    58 
    5979.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;
    6585}
    6686.options-box label {
     
    6888    width: 75%;
    6989}
    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] {
    8099    margin: 0px;
    81100    color: #f8f8f8;
     
    83102    line-height: 1.8;
    84103    text-align: left;
    85     width:70px;
    86     height:30px;
     104    width: 70px;
     105    height: 30px;
    87106    background-color: rgb(255, 62, 42);
    88         -moz-transition: all 0.25s ease-in-out;
     107    -moz-transition: all 0.25s ease-in-out;
    89108    -webkit-transition: all 0.25s ease-in-out;
    90109    -o-transition: all 0.25s ease-in-out;
     
    92111    position: relative;
    93112    border: 0px;
    94     border:2px solid #ddd;
    95     border-radius:20px;
     113    border: 2px solid #ddd;
     114    border-radius: 20px;
    96115    content: none !important;
    97116}
    98 
    99 .options-checkbox input[type=checkbox]:checked {
     117.tab-content input[type=checkbox]:checked {
    100118    margin: 0px;
    101119    color: #f8f8f8;
     
    103121    line-height: 1.8;
    104122    text-align: left;
    105     width:70px;
    106     height:30px;
     123    width: 70px;
     124    height: 30px;
    107125    background-color: rgb(99, 225, 65);
    108         -moz-transition: all 0.25s ease-in-out;
     126    -moz-transition: all 0.25s ease-in-out;
    109127    -webkit-transition: all 0.25s ease-in-out;
    110128    -o-transition: all 0.25s ease-in-out;
     
    112130    position: relative;
    113131    border: 0px;
    114     border:2px solid #ddd;
    115     border-radius:20px;
     132    border: 2px solid #ddd;
     133    border-radius: 20px;
    116134    content: none !important;
    117135}
    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 
     136input[type="checkbox"]:checked::before {
     137    content: none !important;
     138}
     139input[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}
     154input[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}
    149166.checkbox-area {
    150167    position: relative;
  • wp-theme-optimizer/trunk/admin/js/wpto-admin.js

    r1464043 r1464448  
    175175                }); */
    176176
     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
    177187    });
    178188
  • wp-theme-optimizer/trunk/admin/partials/wpto-admin-display.php

    r1464043 r1464448  
    1313
    1414    <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> -->
    2122    </h2>
    2223
     
    7778        $html_minify = $options['html_minify'];
    7879
    79 
    80 
    81 
    82 
    83 
    84                 /*
     80            /*
    8581            * Set up hidden fields
    8682            *
    8783            */
    8884            settings_fields($this->plugin_name);
    89                         do_settings_sections($this->plugin_name);
     85            do_settings_sections($this->plugin_name);
    9086
    9187?>
    9288<div class="tab-content">
    93     <?php
     89        <?php
    9490         // 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');
    9694
    9795            if ( class_exists( 'WooCommerce' ) ) {
     
    10098
    10199        ?>
     100        <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?>
     101
     102
     103
    102104</div>
    103         <p class="submit">
    104             <?php submit_button(__('Save all changes', $this->plugin_name), 'primary','submit', TRUE); ?>
    105         </p>
    106105
    107106    </form>
  • wp-theme-optimizer/trunk/admin/partials/wpto_wc.php

    r1464043 r1464448  
    1212    <h2><?php esc_attr_e( 'WooCommerce', $this->plugin_name ); ?></h2>
    1313        <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!
    1619    <?php
    1720$wc_dequeue_scripts = array();
  • wp-theme-optimizer/trunk/includes/class-wpto-activator.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Activator {
  • wp-theme-optimizer/trunk/includes/class-wpto-deactivator.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Deactivator {
  • wp-theme-optimizer/trunk/includes/class-wpto-i18n.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_i18n {
  • wp-theme-optimizer/trunk/includes/class-wpto-loader.php

    r1464043 r1464448  
     1
    12<?php
    23/**
    34* @link              https://www.designsbytouch.co.uk
    45* @since             1.0.0
    5 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    67*/
    78class wpto_Loader {
  • wp-theme-optimizer/trunk/includes/class-wpto.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto {
     
    199199
    200200// WooCommerce
     201 if ( class_exists( 'WooCommerce' ) ) {
     202
    201203$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_add_payment_method' );
    202204$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_wc_lost_password' );
     
    219221$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_fancybox' );
    220222$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_jqueryui' );
    221 
     223}
    222224
    223225
  • wp-theme-optimizer/trunk/public/class-wpto-public.php

    r1464043 r1464448  
    44* @link              https://www.designsbytouch.co.uk
    55* @since             1.0.0
    6 * @package           Wp_Theme_Optimiser
     6* @package           Wp_Theme_Optimizer
    77*/
    88class wpto_Public {
     
    106106        public function wpto_remove_recent_comments_css( ) {
    107107        if(!empty($this->wpto_options['remove_recent_comments_css'])){
    108 function remove_recent_comments_style() { 
    109   global $wp_widget_factory; 
     108function remove_recent_comments_style() {
     109  global $wp_widget_factory;
    110110  remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
    111 } 
     111}
    112112add_action( 'widgets_init', 'remove_recent_comments_style' );
    113113
    114114        }
    115115    }
    116    
    117    
     116
     117
    118118    // Remove RSD Link
    119119    public function wpto_remove_rsd_link( ) {
     
    212212
    213213
    214 /* WOOCOMMERCE 
     214/* WOOCOMMERCE
    215215
    216216// Open Public function
  • wp-theme-optimizer/trunk/uninstall.php

    r1464043 r1464448  
     1
    12<?php
    23
     
    1920 * @link              https://www.designsbytouch.co.uk
    2021 * @since             1.0.0
    21  * @package           Wp_Theme_Optimiser
     22 * @package           Wp_Theme_Optimizer
    2223 */
    2324
  • wp-theme-optimizer/trunk/wpto.php

    r1464043 r1464448  
    55 * @link              https://www.designsbytouch.co.uk
    66 * @since             1.0.0
    7  * @package           Wp_Theme_Optimiser
     7 * @package           Wp_Theme_Optimizer
    88 *
    99 * @wordpress-plugin
    10  * Plugin Name:       WP Theme Optimiser
    11  * Plugin URI:        www.themeoptimiser.io
    12  * 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.
    1313 * Version:           1.0.1
    1414 * Author:            Studio Touch (Daniel Hand)
     
    1616 * License:           GPL-2.0+
    1717 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    18  * Text Domain:       wp-theme-optimiser
     18 * Text Domain:       wp-theme-optimizer
    1919 * Domain Path:       /languages
    2020 */
Note: See TracChangeset for help on using the changeset viewer.