Plugin Directory

Changeset 3442611


Ignore:
Timestamp:
01/19/2026 02:24:17 PM (2 months ago)
Author:
grandplugins
Message:

Update to Latest Version

Location:
coming-soon-products-for-woocommerce/trunk
Files:
14 added
15 edited

Legend:

Unmodified
Added
Removed
  • coming-soon-products-for-woocommerce/trunk/core/core.php

    r3211482 r3442611  
    8686                'desc'      => 'Limit WooCommerce sale prices by specific quantities! Woo Limited Offers lets you set sales like Amazon with claimed percentage tracking......',
    8787                'thumbnail' => 'woo-limited-offer.webp',
    88                 'pro_link'  => 'https://grandplugins.com/product/woo-limited-offer/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     88                'pro_link'  => 'https://grandplugins.com/product/woo-limited-offer/',
    8989            ),
    9090            'woo-order-uploader'     => array(
     
    9292                'desc'      => 'Enhance customer experience with Order Uploader for WooCommerce. Upload, manage, and share files seamlessly between customers and store admins......',
    9393                'thumbnail' => 'woo-order-uploader.webp',
    94                 'pro_link'  => 'https://grandplugins.com/product/woo-order-uploader/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     94                'pro_link'  => 'https://grandplugins.com/product/woo-order-uploader/',
    9595            ),
    9696            'woo-name-your-price'     => array(
     
    9898                'desc'      => 'Empower your website with Woo Name Your Price. Let shoppers set their own prices for your WooCommerce products, boosting engagement and sales flexibility......',
    9999                'thumbnail' => 'woo-name-your-price.webp',
    100                 'pro_link'  => 'https://grandplugins.com/product/woo-name-your-price/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     100                'pro_link'  => 'https://grandplugins.com/product/woo-name-your-price/',
    101101            ),
    102102            'woo-order-splitter'     => array(
     
    104104                'desc'      => 'Divides an order into orders based on categories, weight, dimensions, and shipping classes......',
    105105                'thumbnail' => 'woo-order-splitter.webp',
    106                 'pro_link'  => 'https://grandplugins.com/product/woo-order-splitter/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     106                'pro_link'  => 'https://grandplugins.com/product/woo-order-splitter/',
    107107            ),
    108108            'wp-db-controller'     => array(
     
    110110                'desc'      => 'Manage your WordPress database with ease. List tables, edit rows, delete rows, empty tables, rename tables, and export data all from your website dashboard......',
    111111                'thumbnail' => 'wp-db-controller.webp',
    112                 'pro_link'  => 'https://grandplugins.com/product/wp-db-controller/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     112                'pro_link'  => 'https://grandplugins.com/product/wp-db-controller/',
    113113            ),
    114114            'woo-paddle-checkout'     => array(
     
    116116                'desc'      => 'Integrates Paddle\'s secure payment gateway into your WooCommerce website allowing customers to make secure and hassle-free payments and subscriptions through Paddle for their orders.....',
    117117                'thumbnail' => 'woo-paddle-checkout.webp',
    118                 'pro_link'  => 'https://grandplugins.com/product/woo-paddle-checkout/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     118                'pro_link'  => 'https://grandplugins.com/product/woo-paddle-checkout/',
    119119            ),
    120120            'woo-sales-notifications'     => array(
     
    122122                'desc'      => 'boost your e-commerce store\'s sales and build customer trust. displaying real-time, eye-catching sales notifications on your website, notifying potential customers of recent product purchases..',
    123123                'thumbnail' => 'woo-sales-popup.webp',
    124                 'pro_link'  => 'https://grandplugins.com/product/woo-sales-notification/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     124                'pro_link'  => 'https://grandplugins.com/product/woo-sales-notification/',
    125125            ),
    126126            'woo-best-sellers'     => array(
     
    129129                'thumbnail' => 'woo-best-seller-thumbnail.png',
    130130                'free_link' => 'https://wordpress.org/plugins/best-seller-for-woocommerce/',
    131                 'pro_link'  => 'https://grandplugins.com/product/woo-best-seller/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     131                'pro_link'  => 'https://grandplugins.com/product/woo-best-seller/',
    132132            ),
    133133            'advanced-captcha'         => array(
     
    135135                'desc'      => 'protect your website from spammers and bots using multiple and random captchas...',
    136136                'thumbnail' => 'advanced-captcha.webp',
    137                 'pro_link'  => 'https://grandplugins.com/product/woo-advanced-captcha/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     137                'pro_link'  => 'https://grandplugins.com/product/woo-advanced-captcha/',
    138138            ),
    139139            'woo-advanced-add-to-cart' => array(
     
    141141                'desc'      => 'Add To cart in bulk, custom prices and more...',
    142142                'thumbnail' => 'woo-advanced-add-to-cart.webp',
    143                 'pro_link'  => 'https://grandplugins.com/product/woo-advanced-add-to-cart/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     143                'pro_link'  => 'https://grandplugins.com/product/woo-advanced-add-to-cart/',
    144144            ),
    145145            'woo-advanced-pricing'     => array(
     
    147147                'desc'      => 'Apply all types of Quantity based pricing models',
    148148                'thumbnail' => 'woo-advanced-pricing.webp',
    149                 'pro_link'  => 'https://grandplugins.com/product/woo-advanced-pricing/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     149                'pro_link'  => 'https://grandplugins.com/product/woo-advanced-pricing/',
    150150            ),
    151151            'woo-maintenance-mode'     => array(
     
    154154                'thumbnail' => 'woo-maintenance-mode.png',
    155155                'free_link' => 'https://wordpress.org/plugins/ultimate-maintenance-mode-for-woocommerce/',
    156                 'pro_link'  => 'https://grandplugins.com/product/woocommerce-maintenance-mode-pro/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     156                'pro_link'  => 'https://grandplugins.com/product/woocommerce-maintenance-mode-pro/',
    157157            ),
    158158            'woo-quick-view'           => array(
     
    161161                'thumbnail' => 'woo-quick-view-and-buy-now.png',
    162162                'free_link' => 'https://wordpress.org/plugins/quick-view-and-buy-now-for-woocommerce/',
    163                 'pro_link'  => 'https://grandplugins.com/product/quick-view-and-buy-now-for-woocommerce/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     163                'pro_link'  => 'https://grandplugins.com/product/quick-view-and-buy-now-for-woocommerce/',
    164164            ),
    165165            'woo-cart-limiter'         => array(
     
    168168                'thumbnail' => 'woo-cart-limiter.jpg',
    169169                'free_link' => 'https://wordpress.org/plugins/cart-limiter/',
    170                 'pro_link'  => 'https://grandplugins.com/product/woo-cart-limiter/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     170                'pro_link'  => 'https://grandplugins.com/product/woo-cart-limiter/',
    171171            ),
    172172            'simple-countdown-timer'   => array(
     
    175175                'thumbnail' => 'simple-countdown-timer.gif',
    176176                'free_link' => 'https://wordpress.org/plugins/simple-countdown/',
    177                 'pro_link'  => 'https://grandplugins.com/product/simple-countdown-timer/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     177                'pro_link'  => 'https://grandplugins.com/product/simple-countdown-timer/',
    178178            ),
    179179            'wp-watermark-pdf'         => array(
     
    182182                'thumbnail' => 'wp-watermark-pdf.png',
    183183                'free_link' => 'https://wordpress.org/plugins/watermark-pdf/',
    184                 'pro_link'  => 'https://grandplugins.com/product/wp-watermark-pdf/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     184                'pro_link'  => 'https://grandplugins.com/product/wp-watermark-pdf/',
    185185            ),
    186186
     
    190190                'thumbnail' => 'image-sizes-controller.png',
    191191                'free_link' => 'https://wordpress.org/plugins/image-sizes-controller/',
    192                 'pro_link'  => 'https://grandplugins.com/product/image-sizes-controller/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     192                'pro_link'  => 'https://grandplugins.com/product/image-sizes-controller/',
    193193            ),
    194194            'wp-watermark-images'      => array(
     
    197197                'thumbnail' => 'wp-watermark-images.png',
    198198                'free_link' => 'https://wordpress.org/plugins/watermark-images-for-wp-and-woo-grandpluginswp/',
    199                 'pro_link'  => 'https://grandplugins.com/product/wp-images-watermark/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     199                'pro_link'  => 'https://grandplugins.com/product/wp-images-watermark/',
    200200            ),
    201201
     
    205205                'thumbnail' => 'wp-gif-editor.gif',
    206206                'free_link' => 'https://wordpress.org/plugins/gif-uploader-wp-grandplugins',
    207                 'pro_link'  => 'https://grandplugins.com/product/wp-gif-editor/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     207                'pro_link'  => 'https://grandplugins.com/product/wp-gif-editor/',
    208208            ),
    209209        );
     
    228228    public function premium_link( $links ) {
    229229        if ( ! empty( $this->plugin_info['pro_link'] ) ) {
    230             $links[] = '<a target="_blank" href="' . esc_url_raw( $this->plugin_info['pro_link'] ) . '" ><b style="color:#59c767;font-weight:bolder;">' . esc_html__( 'Pro version' ) . '</b></a>';
     230            $links[] = '<a target="_blank" href="' . esc_url_raw( $this->plugin_info['pro_link'] ) . '" ><b style="color:#59c767;font-weight:bolder;">' . esc_html__( 'Pro version', 'coming-soon-products-for-woocommerce' ) . '</b></a>';
    231231        }
    232232        return $links;
     
    280280    public function plugin_activated() {
    281281
    282         do_action( $this->plugin_info['name'] . '-core-activated', $this );
     282        do_action( $this->plugin_info['name'] . '-core-activated', $this ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    283283    }
    284284
     
    290290    public function plugin_deactivated() {
    291291
    292         do_action( $this->plugin_info['name'] . '-core-deactivated', $this );
     292        do_action( $this->plugin_info['name'] . '-core-deactivated', $this ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    293293    }
    294294
     
    300300    public function plugin_uninstalled() {
    301301
    302         do_action( $this->plugin_info['name'] . '-core-uninstalled', $this );
     302        do_action( $this->plugin_info['name'] . '-core-uninstalled', $this ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    303303    }
    304304
     
    323323        ?>
    324324        <a target="_blank" class="ms-2 btn gpls-permium-btn-wave btn-primary <?php echo esc_attr( $additional_classes ); ?>" href="<?php echo esc_url_raw( $pro_link ); ?>">
    325             <span class="pro-title" style="position:relative;z-index:10;color:#FFF;"><?php printf( esc_html__( '%s' ), $btn_title ); ?></span>
     325            <span class="pro-title" style="position:relative;z-index:10;color:#FFF;"><?php echo esc_html( $btn_title ); ?></span>
    326326            <span class="wave"></span>
    327327        </a>
     
    352352        </style>
    353353        <div class="gpls-contact">
    354           <p class="p-3 bg-light text-center text text-white"><?php esc_html_e( 'in case you want to report a bug, submit a new feature or request a custom plugin, Please' ); ?> <a class="link" target="_blank" href="https://grandplugins.com/contact-us"> <?php esc_html_e( 'contact us' ); ?></a></p>
     354          <p class="p-3 bg-light text-center text text-white"><?php esc_html_e( 'in case you want to report a bug, submit a new feature or request a custom plugin, Please', 'coming-soon-products-for-woocommerce' ); ?> <a class="link" target="_blank" href="https://grandplugins.com/contact-us"> <?php esc_html_e( 'contact us', 'coming-soon-products-for-woocommerce' ); ?></a></p>
    355355        </div>
    356356        <?php
     
    370370        ?>
    371371        <p style="min-width:650px;" class="mx-auto d-inline-block notice notice-success <?php echo esc_attr( $small ? 'p-2' : 'p-4' ); ?> <?php echo esc_attr( $is_dismissible ? 'is-dismissible' : '' ); ?>">
    372             <?php esc_html_e( 'We would love your feedback. leaving ' ); ?>
     372            <?php esc_html_e( 'We would love your feedback. leaving ', 'coming-soon-products-for-woocommerce' ); ?>
    373373            <a class="text-decoration-none" href="<?php echo esc_url_raw( $review_link ); ?>" target="_blank">
    374                 <u><?php esc_html_e( 'a review is much appreciated' ); ?></u>
     374                <u><?php esc_html_e( 'a review is much appreciated', 'coming-soon-products-for-woocommerce' ); ?></u>
    375375                <span class="dashicons dashicons-star-filled"></span>
    376376                <span class="dashicons dashicons-star-filled"></span>
     
    379379                <span class="dashicons dashicons-star-filled"></span>
    380380            </a>
    381             <?php esc_html_e( ':) Thanks!' ); ?>
     381            <?php esc_html_e( ':) Thanks!', 'coming-soon-products-for-woocommerce' ); ?>
    382382        </p>
    383383        <?php
     
    397397        }
    398398        ?>
    399         <span class="<?php echo esc_attr( $this->plugin_info['classes_general'] . '-new-keyword' ); ?> ms-1"><?php esc_html_e( 'New' ); ?></span>
     399        <span class="<?php echo esc_attr( $this->plugin_info['classes_general'] . '-new-keyword' ); ?> ms-1"><?php esc_html_e( 'New', 'coming-soon-products-for-woocommerce' ); ?></span>
    400400        <?php
    401401        if ( $return ) {
     
    412412        ?>
    413413        <div class="gpls-core-recommended-section my-5">
    414             <h6 class="shadow-sm border p-3 shadow-sm border rounded"><?php esc_html_e( 'Empower Your Website with Our Additional Plugins' ); ?></h6>
     414            <h6 class="shadow-sm border p-3 shadow-sm border rounded"><?php esc_html_e( 'Empower Your Website with Our Additional Plugins', 'coming-soon-products-for-woocommerce' ); ?></h6>
    415415            <div class="section-body bg-light p-3 shadow-sm border rounded">
    416416                <ul class="plugins-list list-group">
     
    430430                            <?php if ( ! empty( $plugin_arr['pro_link'] ) ) : ?>
    431431                            <div class="col d-flex justify-content-center border-end">
    432                                 <a class="btn btn-primary text-decoration-underline" target="_blank" href="<?php echo esc_url_raw( $plugin_arr['pro_link'] ); ?>"><strong><?php esc_html_e( 'Pro' ); ?></strong></a>
     432                                <a class="btn btn-primary text-decoration-underline" target="_blank" href="<?php echo esc_url_raw( $plugin_arr['pro_link'] ); ?>"><strong><?php esc_html_e( 'Pro', 'coming-soon-products-for-woocommerce' ); ?></strong></a>
    433433                            </div>
    434434                            <?php endif; ?>
    435435                            <?php if ( ! empty( $plugin_arr['free_link'] ) ) : ?>
    436436                            <div class="col d-flex justify-content-center">
    437                                 <a class="btn btn-success text-decoration-underline" target="_blank" href="<?php echo esc_url_raw( $plugin_arr['free_link'] ); ?>"><?php esc_html_e( 'Free' ); ?></a>
     437                                <a class="btn btn-success text-decoration-underline" target="_blank" href="<?php echo esc_url_raw( $plugin_arr['free_link'] ); ?>"><?php esc_html_e( 'Free', 'coming-soon-products-for-woocommerce' ); ?></a>
    438438                            </div>
    439439                            <?php endif; ?>
     
    442442                    <?php endforeach; ?>
    443443                </ul>
    444                 <a class="btn btn-primary d-block mt-3" target="_blank" href="https://grandplugins.com/product-category/plugin/?utm_source=free&utm_medium=sidebar&utm_content=<?php echo esc_attr( $this->plugin_info['name'] ); ?>"><?php esc_html_e( 'Browse All Plugins' ); ?></a>
     444                <a class="btn btn-primary d-block mt-3" target="_blank" href="https://grandplugins.com/product-category/plugin/"><?php esc_html_e( 'Browse All Plugins', 'coming-soon-products-for-woocommerce' ); ?></a>
    445445            </div>
    446446        </div>
  • coming-soon-products-for-woocommerce/trunk/gpls-wcsamm-woo-coming-soon-products-for-woocommerce.php

    r3428127 r3442611  
    77 * Author:            GrandPlugins
    88 * Author URI:        https://grandplugins.com
    9  * Text Domain:       gpls-wcsamm-coming-soon-for-woocommerce
     9 * Text Domain:       coming-soon-products-for-woocommerce
    1010 * Std Name:          gpls-wcsamm-coming-soon-for-woocommerce
    11  * Version:           1.2.4
     11 * Version:           1.2.5
    1212 * Tested up to:      6.9
    1313 * Requires at least: 5.6
    1414 * Requires PHP:      7.0.0
    15  * @package         WooCommerce_Coming_Soon_Products
     15 * License:           GPLv2
     16 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     17 * @package           WooCommerce_Coming_Soon_Products
    1618 */
    1719
     
    101103            if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
    102104                deactivate_plugins( self::$plugin_info['basename'] );
    103                 wp_die( esc_html__( 'WooCommerce plugin is required in order to activate the plugin', 'gpls-wcsamm-coming-soon-for-woocommerce' ) );
     105                wp_die( esc_html__( 'WooCommerce plugin is required in order to activate the plugin', 'coming-soon-products-for-woocommerce' ) );
    104106            }
    105107            self::disable_duplicate();
     
    111113        private function __construct() {
    112114            self::setup_plugin_info();
    113             $this->load_languages();
    114115            self::includes();
    115116            $this->load();
     
    147148         */
    148149        public function define( $key, $value ) {
    149             if ( ! defined( $key ) ) {
    150                 define( $key, $value );
     150            if ( ! defined( $key ) ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.VariableConstantNameFound
     151                define( $key, $value ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.VariableConstantNameFound
    151152            }
    152153        }
     
    155156         * Set Plugin Info
    156157         *
    157          * @return array
     158         * @return mixed
    158159         */
    159160        public static function setup_plugin_info() {
     
    190191                    'quick_view_and_buy_now' => 'gpls-arcw-quick-view-buy-now-for-woocommerce',
    191192                ),
    192                 'pro_link'        => 'https://grandplugins.com/product/woo-coming-soon-products/?utm_source=free&utm_medium=btn&utm_content=' . $plugin_data['SName'],
     193                'pro_link'        => 'https://grandplugins.com/product/woo-coming-soon-products/',
    193194                'review_link'     => 'https://wordpress.org/support/plugin/coming-soon-products-for-woocommerce/reviews/#new-post',
    194195                'duplicate_base'  => 'gpls-wcsamm-coming-soon-products-for-woocommerce/gpls-wcsamm-woo-coming-soon-products-for-woocommerce.php',
     
    218219        }
    219220
    220         /**
    221          * Load languages Folder.
    222          *
    223          * @return void
    224          */
    225         public function load_languages() {
    226             load_plugin_textdomain( self::$plugin_info['text_domain'], false, self::$plugin_info['path'] . 'languages/' );
    227         }
    228 
    229221    }
    230222
  • coming-soon-products-for-woocommerce/trunk/includes/class-coming-soon-backend.php

    r2977027 r3442611  
    99namespace GPLSCore\GPLS_PLUGIN_WCSAMM;
    1010
     11defined( 'ABSPATH' ) || exit;
     12
    1113use GPLSCore\GPLS_PLUGIN_WCSAMM\Settings;
    1214use GPLSCore\GPLS_PLUGIN_WCSAMM\ComingSoon;
     
    2830     *
    2931     * @param object $core
    30      * @param array $plugin_info
     32     * @param array  $plugin_info
    3133     * @return self
    3234     */
     
    8688            ?>
    8789            <div style="clear:both;margin:5px 0px;padding:5px;border-radius:10px;background-color:#ffd767;text-align:center;color:#fff;font-weight:bolder;">
    88                 <span><?php esc_html_e( 'Coming Soon', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     90                <span><?php esc_html_e( 'Coming Soon', 'coming-soon-products-for-woocommerce' ); ?></span>
    8991            </div>
    9092            <?php
     
    9799     * Variation Coming Soon.
    98100     *
    99      * @param boolean $loop
    100      * @param array $variation_data
     101     * @param boolean     $loop
     102     * @param array       $variation_data
    101103     * @param \WC_Product $variation
    102104     * @return void
     
    107109            <h3>
    108110                <div class="handlediv"></div>
    109                 <div style="color:#FFF;" class="attribute_name"><?php echo esc_html( 'Variation Coming Soon', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', true ); ?></div>
     111                <div style="color:#FFF;" class="attribute_name"><?php esc_html_e( 'Variation Coming Soon', 'coming-soon-products-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', true ); ?></div>
    110112            </h3>
    111113        </div>
     
    176178    public function coming_soon_tab_in_single_product( $tabs ) {
    177179        $tabs[ self::$plugin_info['name'] . '-coming-soon-settings-tab' ] = array(
    178             'label'    => esc_html__( 'Coming Soon [GrandPlugins]', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     180            'label'    => esc_html__( 'Coming Soon [GrandPlugins]', 'coming-soon-products-for-woocommerce' ),
    179181            'target'   => self::$plugin_info['name'] . '-coming-soon-settings-tab',
    180182            'class'    => array(),
     
    206208                        'id'          => self::$plugin_info['name'] . '-coming-soon-status',
    207209                        'value'       => $coming_soon_settings['status'],
    208                         'label'       => esc_html__( 'Coming Soon Mode', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    209                         'description' => esc_html__( 'Enable coming soon mode', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     210                        'label'       => esc_html__( 'Coming Soon Mode', 'coming-soon-products-for-woocommerce' ),
     211                        'description' => esc_html__( 'Enable coming soon mode', 'coming-soon-products-for-woocommerce' ),
    210212                    )
    211213                );
     
    214216                        'id'          => self::$plugin_info['name'] . '-coming-soon-text',
    215217                        'value'       => $coming_soon_settings['coming_soon_text'],
    216                         'label'       => esc_html__( 'Coming Soon Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     218                        'label'       => esc_html__( 'Coming Soon Text', 'coming-soon-products-for-woocommerce' ),
    217219                        'class'       => self::$plugin_info['name'] . '-texteditor',
    218                         'description' => esc_html__( 'It will be shown in single product page after product short description', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . '<br/><br/>' .
    219                         '<span class="' . esc_attr( self::$plugin_info['classes_prefix'] . '-pro-shortcode-field' ) . '" >' . esc_html__( 'Shortcode: ', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . ' [' . self::$plugin_info['classes_prefix'] . '-coming-soon-text]'
     220                        'description' => esc_html__( 'It will be shown in single product page after product short description', 'coming-soon-products-for-woocommerce' ) . '<br/><br/>' .
     221                        '<span class="' . esc_attr( self::$plugin_info['classes_prefix'] . '-pro-shortcode-field' ) . '" >' . esc_html__( 'Shortcode: ', 'coming-soon-products-for-woocommerce' ) . ' [' . self::$plugin_info['classes_prefix'] . '-coming-soon-text]'
    220222                        . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', true ) . '</span>',
    221223                    )
     
    226228                        'id'          => self::$plugin_info['name'] . '-keep-purchasable',
    227229                        'value'       => $coming_soon_settings['keep_purchasable'],
    228                         'label'       => esc_html__( 'Keep it Purchasable ?', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . '<span>' . self::$core->new_keyword( 'New', true ) . '</span>',
    229                         'description' => esc_html__( 'Keep the product purchasable in coming soon mode.', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     230                        'label'       => esc_html__( 'Keep it Purchasable ?', 'coming-soon-products-for-woocommerce' ) . '<span>' . self::$core->new_keyword( 'New', true ) . '</span>',
     231                        'description' => esc_html__( 'Keep the product purchasable in coming soon mode.', 'coming-soon-products-for-woocommerce' ),
    230232                    )
    231233                );
     
    236238                        'type'        => 'datetime-local',
    237239                        'value'       => $coming_soon_settings['arrival_time'],
    238                         'label'       => esc_html__( 'Arrival Time', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    239                         'description' => esc_html__( 'Remaining time until arrival is calculated based on the site\'s timezone', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     240                        'label'       => esc_html__( 'Arrival Time', 'coming-soon-products-for-woocommerce' ),
     241                        'description' => esc_html__( 'Remaining time until arrival is calculated based on the site\'s timezone', 'coming-soon-products-for-woocommerce' ),
    240242                        'desc_tip'    => true,
    241243                    )
     
    245247                        'id'          => self::$plugin_info['name'] . '-show-countdown',
    246248                        'value'       => $coming_soon_settings['show_countdown'],
    247                         'label'       => esc_html__( 'Show Countdown', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    248                         'description' => esc_html__( 'Show the arrival time countdown', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . ' <br/><br/>' .
    249                         '<span class="' . esc_attr( self::$plugin_info['classes_prefix'] . '-pro-shortcode-field' ) . '" >' . esc_html__( 'Countdown Shortcode ', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . ':   [' . self::$plugin_info['classes_prefix'] . '-coming-soon-countdown]'
     249                        'label'       => esc_html__( 'Show Countdown', 'coming-soon-products-for-woocommerce' ),
     250                        'description' => esc_html__( 'Show the arrival time countdown', 'coming-soon-products-for-woocommerce' ) . ' <br/><br/>' .
     251                        '<span class="' . esc_attr( self::$plugin_info['classes_prefix'] . '-pro-shortcode-field' ) . '" >' . esc_html__( 'Countdown Shortcode ', 'coming-soon-products-for-woocommerce' ) . ':   [' . self::$plugin_info['classes_prefix'] . '-coming-soon-countdown]'
    250252                        . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', true ) . '</span>',
    251253                    )
    252254                );
    253                 ?>
     255            ?>
    254256                <p class="<?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-pro-shortcode-field' ); ?> form-field <?php echo esc_attr( self::$plugin_info['name'] . '-hide-countdown-divisions' ); ?>">
    255                     <label><?php esc_html_e( 'Countdown Divisions', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></label>
     257                    <label><?php esc_html_e( 'Countdown Divisions', 'coming-soon-products-for-woocommerce' ); ?></label>
    256258                    <span style="display:block;">
    257                         <span><?php esc_html_e( 'Hide Seconds', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     259                        <span><?php esc_html_e( 'Hide Seconds', 'coming-soon-products-for-woocommerce' ); ?></span>
    258260                        <input disabled style="margin-right:7px !important;" class="checkbox" type="checkbox" id="<?php echo esc_attr( self::$plugin_info['name'] . '-hide-countdown-seconds' ); ?>" />
    259261                    </span>
    260262                    <span style="display:block;">
    261                         <span><?php esc_html_e( 'Hide Minutes', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     263                        <span><?php esc_html_e( 'Hide Minutes', 'coming-soon-products-for-woocommerce' ); ?></span>
    262264                        <input disabled style="margin-right:7px !important;" class="checkbox" type="checkbox" id="<?php echo esc_attr( self::$plugin_info['name'] . '-hide-countdown-minutes' ); ?>" />
    263265                    </span>
    264266                    <span style="display:block;">
    265                         <span><?php esc_html_e( 'Hide Hours', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     267                        <span><?php esc_html_e( 'Hide Hours', 'coming-soon-products-for-woocommerce' ); ?></span>
    266268                        <input disabled style="margin-right:7px !important;" class="checkbox" type="checkbox" id="<?php echo esc_attr( self::$plugin_info['name'] . '-hide-countdown-hours' ); ?>" />
    267269                    </span>
    268                     <span class="description"><?php esc_html_e( 'Choose to hide a time division from the arrival time countdown', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     270                    <span class="description"><?php esc_html_e( 'Choose to hide a time division from the arrival time countdown', 'coming-soon-products-for-woocommerce' ); ?></span>
    269271                </p>
    270272                <?php
     
    273275                        'id'          => self::$plugin_info['name'] . '-hide-price',
    274276                        'value'       => $coming_soon_settings['hide_price'],
    275                         'label'       => esc_html__( 'Hide Price', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    276                         'description' => esc_html__( 'Hide the product price', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     277                        'label'       => esc_html__( 'Hide Price', 'coming-soon-products-for-woocommerce' ),
     278                        'description' => esc_html__( 'Hide the product price', 'coming-soon-products-for-woocommerce' ),
    277279                    )
    278280                );
     
    281283                        'id'          => self::$plugin_info['name'] . '-disable-backorders',
    282284                        'value'       => $coming_soon_settings['disable_backorders'],
    283                         'label'       => esc_html__( 'Disable Backorders', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    284                         'description' => esc_html__( 'Disable purchasing the product in backorder.', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     285                        'label'       => esc_html__( 'Disable Backorders', 'coming-soon-products-for-woocommerce' ),
     286                        'description' => esc_html__( 'Disable purchasing the product in backorder.', 'coming-soon-products-for-woocommerce' ),
    285287                    )
    286288                );
     
    288290                woocommerce_wp_checkbox(
    289291                    array(
    290                         'id'            => self::$plugin_info['classes_prefix'] . '-pro-field-1',
    291                         'wrapper_class' => self::$plugin_info['classes_prefix'] . '-pro-field',
    292                         'class'         => 'disabled',
    293                         'custom_attributes' => array(
    294                             'disabled' => 'disabled',
    295                         ),
    296                         'label'         => esc_html__( 'Auto Enable', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    297                         'description'   => esc_html__( 'Auto enable the product for purchase when the arrival time is over [ requires "Arrival Time" ]', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product', '', true ),
    298                     )
    299                 );
    300                 woocommerce_wp_checkbox(
    301                     array(
    302                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-2',
    303                         'wrapper_class' => self::$plugin_info['classes_prefix'] . '-pro-field',
    304                         'class'         => 'disabled',
    305                         'custom_attributes' => array(
    306                             'disabled' => 'disabled',
    307                         ),
    308                         'label'         => esc_html__( 'Auto Email', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    309                         'description'   => esc_html__( 'Send email automatically when the product arrival time is over [ requires "Arrival Time" and "Auto Enable" ]', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product', '', true ),
    310                     )
    311                 );
    312             ?>
     292                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-1',
     293                        'wrapper_class'     => self::$plugin_info['classes_prefix'] . '-pro-field',
     294                        'class'             => 'disabled',
     295                        'custom_attributes' => array(
     296                            'disabled' => 'disabled',
     297                        ),
     298                        'label'             => esc_html__( 'Auto Enable', 'coming-soon-products-for-woocommerce' ),
     299                        'description'       => esc_html__( 'Auto enable the product for purchase when the arrival time is over [ requires "Arrival Time" ]', 'coming-soon-products-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product', '', true ),
     300                    )
     301                );
     302                woocommerce_wp_checkbox(
     303                    array(
     304                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-2',
     305                        'wrapper_class'     => self::$plugin_info['classes_prefix'] . '-pro-field',
     306                        'class'             => 'disabled',
     307                        'custom_attributes' => array(
     308                            'disabled' => 'disabled',
     309                        ),
     310                        'label'             => esc_html__( 'Auto Email', 'coming-soon-products-for-woocommerce' ),
     311                        'description'       => esc_html__( 'Send email automatically when the product arrival time is over [ requires "Arrival Time" and "Auto Enable" ]', 'coming-soon-products-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product', '', true ),
     312                    )
     313                );
     314                ?>
    313315                <!-- Custom Badge -->
    314316                <p class="form-field gpls-wcsamm-coming-soon-for-woocommerce-custom-badge_field <?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-pro-field' ); ?>">
    315                     <label for="gpls-wcsamm-coming-soon-for-woocommerce-custom-badge"><?php esc_html_e( 'Custom Badge', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></label>
     317                    <label for="gpls-wcsamm-coming-soon-for-woocommerce-custom-badge"><?php esc_html_e( 'Custom Badge', 'coming-soon-products-for-woocommerce' ); ?></label>
    316318                    <span class="badge-icons-toggler">
    317319                        <input type="checkbox" class="disabled" disabled="disabled">
    318                         <button class="badge-icons-toggle button-primary disabled" disabled="disabled"><?php esc_html_e( 'Available Icons', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></button>
    319                         <span class="description"><?php esc_html_e( 'Custom coming soon badge', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span> |
    320                         <span class="description"><?php printf( esc_html( 'Coming Soon Badge Shortcode: [%s]' ), self::$plugin_info['classes_prefix'] . '-coming-soon-badge' ); ?></span>
     320                        <button class="badge-icons-toggle button-primary disabled" disabled="disabled"><?php esc_html_e( 'Available Icons', 'coming-soon-products-for-woocommerce' ); ?></button>
     321                        <span class="description"><?php esc_html_e( 'Custom coming soon badge', 'coming-soon-products-for-woocommerce' ); ?></span> |
     322                        <span class="description"><?php echo esc_html( 'Coming Soon Badge Shortcode: [' . self::$plugin_info['classes_prefix'] . '-coming-soon-badge]' ); ?></span>
    321323                        <span class="description"><?php self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product' ); ?></span>
    322324                    </span>
     
    325327            </div>
    326328            <div class="options_group <?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-pro-field' ); ?>">
    327                 <h3><?php echo ( esc_html( 'Pro Features' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product', '', true ) ); ?></h3>
     329                <h3><?php echo esc_html__( 'Pro Features', 'coming-soon-products-for-woocommerce' ) . self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product', '', true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></h3>
    328330                <?php
    329331                woocommerce_wp_checkbox(
    330332                    array(
    331                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-3',
    332                         'class'       => 'disabled',
    333                         'custom_attributes' => array(
    334                             'disabled' => 'disabled',
    335                         ),
    336                         'label'       => esc_html__( 'Show Subscription', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    337                         'description' => esc_html__( 'Display the subscription form ', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . ' <br/> ' . esc_html__( 'Subscription form Shortcode ', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . ':   [' . self::$plugin_info['classes_prefix'] . '-subscription-form-shortcode]',
    338                     )
    339                 );
    340                 woocommerce_wp_text_input(
    341                     array(
    342                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-4',
    343                         'class'         => 'disabled',
    344                         'custom_attributes' => array(
    345                             'disabled' => 'disabled',
    346                         ),
    347                         'label'       => esc_html__( 'Custom Title', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    348                         'description' => esc_html__( 'Custom Title for the Subscription Form', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    349                     )
    350                 );
    351                 woocommerce_wp_text_input(
    352                     array(
    353                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-5',
    354                         'class'         => 'disabled',
    355                         'custom_attributes' => array(
    356                             'disabled' => 'disabled',
    357                         ),
    358                         'label'         => esc_html__( 'Custom Form Shortcode', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    359                         'description'   => esc_html__( 'Add custom subscription form shortcode. leave it blank for using the default form', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    360                         'desc_tip'      => true,
     333                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-3',
     334                        'class'             => 'disabled',
     335                        'custom_attributes' => array(
     336                            'disabled' => 'disabled',
     337                        ),
     338                        'label'             => esc_html__( 'Show Subscription', 'coming-soon-products-for-woocommerce' ),
     339                        'description'       => esc_html__( 'Display the subscription form ', 'coming-soon-products-for-woocommerce' ) . ' <br/> ' . esc_html__( 'Subscription form Shortcode ', 'coming-soon-products-for-woocommerce' ) . ':   [' . self::$plugin_info['classes_prefix'] . '-subscription-form-shortcode]',
     340                    )
     341                );
     342                woocommerce_wp_text_input(
     343                    array(
     344                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-4',
     345                        'class'             => 'disabled',
     346                        'custom_attributes' => array(
     347                            'disabled' => 'disabled',
     348                        ),
     349                        'label'             => esc_html__( 'Custom Title', 'coming-soon-products-for-woocommerce' ),
     350                        'description'       => esc_html__( 'Custom Title for the Subscription Form', 'coming-soon-products-for-woocommerce' ),
     351                    )
     352                );
     353                woocommerce_wp_text_input(
     354                    array(
     355                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-5',
     356                        'class'             => 'disabled',
     357                        'custom_attributes' => array(
     358                            'disabled' => 'disabled',
     359                        ),
     360                        'label'             => esc_html__( 'Custom Form Shortcode', 'coming-soon-products-for-woocommerce' ),
     361                        'description'       => esc_html__( 'Add custom subscription form shortcode. leave it blank for using the default form', 'coming-soon-products-for-woocommerce' ),
     362                        'desc_tip'          => true,
    361363                    )
    362364                );
     
    364366            </div>
    365367            <div class="options_group <?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-pro-field' ); ?>">
    366                 <h4 class="heading-title"><?php esc_html_e( 'Coming Soon Ended Email', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
     368                <h4 class="heading-title"><?php esc_html_e( 'Coming Soon Ended Email', 'coming-soon-products-for-woocommerce' ); ?></h4>
    367369                <?php
    368370                woocommerce_wp_text_input(
     
    371373                            'disabled' => 'disabled',
    372374                        ),
    373                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-6',
    374                         'class'         => 'disabled',
    375                         'label'       => esc_html__( 'Email Subject', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    376                         'description' => esc_html__( 'Custom email subject for this product, available placeholders: {site_title}, {site_url}, {site_address}, {product_title}, {product_image}, {product_stock}, {product_link_start}, {product_link_end}', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    377                         'desc_tip'    => true,
    378 
    379                     )
    380                 );
    381                 woocommerce_wp_text_input(
    382                     array(
    383                         'custom_attributes' => array(
    384                             'disabled' => 'disabled',
    385                         ),
    386                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-7',
    387                         'class'         => 'disabled',
    388                         'label'       => esc_html__( 'Email Heading', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    389                         'description' => esc_html__( 'Custom email heading for this product, available placeholders: {site_title}, {site_url}, {site_address}, {product_title}, {product_image}, {product_stock}, {product_link_start}, {product_link_end}', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    390                         'desc_tip'    => true,
     375                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-6',
     376                        'class'             => 'disabled',
     377                        'label'             => esc_html__( 'Email Subject', 'coming-soon-products-for-woocommerce' ),
     378                        'description'       => esc_html__( 'Custom email subject for this product, available placeholders: {site_title}, {site_url}, {site_address}, {product_title}, {product_image}, {product_stock}, {product_link_start}, {product_link_end}', 'coming-soon-products-for-woocommerce' ),
     379                        'desc_tip'          => true,
     380
     381                    )
     382                );
     383                woocommerce_wp_text_input(
     384                    array(
     385                        'custom_attributes' => array(
     386                            'disabled' => 'disabled',
     387                        ),
     388                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-7',
     389                        'class'             => 'disabled',
     390                        'label'             => esc_html__( 'Email Heading', 'coming-soon-products-for-woocommerce' ),
     391                        'description'       => esc_html__( 'Custom email heading for this product, available placeholders: {site_title}, {site_url}, {site_address}, {product_title}, {product_image}, {product_stock}, {product_link_start}, {product_link_end}', 'coming-soon-products-for-woocommerce' ),
     392                        'desc_tip'          => true,
    391393                    )
    392394                );
     
    396398                            'disabled' => 'disabled',
    397399                        ),
    398                         'id'          => self::$plugin_info['classes_prefix'] . '-pro-field-8',
    399                         'label'       => esc_html__( 'Email Body', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    400                         'class'       => self::$plugin_info['name'] . '-texteditor disabled',
    401                         'rows'        => 100,
    402                         'description' => esc_html__( 'Custom email Body for this product, available placeholders: {site_title}, {site_url}, {site_address}, {product_title}, {product_image}, {product_stock}, {product_link_start}, {product_link_end}', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    403                         'desc_tip'    => true,
     400                        'id'                => self::$plugin_info['classes_prefix'] . '-pro-field-8',
     401                        'label'             => esc_html__( 'Email Body', 'coming-soon-products-for-woocommerce' ),
     402                        'class'             => self::$plugin_info['name'] . '-texteditor disabled',
     403                        'rows'              => 100,
     404                        'description'       => esc_html__( 'Custom email Body for this product, available placeholders: {site_title}, {site_url}, {site_address}, {product_title}, {product_image}, {product_stock}, {product_link_start}, {product_link_end}', 'coming-soon-products-for-woocommerce' ),
     405                        'desc_tip'          => true,
    404406                    )
    405407                );
     
    408410            <!-- Out of Stock Sync -->
    409411            <div class="options_group <?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-pro-field' ); ?>">
    410                 <h4 class="heading-title"><?php esc_html_e( 'Out of Stock - Coming Soon Sync', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?><span><?php self::$core->new_keyword( 'New', false ); ?></span></h4>
     412                <h4 class="heading-title"><?php esc_html_e( 'Out of Stock - Coming Soon Sync', 'coming-soon-products-for-woocommerce' ); ?><span><?php self::$core->new_keyword( 'New', false ); ?></span></h4>
    411413                <?php
    412414                woocommerce_wp_checkbox(
     
    415417                            'disabled' => 'disabled',
    416418                        ),
    417                         'class'       => 'disabled',
    418                         'id'          => self::$plugin_info['name'] . '-stock-status',
    419                         'value'       => 'no',
    420                         'label'       => esc_html__( 'Enable', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    421                         'description' => esc_html__( 'Enable coming soon mode and stock sync. When the product is out of stock, coming soon mode will be enabled automatically.', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    422                     )
    423                 );
    424                 woocommerce_wp_text_input(
    425                     array(
    426                         'custom_attributes' => array(
    427                             'disabled' => 'disabled',
    428                         ),
    429                         'class'       => 'disabled',
    430                         'id'          => self::$plugin_info['name'] . '-stock-arrival-time-days',
    431                         'value'       => 0,
    432                         'type'        => 'number',
    433                         'label'       => esc_html__( 'Arrival duration days', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    434                     )
    435                 );
    436                 woocommerce_wp_text_input(
    437                     array(
    438                         'custom_attributes' => array(
    439                             'disabled' => 'disabled',
    440                         ),
    441                         'class'       => 'disabled',
    442                         'id'          => self::$plugin_info['name'] . '-stock-arrival-time-hours',
    443                         'value'       => 0,
    444                         'type'        => 'number',
    445                         'label'       => esc_html__( 'Arrival duration hours', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    446                     )
    447                 );
    448                 woocommerce_wp_text_input(
    449                     array(
    450                         'custom_attributes' => array(
    451                             'disabled' => 'disabled',
    452                         ),
    453                         'class'       => 'disabled',
    454                         'id'          => self::$plugin_info['name'] . '-stock-arrival-time-minutes',
    455                         'value'       => 0,
    456                         'type'        => 'number',
    457                         'label'       => esc_html__( 'Arrival duration minutes', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    458                     )
    459                 );
    460                 woocommerce_wp_checkbox(
    461                     array(
    462                         'custom_attributes' => array(
    463                             'disabled' => 'disabled',
    464                         ),
    465                         'class'       => 'disabled',
    466                         'id'          => self::$plugin_info['name'] . '-stock-auto-enable',
    467                         'value'       => 'no',
    468                         'label'       => esc_html__( 'Set auto enable', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    469                         'description' => esc_html__( 'The "Auto Enable" option above will be enabled with coming soon mode.', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     419                        'class'             => 'disabled',
     420                        'id'                => self::$plugin_info['name'] . '-stock-status',
     421                        'value'             => 'no',
     422                        'label'             => esc_html__( 'Enable', 'coming-soon-products-for-woocommerce' ),
     423                        'description'       => esc_html__( 'Enable coming soon mode and stock sync. When the product is out of stock, coming soon mode will be enabled automatically.', 'coming-soon-products-for-woocommerce' ),
     424                    )
     425                );
     426                woocommerce_wp_text_input(
     427                    array(
     428                        'custom_attributes' => array(
     429                            'disabled' => 'disabled',
     430                        ),
     431                        'class'             => 'disabled',
     432                        'id'                => self::$plugin_info['name'] . '-stock-arrival-time-days',
     433                        'value'             => 0,
     434                        'type'              => 'number',
     435                        'label'             => esc_html__( 'Arrival duration days', 'coming-soon-products-for-woocommerce' ),
     436                    )
     437                );
     438                woocommerce_wp_text_input(
     439                    array(
     440                        'custom_attributes' => array(
     441                            'disabled' => 'disabled',
     442                        ),
     443                        'class'             => 'disabled',
     444                        'id'                => self::$plugin_info['name'] . '-stock-arrival-time-hours',
     445                        'value'             => 0,
     446                        'type'              => 'number',
     447                        'label'             => esc_html__( 'Arrival duration hours', 'coming-soon-products-for-woocommerce' ),
     448                    )
     449                );
     450                woocommerce_wp_text_input(
     451                    array(
     452                        'custom_attributes' => array(
     453                            'disabled' => 'disabled',
     454                        ),
     455                        'class'             => 'disabled',
     456                        'id'                => self::$plugin_info['name'] . '-stock-arrival-time-minutes',
     457                        'value'             => 0,
     458                        'type'              => 'number',
     459                        'label'             => esc_html__( 'Arrival duration minutes', 'coming-soon-products-for-woocommerce' ),
     460                    )
     461                );
     462                woocommerce_wp_checkbox(
     463                    array(
     464                        'custom_attributes' => array(
     465                            'disabled' => 'disabled',
     466                        ),
     467                        'class'             => 'disabled',
     468                        'id'                => self::$plugin_info['name'] . '-stock-auto-enable',
     469                        'value'             => 'no',
     470                        'label'             => esc_html__( 'Set auto enable', 'coming-soon-products-for-woocommerce' ),
     471                        'description'       => esc_html__( 'The "Auto Enable" option above will be enabled with coming soon mode.', 'coming-soon-products-for-woocommerce' ),
    470472                    )
    471473                );
     
    474476            <!-- Auto ReStock -->
    475477            <div class="options_group <?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-pro-field' ); ?>">
    476                 <h4 class="heading-title"><?php esc_html_e( 'Auto Restock', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?><span><?php self::$core->new_keyword( 'New', false ); ?></span></h4>
     478                <h4 class="heading-title"><?php esc_html_e( 'Auto Restock', 'coming-soon-products-for-woocommerce' ); ?><span><?php self::$core->new_keyword( 'New', false ); ?></span></h4>
    477479                <?php
    478480                woocommerce_wp_checkbox(
     
    481483                            'disabled' => 'disabled',
    482484                        ),
    483                         'class'       => 'disabled',
    484                         'id'          => self::$plugin_info['name'] . '-restock-status',
    485                         'value'       => 'no',
    486                         'label'       => esc_html__( 'Enable', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    487                         'description' => esc_html__( 'Enable filling the product stock automatically after coming soon arrival time passes and the product is auto enabled.', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    488                         'disabled'    => true,
    489                     )
    490                 );
    491                 woocommerce_wp_text_input(
    492                     array(
    493                         'custom_attributes' => array(
    494                             'disabled' => 'disabled',
    495                         ),
    496                         'class'       => 'disabled',
    497                         'id'          => self::$plugin_info['name'] . '-restock-qty',
    498                         'value'       => 0,
    499                         'type'        => 'number',
    500                         'label'       => esc_html__( 'Restock Quantity', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    501                         'description' => esc_html__( 'The stock will be set with this value automatically when the product auto enabled from coming soon mode.', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     485                        'class'             => 'disabled',
     486                        'id'                => self::$plugin_info['name'] . '-restock-status',
     487                        'value'             => 'no',
     488                        'label'             => esc_html__( 'Enable', 'coming-soon-products-for-woocommerce' ),
     489                        'description'       => esc_html__( 'Enable filling the product stock automatically after coming soon arrival time passes and the product is auto enabled.', 'coming-soon-products-for-woocommerce' ),
     490                        'disabled'          => true,
     491                    )
     492                );
     493                woocommerce_wp_text_input(
     494                    array(
     495                        'custom_attributes' => array(
     496                            'disabled' => 'disabled',
     497                        ),
     498                        'class'             => 'disabled',
     499                        'id'                => self::$plugin_info['name'] . '-restock-qty',
     500                        'value'             => 0,
     501                        'type'              => 'number',
     502                        'label'             => esc_html__( 'Restock Quantity', 'coming-soon-products-for-woocommerce' ),
     503                        'description'       => esc_html__( 'The stock will be set with this value automatically when the product auto enabled from coming soon mode.', 'coming-soon-products-for-woocommerce' ),
    502504                    )
    503505                );
    504506                ?>
    505507            </div>
    506             <?php do_action( self::$plugin_info['name'] . '-coming-soon-product-fields', $thepostid ); ?>
     508            <?php do_action( self::$plugin_info['name'] . '-coming-soon-product-fields', $thepostid ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound ?>
    507509        </div>
    508510        <?php
     
    528530
    529531        if ( ! empty( $_POST[ self::$plugin_info['name'] . '-coming-soon-text' ] ) ) {
    530             $settings['coming_soon_text'] = wp_kses_post( $_POST[ self::$plugin_info['name'] . '-coming-soon-text' ] );
     532            $settings['coming_soon_text'] = wp_kses_post( wp_unslash( $_POST[ self::$plugin_info['name'] . '-coming-soon-text' ] ) );
    531533        } else {
    532534            $settings['coming_soon_text'] = '';
     
    578580                array(
    579581                    'id'    => self::$plugin_info['classes_prefix'] . '-coming-soon-products-list-admin-bar-menu',
    580                     'title' => esc_html__( 'Coming Soon Products [GrandPlugins]', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . '&nbsp;' . '<span class="awaiting-mod count-' . esc_attr( $coming_soon_count ) . '"><span class="pending-count" aria-hidden="true">' . esc_attr( $coming_soon_count ) . '</span></span>',
     582                    'title' => esc_html__( 'Coming Soon Products [GrandPlugins]', 'coming-soon-products-for-woocommerce' ) . '&nbsp;' . '<span class="awaiting-mod count-' . esc_attr( $coming_soon_count ) . '"><span class="pending-count" aria-hidden="true">' . esc_attr( $coming_soon_count ) . '</span></span>',
    581583                )
    582584            );
    583585
    584             $GLOBALS[ self::$plugin_info['name'] . '-bypass-coming-soon-badge' ] = true;
     586            $GLOBALS[ self::$plugin_info['name'] . '-bypass-coming-soon-badge' ] = true; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    585587
    586588            foreach ( $coming_soon_products as $product_id ) {
     
    602604
    603605                if ( $arrival_time ) {
    604                     $arrival_time = date( 'F jS, Y, g:i A', strtotime( $arrival_time ) );
     606                    $arrival_time = date( 'F jS, Y, g:i A', strtotime( $arrival_time ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
    605607                }
    606608                $product_edit_link = get_edit_post_link( $product_id );
     
    649651                array(
    650652                    'id'    => self::$plugin_info['classes_prefix'] . '-coming-soon-products-list-admin-bar-menu',
    651                     'title' => esc_html__( 'Coming Soon Products', 'gpls-wcsamm-coming-soon-for-woocommerce' ) . '&nbsp;' . '<span class="awaiting-mod count-' . esc_attr( $coming_soon_count ) . '"><span class="pending-count" aria-hidden="true">' . esc_attr( $coming_soon_count ) . '</span></span>',
     653                    'title' => esc_html__( 'Coming Soon Products', 'coming-soon-products-for-woocommerce' ) . '&nbsp;' . '<span class="awaiting-mod count-' . esc_attr( $coming_soon_count ) . '"><span class="pending-count" aria-hidden="true">' . esc_attr( $coming_soon_count ) . '</span></span>',
    652654                )
    653655            );
     
    712714        }
    713715    }
    714 
    715716}
  • coming-soon-products-for-woocommerce/trunk/includes/class-coming-soon-badge.php

    r3297082 r3442611  
    99
    1010namespace GPLSCore\GPLS_PLUGIN_WCSAMM;
     11
     12defined( 'ABSPATH' ) || exit;
    1113
    1214use GPLSCore\GPLS_PLUGIN_WCSAMM\Settings;
     
    268270        ob_start();
    269271        ?>
    270         <img src="<?php echo esc_url_raw( $badge_url ); ?>" data-<?php echo esc_attr( self::$plugin_info['prefix_under'] . '_src' ); ?>="<?php echo esc_url_raw( $badge_url ); ?>" class="<?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-coming-soon-badge ' . self::$plugin_info['classes_prefix'] . '-coming-soon--' . $context . '-badge' ); ?> " <?php echo ! empty( $img_classes ) ? ( esc_attr( 'data-classes' ) . '="' . esc_attr( implode( ' ', $img_classes ) ) . '"' ) : ''; ?> alt="<?php esc_html_e( 'coming soon badge', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?>">
     272        <img src="<?php echo esc_url_raw( $badge_url ); ?>" data-<?php echo esc_attr( self::$plugin_info['prefix_under'] . '_src' ); ?>="<?php echo esc_url_raw( $badge_url ); ?>" class="<?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-coming-soon-badge ' . self::$plugin_info['classes_prefix'] . '-coming-soon--' . $context . '-badge' ); ?> " <?php echo ! empty( $img_classes ) ? ( esc_attr( 'data-classes' ) . '="' . esc_attr( implode( ' ', $img_classes ) ) . '"' ) : ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> alt="<?php esc_html_e( 'coming soon badge', 'coming-soon-products-for-woocommerce' ); ?>">
    271273        <?php
    272         $GLOBALS[ self::$plugin_info['prefix'] . '-coming-soon-badge' ] = true;
     274        $GLOBALS[ self::$plugin_info['prefix'] . '-coming-soon-badge' ] = true; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    273275        return ob_get_clean();
    274276    }
     
    387389    protected function mark_badged_product( $product_id, $context = 'loop' ) {
    388390        if ( ! isset( $GLOBALS[ self::$plugin_info['name'] . '-' . $context . '-badged-produts' ] ) ) {
    389             $GLOBALS[ self::$plugin_info['name'] . '-' . $context . '-badged-products' ] = array();
    390         }
    391 
    392         $GLOBALS[ self::$plugin_info['name'] . '-' . $context . '-badged-products' ][] = $product_id;
     391            $GLOBALS[ self::$plugin_info['name'] . '-' . $context . '-badged-products' ] = array(); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
     392        }
     393
     394        $GLOBALS[ self::$plugin_info['name'] . '-' . $context . '-badged-products' ][] = $product_id; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    393395    }
    394396
     
    424426        $this->mark_badged_product( $product->get_id(), 'loop' );
    425427
    426         echo $this->gpls_kses_post( $coming_soon_badge );
     428        echo $this->gpls_kses_post( $coming_soon_badge ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    427429    }
    428430
  • coming-soon-products-for-woocommerce/trunk/includes/class-coming-soon-frontend.php

    r3291373 r3442611  
    99namespace GPLSCore\GPLS_PLUGIN_WCSAMM;
    1010
     11defined( 'ABSPATH' ) || exit;
     12
    1113use DateTime;
    1214use GPLSCore\GPLS_PLUGIN_WCSAMM\Settings;
     
    2931     *
    3032     * @param object $core
    31      * @param array $plugin_info
     33     * @param array  $plugin_info
    3234     * @return self
    3335     */
     
    151153     * Filter Variation is purchasable.
    152154     *
    153      * @param boolean $is_purchasable
     155     * @param boolean               $is_purchasable
    154156     * @param \WC_Product_Variation $variation
    155157     * @return boolean
     
    179181        .gpls-wcsamm-flipper{max-width:100%;}.gpls-wcsamm-flipper figure{position:absolute !important;}.gpls-wcsamm-coming-soon-badge-img-wrapper img{margin:0px !important}.product_list_widget li{position:relative}.gpls-wcsamm-coming-soon-subscribe-form .gpls-wcsamm-coming-soon-subscribe-email-field{min-width:250px}.gpls-wcsamm-coming-soon-subscribe-form .gpls-wcsamm-coming-soon-subscribe-email-field:invalid{background-color:#ff8c8c}.gpls-wcsamm-subscribe-submit-btn{padding:10px;cursor:pointer}.gpls-wcsamm-post-submit-text{display:none}.rotor-group .rotors-wrapper{width:100%;display:flex;justify-content:center}.rotor-group .rotors-wrapper .rotor{overflow:hidden;width:40%}.rotor-group .rotors-wrapper .rotor .rotor-leaf{width:100%}.rotor-group .rotors-wrapper .rotor .rotor-painter{width:100%}.rotor-group .rotors-wrapper .rotor:after{width:100%}
    180182        <?php
    181         do_action( self::$plugin_info['name'] . '-frontend-inline-styles' );
     183        do_action( self::$plugin_info['name'] . '-frontend-inline-styles' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    182184        Settings::get_countdown_styles( true );
    183185        $inline_styles = ob_get_clean();
     
    198200        wp_enqueue_script( self::$plugin_info['name'] . '-dist-single-product-actions', self::$plugin_info['url'] . 'assets/dist/js/front-single-product-actions.min.js', array( 'jquery' ), self::$plugin_info['version'], true );
    199201        $localize_data = array(
    200             'ajaxUrl'                   => admin_url( 'admin-ajax.php' ),
    201             'nonce'                     => wp_create_nonce( self::$plugin_info['name'] . '-nonce' ),
    202             'prefix'                    => self::$plugin_info['name'],
    203             'prefix_under'              => self::$plugin_info['prefix_under'],
    204             'subSubmitAction'           => self::$plugin_info['name'] . '-subscription-submit-action',
    205             'classes_prefix'            => self::$plugin_info['classes_prefix'],
    206             'related_plugins'           => self::$plugin_info['related_plugins'],
    207             'labels'                    => array(
     202            'ajaxUrl'         => admin_url( 'admin-ajax.php' ),
     203            'nonce'           => wp_create_nonce( self::$plugin_info['name'] . '-nonce' ),
     204            'prefix'          => self::$plugin_info['name'],
     205            'prefix_under'    => self::$plugin_info['prefix_under'],
     206            'subSubmitAction' => self::$plugin_info['name'] . '-subscription-submit-action',
     207            'classes_prefix'  => self::$plugin_info['classes_prefix'],
     208            'related_plugins' => self::$plugin_info['related_plugins'],
     209            'labels'          => array(
    208210                'flipDownHeading' => array(
    209                     'days'    => esc_html__( 'Days', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    210                     'hours'   => esc_html__( 'Hours', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    211                     'minutes' => esc_html__( 'Minutes', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    212                     'seconds' => esc_html__( 'Seconds', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     211                    'days'    => esc_html__( 'Days', 'coming-soon-products-for-woocommerce' ),
     212                    'hours'   => esc_html__( 'Hours', 'coming-soon-products-for-woocommerce' ),
     213                    'minutes' => esc_html__( 'Minutes', 'coming-soon-products-for-woocommerce' ),
     214                    'seconds' => esc_html__( 'Seconds', 'coming-soon-products-for-woocommerce' ),
    213215                ),
    214216            ),
    215             'is_single'                 => (int) is_product(),
     217            'is_single'       => (int) is_product(),
    216218        );
    217         $localize_data = apply_filters( self::$plugin_info['classes_prefix'] . '-front-localize-data', $localize_data );
     219        $localize_data = apply_filters( self::$plugin_info['classes_prefix'] . '-front-localize-data', $localize_data ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    218220
    219221        wp_localize_script(
     
    253255    /**
    254256     * Disable Duplicated Content Hooked.
    255      * 
     257     *
    256258     * @return void
    257259     */
    258260    private static function disable_duplicated_content_hooked() {
    259261        if ( is_plugin_active( 'add-to-any/add-to-any.php' ) && function_exists( '\A2A_SHARE_SAVE_add_to_content' ) ) {
    260             $priority = apply_filters( 'addtoany_content_priority', 98 );
     262            $priority = apply_filters( 'addtoany_content_priority', 98 ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
    261263            remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', $priority );
    262264        }
     
    268270    /**
    269271     * Retrieve Duplicated Content Hooked.
    270      * 
     272     *
    271273     * @return void
    272274     */
    273275    private static function retrieve_duplicated_content_hooked() {
    274276        if ( is_plugin_active( 'add-to-any/add-to-any.php' ) && function_exists( '\A2A_SHARE_SAVE_add_to_content' ) ) {
    275             $priority = apply_filters( 'addtoany_content_priority', 98 );
     277            $priority = apply_filters( 'addtoany_content_priority', 98 ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
    276278            add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', $priority );
    277279        }
     
    294296            $coming_soon_text = $settings['coming_soon_text'];
    295297        }
    296         $content = apply_filters( 'the_content', $coming_soon_text );
     298        $content = apply_filters( 'the_content', $coming_soon_text ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
    297299        $content = str_replace( ']]>', ']]&gt;', $content );
    298300        // phpcs:ignore WordPress.Security.EscapeOutput
     
    304306        </div>
    305307        <?php
    306         $GLOBALS[ self::$plugin_info['prefix'] . '-coming-soon-text' ] = true;
     308        $GLOBALS[ self::$plugin_info['prefix'] . '-coming-soon-text' ] = true; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    307309    }
    308310
     
    337339            </div>
    338340            <?php
    339             $GLOBALS[ self::$plugin_info['prefix'] . '-coming-soon-countdown' ] = true;
     341            $GLOBALS[ self::$plugin_info['prefix'] . '-coming-soon-countdown' ] = true; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    340342        endif;
    341343    }
     
    370372            global $product;
    371373        } else {
    372             $product = $_product;
     374            $product = $_product; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    373375        }
    374376        if ( ! $product ) {
     
    388390     * Filter Product Price.
    389391     *
    390      * @param string $price_html
     392     * @param string      $price_html
    391393     * @param \WC_Product $_product
    392394     * @return string
    393395     */
    394396    public function filter_product_price( $price_html, $_product ) {
    395         $settings   = self::get_settings( $_product->get_id() );
     397        $settings = self::get_settings( $_product->get_id() );
    396398        if ( self::is_product_coming_soon( $_product->get_id() ) && ( 'yes' === $settings['hide_price'] ) ) {
    397399            return '';
     
    423425    public function change_coming_soon_external_cart_btn_text( $add_to_cart_text, $_product ) {
    424426        if ( is_a( $_product, \WC_Product_External::class ) && self::is_product_coming_soon( $_product->get_id() ) && ! self::is_keep_product_purchasable( $_product->get_id() ) ) {
    425             return esc_html__( 'Read more', 'woocommerce' );
     427            return esc_html__( 'Read more', 'coming-soon-products-for-woocommerce' );
    426428        }
    427429        return $add_to_cart_text;
  • coming-soon-products-for-woocommerce/trunk/includes/class-coming-soon-quick-bulk-edits.php

    r3027410 r3442611  
    88
    99namespace GPLSCore\GPLS_PLUGIN_WCSAMM;
     10
     11defined( 'ABSPATH' ) || exit;
    1012
    1113use GPLSCore\GPLS_PLUGIN_WCSAMM\ComingSoon;
     
    200202        <fieldset id="<?php echo esc_attr( self::$plugin_info['prefix'] . '-fields-' . ( 'bulk' === $context ? 'bulk' : 'quick' ) ); ?>" class="<?php echo esc_attr( self::$plugin_info['prefix'] . '-pro-field' ); ?> inline-edit-col-left" style="margin-top:20px;">
    201203            <div class="inline-edit-col" style="background-color:#EEE;padding:5px;">
    202                 <h4 style="padding:0px 8px;"><?php esc_html_e( 'Coming Soon Mode [GrandPlugins]', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?> <?php self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode' ); ?></h4>
     204                <h4 style="padding:0px 8px;"><?php esc_html_e( 'Coming Soon Mode [GrandPlugins]', 'coming-soon-products-for-woocommerce' ); ?> <?php self::$core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode' ); ?></h4>
    203205                <!-- Enable Coming Soon Mode -->
    204206                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    205207                    <label class="alignleft">
    206                         <span class="title" style="width:10em;"><?php esc_html_e( 'Coming Soon Mode', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     208                        <span class="title" style="width:10em;"><?php esc_html_e( 'Coming Soon Mode', 'coming-soon-products-for-woocommerce' ); ?></span>
    207209                        <?php if ( 'bulk' === $context ) : ?>
    208210                        <span class="input-text-wrap" style="margin-left:10em;">
    209211                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-coming-soon-status' ); ?>">
    210                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    211                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     212                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     213                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    212214                            </select>
    213215                        </span>
     
    216218                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;' : '' ); ?>">
    217219                        <input disabled type="checkbox" class="checkbox <?php echo esc_attr( self::$plugin_info['name'] . '-coming-soon-status' ); ?>">
    218                         <span><?php esc_html_e( 'Enable / Disable Coming Soon Mode', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     220                        <span><?php esc_html_e( 'Enable / Disable Coming Soon Mode', 'coming-soon-products-for-woocommerce' ); ?></span>
    219221                    </label>
    220222                </div>
     
    222224                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    223225                    <label class="alignleft">
    224                         <span class="title" style="width:10em;"><?php esc_html_e( 'Coming Soon Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     226                        <span class="title" style="width:10em;"><?php esc_html_e( 'Coming Soon Text', 'coming-soon-products-for-woocommerce' ); ?></span>
    225227                        <?php if ( 'bulk' === $context ) : ?>
    226228                        <span class="input-text-wrap" style="margin-left:10em;">
    227229                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-coming-soon-text' ); ?>">
    228                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    229                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     230                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     231                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    230232                            </select>
    231233                        </span>
     
    233235                    </label>
    234236                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;width:100%;max-width:100%;clear:both;' : '' ); ?>">
    235                         <textarea disabled class="<?php echo esc_attr( self::$plugin_info['name'] . '-texteditor' . ( 'bulk' === $context ? '-bulk' : '' ) ); ?>" id="<?php echo esc_attr( self::$plugin_info['name'] . '-coming-soon-text' . ( 'quick' === $context ? '-quick' : '-bulk' ) ); ?>" ><?php esc_html_e( 'Coming Soon', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></textarea>
     237                        <textarea disabled class="<?php echo esc_attr( self::$plugin_info['name'] . '-texteditor' . ( 'bulk' === $context ? '-bulk' : '' ) ); ?>" id="<?php echo esc_attr( self::$plugin_info['name'] . '-coming-soon-text' . ( 'quick' === $context ? '-quick' : '-bulk' ) ); ?>" ><?php esc_html_e( 'Coming Soon', 'coming-soon-products-for-woocommerce' ); ?></textarea>
    236238                    </label>
    237239                </div>
     
    239241                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    240242                    <label class="alignleft">
    241                         <span class="title" style="width:10em;"><?php esc_html_e( 'Arrival Time', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     243                        <span class="title" style="width:10em;"><?php esc_html_e( 'Arrival Time', 'coming-soon-products-for-woocommerce' ); ?></span>
    242244                        <?php if ( 'bulk' === $context ) : ?>
    243245                        <span class="input-text-wrap" style="margin-left:10em;">
    244246                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-arrival-time' ); ?>">
    245                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    246                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     247                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     248                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    247249                            </select>
    248250                        </span>
     
    251253                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;' : '' ); ?>">
    252254                        <input disabled type="datetime-local" value="" class="short" name="<?php echo esc_attr( self::$plugin_info['name'] . '-arrival-time' ); ?>" >
    253                         <span><?php esc_html_e( 'Coming Soon Arrival Time', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     255                        <span><?php esc_html_e( 'Coming Soon Arrival Time', 'coming-soon-products-for-woocommerce' ); ?></span>
    254256                    </label>
    255257                </div>
     
    257259                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    258260                    <label class="alignleft">
    259                         <span class="title" style="width:10em;"><?php esc_html_e( 'Show Countdown', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     261                        <span class="title" style="width:10em;"><?php esc_html_e( 'Show Countdown', 'coming-soon-products-for-woocommerce' ); ?></span>
    260262                        <?php if ( 'bulk' === $context ) : ?>
    261263                        <span class="input-text-wrap" style="margin-left:10em;">
    262264                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-show-countdown' ); ?>">
    263                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    264                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     265                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     266                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    265267                            </select>
    266268                        </span>
     
    269271                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;' : '' ); ?>">
    270272                        <input disabled type="checkbox" class="checkbox" >
    271                         <span><?php esc_html_e( 'Show / Hide CountDown', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     273                        <span><?php esc_html_e( 'Show / Hide CountDown', 'coming-soon-products-for-woocommerce' ); ?></span>
    272274                    </label>
    273275                </div>
     
    275277                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    276278                    <label class="alignleft">
    277                         <span class="title" style="width:10em;"><?php esc_html_e( 'Hide Price', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     279                        <span class="title" style="width:10em;"><?php esc_html_e( 'Hide Price', 'coming-soon-products-for-woocommerce' ); ?></span>
    278280                        <?php if ( 'bulk' === $context ) : ?>
    279281                        <span class="input-text-wrap" style="margin-left:10em;">
    280282                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-hide-price' ); ?>">
    281                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    282                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     283                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     284                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    283285                            </select>
    284286                        </span>
     
    287289                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;' : '' ); ?>">
    288290                        <input disabled type="checkbox" class="checkbox" >
    289                         <span><?php esc_html_e( 'Hide the product price', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     291                        <span><?php esc_html_e( 'Hide the product price', 'coming-soon-products-for-woocommerce' ); ?></span>
    290292                    </label>
    291293                </div>
     
    293295                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    294296                    <label class="alignleft">
    295                         <span class="title" style="width:10em;"><?php esc_html_e( 'Auto Email', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     297                        <span class="title" style="width:10em;"><?php esc_html_e( 'Auto Email', 'coming-soon-products-for-woocommerce' ); ?></span>
    296298                        <?php if ( 'bulk' === $context ) : ?>
    297299                        <span class="input-text-wrap" style="margin-left:10em;">
    298300                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-auto-email' ); ?>">
    299                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    300                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     301                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     302                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    301303                            </select>
    302304                        </span>
     
    305307                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;' : '' ); ?>">
    306308                        <input disabled type="checkbox" class="checkbox" >
    307                         <span><?php esc_html_e( 'Send email automatically when the product arrival time is over [ requires "Arrival Time" and "Auto Enable" ]', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     309                        <span><?php esc_html_e( 'Send email automatically when the product arrival time is over [ requires "Arrival Time" and "Auto Enable" ]', 'coming-soon-products-for-woocommerce' ); ?></span>
    308310                    </label>
    309311                </div>
     
    311313                <div class="inline-edit-group wp-clearfix" style="margin: 5px;box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;padding: 5px;background: #FFF;">
    312314                    <label class="alignleft">
    313                         <span class="title" style="width:10em;"><?php esc_html_e( 'Subscription Form', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     315                        <span class="title" style="width:10em;"><?php esc_html_e( 'Subscription Form', 'coming-soon-products-for-woocommerce' ); ?></span>
    314316                        <?php if ( 'bulk' === $context ) : ?>
    315317                        <span class="input-text-wrap" style="margin-left:10em;">
    316318                            <select disabled class="change_to change_<?php echo esc_attr( self::$plugin_info['name'] . '-show-subscription-form' ); ?>">
    317                                 <option value=""><?php esc_html_e( '— No change —', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    318                                 <option value="1"><?php esc_html_e( 'Change to:', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     319                                <option value=""><?php esc_html_e( '— No change —', 'coming-soon-products-for-woocommerce' ); ?></option>
     320                                <option value="1"><?php esc_html_e( 'Change to:', 'coming-soon-products-for-woocommerce' ); ?></option>
    319321                            </select>
    320322                        </span>
     
    323325                    <label class="change-input" style="<?php echo esc_attr( 'bulk' === $context ? 'display:none;' : '' ); ?>">
    324326                        <input disabled type="checkbox" class="checkbox" >
    325                         <span><?php esc_html_e( 'Show subscription form', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     327                        <span><?php esc_html_e( 'Show subscription form', 'coming-soon-products-for-woocommerce' ); ?></span>
    326328                    </label>
    327329                </div>
  • coming-soon-products-for-woocommerce/trunk/includes/class-coming-soon-shortcode.php

    r2878018 r3442611  
    88
    99namespace GPLSCore\GPLS_PLUGIN_WCSAMM;
     10
     11defined( 'ABSPATH' ) || exit;
    1012
    1113use GPLSCore\GPLS_PLUGIN_WCSAMM\Settings;
  • coming-soon-products-for-woocommerce/trunk/includes/class-coming-soon.php

    r3211482 r3442611  
    88
    99namespace GPLSCore\GPLS_PLUGIN_WCSAMM;
     10
     11defined( 'ABSPATH' ) || exit;
    1012
    1113use DateInterval;
     
    8385            'show_countdown'            => 'no',
    8486        );
    85         self::$default_settings              = apply_filters( self::$plugin_info['name'] . '-coming-soon-product-default-settings', self::$default_settings );
     87        self::$default_settings              = apply_filters( self::$plugin_info['name'] . '-coming-soon-product-default-settings', self::$default_settings ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    8688        self::$custom_fields_labels_for_wpml = array(
    87             self::$plugin_info['name'] . '-coming_soon_text' => esc_html__( 'Coming Soon Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     89            self::$plugin_info['name'] . '-coming_soon_text' => esc_html__( 'Coming Soon Text', 'coming-soon-products-for-woocommerce' ),
    8890        );
    8991    }
     
    326328            element_type=%s
    327329        ";
    328         $result = $wpdb->get_row( $wpdb->prepare( $query, array( $element_id, $element_type ) ), \ARRAY_A );
     330        $result = $wpdb->get_row( $wpdb->prepare( $query, array( $element_id, $element_type ) ), \ARRAY_A ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQL.NotPrepared
    329331
    330332        if ( ! $result || ! is_array( $result ) ) {
  • coming-soon-products-for-woocommerce/trunk/includes/settings.php

    r3211482 r3442611  
    118118     */
    119119    public function setup_settings() {
    120         $this->settings_tab       = array( self::$settings_tab_key => esc_html__( 'Coming Soon Products [GrandPlugins]', 'gpls-wcsamm-coming-soon-for-woocommerce' ) );
    121         $this->current_active_tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'general';
     120        $this->settings_tab       = array( self::$settings_tab_key => esc_html__( 'Coming Soon Products [GrandPlugins]', 'coming-soon-products-for-woocommerce' ) );
     121        $this->current_active_tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'general'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    122122        $this->settings_tabs      = array(
    123123            array(
    124124                'key'   => 'general',
    125                 'label' => esc_html__( 'General', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     125                'label' => esc_html__( 'General', 'coming-soon-products-for-woocommerce' ),
    126126            ),
    127127            array(
    128128                'key'   => 'badge',
    129                 'label' => esc_html__( 'Badge', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     129                'label' => esc_html__( 'Badge', 'coming-soon-products-for-woocommerce' ),
    130130            ),
    131131            array(
    132132                'key'   => 'countdown',
    133                 'label' => esc_html__( 'Countdown', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     133                'label' => esc_html__( 'Countdown', 'coming-soon-products-for-woocommerce' ),
    134134            ),
    135135            array(
    136136                'key'   => 'subscribe',
    137                 'label' => esc_html__( 'Subscribe', 'woo-coming-soon-products' ),
     137                'label' => esc_html__( 'Subscribe', 'coming-soon-products-for-woocommerce' ),
    138138            ),
    139139            array(
    140140                'key'   => 'email',
    141                 'label' => esc_html__( 'Subscribed Emails', 'woo-coming-soon-products' ),
     141                'label' => esc_html__( 'Subscribed Emails', 'coming-soon-products-for-woocommerce' ),
    142142            ),
    143143        );
    144144        self::$default_settings   = array(
    145145            'general'   => array(
    146                 'coming_soon_text'                   => wp_kses_post( '<h3>' . esc_html__( 'Coming Soon', 'woo-coming-soon-products' ) . '</h3>' ),
     146                'coming_soon_text'                   => wp_kses_post( '<h3>' . esc_html__( 'Coming Soon', 'coming-soon-products-for-woocommerce' ) . '</h3>' ),
    147147                'single_placement_position'          => 'woocommerce_single_product_summary',
    148148                'single_placement_position_priority' => 29,
     
    193193            ),
    194194        );
    195         $this->settings_tabs      = apply_filters( self::$plugin_info['name'] . '-settings-tabs', $this->settings_tabs );
    196         self::$default_settings   = apply_filters( self::$plugin_info['name'] . '-default-settings', self::$default_settings );
     195        $this->settings_tabs      = apply_filters( self::$plugin_info['name'] . '-settings-tabs', $this->settings_tabs ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
     196        self::$default_settings   = apply_filters( self::$plugin_info['name'] . '-default-settings', self::$default_settings ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    197197        self::$settings           = self::get_settings();
    198198
     
    211211     */
    212212    public function settings_link( $links ) {
    213         $links[] = '<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=' . self::$plugin_info['name'] ) ) . '">' . esc_html__( 'Settings' ) . '</a>';
     213        $links[] = '<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=' . self::$plugin_info['name'] ) ) . '">' . esc_html__( 'Settings', 'coming-soon-products-for-woocommerce' ) . '</a>';
    214214        return $links;
    215215    }
     
    221221     */
    222222    public function add_settings_assets() {
    223         if ( ! empty( $_GET['tab'] ) && in_array( sanitize_text_field( wp_unslash( $_GET['tab'] ) ), array_keys( $this->settings_tab ) ) ) {
     223        if ( ! empty( $_GET['tab'] ) && in_array( sanitize_text_field( wp_unslash( $_GET['tab'] ) ), array_keys( $this->settings_tab ), true ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    224224            if ( ! wp_style_is( 'select2' ) ) {
    225225                wp_enqueue_style( 'select2' );
     
    257257                    'uploadBadgeIconAction'       => self::$plugin_info['name'] . '-upload-custom-badge-icon-action',
    258258                    'labels'                      => array(
    259                         'only_images'     => esc_html__( 'Only images are allowed', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     259                        'only_images'     => esc_html__( 'Only images are allowed', 'coming-soon-products-for-woocommerce' ),
    260260                        'flipDownHeading' => array(
    261                             'days'    => esc_html__( 'Days', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    262                             'hours'   => esc_html__( 'Hours', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    263                             'minutes' => esc_html__( 'Minutes', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
    264                             'seconds' => esc_html__( 'Seconds', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     261                            'days'    => esc_html__( 'Days', 'coming-soon-products-for-woocommerce' ),
     262                            'hours'   => esc_html__( 'Hours', 'coming-soon-products-for-woocommerce' ),
     263                            'minutes' => esc_html__( 'Minutes', 'coming-soon-products-for-woocommerce' ),
     264                            'seconds' => esc_html__( 'Seconds', 'coming-soon-products-for-woocommerce' ),
    265265                        ),
    266266                    ),
     
    269269            );
    270270
    271             if ( empty( $_GET['action'] ) ) {
     271            if ( empty( $_GET['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    272272                wp_enqueue_media();
    273273                wp_enqueue_editor();
     
    279279            }
    280280
    281             if ( empty( $_GET['action'] ) ) {
     281            if ( empty( $_GET['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    282282                wp_enqueue_style( 'woocommerce' );
    283283                wp_enqueue_script( 'woocommerce' );
     
    298298                    'result'  => false,
    299299                    'status'  => 'error',
    300                     'message' => esc_html__( 'no file uploaded!', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     300                    'message' => esc_html__( 'no file uploaded!', 'coming-soon-products-for-woocommerce' ),
    301301                )
    302302            );
     
    304304        $uploads              = wp_upload_dir();
    305305        $badges_path          = trailingslashit( $uploads['basedir'] ) . trailingslashit( self::$plugin_info['name'] );
    306         $badge_file           = $_FILES['file'];
     306        $badge_file           = $_FILES['file']; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    307307        $badge_file_name      = sanitize_text_field( wp_unslash( $badge_file['name'] ) );
    308308        $upload_error_strings = array(
     
    310310            sprintf(
    311311                /* translators: 1: upload_max_filesize, 2: php.ini */
    312                 esc_html__( 'The uploaded file exceeds the %1$s directive in %2$s.' ),
     312                esc_html__( 'The uploaded file exceeds the %1$s directive in %2$s.', 'coming-soon-products-for-woocommerce' ),
    313313                'upload_max_filesize',
    314314                'php.ini'
     
    316316            sprintf(
    317317                /* translators: %s: MAX_FILE_SIZE */
    318                 esc_html__( 'The uploaded file exceeds the %s directive that was specified in the HTML form.' ),
     318                esc_html__( 'The uploaded file exceeds the %s directive that was specified in the HTML form.', 'coming-soon-products-for-woocommerce' ),
    319319                'MAX_FILE_SIZE'
    320320            ),
    321             esc_html__( 'The uploaded file was only partially uploaded.' ),
    322             esc_html__( 'No file was uploaded.' ),
     321            esc_html__( 'The uploaded file was only partially uploaded.', 'coming-soon-products-for-woocommerce' ),
     322            esc_html__( 'No file was uploaded.', 'coming-soon-products-for-woocommerce' ),
    323323            '',
    324             esc_html__( 'Missing a temporary folder.' ),
    325             esc_html__( 'Failed to write file to disk.' ),
    326             esc_html__( 'File upload stopped by extension.' ),
     324            esc_html__( 'Missing a temporary folder.', 'coming-soon-products-for-woocommerce' ),
     325            esc_html__( 'Failed to write file to disk.', 'coming-soon-products-for-woocommerce' ),
     326            esc_html__( 'File upload stopped by extension.', 'coming-soon-products-for-woocommerce' ),
    327327        );
    328328
     
    334334                    'result'  => false,
    335335                    'status'  => 'error',
    336                     'message' => esc_html__( 'file upload is failed!', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     336                    'message' => esc_html__( 'file upload is failed!', 'coming-soon-products-for-woocommerce' ),
    337337                )
    338338            );
     
    345345                    'result'  => false,
    346346                    'status'  => 'error',
    347                     'message' => esc_html__( 'file already exists!', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     347                    'message' => esc_html__( 'file already exists!', 'coming-soon-products-for-woocommerce' ),
    348348                )
    349349            );
     
    379379                    'result'  => false,
    380380                    'status'  => 'error',
    381                     'message' => esc_html__( 'file is empty!', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     381                    'message' => esc_html__( 'file is empty!', 'coming-soon-products-for-woocommerce' ),
    382382                )
    383383            );
     
    392392                    'result'  => false,
    393393                    'status'  => 'error',
    394                     'message' => esc_html__( 'file type is invalid!', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     394                    'message' => esc_html__( 'file type is invalid!', 'coming-soon-products-for-woocommerce' ),
    395395                )
    396396            );
     
    398398                                // == End Checks == //.
    399399        if ( ! is_dir( $badges_path ) ) {
    400             @mkdir( $badges_path );
     400            @mkdir( $badges_path ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_mkdir
    401401        }
    402402
    403403        // Move the file to the plugin badges folder.
    404404        $new_badge_file = $badges_path . $badge_file_name;
    405         $moved_new_file = @move_uploaded_file( $badge_file['tmp_name'], $new_badge_file );
     405        $moved_new_file = @move_uploaded_file( $badge_file['tmp_name'], $new_badge_file ); // phpcs:ignore Generic.PHP.ForbiddenFunctions.Found
    406406
    407407        if ( false === $moved_new_file ) {
     
    410410                    'result'  => false,
    411411                    'status'  => 'error',
    412                     'message' => sprintf( esc_html__( 'The uploaded file could not be moved to %s.', 'gpls-wcsamm-coming-soon-for-woocommerce' ), $new_badge_file ),
     412                    /* translators: %s New Badge File Path */
     413                    'message' => sprintf( esc_html__( 'The uploaded file could not be moved to %s.', 'coming-soon-products-for-woocommerce' ), $new_badge_file ),
    413414                )
    414415            );
     
    417418        // Set correct file permissions.
    418419        $stat  = stat( dirname( $new_badge_file ) );
    419         $perms = $stat['mode'] & 0000666;
    420         chmod( $new_badge_file, $perms );
     420        $perms = $stat['mode'] & 0000666; // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_chmod
     421        chmod( $new_badge_file, $perms ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_chmod
    421422
    422423        // Get all available fonts and return.
     
    427428                'status'  => 'success',
    428429                'badges'  => $badges,
    429                 'message' => esc_html__( 'Badge icons is added successfully!', 'gpls-wcsamm-coming-soon-for-woocommerce' ),
     430                'message' => esc_html__( 'Badge icons is added successfully!', 'coming-soon-products-for-woocommerce' ),
    430431            )
    431432        );
     
    480481                $classname = 'nav-tab';
    481482                if ( 0 === $tab_index ) {
    482                     if ( empty( $_GET['action'] ) || ( $tab_arr['key'] === sanitize_text_field( wp_unslash( $_GET['action'] ) ) ) ) {
     483                    if ( empty( $_GET['action'] ) || ( sanitize_text_field( wp_unslash( $_GET['action'] ) ) === $tab_arr['key'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    483484                        $classname .= ' nav-tab-active';
    484485                    }
    485                 } elseif ( ! empty( $_GET['action'] ) && ( $tab_arr['key'] === sanitize_text_field( wp_unslash( $_GET['action'] ) ) ) ) {
    486                         $classname .= ' nav-tab-active';
     486                } elseif ( ! empty( $_GET['action'] ) && sanitize_text_field( wp_unslash( $_GET['action'] ) ) === ( $tab_arr['key'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     487                    $classname .= ' nav-tab-active';
    487488                }
    488489                ?>
    489             <a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=' . self::$plugin_info['name'] . ( 0 === $tab_index ? '' : '&action=' . esc_attr( $tab_arr['key'] ) ) ) ); ?>" class="<?php echo esc_attr( $classname ); ?>"><?php printf( esc_html__( '%s', 'gpls-wcsamm-coming-soon-for-woocommerce' ), $tab_arr['label'] ); ?></a>
     490            <a href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=' . self::$plugin_info['name'] . ( 0 === $tab_index ? '' : '&action=' . esc_attr( $tab_arr['key'] ) ) ) ); ?>" class="<?php echo esc_attr( $classname ); ?>"><?php echo esc_html( $tab_arr['label'] ); ?></a>
    490491            <?php endforeach; ?>
    491492        </nav>
     
    528529     */
    529530    public function settings_tab_action() {
    530         if ( ! empty( $_GET['action'] ) ) {
    531             $action      = sanitize_text_field( wp_unslash( $_GET['action'] ) );
     531        if ( ! empty( $_GET['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     532            $action      = sanitize_text_field( wp_unslash( $_GET['action'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    532533            $method_name = $action . '_tab';
    533             if ( in_array( $action, array_column( $this->settings_tabs, 'key' ) ) && method_exists( __CLASS__, $method_name ) ) {
     534            if ( in_array( $action, array_column( $this->settings_tabs, 'key' ) ) && method_exists( __CLASS__, $method_name ) ) { 
    534535                $this->{$method_name}();
    535536            }
    536537        } else {
    537538            $this->general_tab();
    538         }
    539         do_action( self::$plugin_info['name'] . '-main-settings-tabs-action', self::$plugin_info, self::$settings );
     539        } //
     540        do_action( self::$plugin_info['name'] . '-main-settings-tabs-action', self::$plugin_info, self::$settings ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    540541    }
    541542
     
    587588        $plugin_info                 = self::$plugin_info;
    588589        $core                        = self::$core;
    589         $GLOBALS['hide_save_button'] = true;
     590        $GLOBALS['hide_save_button'] = true; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    590591        require_once self::$plugin_info['path'] . 'templates/settings/subscribe-settings.php';
    591592    }
     
    599600        $plugin_info                 = self::$plugin_info;
    600601        $core                        = self::$core;
    601         $GLOBALS['hide_save_button'] = true;
     602        $GLOBALS['hide_save_button'] = true; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    602603        require_once self::$plugin_info['path'] . 'templates/settings/email-settings.php';
    603604    }
     
    660661            if ( $product->get_image_id() ) {
    661662                $gallery_thumbnail = wc_get_image_size( 'woocommerce_single' );
    662                 $thumbnail_size    = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) );
     663                $thumbnail_size    = apply_filters( 'woocommerce_gallery_thumbnail_size', array( $gallery_thumbnail['width'], $gallery_thumbnail['height'] ) ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
    663664                if ( empty( $thumbnail_size[1] ) ) {
    664665                    $thumbnail_size[1] = 0;
     
    760761        $default_settings = self::$settings;
    761762        foreach ( $this->settings_tabs as $tab_arr ) {
    762             if ( ! empty( $_POST[ self::$plugin_info['name'] . '-' . $tab_arr['key'] . '-settings-nonce' ] ) && wp_verify_nonce( wp_unslash( $_POST[ self::$plugin_info['name'] . '-' . $tab_arr['key'] . '-settings-nonce' ] ), self::$plugin_info['name'] . '-' . $tab_arr['key'] . '-settings-nonce' ) ) {
     763            if ( ! empty( $_POST[ self::$plugin_info['name'] . '-' . $tab_arr['key'] . '-settings-nonce' ] ) && wp_verify_nonce( wp_unslash( $_POST[ self::$plugin_info['name'] . '-' . $tab_arr['key'] . '-settings-nonce' ] ), self::$plugin_info['name'] . '-' . $tab_arr['key'] . '-settings-nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    763764                // Special fields.
    764765
    765766                if ( isset( $_POST[ self::$plugin_info['name'] ]['general']['coming_soon_text'] ) ) {
    766                     $default_settings['general']['coming_soon_text'] = wp_kses_post( $_POST[ self::$plugin_info['name'] ]['general']['coming_soon_text'] );
     767                    $default_settings['general']['coming_soon_text'] = wp_kses_post( $_POST[ self::$plugin_info['name'] ]['general']['coming_soon_text'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash
    767768                } elseif ( isset( $_POST[ self::$plugin_info['name'] ][ $tab_arr['key'] ] ) ) {
    768769                        $default_settings[ $tab_arr['key'] ] = self::$default_settings[ $tab_arr['key'] ];
     
    785786
    786787                if ( isset( $_POST[ self::$plugin_info['name'] ]['general']['single_placement_position'] ) ) {
    787                     $default_settings['general']['single_placement_position'] = sanitize_text_field( $_POST[ self::$plugin_info['name'] ]['general']['single_placement_position'] );
     788                    $default_settings['general']['single_placement_position'] = sanitize_text_field( wp_unslash( $_POST[ self::$plugin_info['name'] ]['general']['single_placement_position'] ) );
    788789                }
    789790                if ( isset( $_POST[ self::$plugin_info['name'] ]['general']['single_placement_position_priority'] ) ) {
    790                     $default_settings['general']['single_placement_position_priority'] = (int) sanitize_text_field( $_POST[ self::$plugin_info['name'] ]['general']['single_placement_position_priority'] );
     791                    $default_settings['general']['single_placement_position_priority'] = (int) sanitize_text_field( wp_unslash( $_POST[ self::$plugin_info['name'] ]['general']['single_placement_position_priority'] ) );
    791792                }
    792793
     
    796797            }
    797798        }
    798         do_action( self::$plugin_info['name'] . '-main-settings-save' );
     799        do_action( self::$plugin_info['name'] . '-main-settings-save' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound
    799800    }
    800801
  • coming-soon-products-for-woocommerce/trunk/readme.txt

    r3428127 r3442611  
    33Tested up to: 6.9
    44Requires at least: 5.6
    5 Requires PHP: 7.0
    6 Version: 1.2.4
    7 Stable Tag: 1.2.4
     5Requires PHP: 7.0.0
     6Version: 1.2.5
     7Stable tag: 1.2.5
    88Contributors: GrandPlugins
    99Author: GrandPlugins
    1010Plugin URI: https://grandplugins.com/product/woo-coming-soon-products/
    1111Author email: [email protected]
    12 License: GPLv3
    13 License URI: https://www.gnu.org/licenses/gpl-3.0.html
     12License: GPLv2
     13License URI: https://www.gnu.org/licenses/gpl-2.0.html
     14
     15Allow Coming Soon mode for WooCommerce Products.
    1416
    1517== Description ==
  • coming-soon-products-for-woocommerce/trunk/templates/settings/badge-settings.php

    r3211482 r3442611  
     1<?php
     2defined( 'ABSPATH' ) || exit;
     3?>
    14<div class="<?php echo esc_attr( $plugin_info['classes_prefix'] . '-badge-settings-wrapper' ); ?> bg-white shadow-sm">
    25    <div class="container-fluid">
     
    710                        <div class="settings-list">
    811                            <div class="notice notice-warning notice-alt">
    9                                 <p><?php esc_html_e( 'If you experience an issue regarding the badge styles / position in frontend, It could be due to a conflict with your theme styles. Please', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?><a style="margin:0px 5px;" target="_blank" href="https://grandplugins.com/contact-us/"><?php esc_html_e( 'Contact Us', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></a><?php esc_html_e( 'with the theme name, screenshots or a test link in order to fix it', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></p>
     12                                <p><?php esc_html_e( 'If you experience an issue regarding the badge styles / position in frontend, It could be due to a conflict with your theme styles. Please', 'coming-soon-products-for-woocommerce' ); ?><a style="margin:0px 5px;" target="_blank" href="https://grandplugins.com/contact-us/"><?php esc_html_e( 'Contact Us', 'coming-soon-products-for-woocommerce' ); ?></a><?php esc_html_e( 'with the theme name, screenshots or a test link in order to fix it', 'coming-soon-products-for-woocommerce' ); ?></p>
    1013                            </div>
    1114                            <!-- Enable | Disable the badge -->
    1215                            <div class="my-5 row badge-status">
    1316                                <div class="col-3">
    14                                     <h6><?php esc_html_e( 'Badge Status', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     17                                    <h6><?php esc_html_e( 'Badge Status', 'coming-soon-products-for-woocommerce' ); ?></h6>
    1518                                </div>
    1619                                <div class="col-9">
    1720                                    <label for="badge-status">
    1821                                        <input type="checkbox" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_status]' ); ?>" class="edit edit-badge-status" <?php echo esc_attr( 'on' === $badge_settings['badge_status'] ? 'checked' : '' ); ?> >
    19                                         <?php esc_html_e( 'Enable the Badge', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?>
     22                                        <?php esc_html_e( 'Enable the Badge', 'coming-soon-products-for-woocommerce' ); ?>
    2023                                    </label>
    2124                                </div>
     
    2427                            <div class="my-5 row badge-icon-select mb-3">
    2528                                <div class="col-3">
    26                                     <h6><?php esc_html_e( 'Badge Icon', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     29                                    <h6><?php esc_html_e( 'Badge Icon', 'coming-soon-products-for-woocommerce' ); ?></h6>
    2730                                </div>
    2831                                <div class="col-9">
     
    3336                                        <div class="col">
    3437                                            <div class="badge-icons-toggler">
    35                                                 <button class="badge-icons-toggle button-primary"><?php esc_html_e( 'Available Icons', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></button>
     38                                                <button class="badge-icons-toggle button-primary"><?php esc_html_e( 'Available Icons', 'coming-soon-products-for-woocommerce' ); ?></button>
    3639                                            </div>
    3740                                        </div>
     
    4750
    4851                                    <div class="badge-icons-wrapper row collapse">
    49                                         <?php foreach ( $available_badges as $badge ) : ?>
     52                                        <?php foreach ( $available_badges as $badge ) : // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound ?>
    5053                                        <div class="badge-icon-element col border shadow-sm px-3 py-1">
    5154                                            <input <?php echo esc_attr( $badge['name'] === $badge_settings['badge_icon'] ? 'checked' : '' ); ?> type="radio" value="<?php echo esc_attr( $badge['name'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_icon]' ); ?>" class="edit edit-badge-icon-radio d-block mx-auto my-3">
     
    5962                            <div class="row my-5">
    6063                                <div class="col-3">
    61                                     <h6><?php esc_html_e( 'Badge Side', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     64                                    <h6><?php esc_html_e( 'Badge Side', 'coming-soon-products-for-woocommerce' ); ?></h6>
    6265                                </div>
    6366                                <div class="col-9">
    6467                                    <select class="edit-badge-icon-position" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_side]' ); ?>" >
    65                                         <option <?php selected( $badge_settings['badge_side'], 'top_left' ); ?> value="<?php echo esc_attr( 'top_left' ); ?>"><?php esc_html_e( 'Top Left', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    66                                         <option disabled <?php selected( $badge_settings['badge_side'], 'top_center' ); ?> value="<?php echo esc_attr( 'top_center' ); ?>"><?php esc_html_e( 'Top Center (PRO)', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    67                                         <option <?php selected( $badge_settings['badge_side'], 'top_right' ); ?> value="<?php echo esc_attr( 'top_right' ); ?>"><?php esc_html_e( 'Top Right', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    68                                         <option disabled <?php selected( $badge_settings['badge_side'], 'bottom_left' ); ?> value="<?php echo esc_attr( 'bottom_left' ); ?>"><?php esc_html_e( 'Bottom Left (PRO)', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    69                                         <option disabled <?php selected( $badge_settings['badge_side'], 'bottom_center' ); ?> value="<?php echo esc_attr( 'bottom_center' ); ?>"><?php esc_html_e( 'Bottom Center (PRO)', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    70                                         <option disabled <?php selected( $badge_settings['badge_side'], 'bottom_right' ); ?> value="<?php echo esc_attr( 'bottom_right' ); ?>"><?php esc_html_e( 'Bottom Right (PRO)', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    71                                         <option disabled <?php selected( $badge_settings['badge_side'], 'left_center' ); ?> value="<?php echo esc_attr( 'left_center' ); ?>"><?php esc_html_e( 'Left Center (PRO)', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    72                                         <option disabled <?php selected( $badge_settings['badge_side'], 'right_center' ); ?> value="<?php echo esc_attr( 'right_center' ); ?>"><?php esc_html_e( 'Right Center (PRO)', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     68                                        <option <?php selected( $badge_settings['badge_side'], 'top_left' ); ?> value="<?php echo esc_attr( 'top_left' ); ?>"><?php esc_html_e( 'Top Left', 'coming-soon-products-for-woocommerce' ); ?></option>
     69                                        <option disabled <?php selected( $badge_settings['badge_side'], 'top_center' ); ?> value="<?php echo esc_attr( 'top_center' ); ?>"><?php esc_html_e( 'Top Center (PRO)', 'coming-soon-products-for-woocommerce' ); ?></option>
     70                                        <option <?php selected( $badge_settings['badge_side'], 'top_right' ); ?> value="<?php echo esc_attr( 'top_right' ); ?>"><?php esc_html_e( 'Top Right', 'coming-soon-products-for-woocommerce' ); ?></option>
     71                                        <option disabled <?php selected( $badge_settings['badge_side'], 'bottom_left' ); ?> value="<?php echo esc_attr( 'bottom_left' ); ?>"><?php esc_html_e( 'Bottom Left (PRO)', 'coming-soon-products-for-woocommerce' ); ?></option>
     72                                        <option disabled <?php selected( $badge_settings['badge_side'], 'bottom_center' ); ?> value="<?php echo esc_attr( 'bottom_center' ); ?>"><?php esc_html_e( 'Bottom Center (PRO)', 'coming-soon-products-for-woocommerce' ); ?></option>
     73                                        <option disabled <?php selected( $badge_settings['badge_side'], 'bottom_right' ); ?> value="<?php echo esc_attr( 'bottom_right' ); ?>"><?php esc_html_e( 'Bottom Right (PRO)', 'coming-soon-products-for-woocommerce' ); ?></option>
     74                                        <option disabled <?php selected( $badge_settings['badge_side'], 'left_center' ); ?> value="<?php echo esc_attr( 'left_center' ); ?>"><?php esc_html_e( 'Left Center (PRO)', 'coming-soon-products-for-woocommerce' ); ?></option>
     75                                        <option disabled <?php selected( $badge_settings['badge_side'], 'right_center' ); ?> value="<?php echo esc_attr( 'right_center' ); ?>"><?php esc_html_e( 'Right Center (PRO)', 'coming-soon-products-for-woocommerce' ); ?></option>
    7376                                    </select>
    7477                                    <?php $core->pro_btn(); ?>
     
    7881                            <div class="row my-5">
    7982                                <div class="col-3">
    80                                     <h6><?php esc_html_e( 'Single Badge Side', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?>  <?php $core->pro_btn(); ?></h6>
     83                                    <h6><?php esc_html_e( 'Single Badge Side', 'coming-soon-products-for-woocommerce' ); ?>     <?php $core->pro_btn(); ?></h6>
    8184                                </div>
    8285                                <div class="col-9">
    8386                                    <select disabled class="edit-badge-icon-position">
    84                                         <option value="<?php echo esc_attr( 'top_left' ); ?>"><?php esc_html_e( 'Top Left', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    85                                         <option value="<?php echo esc_attr( 'top_center' ); ?>"><?php esc_html_e( 'Top Center', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    86                                         <option value="<?php echo esc_attr( 'top_right' ); ?>"><?php esc_html_e( 'Top Right', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    87                                         <option value="<?php echo esc_attr( 'left_center' ); ?>"><?php esc_html_e( 'Left Center', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    88                                         <option value="<?php echo esc_attr( 'bottom_left' ); ?>"><?php esc_html_e( 'Bottom Left', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    89                                         <option value="<?php echo esc_attr( 'bottom_center' ); ?>"><?php esc_html_e( 'Bottom Center', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    90                                         <option value="<?php echo esc_attr( 'right_center' ); ?>"><?php esc_html_e( 'Right Center', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
    91                                         <option value="<?php echo esc_attr( 'bottom_right' ); ?>"><?php esc_html_e( 'Bottom Right', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></option>
     87                                        <option value="<?php echo esc_attr( 'top_left' ); ?>"><?php esc_html_e( 'Top Left', 'coming-soon-products-for-woocommerce' ); ?></option>
     88                                        <option value="<?php echo esc_attr( 'top_center' ); ?>"><?php esc_html_e( 'Top Center', 'coming-soon-products-for-woocommerce' ); ?></option>
     89                                        <option value="<?php echo esc_attr( 'top_right' ); ?>"><?php esc_html_e( 'Top Right', 'coming-soon-products-for-woocommerce' ); ?></option>
     90                                        <option value="<?php echo esc_attr( 'left_center' ); ?>"><?php esc_html_e( 'Left Center', 'coming-soon-products-for-woocommerce' ); ?></option>
     91                                        <option value="<?php echo esc_attr( 'bottom_left' ); ?>"><?php esc_html_e( 'Bottom Left', 'coming-soon-products-for-woocommerce' ); ?></option>
     92                                        <option value="<?php echo esc_attr( 'bottom_center' ); ?>"><?php esc_html_e( 'Bottom Center', 'coming-soon-products-for-woocommerce' ); ?></option>
     93                                        <option value="<?php echo esc_attr( 'right_center' ); ?>"><?php esc_html_e( 'Right Center', 'coming-soon-products-for-woocommerce' ); ?></option>
     94                                        <option value="<?php echo esc_attr( 'bottom_right' ); ?>"><?php esc_html_e( 'Bottom Right', 'coming-soon-products-for-woocommerce' ); ?></option>
    9295                                    </select>
    9396                                </div>
    94                                 <small><?php esc_html_e( 'Badge side in single product page', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></small>
     97                                <small><?php esc_html_e( 'Badge side in single product page', 'coming-soon-products-for-woocommerce' ); ?></small>
    9598                            </div>
    9699                            <!-- Badge Width - Height -->
    97100                            <div class="row my-5">
    98101                                <div class="col-3">
    99                                     <h6><?php esc_html_e( 'Dimension', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     102                                    <h6><?php esc_html_e( 'Dimension', 'coming-soon-products-for-woocommerce' ); ?></h6>
    100103                                </div>
    101104                                <div class="col-9">
    102105                                    <div class="row">
    103106                                        <div class="col-md-6 my-2">
    104                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Width', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     107                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Width', 'coming-soon-products-for-woocommerce' ); ?></h6>
    105108                                            <input type="number" value="<?php echo esc_attr( $badge_settings['badge_width'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_width]' ); ?>" class="edit edit-badge-icon-width">&nbsp;<?php echo esc_html( 'px' ); ?>
    106109                                        </div>
    107110                                        <div class="col-md-6 my-2">
    108                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Height', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     111                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Height', 'coming-soon-products-for-woocommerce' ); ?></h6>
    109112                                            <input type="number" value="<?php echo esc_attr( $badge_settings['badge_height'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_height]' ); ?>" class="edit edit-badge-icon-height">&nbsp;<?php echo esc_html( 'px' ); ?>
    110113                                        </div>
     
    115118                            <div class="row my-5">
    116119                                <div class="col-3">
    117                                     <h6 class="col-12 mb-3"><?php esc_html_e( 'Margin', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     120                                    <h6 class="col-12 mb-3"><?php esc_html_e( 'Margin', 'coming-soon-products-for-woocommerce' ); ?></h6>
    118121                                </div>
    119122                                <div class="col-9">
    120123                                    <div class="row">
    121124                                        <div class="col-md-6 my-2">
    122                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Horizontal Margin', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     125                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Horizontal Margin', 'coming-soon-products-for-woocommerce' ); ?></h6>
    123126                                            <input type="number" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_left]' ); ?>" value="<?php echo esc_attr( $badge_settings['badge_left'] ); ?>" min="0" max="100" class="edit edit-badge-padding-left">&nbsp;<?php echo esc_html( 'px' ); ?>
    124127                                        </div>
    125128                                        <div class="col-md-6 my-2">
    126                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Vertical Margin', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     129                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Vertical Margin', 'coming-soon-products-for-woocommerce' ); ?></h6>
    127130                                            <input type="number" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_top]' ); ?>" value="<?php echo esc_attr( $badge_settings['badge_top'] ); ?>" min="0" max="100" class="edit edit-badge-padding-top">&nbsp;<?php echo esc_html( 'px' ); ?>
    128131                                        </div>
     
    133136                            <div class="row my-5">
    134137                                <div class="col-3">
    135                                     <h6 class="col-12 mb-3"><?php esc_html_e( 'Angle', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     138                                    <h6 class="col-12 mb-3"><?php esc_html_e( 'Angle', 'coming-soon-products-for-woocommerce' ); ?></h6>
    136139                                </div>
    137140                                <div class="col-9">
     
    142145                            <div class="row my-5">
    143146                                <div class="col-3">
    144                                     <h6><?php esc_html_e( 'Responsive', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     147                                    <h6><?php esc_html_e( 'Responsive', 'coming-soon-products-for-woocommerce' ); ?></h6>
    145148                                    <?php $core->pro_btn(); ?>
    146149                                </div>
     
    148151                                    <div class="row">
    149152                                        <div class="col-md-4 my-2">
    150                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Max Screen width', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     153                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Max Screen width', 'coming-soon-products-for-woocommerce' ); ?></h6>
    151154                                            <input type="number" disabled value="<?php echo esc_attr( $badge_settings['badge_resp_breakpoint'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_resp_breakpoint]' ); ?>" class="edit edit-badge-icon-width">&nbsp;<?php echo esc_html( 'px' ); ?>
    152155                                        </div>
    153156                                        <div class="col-md-4 my-2">
    154                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Width', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     157                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Width', 'coming-soon-products-for-woocommerce' ); ?></h6>
    155158                                            <input type="number" disabled value="<?php echo esc_attr( $badge_settings['badge_resp_width'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_resp_width]' ); ?>" class="edit edit-badge-icon-width">&nbsp;<?php echo esc_html( 'px' ); ?>
    156159                                        </div>
    157160                                        <div class="col-md-4 my-2">
    158                                             <h6 class="col-12 mb-3"><?php esc_html_e( 'Height', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     161                                            <h6 class="col-12 mb-3"><?php esc_html_e( 'Height', 'coming-soon-products-for-woocommerce' ); ?></h6>
    159162                                            <input type="number" disabled value="<?php echo esc_attr( $badge_settings['badge_resp_height'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[badge][badge_resp_height]' ); ?>" class="edit edit-badge-icon-height">&nbsp;<?php echo esc_html( 'px' ); ?>
    160163                                        </div>
    161164                                    </div>
    162165                                    <div class="col-12">
    163                                         <p class="text-center p-3 text-muted"><?php esc_html_e( 'Set badge width and height at smaller screens', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></p>
     166                                        <p class="text-center p-3 text-muted"><?php esc_html_e( 'Set badge width and height at smaller screens', 'coming-soon-products-for-woocommerce' ); ?></p>
    164167                                    </div>
    165168                                </div>
     
    169172                                <div class="col-3">
    170173                                    <h6 class="col-12 mb-3">
    171                                         <?php esc_html_e( 'Z-Index', 'woo-coming-soon-products' ); ?>
     174                                        <?php esc_html_e( 'Z-Index', 'coming-soon-products-for-woocommerce' ); ?>
    172175                                        <span><?php $core->new_keyword( 'New', false ); ?></span>
    173176                                        <span><?php $core->pro_btn(); ?></span>
  • coming-soon-products-for-woocommerce/trunk/templates/settings/countdown-settings.php

    r2878018 r3442611  
    11<?php
     2defined( 'ABSPATH' ) || exit;
    23use GPLSCore\GPLS_PLUGIN_WCSAMM\Settings;
    34?>
     
    1112                        <div class="settings-list row">
    1213                            <div class="loop-wrapper col-12 my-3 p-3 bg-white shadow-sm">
    13                                 <h4><?php esc_html_e( 'Loop Settings', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
    14                                 <span><?php esc_html_e( 'Settings for countdown on loop pages like shop, categories, tags pages, etc...', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     14                                <h4><?php esc_html_e( 'Loop Settings', 'coming-soon-products-for-woocommerce' ); ?></h4>
     15                                <span><?php esc_html_e( 'Settings for countdown on loop pages like shop, categories, tags pages, etc...', 'coming-soon-products-for-woocommerce' ); ?></span>
    1516                                <div class="container-fluid border mt-4">
    1617                                    <!-- Loop coming soon status -->
     
    1819                                        <div class="row">
    1920                                            <div class="col-md-3">
    20                                                 <h6 class="mb-1"><?php esc_html_e( 'Coming Soon Countdown', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     21                                                <h6 class="mb-1"><?php esc_html_e( 'Coming Soon Countdown', 'coming-soon-products-for-woocommerce' ); ?></h6>
    2122                                            </div>
    2223                                            <div class="col-md-9">
    2324                                                <input type="checkbox" class="regular-text" name="<?php echo esc_attr( $plugin_info['name'] . '[countdown][loop][status]' ); ?>" <?php echo esc_attr( 'on' === $countdown_settings['loop']['status'] ? 'checked="checked"' : '' ); ?> >
    24                                                 <small><?php esc_html_e( 'Show the coming soon countdown on loop pages', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></small>
     25                                                <small><?php esc_html_e( 'Show the coming soon countdown on loop pages', 'coming-soon-products-for-woocommerce' ); ?></small>
    2526                                            </div>
    2627                                        </div>
     
    3031                                        <div class="row">
    3132                                            <div class="col-md-3">
    32                                                 <h6><?php esc_html_e( 'Show Coming Soon Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     33                                                <h6><?php esc_html_e( 'Show Coming Soon Text', 'coming-soon-products-for-woocommerce' ); ?></h6>
    3334                                            </div>
    3435                                            <div class="col-md-9">
    3536                                                <input type="checkbox" class="regular-text" name="<?php echo esc_attr( $plugin_info['name'] . '[countdown][loop][text_status]' ); ?>" <?php echo esc_attr( 'on' === $countdown_settings['loop']['text_status'] ? 'checked="checked"' : '' ); ?> >
    36                                                 <small><?php esc_html_e( 'Show the product coming soon text on loop pages', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></small>
     37                                                <small><?php esc_html_e( 'Show the product coming soon text on loop pages', 'coming-soon-products-for-woocommerce' ); ?></small>
    3738                                            </div>
    3839                                        </div>
     
    4142                            </div>
    4243                            <div class="colors-wrapper col-12 my-2 p-3 bg-white shadow-sm">
    43                                 <h4><?php echo esc_html( 'Colors', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
     44                                <h4><?php echo esc_html( 'Colors', 'coming-soon-products-for-woocommerce' ); ?></h4>
    4445                                <div class="row">
    4546                                    <!-- Days -->
    4647                                    <div class="border settings-group my-4 py-4 col-md-3">
    47                                         <h4><?php esc_html_e( 'Days', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
    48                                         <div class="countgroup-wrapper subtitle">
    49                                             <!-- Title Color -->
    50                                             <div class="my-5 row countdown-rotor-color">
    51                                                 <div class="col-4">
    52                                                     <h6><?php esc_html_e( 'Title Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     48                                        <h4><?php esc_html_e( 'Days', 'coming-soon-products-for-woocommerce' ); ?></h4>
     49                                        <div class="countgroup-wrapper subtitle">
     50                                            <!-- Title Color -->
     51                                            <div class="my-5 row countdown-rotor-color">
     52                                                <div class="col-4">
     53                                                    <h6><?php esc_html_e( 'Title Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    5354                                                </div>
    5455                                                <div class="col-8">
     
    6162                                            <div class="my-5 row countdown-rotor-color">
    6263                                                <div class="col-4">
    63                                                     <h6><?php esc_html_e( 'Front Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     64                                                    <h6><?php esc_html_e( 'Front Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    6465                                                </div>
    6566                                                <div class="col-8">
     
    7273                                            <div class="my-5 row countdown-rotor-color">
    7374                                                <div class="col-4">
    74                                                     <h6><?php esc_html_e( 'Back Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     75                                                    <h6><?php esc_html_e( 'Back Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    7576                                                </div>
    7677                                                <div class="col-8">
     
    8384                                            <div class="my-5 row countdown-rotor-color">
    8485                                                <div class="col-4">
    85                                                     <h6><?php esc_html_e( 'Divider Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     86                                                    <h6><?php esc_html_e( 'Divider Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    8687                                                </div>
    8788                                                <div class="col-8">
     
    9596                                    <!-- Hours -->
    9697                                    <div class="border settings-group my-4 py-4 col-md-3">
    97                                         <h4><?php esc_html_e( 'Hours', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
    98                                         <div class="countgroup-wrapper subtitle">
    99                                             <!-- Title Color -->
    100                                             <div class="my-5 row countdown-rotor-color">
    101                                                 <div class="col-4">
    102                                                     <h6><?php esc_html_e( 'Title Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     98                                        <h4><?php esc_html_e( 'Hours', 'coming-soon-products-for-woocommerce' ); ?></h4>
     99                                        <div class="countgroup-wrapper subtitle">
     100                                            <!-- Title Color -->
     101                                            <div class="my-5 row countdown-rotor-color">
     102                                                <div class="col-4">
     103                                                    <h6><?php esc_html_e( 'Title Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    103104                                                </div>
    104105                                                <div class="col-8">
     
    111112                                            <div class="my-5 row countdown-rotor-color">
    112113                                                <div class="col-4">
    113                                                     <h6><?php esc_html_e( 'Front Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     114                                                    <h6><?php esc_html_e( 'Front Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    114115                                                </div>
    115116                                                <div class="col-8">
     
    122123                                            <div class="my-5 row countdown-rotor-color">
    123124                                                <div class="col-4">
    124                                                     <h6><?php esc_html_e( 'Back Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     125                                                    <h6><?php esc_html_e( 'Back Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    125126                                                </div>
    126127                                                <div class="col-8">
     
    133134                                            <div class="my-5 row countdown-rotor-color">
    134135                                                <div class="col-4">
    135                                                     <h6><?php esc_html_e( 'Divider Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     136                                                    <h6><?php esc_html_e( 'Divider Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    136137                                                </div>
    137138                                                <div class="col-8">
     
    145146                                    <!-- Minutes -->
    146147                                    <div class="border settings-group my-4 py-4 col-md-3">
    147                                         <h4><?php esc_html_e( 'Minutes', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
    148                                         <div class="countgroup-wrapper subtitle">
    149                                             <!-- Title Color -->
    150                                             <div class="my-5 row countdown-rotor-color">
    151                                                 <div class="col-4">
    152                                                     <h6><?php esc_html_e( 'Title Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     148                                        <h4><?php esc_html_e( 'Minutes', 'coming-soon-products-for-woocommerce' ); ?></h4>
     149                                        <div class="countgroup-wrapper subtitle">
     150                                            <!-- Title Color -->
     151                                            <div class="my-5 row countdown-rotor-color">
     152                                                <div class="col-4">
     153                                                    <h6><?php esc_html_e( 'Title Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    153154                                                </div>
    154155                                                <div class="col-8">
     
    161162                                            <div class="my-5 row countdown-rotor-color">
    162163                                                <div class="col-4">
    163                                                     <h6><?php esc_html_e( 'Front Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     164                                                    <h6><?php esc_html_e( 'Front Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    164165                                                </div>
    165166                                                <div class="col-8">
     
    172173                                            <div class="my-5 row countdown-rotor-color">
    173174                                                <div class="col-4">
    174                                                     <h6><?php esc_html_e( 'Back Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     175                                                    <h6><?php esc_html_e( 'Back Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    175176                                                </div>
    176177                                                <div class="col-8">
     
    183184                                            <div class="my-5 row countdown-rotor-color">
    184185                                                <div class="col-4">
    185                                                     <h6><?php esc_html_e( 'Divider Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     186                                                    <h6><?php esc_html_e( 'Divider Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    186187                                                </div>
    187188                                                <div class="col-8">
     
    195196                                    <!-- Seconds -->
    196197                                    <div class="border settings-group my-4 py-4 col-md-3">
    197                                         <h4><?php esc_html_e( 'Seconds', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h4>
    198                                         <div class="countgroup-wrapper subtitle">
    199                                             <!-- Title Color -->
    200                                             <div class="my-5 row countdown-rotor-color">
    201                                                 <div class="col-4">
    202                                                     <h6><?php esc_html_e( 'Title Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     198                                        <h4><?php esc_html_e( 'Seconds', 'coming-soon-products-for-woocommerce' ); ?></h4>
     199                                        <div class="countgroup-wrapper subtitle">
     200                                            <!-- Title Color -->
     201                                            <div class="my-5 row countdown-rotor-color">
     202                                                <div class="col-4">
     203                                                    <h6><?php esc_html_e( 'Title Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    203204                                                </div>
    204205                                                <div class="col-8">
     
    211212                                            <div class="my-5 row countdown-rotor-color">
    212213                                                <div class="col-4">
    213                                                     <h6><?php esc_html_e( 'Front Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     214                                                    <h6><?php esc_html_e( 'Front Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    214215                                                </div>
    215216                                                <div class="col-8">
     
    222223                                            <div class="my-5 row countdown-rotor-color">
    223224                                                <div class="col-4">
    224                                                     <h6><?php esc_html_e( 'Back Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     225                                                    <h6><?php esc_html_e( 'Back Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    225226                                                </div>
    226227                                                <div class="col-8">
     
    233234                                            <div class="my-5 row countdown-rotor-color">
    234235                                                <div class="col-4">
    235                                                     <h6><?php esc_html_e( 'Divider Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     236                                                    <h6><?php esc_html_e( 'Divider Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    236237                                                </div>
    237238                                                <div class="col-8">
  • coming-soon-products-for-woocommerce/trunk/templates/settings/email-settings.php

    r2952398 r3442611  
    11<?php
     2defined( 'ABSPATH' ) || exit;
    23use GPLSCorePro\GPLS_PLUGIN_WCSAMM\ComingSoonBackend;
    34use GPLSCorePro\GPLS_PLUGIN_WCSAMM\ComingSoonEmails;
     
    1314                    <div class="loop-wrapper col-12 my-3 p-3 bg-white shadow-sm">
    1415                        <div class="container-fluid border">
    15                             <h3 class="mt-3"><?php esc_html_e( 'Subscribed Emails', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?><?php $core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', false ); ?></h3>
     16                            <h3 class="mt-3"><?php esc_html_e( 'Subscribed Emails', 'coming-soon-products-for-woocommerce' ); ?><?php $core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', false ); ?></h3>
    1617                        </div>
    1718                    </div>
  • coming-soon-products-for-woocommerce/trunk/templates/settings/general-settings.php

    r3027410 r3442611  
    11<?php
     2defined( 'ABSPATH' ) || exit;
    23use GPLSCore\GPLS_PLUGIN_WCSAMM\Settings;
    34
     
    1516                                <div class="row">
    1617                                    <div class="col-md-3">
    17                                         <h6><?php esc_html_e( 'Coming soon section position', 'woo-coming-soon-products' ); ?><span class="ms-1"><?php $core->new_keyword( 'New', false ); ?></span></h6>
     18                                        <h6><?php esc_html_e( 'Coming soon section position', 'coming-soon-products-for-woocommerce' ); ?><span class="ms-1"><?php $core->new_keyword( 'New', false ); ?></span></h6>
    1819                                    </div>
    1920                                    <div class="col-md-9">
    2021                                        <div class="settings-field-section my-3 shadow-sm p-3">
    2122                                            <?php Settings::single_product_placement_actions_select( $plugin_info['name'] . '[general][single_placement_position]', $general_settings['single_placement_position'] ); ?>
    22                                             <small class="d-block mt-3"><?php esc_html_e( 'Action hook to place the coming soon section [ coming soon text - coming soon countdown - subscription form ] in single product page', 'woo-coming-soon-products' ); ?></small>
     23                                            <small class="d-block mt-3"><?php esc_html_e( 'Action hook to place the coming soon section [ coming soon text - coming soon countdown - subscription form ] in single product page', 'coming-soon-products-for-woocommerce' ); ?></small>
    2324                                        </div>
    2425                                        <div class="settings-field-section my-3 shadow-sm p-3">
    2526                                            <input type="number" value="<?php echo esc_attr( $general_settings['single_placement_position_priority'] ); ?>" name="<?php echo esc_attr( $plugin_info['name'] . '[general][single_placement_position_priority]' ); ?>">
    26                                             <small class="d-block mt-3"><?php esc_html_e( 'Action hook priority', 'woo-coming-soon-products' ); ?></small>
     27                                            <small class="d-block mt-3"><?php esc_html_e( 'Action hook priority', 'coming-soon-products-for-woocommerce' ); ?></small>
    2728                                        </div>
    2829                                        <div class="coming-soon-section-wrapper my-3 shadow-sm p-3">
    29                                             <h3><?php esc_html_e( 'Coming soon section shortcode', 'woo-coming-soon-products' ); ?></h3>
     30                                            <h3><?php esc_html_e( 'Coming soon section shortcode', 'coming-soon-products-for-woocommerce' ); ?></h3>
    3031                                            <small class="ms-1 ml-1"><?php echo esc_html( ' [ coming soon text - coming soon countdown ]' ); ?></small>
    31                                             <small class="d-block ms-1 ml-1 my-2 text-muted"><?php esc_html_e( 'Use this shortcode in case the coming soon section doesn\'t appear using the hooks selection above. This happens if you are using a blocks-based theme or other themes that manipulate the WooCommerce standard single product template structure.', 'woo-coming-soon-products' ); ?></small>
     32                                            <small class="d-block ms-1 ml-1 my-2 text-muted"><?php esc_html_e( 'Use this shortcode in case the coming soon section doesn\'t appear using the hooks selection above. This happens if you are using a blocks-based theme or other themes that manipulate the WooCommerce standard single product template structure.', 'coming-soon-products-for-woocommerce' ); ?></small>
    3233                                            <div class="coming-soon-section">
    3334                                                <code class="d-inline-block my-3"><?php echo esc_html( '[' . str_replace( '-', '_', self::$plugin_info['classes_prefix'] . '-coming-soon-section' ) . ']' ); ?></code>
     
    4950                                <div class="row">
    5051                                    <div class="col-md-3">
    51                                         <h6><?php esc_html_e( 'General Coming Soon Text', 'woo-coming-soon-products' ); ?><span class="ms-1"><?php $core->new_keyword( 'New', false ); ?></span></h6>
     52                                        <h6><?php esc_html_e( 'General Coming Soon Text', 'coming-soon-products-for-woocommerce' ); ?><span class="ms-1"><?php $core->new_keyword( 'New', false ); ?></span></h6>
    5253                                    </div>
    5354                                    <div class="col-md-9">
  • coming-soon-products-for-woocommerce/trunk/templates/settings/subscribe-settings.php

    r3027410 r3442611  
    11<?php
     2defined( 'ABSPATH' ) || exit;
    23use GPLSCorePro\GPLS_PLUGIN_WCSAMM\Settings;
    34
     
    1011                    <div class="loop-wrapper col-12 my-3 p-3 bg-white shadow-sm">
    1112                        <div class="container-fluid border">
    12                             <h3 class="mt-3"><?php esc_html_e( 'Subscribe form settings', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?><?php $core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', false ); ?></h3>
     13                            <h3 class="mt-3"><?php esc_html_e( 'Subscribe form settings', 'coming-soon-products-for-woocommerce' ); ?><?php $core->pro_btn( '', 'Pro →', 'd-gpls-premium-btn-wave-product d-gpls-premium-btn-wave-product-shortcode', '', false ); ?></h3>
    1314                            <!-- Subscription Form Title -->
    1415                            <div class="loop-coming-soon-text-wrapper settings-group my-4 py-4 col-md-12">
    1516                                <div class="row">
    1617                                    <div class="col-md-3">
    17                                         <h6><?php esc_html_e( 'Subscription Form Title', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     18                                        <h6><?php esc_html_e( 'Subscription Form Title', 'coming-soon-products-for-woocommerce' ); ?></h6>
    1819                                    </div>
    1920                                    <div class="col-md-9">
     
    2627                                <div class="row">
    2728                                    <div class="col-md-3">
    28                                         <h6><?php esc_html_e( 'Subscription Form Placeholder', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     29                                        <h6><?php esc_html_e( 'Subscription Form Placeholder', 'coming-soon-products-for-woocommerce' ); ?></h6>
    2930                                    </div>
    3031                                    <div class="col-md-9">
     
    3738                                <div class="row">
    3839                                    <div class="col-md-3">
    39                                         <h6><?php esc_html_e( 'After Submit Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
    40                                         <span><?php esc_html_e( 'This text will appear after the Subscription form is submitted', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></span>
     40                                        <h6><?php esc_html_e( 'After Submit Text', 'coming-soon-products-for-woocommerce' ); ?></h6>
     41                                        <span><?php esc_html_e( 'This text will appear after the Subscription form is submitted', 'coming-soon-products-for-woocommerce' ); ?></span>
    4142                                    </div>
    4243                                    <div class="col-md-9">
     
    4950                                <div class="row">
    5051                                    <div class="col-md-3">
    51                                         <h6><?php esc_html_e( 'Submit Button Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     52                                        <h6><?php esc_html_e( 'Submit Button Text', 'coming-soon-products-for-woocommerce' ); ?></h6>
    5253                                    </div>
    5354                                    <div class="col-md-9">
     
    6061                                <div class="row">
    6162                                    <div class="col-md-3">
    62                                         <h6><?php esc_html_e( 'Submit Button Background', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     63                                        <h6><?php esc_html_e( 'Submit Button Background', 'coming-soon-products-for-woocommerce' ); ?></h6>
    6364                                    </div>
    6465                                    <div class="col-md-9">
     
    7172                                <div class="row">
    7273                                    <div class="col-md-3">
    73                                         <h6><?php esc_html_e( 'Submit Button Color', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     74                                        <h6><?php esc_html_e( 'Submit Button Color', 'coming-soon-products-for-woocommerce' ); ?></h6>
    7475                                    </div>
    7576                                    <div class="col-md-9">
     
    8283                                <div class="row">
    8384                                    <div class="col-md-3">
    84                                         <h6><?php esc_html_e( 'Consent Text', 'gpls-wcsamm-coming-soon-for-woocommerce' ); ?></h6>
     85                                        <h6><?php esc_html_e( 'Consent Text', 'coming-soon-products-for-woocommerce' ); ?></h6>
    8586                                    </div>
    8687                                    <div class="col-md-9">
Note: See TracChangeset for help on using the changeset viewer.