Plugin Directory

Changeset 2714420


Ignore:
Timestamp:
04/25/2022 02:12:54 PM (4 years ago)
Author:
detheme
Message:

bug fixing in dethemekit setting

Location:
dethemekit-for-elementor
Files:
422 added
7 edited

Legend:

Unmodified
Added
Removed
  • dethemekit-for-elementor/trunk/README.txt

    r2708120 r2714420  
    33Requires at least: WordPress 5.2
    44Tested up to: WordPress 5.9
    5 Version: 2.0.1
     5Version: 2.0.2
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    167167
    168168== Changelog ==
     169
     170= 2.0.2 =
     171* Fix: Settings Option for De Carousel & De Gallery
     172* Bug Fixing
    169173
    170174= 2.0.1 =
  • dethemekit-for-elementor/trunk/admin/settings/dethemekit-settings.php

    r2704158 r2714420  
    3636    public function create_admin_page()
    3737    {
    38         // Set class property
    39         $this->options = get_option( 'dethemekit_option' );
     38      $this->options = get_option( 'dethemekit_option' );
    4039        ?>
    4140        <div class="wrap">
     
    109108        'setting_section_id'
    110109      );
    111 
    112110    }
    113111
     
    150148     */
    151149    public function de_scroll_animation_callback() {
    152       $option_value = '1';
     150      $option_value = '0';
    153151      if( isset( $this->options['de_scroll_animation'] ) ) {
    154152        $option_value = $this->options['de_scroll_animation'];
     
    162160     */
    163161    public function de_reveal_animation_callback() {
    164       $option_value = '1';
     162      $option_value = '0';
    165163      if( isset( $this->options['de_reveal_animation'] ) ) {
    166164        $option_value = $this->options['de_reveal_animation'];
     
    174172     */
    175173    public function de_staggering_callback() {
    176       $option_value = '1';
     174      $option_value = '0';
    177175      if( isset( $this->options['de_staggering'] ) ) {
    178176        $option_value = $this->options['de_staggering'];
     
    186184     */
    187185    public function de_carousel_callback() {
    188       $option_value = '1';
     186      $option_value = '0';
    189187      if( isset( $this->options['de_carousel'] ) ) {
    190188        $option_value = $this->options['de_carousel'];
     
    199197     */
    200198    public function de_gallery_callback() {
    201       $option_value = '1';
     199      $option_value = '0';
    202200      if( isset( $this->options['de_gallery'] ) ) {
    203201        $option_value = $this->options['de_gallery'];
  • dethemekit-for-elementor/trunk/detheme-kit.php

    r2708120 r2714420  
    44 * Plugin URI:          https://vastthemes.com
    55 * Description:         Detheme Widgets for elementor.
    6  * Version:             2.0.1
     6 * Version:             2.0.2
    77 * Author:              deTheme
    88 * Author URI:          https://detheme.com
     
    1818
    1919// Define Constants
    20 define('DETHEMEKIT_ADDONS_VERSION', '2.0.1');
     20define('DETHEMEKIT_ADDONS_VERSION', '2.0.2');
    2121define('DETHEMEKIT_ADDONS_URL', plugins_url( '/', __FILE__ ) );
    2222define('DETHEMEKIT_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
     
    2424define('DETHEMEKIT_ADDONS_BASENAME', plugin_basename( DETHEMEKIT_ADDONS_FILE ) );
    2525define('DETHEMEKIT_ADDONS_DIR_URL', plugin_dir_url( __FILE__ ));
    26 define('DETHEMEKIT_ADDONS_STABLE_VERSION', '2.0.1');
     26define('DETHEMEKIT_ADDONS_STABLE_VERSION', '2.0.2');
    2727
    2828define('DETHEMEKIT_ADDONS_DIR', __DIR__);
     
    149149       
    150150        register_activation_hook( DETHEMEKIT_ADDONS_FILE, array( $this, 'set_transient' ) );
     151
     152        add_action('plugins_loaded', function () {
     153            $default_dethemekit_options = array(
     154                'de_scroll_animation'   => '1',
     155                'de_reveal_animation'   => '1',
     156                'de_staggering'   => '1',
     157                'de_carousel'   => '1',
     158                'de_gallery'   => '1'
     159            );
     160     
     161            $dethemekit_options = get_option( 'dethemekit_option' );
     162            if (!$dethemekit_options) {
     163                update_option( 'dethemekit_option', $default_dethemekit_options );
     164            }     
     165        });
    151166
    152167        add_action('plugins_loaded', function () {
  • dethemekit-for-elementor/trunk/includes/class-addons-integration.php

    r2708120 r2714420  
    148148     */
    149149    private function widgets_register() {
     150        $dethemekit_option = get_option( 'dethemekit_option' );
    150151
    151152        $check_component_active = self::$modules;
    152        
     153
    153154        foreach ( glob( DETHEMEKIT_ADDONS_PATH . 'widgets/' . '*.php' ) as $file ) {
    154155           
     
    156157           
    157158            $enabled = isset( $check_component_active[ $slug ] ) ? $check_component_active[ $slug ] : '';
    158            
     159
     160            if ( $slug === 'dethemekit-carousel' ) {
     161                $enabled = isset( $dethemekit_option['de_carousel'] ) && $dethemekit_option['de_carousel'];
     162            }
     163
     164            if ( $slug === 'dethemekit-grid' ) {
     165                $enabled = isset( $dethemekit_option['de_gallery'] ) && $dethemekit_option['de_gallery'];
     166            }
     167
    159168            if ( filter_var( $enabled, FILTER_VALIDATE_BOOLEAN ) || ! $check_component_active ) {
    160169                $this->register_addon( $file );
  • dethemekit-for-elementor/trunk/includes/ext/element-extension.php

    r2708120 r2714420  
    4545        public function init() {
    4646
    47             // $dethemekit_option = get_option( 'dethemekit_option' );
    48             // update_option($dethemekit_option['de_carousel'],array($this,'xxx') );
    49             // var_dump($dethemekit_option);
     47            $dethemekit_option = get_option( 'dethemekit_option' );
    5048           
    51             // if ( isset( $dethemekit_option['de_carousel'])) {
     49            if ( isset( $dethemekit_option['de_carousel'] ) && $dethemekit_option['de_carousel']) {
    5250                add_action( 'elementor/element/section/section_advanced/after_section_end', array( $this, 'register_controls' ), 10, 2 );
    53             // }
    54 
    55             add_action( 'elementor/element/column/section_advanced/after_section_end', array( $this, 'after_column_section_layout' ), 10, 2 );
     51                add_action( 'elementor/element/column/section_advanced/after_section_end', array( $this, 'after_column_section_layout_carousel' ), 10, 2 );
     52            }
     53
     54            add_action( 'elementor/element/column/section_advanced/after_section_end', array( $this, 'after_column_section_layout' ), 11, 2 );
    5655
    5756            add_action( 'elementor/frontend/section/before_render',  array( $this, 'column_before_render' ) );
     
    582581
    583582        /**
    584          * After column_layout callback
     583         * After column_layout callback carousel
    585584         *
    586585         * @param  object $obj
     
    588587         * @return void
    589588         */
    590         public function after_column_section_layout( $obj ) {
     589        public function after_column_section_layout_carousel( $obj ) {
    591590
    592591            if ( !empty ($obj->settings )){
     
    11031102
    11041103            // }
     1104        }
     1105
     1106        /**
     1107         * After column_layout callback
     1108         *
     1109         * @param  object $obj
     1110         * @param  array $args
     1111         * @return void
     1112         */
     1113        public function after_column_section_layout( $obj ) {
     1114
     1115            if ( !empty ($obj->settings )){
     1116                $data     = $obj->settings;
     1117                // var_dump($data);
     1118                $settings = isset($data['settings'])?$data['settings']:''; 
     1119            }
    11051120
    11061121            $obj->start_controls_section(
  • dethemekit-for-elementor/trunk/includes/ext/sina/assets/css/letter/normalize.css

    r2704046 r2714420  
    1 article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
     1article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
  • dethemekit-for-elementor/trunk/includes/ext/sina/assets/js/de_scroll_animation.preview.js

    r2704046 r2714420  
    409409} );
    410410
    411 jQuery( document ).on( 'ready', () => {
     411jQuery( document ).ready( () => {
    412412  de_scroll_init_responsive()
    413413})
Note: See TracChangeset for help on using the changeset viewer.