function hocwp_setup_theme_login_enqueue_scripts()
{
    $login_settings = get_option('hocwp_user_login');
    if ((bool) hocwp_get_value_by_key($login_settings, 'login_with_google')) {
        hocwp_google_plus_client_script();
    }
}
Ejemplo n.º 2
0
function hocwp_setup_theme_admin_scripts()
{
    global $pagenow;
    if ('post-new.php' == $pagenow || 'post.php' == $pagenow) {
        $post_type = hocwp_get_current_post_type();
        if ('hocwp_slider' == $post_type) {
            add_filter('hocwp_use_color_picker', '__return_true');
        }
    }
    hocwp_admin_enqueue_scripts();
    $jquery_ui_datetime_picker = apply_filters('hocwp_admin_jquery_datetime_picker', false);
    if ((bool) $jquery_ui_datetime_picker) {
        hocwp_enqueue_jquery_ui_datepicker();
    }
    if ('profile.php' == $pagenow) {
        hocwp_google_plus_client_script();
    }
}