Changeset 256496
- Timestamp:
- 01/20/2025 04:22:04 AM (10 months ago)
- Location:
- home-construction-builder/1.0.8
- Files:
-
- 11 edited
- 1 copied
-
. (copied) (copied from home-construction-builder/1.0.7)
-
classes/body-classes.php (modified) (1 diff)
-
inc/customizer/default.php (modified) (1 diff)
-
inc/customizer/post.php (modified) (2 diffs)
-
languages/home-construction-builder.pot (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
rtl.css (modified) (6 diffs)
-
sidebar.php (modified) (1 diff)
-
style.css (modified) (6 diffs)
-
template-parts/content-single.php (modified) (1 diff)
-
template-parts/content.php (modified) (1 diff)
-
woocommerce/archive-product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
home-construction-builder/1.0.8/classes/body-classes.php
r251024 r256496 25 25 $home_construction_builder_post_sidebar_layout = esc_html(get_theme_mod('home_construction_builder_post_sidebar_layout', $home_construction_builder_global_sidebar_layout)); 26 26 27 if (is_page() ) {27 if (is_page() || (function_exists('is_shop') && is_shop())) { 28 28 $home_construction_builder_classes[] = $home_construction_builder_page_sidebar_layout; 29 29 } elseif (is_single()) { -
home-construction-builder/1.0.8/inc/customizer/default.php
r251024 r256496 94 94 $home_construction_builder_defaults['home_construction_builder_secondary_color'] = '#FFC527'; 95 95 $home_construction_builder_defaults['home_construction_builder_display_archive_post_category'] = 1; 96 $home_construction_builder_defaults['home_construction_builder_display_archive_post_sticky_post'] = 1;97 96 $home_construction_builder_defaults['home_construction_builder_display_archive_post_title'] = 1; 98 97 $home_construction_builder_defaults['home_construction_builder_display_archive_post_content'] = 1; 99 98 $home_construction_builder_defaults['home_construction_builder_display_archive_post_button'] = 1; 100 99 $home_construction_builder_defaults['home_construction_builder_about_us_button_url'] = esc_html__( '#', 'home-construction-builder' ); 100 101 $home_construction_builder_defaults['home_construction_builder_display_single_post_image'] = 1; 102 $home_construction_builder_defaults['home_construction_builder_display_archive_post_format_icon'] = 1; 101 103 102 104 -
home-construction-builder/1.0.8/inc/customizer/post.php
r244715 r256496 18 18 ); 19 19 20 $wp_customize->add_setting('home_construction_builder_display_single_post_image', 21 array( 22 'default' => $home_construction_builder_default['home_construction_builder_display_single_post_image'], 23 'capability' => 'edit_theme_options', 24 'sanitize_callback' => 'home_construction_builder_sanitize_checkbox', 25 ) 26 ); 27 $wp_customize->add_control('home_construction_builder_display_single_post_image', 28 array( 29 'label' => esc_html__('Enable Single Posts Image', 'home-construction-builder'), 30 'section' => 'home_construction_builder_single_posts_settings', 31 'type' => 'checkbox', 32 ) 33 ); 34 20 35 $wp_customize->add_setting('home_construction_builder_post_author', 21 36 array( … … 88 103 ); 89 104 90 $wp_customize->add_setting('home_construction_builder_display_archive_post_ sticky_post',91 array( 92 'default' => $home_construction_builder_default['home_construction_builder_display_archive_post_ sticky_post'],93 'capability' => 'edit_theme_options', 94 'sanitize_callback' => 'home_construction_builder_sanitize_checkbox', 95 ) 96 ); 97 $wp_customize->add_control('home_construction_builder_display_archive_post_ sticky_post',98 array( 99 'label' => esc_html__('Enable sticky Post', 'home-construction-builder'),105 $wp_customize->add_setting('home_construction_builder_display_archive_post_format_icon', 106 array( 107 'default' => $home_construction_builder_default['home_construction_builder_display_archive_post_format_icon'], 108 'capability' => 'edit_theme_options', 109 'sanitize_callback' => 'home_construction_builder_sanitize_checkbox', 110 ) 111 ); 112 $wp_customize->add_control('home_construction_builder_display_archive_post_format_icon', 113 array( 114 'label' => esc_html__('Enable Post Format Icon', 'home-construction-builder'), 100 115 'section' => 'home_construction_builder_posts_settings', 101 116 'type' => 'checkbox', -
home-construction-builder/1.0.8/languages/home-construction-builder.pot
r251024 r256496 1 # Copyright (C) 202 4Omega Themes1 # Copyright (C) 2025 Omega Themes 2 2 # This file is distributed under the GNU General Public License v2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Home Construction Builder 1.0. 7\n"5 "Project-Id-Version: Home Construction Builder 1.0.8\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/home-construction-builder\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 4-11-19T06:06:40+00:00\n"12 "POT-Creation-Date: 2025-01-17T11:38:03+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 407 407 msgstr "" 408 408 409 #: inc/customizer/default.php: 100409 #: inc/customizer/default.php:99 410 410 msgid "#" 411 411 msgstr "" … … 638 638 639 639 #: inc/customizer/post.php:29 640 msgid "Enable Single Posts Image" 641 msgstr "" 642 643 #: inc/customizer/post.php:44 640 644 msgid "Enable Posts Author" 641 645 msgstr "" 642 646 643 #: inc/customizer/post.php: 44647 #: inc/customizer/post.php:59 644 648 msgid "Enable Posts Date" 645 649 msgstr "" 646 650 647 #: inc/customizer/post.php:59 651 #: inc/customizer/post.php:74 652 #: inc/customizer/post.php:144 653 msgid "Enable Posts Category" 654 msgstr "" 655 656 #: inc/customizer/post.php:89 657 msgid "Enable Posts Tags" 658 msgstr "" 659 660 #: inc/customizer/post.php:98 661 msgid "Archive Meta Information Settings" 662 msgstr "" 663 664 #: inc/customizer/post.php:114 665 msgid "Enable Post Format Icon" 666 msgstr "" 667 648 668 #: inc/customizer/post.php:129 649 msgid "Enable Posts Category"650 msgstr ""651 652 #: inc/customizer/post.php:74653 msgid "Enable Posts Tags"654 msgstr ""655 656 #: inc/customizer/post.php:83657 msgid "Archive Meta Information Settings"658 msgstr ""659 660 #: inc/customizer/post.php:99661 msgid "Enable sticky Post"662 msgstr ""663 664 #: inc/customizer/post.php:114665 669 msgid "Enable Posts Image" 666 670 msgstr "" 667 671 668 #: inc/customizer/post.php:1 44672 #: inc/customizer/post.php:159 669 673 msgid "Enable Posts Title" 670 674 msgstr "" 671 675 672 #: inc/customizer/post.php:1 59676 #: inc/customizer/post.php:174 673 677 msgid "Enable Posts Content" 674 678 msgstr "" 675 679 676 #: inc/customizer/post.php:1 74680 #: inc/customizer/post.php:189 677 681 msgid "Enable Posts Button" 678 682 msgstr "" 679 683 680 #: inc/customizer/post.php: 189684 #: inc/customizer/post.php:204 681 685 msgid "Blog Post Excerpt limit" 682 686 msgstr "" … … 985 989 msgstr "" 986 990 987 #: template-parts/content-single.php:2 6991 #: template-parts/content-single.php:27 988 992 msgid "Home Construction Builder Default Image" 989 993 msgstr "" 990 994 991 995 #. translators: %s: Name of current post. 992 #: template-parts/content-single.php:6 7996 #: template-parts/content-single.php:69 993 997 msgid "Read More %s <span class=\"meta-nav\">→</span>" 994 998 msgstr "" 995 999 996 #: template-parts/content-single.php:7 21000 #: template-parts/content-single.php:74 997 1001 #: template-parts/content.php:82 998 1002 msgid "Pages:" -
home-construction-builder/1.0.8/readme.txt
r251024 r256496 4 4 Tested up to: 6.7 5 5 Requires PHP: 7.2 6 Stable tag: 1.0. 76 Stable tag: 1.0.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 134 134 * Added Sidebar Position Settings. 135 135 * Added Sticky Header Setting. 136 137 = 1.0.8 = 138 * Added Enable Post Format Icon. 139 * Added Enable Single Posts Image. 140 * Updated My account page CSS. 141 * Updated sidebar settings. 142 * Updated WooCommerce Template. -
home-construction-builder/1.0.8/rtl.css
r251024 r256496 1 /*2 Theme Name: Home Construction Builder3 Adding support for languages written in a Right To Left (RTL) direction is easy -4 it's just a matter of overwriting all the horizontal positioning attributes5 of your CSS stylesheet in a separate stylesheet file named rtl.css.6 https://codex.wordpress.org/Right-to-Left_Language_Support7 */8 1 /*-------------------------------------------------------------- 9 2 # Normalize 10 3 --------------------------------------------------------------*/ 4 11 5 html { 12 6 line-height: 1.15; … … 669 663 input[type="submit"], 670 664 .woocommerce ul.products li.product .button, 671 a.added_to_cart.wc-forward { 665 a.added_to_cart.wc-forward, 666 .woocommerce-Address-title.title a { 672 667 -webkit-appearance: none; 673 668 -moz-appearance: none; … … 903 898 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, 904 899 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt, 905 a.added_to_cart.wc-forward { 900 a.added_to_cart.wc-forward, 901 .woocommerce-Address-title.title a { 906 902 color: #000; 907 903 display: block; … … 1170 1166 } 1171 1167 1168 .woocommerce-Address-title.title a, 1172 1169 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, 1173 1170 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, … … 1191 1188 } 1192 1189 1190 .woocommerce ul.products li.product .button:hover, 1191 .woocommerce-Address-title.title a:hover, 1193 1192 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, 1194 1193 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, … … 6533 6532 margin-top: 50px; 6534 6533 } 6534 6535 .woocommerce .woocommerce-error .button, 6536 .woocommerce .woocommerce-info .button, 6537 .woocommerce .woocommerce-message .button, 6538 .woocommerce-page .woocommerce-error .button, 6539 .woocommerce-page .woocommerce-info .button, 6540 .woocommerce-page .woocommerce-message .button { 6541 color: #000 !important; 6542 } 6543 6544 .woocommerce-Address-title.title { 6545 margin-bottom: 20px !important; 6546 } 6547 6548 .woocommerce-account .addresses .title .edit { 6549 float: right; 6550 text-decoration: none !important; 6551 } -
home-construction-builder/1.0.8/sidebar.php
r251024 r256496 8 8 $post_id = get_the_ID(); // Get the post ID. 9 9 10 if ( is_page() ) {10 if ( is_page() || ( function_exists('is_shop') && is_shop() ) ) { 11 11 $home_construction_builder_global_sidebar_layout = esc_html( get_theme_mod( 'home_construction_builder_page_sidebar_layout', $home_construction_builder_default['home_construction_builder_global_sidebar_layout'] ) ); 12 12 } elseif ( is_single() ) { -
home-construction-builder/1.0.8/style.css
r251024 r256496 9 9 Tested up to: 6.7 10 10 Requires PHP: 7.2 11 Version: 1.0. 711 Version: 1.0.8 12 12 License: GNU General Public License v2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 597 597 input[type="reset"], 598 598 input[type="submit"], 599 .woocommerce ul.products li.product .button,a.added_to_cart.wc-forward { 599 .woocommerce ul.products li.product .button,a.added_to_cart.wc-forward, 600 .woocommerce-Address-title.title a { 600 601 -webkit-appearance: none; 601 602 -moz-appearance: none; … … 805 806 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, 806 807 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, 807 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt,a.added_to_cart.wc-forward { 808 :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt,a.added_to_cart.wc-forward, 809 .woocommerce-Address-title.title a { 808 810 color: #000; 809 811 display: block; … … 1002 1004 text-align: center; 1003 1005 } 1004 .woocommerce :where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button{1006 .woocommerce-Address-title.title a,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button{ 1005 1007 background-color: #fff; 1006 1008 color: #000 !important; … … 1008 1010 } 1009 1011 1010 .woocommerce :where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:hover,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button:hover{1012 .woocommerce ul.products li.product .button:hover,.woocommerce-Address-title.title a:hover,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:hover,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button:hover{ 1011 1013 background-color: var(--global-color); 1012 1014 } … … 5521 5523 margin-top: 50px; 5522 5524 } 5525 .woocommerce .woocommerce-error .button, .woocommerce .woocommerce-info .button, .woocommerce .woocommerce-message .button, .woocommerce-page .woocommerce-error .button, .woocommerce-page .woocommerce-info .button, .woocommerce-page .woocommerce-message .button { 5526 color: #000 !important; 5527 } 5528 .woocommerce-Address-title.title{ 5529 margin-bottom: 20px !important; 5530 } 5531 .woocommerce-account .addresses .title .edit{ 5532 float: left; 5533 text-decoration: none !important; 5534 } -
home-construction-builder/1.0.8/template-parts/content-single.php
r248156 r256496 10 10 ?> 11 11 12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 13 13 14 <?php if( is_single() && 'post' === get_post_type() ) { 15 // Check if it is a single post page 16 if ( has_post_thumbnail() ) { // If the post has a featured image 14 <?php if ( get_theme_mod('home_construction_builder_display_single_post_image', true) == true ) : ?> 15 <?php if( is_single() && 'post' === get_post_type() ) { 16 // Check if it is a single post page 17 if ( has_post_thumbnail() ) { // If the post has a featured image 18 ?> 19 <div class="post-thumbnail"> 20 <?php home_construction_builder_post_thumbnail(); ?> 21 </div> 22 <?php 23 } else { 24 // No featured image, so show default image 25 ?> 26 <div class="post-thumbnail"> 27 <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/about1.png' ); ?>" alt="<?php esc_attr_e( 'Home Construction Builder Default Image', 'home-construction-builder' ); ?>" /> 28 </div> 29 <?php 30 } 31 } else { 32 // Don't show default image or featured image for other single pages (like static pages, etc.) 17 33 ?> 18 <div class="post-thumbnail"> 19 <?php home_construction_builder_post_thumbnail(); ?> 20 </div> 21 <?php 22 } else { 23 // No featured image, so show default image 24 ?> 25 <div class="post-thumbnail"> 26 <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/about1.png' ); ?>" alt="<?php esc_attr_e( 'Home Construction Builder Default Image', 'home-construction-builder' ); ?>" /> 27 </div> 28 <?php 29 } 30 } else { 31 // Don't show default image or featured image for other single pages (like static pages, etc.) 32 ?> 33 <!-- Optionally you can add code for non-post pages here --> 34 <?php } ?> 34 <!-- Optionally you can add code for non-post pages here --> 35 <?php } ?> 36 <?php endif; ?> 35 37 36 38 <?php if ( is_singular() ) { ?> -
home-construction-builder/1.0.8/template-parts/content.php
r248156 r256496 40 40 home_construction_builder_post_thumbnail($home_construction_builder_image_size); 41 41 } 42 if ( get_theme_mod('home_construction_builder_display_archive_post_ sticky_post', true) == true ) :42 if ( get_theme_mod('home_construction_builder_display_archive_post_format_icon', true) == true ) : 43 43 home_construction_builder_post_format_icon(); 44 44 endif; -
home-construction-builder/1.0.8/woocommerce/archive-product.php
r234252 r256496 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 get_header( 'shop' ); ?> 20 get_header( 'shop' ); 21 $home_construction_builder_default = home_construction_builder_get_default_theme_options(); 22 $home_construction_builder_global_sidebar_layout = esc_html( get_theme_mod( 'home_construction_builder_global_sidebar_layout',$home_construction_builder_default['home_construction_builder_global_sidebar_layout'] ) ); 23 $home_construction_builder_sidebar_column_class = 'column-order-2'; 24 if ($home_construction_builder_global_sidebar_layout == 'right-sidebar') { 25 $home_construction_builder_sidebar_column_class = 'column-order-1'; 26 } 27 ?> 21 28 22 29 <div class="singular-main-block"> 23 30 <div class="wrapper"> 24 31 <div class="column-row"> 32 <div id="primary" class="content-area <?php echo esc_attr( $home_construction_builder_sidebar_column_class ); ?>"> 33 <?php 34 // Remove WooCommerce default primary wrapper to prevent duplication 35 remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); 36 remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); 37 38 // WooCommerce wrapper opens 39 do_action( 'woocommerce_before_main_content' ); 40 ?> 41 <?php 42 do_action( 'woocommerce_shop_loop_header' ); 43 44 if ( woocommerce_product_loop() ) { 45 46 do_action( 'woocommerce_before_shop_loop' ); 47 48 woocommerce_product_loop_start(); 49 50 if ( wc_get_loop_prop( 'total' ) ) { 51 while ( have_posts() ) { 52 the_post(); 53 do_action( 'woocommerce_shop_loop' ); 54 wc_get_template_part( 'content', 'product' ); 55 } 56 } 57 58 woocommerce_product_loop_end(); 59 do_action( 'woocommerce_after_shop_loop' ); 60 61 } else { 62 do_action( 'woocommerce_no_products_found' ); 63 } 64 ?> 65 </div> <!-- #primary ends here --> 25 66 26 67 <?php 27 28 /** 29 * Hook: woocommerce_before_main_content. 30 * 31 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) 32 * @hooked woocommerce_breadcrumb - 20 33 * @hooked WC_Structured_Data::generate_website_data() - 30 34 */ 35 do_action( 'woocommerce_before_main_content' ); 68 // WooCommerce wrapper closes 69 do_action( 'woocommerce_after_main_content' ); 70 71 // Sidebar 72 do_action( 'woocommerce_sidebar','woocommerce_get_sidebar',10 ); 36 73 ?> 37 38 <?php39 /**40 * Hook: woocommerce_shop_loop_header.41 *42 * @since 8.6.043 *44 * @hooked woocommerce_product_taxonomy_archive_header - 1045 */46 do_action( 'woocommerce_shop_loop_header' );47 48 if ( woocommerce_product_loop() ) {49 50 /**51 * Hook: woocommerce_before_shop_loop.52 *53 * @hooked woocommerce_output_all_notices - 1054 * @hooked woocommerce_result_count - 2055 * @hooked woocommerce_catalog_ordering - 3056 */57 do_action( 'woocommerce_before_shop_loop' );58 59 woocommerce_product_loop_start();60 61 if ( wc_get_loop_prop( 'total' ) ) {62 while ( have_posts() ) {63 the_post();64 65 /**66 * Hook: woocommerce_shop_loop.67 */68 do_action( 'woocommerce_shop_loop' );69 70 wc_get_template_part( 'content', 'product' );71 }72 }73 74 woocommerce_product_loop_end();75 76 /**77 * Hook: woocommerce_after_shop_loop.78 *79 * @hooked woocommerce_pagination - 1080 */81 do_action( 'woocommerce_after_shop_loop' );82 } else {83 /**84 * Hook: woocommerce_no_products_found.85 *86 * @hooked wc_no_products_found - 1087 */88 do_action( 'woocommerce_no_products_found' );89 }90 91 /**92 * Hook: woocommerce_after_main_content.93 *94 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)95 */96 do_action( 'woocommerce_after_main_content' );97 98 /**99 * Hook: woocommerce_sidebar.100 *101 * @hooked woocommerce_get_sidebar - 10102 */103 do_action( 'woocommerce_sidebar','woocommerce_get_sidebar',10 ); ?>104 105 74 </div> 106 75 </div> 107 76 </div> 108 77 78 79 109 80 <?php get_footer( 'shop' );
Note: See TracChangeset
for help on using the changeset viewer.