Make WordPress Themes

Changeset 256496


Ignore:
Timestamp:
01/20/2025 04:22:04 AM (10 months ago)
Author:
themedropbox
Message:

New version of Home Construction Builder - 1.0.8

Location:
home-construction-builder/1.0.8
Files:
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • home-construction-builder/1.0.8/classes/body-classes.php

    r251024 r256496  
    2525        $home_construction_builder_post_sidebar_layout = esc_html(get_theme_mod('home_construction_builder_post_sidebar_layout', $home_construction_builder_global_sidebar_layout));
    2626   
    27         if (is_page()) {
     27        if (is_page() || (function_exists('is_shop') && is_shop())) {
    2828            $home_construction_builder_classes[] = $home_construction_builder_page_sidebar_layout;
    2929        } elseif (is_single()) {
  • home-construction-builder/1.0.8/inc/customizer/default.php

    r251024 r256496  
    9494        $home_construction_builder_defaults['home_construction_builder_secondary_color']                                   = '#FFC527';
    9595        $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;
    9796        $home_construction_builder_defaults['home_construction_builder_display_archive_post_title']             = 1;
    9897        $home_construction_builder_defaults['home_construction_builder_display_archive_post_content']           = 1;
    9998        $home_construction_builder_defaults['home_construction_builder_display_archive_post_button']            = 1;
    10099        $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;
    101103
    102104
  • home-construction-builder/1.0.8/inc/customizer/post.php

    r244715 r256496  
    1818);
    1919
     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
    2035$wp_customize->add_setting('home_construction_builder_post_author',
    2136    array(
     
    88103);
    89104
    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'),
    100115        'section' => 'home_construction_builder_posts_settings',
    101116        'type' => 'checkbox',
  • home-construction-builder/1.0.8/languages/home-construction-builder.pot

    r251024 r256496  
    1 # Copyright (C) 2024 Omega Themes
     1# Copyright (C) 2025 Omega Themes
    22# This file is distributed under the GNU General Public License v2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Home Construction Builder 1.0.7\n"
     5"Project-Id-Version: Home Construction Builder 1.0.8\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/home-construction-builder\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-11-19T06:06:40+00:00\n"
     12"POT-Creation-Date: 2025-01-17T11:38:03+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    407407msgstr ""
    408408
    409 #: inc/customizer/default.php:100
     409#: inc/customizer/default.php:99
    410410msgid "#"
    411411msgstr ""
     
    638638
    639639#: inc/customizer/post.php:29
     640msgid "Enable Single Posts Image"
     641msgstr ""
     642
     643#: inc/customizer/post.php:44
    640644msgid "Enable Posts Author"
    641645msgstr ""
    642646
    643 #: inc/customizer/post.php:44
     647#: inc/customizer/post.php:59
    644648msgid "Enable Posts Date"
    645649msgstr ""
    646650
    647 #: inc/customizer/post.php:59
     651#: inc/customizer/post.php:74
     652#: inc/customizer/post.php:144
     653msgid "Enable Posts Category"
     654msgstr ""
     655
     656#: inc/customizer/post.php:89
     657msgid "Enable Posts Tags"
     658msgstr ""
     659
     660#: inc/customizer/post.php:98
     661msgid "Archive Meta Information Settings"
     662msgstr ""
     663
     664#: inc/customizer/post.php:114
     665msgid "Enable Post Format Icon"
     666msgstr ""
     667
    648668#: inc/customizer/post.php:129
    649 msgid "Enable Posts Category"
    650 msgstr ""
    651 
    652 #: inc/customizer/post.php:74
    653 msgid "Enable Posts Tags"
    654 msgstr ""
    655 
    656 #: inc/customizer/post.php:83
    657 msgid "Archive Meta Information Settings"
    658 msgstr ""
    659 
    660 #: inc/customizer/post.php:99
    661 msgid "Enable sticky Post"
    662 msgstr ""
    663 
    664 #: inc/customizer/post.php:114
    665669msgid "Enable Posts Image"
    666670msgstr ""
    667671
    668 #: inc/customizer/post.php:144
     672#: inc/customizer/post.php:159
    669673msgid "Enable Posts Title"
    670674msgstr ""
    671675
    672 #: inc/customizer/post.php:159
     676#: inc/customizer/post.php:174
    673677msgid "Enable Posts Content"
    674678msgstr ""
    675679
    676 #: inc/customizer/post.php:174
     680#: inc/customizer/post.php:189
    677681msgid "Enable Posts Button"
    678682msgstr ""
    679683
    680 #: inc/customizer/post.php:189
     684#: inc/customizer/post.php:204
    681685msgid "Blog Post Excerpt limit"
    682686msgstr ""
     
    985989msgstr ""
    986990
    987 #: template-parts/content-single.php:26
     991#: template-parts/content-single.php:27
    988992msgid "Home Construction Builder Default Image"
    989993msgstr ""
    990994
    991995#. translators: %s: Name of current post.
    992 #: template-parts/content-single.php:67
     996#: template-parts/content-single.php:69
    993997msgid "Read More %s <span class=\"meta-nav\">&rarr;</span>"
    994998msgstr ""
    995999
    996 #: template-parts/content-single.php:72
     1000#: template-parts/content-single.php:74
    9971001#: template-parts/content.php:82
    9981002msgid "Pages:"
  • home-construction-builder/1.0.8/readme.txt

    r251024 r256496  
    44Tested up to: 6.7
    55Requires PHP: 7.2
    6 Stable tag: 1.0.7
     6Stable tag: 1.0.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    134134* Added Sidebar Position Settings.
    135135* 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 Builder
    3 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 attributes
    5 of your CSS stylesheet in a separate stylesheet file named rtl.css.
    6 https://codex.wordpress.org/Right-to-Left_Language_Support
    7 */
    81/*--------------------------------------------------------------
    92# Normalize
    103--------------------------------------------------------------*/
     4
    115html {
    126    line-height: 1.15;
     
    669663  input[type="submit"],
    670664  .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 {
    672667    -webkit-appearance: none;
    673668    -moz-appearance: none;
     
    903898  :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt,
    904899  :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 {
    906902    color: #000;
    907903    display: block;
     
    11701166  }
    11711167 
     1168  .woocommerce-Address-title.title a,
    11721169  .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
    11731170  .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
     
    11911188  }
    11921189 
     1190  .woocommerce ul.products li.product .button:hover,
     1191  .woocommerce-Address-title.title a:hover,
    11931192  .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover,
    11941193  .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover,
     
    65336532    margin-top: 50px;
    65346533  }
     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  
    88$post_id = get_the_ID(); // Get the post ID.
    99
    10 if ( is_page() ) {
     10if ( is_page() || ( function_exists('is_shop') && is_shop() ) ) {
    1111    $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'] ) );
    1212} elseif ( is_single() ) {
  • home-construction-builder/1.0.8/style.css

    r251024 r256496  
    99Tested up to: 6.7
    1010Requires PHP: 7.2
    11 Version: 1.0.7
     11Version: 1.0.8
    1212License: GNU General Public License v2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    597597input[type="reset"],
    598598input[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 {
    600601    -webkit-appearance: none;
    601602    -moz-appearance: none;
     
    805806:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt,
    806807: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 {
    808810    color: #000;
    809811    display: block;
     
    10021004    text-align: center;
    10031005}
    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{
    10051007    background-color: #fff;
    10061008    color: #000 !important;
     
    10081010}
    10091011
    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{
    10111013    background-color: var(--global-color);
    10121014}
     
    55215523    margin-top: 50px;
    55225524}
     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  
    1010?>
    1111
    12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
     12<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1313
    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.)
    1733            ?>
    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; ?>
    3537
    3638    <?php if ( is_singular() ) { ?>
  • home-construction-builder/1.0.8/template-parts/content.php

    r248156 r256496  
    4040                    home_construction_builder_post_thumbnail($home_construction_builder_image_size);
    4141                }
    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 ) :
    4343                    home_construction_builder_post_format_icon();
    4444                endif;
  • home-construction-builder/1.0.8/woocommerce/archive-product.php

    r234252 r256496  
    1818defined( 'ABSPATH' ) || exit;
    1919
    20 get_header( 'shop' ); ?>
     20get_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';
     24if ($home_construction_builder_global_sidebar_layout == 'right-sidebar') {
     25    $home_construction_builder_sidebar_column_class = 'column-order-1';
     26}
     27?>
    2128
    2229<div class="singular-main-block">
    2330    <div class="wrapper">
    2431        <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 -->
    2566
    2667            <?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 );
    3673            ?>
    37 
    38             <?php
    39             /**
    40              * Hook: woocommerce_shop_loop_header.
    41              *
    42              * @since 8.6.0
    43              *
    44              * @hooked woocommerce_product_taxonomy_archive_header - 10
    45              */
    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 - 10
    54                  * @hooked woocommerce_result_count - 20
    55                  * @hooked woocommerce_catalog_ordering - 30
    56                  */
    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 - 10
    80                  */
    81                 do_action( 'woocommerce_after_shop_loop' );
    82             } else {
    83                 /**
    84                  * Hook: woocommerce_no_products_found.
    85                  *
    86                  * @hooked wc_no_products_found - 10
    87                  */
    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 - 10
    102              */
    103             do_action( 'woocommerce_sidebar','woocommerce_get_sidebar',10 ); ?>
    104 
    10574        </div>
    10675    </div>
    10776</div>
    10877
     78
     79
    10980<?php get_footer( 'shop' );
Note: See TracChangeset for help on using the changeset viewer.