Plugin Directory

Changeset 3410850


Ignore:
Timestamp:
12/04/2025 12:00:27 PM (3 months ago)
Author:
dmcwebzone
Message:

Tested and optimized for WordPress 6.9
Fixed a bug in the setting - prevent content from being hidden

Location:
dmc-sale-banner
Files:
336 added
8 edited

Legend:

Unmodified
Added
Removed
  • dmc-sale-banner/trunk/dmc-sale-banner.php

    r3396851 r3410850  
    55 * Plugin URI: https://web-zone.org/sale-banner
    66 * Description: Display a notification, announcement, sale banner or promotion using the top bar, bottom bar, widget, shortcode or WooCommerce product integration
    7  * Version: 1.2.5
     7 * Version: 1.2.6
    88 * Requires at least: 6.0
    99 * Requires PHP: 7.1
     
    4949// Version
    5050if ( !defined( 'DMCWZSB_VERSION' ) ) {
    51     define( 'DMCWZSB_VERSION', '1.2.5' );
     51    define( 'DMCWZSB_VERSION', '1.2.6' );
    5252}
    5353// SDK
  • dmc-sale-banner/trunk/inc/admin/usability.php

    r3382004 r3410850  
    1313function dmcwzsb_fun_pr_set_sidebar_list() {
    1414      return '<div class="dmcwzsb-css-set-admin-premium">
    15             <h2>' . DMCWZSB_NAME_SMALL . ' (Premium)</h2>
     15            <h2>' . DMCWZSB_NAME_MID . ' (Premium)</h2>
    1616            <p><span class="icon-check-mark"></span>' . esc_html__('Visual countdown timer', 'dmc-sale-banner') . '</p>
    1717            <p><span class="icon-check-mark"></span>' . esc_html__('Turn on and off by timer', 'dmc-sale-banner') . '</p>
     
    4040      return '<div class="dmcwzsb-css-set-admin-versions">
    4141
    42             <h2>' . DMCWZSB_NAME_SMALL  .' '. esc_html__('(Comparison of Versions)', 'dmc-sale-banner') . '</h2>
     42            <h2>' . DMCWZSB_NAME_MID  .' '. esc_html__('(Comparison of Versions)', 'dmc-sale-banner') . '</h2>
    4343
    4444            <div class="dmcwzsb-css-set-admin-table-box">
  • dmc-sale-banner/trunk/inc/function-botbar.php

    r3365390 r3410850  
    5656    }
    5757    $text_author = esc_html__( 'Made with', 'dmc-sale-banner' );
    58     $text_author_a = 'WP Plugin ' . DMCWZSB_NAME_SMALL;
     58    $text_author_a = 'WP Plugin ' . DMCWZSB_NAME_MID;
    5959    ?>
    6060    <div class="dmcwzsb-css-botbar-author dmcwzsb-css-banner-author">
  • dmc-sale-banner/trunk/inc/function-main.php

    r3382004 r3410850  
    224224                    $css .= '
    225225                        @media (max-width: ' . $bbar_covered . 'px) {
    226                             .dmcwzsb-css-banner-container {
     226                            .dmcwzsb-css-botbar-container {
    227227                                display: none;
    228228                            }
  • dmc-sale-banner/trunk/inc/function-topbar.php

    r3365390 r3410850  
    5656    }
    5757    $text_author = esc_html__( 'Made with', 'dmc-sale-banner' );
    58     $text_author_a = 'WP Plugin ' . DMCWZSB_NAME_SMALL;
     58    $text_author_a = 'WP Plugin ' . DMCWZSB_NAME_MID;
    5959    ?>
    6060    <div class="dmcwzsb-css-topbar-author dmcwzsb-css-banner-author">
  • dmc-sale-banner/trunk/inc/function-woo.php

    r3369355 r3410850  
    1212if ( get_option( 'dmcwzsb_set_woo', 0 ) == 1 ) {
    1313    // Product
    14     $pos_product = get_option( 'dmcwzsb_set_woo_position_product', 'price_after' );
    15     if ( $pos_product !== 'off' ) {
     14    $dmcwzsb_pos_product = get_option( 'dmcwzsb_set_woo_position_product', 'price_after' );
     15    if ( $dmcwzsb_pos_product !== 'off' ) {
    1616        function dmcwzsb_fun_hook_woo_product() {
    1717            echo do_shortcode( '[dmcwzsb-sc-woo]' );
    1818        }
    1919
    20         switch ( $pos_product ) {
     20        switch ( $dmcwzsb_pos_product ) {
    2121            case 'top':
    2222                add_action( 'woocommerce_before_single_product', 'dmcwzsb_fun_hook_woo_product', 20 );
     
    4848    }
    4949    // Taxonomy
    50     $pos_tax = get_option( 'dmcwzsb_set_woo_position_tax', 'grid_before' );
    51     if ( $pos_tax !== 'off' ) {
     50    $dmcwzsb_pos_tax = get_option( 'dmcwzsb_set_woo_position_tax', 'grid_before' );
     51    if ( $dmcwzsb_pos_tax !== 'off' ) {
    5252        function dmcwzsb_fun_hook_woo_tax() {
    5353            echo do_shortcode( '[dmcwzsb-sc-woo]' );
    5454        }
    5555
    56         switch ( $pos_tax ) {
     56        switch ( $dmcwzsb_pos_tax ) {
    5757            case 'search':
    5858                add_action( 'pre_get_product_search_form', 'dmcwzsb_fun_hook_woo_tax', 10 );
     
    6969    }
    7070    // Cart
    71     $pos_cart = get_option( 'dmcwzsb_set_woo_position_cart', 'grid_before' );
    72     if ( $pos_cart !== 'off' ) {
     71    $dmcwzsb_pos_cart = get_option( 'dmcwzsb_set_woo_position_cart', 'grid_before' );
     72    if ( $dmcwzsb_pos_cart !== 'off' ) {
    7373        function dmcwzsb_fun_hook_woo_cart() {
    7474            echo '<div class="dmcwzsb-css-container-woo-cart">' . do_shortcode( '[dmcwzsb-sc-woo]' ) . '</div>';
     
    7676
    7777        // Classic cart
    78         switch ( $pos_cart ) {
     78        switch ( $dmcwzsb_pos_cart ) {
    7979            case 'grid_before':
    8080                add_action( 'woocommerce_before_cart', 'dmcwzsb_fun_hook_woo_cart', 10 );
     
    133133    }
    134134    // Checkout
    135     $pos_checkout = get_option( 'dmcwzsb_set_woo_position_checkout', 'title' );
    136     if ( $pos_checkout !== 'off' ) {
     135    $dmcwzsb_pos_checkout = get_option( 'dmcwzsb_set_woo_position_checkout', 'title' );
     136    if ( $dmcwzsb_pos_checkout !== 'off' ) {
    137137        function dmcwzsb_fun_hook_woo_checkout() {
    138138            echo '<div class="dmcwzsb-css-container-woo-checkout">' . do_shortcode( '[dmcwzsb-sc-woo]' ) . '</div>';
     
    140140
    141141        // Classic checkout
    142         switch ( $pos_checkout ) {
     142        switch ( $dmcwzsb_pos_checkout ) {
    143143            case 'title':
    144144                add_action( 'woocommerce_before_checkout_form', 'dmcwzsb_fun_hook_woo_checkout', 5 );
     
    197197    }
    198198    // Account
    199     $pos_account = get_option( 'dmcwzsb_set_woo_position_account', 'top' );
    200     if ( $pos_account !== 'off' ) {
     199    $dmcwzsb_pos_account = get_option( 'dmcwzsb_set_woo_position_account', 'top' );
     200    if ( $dmcwzsb_pos_account !== 'off' ) {
    201201        function dmcwzsb_fun_hook_woo_account() {
    202202            echo do_shortcode( '[dmcwzsb-sc-woo]' );
    203203        }
    204204
    205         switch ( $pos_account ) {
     205        switch ( $dmcwzsb_pos_account ) {
    206206            case 'top':
    207207                add_action( 'woocommerce_account_content', 'dmcwzsb_fun_hook_woo_account', 5 );
  • dmc-sale-banner/trunk/option/set.php

    r3382004 r3410850  
    209209                /* translators: %s: Plugin name */
    210210                esc_html__( 'Management and configuration instructions for the %s', 'dmc-sale-banner' ),
    211                 esc_html( DMCWZSB_NAME_SMALL )
     211                esc_html( DMCWZSB_NAME_MID )
    212212             ) . '</a></p>
    213213                <p><a href="' . esc_url( '//web-zone.org/category/plugins/sale-banner' ) . '" target="_blank">' . sprintf(
    214214                /* translators: %s: Plugin name */
    215215                esc_html__( 'Information materials for the %s', 'dmc-sale-banner' ),
    216                 esc_html( DMCWZSB_NAME_SMALL )
     216                esc_html( DMCWZSB_NAME_MID )
    217217             ) . '</a></p>
    218218                <p><a href="' . esc_url( '//salebanner.web-zone.org' ) . '" target="_blank">' . esc_html__( 'Watch live sites demos', 'dmc-sale-banner' ) . '</a></p>
     
    220220                /* translators: %s: Plugin name */
    221221                esc_html__( 'List of updates for the %s', 'dmc-sale-banner' ),
    222                 esc_html( DMCWZSB_NAME_SMALL )
     222                esc_html( DMCWZSB_NAME_MID )
    223223             ) . '</a></p>
    224224                <p><a href="' . esc_url( '//wordpress.org/support/plugin/dmc-sale-banner/reviews/' ) . '" target="_blank">' . esc_html__( 'Rate this plugin', 'dmc-sale-banner' ) . '</a></p>
  • dmc-sale-banner/trunk/readme.txt

    r3396851 r3410850  
    44Donate link: https://web-zone.org
    55Tags: banner, promo, sale, woocommerce, notification bar
    6 Stable tag: 1.2.5
     6Stable tag: 1.2.6
    77Requires at least: 6.0
    8 Tested up to: 6.8
     8Tested up to: 6.9
    99Requires PHP: 7.1
    1010License: GPLv2 or later
     
    1919**DMC Promo Banner** is the easiest way to add promotional banners, announcements, messages, informational notices, notifications, advertising promotions, and special offers to your site.
    2020
    21 Discount Sale Promo Banner displays eye-catching banners with text and a button. You can place the sale banner in the header or footer, on WooCommerce pages, or insert it via a widget or shortcode. Choose a ready-made banner design, add your text, and customize the action button.
     21DMC Promo Banner displays eye-catching banners with text and a button. You can place the universal banner in the header or footer, on WooCommerce pages, or insert it via a widget or shortcode. Choose a ready-made banner design, add your text, and customize the action button.
    2222
    2323The premium version includes a countdown timer to create a sense of urgency (FOMO). You can also schedule the banner to appear or disappear automatically based on a timer.
    2424
    25 Discount Sale Promo Banner is great for boosting sales through promotions, special offers, and FOMO marketing.
     25DMC Promo Banner is great for boosting sales through discount promotions, special offers, and FOMO marketing.
    2626
    2727### You can set up 5 separate banners
     
    122122Check out the sticky banner settings, which allow you to make your message, announcement, or notification sticky while still providing a good user experience.
    123123This is a "Smooth display" feature that allows you to create a smooth transition for the top banner before it becomes sticky.
    124 The "Screen Overflow" setting is necessary in case the sticky banner covers a large part of the screen.
    125 You can also set a top padding so that the top sticky banner with your message does not overlap with other sticky elements.
     124The "Screen Overflow" setting is necessary in case the sticky bar covers a large part of the screen.
     125You can also set a top padding so that the top sticky bar with your message does not overlap with other sticky elements.
    126126
    127127= How many announcement banners can I publish? =
     
    137137
    138138= How to create a selling banner in the sidebar? =
    139 Go to Appearance - Widgets and add the "DMC Sale Banner" widget.
     139Go to Appearance - Widgets and add the "DMC Promo Banner" widget.
    140140Go to the plugin settings, go to the Widget tab and activate the module.
    141141In the "Filling the banner" section, fill in the text describing your promotion or sale with incentives to increase sales.
     
    159159= How easy is it to set up a sale banner for my promotion? =
    160160After activating the "DMC Promo Banner" plugin, it immediately starts displaying a banner with the sale in the top bar.
    161 You can also easily display a sale banner in the footer bar on WooCommerce pages, insert it using a shortcode, or add it to the sidebar.
     161You can also easily display a sale banner in the footer bar, on WooCommerce pages, insert it using a shortcode, or add it to the sidebar.
    162162Simply fill in the text in the "Filling the banner" section and enter a link in the banner button that leads to your sale.
    163163If you have a premium version, you can add a countdown timer to your banner with a FOMO effect, which will significantly increase the conversion rate of your sale and promotion.
     
    170170After this, a banner with a countdown timer and a button will appear on the front side of the site, announcing your promotion and motivating users to make a purchase.
    171171
     172= How to create a header notification bar with a discount code? =
     173To create a header banner with a discount code, activate the module in the Top Bar tab, scroll to the Banner Content section, and add your promotional text.
     174In the text, include your discount code and highlight it in bold or with a bright color.
     175After saving, the promo bar with the discount code will appear on the front end of the website.
     176To keep the promo bar visible, enable the sticky promo bar. A floating promo bar is great for increasing the visibility of the discount banner and driving sales.
     177
    172178== Screenshots ==
    1731791. Display banner in bottom bar, top bar, widgets and WooCommerce product page (front view)
    1741802. Configuring - Filling the banner (admin view)
    1751813. Configuring - Design and orientation (admin view)
    176 4. Configuring the Sale Banner for the top bar (admin view)
    177 5. Configuring the Sale Banner for the bottom bar (admin view)
     1824. Configuring the discount bar for the top bar (admin view)
     1835. Configuring the Promo Banner for the bottom bar (admin view)
    1781846. Configuring the Sale Banner for the WooCommerce (admin view)
    179185
    180186== Changelog ==
     187= 1.2.6 =
     188* Improvements: Tested and optimized for WordPress 6.9
     189* Fixes: Fixed an issue where the "Prevent content hiding" setting for the bottom bar affected other banners
    181190= 1.2.5 =
    182191* Improvements: Changing the plugin name and description
Note: See TracChangeset for help on using the changeset viewer.