Make WordPress Themes

Changeset 355678


Ignore:
Timestamp:
10/27/2026 06:43:16 AM (4 hours ago)
Author:
themedropbox
Message:

New version of Ecommerce Center - 0.8.9

Location:
ecommerce-center/0.8.9
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ecommerce-center/0.8.9/footer.php

    r351108 r355678  
    55 * Contains the closing of the #content div and all content after.
    66 *
    7  * @link https://developer.WordPress.org/themes/basics/template-files/#template-partials
     7 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
    88 *
    99 * @package Ecommerce Center
    … …  
    7979                                    <div class="footer-menu-left">
    8080                                        <?php  if( ! get_theme_mod('ecommerce_zone_footer_text_setting') ){ ?>
    81                                                             <a target="_blank" href="<?php echo esc_url('https://WordPress.org/', 'ecommerce-center' ); ?>">
     81                                                            <a target="_blank" href="<?php echo esc_url('https://wordpress.org/', 'ecommerce-center' ); ?>">
    8282                                                                        <?php
    83                                                                         /* translators: %s: CMS name, i.e. WordPress. */
     83                                                                        /* translators: %s: CMS name, i.e. wordpress. */
    8484                                                                        printf( esc_html__( 'Proudly powered by %s', 'ecommerce-center' ), 'WordPress' );
    8585                                                                        ?>
    … …  
    8888
    8989                                                            <span>
    90                                                                 <a target="_blank" href="<?php echo esc_url( 'https://www.themagnifico.net/products/free-ecommerce-center-WordPress-theme'); ?>">
     90                                                                <a target="_blank" href="<?php echo esc_url( 'https://www.themagnifico.net/products/free-ecommerce-center-wordpress-theme'); ?>">
    9191                                                                <?php
    9292                                                                /* translators: 1: Theme name,  */
  • ecommerce-center/0.8.9/functions.php

    r351108 r355678  
    33 * Ecommerce Center functions and definitions
    44 *
    5  * @link https://developer.WordPress.org/themes/basics/theme-functions/
     5 * @link https://developer.wordpress.org/themes/basics/theme-functions/
    66 *
    77 * @package Ecommerce Center
    … …  
    1111
    1212    if ( ! defined( 'ECOMMERCE_ZONE_CONTACT_SUPPORT' ) ) {
    13         define('ECOMMERCE_ZONE_CONTACT_SUPPORT',__('https://WordPress.org/support/theme/ecommerce-center','ecommerce-center'));
     13        define('ECOMMERCE_ZONE_CONTACT_SUPPORT',__('https://wordpress.org/support/theme/ecommerce-center','ecommerce-center'));
    1414    }
    1515    if ( ! defined( 'ECOMMERCE_ZONE_REVIEW' ) ) {
    16         define('ECOMMERCE_ZONE_REVIEW',__('https://WordPress.org/support/theme/ecommerce-center/reviews/#new-post','ecommerce-center'));
     16        define('ECOMMERCE_ZONE_REVIEW',__('https://wordpress.org/support/theme/ecommerce-center/reviews/#new-post','ecommerce-center'));
    1717    }
    1818    if ( ! defined( 'ECOMMERCE_ZONE_LIVE_DEMO' ) ) {
    19         define('ECOMMERCE_ZONE_LIVE_DEMO',__('https://demo.themagnifico.net/ecommerce-WordPress-theme/','ecommerce-center'));
     19        define('ECOMMERCE_ZONE_LIVE_DEMO',__('https://demo.themagnifico.net/ecommerce-wordpress-theme/','ecommerce-center'));
    2020    }
    2121    if ( ! defined( 'ECOMMERCE_ZONE_GET_PREMIUM_PRO' ) ) {
    22         define('ECOMMERCE_ZONE_GET_PREMIUM_PRO',__('https://www.themagnifico.net/products/ecommerce-WordPress-theme','ecommerce-center'));
     22        define('ECOMMERCE_ZONE_GET_PREMIUM_PRO',__('https://www.themagnifico.net/products/ecommerce-wordpress-theme','ecommerce-center'));
    2323    }
    2424    if ( ! defined( 'ECOMMERCE_ZONE_PRO_DOC' ) ) {
    … …  
    2929    }
    3030    if ( ! defined( 'ECOMMERCE_ZONE_BUNDLE_LINK' ) ) {
    31         define('ECOMMERCE_ZONE_BUNDLE_LINK',__('https://www.themagnifico.net/products/WordPress-theme-bundle','ecommerce-center'));
     31        define('ECOMMERCE_ZONE_BUNDLE_LINK',__('https://www.themagnifico.net/products/wordpress-theme-bundle','ecommerce-center'));
    3232    }
    3333
    … …  
    3939 * Register widget area.
    4040 *
    41  * @link https://developer.WordPress.org/themes/functionality/sidebars/#registering-a-sidebar
     41 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
    4242 */
    4343function ecommerce_center_widgets_init() {
    … …  
    245245         * Enable support for Post Thumbnails on posts and pages.
    246246         *
    247          * @link https://developer.WordPress.org/themes/functionality/featured-images-post-thumbnails/
     247         * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
    248248         */
    249249        add_theme_support( 'post-thumbnails' );
    … …  
    273273         * Add support for core custom logo.
    274274         *
    275          * @link https://codex.WordPress.org/Theme_Logo
     275         * @link https://codex.wordpress.org/Theme_Logo
    276276         */
    277277        add_theme_support( 'custom-logo', array(
    … …  
    396396
    397397// Handle the AJAX request
     398
     399/**
     400 * Send an AJAX JSON response, discarding any stray output (e.g. PHP notices printed
     401 * while WP_DEBUG is on) buffered during the request so the response stays valid JSON.
     402 */
     403function ecommerce_center_send_json( $data = null, $type = '' ) {
     404        while ( ob_get_level() > 0 ) {
     405                ob_end_clean();
     406        }
     407        if ( 'success' === $type ) {
     408                wp_send_json_success( $data );
     409        } elseif ( 'error' === $type ) {
     410                wp_send_json_error( $data );
     411        }
     412        wp_send_json( $data );
     413}
     414
    398415function ecommerce_center_demo_importer_ajax_handler() {
     416        // Plugins may print notices while this runs; keep them out of the JSON response.
     417        ob_start();
    399418    check_ajax_referer( 'theme_importer_nonce' );
    400419
    401420    if ( ! current_user_can( 'edit_theme_options' ) ) {
    402         wp_send_json_error( 'Permission denied.' );
     421        ecommerce_center_send_json( 'Permission denied.', 'error' );
    403422        return;
    404423    }
    … …  
    416435        // After importing theme mods, create the menu
    417436        ecommerce_center_create_demo_menu();
    418         wp_send_json_success(array(
     437        ecommerce_center_send_json( array(
    419438            'msg' => 'Theme mods imported successfully.',
    420439            'redirect' => home_url()
    421         ));
     440        ), 'success' );
    422441    } else {
    423         wp_send_json_error('Failed to import theme mods.');
     442        ecommerce_center_send_json( 'Failed to import theme mods.', 'error' );
    424443    }
    425444
  • ecommerce-center/0.8.9/inc/theme-installation/assets/css/theme-installation.css

    r336493 r355678  
    788788    margin: 20px 0;
    789789    position: relative;
    790     max-width: 70%;
     790    max-width: 75%;
    791791    mask-image: url('../img/Subtract.png');
    792792    mask-size: 100% 100%;
  • ecommerce-center/0.8.9/inc/theme-installation/assets/js/theme-installation.js

    r336493 r355678  
    151151        const copyBtn = document.querySelector(".custom-coupon-copy-btn");
    152152        const copyInput = document.querySelector(".custom-coupon-banner-code");
     153        if (!copyBtn || !copyInput) {
     154            return;
     155        }
    153156
    154157        const text = copyInput.value || copyInput.innerText;
    155158
    156         navigator.clipboard.writeText(text)
    157         .then(() => {
    158             copyBtn.textContent = "COPIED";
    159         })
    160         .catch(err => {
    161             console.error("Copy failed:", err);
    162         });
     159        // navigator.clipboard only exists on HTTPS/localhost; fall back to execCommand elsewhere.
     160        if (navigator.clipboard && window.isSecureContext) {
     161            navigator.clipboard.writeText(text)
     162            .then(() => {
     163                copyBtn.textContent = "COPIED";
     164            })
     165            .catch(() => {
     166                fallbackCopy(text, copyBtn);
     167            });
     168        } else {
     169            fallbackCopy(text, copyBtn);
     170        }
    163171    }
    164172
    165     document.querySelector(".custom-coupon-copy-btn").addEventListener("click", copyCouponCode);
     173    function fallbackCopy(text, copyBtn) {
     174        const temp = document.createElement("textarea");
     175        temp.value = text;
     176        temp.setAttribute("readonly", "");
     177        temp.style.position = "absolute";
     178        temp.style.left = "-9999px";
     179        document.body.appendChild(temp);
     180        temp.select();
     181        try {
     182            if (document.execCommand("copy")) {
     183                copyBtn.textContent = "COPIED";
     184            }
     185        } catch (e) {}
     186        document.body.removeChild(temp);
     187    }
     188
     189    const couponCopyBtn = document.querySelector(".custom-coupon-copy-btn");
     190    if (couponCopyBtn) {
     191        couponCopyBtn.addEventListener("click", copyCouponCode);
     192    }
    166193});
  • ecommerce-center/0.8.9/inc/theme-installation/theme-installation.php

    r336493 r355678  
    221221                        $button = 'button-secondary';
    222222                        if( 'pro_url' == $quick_key ){
    223                             $button = 'button button-primary button-hero';
     223                            $button = 'button button-secondary button-hero';
    224224                        }
    225225                        if( 'bundle_url' == $quick_key ){
    226                             $button = 'button button-primary button-hero';
     226                            $button = 'button button-secondary button-hero';
    227227                        }
    228228                        echo '<a href="'.esc_url( $quick_link['url'] ).'" class="button button-hero '.esc_attr( $button ).'" target="_blank">'.esc_html( $quick_link['text'] ).'</a>';
    … …  
    233233                    <div class="custom-coupon-banner-inner">
    234234                        <div class="custom-coupon-banner-left">
    235                             <span class="custom-coupon-banner-discount">'. esc_html__( '15%', 'ecommerce-center' ) . '</span>
     235                            <span class="custom-coupon-banner-discount">'. esc_html__( '20%', 'ecommerce-center' ) . '</span>
    236236                            <span class="custom-coupon-banner-off">'. esc_html__( 'OFF', 'ecommerce-center' ) . '</span>
    237237                        </div>
    … …  
    242242                                <p class="custom-coupon-banner-subtext">
    243243                                    '. esc_html__( 'Use Coupon Code', 'ecommerce-center' ) . '
    244                                     <span class="custom-coupon-banner-code">BUNDLE15</span>
     244                                    <span class="custom-coupon-banner-code">BUNDLE20</span>
    245245                                </p>
    246246                            </div>
    … …  
    886886
    887887    'tabs' => array(
    888         'ecommerce_center_demo_impoter'         => esc_html__( 'Demo Impoter', 'ecommerce-center' ),
     888        'ecommerce_center_demo_impoter'         => esc_html__( 'Demo Importer', 'ecommerce-center' ),
    889889        'ecommerce_center_pro_templates'        => esc_html__( 'Pro Templates', 'ecommerce-center' ),
    890890        'ecommerce_center_free_pro'             => esc_html__( 'Compare Free Vs Pro', 'ecommerce-center' ),
  • ecommerce-center/0.8.9/languages/ecommerce-center.pot

    r351108 r355678  
    44msgstr ""
    55"Project-Id-Version: Ecommerce Center 0.8.5\n"
    6 "Report-Msgid-Bugs-To: https://WordPress.org/support/theme/ecommerce-center\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/ecommerce-center\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    88"Language-Team: LANGUAGE <LL@li.org>\n"
    … …  
    2222#. Theme URI of the theme
    2323#: style.css
    24 msgid "https://www.themagnifico.net/products/ecommerce-WordPress-theme"
     24msgid "https://www.themagnifico.net/products/ecommerce-wordpress-theme"
    2525msgstr ""
    2626
    … …  
    105105msgstr ""
    106106
    107 #. translators: %s: CMS name, i.e. WordPress.
     107#. translators: %s: CMS name, i.e. wordpress.
    108108#: footer.php:84
    109109msgid "Proudly powered by %s"
    … …  
    125125
    126126#: functions.php:13
    127 msgid "https://WordPress.org/support/theme/ecommerce-center"
     127msgid "https://wordpress.org/support/theme/ecommerce-center"
    128128msgstr ""
    129129
    130130#: functions.php:16
    131 msgid "https://WordPress.org/support/theme/ecommerce-center/reviews/#new-post"
     131msgid "https://wordpress.org/support/theme/ecommerce-center/reviews/#new-post"
    132132msgstr ""
    133133
    134134#: functions.php:19
    135 msgid "https://demo.themagnifico.net/ecommerce-WordPress-theme/"
     135msgid "https://demo.themagnifico.net/ecommerce-wordpress-theme/"
    136136msgstr ""
    137137
    138138#: functions.php:22
    139 msgid "https://www.themagnifico.net/products/ecommerce-WordPress-theme"
     139msgid "https://www.themagnifico.net/products/ecommerce-wordpress-theme"
    140140msgstr ""
    141141
    … …  
    149149
    150150#: functions.php:31
    151 msgid "https://www.themagnifico.net/products/WordPress-theme-bundle"
     151msgid "https://www.themagnifico.net/products/wordpress-theme-bundle"
    152152msgstr ""
    153153
    … …  
    284284
    285285#: inc/theme-installation/theme-installation.php:888
    286 msgid "Demo Impoter"
     286msgid "Demo Importer"
    287287msgstr ""
    288288
  • ecommerce-center/0.8.9/readme.txt

    r351108 r355678  
    22Contributors: TheMagnifico52
    33Requires at least: 5.0
    4 Tested up to: 7.0
     4Tested up to: 7.1
    55Requires PHP: 7.2
    6 Stable tag: 0.8.8
     6Stable tag: 0.8.9
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
    … …  
    111111
    112112== Changelog ==
     113
     114= 0.8.9 =
     115* Fixed Styling Issues.
    113116
    114117= 0.8.8 =
  • ecommerce-center/0.8.9/style.css

    r351108 r355678  
    33Theme Name: Ecommerce Center
    44Author: TheMagnifico52
    5 Theme URI: https://www.themagnifico.net/products/ecommerce-WordPress-theme
     5Theme URI: https://www.themagnifico.net/products/ecommerce-wordpress-theme
    66Author URI: https://www.themagnifico.net/
    77Description: The Ecommerce center serves as an ideal platform for creating a variety of e-commerce websites, such as clothing stores, interior shops, and fashion boutiques, along with online outlets for smart home products, AR/VR headsets, and gadgets. This versatile magazine theme accommodates a multitude of needs, ranging from apparel and cosmetic retailers to bookstores and baby stores, making it suitable for any e-business, e-marketing, or B2B endeavor. Whether you're aiming to launch a kitchen shop or an organic retail space, this modern design offers a luxurious, retina-ready aesthetic and a user-friendly experience, complete with extensive customization options. Its SEO-friendly features enhance visibility on search engines like Google, while shortcodes and translation-ready functionality with RTL support make it easy to manage. Built on the Bootstrap framework, it ensures user-friendliness and quick loading times, alongside secure coding and seamless social media integration. With AJAX capabilities, it enriches the user experience, making it an excellent choice for your next news magazine publication or editorial project focused on e-commerce.
    8 Version: 0.8.8
    9 Tested up to: 7.0
     8Version: 0.8.9
     9Tested up to: 7.1
    1010Requires PHP: 7.2
    1111Requires at least: 5.0
Note: See TracChangeset for help on using the changeset viewer.