'Button', 'type' => 'default', 'size' => '', 'url' => '#', 'class' => '', 'icon' => '', 'target'=>'_self' ), $atts); extract($atts); $classes = 'btn'; $output = $text; if($type) $classes .= ' btn-'. $type; if($size) $classes .= ' btn-'. $size; if($class) $classes .= ' '. $class; if($icon) $output = ' ' . $text; return '' . do_shortcode($output) . ''; }); //Alert add_shortcode( 'dc_alert', function( $atts, $content= null ){ $atts = shortcode_atts( array( "type" => 'info', "close" => 'no', "title" => '', ), $atts); //extract($atts); $output = '
'; if($atts['close']=='yes' ){ $output .=''; } if( $atts['title']!='' ){ $output .='

'. $atts['title']. '

'; } $output .= do_shortcode($content); $output .='
'; return $output; }); //divider add_shortcode( 'dc_divider', function( $atts, $content= null ){ $atts = shortcode_atts( array( 'size' => 'default' ), $atts); extract($atts); return '
'; }); //progressbar add_shortcode( 'dc_progressbar', function( $atts, $content= null ) { return '
' . do_shortcode( $content ) . '
'; }); add_shortcode( 'dc_bar', function( $atts, $content= null ) { $atts = shortcode_atts( array( "style" => '', "width" => '70%', "min" => '0', "max" => '100', "default" => '70' ), $atts); extract($atts); return '
' . do_shortcode( $content ) . '
'; }); //container add_shortcode( 'dc_container', function( $atts, $content = null ) { $atts = shortcode_atts( array( "class" => '', 'id' => '' ), $atts); extract($atts); if($id!='') $id = 'id=' . $id; return '
' . do_shortcode( $content ) . '
'; }); // faq add_shortcode( 'dc_faq', function( $atts=null, $content= null ){ ob_start(); $args = array( 'posts_per_page' => -1, 'post_type'=>'dc_faq', 'orderby' => 'menu_order', 'order' => 'ASC' ); $posts = get_posts( $args ); ?>
0, "column" => 3, "number" => 3 ), $atts); extract($atts); ob_start(); $args = array( 'post_type'=>'dc_service', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => $number, ); if( $category > 0 ){ $args['tax_query'] = array( array( 'posts_per_page' => -1, 'taxonomy' => 'cat_service', 'field' => 'term_id', 'terms' => $category ) ); } $posts = get_posts( $args ); ?>
$post) { $icon = get_post_meta( $post->ID, 'service_icon', true ); $color = get_post_meta($post->ID, 'service_color', true); ?>

post_title; ?>

post_content ); ?>
0, "column" => 3, "number" => 3 ), $atts); extract($atts); ob_start(); $args = array( 'post_type'=>'product', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => $number, ); $posts = get_posts( $args ); ?>
$post) { $icon = get_post_meta( $post->ID, 'service_icon', true ); $color = get_post_meta($post->ID, 'service_color', true); ?>
'img-responsive')); ?>

post_title; ?>

post_content ); ?>
'' ), $atts); extract($atts); ob_start(); $args = array( 'posts_per_page' => -1, 'post_type'=>'dc_testimonial', 'numberposts' => $count, 'orderby' => 'menu_order', 'order' => 'ASC' ); $posts = get_posts( $args ); ?>
$post) { ?>
post_content ); ?> ID, 'testimonial_designation',true) ?>
'3' ), $atts); extract($atts); $args = array( 'posts_per_page' => -1, 'post_type' => 'dc_portfolio' ); $portfolios = get_posts( $args ); ob_start(); if(count($portfolios)>0){ ?>
-1, 'post_type' => 'dc_team' ); $data = get_posts( $args ); if(count($data)>0){ ?>
$value) { ?>

?php echo $value->post_title; ?>

post_title; ?> ID, 'team_designation', true)!=''){ ?>
ID, 'team_designation', true) ?>

post_content; ?>

0 ), $atts); extract($atts); $args = array( 'post_type'=>'dc_accordion', 'orderby' => 'menu_order', 'order' => 'ASC' ); if( $category > 0 ){ $args['tax_query'] = array( array( 'posts_per_page' => -1, 'taxonomy' => 'cat_accordions', 'field' => 'term_id', 'terms' => $category ) ); } $id = $category; $accordions = get_posts( $args ); if(count($accordions)>0){ ?>
$value) { ?>
post_content ); ?>
'; $output .= do_shortcode( str_replace('

', '', $content) ); $output .= ''; return $output; }); //column add_shortcode( 'dc_column', function( $atts, $content=null ){ $atts = shortcode_atts( array( 'size' => '1' ), $atts); $output = '
'; $output .= do_shortcode( str_replace('

', '', $content) ); $output .= '
'; return $output; }); //Tab add_shortcode( 'dc_tab', function( $atts, $content = null ){ ob_start(); $atts = shortcode_atts( array( 'category' => '0' ), $atts); extract($atts); $args = array( 'post_type'=>'dc_tab', 'orderby' => 'menu_order', 'order' => 'ASC' ); if( $category > 0 ){ $args['tax_query'] = array( array( 'posts_per_page' => -1, 'taxonomy' => 'cat_tabs', 'field' => 'term_id', 'terms' => $category ) ); } $tabs = get_posts( $args ); if(count($tabs)>0) { ?>
$value) { ?>
post_content ); ?>
'0' ), $atts); extract($atts); $args = array( 'post_type'=>'dc_pricing', 'orderby' => 'menu_order', 'order' => 'ASC' ); if( $category > 0 ){ $args['tax_query'] = array( array( 'posts_per_page' => -1, 'taxonomy' => 'cat_pricing', 'field' => 'term_id', 'terms' => $category ) ); } $pricings = get_posts( $args ); if(count($pricings)>0) { ?>
$value) { ?> ID, 'pricing_featured',true); ?>
'icon-home', 'size' => '' ), $atts); extract($atts); $icon = $image . ' ' . $size; return ''; }); //Dropcap add_shortcode( 'dc_dropcap', function( $atts, $content="" ) { return '

' . do_shortcode( $content ) .'

'; } ); //Block Numbers add_shortcode( 'dc_blocknumber', function( $atts, $content="" ) { extract(shortcode_atts(array( 'number' => '01', 'background' => '#333', 'color' => '#999', 'borderradius'=>'2px' ), $atts)); return '

' . $number . ' ' . do_shortcode( $content ) . '

'; } ); //Block add_shortcode( 'dc_block', function( $atts, $content="" ) { extract(shortcode_atts(array( 'background' => 'transparent', 'color' => '#666', 'borderradius'=>'2px', 'padding' => '15px' ), $atts)); return '
'.$content.'
'; } ); //Recent Works add_shortcode( 'dc_recent_works', function( $atts, $content= null ){ ob_start(); $atts = shortcode_atts(array( 'slides' => 2, 'title' => '', 'description' => '' ), $atts); extract($atts); $item_per_slide = 3; $args = array( 'numberposts' => $item_per_slide*$slides, 'orderby' => 'menu_order', 'order' => 'ASC', 'post_type' => 'dc_portfolio' ); $portfolios = get_posts( $args ); $i = 1; $j = 1; $count = count($portfolios); if ($count>0) { ?>

Total ' . count($fontawesome_icons) . ' Awesome Icons
'; $output .= '
'; foreach ($fontawesome_icons as $key => $value) { $output .='

' . $value . '

'; } $output .='
'; return $output; });