Plugin Directory

Changeset 2944848


Ignore:
Timestamp:
07/29/2023 08:45:43 AM (2 years ago)
Author:
bdevs
Message:

Added Theme Settings options

Location:
generic-elements-for-elementor
Files:
216 added
11 edited

Legend:

Unmodified
Added
Removed
  • generic-elements-for-elementor/trunk/admin/assets/css/generic-admin.min.css

    r2787364 r2944848  
    36473647    margin-left: 15px;
    36483648}
     3649
     3650.generic-admin-widgets a {
     3651    text-decoration: none !important;
     3652}
     3653
     3654.generic-admin-welcome h3.header,
     3655.generic-admin-widgets h3.header {
     3656    padding-top: 40px;
     3657}
     3658
     3659.generic-admin-widgets h4 {
     3660    font-size: 18px;
     3661    font-weight: 500;
     3662    color: #6A6A6A;
     3663    text-align: center;
     3664}
     3665.generic-admin-widgets h4:hover { 
     3666    color: #F2375D !important
     3667}
     3668.generic-admin-widgets .box > div {
     3669    padding: 20px 15px;
     3670    background-color: #fff;
     3671    border-radius: 4px;
     3672    border: 1px solid #efefef;
     3673    border-radius: 10px;
     3674    text-align: center;
     3675    transition: 0.3s;
     3676    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.05);
     3677}
     3678
     3679.generic-admin-widgets .box > div:hover {
     3680    box-shadow: 10px 6px 20px rgba(10, 2, 13, 0.05);
     3681    border-color: #fff;
     3682}
     3683
     3684.generic-admin-widgets .generic-pro-tag {
     3685    position: absolute;
     3686    top: 20px;
     3687    left: 20px;
     3688}
     3689
     3690.generic-admin-widgets .generic-pro-tag span {
     3691    color: #fff;
     3692    border: 1px solid #F2375D;
     3693    display: inline-block;
     3694    padding: 3px 10px;
     3695    border-radius: 50px;
     3696    text-transform: uppercase;
     3697    font-size: 12px;
     3698    font-weight: 500;
     3699    background-color: #F2375D;
     3700    line-height: 1;
     3701}
     3702
     3703.generic-elements-admin-settings .tab-icon {
     3704    padding-right: 10px;
     3705}
     3706
     3707.generic-admin-welcome .hero-subtitle {
     3708    font-weight: 700;
     3709    font-size: 13px;
     3710    letter-spacing: 0.14em;
     3711    text-transform: uppercase;
     3712    color: #6A6A6A;
     3713    display: inline-block;
     3714    position: relative;
     3715    margin-bottom: 22px;
     3716    border: 1px solid #6A6A6A;
     3717    border-radius: 5px;
     3718    padding: 10px 10px;
     3719}
     3720
     3721.generic-admin-welcome .hero-subtitle::before {
     3722    background: linear-gradient(270deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70.66%);
     3723    border-radius: 50px;
     3724    transform: matrix(-1, 0, 0, 1, 0, 0);
     3725    position: absolute;
     3726    left: -20px;
     3727    right: -20px;
     3728    top: -10px;
     3729    bottom: -10px;
     3730    content: "";
     3731}
     3732
     3733.generic-admin-welcome .generic-hero-description {
     3734    font-size: 18px;
     3735}
     3736
     3737.generic-admin-welcome  .generic-btn {
     3738    font-size: 14px;
     3739    display: inline-flex;
     3740    justify-content: center;
     3741    font-weight: 600;
     3742    border: none;
     3743    outline: none;
     3744    box-shadow: none;
     3745    height: 60px;
     3746    line-height: 60px;
     3747    border-radius: 10px;
     3748    color: #fff;
     3749    background-color: #ef0454;
     3750    padding: 0px 38px;
     3751    cursor: pointer;
     3752    position: relative;
     3753    overflow: hidden;
     3754    text-transform: uppercase;
     3755}
  • generic-elements-for-elementor/trunk/admin/classes/Admin.php

    r2787364 r2944848  
    3131    public function generic_el_menu_page()
    3232    {
    33         add_menu_page('Generic Elements', 'Generic Elements', 'administrator', 'generic-elements-admin', array($this, 'generic_el_page'), 'dashicons-tickets', 6);
    34         add_submenu_page('generic-elements-admin', 'All Generic Elements', 'Eeneric Elements', 'manage_options', 'generic-elements-admin');
    35         add_submenu_page('generic-elements-admin', __('Add New', 'generic-elements'), __('Add New', 'generic-elements'), 'manage_options', 'post-new.php?post_type=generic_el_template');
    36         add_submenu_page('generic-elements-admin', __('Add Generic Elements', 'generic-elements'), __('Add Generic Elements', 'generic-elements'), 'manage_options', 'post-new.php?post_type=generic_el_template');
     33        add_menu_page('Generic Elements', 'Generic Elements', 'administrator', 'generic-elements-admin', array($this, 'generic_el_landing_page'), 'dashicons-tickets', 6);
     34        add_submenu_page('generic-elements-admin', __('Settings', 'generic-elements'), __('Settings', 'generic-elements'), 'manage_options', 'generic-elements-settings', array($this, 'generic_el_settings_page'));
     35        add_submenu_page('generic-elements-admin', __('Generic Templates', 'generic-elements'), __('Generic Templates', 'generic-elements'), 'manage_options', 'edit.php?post_type=generic_el_template');
     36        add_submenu_page('generic-elements-admin', __('Add Template', 'generic-elements'), __('Add Template', 'generic-elements'), 'manage_options', 'post-new.php?post_type=generic_el_template');
     37    }
     38
     39    /**
     40    * Options Settings
     41    */
     42    public function generic_el_options()
     43    {
     44        //register options settings
     45        register_setting( 'generic-elements-settings-group', 'generic_gsap_enable_option' );
     46        register_setting( 'generic-elements-settings-group', 'generic_bootstrap_option' );
     47        register_setting( 'generic-elements-settings-group', 'generic_fontawesome_option' );
     48        register_setting( 'generic-elements-settings-group', 'generic_magnific_popup_option' );
     49        register_setting( 'generic-elements-settings-group', 'generic_odometer_option' );
     50        register_setting( 'generic-elements-settings-group', 'generic_appear_option' );
     51        register_setting( 'generic-elements-settings-group', 'generic_waypoints_option' );
     52        register_setting( 'generic-elements-settings-group', 'generic_animate_option' );
     53        register_setting( 'generic-elements-settings-group', 'generic_wow_option' );
     54        register_setting( 'generic-elements-settings-group', 'generic_swiper_option' );
     55        register_setting( 'generic-elements-settings-group', 'generic_meanmenu_option' );
    3756    }
    3857
     
    89108    }
    90109
    91 
     110     /*
     111    * Generic Elements landing page
     112    */
     113
     114    public function generic_el_landing_page()
     115    {
     116        $all_active_class = '';
     117        $enabled_active_class = '';
     118        $disabled_active_class = '';
     119        $trash_active_class = '';
     120        $pagenow = '';
     121        $paged = 1;
     122        $count_posts = self::count_posts();
     123        $screen = get_current_screen();
     124
     125        $user = get_current_user_id();
     126        $option = $screen->get_option('per_page', 'option');
     127        //$per_page = get_user_meta($user, $option, true);
     128        $per_page = empty($per_page) ? 10 : $per_page;
     129        $total_page = 1;
     130        $pagination_current_url = admin_url('admin.php?page=generic-elements-settings');
     131
     132        $post_args = array(
     133            'post_type' => 'generic_el_template',
     134            'numberposts' => -1,
     135            'posts_per_page' => $per_page,
     136        );
     137
     138        if (isset($_GET['page']) && $_GET['page'] == 'generic-elements-settings') {
     139            $all_active_class = 'class="active"';
     140            $pagenow = 'publish, draft';
     141            if (isset($_GET['status']) && $_GET['status'] == 'enabled') {
     142                $pagination_current_url = add_query_arg('status', 'enabled', $pagination_current_url);
     143                $enabled_active_class   = 'class="active"';
     144                $all_active_class       = '';
     145                $pagenow                = 'publish';
     146                $total_page  = ceil($count_posts->enabled / $per_page);
     147            }
     148            if (isset($_GET['status']) && $_GET['status'] == 'disabled') {
     149                $pagination_current_url = add_query_arg('status', 'disabled', $pagination_current_url);
     150                $disabled_active_class  = 'class="active"';
     151                $all_active_class       = '';
     152                $pagenow                = 'publish';
     153                $total_page  = ceil($count_posts->disabled / $per_page);
     154            }
     155            if (isset($_GET['status']) && $_GET['status'] == 'trash') {
     156                $pagination_current_url = add_query_arg('status', 'trash', $pagination_current_url);
     157                $trash_active_class     = 'class="active"';
     158                $all_active_class       = '';
     159                $pagenow                = 'trash';
     160                $total_page  = ceil($count_posts->trash / $per_page);
     161            }
     162            if (isset($_GET['paged'])) {
     163                if (intval($_GET['paged']) > 0) {
     164                    $paged = intval($_GET['paged']);
     165                }
     166            }
     167        }
     168
     169        $generic_el_posts = get_posts($post_args);
     170
     171        $tabs_titles = apply_filters('generic_elements_admin_landing_tabs', array(
     172            [
     173                'title' => __('Welcome', 'generic-elements'),
     174                'icon' => 'magic-wand.svg',
     175                'file' => 'welcome-tpl'
     176            ],
     177            [
     178                'title' => __('Widgets', 'generic-elements'),
     179                'icon' => 'database.svg',
     180                'file' => 'review-widgets-tpl'
     181            ],
     182            [
     183                'title' => __('Get Premium', 'generic-elements'),
     184                'icon' => 'database.svg',
     185                'file' => 'get-premium-tpl'
     186            ]
     187        ));
     188        include_once GENERIC_ELEMENTS_TEMPLATES . '/landing.php';
     189    }
    92190
    93191    /*
    94192    * Generic Elements page status
    95193    */
    96 
    97     public function generic_el_page()
     194    public function generic_el_admin_page()
    98195    {
    99196        $all_active_class = '';
     
    163260    }
    164261
    165 
     262    /*
     263    * Generic Elements settings page
     264    */
     265    public function generic_el_settings_page()
     266    {
     267        $all_active_class = '';
     268        $enabled_active_class = '';
     269        $disabled_active_class = '';
     270        $trash_active_class = '';
     271        $pagenow = '';
     272        $paged = 1;
     273        $count_posts = self::count_posts();
     274        $screen = get_current_screen();
     275
     276        $user = get_current_user_id();
     277        $option = $screen->get_option('per_page', 'option');
     278        //$per_page = get_user_meta($user, $option, true);
     279        $per_page = empty($per_page) ? 10 : $per_page;
     280        $total_page = 1;
     281        $pagination_current_url = admin_url('admin.php?page=generic-elements-settings');
     282
     283        $post_args = array(
     284            'post_type' => 'generic_el_template',
     285            'numberposts' => -1,
     286            'posts_per_page' => $per_page,
     287        );
     288
     289        if (isset($_GET['page']) && $_GET['page'] == 'generic-elements-settings') {
     290            $all_active_class = 'class="active"';
     291            $pagenow = 'publish, draft';
     292            if (isset($_GET['status']) && $_GET['status'] == 'enabled') {
     293                $pagination_current_url = add_query_arg('status', 'enabled', $pagination_current_url);
     294                $enabled_active_class   = 'class="active"';
     295                $all_active_class       = '';
     296                $pagenow                = 'publish';
     297                $total_page  = ceil($count_posts->enabled / $per_page);
     298            }
     299            if (isset($_GET['status']) && $_GET['status'] == 'disabled') {
     300                $pagination_current_url = add_query_arg('status', 'disabled', $pagination_current_url);
     301                $disabled_active_class  = 'class="active"';
     302                $all_active_class       = '';
     303                $pagenow                = 'publish';
     304                $total_page  = ceil($count_posts->disabled / $per_page);
     305            }
     306            if (isset($_GET['status']) && $_GET['status'] == 'trash') {
     307                $pagination_current_url = add_query_arg('status', 'trash', $pagination_current_url);
     308                $trash_active_class     = 'class="active"';
     309                $all_active_class       = '';
     310                $pagenow                = 'trash';
     311                $total_page  = ceil($count_posts->trash / $per_page);
     312            }
     313            if (isset($_GET['paged'])) {
     314                if (intval($_GET['paged']) > 0) {
     315                    $paged = intval($_GET['paged']);
     316                }
     317            }
     318        }
     319
     320        $generic_el_posts = get_posts($post_args);
     321
     322        $tabs_titles = apply_filters('generic_elements_admin_settings_tabs', array(
     323            [
     324                'title' => __('General', 'generic-elements'),
     325                'icon' => 'magic-wand.svg',
     326                'file' => 'general-setting-tpl'
     327            ],
     328            [
     329                'title' => __('Features', 'generic-elements'),
     330                'icon' => 'database.svg',
     331                'file' => 'features-setting-tpl'
     332            ]
     333        ));
     334        include_once GENERIC_ELEMENTS_TEMPLATES . '/settings.php';
     335    }
    166336
    167337    /**
     
    199369         */
    200370        $current_url = admin_url('admin.php?page=generic-elements-admin');
    201 
    202371
    203372        /**
     
    229398    }
    230399
    231 
    232 
    233 
    234400    /**
    235401     *
  • generic-elements-for-elementor/trunk/admin/classes/AdminMetabox.php

    r2787364 r2944848  
    226226            }
    227227        }
     228
    228229        /**
    229230         * Save all meta!
    230231         */
    231 
    232232        self::save_data($_POST, $post_id);
    233233        do_action('generic_el_save_post');
     
    246246        }
    247247    }
    248 
    249248
    250249    /**
  • generic-elements-for-elementor/trunk/admin/classes/PostType.php

    r2787364 r2944848  
    7777                'publicly_queryable'  => true,
    7878                'show_ui'             => true,
    79                 'show_in_menu'        => true,
     79                'show_in_menu'        => false,
    8080                'show_in_nav_menus'   => false,
    81                 'show_in_admin_bar'   => true,
     81                'show_in_admin_bar'   => false,
    8282                'query_var'           => true,
    8383                'has_archive'         => true,
  • generic-elements-for-elementor/trunk/admin/classes/TemplateGenerator.php

    r2787364 r2944848  
    168168    }
    169169
    170 
    171 
    172 
    173 
    174170    /**
    175171     *
     
    178174     *
    179175     */
    180 
    181176    public static function get_footer_template()
    182177    {
     
    244239    }
    245240
    246 
    247 
    248241}
  • generic-elements-for-elementor/trunk/changelog.txt

    r2899657 r2944848  
    11== Changelog ==
    22
    3 = 1.1.4 - 16-04-2023 =
    4 - Removed heading widget and added generic heading widget.
     3= 1.1.5 - 29-07-2023 =
     4- Added: Theme Settings options.
     5
     6= 1.1.4 - 24-06-2023 =
     7- Added: Theme dark mood option.
    58
    69= 1.1.3 - 05-04-2023 =
  • generic-elements-for-elementor/trunk/generic-elements.php

    r2899657 r2944848  
    11<?php
    2 
    32/**
    43 * Plugin Name:                 Generic Elements For Elementor
    54 * Plugin URI:                  https://generic-elements.bdevs.net/
    65 * Description:                 The ultimate Elementor Addons
    7  * Version:                     1.1.4
     6 * Version:                     1.1.5
    87 * Author:                      bdevs
    98 * Requires at least:           5.8
     
    4948     * @var string
    5049     */
    51     public $version = '1.1.4';
     50    public $version = '1.1.5';
    5251
    5352    /**
     
    129128        new Generic\Elements\TemplateGenerator();
    130129
     130        add_action('admin_init', array($plugin_admin, 'generic_el_options'));
    131131        add_action('admin_menu', array($plugin_admin, 'generic_el_menu_page'));
     132       
    132133
    133134        add_action('save_post_generic_el_template', array($plugin_admin->meta, 'save_metabox'));
     
    139140        add_action('admin_enqueue_scripts', array($plugin_admin, 'enqueue_styles'));
    140141        add_action('admin_enqueue_scripts', array($plugin_admin, 'enqueue_scripts'));
     142
     143        //checked generic elements template in elementor setting
     144        update_option('elementor_disable_color_schemes','yes');
     145        update_option('elementor_disable_typography_schemes','yes');
     146        $bdevs_cpt = get_option('elementor_cpt_support') ? get_option('elementor_cpt_support') : array();
     147        $bdevs_cpt = array_merge($bdevs_cpt, array('post', 'page', 'generic_el_template'));
     148        update_option('elementor_cpt_support', $bdevs_cpt);
    141149    }
    142150
     
    205213    {
    206214        return array(
    207             'generic_el_template' => array('title' => 'Elementor Template', 'plural_title' => 'Elementor Templates', 'rewrite' => 'elementor-template', 'menu_icon' => 'dashicons-awards')
     215            'generic_el_template' => array('title' => 'Generic Elements', 'plural_title' => 'Generic Elements', 'rewrite' => 'elementor-template', 'menu_icon' => 'dashicons-awards')
    208216        );
    209217    }
  • generic-elements-for-elementor/trunk/includes/Assets.php

    r2834387 r2944848  
    1515    public function register_js()
    1616    {
    17         wp_register_script('bootstrap', GENERIC_ELEMENTS_ASSETS . '/lib/js/bootstrap.bundle.min.js', [], GENERIC_ELEMENTS_VERSION, true);
    18 
    19         wp_register_script('magnific-popup', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.magnific-popup.min.js', [], GENERIC_ELEMENTS_VERSION, true);
    20 
    21         wp_register_script('odometer-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.odometer.min.js', [], GENERIC_ELEMENTS_VERSION, true);
    22 
    23         wp_register_script('appear-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.appear.js', [], GENERIC_ELEMENTS_VERSION, true);
    24 
    25         wp_register_script('waypoints-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/waypoints.min.js', [], GENERIC_ELEMENTS_VERSION, true);
    26 
    27         wp_register_script('wow-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/wow.min.js', [], GENERIC_ELEMENTS_VERSION, true);
    28 
    29         wp_register_script('swiper', GENERIC_ELEMENTS_ASSETS . '/lib/js/swiper-bundle.js', [], GENERIC_ELEMENTS_VERSION, true);
    30 
    31         wp_register_script('meanmenu', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.meanmenu.min.js', [], GENERIC_ELEMENTS_VERSION, true);
    32 
     17        //bootstrap front-end framework
     18        if( get_option('generic_bootstrap_option') == 'active' || get_option('generic_bootstrap_option') == '') {
     19            wp_register_script('bootstrap', GENERIC_ELEMENTS_ASSETS . '/lib/js/bootstrap.bundle.min.js', [], GENERIC_ELEMENTS_VERSION, true);
     20        }
     21        //magnific popup images
     22        if(get_option('generic_magnific_popup_option') == 'active' || get_option('generic_magnific_popup_option') == '') {
     23            wp_register_script('magnific-popup', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.magnific-popup.min.js', [], GENERIC_ELEMENTS_VERSION, true);
     24        }
     25        //odometer counter
     26        if(get_option('generic_odometer_option') == 'active' || get_option('generic_bootstrap_option') == '') {
     27            wp_register_script('odometer-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.odometer.min.js', [], GENERIC_ELEMENTS_VERSION, true);
     28        }
     29        //appear
     30        if(get_option('generic_appear_option') == 'active' || get_option('generic_appear_option') == '') {
     31            wp_register_script('appear-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.appear.js', [], GENERIC_ELEMENTS_VERSION, true);
     32        }
     33        //waypoints animation
     34        if(get_option('generic_waypoints_option') == 'active' || get_option('generic_waypoints_option') == '') {
     35            wp_register_script('waypoints-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/waypoints.min.js', [], GENERIC_ELEMENTS_VERSION, true);
     36        }
     37        //wow animation
     38        if(get_option('generic_wow_option') == 'active' || get_option('generic_wow_option') == '') {
     39            wp_register_script('wow-js', GENERIC_ELEMENTS_ASSETS . '/lib/js/wow.min.js', [], GENERIC_ELEMENTS_VERSION, true);
     40        }
     41        //swipper for slider
     42        if(get_option('generic_swiper_option') == 'active' || get_option('generic_swiper_option') == '') {
     43            wp_register_script('swiper', GENERIC_ELEMENTS_ASSETS . '/lib/js/swiper-bundle.js', [], GENERIC_ELEMENTS_VERSION, true);
     44        }
     45        //meanmenu for mobile navigation
     46        if(get_option('generic_meanmenu_option') == 'active' || get_option('generic_meanmenu_option') == '') {
     47            wp_register_script('meanmenu', GENERIC_ELEMENTS_ASSETS . '/lib/js/jquery.meanmenu.min.js', [], GENERIC_ELEMENTS_VERSION, true);
     48        }
     49        //script of generic elements
    3350        wp_register_script('generic-element-js', GENERIC_ELEMENTS_ASSETS . '/js/generic-elements.js', [], GENERIC_ELEMENTS_VERSION, true);
    3451    }
     
    3653    public function register_css()
    3754    {
    38         wp_register_style('bootstrap', GENERIC_ELEMENTS_ASSETS . '/lib/css/bootstrap.min.css', [], GENERIC_ELEMENTS_VERSION, false);
    39 
    40         wp_register_style('fontawesome', GENERIC_ELEMENTS_ASSETS . '/css/fontawesome.min.css', [], GENERIC_ELEMENTS_VERSION, false);
    41 
    42         wp_register_style('magnific-popup', GENERIC_ELEMENTS_ASSETS . '/lib/css/magnific-popup.css', [], GENERIC_ELEMENTS_VERSION, false);
    43 
    44         wp_register_style('odometer-css', GENERIC_ELEMENTS_ASSETS . '/lib/css/odometer.css', [], GENERIC_ELEMENTS_VERSION, false);
    45 
    46         wp_register_style('animate-css', GENERIC_ELEMENTS_ASSETS . '/lib/css/animate.min.css', [], GENERIC_ELEMENTS_VERSION, false);
    47 
    48         wp_register_style('gen-flaticon', GENERIC_ELEMENTS_ASSETS . '/css/gen-flaticon.css', [], GENERIC_ELEMENTS_VERSION, false);
    49 
    50         wp_register_style('swiper', GENERIC_ELEMENTS_ASSETS . '/lib/css/swiper-bundle.css', [], GENERIC_ELEMENTS_VERSION, false);
    51 
    52         wp_register_style('meanmenu', GENERIC_ELEMENTS_ASSETS . '/lib/css/meanmenu.css', [], GENERIC_ELEMENTS_VERSION, false);
    53 
     55        //bootstrap front-end framework
     56        if(get_option('generic_bootstrap_option') == 'active' || get_option('generic_bootstrap_option') == '') {
     57            wp_register_style('bootstrap', GENERIC_ELEMENTS_ASSETS . '/lib/css/bootstrap.min.css', [], GENERIC_ELEMENTS_VERSION, false);
     58        }
     59        //Font Awesome Pro 5.14.0 icons
     60        if(get_option('generic_fontawesome_option') == 'active' || get_option('generic_fontawesome_option') == '') {
     61            wp_register_style('fontawesome', GENERIC_ELEMENTS_ASSETS . '/css/fontawesome.min.css', [], GENERIC_ELEMENTS_VERSION, false);
     62        }
     63        //magnific popup images
     64        if(get_option('generic_magnific_popup_option') == 'active' || get_option('generic_magnific_popup_option') == '') {
     65            wp_register_style('magnific-popup', GENERIC_ELEMENTS_ASSETS . '/lib/css/magnific-popup.css', [], GENERIC_ELEMENTS_VERSION, false);
     66        }
     67        //odometer counter
     68        if(get_option('generic_odometer_option') == 'active' || get_option('generic_odometer_option') == '') {
     69            wp_register_style('odometer-css', GENERIC_ELEMENTS_ASSETS . '/lib/css/odometer.css', [], GENERIC_ELEMENTS_VERSION, false);
     70        }
     71        //animate animation
     72        if(get_option('generic_animate_option') == 'active' || get_option('generic_animate_option') == '') {
     73            wp_register_style('animate-css', GENERIC_ELEMENTS_ASSETS . '/lib/css/animate.min.css', [], GENERIC_ELEMENTS_VERSION, false);
     74        }
     75        //waypoints animation
     76        wp_register_style('gen-flaticon', GENERIC_ELEMENTS_ASSETS . '/css/gen-flaticon.css', [], GENERIC_ELEMENTS_VERSION, false);
     77        //swiper lib for slider
     78        if(get_option('generic_swiper_option') == 'active' || get_option('generic_swiper_option') == '') {
     79            wp_register_style('swiper', GENERIC_ELEMENTS_ASSETS . '/lib/css/swiper-bundle.css', [], GENERIC_ELEMENTS_VERSION, false);
     80        }
     81        //meanmenu for mobile navigation
     82        if(get_option('generic_meanmenu_option') == 'active' || get_option('generic_meanmenu_option') == '') {
     83            wp_register_style('meanmenu', GENERIC_ELEMENTS_ASSETS . '/lib/css/meanmenu.css', [], GENERIC_ELEMENTS_VERSION, false);
     84        }
     85        //style of generic elements
    5486        wp_register_style('generic-element-css', GENERIC_ELEMENTS_ASSETS . '/css/generic-elements.css', [], GENERIC_ELEMENTS_VERSION, false);
    5587    }
  • generic-elements-for-elementor/trunk/readme.txt

    r2899657 r2944848  
    55Tested up to: 6.1.1
    66Requires PHP: 5.4
    7 Stable tag: 1.1.4
     7Stable tag: 1.1.5
    88License: GPLv3 or later
    99License URI: https://opensource.org/licenses/GPL-3.0
     
    7676== Changelog ==
    7777
    78 = 1.1.4 - 16-04-2023 =
    79 - Removed heading widget and added generic heading widget.
     78= 1.1.5 - 29-07-2023 =
     79- Added: Theme Settings options
     80
     81= 1.1.4 - 24-06-2023 =
     82- Added: Theme dark mood option.
    8083
    8184= 1.1.3 - 05-04-2023 =
  • generic-elements-for-elementor/trunk/themes/templates/generic-el-footer.php

    r2899657 r2944848  
    1010?>
    1111        <?php do_action('generic_el_footer'); ?>
     12        <?php if ( get_option('generic_gsap_enable_option') == '1' ): ?>
    1213        </div>
    1314    </div>
     15    <?php endif; ?>
    1416</div>
    1517<?php wp_footer(); ?>
  • generic-elements-for-elementor/trunk/themes/templates/generic-el-header.php

    r2899657 r2944848  
    88 */
    99
     10$theme_dark_mood = get_post_meta(get_the_ID(), 'enable_dark_mood', true);
     11$theme_dark_class = $theme_dark_mood ? 'theme-dark' : '';
     12
    1013?>
    1114
    1215<!DOCTYPE html>
    13 <html <?php language_attributes(); ?>>
     16<html class="<?php print esc_attr($theme_dark_class); ?>" <?php language_attributes(); ?>>
    1417
    1518<head>
     
    2528    <div id="page" class="generic-el site">
    2629    <?php do_action('generic_el_header'); ?>
     30        <?php if ( get_option('generic_gsap_enable_option') == '1' ): ?>
    2731        <div id="smooth-wrapper">
    2832            <div id="smooth-content">
     33        <?php endif; ?>
    2934            <?php do_action('generic_el_breadcrumb'); ?>
Note: See TracChangeset for help on using the changeset viewer.