0) {
echo $before_widget;
echo $before_title . $title . $after_title;
}
}
//Display the after widget WP functions if Title exit
function cjt_display_after_widget($args, $title)
{
extract( $args, EXTR_SKIP );
if (strlen($title) > 0) {
echo $after_widget;
}
}
//Align the adsense add using simple css styling
function cjt_display_alignment_div($align, $width)
{
if ($align == 'right') {
echo "
";
} else if ($align == 'left') {
echo "
";
} else {
echo "
";
}
}
//Close the adsense alignment div
function cjt_display_alignment_close_div($align)
{
if ($align == 'right') {
echo "
";
echo "
";
} else if ($align == 'left') {
echo "
";
echo "
";
} else {
echo "
";
}
}
//display the script for adsense
function cjt_display_adsense_script($publisher, $size, $type, $channel, $color_border, $color_bg, $color_link, $color_text, $color_url, $corners, $width, $height)
{
$script_adsense = "";
if ($height == 15) { //Check height to see if link unit first
$ad_format_suf = '_0ads_al';
$script_adsense = '
';
} else { //if not link unit then it is an add unit
$ad_format_suf = '_as';
$script_adsense = '
';
}
return $script_adsense;
}
/*--------------------------END DISPLAY FUNCTIONS-----------------------------*/
?>