Big Employee
*/
function bigblank_add_shortcode_button($atts, $content = null) {
extract(
shortcode_atts(
array(
'link' => '#',
'class' => 'button',
), $atts));
return bigblank_render_button($content, $link, false, $class);
}
function bigblank_render_button($content = 'new link', $link = '#', $echo = true, $class = 'button') {
$class = strip_tags(trim($class));
if (strpos($class, 'button') === FALSE) {
$class = 'button ' . $class;
}
if (!$echo)
return '' . do_shortcode($content) . '';
echo '' . do_shortcode($content) . '';
}
add_shortcode('button', 'bigblank_add_shortcode_button');
/*
* Hide Email from Spam Bots using a short code place this in your functions file
* [email]john.doe@mysite.com[/email]
* Output: john.doe@mysite.com
*
* @link http://codex.wordpress.org/Function_Reference/antispambot
*/
function bigblank_hide_email($atts, $content = null) {
if (!is_email($content))
return;
return '' . antispambot($content) . '';
}
add_shortcode('email', 'bigblank_hide_email');