Make WordPress Themes

Changeset 178384


Ignore:
Timestamp:
10/27/2022 07:07:43 AM (3 years ago)
Author:
themedropbox
Message:

New version of LZ Interior Decor - 0.5.3

Location:
lz-interior-decor/0.5.3
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • lz-interior-decor/0.5.3/functions.php

    r174073r178384 
    276276
    277277/* Breadcrumb Begin */
    278 function utsav_event_planner_breadcrumb() {
     278function lz_interior_decor_breadcrumb() {
    279279    if (!is_home()) {
    280280        echo '<a href="';
  • lz-interior-decor/0.5.3/header.php

    r174073r178384 
    134134            <div class="theme-breadcrumb py-2">
    135135                <div class="container">
    136                     <?php utsav_event_planner_breadcrumb();?>
     136                    <?php lz_interior_decor_breadcrumb();?>
    137137                </div>
    138138            </div>
  • lz-interior-decor/0.5.3/inc/customizer.php

    r169921r178384 
    228228    ) );
    229229
     230    $wp_customize->add_setting('lz_interior_decor_slider_hide_show',array(
     231        'default' => false,
     232        'sanitize_callback' => 'lz_interior_decor_sanitize_checkbox'
     233    ));
     234    $wp_customize->add_control('lz_interior_decor_slider_hide_show',array(
     235        'type' => 'checkbox',
     236        'label' => __('Show / Hide Slider','lz-interior-decor'),
     237        'section' => 'lz_interior_decor_slider_section'
     238    ));
     239
    230240    for ( $count = 1; $count <= 4; $count++ ) {
    231241        $wp_customize->add_setting( 'lz_interior_decor_slider' . $count, array(
     
    357367        'setting'   => 'lz_interior_decor_footer_copy',
    358368        'type'      => 'text'
     369    ));
     370
     371    $wp_customize->add_setting('lz_interior_decor_copyright_padding',array(
     372        'default' => '',
     373        'sanitize_callback' => 'lz_interior_decor_sanitize_float'
     374    ));
     375    $wp_customize->add_control('lz_interior_decor_copyright_padding',array(
     376        'type' => 'number',
     377        'label' => __('Copyright Top Bottom Padding','lz-interior-decor'),
     378        'section' => 'lz_interior_decor_footer',
    359379    ));
    360380
  • lz-interior-decor/0.5.3/languages/lz-interior-decor.pot

    r174073r178384 
    441441
    442442#: inc/customizer.php:236
     443msgid 'Show / Hide Slider'
     444msgstr ""
     445
     446#: inc/customizer.php:246
    443447msgid 'Select Slide Image Page'
    444448msgstr ""
    445449
    446 #: inc/customizer.php:244
     450#: inc/customizer.php:254
    447451msgid 'Our Skills'
    448452msgstr ""
    449453
    450 #: inc/customizer.php:245
     454#: inc/customizer.php:255
    451455msgid 'This section will appear below the slider.'
    452456msgstr ""
    453457
    454 #: inc/customizer.php:254
     458#: inc/customizer.php:264
     459#: inc/customizer.php:314
     460msgid 'Section Title'
     461msgstr ""
     462
     463#: inc/customizer.php:288
     464#: inc/customizer.php:338
     465msgid 'Select Category to display Latest Post'
     466msgstr ""
     467
     468#: inc/customizer.php:298
     469msgid 'Section Top Bottom Padding'
     470msgstr ""
     471
    455472#: inc/customizer.php:304
    456 msgid 'Section Title'
    457 msgstr ""
    458 
    459 #: inc/customizer.php:278
    460 #: inc/customizer.php:328
    461 msgid 'Select Category to display Latest Post'
    462 msgstr ""
    463 
    464 #: inc/customizer.php:288
    465 msgid 'Section Top Bottom Padding'
    466 msgstr ""
    467 
    468 #: inc/customizer.php:294
    469473msgid 'Our Design'
    470474msgstr ""
    471475
    472 #: inc/customizer.php:295
     476#: inc/customizer.php:305
    473477msgid 'This section will appear below the our skills.'
    474478msgstr ""
    475479
    476 #: inc/customizer.php:335
    477 #: inc/customizer.php:355
     480#: inc/customizer.php:345
     481#: inc/customizer.php:365
    478482msgid 'Footer Text'
    479483msgstr ""
    480484
    481 #: inc/customizer.php:346
     485#: inc/customizer.php:356
    482486msgid 'Show / Hide Back to Top'
    483487msgstr ""
    484488
    485 #: inc/customizer.php:468
     489#: inc/customizer.php:377
     490msgid 'Copyright Top Bottom Padding'
     491msgstr ""
     492
     493#: inc/customizer.php:488
    486494msgid 'Interior Pro'
    487495msgstr ""
    488496
    489 #: inc/customizer.php:469
     497#: inc/customizer.php:489
    490498msgid 'Go Pro'
    491499msgstr ""
  • lz-interior-decor/0.5.3/lz-custom-style.php

    r174073r178384 
    4040    }
    4141
    42     $utsav_event_planner_slider_hide_show = get_theme_mod('utsav_event_planner_slider_hide_show',false);
    43     if( $utsav_event_planner_slider_hide_show == true){
    44         $utsav_event_planner_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
    45             $utsav_event_planner_custom_style .=' display:none;';
    46         $utsav_event_planner_custom_style .=' }';
     42    $lz_interior_decor_slider_hide_show = get_theme_mod('lz_interior_decor_slider_hide_show',false);
     43    if( $lz_interior_decor_slider_hide_show == true){
     44        $lz_interior_decor_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
     45            $lz_interior_decor_custom_style .=' display:none;';
     46        $lz_interior_decor_custom_style .=' }';
    4747    }
     48
     49    // Copyright padding
     50    $lz_interior_decor_copyright_padding = get_theme_mod('lz_interior_decor_copyright_padding');
     51    if( $lz_interior_decor_copyright_padding != ''){
     52        $lz_interior_decor_custom_style .=' .copyright {';
     53            $lz_interior_decor_custom_style .=' padding-top: '.esc_attr($lz_interior_decor_copyright_padding).'px; padding-bottom: '.esc_attr($lz_interior_decor_copyright_padding).'px;';
     54        $lz_interior_decor_custom_style .=' }';
     55    }
  • lz-interior-decor/0.5.3/page-template/custom-home-page.php

    r142158r178384 
    99    <?php do_action( 'lz_interior_decor_above_slider' ); ?>
    1010
    11     <section id="slider">
    12         <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
    13             <?php $lz_interior_decor_slider_pages = array();
    14                 for ( $count = 1; $count <= 4; $count++ ) {
    15                     $mod = intval( get_theme_mod( 'lz_interior_decor_slider' . $count ));
    16                     if ( 'page-none-selected' != $mod ) {
    17                         $lz_interior_decor_slider_pages[] = $mod;
    18                     }
    19                 }
    20                 if( !empty($lz_interior_decor_slider_pages) ) :
    21                 $args = array(
    22                     'post_type' => 'page',
    23                     'post__in' => $lz_interior_decor_slider_pages,
    24                     'orderby' => 'post__in'
    25                 );
    26                 $query = new WP_Query( $args );
    27                 if ( $query->have_posts() ) :
    28                   $i = 1;
    29             ?>     
    30             <div class="carousel-inner" role="listbox">
    31                 <?php  while ( $query->have_posts() ) : $query->the_post(); ?>
    32                 <div <?php if($i == 1){echo 'class="carousel-item active"';} else{ echo 'class="carousel-item"';}?>>
    33                     <a href="<?php echo esc_url( get_permalink() );?>"><?php the_post_thumbnail(); ?></a>
    34                     <div class="carousel-caption">
    35                         <div class="inner_carousel">
    36                             <h1><a href="<?php echo esc_url( get_permalink() );?>"><?php the_title(); ?></a></h1>
    37                             <p><?php $excerpt = get_the_excerpt(); echo esc_html( lz_interior_decor_string_limit_words( $excerpt,15 ) ); ?></p>
    38                         </div>
    39                     </div>
    40                 </div>
    41                 <?php $i++; endwhile;
    42                 wp_reset_postdata();?>
    43             </div>
    44             <?php else : ?>
    45             <div class="no-postfound"></div>
    46               <?php endif;
    47             endif;?>
    48             <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
    49               <span class="carousel-control-prev-icon" aria-hidden="true"><i class="fas fa-chevron-left"></i></span>
    50                 <span class="screen-reader-text"><?php esc_html_e( 'Prev','lz-interior-decor' );?></span>
    51             </a>
    52             <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
    53                 <span class="carousel-control-next-icon" aria-hidden="true"><i class="fas fa-chevron-right"></i></span>
    54                 <span class="screen-reader-text"><?php esc_html_e( 'Next','lz-interior-decor' );?></span>
    55             </a>
    56         </div> 
    57         <div class="clearfix"></div>
    58     </section>
     11    <?php if(get_theme_mod('lz_interior_decor_slider_hide_show', false) != ''){ ?>
     12        <section id="slider">
     13            <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
     14                <?php $lz_interior_decor_slider_pages = array();
     15                    for ( $count = 1; $count <= 4; $count++ ) {
     16                        $mod = intval( get_theme_mod( 'lz_interior_decor_slider' . $count ));
     17                        if ( 'page-none-selected' != $mod ) {
     18                            $lz_interior_decor_slider_pages[] = $mod;
     19                        }
     20                    }
     21                    if( !empty($lz_interior_decor_slider_pages) ) :
     22                    $args = array(
     23                        'post_type' => 'page',
     24                        'post__in' => $lz_interior_decor_slider_pages,
     25                        'orderby' => 'post__in'
     26                    );
     27                    $query = new WP_Query( $args );
     28                    if ( $query->have_posts() ) :
     29                      $i = 1;
     30                ?>     
     31                <div class="carousel-inner" role="listbox">
     32                    <?php  while ( $query->have_posts() ) : $query->the_post(); ?>
     33                    <div <?php if($i == 1){echo 'class="carousel-item active"';} else{ echo 'class="carousel-item"';}?>>
     34                        <a href="<?php echo esc_url( get_permalink() );?>"><?php the_post_thumbnail(); ?></a>
     35                        <div class="carousel-caption">
     36                            <div class="inner_carousel">
     37                                <h1><a href="<?php echo esc_url( get_permalink() );?>"><?php the_title(); ?></a></h1>
     38                                <p><?php $excerpt = get_the_excerpt(); echo esc_html( lz_interior_decor_string_limit_words( $excerpt,15 ) ); ?></p>
     39                            </div>
     40                        </div>
     41                    </div>
     42                    <?php $i++; endwhile;
     43                    wp_reset_postdata();?>
     44                </div>
     45                <?php else : ?>
     46                <div class="no-postfound"></div>
     47                  <?php endif;
     48                endif;?>
     49                <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
     50                  <span class="carousel-control-prev-icon" aria-hidden="true"><i class="fas fa-chevron-left"></i></span>
     51                    <span class="screen-reader-text"><?php esc_html_e( 'Prev','lz-interior-decor' );?></span>
     52                </a>
     53                <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
     54                    <span class="carousel-control-next-icon" aria-hidden="true"><i class="fas fa-chevron-right"></i></span>
     55                    <span class="screen-reader-text"><?php esc_html_e( 'Next','lz-interior-decor' );?></span>
     56                </a>
     57            </div> 
     58            <div class="clearfix"></div>
     59        </section>
     60    <?php }?>
    5961
    6062    <?php do_action('lz_interior_decor_below_slider'); ?>
  • lz-interior-decor/0.5.3/readme.txt

    r174073r178384 
    55Tested up to: 6.0
    66Requires PHP: 7.2
    7 Stable tag: 0.5.2
     7Stable tag: 0.5.3
    88License: GNU General Public License v3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    212212  - Added inner pages code.
    213213  - Updated pot file.
     214
     215= 0.5.3 =
     216    - Added show/hide slider option.
     217  - Added Copyright Top Bottom Padding option.
     218  - Changed footer style.
     219  - Updated pot file.
  • lz-interior-decor/0.5.3/style.css

    r174073r178384 
    77Tested up to: 6.0
    88Requires PHP: 7.2
    9 Version: 0.5.2
     9Version: 0.5.3
    1010License: GNU General Public License v3 or later
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    11061106}
    11071107.back-to-top:focus {
    1108     outline: none;
    11091108    background: #000;
    11101109    color: #fff;
     
    17861785/*----------- Footer --------------*/
    17871786#colophon {
    1788     background-color: #191919;
     1787    background-color: #2e2e2e;
    17891788}
    17901789.site-footer {
     
    18181817}
    18191818.site-footer h3.widget-title {
    1820     margin: 10px 0;
    1821     font-size: 20px;
    1822     letter-spacing: 1px;
     1819  margin: 10px 0;
     1820  font-size: 25px;
     1821  letter-spacing: 1px;
     1822  text-transform: capitalize;
     1823  font-weight: 600;
    18231824}
    18241825.site-footer h3.widget-title a{
     
    18351836}
    18361837.site-footer caption{
    1837     color:#fff;
     1838    color: #989898;
    18381839}
    18391840/* Site info */
     
    18521853.copyright {
    18531854    padding: 15px 0px;
    1854     background: #7854c0;
     1855    background: #282828;
    18551856}
    18561857
     
    26872688        font-size: 16px;
    26882689        background: #2b2b2b;
    2689         color: #fff;
     2690    color: #989898;
    26902691    }
    26912692    .site-footer a {
    2692         color: #fff;
     2693        color: #989898;
    26932694    }
    26942695
Note: See TracChangeset for help on using the changeset viewer.