';
$sign .= 'Amazon-Box creato da Giuseppe Frattura';
$sign .= '';
$msg = get_option('msg');
$box = '
';
$box .= $msg;
$box .= '';
$box .= get_option('ab_box_1');
$box .= get_option('ab_box_2');
$box .= get_option('ab_box_3');
$box .= get_option('ab_box_4');
$box .= get_option('ab_box_5');
$box .= get_option('ab_box_6');
if (get_option('AS')=='Si')
$box .= $sign;
$box .= '
';
if (get_option('page')=='Pagine'){
if (is_page()){
if (get_option('Pos')=='Top')
{
$return=$box;
$return .=$content;
}
if (get_option('Pos')=='Bottom')
{
$return =$content;
$return .=$box;
}
if (get_option('Pos')=='TeB')
{
$return=$box;
$return .=$content;
$return .=$box;
}
}
else $return .=$content;
} elseif (get_option('page')=='Articoli'){
if (is_single()){
if (get_option('Pos')=='Top')
{
$return=$box;
$return .=$content;
}
if (get_option('Pos')=='Bottom')
{
$return =$content;
$return .=$box;
}
if (get_option('Pos')=='TeB')
{
$return=$box;
$return .=$content;
$return .=$box;
}
}
else $return .=$content;
}else {
if (get_option('Pos')=='Top')
{
$return=$box;
$return .=$content;
}
if (get_option('Pos')=='Bottom')
{
$return =$content;
$return .=$box;
}
if (get_option('Pos')=='TeB')
{
$return=$box;
$return .=$content;
$return .=$box;
}
}
return $return;
}
add_filter('the_content', 'amazon_box');
function ab_update_options_form()
{
?>