Plugin Directory

Changeset 3398532


Ignore:
Timestamp:
11/19/2025 06:14:51 AM (4 weeks ago)
Author:
coolplugins
Message:

Update to version 1.0.4 from GitHub

Location:
language-switcher-for-divi-polylang
Files:
38 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • language-switcher-for-divi-polylang/tags/1.0.4/admin/lsdp-feedback-notice.php

    r3352001 r3398532  
    6666            $nonce              = wp_create_nonce( 'lsdp_dismiss_notice' );
    6767            $wrap_cls           = 'notice notice-info is-dismissible';
    68             $img_path           = LSDP_URL . 'assets/images/lsdp-icon.png';
    6968            $p_name             = 'Language Switcher for Divi & Polylang';
    7069            $like_it_text       = 'Rate Now! ★★★★★';
    71             $already_rated_text = esc_html__( 'I already rated it', 'language-switcher-for-divi-polylang' );
     70            $already_rated_text = esc_html__( 'Already Reviewed', 'language-switcher-for-divi-polylang' );
    7271            $not_interested     = esc_html__( 'Not Interested', 'language-switcher-for-divi-polylang' );
    7372            $not_like_it_text   = esc_html__( 'No, not good enough, i do not like to rate it!', 'language-switcher-for-divi-polylang' );
     
    7776            $message = wp_kses_post( "Thanks for using <b>$p_name</b>. We hope it meets your expectations! <br/>Please give us a quick rating, it works as a boost for us to keep working on more <a href='https://coolplugins.net/?utm_source=plugin_dashboard&utm_medium=reviewbox' target='_blank'><strong>Cool Plugins</strong></a>!<br/>" );
    7877
    79             $html       = '<div data-ajax-url="%8$s"  data-ajax-callback="%9$s" data-nonce="%12$s" class="lsdp-feedback-notice-wrapper %1$s">
    80             <div class="logo_container"><a href="%5$s"><img src="%2$s" alt="%3$s"></a></div>
    81             <div class="message_container">%4$s
    82             <div class="callto_action">
    83             <ul>
    84                 <li class="love_it"><a href="%5$s" class="like_it_btn button button-primary" target="_new" title="%6$s">%6$s</a></li>
    85                 <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%7$s">%7$s</a></li>
    86                 <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%11$s">%11$s</a></li>
    87            
    88             </ul>
    89             <div class="clrfix"></div>
    90             </div>
    91             </div>
    92             </div>';
     78            $html = '<div data-ajax-url="%7$s"  data-ajax-callback="%8$s" data-nonce="%11$s" class="lsdp-feedback-notice-wrapper %1$s">
     79                <div class="message_container">%3$s
     80                <div class="callto_action">
     81                <ul>
     82                    <li class="love_it"><a href="%4$s" class="like_it_btn button button-primary" target="_new" title="%5$s">%5$s</a></li>
     83                    <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%6$s">%6$s</a></li>
     84                    <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%10$s">%10$s</a></li>
     85                </ul>
     86                <div class="clrfix"></div>
     87                </div>
     88                </div>
     89                </div>';
    9390                $inline_css = '<style>.lsdp-feedback-notice-wrapper.notice.notice-info.is-dismissible {
    9491                padding: 5px;
     
    9895                clear: both;
    9996                border-radius: 5px;
    100                 border: 2px solid #b7bfc7;
    101             }
    102             .lsdp-feedback-notice-wrapper .logo_container {
    103                 width: 100px;
    104                 display: table-cell;
    105                 padding: 5px;
    106                 vertical-align: middle;
    107             }
    108             .lsdp-feedback-notice-wrapper .logo_container a,
    109             .lsdp-feedback-notice-wrapper .logo_container img {
    110                 width:100%;
    111                 height:auto;
    112                 display:inline-block;
    11397            }
    11498            .lsdp-feedback-notice-wrapper .message_container {
     
    128112                vertical-align: middle;
    129113                margin-right: 3px;
    130             }
    131             .lsdp-feedback-notice-wrapper ul li .button-primary {
    132                 background: #008bff;
    133             }
    134             .lsdp-feedback-notice-wrapper ul li .button-primary:hover {
    135                 background: #0f1031;
    136                 border-color: transparent;
    137114            }
    138115            .lsdp-feedback-notice-wrapper a {
     
    167144                });
    168145            });</script>";
    169             $output     = sprintf(
    170                 $html,
    171                 $wrap_cls,
    172                 $img_path,
    173                 $p_name,
    174                 $message,
    175                 $p_link,
    176                 $like_it_text,
    177                 $already_rated_text,
    178                 $ajax_url, // 8
    179                 $ajax_callback, // 9
    180                 $pro_url, // 10
    181                 $not_interested, // 11
    182                 $nonce // 12
    183             );
     146            $output = sprintf(
     147            $html,
     148            $wrap_cls,           // 1
     149            $p_name,             // 2 (not used in html)
     150            $message,            // 3
     151            $p_link,             // 4
     152            $like_it_text,       // 5
     153            $already_rated_text, // 6
     154            $ajax_url,           // 7
     155            $ajax_callback,      // 8
     156            $pro_url,            // 9 (not used in html)
     157            $not_interested,     // 10
     158            $nonce               // 11
     159        );
    184160            $output    .= $inline_css . ' ' . $inline_js;
    185161            return $output;
  • language-switcher-for-divi-polylang/tags/1.0.4/language-switcher-for-divi-polylang.php

    r3352001 r3398532  
    44Plugin URI:  https://wordpress.org/plugins/language-switcher-for-divi-polylang
    55Description: Language Switcher – Polylang for Divi to use added language switcher in your page or divi header menu
    6 Version:     1.0.3
     6Version:     1.0.4
    77Requires at least: 5.0
    88Requires PHP: 7.2
     
    3131}
    3232
    33 define( 'LSDP', '1.0.3' );
     33define( 'LSDP', '1.0.4' );
    3434define( 'LSDP_DIR', plugin_dir_path( __FILE__ ) );
    3535define( 'LSDP_URL', plugin_dir_url( __FILE__ ) );
     
    4646            add_action( 'plugins_loaded', array( $this, 'lsdp_init' ) );
    4747            add_action( 'admin_init', array( $this, 'is_divi_theme_exist' ) );
     48            add_action( 'admin_init', array( $this, 'lsdp_redirect_to_settings' ) );
     49            add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'lsdp_settings_page' ) );
    4850            add_action( 'divi_extensions_init', array( $this, 'initialize_divi_module' ) );
    4951            add_filter( 'et_fb_backend_helpers', array( $this, 'lsdp_localize_polyglang_data' ) );
     
    7577                new LSDPFeedbackNotice();
    7678            }
     79            require_once __DIR__ . '/admin/dashboard/lsdp-dashboard.php';
     80            cool_plugins_lsdp_polylang_addon_settings_page( 'polylang-addons', 'cool-plugins-polylang-addons', 'Polylang Addons' );
    7781        }
    7882
     
    135139        }
    136140
     141        /**
     142         * Redirect to settings page on plugin activation.
     143         *
     144         * @since 1.0.0
     145         */
     146        public function lsdp_redirect_to_settings() {
     147            if ( get_option( 'lsdp_plugin_activation_redirect', false ) ) {
     148                delete_option( 'lsdp_plugin_activation_redirect' );
     149                wp_redirect( admin_url( 'admin.php?page=lsdp-get-started' ) );
     150                exit;
     151            }
     152        }
     153
     154        /**
     155         * Description  Add links in plugin list page
     156         *
     157         * @param array $links  The Links you want to add.
     158         */
     159            public function lsdp_settings_page( $links ) {
     160            $links[] = '<a style="font-weight:bold" href="' . esc_url( admin_url( 'admin.php?page=lsdp-get-started' ) ) . '">' . __( 'Get Started', 'language-switcher-for-divi-polylang' ) . '</a>';
     161            return $links;
     162        }
     163
    137164        public function lsdp_localize_polyglang_data( $data ) {
    138165            // return $data;
  • language-switcher-for-divi-polylang/tags/1.0.4/readme.txt

    r3352001 r3398532  
    139139== Changelog ==
    140140
     141= Version 1.0.4 | 19 November 2025 =
     142- **Integrated:** Get Started Dashboard.
     143
    141144= Version 1.0.3 | 28 August 2025 =
    142145- **Fixed:** Addressed security vulnerabilities.
  • language-switcher-for-divi-polylang/trunk/admin/lsdp-feedback-notice.php

    r3352001 r3398532  
    6666            $nonce              = wp_create_nonce( 'lsdp_dismiss_notice' );
    6767            $wrap_cls           = 'notice notice-info is-dismissible';
    68             $img_path           = LSDP_URL . 'assets/images/lsdp-icon.png';
    6968            $p_name             = 'Language Switcher for Divi & Polylang';
    7069            $like_it_text       = 'Rate Now! ★★★★★';
    71             $already_rated_text = esc_html__( 'I already rated it', 'language-switcher-for-divi-polylang' );
     70            $already_rated_text = esc_html__( 'Already Reviewed', 'language-switcher-for-divi-polylang' );
    7271            $not_interested     = esc_html__( 'Not Interested', 'language-switcher-for-divi-polylang' );
    7372            $not_like_it_text   = esc_html__( 'No, not good enough, i do not like to rate it!', 'language-switcher-for-divi-polylang' );
     
    7776            $message = wp_kses_post( "Thanks for using <b>$p_name</b>. We hope it meets your expectations! <br/>Please give us a quick rating, it works as a boost for us to keep working on more <a href='https://coolplugins.net/?utm_source=plugin_dashboard&utm_medium=reviewbox' target='_blank'><strong>Cool Plugins</strong></a>!<br/>" );
    7877
    79             $html       = '<div data-ajax-url="%8$s"  data-ajax-callback="%9$s" data-nonce="%12$s" class="lsdp-feedback-notice-wrapper %1$s">
    80             <div class="logo_container"><a href="%5$s"><img src="%2$s" alt="%3$s"></a></div>
    81             <div class="message_container">%4$s
    82             <div class="callto_action">
    83             <ul>
    84                 <li class="love_it"><a href="%5$s" class="like_it_btn button button-primary" target="_new" title="%6$s">%6$s</a></li>
    85                 <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%7$s">%7$s</a></li>
    86                 <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%11$s">%11$s</a></li>
    87            
    88             </ul>
    89             <div class="clrfix"></div>
    90             </div>
    91             </div>
    92             </div>';
     78            $html = '<div data-ajax-url="%7$s"  data-ajax-callback="%8$s" data-nonce="%11$s" class="lsdp-feedback-notice-wrapper %1$s">
     79                <div class="message_container">%3$s
     80                <div class="callto_action">
     81                <ul>
     82                    <li class="love_it"><a href="%4$s" class="like_it_btn button button-primary" target="_new" title="%5$s">%5$s</a></li>
     83                    <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%6$s">%6$s</a></li>
     84                    <li class="already_rated"><a href="javascript:void(0);" class="already_rated_btn button lsdp_dismiss_notice" title="%10$s">%10$s</a></li>
     85                </ul>
     86                <div class="clrfix"></div>
     87                </div>
     88                </div>
     89                </div>';
    9390                $inline_css = '<style>.lsdp-feedback-notice-wrapper.notice.notice-info.is-dismissible {
    9491                padding: 5px;
     
    9895                clear: both;
    9996                border-radius: 5px;
    100                 border: 2px solid #b7bfc7;
    101             }
    102             .lsdp-feedback-notice-wrapper .logo_container {
    103                 width: 100px;
    104                 display: table-cell;
    105                 padding: 5px;
    106                 vertical-align: middle;
    107             }
    108             .lsdp-feedback-notice-wrapper .logo_container a,
    109             .lsdp-feedback-notice-wrapper .logo_container img {
    110                 width:100%;
    111                 height:auto;
    112                 display:inline-block;
    11397            }
    11498            .lsdp-feedback-notice-wrapper .message_container {
     
    128112                vertical-align: middle;
    129113                margin-right: 3px;
    130             }
    131             .lsdp-feedback-notice-wrapper ul li .button-primary {
    132                 background: #008bff;
    133             }
    134             .lsdp-feedback-notice-wrapper ul li .button-primary:hover {
    135                 background: #0f1031;
    136                 border-color: transparent;
    137114            }
    138115            .lsdp-feedback-notice-wrapper a {
     
    167144                });
    168145            });</script>";
    169             $output     = sprintf(
    170                 $html,
    171                 $wrap_cls,
    172                 $img_path,
    173                 $p_name,
    174                 $message,
    175                 $p_link,
    176                 $like_it_text,
    177                 $already_rated_text,
    178                 $ajax_url, // 8
    179                 $ajax_callback, // 9
    180                 $pro_url, // 10
    181                 $not_interested, // 11
    182                 $nonce // 12
    183             );
     146            $output = sprintf(
     147            $html,
     148            $wrap_cls,           // 1
     149            $p_name,             // 2 (not used in html)
     150            $message,            // 3
     151            $p_link,             // 4
     152            $like_it_text,       // 5
     153            $already_rated_text, // 6
     154            $ajax_url,           // 7
     155            $ajax_callback,      // 8
     156            $pro_url,            // 9 (not used in html)
     157            $not_interested,     // 10
     158            $nonce               // 11
     159        );
    184160            $output    .= $inline_css . ' ' . $inline_js;
    185161            return $output;
  • language-switcher-for-divi-polylang/trunk/language-switcher-for-divi-polylang.php

    r3352001 r3398532  
    44Plugin URI:  https://wordpress.org/plugins/language-switcher-for-divi-polylang
    55Description: Language Switcher – Polylang for Divi to use added language switcher in your page or divi header menu
    6 Version:     1.0.3
     6Version:     1.0.4
    77Requires at least: 5.0
    88Requires PHP: 7.2
     
    3131}
    3232
    33 define( 'LSDP', '1.0.3' );
     33define( 'LSDP', '1.0.4' );
    3434define( 'LSDP_DIR', plugin_dir_path( __FILE__ ) );
    3535define( 'LSDP_URL', plugin_dir_url( __FILE__ ) );
     
    4646            add_action( 'plugins_loaded', array( $this, 'lsdp_init' ) );
    4747            add_action( 'admin_init', array( $this, 'is_divi_theme_exist' ) );
     48            add_action( 'admin_init', array( $this, 'lsdp_redirect_to_settings' ) );
     49            add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'lsdp_settings_page' ) );
    4850            add_action( 'divi_extensions_init', array( $this, 'initialize_divi_module' ) );
    4951            add_filter( 'et_fb_backend_helpers', array( $this, 'lsdp_localize_polyglang_data' ) );
     
    7577                new LSDPFeedbackNotice();
    7678            }
     79            require_once __DIR__ . '/admin/dashboard/lsdp-dashboard.php';
     80            cool_plugins_lsdp_polylang_addon_settings_page( 'polylang-addons', 'cool-plugins-polylang-addons', 'Polylang Addons' );
    7781        }
    7882
     
    135139        }
    136140
     141        /**
     142         * Redirect to settings page on plugin activation.
     143         *
     144         * @since 1.0.0
     145         */
     146        public function lsdp_redirect_to_settings() {
     147            if ( get_option( 'lsdp_plugin_activation_redirect', false ) ) {
     148                delete_option( 'lsdp_plugin_activation_redirect' );
     149                wp_redirect( admin_url( 'admin.php?page=lsdp-get-started' ) );
     150                exit;
     151            }
     152        }
     153
     154        /**
     155         * Description  Add links in plugin list page
     156         *
     157         * @param array $links  The Links you want to add.
     158         */
     159            public function lsdp_settings_page( $links ) {
     160            $links[] = '<a style="font-weight:bold" href="' . esc_url( admin_url( 'admin.php?page=lsdp-get-started' ) ) . '">' . __( 'Get Started', 'language-switcher-for-divi-polylang' ) . '</a>';
     161            return $links;
     162        }
     163
    137164        public function lsdp_localize_polyglang_data( $data ) {
    138165            // return $data;
  • language-switcher-for-divi-polylang/trunk/readme.txt

    r3352001 r3398532  
    139139== Changelog ==
    140140
     141= Version 1.0.4 | 19 November 2025 =
     142- **Integrated:** Get Started Dashboard.
     143
    141144= Version 1.0.3 | 28 August 2025 =
    142145- **Fixed:** Addressed security vulnerabilities.
Note: See TracChangeset for help on using the changeset viewer.