';
return $html;
}
add_shortcode('servicesboxes', 'pexeto_services_boxes');
add_shortcode('servicesbox', 'pexeto_service_box');
/* ------------------------------------------------------------------------*
* CONTACT FORM
* ------------------------------------------------------------------------*/
function pexeto_contact_form(){
$html='
';
return $html;
}
add_shortcode('contactform', 'pexeto_contact_form');
/* ------------------------------------------------------------------------*
* PORTFOLIO CAROUSEL
* ------------------------------------------------------------------------*/
/**
* Builds the code for the portfolio carousel widget
* @param $cat_id the ID of the category whose items will be displayed
* @param $columns the number of images per page/slide
*/
function pexeto_portfolio_carousel($cat_id, $columns, $title){
//set the query_posts args
$args= array(
'posts_per_page' =>get_opt('_carousel_max_items'),
'post_type' => PEXETO_PORTFOLIO_POST_TYPE
);
if($cat_id!='-1'){
$slug=pexeto_get_taxonomy_slug($cat_id);
$args['portfolio_category']=$slug;
}
$posts=get_posts($args);
$i=0;
$html= '
'.$title.'
';
foreach($posts as $post){
//open a page wrapper div on each first image of the page/slide
if($i%$columns==0){
$html.='
';
}
//pexeto_build_portfolio_image_html() is located in lib/functions/portfolio.php
$html.='