Plugin Directory

Changeset 2758087


Ignore:
Timestamp:
07/18/2022 05:01:17 PM (4 years ago)
Author:
wphosthub
Message:
  • Small fix dark mode view and Improvement
Location:
elekits
Files:
91 added
5 edited

Legend:

Unmodified
Added
Removed
  • elekits/trunk/README.txt

    r2757048 r2758087  
    66Tested up to: 6.0
    77Requires PHP: 7.4
    8 Stable tag: 0.0.8
     8Stable tag: 0.0.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3030
    3131== Changelog ==
     32
     33= 0.0.9 - 2022-07-18 =
     34* Small fix dark mode view and Improvement
    3235
    3336= 0.0.8 - 2022-07-15 =
  • elekits/trunk/admin/class-elekits-admin.php

    r2755956 r2758087  
    8181    {
    8282        $screen = get_current_screen();
    83         if (isset($screen->parent_file) && 'plugins.php' === $screen->parent_file && 'update' === $screen->id) {
     83        if (isset($screen->parent_file) && 'plugins.php' === $screen->parent_file && 'update' === $screen->id || 'toplevel_page_elekits-sites' === $screen->id) {
    8484            return;
    8585        }
     
    8888        $is_recomended_plugin = false;
    8989        $is_require_plugin = false;
    90         $message = '<h2 class="elekits-line-bottom-warning">' . __("EleKits Recommended / Required Plugin", 'elekits-site') . '</h2>';
     90        $message = '<h2 class="elekits-line-bottom-warning">' . __("EleKits Required Plugin", 'elekits-site') . '</h2>';
    9191        $recommended_plugin = array(
    9292            'elementor-pro' => array(
     
    107107        );
    108108        if (!did_action('elementor/loaded')) {
    109             $message .= '<h2 class="elekits-line-bottom-warning">' . __("Required Plugin", 'elekits-site') . '</h2>';
    110109            if (_is_elementor_installed()) {
    111110                if (!current_user_can('activate_plugins')) {
     
    130129            }
    131130        }
    132         if ($recommended_plugin) {
    133             $message .= '<h2 class="elekits-line-bottom-warning">' . __("Recommended Plugin", 'elekits-site') . '</h2>';
    134             foreach ($recommended_plugin as $k => $val) {
    135                 $plugin_file = $val['plugin_file'];
    136                 $plugin_name = $val['plugin_name'];
    137                 $plugin_text = $val['plugin_text'];
    138                 $activation_url = wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $plugin_file);
    139                 $install_url = wp_nonce_url(self_admin_url("update.php?action=install-plugin&plugin=$k"), "install-plugin_$k");
    140                 if ($k == "elementor-pro") {
    141                     $link = ELEKITS_STORE_URL . 'id/elekits-pro-id/elementor-pro/';
    142                     if (_is_plugins_installed($plugin_file) && !is_plugin_active($plugin_file)) {
    143                         if (!current_user_can('activate_plugins')) {
    144                             return;
    145                         }
    146                         $is_recomended_plugin = true;
    147                         $message .= '<h3>' . esc_html__("Activate the $plugin_name", 'elekits-sites') . '</h3>';
    148                         $message .= '<p>' . esc_html__("Before you can use all the features of EleKits, you need to activate the $plugin_name.", 'elekits-sites') . '</p>';
    149                         $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $activation_url, esc_html__("Activate $plugin_text", 'elekits-sites')) . '</p>';
    150                     } else {
    151                         if (!file_exists(WP_PLUGIN_DIR . $plugin_file) && _is_plugins_installed($plugin_file) && !is_plugin_active($plugin_file)) {
    152                             $message .= '<h3>' . sprintf(__('Get access plugin %s', 'elekits-sites'), $plugin_text) . '</h3>';
    153                             $message .= '<p>' . sprintf(__('%s', 'elekits-sites'), '<a href="' . esc_url($link) . '" class="button-primary" target="_blank">Get access ' . $plugin_text . '</a>') . '</p>';
    154                         }
    155                     }
    156                 } else {
    157 
    158                     if (_is_plugins_installed($plugin_file)) {
    159                         if (!is_plugin_active($plugin_file)) {
    160                             if (!current_user_can('activate_plugins')) {
    161                                 return;
    162                             }
    163                             $is_recomended_plugin = true;
    164                             $message .= '<h3>' . esc_html__("Activate the $plugin_name", 'elekits-sites') . '</h3>';
    165                             $message .= '<p>' . esc_html__("Before you can use all the features of EleKits, you need to activate the $plugin_name.", 'elekits-sites') . '</p>';
    166                             $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $activation_url, esc_html__("Activate $plugin_text", 'elekits-sites')) . '</p>';
    167                         }
    168                     } else {
    169                         if (!current_user_can('install_plugins')) {
    170                             return;
    171                         }
    172                         $is_recomended_plugin = true;
    173                         $message .= '<h3>' . esc_html__("Install and Activate the $plugin_name", 'elekits-sites') . '</h3>';
    174                         $message .= '<p>' . esc_html__("Before you can use all the features of EleKits, you need to install and activate the $plugin_name.", 'elekits-sites') . '</p>';
    175                         $message .= '<p>' . sprintf('<a href="%s" class="button-primary">%s</a>', $install_url, esc_html__("Install $plugin_text", 'elekits-sites')) . '</p>';
    176                     }
    177                 }
    178             }
    179         }
    180         if ($is_recomended_plugin || $is_require_plugin) {
     131        if ($is_require_plugin) {
    181132            elekit_site_print_error($message);
    182133        }
     
    193144
    194145    // Draw option page
    195     public function elekits_sites_config_page()
     146    public function elekits_sites_config_page($ook)
    196147    {
    197148        ?>
  • elekits/trunk/admin/elementor/assets/js/elementor-admin-page.js

    r2757048 r2758087  
    834834                    .done(function (response) {
    835835                        console.groupEnd();
    836                         console.log(response);
    837836                        if (response.success) {
    838837                            if (typeof response.data !== "undefined"){
     
    13281327
    13291328        _open: function (e) {
    1330             //$(document).trigger('elekits-sites__elementor-open-before');
    1331 
     1329            $(document).trigger('elekits-sites__elementor-open-before');
    13321330            $('body').addClass('elekits-sites__elementor-open');
    13331331            $elscope_elekits.find('.elekits-preview-actions-wrap').remove();
  • elekits/trunk/admin/elementor/class-elekits-site.php

    r2757048 r2758087  
    210210                'template_id' => $template_id,
    211211                'type_template' => $type_template,
    212                 'timeout' => 30,
     212                'timeout' => 30
    213213            );
    214214
  • elekits/trunk/elekits.php

    r2757048 r2758087  
    1717 * Plugin URI:        https://wphosthub.com
    1818 * Description:       Responsive and high-converting Elementor landing page templates.
    19  * Version:           0.0.8
     19 * Version:           0.0.9
    2020 * Author:            WPhostHub
    2121 * Author URI:        https://profiles.wordpress.org/wphosthub/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'ELEKITS_VERSION', '0.0.8' );
     38define( 'ELEKITS_VERSION', '0.0.9' );
    3939define( 'ELEKITS_FILE', __FILE__ );
    4040define( 'ELEKITS_DIR_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.