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


PHP FLBuilderModel::get_branding_icon方法代码示例

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


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

示例1: render_page_heading

 /** 
  * Renders the admin settings page heading.
  *
  * @since 1.0
  * @return void
  */
 public static function render_page_heading()
 {
     $icon = FLBuilderModel::get_branding_icon();
     $name = FLBuilderModel::get_branding();
     if (!empty($icon)) {
         echo '<img src="' . $icon . '" />';
     }
     echo '<span>' . sprintf(_x('%s Settings', '%s stands for custom branded "Page Builder" name.', 'fl-builder'), FLBuilderModel::get_branding()) . '</span>';
 }
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:15,代码来源:class-fl-builder-admin-settings.php

示例2: _e

		
		<h4><?php 
_e('Plugin Name', 'fl-builder');
?>
</h4>
		<input type="text" name="fl-branding" value="<?php 
echo esc_html(FLBuilderModel::get_branding());
?>
" class="regular-text" />

		<h4><?php 
_e('Plugin Icon URL', 'fl-builder');
?>
</h4>
		<input type="text" name="fl-branding-icon" value="<?php 
echo esc_html(FLBuilderModel::get_branding_icon());
?>
" class="regular-text" />
		
		<br /><br />
		
		<h3 class="fl-settings-form-header"><?php 
_e('Theme Branding', 'fl-builder');
?>
</h3>
		<p><?php 
_e('White label the page builder theme using the settings below.', 'fl-builder');
?>
</p>
		
		<?php 
开发者ID:onedaylabs,项目名称:onedaylabs.com,代码行数:30,代码来源:admin-settings-branding.php

示例3: render_ui_bar_title

 /**
  * Renders the markup for the title in the builder's bar.
  *
  * @since 1.6.3
  * @return void
  */
 public static function render_ui_bar_title()
 {
     global $wp_the_query;
     $post_id = $wp_the_query->post->ID;
     // Get the bar title.
     if (FLBuilderModel::is_post_user_template()) {
         $title = sprintf(__('Template: %s', 'fl-builder'), get_the_title($post_id));
     } else {
         $title = FLBuilderModel::get_branding();
     }
     // Render the bar title.
     if ('' == FLBuilderModel::get_branding_icon()) {
         echo '<span class="fl-builder-bar-title fl-builder-bar-title-no-icon">' . $title . '</span>';
     } else {
         echo '<span class="fl-builder-bar-title">';
         echo '<img src="' . FLBuilderModel::get_branding_icon() . '" /> ';
         echo '<span>' . $title . '</span></span>';
     }
 }
开发者ID:komcdo,项目名称:iSSNA-WordPress,代码行数:25,代码来源:class-fl-builder.php

示例4: elseif

</span>
		</span>
		<?php 
    } elseif (FLBuilderModel::get_branding_icon() == '') {
        ?>
		<span class="fl-builder-bar-title fl-builder-bar-title-no-icon">
			<?php 
        echo FLBuilderModel::get_branding();
        ?>
		</span>
		<?php 
    } else {
        ?>
		<span class="fl-builder-bar-title">
			<img src="<?php 
        echo FLBuilderModel::get_branding_icon();
        ?>
" />
			<span><?php 
        echo FLBuilderModel::get_branding();
        ?>
</span>
		</span>
		<?php 
    }
    ?>
		<div class="fl-builder-bar-actions">
			<?php 
    if ($help_button['enabled']) {
        ?>
			<span class="fl-builder-help-button fl-builder-button"><i class="fa fa-question-circle"></i></span>
开发者ID:karthikakamalanathan,项目名称:wp-cookieLawInfo,代码行数:31,代码来源:ui.php


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