Make WordPress Themes

Changeset 262096


Ignore:
Timestamp:
03/05/2025 11:34:57 PM (9 months ago)
Author:
themedropbox
Message:

New version of The Home Decor - 1.6

Location:
the-home-decor/1.6
Files:
1 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • the-home-decor/1.6/archive.php

    r254643 r262096  
    3232            else:
    3333
    34               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     34              get_template_part( 'nothing-found' );
    3535
    3636            endif;
     
    6161            else:
    6262
    63               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     63              get_template_part( 'nothing-found' );
    6464
    6565            endif;
     
    8787            else:
    8888
    89               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     89              get_template_part( 'nothing-found' );
    9090
    9191            endif;
     
    119119            else:
    120120
    121               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     121              get_template_part( 'nothing-found' );
    122122
    123123            endif;
     
    144144                else:
    145145
    146                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     146                  get_template_part( 'nothing-found' );
    147147
    148148                endif;
     
    167167                else:
    168168
    169                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     169                  get_template_part( 'nothing-found' );
    170170
    171171                endif;
     
    198198                else:
    199199
    200                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     200                  get_template_part( 'nothing-found' );
    201201
    202202                endif;
  • the-home-decor/1.6/core/includes/class-upgrade-pro.php

    r251471 r262096  
    7171            new The_Home_Decor_Customize_Section_Pro(
    7272                $manager,
    73                 'the_home_decor_upgrade_pro',
    74                 array(
    75                     'title'       => esc_html__( 'Upgrade to Home Decor PRO', 'the-home-decor' ),
    76                     'description' => esc_html__( 'Unlock premium features: Multiple Sections, Color Pallete, Typography, Premium Support and much more...', 'the-home-decor' ),
    77                     'pro_text'    => esc_html__( 'View The Home Decor PRO', 'the-home-decor' ),
    78                     'pro_url'     => 'https://www.misbahwp.com/products/decor-wordpress-theme',
    79                     'priority'    => 1,
    80                 )
    81             )
     73                'the_home_decor_upgrade_pro',
     74                array(
     75                    'title'       => esc_html__( 'Upgrade to Home Decor PRO', 'the-home-decor' ),
     76                    'description' => esc_html__( 'Unlock premium features: Multiple Sections, Color Pallete, Typography, Premium Support and much more...', 'the-home-decor' ),
     77                    'pro_text'    => esc_html__( 'View Home Decor PRO', 'the-home-decor' ),
     78                    'pro_url'     => esc_url( THE_HOME_DECOR_BUY_NOW ),
     79                    'bundle_text' => esc_html__( 'Get All Themes In Single Pack', 'the-home-decor' ),
     80                    'bundle_url'  => esc_url( THE_HOME_DECOR_THEME_BUNDLE ),
     81                    'priority'    => 1,
     82                )
     83            )
    8284        );
    8385    }
  • the-home-decor/1.6/core/includes/customizer.php

    r261516 r262096  
    132132    Kirki::add_panel( 'the_home_decor_panel_id_3', array(
    133133        'priority'    => 10,
    134         'title'       => esc_html__( '404 Settings', 'the-home-decor' ),
     134        'title'       => esc_html__( '404 Settings / No Result', 'the-home-decor' ),
    135135    ) );
    136136
    137137    // 404 SECTION
    138138    Kirki::add_section( 'the_home_decor_section_404', array(
     139        'panel'          => 'the_home_decor_panel_id_3',
    139140        'title'          => esc_html__( '404 Settings', 'the-home-decor' ),
    140141        'priority'       => 3,
     
    147148        'section'     => 'the_home_decor_section_404',
    148149        'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'the-home-decor' ) . '</div>',
     150        'priority'    => 10,
    149151    ]);
    150152
    151153    Kirki::add_field( 'theme_config_id', [
    152154        'type'        => 'custom',
    153         'settings'    => 'the_home_decor_not_found_heading',
     155        'settings'    => 'the_home_decor_404_heading',
    154156        'section'     => 'the_home_decor_section_404',
    155         'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Not Found Heading', 'the-home-decor' ) . '</h3>',
     157        'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( '404 Heading', 'the-home-decor' ) . '</h3>',
    156158        'priority'    => 10,
    157159    ]);
     
    167169        Kirki::add_field( 'theme_config_id', [
    168170        'type'        => 'custom',
    169         'settings'    => 'the_home_decor_not_found_text',
     171        'settings'    => 'the_home_decor_404_text',
    170172        'section'     => 'the_home_decor_section_404',
    171         'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Not Found Content', 'the-home-decor' ) . '</h3>',
     173        'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( '404 Content', 'the-home-decor' ) . '</h3>',
    172174        'priority'    => 10,
    173175    ]);
     
    178180        'section'  => 'the_home_decor_section_404',
    179181        'default'  => esc_html__('Sorry, no posts matched your criteria.', 'the-home-decor'),
     182        'priority' => 10,
     183    ] );
     184
     185    // NO Result
     186    Kirki::add_section( 'the_home_decor_no_result', array(
     187        'panel'          => 'the_home_decor_panel_id_3',
     188        'title'          => esc_html__( 'No Result Page Settings', 'the-home-decor' ),
     189        'priority'       => 3,
     190    ) );
     191
     192    Kirki::add_field( 'theme_config_id', [
     193        'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'the-home-decor' ) . '</span>',
     194        'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( THE_HOME_DECOR_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'the-home-decor' ) . '</a>',
     195        'type'        => 'custom',
     196        'section'     => 'the_home_decor_no_result',
     197        'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'the-home-decor' ) . '</div>',
     198        'priority'    => 10,
     199    ]);
     200
     201    Kirki::add_field( 'theme_config_id', [
     202        'type'        => 'custom',
     203        'settings'    => 'the_home_decor_not_found_heading',
     204        'section'     => 'the_home_decor_no_result',
     205        'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'No Search Result Heading', 'the-home-decor' ) . '</h3>',
     206        'priority'    => 10,
     207    ]);
     208
     209    Kirki::add_field( 'theme_config_id', [
     210        'type'     => 'text',
     211        'settings' => 'the_home_decor_no_results_page_title',
     212        'section'  => 'the_home_decor_no_result',
     213        'default'  => esc_html__('404 Not Found', 'the-home-decor'),
     214        'priority' => 10,
     215    ] );
     216
     217    Kirki::add_field( 'theme_config_id', [
     218        'type'        => 'custom',
     219        'settings'    => 'the_home_decor_not_found_text',
     220        'section'     => 'the_home_decor_no_result',
     221        'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'No Search Result Content', 'the-home-decor' ) . '</h3>',
     222        'priority'    => 10,
     223    ]);
     224
     225    Kirki::add_field( 'theme_config_id', [
     226        'type'     => 'text',
     227        'settings' => 'the_home_decor_no_results_page_content',
     228        'section'  => 'the_home_decor_no_result',
     229        'default'  => esc_html__('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'the-home-decor'),
    180230        'priority' => 10,
    181231    ] );
  • the-home-decor/1.6/core/includes/tgm.php

    r251471 r262096  
    3232            'force_activation' => false,
    3333        ),
     34        array(
     35            'name'             => __( 'Mosaic Gallery Advanced Gallery', 'the-home-decor' ),
     36            'slug'             => 'mosaic-gallery-advanced-gallery',
     37            'required'         => false,
     38            'force_activation' => false,
     39        ),
    3440    );
    3541    $config = array();
  • the-home-decor/1.6/core/includes/upgrade-pro.php

    r251471 r262096  
    2727
    2828    /**
     29     * Custom button text to output.
     30     *
     31     * @since  1.0.0
     32     * @access public
     33     * @var    string
     34     */
     35    public $bundle_text = '';
     36
     37    /**
    2938     * Custom pro button URL.
    3039     *
     
    3443     */
    3544    public $pro_url = '';
     45
     46    /**
     47     * Custom pro button URL.
     48     *
     49     * @since  1.0.0
     50     * @access public
     51     * @var    string
     52     */
     53    public $bundle_url = '';
    3654
    3755    /**
     
    4866        $json['pro_url']  = esc_url( $this->pro_url );
    4967
     68        $json['bundle_text'] = $this->bundle_text;
     69        $json['bundle_url']  = esc_url( $this->bundle_url );
     70
    5071        return $json;
    5172    }
     
    6081    protected function render_template() { ?>
    6182        <li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
    62 
    6383            <h3 class="accordion-section-title">
    6484                {{ data.title }}
     
    6989                    <a href="{{ data.pro_url }}" class="button button-primary" target="_blank">{{ data.pro_text }}</a>
    7090                <# } #>
     91
     92                <# if ( data.bundle_text && data.bundle_url ) { #>
     93                    <a href="{{ data.bundle_url }}" class="button button-primary" target="_blank">{{ data.bundle_text }}</a>
     94                <# } #>
    7195                   
    7296            </h3>
    73            
    7497        </li>
    7598    <?php }
  • the-home-decor/1.6/core/sections/testimonial.php

    r252568 r262096  
    2727                                      <img src="<?php echo esc_url($the_home_decor_categories_thumb_url); ?>" alt="<?php echo esc_html($the_home_decor_product_categories->name); ?>" />
    2828                                    <?php else : ?>
    29                                       <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/slider.png" alt="" />
     29                                      <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/slider.png" alt="" />
    3030                                    <?php endif; ?>
    3131                                  </div>
  • the-home-decor/1.6/css/customize-controls.css

    r251471 r262096  
    6969  }
    7070}
     71a.button.button-primary {
     72    margin: 4px;
     73}
  • the-home-decor/1.6/index.php

    r254643 r262096  
    3232            else:
    3333
    34               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     34              get_template_part( 'nothing-found' );
    3535
    3636            endif;
     
    6161            else:
    6262
    63               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     63              get_template_part( 'nothing-found' );
    6464
    6565            endif;
     
    8787            else:
    8888
    89               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     89              get_template_part( 'nothing-found' );
    9090
    9191            endif;
     
    119119            else:
    120120
    121               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     121              get_template_part( 'nothing-found' );
    122122
    123123            endif;
     
    144144                else:
    145145
    146                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     146                  get_template_part( 'nothing-found' );
    147147
    148148                endif;
     
    167167                else:
    168168
    169                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     169                  get_template_part( 'nothing-found' );
    170170
    171171                endif;
     
    198198                else:
    199199
    200                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     200                  get_template_part( 'nothing-found' );
    201201
    202202                endif;
  • the-home-decor/1.6/readme.txt

    r261516 r262096  
    33Tags: e-commerce, portfolio, blog, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, grid-layout, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, featured-image-header, editor-style, post-formats, rtl-language-support, theme-options, threaded-comments
    44Requires at least: 5.0
    5 Stable tag: 1.5
     5Stable tag: 1.6
    66Requires PHP: 7.2
    77Tested up to: 6.7
     
    5959* Resolve Minor Bug.
    6060
     61= 1.6 = March - 03 - 2025
     62
     63* Added no result settings.
     64* Added nothing-found.php file.
     65* Added categories in post meta.
     66* Added bundle button in customizer.
     67* recommend mosaic plugin.
     68* Updated woocommerce template.
     69* Do proper escaping.
     70
    6171== Resources ==
    6272
  • the-home-decor/1.6/search.php

    r254643 r262096  
    3434            else:
    3535
    36               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     36              get_template_part( 'nothing-found' );
    3737
    3838            endif;
     
    6464            else:
    6565
    66               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     66              get_template_part( 'nothing-found' );
    6767
    6868            endif;
     
    9191            else:
    9292
    93               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     93              get_template_part( 'nothing-found' );
    9494
    9595            endif;
     
    124124            else:
    125125
    126               esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     126              get_template_part( 'nothing-found' );
    127127
    128128            endif;
     
    151151                else:
    152152
    153                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     153                  get_template_part( 'nothing-found' );
    154154
    155155                endif;
     
    176176                else:
    177177
    178                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     178                  get_template_part( 'nothing-found' );
    179179
    180180                endif;
     
    208208                else:
    209209
    210                   esc_html_e( 'Sorry, no post found on this archive.', 'the-home-decor' );
     210                  get_template_part( 'nothing-found' );
    211211
    212212                endif;
  • the-home-decor/1.6/style.css

    r261516 r262096  
    55Theme URI: https://www.misbahwp.com/products/free-home-decor-wordpress-theme
    66Author URI: https://www.misbahwp.com/
    7 Version: 1.5
     7Version: 1.6
    88Requires PHP: 7.2
    99Tested up to: 6.7
     
    799799  font-size: 25px;
    800800  font-weight: 600;
     801}
     802
     803/*===============================================
     804   Post Meta
     805=============================================== */
     806
     807.edit-cat {
     808    display: flex;
     809    gap: 20px;
    801810}
    802811
  • the-home-decor/1.6/template-parts/content-grid.php

    r257887 r262096  
    2929
    3030        ?>
    31         <?php echo esc_html(the_home_decor_edit_link()); ?>
     31        <div class="edit-cat">
     32          <?php echo esc_html(the_home_decor_edit_link());                 
     33          // Display categories after comments
     34          $the_home_decor_categories_list = get_the_category_list(', ');
     35          if ($the_home_decor_categories_list) {
     36              echo '<div class="post-categories"><i class="fas fa-folder me-2"></i>' . $the_home_decor_categories_list . '</div>';
     37          }  ?>   
     38        </div>
    3239    </div>
    3340</div> 
  • the-home-decor/1.6/template-parts/content.php

    r257887 r262096  
    2828
    2929        ?>
    30         <?php echo esc_html(the_home_decor_edit_link()); ?>
     30        <div class="edit-cat">
     31          <?php echo esc_html(the_home_decor_edit_link());                 
     32          // Display categories after comments
     33          $the_home_decor_categories_list = get_the_category_list(', ');
     34          if ($the_home_decor_categories_list) {
     35              echo '<div class="post-categories"><i class="fas fa-folder me-2"></i>' . $the_home_decor_categories_list . '</div>';
     36          }  ?>   
     37        </div>
    3138    </div>
    3239</div>
  • the-home-decor/1.6/woocommerce/archive-product.php

    r251471 r262096  
    2727    <?php if ( get_theme_mod('the_home_decor_breadcrumb_enable',true) ) : ?>
    2828      <div class="bread_crumb text-center">
    29         <h1 class="post-title feature-header-title"><?php echo(esc_html_e('Archive Product Page','the-home-decor')); ?></h1>
     29        <h1 class="post-title feature-header-title"><?php esc_html_e('Archive Product Page','the-home-decor'); ?></h1>
    3030        <?php the_home_decor_breadcrumb();  ?>
    3131      </div>
  • the-home-decor/1.6/woocommerce/myaccount/form-login.php

    r251471 r262096  
    1313 * @see     https://woocommerce.com/document/template-structure/
    1414 * @package WooCommerce\Templates
    15  * @version 9.2.0
     15 * @version 9.7.0
    1616 */
    1717
     
    3232        <h2><?php esc_html_e( 'Login', 'the-home-decor' ); ?></h2>
    3333
    34         <form class="woocommerce-form woocommerce-form-login login" method="post">
     34        <form class="woocommerce-form woocommerce-form-login login" method="post" novalidate>
    3535
    3636            <?php do_action( 'woocommerce_login_form_start' ); ?>
    3737
    3838            <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    39                 <label for="username"><?php esc_html_e( 'Username or email address', 'the-home-decor' ); ?>&nbsp;<span class="required">*</span></label>
    40                 <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" /><?php // @codingStandardsIgnoreLine ?>
     39                <label for="username"><?php esc_html_e( 'Username or email address', 'the-home-decor' ); ?>&nbsp;<span class="required" aria-hidden="true">*</span><span class="screen-reader-text"><?php esc_html_e( 'Required', 'the-home-decor' ); ?></span></label>
     40                <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" required aria-required="true" /><?php // @codingStandardsIgnoreLine ?>
    4141            </p>
    4242            <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    43                 <label for="password"><?php esc_html_e( 'Password', 'the-home-decor' ); ?>&nbsp;<span class="required">*</span></label>
    44                 <input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="password" id="password" autocomplete="current-password" />
     43                <label for="password"><?php esc_html_e( 'Password', 'the-home-decor' ); ?>&nbsp;<span class="required" aria-hidden="true">*</span><span class="screen-reader-text"><?php esc_html_e( 'Required', 'the-home-decor' ); ?></span></label>
     44                <input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="password" id="password" autocomplete="current-password" required aria-required="true" />
    4545            </p>
    4646
     
    7777
    7878                <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    79                     <label for="reg_username"><?php esc_html_e( 'Username', 'the-home-decor' ); ?>&nbsp;<span class="required">*</span></label>
    80                     <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" /><?php // @codingStandardsIgnoreLine ?>
     79                    <label for="reg_username"><?php esc_html_e( 'Username', 'the-home-decor' ); ?>&nbsp;<span class="required" aria-hidden="true">*</span><span class="screen-reader-text"><?php esc_html_e( 'Required', 'the-home-decor' ); ?></span></label>
     80                    <input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" required aria-required="true" /><?php // @codingStandardsIgnoreLine ?>
    8181                </p>
    8282
     
    8484
    8585            <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    86                 <label for="reg_email"><?php esc_html_e( 'Email address', 'the-home-decor' ); ?>&nbsp;<span class="required">*</span></label>
    87                 <input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" autocomplete="email" value="<?php echo ( ! empty( $_POST['email'] ) ) ? esc_attr( wp_unslash( $_POST['email'] ) ) : ''; ?>" /><?php // @codingStandardsIgnoreLine ?>
     86                <label for="reg_email"><?php esc_html_e( 'Email address', 'the-home-decor' ); ?>&nbsp;<span class="required" aria-hidden="true">*</span><span class="screen-reader-text"><?php esc_html_e( 'Required', 'the-home-decor' ); ?></span></label>
     87                <input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" autocomplete="email" value="<?php echo ( ! empty( $_POST['email'] ) ) ? esc_attr( wp_unslash( $_POST['email'] ) ) : ''; ?>" required aria-required="true" /><?php // @codingStandardsIgnoreLine ?>
    8888            </p>
    8989
     
    9191
    9292                <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    93                     <label for="reg_password"><?php esc_html_e( 'Password', 'the-home-decor' ); ?>&nbsp;<span class="required">*</span></label>
    94                     <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" autocomplete="new-password" />
     93                    <label for="reg_password"><?php esc_html_e( 'Password', 'the-home-decor' ); ?>&nbsp;<span class="required" aria-hidden="true">*</span><span class="screen-reader-text"><?php esc_html_e( 'Required', 'the-home-decor' ); ?></span></label>
     94                    <input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" autocomplete="new-password" required aria-required="true" />
    9595                </p>
    9696
  • the-home-decor/1.6/woocommerce/single-product.php

    r257887 r262096  
    3030    <?php if ( get_theme_mod('the_home_decor_breadcrumb_enable',true) ) : ?>
    3131      <div class="bread_crumb text-center">
    32         <h1 class="post-title feature-header-title"><?php echo get_the_title(); ?></h1>
     32        <h1 class="post-title feature-header-title"><?php esc_html_e('Single Product Page','the-home-decor'); ?></h1>
    3333        <?php the_home_decor_breadcrumb();  ?>
    3434      </div>
Note: See TracChangeset for help on using the changeset viewer.