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


PHP FLBuilderModel::get_help_button_settings方法代码示例

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


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

示例1:

<?php

$settings = FLBuilderModel::get_help_button_settings();
?>
<div id="fl-help-button-form" class="fl-settings-form">

	<h3 class="fl-settings-form-header"><?php 
_e('Help Button Settings', 'fl-builder');
?>
</h3>

	<form id="help-button-form" action="<?php 
FLBuilderAdminSettings::render_form_action('help-button');
?>
" method="post">

		<div class="fl-settings-form-content">
		
			<p>
				<label>
					<input type="checkbox" name="fl-help-button-enabled" value="1" <?php 
checked($settings['enabled'], 1);
?>
 />
					<span><?php 
_e('Enable Help Button', 'fl-builder');
?>
</span>
				</label>
			</p>
			
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:30,代码来源:admin-settings-help-button.php

示例2: render_ui_bar_buttons

 /**
  * Renders the markup for the buttons in the builder's bar.
  *
  * @since 1.6.3
  * @return void
  */
 public static function render_ui_bar_buttons()
 {
     $help_button = FLBuilderModel::get_help_button_settings();
     $enabled_templates = FLBuilderModel::get_enabled_templates();
     $simple_ui = !current_user_can(FLBuilderModel::get_editing_capability());
     $buttons = array('help' => array('label' => '<i class="fa fa-question-circle"></i>', 'show' => $help_button['enabled'] && !$simple_ui), 'upgrade' => array('label' => __('Upgrade!', 'fl-builder'), 'show' => true === FL_BUILDER_LITE), 'buy' => array('label' => __('Buy Now!', 'fl-builder'), 'show' => stristr(home_url(), 'demo.wpbeaverbuilder.com')), 'done' => array('label' => __('Done', 'fl-builder'), 'class' => 'fl-builder-button-primary'), 'tools' => array('label' => __('Tools', 'fl-builder'), 'show' => !FLBuilderModel::is_post_user_template('module') && !$simple_ui), 'templates' => array('label' => __('Templates', 'fl-builder'), 'show' => !FLBuilderModel::is_post_user_template() && true !== FL_BUILDER_LITE && $enabled_templates != 'disabled' && !$simple_ui), 'add-content' => array('label' => __('Add Content', 'fl-builder'), 'show' => !FLBuilderModel::is_post_user_template('module') && !$simple_ui));
     echo '<div class="fl-builder-bar-actions">';
     foreach ($buttons as $slug => $button) {
         if (isset($button['show']) && !$button['show']) {
             continue;
         }
         echo '<span class="fl-builder-' . $slug . '-button fl-builder-button';
         if (isset($button['class'])) {
             echo ' ' . $button['class'];
         }
         echo '">' . $button['label'] . '</span>';
     }
     echo '<div class="fl-clear"></div></div>';
 }
开发者ID:komcdo,项目名称:iSSNA-WordPress,代码行数:25,代码来源:class-fl-builder.php

示例3: 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


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