Make WordPress Themes

Changeset 294975


Ignore:
Timestamp:
10/27/2025 09:33:44 AM (12 months ago)
Author:
themedropbox
Message:

New version of Food Restaurant Elementor - 0.2

Location:
food-restaurant-elementor/0.2
Files:
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • food-restaurant-elementor/0.2/archive.php

    r233538 r294975  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area">
     133          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134134            <?php
    135135              dynamic_sidebar('sidebar-2');
    … …  
    166166        </div>
    167167        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area">
     168          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169169            <?php
    170170              dynamic_sidebar('sidebar-2');
    … …  
    173173        </div>
    174174        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three">
     175          <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176176            <?php
    177177              dynamic_sidebar('sidebar-3');
  • food-restaurant-elementor/0.2/assets/js/script.js

    r261304 r294975  
    232232};
    233233food_restaurant_elementor_progressBar.init();
     234
     235/* ===============================================
     236   sticky copyright
     237============================================= */
     238
     239window.addEventListener('scroll', function() {
     240  var food_restaurant_elementor_footer = document.querySelector('.sticky-copyright');
     241  if (!food_restaurant_elementor_footer) return;
     242
     243  var food_restaurant_elementor_scrollTop = window.scrollY || document.documentElement.food_restaurant_elementor_scrollTop;
     244
     245  if (food_restaurant_elementor_scrollTop >= 100) {
     246    food_restaurant_elementor_footer.classList.add('active-sticky');
     247  }
     248});
  • food-restaurant-elementor/0.2/footer.php

    r270410 r294975  
    3737          $food_restaurant_elementor_col_class = $food_restaurant_elementor_active_sidebars > 0 ? 'col-lg-' . (12 / $food_restaurant_elementor_active_sidebars) . ' col-md-6 col-sm-12' : 'col-lg-3 col-md-6 col-sm-12';
    3838        ?>
    39         <div class="row pt-2">
     39        <div class="row pt-2 <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_footer_animation', true) ? 'zoomInUp wow' : '' ); ?>">
    4040          <?php for ( $food_restaurant_elementor_i = 1; $food_restaurant_elementor_i <= 4; $food_restaurant_elementor_i++ ) : ?>
    4141            <div class="footer-area <?php echo esc_attr($food_restaurant_elementor_col_class); ?>">
    … …  
    8181  <?php endif; ?>
    8282  <?php if( get_theme_mod( 'food_restaurant_elementor_show_footer_copyright',true)) : ?>
    83     <div class="footer-copyright">
     83    <div class="footer-copyright <?php if( get_theme_mod( 'food_restaurant_elementor_sticky_copyright_enable','off') == 'on') { ?>sticky-copyright<?php } else { ?>close-sticky <?php } ?>">
    8484      <div class="container">
    8585        <div class="row pt-2">
  • food-restaurant-elementor/0.2/functions.php

    r288885 r294975  
    426426define('FOOD_RESTAURANT_ELEMENTOR_LIVE_DEMO',__('https://preview.wpelemento.com/food-restaurant-elementor/','food-restaurant-elementor'));
    427427define('FOOD_RESTAURANT_ELEMENTOR_THEME_BUNDLE',__('https://www.wpelemento.com/products/wordpress-theme-bundle','food-restaurant-elementor'));
     428
     429add_filter('wpelemento_importer_plugins_list', function ($plugins) {
     430    $desired_order = ['woocommerce', 'yith-woocommerce-wishlist' , 'woolentor-addons'];
     431    foreach (['all', 'install', 'update', 'activate'] as $section) {
     432        if (!isset($plugins[$section])) continue;
     433
     434        $reordered = [];
     435
     436        foreach ($desired_order as $slug) {
     437            if (isset($plugins[$section][$slug])) {
     438                $reordered[$slug] = $plugins[$section][$slug];
     439                unset($plugins[$section][$slug]);
     440            }
     441        }
     442        $plugins[$section] = $reordered + $plugins[$section];
     443    }
     444
     445    return $plugins;
     446});
    428447}
    429448add_action('after_setup_theme', 'food_restaurant_elementor_enqueue_setting');
  • food-restaurant-elementor/0.2/includes/customizer.php

    r281200 r294975  
    737737                'type'        => 'custom',
    738738                'tab'      => 'general',
     739                'settings'    => 'food_restaurant_elementor_enable_sidebar_animation_heading',
     740                'section'     => 'food_restaurant_elementor_additional_setting',
     741                        'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Animation', 'food-restaurant-elementor' ) . '</h3>',
     742                'priority'    => 10,
     743        ] );
     744
     745        Kirki::add_field( 'theme_config_id', [
     746                'type'        => 'toggle',
     747                'tab'      => 'general',
     748                'settings'    => 'food_restaurant_elementor_enable_sidebar_animation',
     749                'label'       => esc_html__( 'Enable or Disable Sidebar Animation', 'food-restaurant-elementor' ),
     750                'section'     => 'food_restaurant_elementor_additional_setting',
     751                'default'     => true,
     752                'priority'    => 10,
     753        ] );
     754
     755        Kirki::add_field( 'theme_config_id', [
     756                'type'        => 'toggle',
     757                'tab'      => 'general',
     758                'settings'    => 'food_restaurant_elementor_enable_footer_animation',
     759                'label'       => esc_html__( 'Enable or Disable Footer Animation', 'food-restaurant-elementor' ),
     760                'section'     => 'food_restaurant_elementor_additional_setting',
     761                'default'     => true,
     762                'priority'    => 10,
     763        ] );
     764
     765        Kirki::add_field( 'theme_config_id', [
     766                'type'        => 'custom',
     767                'tab'      => 'general',
    739768                'settings'    => 'food_restaurant_elementor_scroll_alignment_heading',
    740769                'section'     => 'food_restaurant_elementor_additional_setting',
    … …  
    13641393        ] );
    13651394
     1395        Kirki::add_field( 'theme_config_id', [
     1396                'type'        => 'custom',
     1397                'settings'    => 'food_restaurant_elementor_footer_sticky_heading',
     1398                'section'     => 'food_restaurant_elementor_footer_section',
     1399                        'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Sticky Copyright', 'food-restaurant-elementor' ) . '</h3>',
     1400                'priority'    => 10,
     1401        ] );
     1402        Kirki::add_field( 'theme_config_id', [
     1403                'type'        => 'switch',
     1404                'settings'    => 'food_restaurant_elementor_sticky_copyright_enable',
     1405                'label'       => esc_html__( ' Sticky Copyright Section Enable / Disable', 'food-restaurant-elementor' ),
     1406                'section'     => 'food_restaurant_elementor_footer_section',
     1407                'default'     => '0',
     1408                'priority'    => 10,
     1409                'choices'     => [
     1410                        'on'  => esc_html__( 'Enable', 'food-restaurant-elementor' ),
     1411                        'off' => esc_html__( 'Disable', 'food-restaurant-elementor' ),
     1412                ],
     1413        ] );
     1414
    13661415    Kirki::add_field( 'theme_config_id', [
    13671416                'type'        => 'custom',
  • food-restaurant-elementor/0.2/index.php

    r233538 r294975  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area">
     133          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134134            <?php
    135135              dynamic_sidebar('sidebar-2');
    … …  
    166166        </div>
    167167        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area">
     168          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169169            <?php
    170170              dynamic_sidebar('sidebar-2');
    … …  
    173173        </div>
    174174        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three">
     175          <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176176            <?php
    177177              dynamic_sidebar('sidebar-3');
  • food-restaurant-elementor/0.2/page.php

    r233538 r294975  
    5151        <div class="row">
    5252          <div class="col-lg-4 col-md-4">
    53             <div class="sidebar-area">
     53            <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    5454              <?php
    5555                dynamic_sidebar('sidebar-2');
    … …  
    9797          </div>
    9898          <div class="col-lg-4 col-md-4">
    99             <div class="sidebar-area">
     99            <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    100100              <?php
    101101                dynamic_sidebar('sidebar-2');
  • food-restaurant-elementor/0.2/readme.txt

    r291969 r294975  
    22Contributors: wpelemento
    33Requires at least: 5.0
    4 Stable tag: 0.1.9
     4Stable tag: 0.2
    55Requires PHP: 5.6
    66Tested up to: 6.8
    … …  
    8585== Changelog ==
    8686
     87= October-25-2025 :: 0.2
     88
     89* Added animation on footer and sidebar.
     90* Added sticky copyright.
     91* Resolve product demo import issue.
    8792
    8893= October-1-2025 :: 0.1.9
  • food-restaurant-elementor/0.2/search.php

    r233538 r294975  
    131131        </div>
    132132        <div class="col-lg-4 col-md-4">
    133           <div class="sidebar-area">
     133          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    134134            <?php
    135135              dynamic_sidebar('sidebar-2');
    … …  
    166166        </div>
    167167        <div class="col-lg-3 col-md-3">
    168           <div class="sidebar-area">
     168          <div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    169169            <?php
    170170              dynamic_sidebar('sidebar-2');
    … …  
    173173        </div>
    174174        <div class="col-lg-3 col-md-3">
    175           <div class="sidebar-area sidebar-three">
     175          <div class="sidebar-area sidebar-three <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    176176            <?php
    177177              dynamic_sidebar('sidebar-3');
  • food-restaurant-elementor/0.2/sidebar.php

    r239399 r294975  
    99?>
    1010
    11 <div class="sidebar-area">
     11<div class="sidebar-area <?php echo esc_attr( get_theme_mod('food_restaurant_elementor_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
    1212  <?php if ( ! dynamic_sidebar( 'food-restaurant-elementor-sidebar' ) ) : ?>
    1313    <div role="complementary" aria-label="<?php echo esc_attr__( 'sidebar1', 'food-restaurant-elementor' ); ?>" id="Search" class="sidebar-widget">
  • food-restaurant-elementor/0.2/style.css

    r291969 r294975  
    55Theme URI: https://www.wpelemento.com/products/free-food-wordpress-theme
    66Author URI: https://www.wpelemento.com/
    7 Version: 0.1.9
     7Version: 0.2
    88Requires PHP: 5.6
    99Tested up to: 6.8
    … …  
    20032003  max-width    : 100vw;
    20042004}
     2005
     2006/* Sticky Copyright */
     2007
     2008.sticky-copyright.footer-copyright{
     2009  position: fixed;
     2010  bottom:0;
     2011  left:0;
     2012  width: 100%;
     2013  z-index: 999;
     2014  transition: bottom 0.4s;
     2015  box-shadow: 0px 0px 8px #000000;
     2016}
     2017.close-sticky {
     2018  position: static;
     2019}
Note: See TracChangeset for help on using the changeset viewer.