Plugin Directory

Changeset 2472184


Ignore:
Timestamp:
02/10/2021 07:50:44 AM (5 years ago)
Author:
codetot
Message:

Release 1.0.7

Location:
ct-optimization
Files:
43 added
5 edited

Legend:

Unmodified
Added
Removed
  • ct-optimization/trunk/README.txt

    r2461023 r2472184  
    44Tags: optimization, compress, settings
    55Requires at least: 5.4
    6 Tested up to: 5.6
     6Tested up to: 5.6.1
    77Stable tag: 5.4
    88License: GPLv2 or later
     
    4848== Changelog ==
    4949
     50= 1.0.7 =
     51
     52* Add Gravity Form tweak settings, including disable default styles, hide some menus and load Gravity forms script in footer.
     53
    5054= 1.0.6 =
    5155
  • ct-optimization/trunk/admin/class-codetot-optimization-admin.php

    r2446063 r2472184  
    6464            'text' => '',
    6565            'fields' => $this->get_advanced_options()
    66           )
     66          ),
     67          'plugins' => array(
     68            'title' => __('Plugin Settings', 'codetot-optimization'),
     69            'text' => '',
     70            'fields' => $this->get_plugin_options()
     71          ),
    6772        )
    6873      )
     
    158163    );
    159164  }
     165
     166  public function get_plugin_options() {
     167    return array(
     168      'disable_gravity_forms_style' => array(
     169        'title' => __('Disable Gravity Forms Default Styles', 'codetot-optimization'),
     170        'type' => 'radio',
     171        'value' => 'no',
     172        'choices' => array(
     173          'yes' => __('Yes', 'codetot-optimization'),
     174          'no' => __('No', 'codetot-optimization')
     175        )
     176      ),
     177      'hide_gravity_forms_menus' => array(
     178        'title' => __('Hide Gravity Forms Menus', 'codetot-optimization'),
     179        'type' => 'radio',
     180        'value' => 'no',
     181        'choices' => array(
     182          'yes' => __('Yes', 'codetot-optimization'),
     183          'no' => __('No', 'codetot-optimization')
     184        )
     185      ),
     186      'load_gravity_forms_footer' => array(
     187        'title' => __('Load Gravity Forms in Footer', 'codetot-optimization'),
     188        'type' => 'radio',
     189        'value' => 'no',
     190        'choices' => array(
     191          'yes' => __('Yes', 'codetot-optimization'),
     192          'no' => __('No', 'codetot-optimization')
     193        )
     194      )
     195    );
     196  }
    160197}
  • ct-optimization/trunk/codetot-optimization.php

    r2461023 r2472184  
    99 * Plugin URI:        https://codetot.com/codetot-optimization
    1010 * Description:       Provides settings for enable/disable WordPress core features and some tweaks for ACF, Gravity Forms, such like Enable CDN, Lazyload assets.
    11  * Version:           1.0.6
     11 * Version:           1.0.7
    1212 * Author:            CODE TOT JSC
    1313 * Author URI:        https://codetot.com
     
    2323}
    2424
    25 /**
    26  * Currently plugin version.
    27  * Start at version 1.0.0 and use SemVer - https://semver.org
    28  * Rename this for your plugin and update it as you release new versions.
    29  */
    30 define( 'CODETOT_OPTIMIZATION_VERSION', '1.0.6' );
     25define( 'CODETOT_OPTIMIZATION_VERSION', '1.0.7' );
    3126define( 'CODETOT_OPTIMIZATION_PATH', plugin_dir_path(__FILE__) );
    3227define( 'CODETOT_OPTIMIZATION_URL', plugin_dir_url(__FILE__) );
  • ct-optimization/trunk/includes/class-codetot-admin-options-page.php

    r2460113 r2472184  
    142142        $this->submit_notice($method);
    143143    }
     144
     145    return array();
    144146  }
    145147
     
    536538   *
    537539   * @param string $page_key The array key of the page
    538    * @param type $section_key The array key of the section
     540   * @param string $section_key The array key of the section
    539541   */
    540542  protected function build_settings_section($page_key, $section_key)
     
    574576   * @param string $page_key The array key of the page
    575577   *
     578   * @param $input
    576579   * @return  array        The sanitized post input
    577580   */
     
    672675   * @param string $field_key Array key of the field
    673676   * @param string $page ID of the associated page
    674    * @param type $section ID of the associated section
     677   * @param string $section ID of the associated section
    675678   *
    676679   * @return  array          The validated field array
  • ct-optimization/trunk/includes/class-codetot-optimization.php

    r2446063 r2472184  
    3636    Codetot_Optimization_Admin::instance();
    3737    Codetot_Optimization_i18n::instance();
     38
     39    Codetot_Optimization_Gravity_Forms::instance();
    3840    Codetot_Optimization_Process::instance();
    3941    Codetot_Optimization_Html_Compression::instance();
     
    4749    require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-codetot-optimization-i18n.php';
    4850    require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-codetot-optimization-process.php';
     51    require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-codetot-optimization-gravity-forms.php';
    4952    require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-codetot-optimization-html-compression.php';
    5053
Note: See TracChangeset for help on using the changeset viewer.