File: /home/hzaluminio/www/wp-content/plugins/Ebor-Framework-master/shortcodes/foundry-shortcodes.php
<?php
if(!( function_exists('ebor_foundry_button') )){
function ebor_foundry_button( $atts ){
extract(shortcode_atts(array(
'url' => '#',
'appearance' => 'btn-primary',
'target' => '_self',
'text' => 'Default Button Text'
), $atts ));
if( 'default' == $target )
$target = '_self';
return '<a href="'. esc_url($url) .'" class="btn '. $appearance .'" target="'. $target .'">'. htmlspecialchars_decode($text) .'</a>';
}
add_shortcode('foundry_button','ebor_foundry_button');
}
if(!( function_exists('ebor_foundry_icon') )){
function ebor_foundry_icon( $atts ){
extract(shortcode_atts(array(
'icon' => '',
'size' => ''
), $atts ));
return '<i class="icon '. $icon.' '. $size .'"></i>';
}
add_shortcode('foundry_icon','ebor_foundry_icon');
}
if(!( function_exists('ebor_foundry_skill') )){
function ebor_foundry_skill( $atts ){
extract(shortcode_atts(array(
'icon' => '',
'title' => ''
), $atts ));
return '<div class="col-sm-4"><i class="icon '. $icon .' text-white"></i><h2 class="text-white">'. htmlspecialchars_decode($title) .'</h2></div>';
}
add_shortcode('foundry_skill','ebor_foundry_skill');
}
if(!( function_exists('ebor_foundry_countdown') )){
function ebor_foundry_countdown( $atts ){
extract(shortcode_atts(array(
'date' => '2016/02/02',
), $atts ));
return '<div class="countdown" data-date="'. $date .'"></div>';
}
add_shortcode('foundry_countdown','ebor_foundry_countdown');
}