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


PHP wpgrade::require_coremodule方法代码示例

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


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

示例1: information

#
# All relevant configuration information (args, sections, tabs) have been
# moved to redux-* files located in the same section as this file.
#
# The setup function, ie. setup_framework_options has been renamed to
# wpgrade_call_redux_options_setup since this is the only place it's used
# and god knows "framework" is what everyone and their monther calls
# anything they make these days.
#
# The use of the global has been removed in favor of using a proper Options
# object at the theme level, which accepts more then just redux as a
# source and may have multiple sources. This is both more flexible
# and a cleaner implementation.
#
# The file has also been purged of code that had no effect, with the
# exception of configuration file commented out entries, since those are
# generally helpful.
#
wpgrade::require_coremodule('redux3');
$currentpath = dirname(__FILE__) . DIRECTORY_SEPARATOR;
global $redux_sections;
$wpgrade_redux_coremodule = 'redux3';
# used inside configuration files
$redux_args = (include $currentpath . 'redux-args' . EXT);
$redux_sections = (include $currentpath . 'redux-sections' . EXT);
$redux_tabs = (include $currentpath . 'redux-tabs' . EXT);
$redux_sections = apply_filters(wpgrade::$shortname . '_theme_options_config', $redux_sections);
$redux = new ReduxFramework($redux_sections, $redux_args, $redux_tabs);
wpgrade::resolve('redux-instance', $redux);
// register callbacks
require $currentpath . 'callbacks' . EXT;
开发者ID:qhuit,项目名称:Tournesol,代码行数:31,代码来源:bootstrap.php


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