function ocmx_ads_refresh() { require_once TEMPLATEPATH . "/ocmx/theme-setup/theme-options.php"; $ad_count = get_option($_GET["option"]); ocmx_ad_form($_GET["prefix"], $_GET["count"], $_GET["width"]); die(""); }
function ocmx_ad_loop($input_name, $input_prefix, $width = 0) { if (get_option($input_name) == 0 || !get_option($input_name)) { ?> <li id="<?php echo $input_name; ?> _no_ads"><?php _e("You have not set any adverts."); ?> </li> <?php } for ($i = 1; $i <= get_option($input_name); $i++) { ?> <li><?php ocmx_ad_form($input_prefix, $i, $width); ?> </li> <?php } ?> <?php }