Changeset 155757
- Timestamp:
- 10/04/2021 01:49:40 PM (4 years ago)
- Location:
- retail/1.5
- Files:
-
- 1 deleted
- 4 edited
- 1 copied
-
. (copied) (copied from retail/1.4.2)
-
functions.php (modified) (8 diffs)
-
js/retail-custom.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
style.css (modified) (1 diff)
-
woocommerce/content-single-product.sublime-workspace (deleted)
Legend:
- Unmodified
- Added
- Removed
-
retail/1.5/functions.php
r136664 r155757 6 6 */ 7 7 8 define( 'RETAIL_VERSION', wp_get_theme()->get( 'Version' ) ); 9 define( 'RETAIL_TEMPLATE_DIR', get_template_directory() ); 10 define( 'RETAIL_TEMPLATE_DIR_URI', get_template_directory_uri() ); 11 8 12 if ( ! function_exists( 'retail_setup' ) ) : 9 13 … … 12 16 function retail_setup() { 13 17 // Make theme available for translation 14 load_theme_textdomain( 'retail', get_template_directory(). '/languages' );18 load_theme_textdomain( 'retail', RETAIL_TEMPLATE_DIR . '/languages' ); 15 19 16 20 // Add default posts and comments RSS feed links to head … … 180 184 'name' => esc_html__( 'Homepage Slider/Hero Section', 'retail' ), 181 185 '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' ), 183 187 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 184 188 'after_widget' => '</aside>', … … 375 379 if ( !$grid_layout || $grid_layout == 'masonry' ) { 376 380 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 ); 378 382 } 379 383 } 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 ); 384 388 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' ); 387 391 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 ); 389 393 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 390 394 wp_enqueue_script( 'comment-reply' ); … … 398 402 function retail_enqueue_gutenberg_block_editor_assets() { 399 403 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 ); 401 405 wp_add_inline_style( 'retail-block-editor-style', retail_block_editor_dynamic_style() ); 402 406 } … … 406 410 * Custom template tags for this theme. 407 411 */ 408 require get_template_directory(). '/functions/template-tags.php';412 require RETAIL_TEMPLATE_DIR . '/functions/template-tags.php'; 409 413 410 414 /** 411 415 * Custom functions. 412 416 */ 413 require get_template_directory(). '/functions/extras.php';417 require RETAIL_TEMPLATE_DIR . '/functions/extras.php'; 414 418 415 419 /** 416 420 * Other translations. 417 421 */ 418 require get_template_directory(). '/functions/translations.php';422 require RETAIL_TEMPLATE_DIR . '/functions/translations.php'; 419 423 420 424 /** 421 425 * Customizer additions. 422 426 */ 423 require get_template_directory(). '/functions/customizer.php';427 require RETAIL_TEMPLATE_DIR . '/functions/customizer.php'; 424 428 425 429 /** … … 427 431 */ 428 432 if ( is_admin() ) { 429 require get_template_directory(). '/functions/theme-help.php';433 require RETAIL_TEMPLATE_DIR . '/functions/theme-help.php'; 430 434 } 431 435 … … 433 437 * TGM Plugin activation. 434 438 */ 435 require_once get_template_directory(). '/functions/class-tgm-plugin-activation.php';439 require_once RETAIL_TEMPLATE_DIR . '/functions/class-tgm-plugin-activation.php'; 436 440 function retail_reg_plugin() { 437 441 $plugins[] = array( -
retail/1.5/js/retail-custom.js
r136664 r155757 105 105 106 106 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 ) { 108 111 $('#home-hero-section').addClass('bx-slider'); 109 112 } -
retail/1.5/readme.txt
r155594 r155757 3 3 Retail is distributed under the terms of the GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html) 4 4 Contributors: uxl 5 Stable tag: 1. 4.25 Stable tag: 1.5 6 6 Requires at least: 4.5 7 7 Tested up to: 5.8 … … 20 20 21 21 == Changelog == 22 1.5 - Oct 04, 2021 23 Updated Homepage Hero/Slider widget area 24 22 25 1.4.2 - Oct 01, 2021 23 26 Added missing customizer option to disable sticky add-to-cart panel -
retail/1.5/style.css
r155594 r155757 5 5 Author URI: https://uxlthemes.com 6 6 Description: 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.27 Version: 1.5 8 8 Requires at least: 4.5 9 9 Tested up to: 5.8
Note: See TracChangeset
for help on using the changeset viewer.