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


PHP FLBuilderModel::get_categorized_modules方法代码示例

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


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

示例1: render_ui

 /**
  * Renders the markup for the builder interface.
  *
  * @since 1.0
  * @return void
  */
 public static function render_ui()
 {
     global $wp_the_query;
     if (FLBuilderModel::is_builder_active()) {
         $post_id = $wp_the_query->post->ID;
         $categories = FLBuilderModel::get_categorized_modules();
         $enabled_templates = FLBuilderModel::get_enabled_templates();
         $help_button = FLBuilderModel::get_help_button_settings();
         include FL_BUILDER_DIR . 'includes/ui.php';
         include FL_BUILDER_DIR . 'includes/js-config.php';
     }
 }
开发者ID:karthikakamalanathan,项目名称:wp-cookieLawInfo,代码行数:18,代码来源:class-fl-builder.php

示例2: render_ui

 /**
  * Renders the markup for the builder interface.
  *
  * @since 1.0
  * @return void
  */
 public static function render_ui()
 {
     global $wp_the_query;
     if (FLBuilderModel::is_builder_active()) {
         $post_id = $wp_the_query->post->ID;
         $help_button = FLBuilderModel::get_help_button_settings();
         $enabled_templates = FLBuilderModel::get_enabled_templates();
         $color_presets = FLBuilderModel::get_color_presets();
         $simple_ui = !current_user_can(FLBuilderModel::get_editing_capability());
         $categories = FLBuilderModel::get_categorized_modules();
         $row_templates = null;
         $module_templates = null;
         if (!FLBuilderModel::is_post_user_template('module') && !$simple_ui) {
             if (class_exists('FLBuilderTemplatesOverride')) {
                 if (FLBuilderTemplatesOverride::show_modules()) {
                     $module_templates = FLBuilderTemplatesOverride::get_selector_data('module');
                 }
                 if (FLBuilderTemplatesOverride::show_rows() && !FLBuilderModel::is_post_user_template('row')) {
                     $row_templates = FLBuilderTemplatesOverride::get_selector_data('row');
                 }
             }
             include FL_BUILDER_DIR . 'includes/ui-panel.php';
         }
         include FL_BUILDER_DIR . 'includes/ui-bar.php';
         include FL_BUILDER_DIR . 'includes/ui-fields.php';
         include FL_BUILDER_DIR . 'includes/ui-js-templates.php';
         include FL_BUILDER_DIR . 'includes/ui-js-config.php';
     }
 }
开发者ID:komcdo,项目名称:iSSNA-WordPress,代码行数:35,代码来源:class-fl-builder.php

示例3: _e

			<?php 
    _e('Override network settings?', 'fl-builder');
    ?>
		</label>
		<?php 
}
?>
		
		<div class="fl-settings-form-content">

			<p><?php 
_e('Check or uncheck modules below to enable or disable them.', 'fl-builder');
?>
</p>
			<?php 
$categories = FLBuilderModel::get_categorized_modules(true);
$enabled_modules = FLBuilderModel::get_enabled_modules();
$checked = in_array('all', $enabled_modules) ? 'checked' : '';
?>
			<label>
				<input class="fl-module-all-cb" type="checkbox" name="fl-modules[]" value="all" <?php 
echo $checked;
?>
 />
				<?php 
_ex('All', 'Plugin setup page: Modules.', 'fl-builder');
?>
			</label>
			<?php 
foreach ($categories as $title => $modules) {
    ?>
开发者ID:nullality,项目名称:FEWD-SEA-7,代码行数:31,代码来源:admin-settings-modules.php


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