Plugin Directory

Changeset 2384390


Ignore:
Timestamp:
09/18/2020 11:41:58 AM (6 years ago)
Author:
devbunch
Message:

ids fix

Location:
master-elements/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • master-elements/trunk/addons/widgets/navigation/navigation.php

    r2383627 r2384390  
    15181518        <!-- ///////////////////////////////////////////////// -->
    15191519
    1520         <?php if ($settings['master_navigation_header_alignment'] == 'center') { ?>
     1520        <?php if ($settings['master_navigation_header_alignment'] == 'center') { echo 'center'; ?>
    15211521        <header class="stickys master-nav-header<?= $headerAlign ?><?= $class ?><?= $header ?>"
    15221522                data-animate="<?= $settings['master_navigation_entrance_animation'] ?>"
  • master-elements/trunk/admin/pages/addons.php

    r2363890 r2384390  
    1818    return $value;
    1919}
     20
    2021?>
    2122
     
    6162            $activation = (isset($settings[$type['id']]['name']) && $settings[$type['id']]['name'] = $type['id']) ? $settings[$type['id']]['value'] : 'no';
    6263
    63            
     64
    6465            ?>
    65                 <?php
    66                 $woo_value = get_me_settings_for_woo();
    67                
    68                 if($type['id'] == 'me_woo_products'){
     66            <?php
     67            $woo_value = get_me_settings_for_woo();
    6968
    70                     if($woo_value == 'yes')
    71                     {
    72                         ?><div class="em-switch-box">
     69            if ($type['id'] == 'me_woo_products') {
    7370
    74                         <div class="master-switch-group ">
    75        
    76                        
    77                             <label class="attr-input-label"><?php esc_html_e($type['name'], 'masterelements'); ?></label>
    78        
    79                             <div class="master-admin-input-switch me_settings">
    80        
    81                                 <input type="checkbox" value="<?= $activation; ?>"
    82                                        class="master-admin-control-input master-template-activition master-active-<?= $activation; ?>"
    83                                        name="activation_val">
    84        
    85                                 <label class="master-admin-control-label" for="master_activation_modal_input">
    86        
    87                                            <span class="master-admin-control-label-switch" data-active="ON"
    88        
    89                                                  data-inactive="OFF"></span>
    90        
    91                                 </label>
    92        
    93                                 <label type="hidden" name="type" class="type_filed" value="yes">
    94                                
    95                                 <label type="hidden" class="activation_filed" name="activation"
    96                                        value="yes">
    97        
    98                             </div>
    99        
    100                             <div class="info">
    101                                 <a href="#">How to</a>
    102                             </div>
    103        
    104                         </div>
    105        
    106                     </div><?php
    107                     }
    108                     else{
    109                        
    110                     }
    111                 }
    112                 else{?>
     71                if ($woo_value == 'yes') {
     72                    ?>
    11373                    <div class="em-switch-box">
    11474
    11575                    <div class="master-switch-group ">
    116    
    117                    
     76
     77
    11878                        <label class="attr-input-label"><?php esc_html_e($type['name'], 'masterelements'); ?></label>
    119    
     79
    12080                        <div class="master-admin-input-switch me_settings">
    121    
     81
    12282                            <input type="checkbox" value="<?= $activation; ?>"
    12383                                   class="master-admin-control-input master-template-activition master-active-<?= $activation; ?>"
    12484                                   name="activation_val">
    125    
     85
     86                            <label class="master-admin-control-label" for="master_activation_modal_input">
     87       
     88                                           <span class="master-admin-control-label-switch" data-active="ON"
     89
     90                                                 data-inactive="OFF"></span>
     91
     92                            </label>
     93
     94                            <label type="hidden" name="type" class="type_filed" value="yes">
     95
     96                                <label type="hidden" class="activation_filed" name="activation"
     97                                       value="yes">
     98
     99                        </div>
     100
     101                        <div class="info">
     102                            <a href="#">How to</a>
     103                        </div>
     104
     105                    </div>
     106
     107                    </div><?php
     108                } else {
     109
     110                }
     111            } else {
     112                ?>
     113                <div class="em-switch-box">
     114
     115                    <div class="master-switch-group ">
     116
     117
     118                        <label class="attr-input-label"><?php esc_html_e($type['name'], 'masterelements'); ?></label>
     119
     120                        <div class="master-admin-input-switch me_settings">
     121
     122                            <input type="checkbox" value="<?= $activation; ?>"
     123                                   class="master-admin-control-input master-template-activition master-active-<?= $activation; ?>"
     124                                   name="activation_val">
     125
    126126                            <label class="master-admin-control-label" for="master_activation_modal_input">
    127127   
    128128                                       <span class="master-admin-control-label-switch" data-active="ON"
    129    
     129
    130130                                             data-inactive="OFF"></span>
    131    
     131
    132132                            </label>
    133    
     133
    134134                            <input type="hidden" name="type" class="type_filed" value="<?= $type['id']; ?>">
    135                            
     135
    136136                            <input type="hidden" class="activation_filed" name="activation"
    137137                                   value="<?= (!empty($activation) ? $activation : 'yes?no'); ?>">
    138    
     138
    139139                        </div>
    140    
     140
    141141                        <div class="info">
    142142                            <a href="#">How to</a>
    143143                        </div>
    144    
     144
    145145                    </div>
    146    
     146
    147147                </div>
    148                
    149            
    150148
    151             <?php
    152                 }
    153            
     149
     150                <?php
     151            }
     152
    154153        } ?>
    155154
  • master-elements/trunk/admin/pages/dashboard.php

    r2377834 r2384390  
    5757            <button class="em-tablinks"
    5858                    onclick="openDashboardTab('Dashboard')"><?php echo __('Dashboard', 'masterelements'); ?></button>
    59 
    60             <!--            <button class="em-tablinks" onclick="openDashboardTab('Customization')">-->
    61             <?php //echo __('Customization','masterelements'); ?><!--</button>-->
    62 
    63             <!--            <button class="em-tablinks" onclick="openDashboardTab('Demo-Importer')">-->
    64             <?php //echo __('Demo Importer','masterelements'); ?><!--</button>-->
    65 
    66             <!--            <button class="em-tablinks" onclick="openDashboardTab('Template-Kits')">-->
    67             <?php //echo __('Templates','masterelements'); ?><!--</button>-->
    68 
    69             <!--            <button class="em-tablinks" onclick="openDashboardTab('Plugins')">-->
    70             <?php //echo __('Plugins','masterelements'); ?><!--</button>-->
    7159
    7260            <button class="em-tablinks"
  • master-elements/trunk/admin/pages/license.php

    r2317395 r2384390  
    11<div class="em-option-boxes">
    22
    3                   <h2 class="margin-top0 font-size36 margin-bottom20">License Settings</h2>
     3    <h2 class="margin-top0 font-size36 margin-bottom20">License Settings</h2>
    44
    5                   <p class="line-height24">Enter your license Key here to activate MasterElements and get features updates support and<br>
     5    <p class="line-height24">Enter your license Key here to activate MasterElements and get features updates support and<br>
    66
    77        unlimited access to the template libary</p>
    88
    9       <ol class="license-listing">
     9    <ol class="license-listing">
    1010
    11          <li>Log in to your <a href="#">Themeforest account</a> to get your license Key.
     11        <li>Log in to your <a href="#">Themeforest account</a> to get your license Key.
    1212
    13          <li>If you don’t yet have a license key, get <a href="#">ElemenKit Widgets</a> now.</li>
     13        <li>If you don’t yet have a license key, get <a href="#">ElemenKit Widgets</a> now.</li>
    1414
    15           <li>Copy the ElementKit license Key from your account and paste it below.</li>
     15        <li>Copy the ElementKit license Key from your account and paste it below.</li>
    1616
    17       </ol>
     17    </ol>
    1818
    19       <h4>Your License Key</h4>
     19    <h4>Your License Key</h4>
    2020
    21          <form action="" class="activation_form">
     21    <form action="" class="activation_form">
    2222
    23             <input type="text" placeholder="Please insert your license Key here" />
     23        <input type="text" placeholder="Please insert your license Key here"/>
    2424
    25             <button type="submit" class="submit-btn">Activate</button>
     25        <button type="submit" class="submit-btn">Activate</button>
    2626
    27          </form>
     27    </form>
    2828
    2929
     30    <div class="product-key-not-fout">
    3031
    31          <div class="product-key-not-fout">
     32        <P>Still can’t find your lisence Key? <a href="#">Read here!</a></P>
    3233
    33             <P>Still can’t find your lisence Key? <a href="#">Read here!</a></P>
     34    </div>
    3435
    35                </div>
     36
     37</div>
     38
     39</div>
     40
     41<?php
    3642
    3743
     
    3945
    4046
    41          </div>
    42 
    43       </div>
    44 
    45       <?php
    46 
    47 
    48 
    49 
    50 
  • master-elements/trunk/admin/pages/modules.php

    r2378780 r2384390  
    55
    66function missing_woocommmerce_notice()
    7         {
    8            
    9             if (file_exists(WP_PLUGIN_DIR . '/woocommerce/woocommerce.php')) {
     7{
    108
    11                 $btn['label'] = esc_html__('Activate Woocommerce', 'masterelements');
     9    if (file_exists(WP_PLUGIN_DIR . '/woocommerce/woocommerce.php')) {
    1210
    13                 $btn['url'] = wp_nonce_url('plugins.php?action=activate&plugin=woocommerce/woocommerce.php&plugin_status=all&paged=1', 'activate-plugin_woocommerce/woocommerce.php');
     11        $btn['label'] = esc_html__('Activate Woocommerce', 'masterelements');
    1412
    15             } else {
    16                
    17                 $btn['label'] = esc_html__('Install Woocommerce', 'masterelements');
     13        $btn['url'] = wp_nonce_url('plugins.php?action=activate&plugin=woocommerce/woocommerce.php&plugin_status=all&paged=1', 'activate-plugin_woocommerce/woocommerce.php');
    1814
    19                 $btn['url'] = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=woocommerce'), 'install-plugin_woocommerce');
     15    } else {
    2016
    21             }
     17        $btn['label'] = esc_html__('Install Woocommerce', 'masterelements');
    2218
    23             \MasterElements\Notice::sendParams(
     19        $btn['url'] = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=woocommerce'), 'install-plugin_woocommerce');
    2420
    25                 [
     21    }
     22
     23    \MasterElements\Notice::sendParams(
     24
     25        [
    2626
    2727
    28                     'type' => 'error',
     28            'type' => 'error',
    2929
    30                     'dismissible' => true,
     30            'dismissible' => true,
    3131
    32                     'btn' => $btn,
     32            'btn' => $btn,
    3333
    34                     'message' => '',
     34            'message' => '',
    3535
    36                 ]
     36        ]
    3737
    38             );
    39            
    40         }
    41      
     38    );
     39
     40}
     41
    4242
    4343?>
     
    6666
    6767        foreach ($template_types as $type) {
    68            
    69            
     68
     69
    7070            $activation = (isset($settings[$type['id']]['name']) && $settings[$type['id']]['name'] = $type['id']) ? $settings[$type['id']]['value'] : 'no';
    7171
    72            
     72
    7373            ?>
    7474
     
    9191                            echo '<input type="hidden" name="type" class="sub_addons" value="' . $sub_addon . '">';
    9292                        }
    93                        
    94                        
     93
     94
    9595                        ?>
    96                        
     96
    9797                        <input type="hidden" class="activation_filed" id="activation_filed" name="activation"
    9898                               value="<?= (!empty($activation) ? $activation : 'yes?no'); ?>">
     
    107107</div>
    108108<?php
    109 if( $type['id'] == 'me_wooproduct' && $activation == 'yes')
    110 {
    111     if (file_exists(WP_PLUGIN_DIR . '/woocommerce/woocommerce.php') && is_plugin_active('woocommerce/woocommerce.php'))
    112     {   
    113        //echo "Active";
     109if ($type['id'] == 'me_wooproduct' && $activation == 'yes') {
     110    if (file_exists(WP_PLUGIN_DIR . '/woocommerce/woocommerce.php') && is_plugin_active('woocommerce/woocommerce.php')) {
     111        //echo "Active";
     112    } else {
     113        missing_woocommmerce_notice();
    114114    }
    115     else
    116     {
    117         missing_woocommmerce_notice(); 
    118     }
    119    
     115
    120116}
    121117?>
  • master-elements/trunk/changelog.txt

    r2383627 r2384390  
     118/09/2020
     2
     3Version 5.9
     4
     5    [Fix] ID
     6
     718/09/2020
     8
     9Version 5.8
     10
     11    [Fix] Design
     12
    11317/09/2020
    214
  • master-elements/trunk/masterelements.php

    r2383627 r2384390  
    1010 * Plugin URI: https://akdesigner.com/
    1111 * Author: TeamDevBunch
    12  * Version: 5.7
     12 * Version: 5.9
    1313 * Tested up to: 5.5
    1414 * Author URI: https://devbunch.com/
  • master-elements/trunk/modules/theme-builder/me-cpt.php

    r2378780 r2384390  
    14881488
    14891489
    1490         return false;
     1490        return 0;
    14911491
    14921492    }
  • master-elements/trunk/readme.txt

    r2383627 r2384390  
    6464
    6565== Changelog ==
     66= 18/09/2020 Version 5.9 =
     67*  [Fix] ID
     68
     69= 18/09/2020 Version 5.8 =
     70*  [Fix] Design
     71
    6672= 17/09/2020 Version 5.7 =
    6773*  [Fix] Navigation Fix
Note: See TracChangeset for help on using the changeset viewer.