Exemple #1
0
function documentation_public_init($args)
{
    extract($args);
    if ($controller == 'documentation_nodes') {
        if (in_array($action, array('index', 'show', 'search'))) {
            wp_enqueue_script('public-documentation-tree', mvc_js_url('hierarchical-documentation', 'public_documentation_tree.js'), array('jquery'), null, true);
            wp_enqueue_style('public-documentation-tree', mvc_css_url('hierarchical-documentation', 'public_documentation.css'));
        }
    }
}
Exemple #2
0
function surveys_on_mvc_admin_init($args)
{
    //error_log(print_r($args, true));
    extract($args);
    if (in_array($action, array('add', 'edit'))) {
        wp_register_style('mvc_surveys_admin', mvc_css_url('ease-surveys', 'admin'));
        //wp_enqueue_style('mvc_survey_admin');
        wp_enqueue_style('mvc_surveys_admin');
        //wp_register_script('mvc_admin', mvc_js_url('ease-surveys', 'admin'));
        //wp_enqueue_script('mvc_admin');
        wp_enqueue_script('mvc_surveys_admin', mvc_js_url('ease-surveys', 'admin'), array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse', 'jquery-ui-accordion', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable'), null, true);
    }
}
Exemple #3
0
function events_calendar_on_mvc_admin_init($options)
{
    wp_register_style('mvc_admin', mvc_css_url('events-calendar-example', 'admin'));
    wp_enqueue_style('mvc_admin');
}
function animelists_enqueue_scripts($options)
{
    wp_register_style('animelists_style', mvc_css_url('anime-list', 'anime-lists.css'));
    wp_enqueue_style('animelists_style');
}
function supramongodb_on_mvc_admin_init($options)
{
    wp_register_style('mongodb-style', mvc_css_url('supra-mongodb-manager', 'main'));
    wp_enqueue_style('mongodb-style');
    wp_enqueue_script('mongodb-script', mvc_js_url('supra-mongodb-manager', 'main'), array('jquery'));
}