Пример #1
0
function fmc_featured()
{
    if (function_exists('current_user_can')) {
        if (!current_user_can('manage_options')) {
            die('Access Denied');
        }
    } else {
        die('Access Denied');
    }
    require_once WD_FMC_DIR . '/featured/featured.php';
    wp_register_style('fmc_featured', WD_FMC_URL . '/featured/style.css', array(), get_option("wd_form_maker_version"));
    wp_print_styles('fmc_featured');
    spider_featured('contact-form-maker');
}
Пример #2
0
function wds_featured()
{
    if (function_exists('current_user_can')) {
        if (!current_user_can('manage_options')) {
            die('Access Denied');
        }
    } else {
        die('Access Denied');
    }
    require_once WD_S_DIR . '/featured/featured.php';
    wp_register_style('wds_featured', WD_S_URL . '/featured/style.css', array(), get_option("wds_version"));
    wp_print_styles('wds_featured');
    spider_featured('slider_wd');
}
Пример #3
0
function bwg_featured()
{
    if (function_exists('current_user_can')) {
        if (!current_user_can('manage_options')) {
            die('Access Denied');
        }
    } else {
        die('Access Denied');
    }
    require_once WD_BWG_DIR . '/featured/featured.php';
    wp_register_style('bwg_featured', WD_BWG_URL . '/featured/style.css', array(), wd_bwg_version());
    wp_print_styles('bwg_featured');
    spider_featured('photo-gallery');
}