Make WordPress Themes

Changeset 195975

Timestamp:
07/05/2023 08:49:16 AM (2 years ago)
Author:
themedropbox
Message:

New version of VW Restaurant Lite - 2.0.7

Location:
vw-restaurant-lite/2.0.7
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • vw-restaurant-lite/2.0.7/inc/custom-header.php

    r139602 r195975  
    3838            background-image:url('".esc_url(get_header_image())."');
    3939            background-position: center top;
     40            background-size: cover;
    4041        }";
    4142        wp_add_inline_style( 'vw-restaurant-lite-basic-style', $custom_css );
  • vw-restaurant-lite/2.0.7/inc/customizer.php

    r195163 r195975  
    6161
    6262  // Header Background color
    63 
    6463  $wp_customize->add_setting('vw_restaurant_lite_header_background_color', array(
    6564    'default'           => '',
     
    7069    'section'  => 'vw_restaurant_lite_topbar_icon',
    7170  )));
     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  ));
    7293
    7394  $wp_customize->add_setting( 'vw_restaurant_lite_topbar_hide_show',array(
     
    18451866
    18461867  $wp_customize->add_setting('vw_restaurant_lite_grid_category_icon',array(
    1847     'default' => 'fas fa-calendar-alt',
     1868    'default' => 'fas fa-folder-open',
    18481869    'sanitize_callback' => 'sanitize_text_field'
    18491870  ));
     
    18661887  'section' => 'vw_restaurant_lite_grid_layout_settings'
    18671888  )));
     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  ) );
    18681908
    18691909   // other settings
  • vw-restaurant-lite/2.0.7/inline-style.php

    r195163 r195975  
    805805        $vw_restaurant_lite_custom_css .='}';
    806806    }
     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  
    566566msgid 'Grid Layout'
    567567msgstr ""
     568
     569#: inc/customizer.php:1373
     570msgid 'Grid Layout Settings'
     571msgstr ""
     572
     573#: inc/customizer.php:77
     574msgid "Grid meta sepaerator"
     575msgstr ""
     576
     577#: inc/customizer.php:77
     578msgid "Grid excerpt length"
     579msgstr ""
    568580
    569581#: inc/customizer.php:92
  • vw-restaurant-lite/2.0.7/readme.txt

    r195385 r195975  
    55Tested up to: 6.2
    66Requires PHP: 7.2
    7 Stable tag: 2.0.6
     7Stable tag: 2.0.7
    88License: GPLv3.0 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    575575  -- Resolved custom.js error.
    576576
     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
    577584== Resources ==
    578585
  • vw-restaurant-lite/2.0.7/style.css

    r195385 r195975  
    88Tested up to: 6.2
    99Requires PHP: 7.2
    10 Version: 2.0.6
     10Version: 2.0.7
    1111License: GPLv3.0 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    20922092/*------------Responsive menu-------------*/
    20932093@media screen and (max-width:720px) {
     2094  #sidebar h3, #sidebar .wp-block-search .wp-block-search__label{
     2095    margin: 0px auto 10px auto;
     2096  }
    20942097  .header .logo{
    20952098    padding: 15px;
  • vw-restaurant-lite/2.0.7/template-parts/grid-layout.php

    r190865 r195975  
    3131      <div class="entry-content">
    3232        <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','') ); ?>
    3434        </p>
    3535      </div>
Note: See TracChangeset for help on using the changeset viewer.