wrap a function in a check
This commit is contained in:
parent
b6d29f3e49
commit
adab29eefd
@ -103,16 +103,18 @@ class PluginWonderful {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function render_widget_control($adboxid) {
|
function render_widget_control($adboxid) {
|
||||||
foreach ($this->publisher_info->adboxes as $box) {
|
if ($this->publisher_info !== false) {
|
||||||
if ($box->adboxid == $adboxid) {
|
foreach ($this->publisher_info->adboxes as $box) {
|
||||||
echo '<input type="hidden" name="pw[_nonce]" value="' . wp_create_nonce("plugin-wonderful") . '" />';
|
if ($box->adboxid == $adboxid) {
|
||||||
echo '<label>';
|
echo '<input type="hidden" name="pw[_nonce]" value="' . wp_create_nonce("plugin-wonderful") . '" />';
|
||||||
echo '<input type="checkbox" name="pw[center][' . $adboxid . ']" ' . (($box->center_widget == 1) ? "checked" : "") . ' /> ';
|
echo '<label>';
|
||||||
echo 'Wrap ad in <center> tags';
|
echo '<input type="checkbox" name="pw[center][' . $adboxid . ']" ' . (($box->center_widget == 1) ? "checked" : "") . ' /> ';
|
||||||
echo '</label>';
|
echo 'Wrap ad in <center> tags';
|
||||||
break;
|
echo '</label>';
|
||||||
}
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handle_activation() {
|
function handle_activation() {
|
||||||
|
Loading…
Reference in New Issue
Block a user