} ?> </div> <?php } else { echo 'Post not found!'; } ?> <?php wp_reset_postdata(); return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('products-grid', 'ro_products_grid_render'); } add_action('wp_ajax_nopriv_ro_render_products_grid', 'ro_render_products_grid'); add_action('wp_ajax_ro_render_products_grid', 'ro_render_products_grid'); function ro_render_products_grid() { // print_r($_POST);exit; extract($_POST['params']); $paged = $_POST['paged']; $query_args = array('posts_per_page' => $number, 'paged' => $paged, 'post_status' => 'publish', 'post_type' => 'product', 'order' => $order); $query_args['meta_query'] = array(); if (empty($show_hidden)) { $query_args['meta_query'][] = WC()->query->visibility_meta_query(); $query_args['post_parent'] = 0; } if (!empty($hide_free)) {
<?php function contactPr_shortcode($atts, $content = null) { global $contacPr; extract(shortcode_atts(array('con_title' => 'Tite Team', 'con_desc' => 'Description'), $atts)); $contacPr = $atts; ob_start(); get_template_part('core/layouts/vc-templetes/contact/pr', 'contact'); } add_shortcode('pr-contact', 'contactPr_shortcode'); if (function_exists('insert_shortcode')) { insert_shortcode('pr-contacts', 'contactPr_shortcode'); }
echo "</div>"; echo "<!-- End Portfolio Section ========================================================= -->"; */ /* get_portfolio_item(array( 'wp_query'=>$wp_query, 'category'=> $category, 'posts_per_page'=>$posts_per_page, )); */ } else { echo "<span class='pr-notfound'>No portfolio found!</span>"; } } add_shortcode('pr-portfolio', 'pr_portfolio_shortcode'); if (function_exists('insert_shortcode')) { insert_shortcode('pr-portfolio', 'pr_portfolio_shortcode'); } // Get portfolio item function get_portfolio_item($dataAttr) { extract($dataAttr); if ($wp_query->have_posts()) { echo "<section id='options'>"; echo "<ul id='filters' data-option-key='filter'>"; echo "<li><a href='#' data-filter='*' class='selected active'>View All</a></li>"; $cats = explode(',', $category); // $category = $term_cats = array(); foreach ((array) $cats as $cat) { // $category[] = trim($cat); $term_cats = get_term($cat, 'portfolio_category'); echo "<li><a href='#' data-filter='." . $term_cats->slug . "'>" . $term_cats->name . "</a></li>";
<h6 class="ro-title ro-font-size-7"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h6> <?php } ?> <?php if ($show_position) { echo '<div class="ro-position">' . get_post_meta(get_the_ID(), 'tb_testimonial_position', true) . '</div>'; } ?> </div> </li> <?php } ?> </ul> </div> </div> <?php } return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('testimonial_slider', 'ro_testimonial_slider_func'); }
$controls->infoclick = false; } $controls->infowidth = $infowidth; $controls->style = $style; $controls = rawurlencode(json_encode($controls)); /* data render */ $setting = array("data-address='{$address}'", "data-marker='{$marker}'", "data-coordinate='{$coordinate}'", "data-type='{$type}'", "data-zoom='{$zoom}'", "data-template='{$map_template}'", "data-controls='{$controls}'"); ob_start(); $maps_id = uniqid('maps-'); ?> <div class="ro_maps"> <div id="<?php echo $maps_id; ?> " class="maps-render" <?php echo implode(' ', $setting); ?> style="width:<?php echo esc_attr($width); ?> ;height: <?php echo esc_attr($height); ?> "></div> </div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('maps', 'ro_maps_render'); }
<i class="icon icon-chat"></i> <span>comments</span></a></li> <?php $share_all = pssc_facebook(get_the_ID()) + pssc_twitter(get_the_ID()) + pssc_pinterest(get_the_ID()); ?> <li><a href="<?php the_permalink(); ?> "><?php echo $share_all; ?> <i class="icon icon-share"></i> <span>shares</span></a></li> </ul> <?php } ?> </div> </div> </article> </div> <?php } ?> </div> </div> <?php } return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('blog', 'ro_blog_func'); }
<?php function ro_countdown_func($params, $content = null) { extract(shortcode_atts(array('date_end' => '+6o +15d +8h +30m +15s'), $params)); wp_enqueue_script('jquery.plugin.min', URI_PATH . '/assets/vendors/countdown/jquery.plugin.min.js'); wp_enqueue_script('jquery.countdown.min', URI_PATH . '/assets/vendors/countdown/jquery.countdown.min.js'); ob_start(); ?> <div data-countdown="<?php echo esc_attr($date_end); ?> " class="ro-countdown-clock"></div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('countdown', 'ro_countdown_func'); }
<?php function ro_heading_func($atts, $content = null) { extract(shortcode_atts(array('tpl' => 'tpl1', 'img' => '', 'text' => '', 'sub_text' => '', 'el_class' => ''), $atts)); $content = wpb_js_remove_wpautop($content, true); $class = array(); $class[] = 'ro-hr-heading'; $class[] = $tpl; $class[] = $el_class; ob_start(); ?> <div class="<?php echo esc_attr(implode(' ', $class)); ?> "> <?php include $tpl . '.php'; ?> </div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('heading', 'ro_heading_func'); }
<?php function teamPr_shortcode($atts, $content = null) { global $team_option, $wp_query; extract(shortcode_atts(array('about_title' => 'Tite Team', 'about_desc' => 'Description', 'posts_per_page' => 10), $atts)); //Buding array item porfolio $team_option = $atts; $args = array('post_type' => 'team', 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', 'order' => 'ASC'); //Query get all post type. $wp_query = new WP_Query($args); $count_post = $wp_query->post_count; ob_start(); get_template_part('core/layouts/vc-templetes/team/meet', 'team'); } add_shortcode('pr-team', 'teamPr_shortcode'); if (function_exists('insert_shortcode')) { insert_shortcode('pr-team', 'teamPr_shortcode'); }
comments_number(__('Comment (0)', 'robusta'), __('Comment (1)', 'robusta'), __('Comments (%)', 'robusta')); ?> </div> <div class="ro-excerpt"> <?php echo ro_custom_excerpt(21, '...'); ?> <a href="<?php the_permalink(); ?> ">See more</a> </div> </div> </div> <?php $count++; if ($count % 2 == 0 || $count == $post_count) { echo '</li>'; } } ?> </ul> </div> </div> <?php } return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('latest_news_slider', 'ro_latest_news_slider_func'); }
<?php function titlePr_shortcode($atts, $content = null) { global $title_option; extract(shortcode_atts(array('pr_small_title' => 'Small title', 'pr_title' => 'Enter Tite', 'pr_description' => 'Enter Description', 'layout' => 'layout1'), $atts)); //Buding array item porfolio $title_option = $atts; ob_start(); get_template_part('core/layouts/vc-templetes/title/title', $layout); return ob_get_clean(); } add_shortcode('pr-title', 'titlePr_shortcode'); if (function_exists('insert_shortcode')) { insert_shortcode('pr-title', 'titlePr_shortcode'); }
<?php function ro_video($params, $content = null) { extract(shortcode_atts(array('height' => 200, 'width' => '100%'), $params)); wp_enqueue_script('fitvids', URI_PATH_FR . "/shortcodes/video/fitvids.js"); $video = parse_url($content); switch ($video['host']) { case 'youtu.be': $id = trim($video['path'], '/'); $src = 'https://www.youtube.com/embed/' . $id; break; case 'www.youtube.com': case 'youtube.com': parse_str($video['query'], $query); $id = $query['v']; $src = 'https://www.youtube.com/embed/' . $id; break; case 'vimeo.com': case 'www.vimeo.com': $id = trim($video['path'], '/'); $src = "http://player.vimeo.com/video/{$id}"; } $out = '<div id="video-' . esc_attr($id) . '" class="shortcode-video"> <iframe src="' . esc_url($src) . '" width="' . esc_attr($width) . '" height="' . esc_attr($height) . '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> </div>'; return $out; } if (function_exists('insert_shortcode')) { insert_shortcode('tb-video', 'ro_video'); }
"> <div class="ro-info"> <div class="ro-overlay"></div> <?php echo wp_get_attachment_image($img, 'full'); ?> <div class="ro-info-inner"> <?php if ($title) { echo '<h4>' . esc_html($title) . '</h4>'; } if ($content) { echo '<div class="ro-content">' . $content . '</div>'; } ?> </div> <?php $img_url = wp_get_attachment_image_src($img, 'full'); if ($img_url[0]) { echo '<a class="ro-zoom-image" href="' . esc_url($img_url[0]) . '"><i class="icon icon-resize-full"></i></a>'; } ?> </div> </div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('info_box', 'ro_info_box_func'); }
<?php function gmapPr_shortcode($atts, $content = null) { global $gmap_setting; extract(shortcode_atts(array('pr_lat' => '43.04446', 'pr_lng' => '-76.130791'), $atts)); $gmap_setting = $atts; wp_register_script('js-googleapis', 'https://maps.googleapis.com/maps/api/js?sensor=false', 'jquery'); wp_register_script('js-gmap', get_template_directory_uri() . '/assets/js/gmaps.js', 'jquery', '0.4.9'); wp_register_script('cmsbluegmap', get_template_directory_uri() . '/core/layouts/vc-templetes/gmap/cmsbluegmap.js', 'jquery', '0.4.9'); wp_enqueue_script('js-googleapis'); wp_enqueue_script('js-gmap'); wp_enqueue_script('cmsbluegmap'); ob_start(); get_template_part('core/layouts/vc-templetes/gmap/gmap'); return ob_get_clean(); } add_shortcode('pr-cmsblue-gmap', 'gmapPr_shortcode'); if (function_exists('insert_shortcode')) { insert_shortcode('pr-cmsblue-gmap', 'gmapPr_shortcode'); }
the_permalink(); ?> "><?php the_title(); ?> </a></h5> <div class="ro-excerpt"><?php the_excerpt(); ?> </div> <div class="ro-hr"></div> <div class="ro-meta"> <div class="ro-phone">8410.058.9860; branch 1</div> <div class="ro-email">dr.micheprino@gmail.com</div> <div class="ro-address">Block 2/126, 12 st. NYC</div> </div> </div> </li> <?php } ?> </ul> </div> </div> <?php } return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('team_slider', 'ro_team_slider_func'); }
?> </div> </article> <?php } ?> <div style="clear: both;"></div> <?php if ($show_pagination) { ?> <nav class="ro-pagination <?php echo esc_attr($pos_pagination); ?> " role="navigation"> <?php $big = 999999999; // need an unlikely integer echo paginate_links(array('base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), 'format' => '?paged=%#%', 'current' => max(1, get_query_var('paged')), 'total' => $wp_query->max_num_pages, 'prev_text' => __('<i class="fa fa-angle-left"></i>', 'robusta'), 'next_text' => __('<i class="fa fa-angle-right"></i>', 'robusta'))); ?> </nav> <?php } ?> </div> <?php } return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('blog_list', 'ro_blog_list_func'); }
<?php function ro_video_fancybox_button_func($atts) { extract(shortcode_atts(array('image' => '', 'video_link' => '#', 'el_class' => ''), $atts)); $class = array(); $class[] = 'ro-fancybox-wrap'; $class[] = $el_class; ob_start(); ?> <div class="<?php echo esc_attr(implode(' ', $class)); ?> "> <a id="ro-play-button" class="fancybox fancybox.iframe" href="<?php echo esc_url($video_link); ?> "> <?php echo wp_get_attachment_image($image, 'full'); ?> </a> </div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('video_fancybox_button', 'ro_video_fancybox_button_func'); }
$content = wpb_js_remove_wpautop($content, true); $class = array(); $class[] = 'ro-menu-item-wrap'; $class[] = $el_class; ob_start(); ?> <div class="<?php echo esc_attr(implode(' ', $class)); ?> "> <div class="ro-menu-item"> <?php if ($text_featured) { $text_featured = '<span>' . esc_html($text_featured) . '</span>'; } if ($title) { echo '<h6>' . esc_html($title) . $text_featured . '</h6>'; } if ($content) { echo '<div class="ro-content">' . $content . '</div>'; } ?> </div> </div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('menu_item', 'ro_menu_item_box_func'); }
"><?php the_title(); ?> </a></h6> <div class="ro-category"><?php the_terms(get_the_ID(), 'category', '', ', '); ?> </div> <div class="ro-meta"><?php echo get_the_author() . ' - ' . get_the_date(); ?> </div> <a class="icon icon-right-open-mini ro-read-more" href="<?php the_permalink(); ?> "></a> </div> </li> <?php } ?> </ul> </div> </div> <?php } return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('blog_slider', 'ro_blog_slider_func'); }
?> <div class="<?php echo esc_attr(implode(' ', $class)); ?> "> <a href="<?php echo esc_url($ex_link); ?> "> <div class="ro-service clearfix"> <?php if ($icon) { echo '<span><i class="' . esc_attr($icon) . '"></i></span>'; } if ($title) { echo '<h6>' . esc_html($title) . '</h6>'; } if ($desc) { echo '<p>' . esc_html($desc) . '</p>'; } ?> </div> </a> </div> <?php return ob_get_clean(); } if (function_exists('insert_shortcode')) { insert_shortcode('service_box', 'ro_service_box_func'); }