is_action('save')) { update_option('ads-bbpress', $controls->data); $controls->messages = __('Updated'); } else { $controls->data = get_option('ads-bbpress'); } $controls->show_key = isset($controls->data['test']); ?>

bbPress Ads

Use PHP code and $count to selectively inject in a loop. $count == 1 is before or inside the first block.

show(); ?>
init(); ?>

checkbox('test') ?>

. .

button('save', __('Update')); ?>

textarea('bbp_template_before_single_forum') ?>

textarea('bbp_template_after_single_forum') ?>

textarea('bbp_template_before_single_topic') ?>

textarea('bbp_template_after_single_topic') ?>

.

textarea('bbp_theme_before_reply_content') ?>

textarea('bbp_theme_after_reply_content') ?>

textarea('bbp_template_before_topics_loop') ?>

textarea('bbp_template_after_topics_loop') ?>

textarea('bbp_template_before_replies_loop') ?>

textarea('bbp_template_after_replies_loop') ?>

textarea('get_template_part_loop_single-topic') ?>

textarea('get_template_part_loop_single-reply') ?>

textarea('bbp_theme_before_topic_form_notices') ?>

textarea('bbp_theme_before_reply_form_notices') ?>

button('save', __('Update')); ?>