Example #1
0
function bsa_pro_sub_menu_creator()
{
    ?>
	<div class="wrap" style="display:none">
		<?php 
    if (get_option("bsa_pro_plugin_purchase_code") == '' || get_option("bsa_pro_plugin_purchase_code") == null) {
        echo '
			<div class="updated settings-error">
				<p><strong>NOTE!</strong> Enter the <strong>purchase code</strong> in the settings to use all functions of ADS PRO! Thanks!</p>
			</div>';
    }
    ?>
		<?php 
    bsaCreateAdTemplate();
    ?>
		<?php 
    require_once 'creator.php';
    ?>
	</div>
<?php 
}
Example #2
0
function bsaCreateCustomAdTemplates()
{
    $custom_templates = get_option('bsa_pro_plugin_custom_templates');
    if ($custom_templates) {
        $custom_templates = explode(',', $custom_templates);
        foreach ($custom_templates as $custom_template) {
            if ($custom_template != '') {
                $template = explode('--', $custom_template);
                $width = $template[0];
                $height = $template[1];
                bsaCreateAdTemplate($width, $height);
            }
        }
    }
}