Plugin Directory

Changeset 3189347


Ignore:
Timestamp:
11/15/2024 08:57:58 AM (15 months ago)
Author:
nicheaddons
Message:

1.5.9

  • Security updated
Location:
restaurant-cafe-addon-for-elementor
Files:
423 added
14 edited

Legend:

Unmodified
Added
Removed
  • restaurant-cafe-addon-for-elementor/trunk/elementor/js/narestaurant-elementor.js

    r3170084 r3189347  
    324324    } );
    325325
     326    elementorFrontend.hooks.addAction( 'frontend/element_ready/narestaurant_basic_image_compare.default', function($scope, $) {
     327        let target_el   = $scope.find(".narep-compare");
     328        let beforeUrl = target_el.data('before-url');
     329        let beforeTitle = target_el.data('before-title');
     330        let afterUrl = target_el.data('after-url');
     331        let afterTitle = target_el.data('after-title');
     332        let showLabels = target_el.data('show-labels');
     333        let startingPosition = target_el.data('starting-position');
     334        let compareStyle = target_el.data('compare-style');
     335
     336        new juxtapose.JXSlider(target_el[0], [
     337            {
     338                src: beforeUrl,
     339                label: beforeTitle
     340            },
     341            {
     342                src: afterUrl,
     343                label: afterTitle
     344            }
     345        ], {
     346            animate: true,
     347            showLabels: showLabels,
     348            showCredits: false,
     349            startingPosition: startingPosition + "%",
     350            makeResponsive: true,
     351            mode: compareStyle
     352        });
     353    } );   
     354
    326355    //Restaurant & Cafe Addon for Elementor Tab
    327356    elementorFrontend.hooks.addAction( 'frontend/element_ready/narestaurant_unique_tab.default', function($scope, $){
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-about-us.php

    r2528789 r3189347  
    784784        $aboutus_btn_link_attr = !empty( $aboutus_btn_link ) ?  $aboutus_btn_link_external.' '.$aboutus_btn_link_nofollow : '';
    785785        $btn_icon = !empty( $settings['btn_icon'] ) ? $settings['btn_icon'] : '';
    786     $btn_icon = $btn_icon ? ' <i class="'.esc_attr($btn_icon).'"></i>' : '';
     786        $btn_icon = $btn_icon ? ' <i class="'.esc_attr($btn_icon).'"></i>' : '';
    787787        $listItems_groups = !empty( $settings['listItems_groups'] ) ? $settings['listItems_groups'] : '';
    788788        $toggle_align = !empty( $settings['toggle_align'] ) ? $settings['toggle_align'] : '';
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-blog.php

    r2528789 r3189347  
    13461346
    13471347        // Carousel Data's
    1348             $draggable = $draggable ? ' data-draggable="true"' : ' data-draggable="false"';
    1349             $freeScroll = $freeScroll ? ' data-freescroll="true"' : '';
    1350             $freeScrollFriction = $freeScrollFriction ? ' data-freescrollfriction="'.$freeScrollFriction.'"' : '';
    1351             $wrapAround = $wrapAround ? ' data-wraparound="true"' : ' data-wraparound="false"';
    1352             $groupCells = $groupCells ? ' data-groupcells="'.$groupCells.'"' : '';
    1353             $autoPlay = $autoPlay ? ' data-autoplay="'.$autoPlay.'"' : '';
    1354             $pauseAutoPlayOnHover = $pauseAutoPlayOnHover ? ' data-pauseautoplayonhover="true"' : '';
    1355             $adaptiveHeight = $adaptiveHeight ? ' data-adaptiveheight="true"' : '';
    1356             $dragThreshold = $dragThreshold ? ' data-dragthreshold="'.$dragThreshold.'"' : '';
    1357             $selectedAttraction = $selectedAttraction ? ' data-selectedattraction="'.$selectedAttraction.'"' : '';
    1358             $friction = $friction ? ' data-friction="'.$friction : '';
    1359             $initialIndex = $initialIndex ? ' data-initialindex="'.$initialIndex.'"' : '';
    1360             $accessibility = $accessibility ? ' data-accessibility="true"' : ' data-accessibility="false"';
    1361             $setGallerySize = $setGallerySize ? ' data-setgallerysize="true"' : ' data-setgallerysize="false"';
    1362             $resize = $resize ? ' data-resize="true"' : ' data-resize="false"';
    1363             $cellAlign = $cellAlign ? ' data-cellalign="'.$cellAlign.'"' : '';
    1364             $contain = $contain ? ' data-contain="true"' : '';
    1365             $rightToLeft = $rightToLeft ? ' data-righttoleft="true"' : '';
    1366             $prevNextButtons = $prevNextButtons ? ' data-prevnextbuttons="true"' : ' data-prevnextbuttons="false"';
    1367             $pageDots = $pageDots ? ' data-pagedots="true"' : ' data-pagedots="false"';
     1348            $draggable = $draggable ? 'true' : 'false';
     1349            $freeScroll = $freeScroll ? 'true' : '';
     1350            $freeScrollFriction = $freeScrollFriction ? $freeScrollFriction: '';
     1351            $wrapAround = $wrapAround ? 'true' : 'false';
     1352            $groupCells = $groupCells ? $groupCells : '';
     1353            $autoPlay = $autoPlay ? $autoPlay : '';
     1354            $pauseAutoPlayOnHover = $pauseAutoPlayOnHover ? 'true' : '';
     1355            $adaptiveHeight = $adaptiveHeight ? 'true' : '';
     1356            $dragThreshold = $dragThreshold ? $dragThreshold : '';
     1357            $selectedAttraction = $selectedAttraction ? $selectedAttraction : '';
     1358            $friction = $friction ? $friction : '';
     1359            $initialIndex = $initialIndex ? $initialIndex : '';
     1360            $accessibility = $accessibility ? 'true' : 'false';
     1361            $setGallerySize = $setGallerySize ? 'true' : 'false';
     1362            $resize = $resize ? 'true' : 'false';
     1363            $cellAlign = $cellAlign ? $cellAlign : '';
     1364            $contain = $contain ? 'true' : '';
     1365            $rightToLeft = $rightToLeft ? 'true' : '';
     1366            $prevNextButtons = $prevNextButtons ? 'true' : 'false';
     1367            $pageDots = $pageDots ? 'true' : 'false';
    13681368
    13691369        $blog_col = $blog_col ? $blog_col : '3';
     
    14081408            $blog_show_id = str_replace(array( '[', ']' ), '', $blog_show_id);
    14091409            $blog_show_id = str_replace(array( '"', '"' ), '', $blog_show_id);
    1410       $blog_show_id = explode(',',$blog_show_id);
     1410            $blog_show_id = explode(',',$blog_show_id);
    14111411    } else {
    1412       $blog_show_id = '';
     1412            $blog_show_id = '';
    14131413    }
    14141414
     
    14211421          'orderby' => $blog_orderby,
    14221422          'order' => $blog_order,
    1423       'post__in' => $blog_show_id,
     1423            'post__in' => $blog_show_id,
    14241424        );
    14251425
     
    14281428        <div class="narep-blog-wrap<?php echo esc_attr($style_class); ?>">
    14291429            <?php if ($blog_style === 'three') { ?>
    1430             <div class="flick-carousel" <?php echo $cellAlign . $draggable . $freeScroll . $freeScrollFriction . $wrapAround . $groupCells . $autoPlay . $pauseAutoPlayOnHover . $adaptiveHeight . $dragThreshold . $selectedAttraction . $friction . $initialIndex . $accessibility . $setGallerySize . $resize . $contain . $rightToLeft . $prevNextButtons . $pageDots; ?>>
     1430                <div class="flick-carousel"
     1431                    <?php if ($cellAlign) : ?>data-cellalign="<?php echo esc_attr($cellAlign); ?>"<?php endif; ?>
     1432                    data-draggable="<?php echo esc_attr($draggable); ?>"
     1433                    <?php if ($freeScroll) : ?>data-freescroll="<?php echo esc_attr($freeScroll); ?>"<?php endif; ?>
     1434                    <?php if ($freeScrollFriction) : ?>data-freescrollfriction="<?php echo esc_attr($freeScrollFriction); ?>"<?php endif; ?>
     1435                    data-wraparound="<?php echo esc_attr($wrapAround); ?>"
     1436                    <?php if ($groupCells) : ?>data-groupcells="<?php echo esc_attr($groupCells); ?>"<?php endif; ?>
     1437                    <?php if ($autoPlay) : ?>data-autoplay="<?php echo esc_attr($autoPlay); ?>"<?php endif; ?>
     1438                    <?php if ($pauseAutoPlayOnHover) : ?>data-pauseautoplayonhover="<?php echo esc_attr($pauseAutoPlayOnHover); ?>"<?php endif; ?>
     1439                    <?php if ($adaptiveHeight) : ?>data-adaptiveheight="<?php echo esc_attr($adaptiveHeight); ?>"<?php endif; ?>
     1440                    <?php if ($dragThreshold) : ?>data-dragthreshold="<?php echo esc_attr($dragThreshold); ?>"<?php endif; ?>
     1441                    <?php if ($selectedAttraction) : ?>data-selectedattraction="<?php echo esc_attr($selectedAttraction); ?>"<?php endif; ?>
     1442                    <?php if ($friction) : ?>data-friction="<?php echo esc_attr($friction); ?>"<?php endif; ?>
     1443                    <?php if ($initialIndex) : ?>data-initialindex="<?php echo esc_attr($initialIndex); ?>"<?php endif; ?>
     1444                    data-accessibility="<?php echo esc_attr($accessibility); ?>"
     1445                    data-setgallerysize="<?php echo esc_attr($setGallerySize); ?>"
     1446                    data-resize="<?php echo esc_attr($resize); ?>"
     1447                    <?php if ($contain) : ?>data-contain="<?php echo esc_attr($contain); ?>"<?php endif; ?>
     1448                    <?php if ($rightToLeft) : ?>data-righttoleft="<?php echo esc_attr($rightToLeft); ?>"<?php endif; ?>
     1449                    data-prevnextbuttons="<?php echo esc_attr($prevNextButtons); ?>"
     1450                    data-pagedots="<?php echo esc_attr($pageDots); ?>"
     1451                >
    14311452            <?php } else { ?>
    14321453            <div class="nich-row">
     
    14361457
    14371458            global $post;
    1438           $large_image =  wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'fullsize', false, '' );
    1439           $large_image = $large_image[0];
     1459            $large_image =  wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'fullsize', false, '' );
     1460            $large_image = $large_image[0];
    14401461            $cat_list = get_the_category();
    14411462
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-gallery.php

    r2528789 r3189347  
    979979                $link_image = $image_link ? '<a href="'.esc_url($image_link).'" '.$image_link_attr.'><img src="'.esc_url($image_url).'" alt="'.esc_attr($gallery_title).'"></a>' : '<img src="'.esc_url($image_url).'" alt="'.esc_attr($gallery_title).'">';
    980980
    981                 $max_height = $height ? ' style="max-height: '.$height.$unit.';"' : '';
     981                $max_height = $height ? ' style="max-height: '.esc_attr($height).esc_attr($unit).';"' : '';
    982982
    983983                $image = $image_url ? '<div class="narep-image'.esc_attr($popup_class).'"'.$max_height.'>'.$link_image.$icon_popup.'</div>' : '';
    984984
    985                 $category = $filter_cat ? ' data-category="'. str_replace(', ', " ", strtolower($filter_cat)) .'"' : '';
     985                $category = $filter_cat ? ' data-category="'. str_replace(', ', " ", strtolower(esc_attr($filter_cat))) .'"' : '';
    986986                $category_class = $filter_cat ? ' '.str_replace(', ', " ", strtolower($filter_cat)) : '';
    987987
    988               $output .= '<div class="masonry-item'.$category_class.' '.$gallery_col.'"'.$category.'>
    989                                         <div class="narep-gallery-item'.$hover_class.$style_class.'">';
     988              $output .= '<div class="masonry-item'.esc_attr($category_class.' '.$gallery_col).'"'.$category.'>
     989                                        <div class="narep-gallery-item'.esc_attr($hover_class.$style_class).'">';
    990990                                        if ($gallery_style === 'two') {$output .= '<div class="gallery-info-wrap">';}
    991991                                            $output .= $image.'
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-history.php

    r2528789 r3189347  
    893893                    $output .= '<div class="narep-history-item"><div class="history-info'.esc_attr($height_class).'"><span></span>'.$title.$content.$button.'</div><div class="history-image"><div class="history-image-wrap">'.$year.$history_image.'</div></div></div>';
    894894                } else {
    895                 $output .= '<div class="narep-history-item"><div class="history-info'.esc_attr($height_class).'"><span></span>'.$year.$title.$content.$button.'</div><div class="history-image">'.$history_image.'</div></div>';
     895                    $output .= '<div class="narep-history-item"><div class="history-info'.esc_attr($height_class).'"><span></span>'.$year.$title.$content.$button.'</div><div class="history-image">'.$history_image.'</div></div>';
    896896                }
    897897
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-image-compare.php

    r2479029 r3189347  
    268268    */
    269269    protected function render() {
    270         $settings = $this->get_settings_for_display();
    271         $compare_style = !empty( $settings['compare_style'] ) ? $settings['compare_style'] : [];
    272         $starting_position = !empty( $settings['starting_position'] ) ? $settings['starting_position'] : [];
    273         $need_title = !empty( $settings['need_title'] ) ? $settings['need_title'] : [];
    274 
    275         if ($need_title) {
    276             $title = 'true';
    277         } else {
    278             $title = 'false';
    279         }
    280 
    281         $before_image = !empty( $settings['before_image']['id'] ) ? $settings['before_image']['id'] : '';
    282         $before_url = wp_get_attachment_url( $before_image );
    283         $before_title = $settings['before_title'] ? $settings['before_title'] : '';
    284 
    285         $after_image = !empty( $settings['after_image']['id'] ) ? $settings['after_image']['id'] : '';
    286         $after_url = wp_get_attachment_url( $after_image );
    287         $after_title = $settings['after_title'] ? $settings['after_title'] : '';
    288 
    289         $compare_id = uniqid();
    290         $id = rand(999, 9999);
    291 
    292       $output = '<div class="narep-compare-wrap"><div class="narep-compare compare-'.esc_attr($compare_id).'-'.esc_attr($id).'"></div></div>';
    293 
    294         echo $output; ?>
    295 
    296         <script type="text/javascript">
    297 
    298         jQuery(document).ready(function($) {
    299 
    300             slider = new juxtapose.JXSlider('.compare-<?php echo esc_attr($compare_id); ?>-<?php echo esc_attr($id); ?>',
    301             [
    302             {
    303             src: '<?php echo esc_url($before_url); ?>',
    304             label: '<?php echo esc_attr($before_title); ?>',
    305             },
    306             {
    307             src: '<?php echo esc_url($after_url); ?>',
    308             label: '<?php echo esc_attr($after_title); ?>',
    309             }
    310             ],
    311             {
    312             animate: true,
    313             showLabels: <?php echo esc_attr($title); ?>,
    314             showCredits: false,
    315             startingPosition: "<?php echo esc_attr($starting_position); ?>%",
    316             makeResponsive: true,
    317             mode: "<?php echo esc_attr($compare_style); ?>",
    318             });
    319 
    320         });
    321       </script>
    322     <?php
     270        $settings = $this->get_settings_for_display();
     271        $compare_style = !empty($settings['compare_style']) ? $settings['compare_style'] : '';
     272        $starting_position = !empty($settings['starting_position']) ? $settings['starting_position'] : '';
     273        $need_title = !empty($settings['need_title']) ? $settings['need_title'] : '';
     274        $title = $need_title ? 'true' : 'false';
     275       
     276        $before_image = !empty($settings['before_image']['id']) ? $settings['before_image']['id'] : '';
     277        $before_url = wp_get_attachment_url($before_image);
     278        $before_title = $settings['before_title'] ? $settings['before_title'] : '';
     279       
     280        $after_image = !empty($settings['after_image']['id']) ? $settings['after_image']['id'] : '';
     281        $after_url = wp_get_attachment_url($after_image);
     282        $after_title = $settings['after_title'] ? $settings['after_title'] : '';
     283       
     284        $compare_id = uniqid();
     285        $id = rand(999, 9999);
     286        $unique_class = 'compare-' . esc_attr($compare_id) . '-' . esc_attr($id);
     287        ?>
     288       
     289        <div class="narep-compare-wrap">
     290            <div class="narep-compare <?php echo esc_attr($unique_class); ?>"
     291                data-before-url="<?php echo esc_url($before_url); ?>"
     292                data-before-title="<?php echo esc_attr($before_title); ?>"
     293                data-after-url="<?php echo esc_url($after_url); ?>"
     294                data-after-title="<?php echo esc_attr($after_title); ?>"
     295                data-show-labels="<?php echo esc_attr($title); ?>"
     296                data-starting-position="<?php echo esc_attr($starting_position); ?>"
     297                data-compare-style="<?php echo esc_attr($compare_style); ?>">
     298            </div>
     299        </div>
     300        <?php
    323301    }
    324302
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-process.php

    r2528789 r3189347  
    895895                  $title_link = !empty( $title_link ) ? '<a href="'.esc_url($title_link).'" '.$title_link_attr.'>'.esc_html($process_title).'</a>' : esc_html($process_title);
    896896                $title = !empty( $process_title ) ? '<h4 class="process-title">'.$title_link.'</h4>' : '';
    897                 $step_title = !empty( $step_title ) ? '<div class="narep-step-counter">'.$step_title.'</div>' : '';
     897                $step_title = !empty( $step_title ) ? '<div class="narep-step-counter">'.esc_attr( $step_title ).'</div>' : '';
    898898                    $content = $process_content ? '<p>'.esc_html($process_content).'</p>' : '';
    899899
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-section-title.php

    r2528789 r3189347  
    335335        $title_image_url = wp_get_attachment_url( $title_image );
    336336
    337         $section_title = $section_title ? '<h3>'.$section_title.'</h3>' : '';
    338         $section_sub_title = $section_sub_title ? '<h4>'.$section_sub_title.'</h4>' : '';
     337        $section_title = $section_title ? '<h3>'.esc_html( $section_title ).'</h3>' : '';
     338        $section_sub_title = $section_sub_title ? '<h4>'.esc_html( $section_sub_title ).'</h4>' : '';
    339339        $title_image = $title_image_url ? '<div class="narep-image"><img src="'.esc_url($title_image_url).'" alt="Icon"></div>' : '';
    340340
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-separator.php

    r2528789 r3189347  
    10111011        }
    10121012
    1013         $output = '<div class="narep-separator'.$align_class.$salign_class.$pos_class.$border_class.'">';
     1013        $output = '<div class="narep-separator'.esc_attr( $align_class.$salign_class.$pos_class.$border_class ).'">';
    10141014                            if ($separator_style === 'two') {
    10151015                            } else {
    1016                       $output .= '<span class="'.$border_lsub_class.'"></span><div class="narep-sep">'.$separator.'</div><span class="'.$border_rsub_class.'"></span>';
     1016                      $output .= '<span class="'.esc_attr( $border_lsub_class ).'"></span><div class="narep-sep">'.$separator.'</div><span class="'.esc_attr( $border_rsub_class ).'"></span>';
    10171017                            }
    1018     $output .= '</div>';
     1018        $output .= '</div>';
    10191019
    10201020        echo $output;
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-services.php

    r2528789 r3189347  
    845845      }
    846846      if($service_style === 'three') {
    847             $output = '<div class="narep-service-item service-style-three'.$salign_class.'">'.$serv_image.'<div class="service-info"><div class="service-info-inner">'.$icon_main.$title.$content.'</div></div></div>';
     847            $output = '<div class="narep-service-item service-style-three'.esc_attr( $salign_class ).'">'.$serv_image.'<div class="service-info"><div class="service-info-inner">'.$icon_main.$title.$content.'</div></div></div>';
    848848        } else {
    849             $output = '<div class="narep-service-item'.$service_style_cls.$style_cls.$hover_cls.$border_cls.$salign_class.$img_class.$bg_cls.'">'.$icon_main.'<div class="service-info">'.$title.$content.$button.'</div></div>';
     849            $output = '<div class="narep-service-item'.esc_attr($service_style_cls.$style_cls.$hover_cls.$border_cls.$salign_class.$img_class.$bg_cls).'">'.$icon_main.'<div class="service-info">'.$title.$content.$button.'</div></div>';
    850850        }
    851851        echo $output;
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-testimonials.php

    r3155107 r3189347  
    12101210        if ($testimonial_style === 'two') { $output .= '</div>'; }
    12111211        $output .= '</div>';
    1212         if ( Plugin::$instance->editor->is_edit_mode() ) : ?>
    1213         <script type="text/javascript">
    1214         jQuery(document).ready(function($) {
    1215                 $('.owl-carousel').each( function() {
    1216                 var $carousel = $(this);
    1217                 var $items = ($carousel.data('items') !== undefined) ? $carousel.data('items') : 1;
    1218                 var $items_tablet = ($carousel.data('items-tablet') !== undefined) ? $carousel.data('items-tablet') : 1;
    1219                 var $items_mobile_landscape = ($carousel.data('items-mobile-landscape') !== undefined) ? $carousel.data('items-mobile-landscape') : 1;
    1220                 var $items_mobile_portrait = ($carousel.data('items-mobile-portrait') !== undefined) ? $carousel.data('items-mobile-portrait') : 1;
    1221                 $carousel.owlCarousel ({
    1222                   loop : ($carousel.data('loop') !== undefined) ? $carousel.data('loop') : true,
    1223                   items : $carousel.data('items'),
    1224                   margin : ($carousel.data('margin') !== undefined) ? $carousel.data('margin') : 0,
    1225                   dots : ($carousel.data('dots') !== undefined) ? $carousel.data('dots') : true,
    1226                   nav : ($carousel.data('nav') !== undefined) ? $carousel.data('nav') : false,
    1227                   navText : ["<div class='slider-no-current'><span class='current-no'></span><span class='total-no'></span></div><span class='current-monials'></span>", "<div class='slider-no-next'></div><span class='next-monials'></span>"],
    1228                   autoplay : ($carousel.data('autoplay') !== undefined) ? $carousel.data('autoplay') : false,
    1229                   autoplayTimeout : ($carousel.data('autoplay-timeout') !== undefined) ? $carousel.data('autoplay-timeout') : 5000,
    1230                   animateIn : ($carousel.data('animatein') !== undefined) ? $carousel.data('animatein') : false,
    1231                   animateOut : ($carousel.data('animateout') !== undefined) ? $carousel.data('animateout') : false,
    1232                   mouseDrag : ($carousel.data('mouse-drag') !== undefined) ? $carousel.data('mouse-drag') : true,
    1233                   autoWidth : ($carousel.data('auto-width') !== undefined) ? $carousel.data('auto-width') : false,
    1234                   autoHeight : ($carousel.data('auto-height') !== undefined) ? $carousel.data('auto-height') : false,
    1235                   center : ($carousel.data('center') !== undefined) ? $carousel.data('center') : false,
    1236                   responsiveClass: true,
    1237                   dotsEachNumber: true,
    1238                   smartSpeed: 600,
    1239                   autoplayHoverPause: true,
    1240                   responsive : {
    1241                     0 : {
    1242                       items : $items_mobile_portrait,
    1243                     },
    1244                     480 : {
    1245                       items : $items_mobile_landscape,
    1246                     },
    1247                     768 : {
    1248                       items : $items_tablet,
    1249                     },
    1250                     992 : {
    1251                       items : $items,
    1252                     }
    1253                   }
    1254                 });
    1255                 var totLength = $('.owl-dot', $carousel).length;
    1256                 $('.total-no', $carousel).html(totLength);
    1257                 $('.current-no', $carousel).html(totLength);
    1258                 $carousel.owlCarousel();
    1259                 $('.current-no', $carousel).html(1);
    1260                 $carousel.on('changed.owl.carousel', function(event) {
    1261                   var total_items = event.page.count;
    1262                   var currentNum = event.page.index + 1;
    1263                   $('.total-no', $carousel ).html(total_items);
    1264                   $('.current-no', $carousel).html(currentNum);
    1265                 });
    1266               });
    1267           });
    1268         </script>
    1269         <?php endif;
     1212
    12701213        echo $output;
    12711214
  • restaurant-cafe-addon-for-elementor/trunk/elementor/widgets/basic/nabasic-video.php

    r2528789 r3189347  
    896896
    897897        if ($need_title) {
    898             $video = $video_link ? '<a href="'.esc_url($video_link).'" class="narep-popup-video"><span class="narep-video-btn-wrap"><span class="narep-video-btn"><i class="fa fa-play" aria-hidden="true"></i>'.$animation.'</span>'.$title.'</span></a>' : '';
     898            $video = $video_link ? '<a href="'.esc_url($video_link).'" class="narep-popup-video"><span class="narep-video-btn-wrap"><span class="narep-video-btn"><i class="fa fa-play" aria-hidden="true"></i>'.wp_kses_post( $animation ).'</span>'.$title.'</span></a>' : '';
    899899        } else {
    900             $video = $video_link ? '<a href="'.esc_url($video_link).'" class="narep-video-btn narep-popup-video"><i class="fa fa-play" aria-hidden="true"></i>'.$animation.'</a>' : '';
     900            $video = $video_link ? '<a href="'.esc_url($video_link).'" class="narep-video-btn narep-popup-video"><i class="fa fa-play" aria-hidden="true"></i>'.wp_kses_post( $animation ).'</a>' : '';
    901901        }
    902902        $title_image_url = wp_get_attachment_url( $title_image );
    903         $section_title = $section_title ? '<h3>'.$section_title.'</h3>' : '';
    904         $section_sub_title = $section_sub_title ? '<h4>'.$section_sub_title.'</h4>' : '';
    905         $content = $content ? $content : '';
     903        $section_title = $section_title ? '<h3>'.wp_kses_post($section_title).'</h3>' : '';
     904        $section_sub_title = $section_sub_title ? '<h4>'.wp_kses_post($section_sub_title).'</h4>' : '';
     905        $content = $content ? wp_kses_post($content) : '';
    906906        $title_image = $title_image_url ? '<div class="narep-image"><img src="'.esc_url($title_image_url).'" alt="Icon"></div>' : '';
    907907        $sign_image_url = wp_get_attachment_url( $sign_image );
  • restaurant-cafe-addon-for-elementor/trunk/readme.txt

    r3184381 r3189347  
    44Plugin URI: https://nicheaddons.com/demos/restaurant/
    55Tags: restaurant, cafe, elementor, addons, food
    6 Requires PHP: 7.0
     6Requires PHP: 7.4
    77Requires at least: 6.0
    8 Tested up to: 6.6.2
    9 Stable tag: 1.5.8
     8Tested up to: 6.7
     9Stable tag: 1.5.9
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140== Changelog ==
    141141
     142= 1.5.9
     143
     144* Security updated
     145
    142146= 1.5.8
    143147
  • restaurant-cafe-addon-for-elementor/trunk/restaurant-cafe-addon-for-elementor.php

    r3184381 r3189347  
    77Author: NicheAddons
    88Author URI: https://nicheaddons.com/
    9 Version: 1.5.8
     9Version: 1.5.9
    1010Text Domain: restaurant-cafe-addon-for-elementor
    1111*/
Note: See TracChangeset for help on using the changeset viewer.