当前位置: 首页>>代码示例>>PHP>>正文


PHP wpgrade::get_redux_arg方法代码示例

本文整理汇总了PHP中wpgrade::get_redux_arg方法的典型用法代码示例。如果您正苦于以下问题:PHP wpgrade::get_redux_arg方法的具体用法?PHP wpgrade::get_redux_arg怎么用?PHP wpgrade::get_redux_arg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wpgrade的用法示例。


在下文中一共展示了wpgrade::get_redux_arg方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: remove_customizer_controls

function remove_customizer_controls($wp_customize)
{
    $sections = wpgrade::get_redux_arg('remove_customizer_sections');
    if (!empty($sections) && is_array($sections)) {
        foreach ($sections as $key => $section) {
            $wp_customize->remove_section($section);
        }
    }
}
开发者ID:qhuit,项目名称:Tournesol,代码行数:9,代码来源:redux-extend.php

示例2: foreach

    }
    // Style registers and enqueues
    // ----------------------------
    // auto-enqueue registered styles
    foreach ($themeconfiguration['resources']['auto-enqueue-styles'] as $stylename) {
        wp_enqueue_style($stylename);
    }
}
/*  for PRO users! - 
* We would like to GetToKnowYourWorkBetter
*
* Invoked by wpgrade_callback_themesetup
*/
function wpgrade_callback_gtkywb()
{
    $themedata = wpgrade::themedata();
    $response = wp_remote_post(REQUEST_PROTOCOL . '//pixelgrade.com/stats', array('method' => 'POST', 'body' => array('send_stats' => true, 'theme_name' => wpgrade::shortname(), 'theme_version' => $themedata->get('Version'), 'domain' => $_SERVER['HTTP_HOST'], 'permalink' => get_permalink(1), 'is_child' => is_child_theme())));
}
/*  for PRO users! - 
* We would like to GetToKnowYourWorkBetter
*
*/
function wpgrade_add_redux_custom_style()
{
    wp_enqueue_style('redux-custom-css', wpgrade::coreresourceuri('admin-panel/css/admin-panel.css'), array(), time(), 'all');
    wp_enqueue_script('redux-custom-js', wpgrade::coreresourceuri('admin-panel/js/admin-panel.js'), array('jquery', 'redux-js', 'wp-ajax-response'), time(), true);
}
// Enqueue the admin page CSS and JS ONLY on themeoptions page
if (isset($_GET['page']) && $_GET['page'] == wpgrade::get_redux_arg('page_slug')) {
    add_action('admin_enqueue_scripts', 'wpgrade_add_redux_custom_style', 99999999);
}
开发者ID:qhuit,项目名称:Tournesol,代码行数:31,代码来源:resources.php


注:本文中的wpgrade::get_redux_arg方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。