/** 
  * 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>';
 }
		
		<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
0
 /**
  * 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
0
</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>