fix adbox visibility
This commit is contained in:
parent
e5f34f7a8d
commit
0bc9677dd1
@ -67,6 +67,7 @@ class PluginWonderful {
|
|||||||
|
|
||||||
function insert_rss_feed_ads($content) {
|
function insert_rss_feed_ads($content) {
|
||||||
if (is_feed()) {
|
if (is_feed()) {
|
||||||
|
if ($this->publisher_info !== false) {
|
||||||
foreach ($this->publisher_info->adboxes as $adbox) {
|
foreach ($this->publisher_info->adboxes as $adbox) {
|
||||||
if ($adbox->in_rss_feed == 1) {
|
if ($adbox->in_rss_feed == 1) {
|
||||||
if (preg_match("#<noscript>(.*)</noscript>#mis", $adbox->advancedcode, $matches) > 0) {
|
if (preg_match("#<noscript>(.*)</noscript>#mis", $adbox->advancedcode, $matches) > 0) {
|
||||||
@ -75,6 +76,7 @@ class PluginWonderful {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,9 +106,12 @@ class PluginWonderful {
|
|||||||
|
|
||||||
function inject_ads_into_body_copy($body) {
|
function inject_ads_into_body_copy($body) {
|
||||||
if ($this->publisher_info !== false) {
|
if ($this->publisher_info !== false) {
|
||||||
|
if (get_option("plugin-wonderful-enable-body-copy-embedding") == 1) {
|
||||||
return $this->publisher_info->inject_ads_into_body_copy($body, (get_option("plugin-wonderful-use-standardcode") == 1));
|
return $this->publisher_info->inject_ads_into_body_copy($body, (get_option("plugin-wonderful-use-standardcode") == 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return $body;
|
||||||
|
}
|
||||||
|
|
||||||
function set_up_menu() {
|
function set_up_menu() {
|
||||||
add_options_page('Plugin Wonderful', __("Plugin Wonderful", 'plugin-wonderful'), 5, __FILE__, array($this, "plugin_wonderful_main"));
|
add_options_page('Plugin Wonderful', __("Plugin Wonderful", 'plugin-wonderful'), 5, __FILE__, array($this, "plugin_wonderful_main"));
|
||||||
|
Loading…
Reference in New Issue
Block a user