Changeset 195975
- Timestamp:
- 07/05/2023 08:49:16 AM (2 years ago)
- Location:
- vw-restaurant-lite/2.0.7
- Files:
-
- 7 edited
- 1 copied
- . (copied) (copied from vw-restaurant-lite/2.0.6)
- inc/custom-header.php (modified) (1 diff)
- inc/customizer.php (modified) (4 diffs)
- inline-style.php (modified) (1 diff)
- languages/vw-restaurant-lite.pot (modified) (1 diff)
- readme.txt (modified) (2 diffs)
- style.css (modified) (2 diffs)
- template-parts/grid-layout.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vw-restaurant-lite/2.0.7/inc/custom-header.php
r139602 r195975 38 38 background-image:url('".esc_url(get_header_image())."'); 39 39 background-position: center top; 40 background-size: cover; 40 41 }"; 41 42 wp_add_inline_style( 'vw-restaurant-lite-basic-style', $custom_css ); -
vw-restaurant-lite/2.0.7/inc/customizer.php
r195163 r195975 61 61 62 62 // Header Background color 63 64 63 $wp_customize->add_setting('vw_restaurant_lite_header_background_color', array( 65 64 'default' => '', … … 70 69 'section' => 'vw_restaurant_lite_topbar_icon', 71 70 ))); 71 72 $wp_customize->add_setting('vw_restaurant_lite_header_img_position',array( 73 'default' => 'center top', 74 'transport' => 'refresh', 75 'sanitize_callback' => 'vw_restaurant_lite_sanitize_choices' 76 )); 77 $wp_customize->add_control('vw_restaurant_lite_header_img_position',array( 78 'type' => 'select', 79 'label' => __('Header Image Position','vw-restaurant-lite'), 80 'section' => 'vw_restaurant_lite_topbar_icon', 81 'choices' => array( 82 'left top' => esc_html__( 'Top Left', 'vw-restaurant-lite' ), 83 'center top' => esc_html__( 'Top', 'vw-restaurant-lite' ), 84 'right top' => esc_html__( 'Top Right', 'vw-restaurant-lite' ), 85 'left center' => esc_html__( 'Left', 'vw-restaurant-lite' ), 86 'center center' => esc_html__( 'Center', 'vw-restaurant-lite' ), 87 'right center' => esc_html__( 'Right', 'vw-restaurant-lite' ), 88 'left bottom' => esc_html__( 'Bottom Left', 'vw-restaurant-lite' ), 89 'center bottom' => esc_html__( 'Bottom', 'vw-restaurant-lite' ), 90 'right bottom' => esc_html__( 'Bottom Right', 'vw-restaurant-lite' ), 91 ), 92 )); 72 93 73 94 $wp_customize->add_setting( 'vw_restaurant_lite_topbar_hide_show',array( … … 1845 1866 1846 1867 $wp_customize->add_setting('vw_restaurant_lite_grid_category_icon',array( 1847 'default' => 'fas fa- calendar-alt',1868 'default' => 'fas fa-folder-open', 1848 1869 'sanitize_callback' => 'sanitize_text_field' 1849 1870 )); … … 1866 1887 'section' => 'vw_restaurant_lite_grid_layout_settings' 1867 1888 ))); 1889 1890 $wp_customize->add_setting( 'vw_restaurant_lite_grid_excerpt_number', array( 1891 'default' => 30, 1892 'type' => 'theme_mod', 1893 'transport' => 'refresh', 1894 'sanitize_callback' => 'vw_restaurant_lite_sanitize_number_range', 1895 'sanitize_js_callback' => 'absint', 1896 ) ); 1897 $wp_customize->add_control( 'vw_restaurant_lite_grid_excerpt_number', array( 1898 'label' => esc_html__( 'Excerpt length','vw-restaurant-lite' ), 1899 'section' => 'vw_restaurant_lite_grid_layout_settings', 1900 'type' => 'range', 1901 'settings' => 'vw_restaurant_lite_grid_excerpt_number', 1902 'input_attrs' => array( 1903 'step' => 5, 1904 'min' => 0, 1905 'max' => 50, 1906 ), 1907 ) ); 1868 1908 1869 1909 // other settings -
vw-restaurant-lite/2.0.7/inline-style.php
r195163 r195975 805 805 $vw_restaurant_lite_custom_css .='}'; 806 806 } 807 808 $vw_restaurant_lite_header_img_position = get_theme_mod('vw_restaurant_lite_header_img_position','center top'); 809 if($vw_restaurant_lite_header_img_position != false){ 810 $vw_restaurant_lite_custom_css .='.header{'; 811 $vw_restaurant_lite_custom_css .='background-position: '.esc_attr($vw_restaurant_lite_header_img_position).'!important;'; 812 $vw_restaurant_lite_custom_css .='}'; 813 } -
vw-restaurant-lite/2.0.7/languages/vw-restaurant-lite.pot
r195163 r195975 566 566 msgid 'Grid Layout' 567 567 msgstr "" 568 569 #: inc/customizer.php:1373 570 msgid 'Grid Layout Settings' 571 msgstr "" 572 573 #: inc/customizer.php:77 574 msgid "Grid meta sepaerator" 575 msgstr "" 576 577 #: inc/customizer.php:77 578 msgid "Grid excerpt length" 579 msgstr "" 568 580 569 581 #: inc/customizer.php:92 -
vw-restaurant-lite/2.0.7/readme.txt
r195385 r195975 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.0. 67 Stable tag: 2.0.7 8 8 License: GPLv3.0 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 575 575 -- Resolved custom.js error. 576 576 577 = 2.0.7 = 578 -- Resolved css error of single post sidebar in responsive media. 579 -- Resolve header image issue. 580 -- Added header image background position option in customizer. 581 -- Added excerpt length for grid layout in customizer. 582 -- Update pot file. 583 577 584 == Resources == 578 585 -
vw-restaurant-lite/2.0.7/style.css
r195385 r195975 8 8 Tested up to: 6.2 9 9 Requires PHP: 7.2 10 Version: 2.0. 610 Version: 2.0.7 11 11 License: GPLv3.0 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 2092 2092 /*------------Responsive menu-------------*/ 2093 2093 @media screen and (max-width:720px) { 2094 #sidebar h3, #sidebar .wp-block-search .wp-block-search__label{ 2095 margin: 0px auto 10px auto; 2096 } 2094 2097 .header .logo{ 2095 2098 padding: 15px; -
vw-restaurant-lite/2.0.7/template-parts/grid-layout.php
r190865 r195975 31 31 <div class="entry-content"> 32 32 <p> 33 <?php $vw_restaurant_lite_excerpt = get_the_excerpt(); echo esc_html( vw_restaurant_lite_string_limit_words( $vw_restaurant_lite_excerpt, esc_attr(get_theme_mod('vw_restaurant_lite_ related_posts_excerpt_number','30')))); ?> <?php echo esc_html( get_theme_mod('vw_restaurant_lite_excerpt_suffix','') ); ?>33 <?php $vw_restaurant_lite_excerpt = get_the_excerpt(); echo esc_html( vw_restaurant_lite_string_limit_words( $vw_restaurant_lite_excerpt, esc_attr(get_theme_mod('vw_restaurant_lite_grid_excerpt_number','30')))); ?> <?php echo esc_html( get_theme_mod('vw_restaurant_lite_excerpt_suffix','') ); ?> 34 34 </p> 35 35 </div>
Note: See TracChangeset for help on using the changeset viewer.