本文整理汇总了PHP中FLBuilderModel::get_theme_branding方法的典型用法代码示例。如果您正苦于以下问题:PHP FLBuilderModel::get_theme_branding方法的具体用法?PHP FLBuilderModel::get_theme_branding怎么用?PHP FLBuilderModel::get_theme_branding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FLBuilderModel
的用法示例。
在下文中一共展示了FLBuilderModel::get_theme_branding方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: white_label_theme_gettext
/**
* White labels the builder theme using the gettext filter
* to cover areas that we can't access like the Customizer.
*
* @since 1.6.4.4
* @return string
*/
public static function white_label_theme_gettext($text)
{
if (is_admin() && 'Beaver Builder Theme' == $text) {
$theme_data = FLBuilderModel::get_theme_branding();
if (!empty($theme_data['name'])) {
$text = $theme_data['name'];
}
}
return $text;
}
示例2: _e
?>
" 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
$theme_data = FLBuilderModel::get_theme_branding();
?>
<h4><?php
_e('Theme Name', 'fl-builder');
?>
</h4>
<input type="text" name="fl-theme-branding-name" value="<?php
echo esc_html($theme_data['name']);
?>
" class="regular-text" />
<h4><?php
_e('Theme Description', 'fl-builder');
?>
</h4>