示例#1
0
function adinj_tab_debug()
{
    $ops = adinj_options();
    adinj_postbox_start(__("Debugging", 'adinj'), 'debugging');
    adinj_add_checkbox('debug_mode');
    ?>
Enable debug mode
	
	<p>If you are not sure why ads aren't appearing, or why they are appearing, enable debug mode and look at the debug information (search for 'ADINJ DEBUG') in the HTML of your content pages.</p>
	
	<?php 
    if (adinj_problem_with_wpminify_check()) {
        echo adinj_get_problem_with_wpminify_message();
    }
    adinj_debug_information();
    ?>
	
	<p></p>
	
	<p>If you want to restore all settings (excluding the ad contents) to their default values use this button.</p>
	
	<input type="submit" name="adinj_action" value="<?php 
    _e('Reset to Default', 'adinj');
    ?>
" />
	
	<p>You can delete the database settings if you are going to uninstall Ad Injection (they will be automatically deleted if you uninstall via WordPress as well).</p>
	
	<input type="submit" name="adinj_action" value="<?php 
    _e('Delete settings from DB', 'adinj');
    ?>
" />
	
	<p>This button will delete all your Ad Injection widgets.</p>
	
	<input type="submit" name="adinj_action" value="<?php 
    _e('Delete widget settings from DB', 'adinj');
    ?>
" />
	
	<?php 
    adinj_postbox_end();
}
示例#2
0
function adinj_add_exclude_row_td($prefix, $setting, $class, $all)
{
    if (adinj_ticked($setting) || adinj_ticked($prefix . $setting)) {
        ?>
		<td style="background-color:#ff9999"><?php 
        adinj_add_checkbox($prefix . $setting, $class, $all);
        ?>
</td>
		<?php 
    } else {
        ?>
		<td style="background-color:#ccff99"><?php 
        adinj_add_checkbox($prefix . $setting, $class, $all);
        ?>
</td>
		<?php 
    }
}