Make WordPress Themes

Changeset 155757


Ignore:
Timestamp:
10/04/2021 01:49:40 PM (4 years ago)
Author:
themedropbox
Message:

New version of Retail - 1.5

Location:
retail/1.5
Files:
1 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • retail/1.5/functions.php

    r136664 r155757  
    66 */
    77
     8define( 'RETAIL_VERSION', wp_get_theme()->get( 'Version' ) );
     9define( 'RETAIL_TEMPLATE_DIR', get_template_directory() );
     10define( 'RETAIL_TEMPLATE_DIR_URI', get_template_directory_uri() );
     11
    812if ( ! function_exists( 'retail_setup' ) ) :
    913
     
    1216function retail_setup() {
    1317    // Make theme available for translation
    14     load_theme_textdomain( 'retail', get_template_directory() . '/languages' );
     18    load_theme_textdomain( 'retail', RETAIL_TEMPLATE_DIR . '/languages' );
    1519
    1620    // Add default posts and comments RSS feed links to head
     
    180184        'name'          => esc_html__( 'Homepage Slider/Hero Section', 'retail' ),
    181185        'id'            => 'retail-homepage-large-area',
    182         'description'   => esc_html__( 'The large image/hero/slider area below the masthead on the homepage.', 'retail' ),
     186        'description'   => esc_html__( 'The large image/hero/slider area below the masthead on the homepage. Add more than one Cover block to automatically create a slider.', 'retail' ),
    183187        'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    184188        'after_widget'  => '</aside>',
     
    375379        if ( !$grid_layout || $grid_layout == 'masonry' ) {
    376380            wp_enqueue_script( 'masonry' );
    377             wp_enqueue_script( 'retail-masonry', get_template_directory_uri() . '/js/retail-masonry.js', array( 'jquery' ), '1.1', true );
     381            wp_enqueue_script( 'retail-masonry', RETAIL_TEMPLATE_DIR_URI . '/js/retail-masonry.js', array( 'jquery' ), RETAIL_VERSION, true );
    378382        }
    379383    }
    380     wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr.js', array(), '2.6.3', true );
    381     wp_enqueue_script( 'jquery-bxslider', get_template_directory_uri() . '/js/jquery.bxslider.js', array( 'jquery' ), '4.1.2', true );
    382     wp_enqueue_script( 'jquery-matchHeight', get_template_directory_uri() . '/js/jquery.matchHeight.js', array( 'jquery' ), '0.7.2', true );
    383     wp_enqueue_script( 'retail-custom', get_template_directory_uri() . '/js/retail-custom.js', array( 'jquery' ), '1.0', true );
     384    wp_enqueue_script( 'modernizr', RETAIL_TEMPLATE_DIR_URI . '/js/modernizr.js', array(), '2.6.3', true );
     385    wp_enqueue_script( 'jquery-bxslider', RETAIL_TEMPLATE_DIR_URI . '/js/jquery.bxslider.js', array( 'jquery' ), '4.1.2', true );
     386    wp_enqueue_script( 'jquery-matchHeight', RETAIL_TEMPLATE_DIR_URI . '/js/jquery.matchHeight.js', array( 'jquery' ), '0.7.2', true );
     387    wp_enqueue_script( 'retail-custom', RETAIL_TEMPLATE_DIR_URI . '/js/retail-custom.js', array( 'jquery' ), RETAIL_VERSION, true );
    384388    wp_enqueue_style( 'retail-fonts', retail_fonts_url(), array(), null );
    385     wp_enqueue_style( 'retail-feather', get_template_directory_uri() . '/css/feather.css' );
    386     wp_enqueue_style( 'retail-bx-slider', get_template_directory_uri() . '/css/bx-slider.css' );
     389    wp_enqueue_style( 'retail-feather', RETAIL_TEMPLATE_DIR_URI . '/css/feather.css' );
     390    wp_enqueue_style( 'retail-bx-slider', RETAIL_TEMPLATE_DIR_URI . '/css/bx-slider.css' );
    387391    wp_enqueue_style( 'retail-style', get_stylesheet_uri() );
    388     wp_add_inline_style( 'retail-style', retail_dynamic_style() );
     392    wp_add_inline_style( 'retail-style', retail_dynamic_style(), '', RETAIL_VERSION );
    389393    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    390394        wp_enqueue_script( 'comment-reply' );
     
    398402function retail_enqueue_gutenberg_block_editor_assets() {
    399403    wp_enqueue_style( 'retail-block-editor-fonts', retail_editor_fonts_url() );
    400     wp_enqueue_style( 'retail-block-editor-style', get_template_directory_uri() . '/css/block-editor-style.css' );
     404    wp_enqueue_style( 'retail-block-editor-style', RETAIL_TEMPLATE_DIR_URI . '/css/block-editor-style.css', '', RETAIL_VERSION );
    401405    wp_add_inline_style( 'retail-block-editor-style', retail_block_editor_dynamic_style() );
    402406}
     
    406410 * Custom template tags for this theme.
    407411 */
    408 require get_template_directory() . '/functions/template-tags.php';
     412require RETAIL_TEMPLATE_DIR . '/functions/template-tags.php';
    409413
    410414/**
    411415 * Custom functions.
    412416 */
    413 require get_template_directory() . '/functions/extras.php';
     417require RETAIL_TEMPLATE_DIR . '/functions/extras.php';
    414418
    415419/**
    416420 * Other translations.
    417421 */
    418 require get_template_directory() . '/functions/translations.php';
     422require RETAIL_TEMPLATE_DIR . '/functions/translations.php';
    419423
    420424/**
    421425 * Customizer additions.
    422426 */
    423 require get_template_directory() . '/functions/customizer.php';
     427require RETAIL_TEMPLATE_DIR . '/functions/customizer.php';
    424428
    425429/**
     
    427431 */
    428432if ( is_admin() ) {
    429     require get_template_directory() . '/functions/theme-help.php';
     433    require RETAIL_TEMPLATE_DIR . '/functions/theme-help.php';
    430434}
    431435
     
    433437 * TGM Plugin activation.
    434438 */
    435 require_once get_template_directory() . '/functions/class-tgm-plugin-activation.php';
     439require_once RETAIL_TEMPLATE_DIR . '/functions/class-tgm-plugin-activation.php';
    436440function retail_reg_plugin() {
    437441    $plugins[] = array(
  • retail/1.5/js/retail-custom.js

    r136664 r155757  
    105105
    106106    var count_hero_images = $('#home-hero-section .widget_media_image').length;
    107     if ( count_hero_images > 1 ) {
     107    var count_hero_block_widgets = $('#home-hero-section .widget_block').length;
     108    var total_hero_count = count_hero_images + count_hero_block_widgets;
     109
     110    if ( total_hero_count > 1 ) {
    108111        $('#home-hero-section').addClass('bx-slider');
    109112    }
  • retail/1.5/readme.txt

    r155594 r155757  
    33Retail is distributed under the terms of the GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html)
    44Contributors: uxl
    5 Stable tag: 1.4.2
     5Stable tag: 1.5
    66Requires at least: 4.5
    77Tested up to: 5.8
     
    2020
    2121== Changelog ==
     221.5 - Oct 04, 2021
     23Updated Homepage Hero/Slider widget area
     24
    22251.4.2 - Oct 01, 2021
    2326Added missing customizer option to disable sticky add-to-cart panel
  • retail/1.5/style.css

    r155594 r155757  
    55Author URI: https://uxlthemes.com
    66Description: Retail is a clean and uncluttered WordPress shopping theme. Support for WooCommerce along with Wishlist and Quick View plugins is included along with an auto-updating header shopping cart, optional sticky header, sticky add-to-cart panel on single product pages and a horizontal product filter widget area to help increase the e-commerce sales of your store. The blog also features 12 different grid layout options including masonry post layout and support for video posts/articles. Retail also has full width and boxed layout options.
    7 Version: 1.4.2
     7Version: 1.5
    88Requires at least: 4.5
    99Tested up to: 5.8
Note: See TracChangeset for help on using the changeset viewer.