Changeset 178384
- Timestamp:
- 10/27/2022 07:07:43 AM (3 years ago)
- Location:
- lz-interior-decor/0.5.3
- Files:
- 8 edited
- 1 copied
- . (copied) (copied from lz-interior-decor/0.5.2)
- functions.php (modified) (1 diff)
- header.php (modified) (1 diff)
- inc/customizer.php (modified) (2 diffs)
- languages/lz-interior-decor.pot (modified) (1 diff)
- lz-custom-style.php (modified) (1 diff)
- page-template/custom-home-page.php (modified) (1 diff)
- readme.txt (modified) (2 diffs)
- style.css (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
lz-interior-decor/0.5.3/functions.php
r174073 r178384 276 276 277 277 /* Breadcrumb Begin */ 278 function utsav_event_planner_breadcrumb() {278 function lz_interior_decor_breadcrumb() { 279 279 if (!is_home()) { 280 280 echo '<a href="'; lz-interior-decor/0.5.3/header.php
r174073 r178384 134 134 <div class="theme-breadcrumb py-2"> 135 135 <div class="container"> 136 <?php utsav_event_planner_breadcrumb();?>136 <?php lz_interior_decor_breadcrumb();?> 137 137 </div> 138 138 </div> lz-interior-decor/0.5.3/inc/customizer.php
r169921 r178384 228 228 ) ); 229 229 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 230 240 for ( $count = 1; $count <= 4; $count++ ) { 231 241 $wp_customize->add_setting( 'lz_interior_decor_slider' . $count, array( … … 357 367 'setting' => 'lz_interior_decor_footer_copy', 358 368 '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', 359 379 )); 360 380 lz-interior-decor/0.5.3/languages/lz-interior-decor.pot
r174073 r178384 441 441 442 442 #: inc/customizer.php:236 443 msgid 'Show / Hide Slider' 444 msgstr "" 445 446 #: inc/customizer.php:246 443 447 msgid 'Select Slide Image Page' 444 448 msgstr "" 445 449 446 #: inc/customizer.php:2 44450 #: inc/customizer.php:254 447 451 msgid 'Our Skills' 448 452 msgstr "" 449 453 450 #: inc/customizer.php:2 45454 #: inc/customizer.php:255 451 455 msgid 'This section will appear below the slider.' 452 456 msgstr "" 453 457 454 #: inc/customizer.php:254 458 #: inc/customizer.php:264 459 #: inc/customizer.php:314 460 msgid 'Section Title' 461 msgstr "" 462 463 #: inc/customizer.php:288 464 #: inc/customizer.php:338 465 msgid 'Select Category to display Latest Post' 466 msgstr "" 467 468 #: inc/customizer.php:298 469 msgid 'Section Top Bottom Padding' 470 msgstr "" 471 455 472 #: inc/customizer.php:304 456 msgid 'Section Title'457 msgstr ""458 459 #: inc/customizer.php:278460 #: inc/customizer.php:328461 msgid 'Select Category to display Latest Post'462 msgstr ""463 464 #: inc/customizer.php:288465 msgid 'Section Top Bottom Padding'466 msgstr ""467 468 #: inc/customizer.php:294469 473 msgid 'Our Design' 470 474 msgstr "" 471 475 472 #: inc/customizer.php: 295476 #: inc/customizer.php:305 473 477 msgid 'This section will appear below the our skills.' 474 478 msgstr "" 475 479 476 #: inc/customizer.php:3 35477 #: inc/customizer.php:3 55480 #: inc/customizer.php:345 481 #: inc/customizer.php:365 478 482 msgid 'Footer Text' 479 483 msgstr "" 480 484 481 #: inc/customizer.php:3 46485 #: inc/customizer.php:356 482 486 msgid 'Show / Hide Back to Top' 483 487 msgstr "" 484 488 485 #: inc/customizer.php:468 489 #: inc/customizer.php:377 490 msgid 'Copyright Top Bottom Padding' 491 msgstr "" 492 493 #: inc/customizer.php:488 486 494 msgid 'Interior Pro' 487 495 msgstr "" 488 496 489 #: inc/customizer.php:4 69497 #: inc/customizer.php:489 490 498 msgid 'Go Pro' 491 499 msgstr "" lz-interior-decor/0.5.3/lz-custom-style.php
r174073 r178384 40 40 } 41 41 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 .=' }'; 47 47 } 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
r142158 r178384 9 9 <?php do_action( 'lz_interior_decor_above_slider' ); ?> 10 10 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 }?> 59 61 60 62 <?php do_action('lz_interior_decor_below_slider'); ?> lz-interior-decor/0.5.3/readme.txt
r174073 r178384 5 5 Tested up to: 6.0 6 6 Requires PHP: 7.2 7 Stable tag: 0.5. 27 Stable tag: 0.5.3 8 8 License: GNU General Public License v3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 212 212 - Added inner pages code. 213 213 - 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
r174073 r178384 7 7 Tested up to: 6.0 8 8 Requires PHP: 7.2 9 Version: 0.5. 29 Version: 0.5.3 10 10 License: GNU General Public License v3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 1106 1106 } 1107 1107 .back-to-top:focus { 1108 outline: none;1109 1108 background: #000; 1110 1109 color: #fff; … … 1786 1785 /*----------- Footer --------------*/ 1787 1786 #colophon { 1788 background-color: # 191919;1787 background-color: #2e2e2e; 1789 1788 } 1790 1789 .site-footer { … … 1818 1817 } 1819 1818 .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; 1823 1824 } 1824 1825 .site-footer h3.widget-title a{ … … 1835 1836 } 1836 1837 .site-footer caption{ 1837 color: #fff;1838 color: #989898; 1838 1839 } 1839 1840 /* Site info */ … … 1852 1853 .copyright { 1853 1854 padding: 15px 0px; 1854 background: # 7854c0;1855 background: #282828; 1855 1856 } 1856 1857 … … 2687 2688 font-size: 16px; 2688 2689 background: #2b2b2b; 2689 color: #fff;2690 color: #989898; 2690 2691 } 2691 2692 .site-footer a { 2692 color: # fff;2693 color: #989898; 2693 2694 } 2694 2695
Note: See TracChangeset for help on using the changeset viewer.