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