function is_ads_top_banner_enable() { if (is_ads_visible() && is_ads_performance_visible() && !is_responsive_enable()) { if (is_page()) { //個別ページのとき if (is_mobile()) { return true; } else { return !is_ads_sidebar_top() || is_ads_content_top(); //サイドバートップ表示以外のとき } } elseif (is_single()) { //投稿ページのとき if (is_mobile()) { return is_ads_in_content() && !get_h2_included_in_body(get_the_content()) || is_ads_under_relations() || is_ads_sidebar_top() || is_ads_content_top(); //コンテンツトップ表示のとき } else { return is_ads_content_top(); //コンテンツトップ表示のとき } } else { //その他、リスト表示のときなど if (is_mobile()) { //トップページ以外は必ず表示、トップページは表示がオンになっていたら return (!is_home() || is_ads_top_page_visible()) && !is_list_style_bodies(); } else { //サイドバーに広告がなくて、トップページ以外か、TOPページ表示がオンになっているとき return !is_ads_sidebar_top() && (!is_home() || is_ads_top_page_visible() || is_ads_content_top()) && !is_list_style_bodies(); } } } }
function is_ads_content_top() { return get_ads_position() == 'content_top' && is_ads_performance_visible(); }
margin-left:700px; <?php } ?> } /*@media screen and (max-width:1110px){ #sidebar{ float:none; } }*/ <?php } else { //サイドバーが左じゃないとき //シェアバーが広告にかぶらないようにする if (is_ads_performance_visible()) { ?> #sharebar { margin-left:-120px; } <?php } //is_ads_performance_visible } //is_sidebar_left //モバイルサイトタイトル色 if ($mobile_site_title_color != SITE_TITLE_COLOR && is_mobile()) { ?> #site-title a { color:<?php echo $mobile_site_title_color;
function is_ads_content_top() { $o = get_option('ads_options'); return $o['ads_position'] == 'content_top' && is_ads_performance_visible(); }