PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
themes
/
dwt-listing
/
inc
/
theme_shortcodes
/
shortcodes
<?php if (!function_exists('dwt_listing_listing_adverts')) { function dwt_listing_listing_adverts() { vc_map(array( "name" => __("Listing With Advertisementz", 'dwt-listing'), "base" => "d_sidebar__advert_base", "category" => __("Theme Shortcodes", 'dwt-listing'), "icon" => "icon-wpb-ui-accordion", "params" => array( array( 'group' => __('Shortcode Output', 'dwt-listing'), 'type' => 'custom_markup', 'heading' => __('Shortcode Output', 'dwt-listing'), 'param_name' => 'order_field_key', 'description' => dwt_listing_VCImage('advert.png') . __('Ouput of the shortcode will be look like this.', 'dwt-listing'), ), array( "group" => esc_html__("Basic", "dwt-listing"), "type" => "dropdown", "heading" => esc_html__("Background Color", 'dwt-listing'), "param_name" => "section_bg", "admin_label" => true, "value" => array( esc_html__('Select Background Color', 'dwt-listing') => '', esc_html__('White', 'dwt-listing') => '', esc_html__('Gray', 'dwt-listing') => 'bg-gray', esc_html__('Image', 'dwt-listing') => 'img' ), 'edit_field_class' => 'vc_col-sm-12 vc_column', "std" => '', "description" => esc_html__("Select background color.", 'dwt-listing'), ), array( "group" => esc_html__("Basic", "dwt-listing"), "type" => "attach_image", "holder" => "bg_img", "class" => "", "heading" => esc_html__("Background Image", 'dwt-listing'), "param_name" => "bg_img", 'dependency' => array( 'element' => 'section_bg', 'value' => array('img'), ), ), array( "group" => esc_html__("Basic", "dwt-listing"), "type" => "textfield", "holder" => "div", "class" => "", "heading" => esc_html__("Section Title", 'dwt-listing'), "param_name" => "section_title", "description" => esc_html__('Title for your section ', 'dwt-listing') . '</strong>', 'edit_field_class' => 'vc_col-sm-12 vc_column', ), array( "group" => esc_html__("Basic", "dwt-listing"), "type" => "textarea", "holder" => "div", "class" => "", "heading" => esc_html__("Section Description", 'dwt-listing'), "param_name" => "section_description", "value" => "", 'edit_field_class' => 'vc_col-sm-12 vc_column', ), array( "group" => esc_html__("Listing Settings", "dwt-listing"), "type" => "dropdown", "heading" => esc_html__("Listing Type", 'dwt-listing'), "param_name" => "ad_type", "admin_label" => true, "value" => array( esc_html__('Select Listing Type', 'dwt-listing') => '', esc_html__('Featured Listing', 'dwt-listing') => 'feature', esc_html__('Simple Listing', 'dwt-listing') => 'regular', esc_html__('Both', 'dwt-listing') => 'both' ), ), array( "group" => esc_html__("Listing Settings", "dwt-listing"), "type" => "dropdown", "heading" => esc_html__("Order By", 'dwt-listing'), "param_name" => "ad_order", "admin_label" => true, "value" => array( esc_html__('Select Listing order', 'dwt-listing') => '', esc_html__('Oldest', 'dwt-listing') => 'asc', esc_html__('Latest', 'dwt-listing') => 'desc', esc_html__('Random', 'dwt-listing') => 'rand' ), ), array( "group" => esc_html__("Listing Settings", "dwt-listing"), "type" => "dropdown", "heading" => esc_html__("Layout Type", 'dwt-listing'), "param_name" => "layout_type", "admin_label" => true, "value" => array( esc_html__('Select Layout Type', 'dwt-listing') => '', esc_html__('Grid 1', 'dwt-listing') => 'grid1', esc_html__('Grid 2', 'dwt-listing') => 'grid2', esc_html__('Grid 3', 'dwt-listing') => 'grid3', esc_html__('Grid 4', 'dwt-listing') => 'grid4', esc_html__('List', 'dwt-listing') => 'list1' ), ), array( "group" => esc_html__("Listing Settings", "dwt-listing"), "type" => "dropdown", "heading" => esc_html__("Number fo Listings", 'dwt-listing'), "param_name" => "no_of_ads", "admin_label" => true, "value" => range(1, 50) ), array( "group" => esc_html__("Listing Settings", "dwt-listing"), "type" => "vc_link", "heading" => esc_html__("View All Link", 'dwt-listing'), "param_name" => "main_link", "description" => esc_html__("Link You Want To Redirect.", "dwt-listing"), ), array ( "group" => esc_html__("Categories", "dwt-listing"), 'type' => 'param_group', 'heading' => esc_html__('Select Category ( All or Selective )', 'dwt-listing'), 'param_name' => 'cats', 'value' => '', 'params' => array ( array( "type" => "dropdown", "heading" => esc_html__("Category", 'dwt-listing'), "param_name" => "cat", "admin_label" => true, "value" => dwt_listing_get_parests_cats('l_category', 'yes'), ), ) ), array( "group" => esc_html__("Advertisement", "dwt-listing"), "type" => "textarea_raw_html", "holder" => "div", "heading" => esc_html__("Banner Ad 720x90", 'dwt-listing'), "param_name" => "ad_720_90", "description" => esc_html__("Recommended ad size 720x90", 'dwt-listing'), ), array( "group" => esc_html__("Advertisement", "dwt-listing"), "type" => "textarea_raw_html", "holder" => "div", "heading" => esc_html__("Left Sticky Advertisement", 'dwt-listing'), "param_name" => "sticky_left", "description" => esc_html__("Recommended ad size 170x635", 'dwt-listing'), ), array( "group" => esc_html__("Advertisement", "dwt-listing"), "type" => "textarea_raw_html", "holder" => "div", "heading" => esc_html__("Right Sticky Advertisement", 'dwt-listing'), "param_name" => "sticky_right", "description" => esc_html__("Recommended ad size 170x635", 'dwt-listing'), ), ), )); } } add_action('vc_before_init', 'dwt_listing_listing_adverts'); if (!function_exists('d_sidebar_base_advert_func')) { function d_sidebar_base_advert_func($atts, $content = '') { $fetch_listingz_get = 2; require trailingslashit(get_template_directory()) . "inc/theme_shortcodes/shortcodes/shortcode-functions/essential_values.php"; require trailingslashit(get_template_directory()) . "inc/theme_shortcodes/shortcodes/shortcode-functions/get_listings.php"; $section_id = $view_all_btn = ''; $custom_class = 'papular-listing-2'; if ($layout_type == 'grid2') { $custom_class = ''; $section_id = 'id="Papular-listing"'; } $button = ''; $button = dwt_listing_get_button($main_link, 'btn btn-theme', false, false, ''); if ($button) { $view_all_btn = '<div class="col-md-12 col-sm-12 col-xs-12"> <div class="load-btn">' . $button . '</div> </div>'; } $headingz = ''; if ($section_title != '' || $section_description != '') { $headingz = '<div class="heading-2 left"> <h3>' . $section_title . ' </h3> <h2>' . $section_description . '</h2> </div>'; } return '<section ' . $section_id . ' class="dwt-with-adverts ' . $custom_class . ' ' . $class . ' ' . $bg_color . '" ' . $style . '> <div class="container"> <div class="row"> <div class="col-lg-2 col-xs-12 col-md-2 leftSidebar"> <div class="theiaStickySidebar"> <div class="list-image-section"> ' . urldecode(dwt_listing_decode($sticky_left)) . ' </div> </div> </div> <div class="col-lg-8 col-xs-12"> <div class="new-banner-image_dwt"> ' . urldecode(dwt_listing_decode($ad_720_90)) . ' </div> ' . $headingz . ' <div class="row"> ' . $fetch_listingz . ' </div> <div class="clearfix"></div> ' . $view_all_btn . ' </div> <div class="col-lg-2 col-xs-12 col-md-2 rightSidebar"> <div class="theiaStickySidebar"> <div class="list-image-section"> ' . urldecode(dwt_listing_decode($sticky_right)) . ' </div> </div> </div> </div> </div> </section>'; } } if (function_exists('dwt_listing_add_code')) { dwt_listing_add_code('d_sidebar__advert_base', 'd_sidebar_base_advert_func'); }
[+]
..
[-] hero_4.php
[edit]
[-] listing-gallery.php
[edit]
[-] hero_3.php
[edit]
[-] categories.php
[edit]
[-] text_block.php
[edit]
[-] hero_10.php
[edit]
[-] process_cycle2.php
[edit]
[-] listing-with-sidebar.php
[edit]
[-] shop_tabs.php
[edit]
[-] categories_minimal.php
[edit]
[-] packages.php
[edit]
[-] listing-with-adverts.php
[edit]
[-] event-slider.php
[edit]
[-] call_to_action2.php
[edit]
[-] all-listings.php
[edit]
[-] custom-locations2.php
[edit]
[-] testimonials.php
[edit]
[-] contact-us.php
[edit]
[+]
shortcode-functions
[-] listing-slider.php
[edit]
[-] testimonials2.php
[edit]
[-] categories_elegent.php
[edit]
[-] categories_event_listing.php
[edit]
[-] hero_2.php
[edit]
[-] custom-locations.php
[edit]
[-] hero_5.php
[edit]
[-] call_to_action3.php
[edit]
[-] event-listings.php
[edit]
[-] call_to_action4.php
[edit]
[-] my-apps.php
[edit]
[-] about-us.php
[edit]
[-] clients.php
[edit]
[-] fancy_categories.php
[edit]
[-] slider.php
[edit]
[-] about-us2.php
[edit]
[-] call_to_action.php
[edit]
[-] shop_slider.php
[edit]
[-] newslatter.php
[edit]
[-] faqs.php
[edit]
[-] hero_8.php
[edit]
[-] blogs.php
[edit]
[-] hero_6.php
[edit]
[-] hero_1.php
[edit]
[-] hero_7.php
[edit]
[-] hero_9.php
[edit]
[-] fun-facts-2.php
[edit]
[-] process_cycle.php
[edit]
[-] fun-facts.php
[edit]