Make WordPress Themes

Changeset 290112


Ignore:
Timestamp:
09/24/2025 04:58:02 AM (2 months ago)
Author:
themedropbox
Message:

New version of Home Construction Builder - 1.1.8

Location:
home-construction-builder/1.1.8
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • home-construction-builder/1.1.8/inc/customizer/homepage-content.php

    r244715 r290112  
    1818);
    1919
     20// Show/Hide Site Logo
     21$wp_customize->add_setting('home_construction_builder_display_logo', array(
     22    'default'           => false,
     23    'capability'        => 'edit_theme_options',
     24    'sanitize_callback' => 'home_construction_builder_sanitize_checkbox',
     25));
     26$wp_customize->add_control('home_construction_builder_display_logo', array(
     27    'label'    => esc_html__('Enable / Disable Site Logo', 'home-construction-builder'),
     28    'section'  => 'title_tagline',
     29    'type'     => 'checkbox',
     30));
     31
     32// Show/Hide Site Title
     33$wp_customize->add_setting('home_construction_builder_display_title', array(
     34    'default'           => true,
     35    'capability'        => 'edit_theme_options',
     36    'sanitize_callback' => 'home_construction_builder_sanitize_checkbox',
     37));
     38$wp_customize->add_control('home_construction_builder_display_title', array(
     39    'label'    => esc_html__('Enable / Disable Site Title', 'home-construction-builder'),
     40    'section'  => 'title_tagline',
     41    'type'     => 'checkbox',
     42));
     43
     44// Show/Hide Site Tagline
    2045$wp_customize->add_setting('home_construction_builder_display_header_text',
    2146    array(
    22         'default' => $home_construction_builder_default['home_construction_builder_header_slider'],
     47        'default'           => false,
    2348        'capability' => 'edit_theme_options',
    2449        'sanitize_callback' => 'home_construction_builder_sanitize_checkbox',
     
    2752$wp_customize->add_control('home_construction_builder_display_header_text',
    2853    array(
    29         'label' => esc_html__('Enable / Disable Tagline', 'home-construction-builder'),
     54        'label' => esc_html__('Enable / Disable Site Tagline', 'home-construction-builder'),
    3055        'section' => 'title_tagline',
    3156        'type' => 'checkbox',
  • home-construction-builder/1.1.8/inc/template-tags.php

    r268890 r290112  
    4141         */
    4242        $home_construction_builder_args = apply_filters('home_construction_builder_site_logo_args', $home_construction_builder_args, $home_construction_builder_defaults);
    43         if ( has_custom_logo() ) {
    44             $home_construction_builder_contents = sprintf($home_construction_builder_args['logo'], $home_construction_builder_logo, esc_html($home_construction_builder_site_title));
    45             $home_construction_builder_contents .= sprintf($home_construction_builder_args['title'], esc_url( get_home_url(null, '/') ), esc_html($home_construction_builder_site_title));
     43       
     44        $home_construction_builder_show_logo  = get_theme_mod('home_construction_builder_display_logo', false);
     45        $home_construction_builder_show_title = get_theme_mod('home_construction_builder_display_title', true);
     46
     47        if ( has_custom_logo() && $home_construction_builder_show_logo ) {
     48            $home_construction_builder_contents .= sprintf($home_construction_builder_args['logo'], $home_construction_builder_logo, esc_html($home_construction_builder_site_title));
    4649            $home_construction_builder_classname = $home_construction_builder_args['logo_class'];
    47         } else {
    48             $home_construction_builder_contents = sprintf($home_construction_builder_args['title'], esc_url( get_home_url(null, '/') ), esc_html($home_construction_builder_site_title));
    49             $home_construction_builder_classname = $home_construction_builder_args['title_class'];
    50         }
     50        }
     51
     52        if ( $home_construction_builder_show_title ) {
     53            $home_construction_builder_contents .= sprintf($home_construction_builder_args['title'], esc_url(get_home_url(null, '/')), esc_html($home_construction_builder_site_title));
     54            // If logo isn't shown, fallback to title class for wrapper.
     55            if ( !$home_construction_builder_show_logo ) {
     56                $home_construction_builder_classname = $home_construction_builder_args['title_class'];
     57            }
     58        }
     59
     60        // If nothing is shown (logo or title both disabled), exit early
     61        if ( empty($home_construction_builder_contents) ) {
     62            return;
     63        }
     64
    5165        $home_construction_builder_wrap = $home_construction_builder_args['condition'] ? 'home_wrap' : 'single_wrap';
    5266        // $home_construction_builder_wrap = 'home_wrap';
  • home-construction-builder/1.1.8/languages/home-construction-builder.pot

    r280253 r290112  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Home Construction Builder 1.1.5\n"
     5"Project-Id-Version: Home Construction Builder 1.1.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: 2025-07-17T06:31:28+00:00\n"
     12"POT-Creation-Date: 2025-09-16T13:25:53+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    632632msgstr ""
    633633
    634 #: inc/customizer/homepage-content.php:29
    635 msgid "Enable / Disable Tagline"
    636 msgstr ""
    637 
    638 #: inc/customizer/homepage-content.php:44
     634#: inc/customizer/homepage-content.php:27
     635msgid "Enable / Disable Site Logo"
     636msgstr ""
     637
     638#: inc/customizer/homepage-content.php:39
     639msgid "Enable / Disable Site Title"
     640msgstr ""
     641
     642#: inc/customizer/homepage-content.php:54
     643msgid "Enable / Disable Site Tagline"
     644msgstr ""
     645
     646#: inc/customizer/homepage-content.php:69
    639647msgid "Enable Slider"
    640648msgstr ""
    641649
    642 #: inc/customizer/homepage-content.php:59
     650#: inc/customizer/homepage-content.php:84
    643651msgid "Slider Background Image"
    644652msgstr ""
    645653
    646 #: inc/customizer/homepage-content.php:75
     654#: inc/customizer/homepage-content.php:100
    647655msgid "Slider Short Title"
    648656msgstr ""
    649657
    650 #: inc/customizer/homepage-content.php:90
     658#: inc/customizer/homepage-content.php:115
    651659msgid "Slider Post Left Category"
    652660msgstr ""
    653661
    654 #: inc/customizer/homepage-content.php:101
     662#: inc/customizer/homepage-content.php:126
    655663msgid "About Us Settings"
    656664msgstr ""
    657665
    658 #: inc/customizer/homepage-content.php:117
     666#: inc/customizer/homepage-content.php:142
    659667msgid "Enable About Us"
    660668msgstr ""
    661669
    662 #: inc/customizer/homepage-content.php:132
     670#: inc/customizer/homepage-content.php:157
    663671msgid "About Us Left Image "
    664672msgstr ""
    665673
    666 #: inc/customizer/homepage-content.php:148
     674#: inc/customizer/homepage-content.php:173
    667675msgid "Left Image Heading"
    668676msgstr ""
    669677
    670 #: inc/customizer/homepage-content.php:163
     678#: inc/customizer/homepage-content.php:188
    671679msgid "About Us Short Title"
    672680msgstr ""
    673681
    674 #: inc/customizer/homepage-content.php:178
     682#: inc/customizer/homepage-content.php:203
    675683msgid "About Us Heading"
    676684msgstr ""
    677685
    678 #: inc/customizer/homepage-content.php:193
     686#: inc/customizer/homepage-content.php:218
    679687msgid "About Us Content"
    680688msgstr ""
    681689
    682 #: inc/customizer/homepage-content.php:208
     690#: inc/customizer/homepage-content.php:233
    683691msgid "About Us Feature Image "
    684692msgstr ""
    685693
    686 #: inc/customizer/homepage-content.php:224
     694#: inc/customizer/homepage-content.php:249
    687695msgid "About Us Feature Heading 1"
    688696msgstr ""
    689697
    690 #: inc/customizer/homepage-content.php:239
     698#: inc/customizer/homepage-content.php:264
    691699msgid "About Us Feature Heading 2"
    692700msgstr ""
    693701
    694 #: inc/customizer/homepage-content.php:254
     702#: inc/customizer/homepage-content.php:279
    695703msgid "About Us Feature Heading 3"
    696704msgstr ""
     
    979987
    980988#. translators: used between list items, there is a space after the comma
    981 #: inc/template-tags.php:276
     989#: inc/template-tags.php:290
    982990msgctxt "list item separator"
    983991msgid ", "
     
    985993
    986994#. translators: %s: Name of current post. Only visible to screen readers
    987 #: inc/template-tags.php:298
     995#: inc/template-tags.php:312
    988996msgid "Edit <span class=\"screen-reader-text\">%s</span>"
    989997msgstr ""
  • home-construction-builder/1.1.8/lib/custom/css/dynamic-style.php

    r280253 r290112  
    7979        }
    8080
    81         .breadcrumbs {
    82             font-size: {$home_construction_builder_breadcrumb_font_size}px;
     81        .breadcrumbs,.woocommerce-breadcrumb {
     82            font-size: {$home_construction_builder_breadcrumb_font_size}px !important;
    8383        }
    8484    ";
  • home-construction-builder/1.1.8/readme.txt

    r287814 r290112  
    44Tested up to: 6.8
    55Requires PHP: 7.2
    6 Stable tag: 1.1.7
     6Stable tag: 1.1.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    191191= 1.1.7 =
    192192* New Tags Added.
     193
     194= 1.1.8 =
     195* Added Enable / Disable Site Logo Setting.
     196* Added Enable / Disable Site Title Setting.
     197* Updated template-tags.php File Function.
     198* Done Checkout Page CSS.
     199* Updated Breadcrumb Font Size Setting.
  • home-construction-builder/1.1.8/style.css

    r287814 r290112  
    99Tested up to: 6.8
    1010Requires PHP: 7.2
    11 Version: 1.1.7
     11Version: 1.1.8
    1212License: GNU General Public License v2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1414Text Domain: home-construction-builder
    15 Tags: blog, e-commerce, portfolio, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, grid-layout, full-width-template, wide-blocks, block-styles, editor-style, custom-background, custom-logo, custom-menu, custom-colors, custom-header, featured-images, flexible-header, footer-widgets, featured-image-header, post-formats, rtl-language-support, translation-ready, theme-options, threaded-comments,  sticky-post
     15Tags: blog, e-commerce, portfolio, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, grid-layout, full-width-template, wide-blocks, block-styles, editor-style, custom-background, custom-logo, custom-menu, custom-colors, custom-header, featured-images, flexible-header, footer-widgets, featured-image-header, post-formats, rtl-language-support, translation-ready, theme-options, threaded-comments, sticky-post
    1616*/
    1717
     
    910910  width: 50%;
    911911}
     912.wc-block-components-checkout-return-to-cart-button{
     913    background: var(--global-color);
     914    color: #fff !important;
     915    text-decoration: none !important;
     916    border-radius: 10px;
     917    border: none !important;
     918    padding: 10px;
     919    border: 2px solid transparent;
     920  }
    912921.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover{
    913922  border: 2px solid var(--global-color);
     
    35333542    display: none;
    35343543}
    3535 .entry-header-1 {
    3536     margin-top: 3rem;
    3537     padding-top: 3rem;
     3544.single .post-thumbnail {
     3545    margin-bottom: 2rem;
     3546    padding-bottom: 2rem;
    35383547}
    35393548@media (max-width: 991px) {
Note: See TracChangeset for help on using the changeset viewer.