本文整理汇总了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>';
}
示例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
示例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>';
}
}
示例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>