Make WordPress Themes

Changeset 190684


Ignore:
Timestamp:
05/02/2023 06:36:03 PM (3 years ago)
Author:
themedropbox
Message:

New version of Square - 2.0.24

Location:
square/2.0.24
Files:
4 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • square/2.0.24/functions.php

    r186193 r190684  
    276276
    277277    wp_enqueue_script('square-custom', get_template_directory_uri() . '/js/square-custom.js', array('jquery'), SQUARE_VERSION, true);
     278    wp_localize_script('square-custom', 'square_localize', array(
     279        'is_rtl' => is_rtl() ? 'true' : 'false'
     280    ));
    278281
    279282    wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.css', array(), SQUARE_VERSION);
     
    282285    wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', array(), SQUARE_VERSION);
    283286    wp_enqueue_style('square-style', get_stylesheet_uri(), array(), SQUARE_VERSION);
     287    wp_style_add_data('square-style', 'rtl', 'replace');
    284288    wp_add_inline_style('square-style', square_dymanic_styles());
    285289
  • square/2.0.24/inc/customizer/customizer-custom-controls.php

    r186193 r190684  
    8181            wp_enqueue_style('selectize', SQUARE_CUSTOMIZER_URL . 'custom-controls/assets/css/selectize.css', array(), SQUARE_VERSION);
    8282            wp_enqueue_style('chosen', SQUARE_CUSTOMIZER_URL . 'custom-controls/assets/css/chosen.css', array(), SQUARE_VERSION);
    83             wp_enqueue_style('square-customizer-control', SQUARE_CUSTOMIZER_URL . 'custom-controls/assets/css/customizer-controls.css', array('wp-color-picker'), SQUARE_VERSION);
     83            if (is_rtl()) {
     84                wp_enqueue_style('square-customizer-control', SQUARE_CUSTOMIZER_URL . 'custom-controls/assets/css/customizer-controls.rtl.css', array('wp-color-picker'), SQUARE_VERSION);
     85            } else {
     86                wp_enqueue_style('square-customizer-control', SQUARE_CUSTOMIZER_URL . 'custom-controls/assets/css/customizer-controls.css', array('wp-color-picker'), SQUARE_VERSION);
     87            }
    8488        }
    8589
  • square/2.0.24/inc/customizer/customizer-panel/assets/customizer.css

    r182155 r190684  
    3939    font-family: dashicons;
    4040    content: "\f103";
     41    display: inline-block;
    4142    font-size: 20px;
    4243    margin-right: 5px;
  • square/2.0.24/inc/customizer/customizer-panel/register-customizer-controls.php

    r186193 r190684  
    2121        public function enqueue_customizer_script() {
    2222            wp_enqueue_script('square-customizer', SQUARE_CUSTOMIZER_URL . 'customizer-panel/assets/customizer.js', array('jquery'), SQUARE_VERSION, true);
    23             wp_enqueue_style('square-customizer', SQUARE_CUSTOMIZER_URL . 'customizer-panel/assets/customizer.css', array(), SQUARE_VERSION);
     23            if (is_rtl()) {
     24                wp_enqueue_style('square-customizer', SQUARE_CUSTOMIZER_URL . 'customizer-panel/assets/customizer.rtl.css', array(), SQUARE_VERSION);
     25            } else {
     26                wp_enqueue_style('square-customizer', SQUARE_CUSTOMIZER_URL . 'customizer-panel/assets/customizer.css', array(), SQUARE_VERSION);
     27            }
    2428            wp_enqueue_style('fontawesome-v4-shims', get_template_directory_uri() . '/css/v4-shims.css', array(), SQUARE_VERSION);
    2529        }
  • square/2.0.24/js/square-custom.js

    r147754 r190684  
    1010
    1111    $('#sq-bx-slider').owlCarousel({
     12        rtl: JSON.parse(square_localize.is_rtl),
    1213        autoplay: true,
    1314        items: 1,
     
    2122
    2223    $(".sq_client_logo_slider").owlCarousel({
     24        rtl: JSON.parse(square_localize.is_rtl),
    2325        autoplay: true,
    2426        items: 5,
  • square/2.0.24/readme.txt

    r188626 r190684  
    88Requires at least: 5.6
    99Tested up to: 6.2
    10 Stable tag: 2.0.23
     10Stable tag: 2.0.24
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24= 2.0.24 - May 02, 2023 =
     25* RTL Compatibility - Added
     26
    2427= 2.0.23 - Apr 05, 2023 =
    2528* Minor Navigation CSS issued fixed
  • square/2.0.24/style.css

    r188626 r190684  
    55Author URI: https://hashthemes.com
    66Description: Square is a flexible responsive multipurpose theme compatible with all browsers and devices, fully mobile friendly, loaded with lots of features. It is a minimal theme based on WordPress Customizer that allows you to customize with live preview. The theme can be used for business, corporate, digital agency, personal, portfolio, photography, parallax, blogs and magazines. Square is eCommerce (WooCommerce) Compatible, Polylang Compatible, WPML, RTL, Retina Ready, SEO Friendly and Support bbPress and BuddyPress. More over it is a complete theme. For demo https://demo.hashthemes.com/square
    7 Version: 2.0.23
     7Version: 2.0.24
    88License: GNU General Public License v2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    22712271}
    22722272.woocommerce ul.products li.product .onsale:after{
    2273     border-color: transparent transparent var(--square-template-dark-color, #4EA3AD) var(--square-template-dark-color, #4EA3AD)};
     2273    border-color: transparent transparent var(--square-template-dark-color, #4EA3AD) var(--square-template-dark-color, #4EA3AD);
    22742274}
    22752275
  • square/2.0.24/welcome/welcome.php

    r184648 r190684  
    174174                    'ajax_nonce' => wp_create_nonce('square_activate_hdi_plugin')
    175175                );
    176                 wp_enqueue_style('square-welcome', get_template_directory_uri() . '/welcome/css/welcome.css', array(), SQUARE_VERSION);
     176                if (is_rtl()) {
     177                    wp_enqueue_style('square-welcome', get_template_directory_uri() . '/welcome/css/welcome.rtl.css', array(), SQUARE_VERSION);
     178                } else {
     179                    wp_enqueue_style('square-welcome', get_template_directory_uri() . '/welcome/css/welcome.css', array(), SQUARE_VERSION);
     180                }
    177181                wp_enqueue_script('square-welcome', get_template_directory_uri() . '/welcome/js/welcome.js', array('plugin-install', 'updates'), SQUARE_VERSION, true);
    178182                wp_localize_script('square-welcome', 'importer_params', $importer_params);
Note: See TracChangeset for help on using the changeset viewer.