'',
'size' => '200',
'default' => '',
'alt' => ''
), $atts));
if( empty($email) )
return '';
$output = get_avatar($email, $size, $default, $alt);
return $output;
}
add_shortcode('gravatar', 'danix_gravatar');
/**
* The download button shortcode
*
* @param url $link link address.
* @param string $linkname text that will be displayed by the button.
* @return string HTML the link tag that will be rendered to the page.
*
*/
function danix_download_button( $atts ) {
extract(shortcode_atts(array(
'link' => '',
'linkname' => ''
), $atts));
if ( empty($link) )
return '';
$output = sprintf(
'%s',
$link,
$linkname
);
return $output;
}
add_shortcode('download', 'danix_download_button');
/**
* The google analytics code
*
*/
function danix_google_anal() {?>
'640',
"height" => '480',
"src" => ''
), $atts));
return '';
}
add_shortcode("googlemaps", "danix_gmaps");