' => '', 'pinterest' => '', 'behance' => '', 'css_animation' => '', 'animation_delay' => '', 'el_class' => '' ), $atts)); //$css_animation = ($css_animation != '') ? 'wpb_animate_when_almost_visible wpb_'.$css_animation : ''; if(function_exists('getCSSAnimation') ){ $css_animation = getCSSAnimation($css_animation); } $animation_delay = ( '' != $animation_delay) ? 'data-wow-delay="'.$animation_delay.'s"' : ''; $position = ($position != 'left') ? 'style="text-align:'.$position.';"' : '' ; $color = ($color != '') ? 'style="color:'.$color.'"' : ''; //$transparent = ($transparent =='true') ? 'style="background-color: transparent;"' : ''; $html = ''; if($facebook || $twitter || $google || $dribble || $tumblr || $vimeo || $youtube || $linkedin || $flickr || $skype || $pinterest || $behance) { $html .= ''; } return $html; } ////////////////////////////////////////////////////////////////// // Youtube shortcode ////////////////////////////////////////////////////////////////// add_shortcode('youtube', 'shortcode_youtube'); function shortcode_youtube($atts) { extract(shortcode_atts(array( 'id' => '', 'width' => '800', 'height' => '450', ), $atts)); return '
'; } ////////////////////////////////////////////////////////////////// // Vimeo shortcode ////////////////////////////////////////////////////////////////// add_shortcode('vimeo', 'shortcode_vimeo'); function shortcode_vimeo($atts) { extract(shortcode_atts(array( 'id' => '', 'width' => '800', 'height' => '450', ), $atts)); return '
'; } ////////////////////////////////////////////////////////////////// // Dailymotion shortcode ////////////////////////////////////////////////////////////////// add_shortcode('dailym', 'shortcode_dailym'); function shortcode_dailym($atts) { extract(shortcode_atts(array( 'id' => '', 'width' => '100%', 'height' => '166', ), $atts)); return ''; } ////////////////////////////////////////////////////////////////// // Minimal Button shortcode ////////////////////////////////////////////////////////////////// add_shortcode('button_minimal', 'shortcode_button_minimal'); function shortcode_button_minimal($atts, $content = null) { extract(shortcode_atts(array( 'inverse_colors' => 'yes', 'size' => 'normal', 'link' => '', 'icon' => '' ), $atts)); $add_class = null; if($inverse_colors == "yes"): $add_class = " inverse"; endif; if($size == "large"): $size = "large"; endif; if($icon !=""): $add_icon = ''; endif; return ''.$add_icon.do_shortcode($content).''; } ////////////////////////////////////////////////////////////////// // Colored Button shortcode ////////////////////////////////////////////////////////////////// add_shortcode('button_colored', 'shortcode_button_colored'); function shortcode_button_colored($atts, $content = null) { extract(shortcode_atts(array( 'color' => 'red', 'link' => '', 'icon' => '' ), $atts)); $colored = null; $colored = $color.'_btn'; if ( $icon != '' ) : $icon = ''; endif; return ''. $icon . ' ' . do_shortcode($content). ''; } ////////////////////////////////////////////////////////////////// // Bootstrap buttons shortcode ////////////////////////////////////////////////////////////////// add_shortcode('button_bootstrap', 'shortcode_button_bootstrap'); function shortcode_button_bootstrap($atts, $content = null) { extract(shortcode_atts(array( 'style' => 'default', 'link' => '', 'size' => 'small' ), $atts)); if( $style ): $style='btn-'. $style; endif; if( $size): $size='btn-'. $size; endif; return ''; } ////////////////////////////////////////////////////////////////// // HR shortcode ////////////////////////////////////////////////////////////////// add_shortcode('vc_separator', 'shortcode_vc_separator'); function shortcode_vc_separator($atts) { extract(shortcode_atts(array( 'style' => 'dotted', 'paddingtop' => '20', 'paddingbottom' => '20', 'divider_color' => '', 'animation_delay' => '', 'css_animation' => '', 'el_class' => '' ), $atts)); if(function_exists('getCSSAnimation') ){ $css_animation = getCSSAnimation($css_animation); } $animation_delay = ( '' != $animation_delay) ? 'data-wow-delay="'.$animation_delay.'s"' : ''; $divider = (!empty($divider_color)) ? 'style="border-color: '.$divider_color.';"' : '' ; if($paddingtop || $paddingbottom) : $paddingtop = ( $paddingtop != 0 ) ? 'padding-top: ' . $paddingtop . 'px; ' : ''; $paddingbottom = ( $paddingbottom != 0 ) ? 'padding-bottom: ' . $paddingbottom . 'px; ' : ''; $extra = 'style="' . $paddingtop . $paddingbottom . '"'; endif; return '

'; } ////////////////////////////////////////////////////////////////// // Dropcap shortcode ////////////////////////////////////////////////////////////////// add_shortcode('dropcap', 'shortcode_dropcap'); function shortcode_dropcap( $atts, $content = null ) { extract(shortcode_atts(array( 'color' => '', ), $atts)); $color = ($color) ? 'style="color:'.$color.';"' : ''; return '' .do_shortcode($content). ''; } ////////////////////////////////////////////////////////////////// // Highlight shortcode ////////////////////////////////////////////////////////////////// add_shortcode('highlight', 'shortcode_highlight'); function shortcode_highlight($atts, $content = null) { extract(shortcode_atts(array( 'color' => '', ), $atts)); if($color) { return '' .do_shortcode($content). ''; } else { return '' .do_shortcode($content). ''; } } ////////////////////////////////////////////////////////////////// // Check list shortcode ////////////////////////////////////////////////////////////////// add_shortcode('checklist', 'shortcode_checklist'); function shortcode_checklist( $atts, $content = null ) { extract(shortcode_atts(array( 'icon' => '', 'font_size' => '' ), $atts)); $size = ($font_size !='') ? 'style="font-size:'.$font_size.'px;line-height:'.($font_size+15).'px;"' : ''; if (function_exists('wpb_js_remove_wpautop')){ $content = str_replace('