Example #1
0
<?php

global $section_values, $current_section, $section_settings;
?>
<div class="sb-section"<?php 
wp_sb_editing_section();
?>
>
    <div class="container">
        <h1<?php 
wp_sb_editing_field('title');
?>
><?php 
echo esc_html(wp_sb_get_field_value('title'));
?>
</h1>
        <p<?php 
wp_sb_editing_field('tagline');
?>
><?php 
echo esc_html(wp_sb_get_field_value('tagline'));
?>
</p>
        <div<?php 
wp_sb_editing_field('contents');
?>
>
            <?php 
$contents = wp_sb_get_field_value('contents');
$backup_values = $section_values;
$backup_section = $current_section;
Example #2
0
<?php

$settings = array('tag' => 'header-1', 'fields' => array('title' => array('type' => 'inline', 'default' => 'Hello, world!'), 'tagline' => array('type' => 'inline', 'default' => 'Hello, world!'), 'button' => array('type' => 'button', 'default' => 'Hello, world!')), 'settings' => array('bg' => array('img_url' => '', 'img_id' => '', 'bg_color' => '', 'bg_type' => ''), 'content_box' => array('bg_color' => '', 'opacity' => '', 'text_color' => ''), 'typography' => array('font' => '', 'size' => '', 'color' => ''), 'align' => 'left'));
?>
<div class="section"<?php 
wp_sb_editing_section($settings);
?>
>

    <div class="container">
        <h1<?php 
wp_sb_editing_field('title');
?>
>Hello, world!</h1>
        <p<?php 
wp_sb_editing_field('title');
?>
>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
        <p><a<?php 
wp_sb_editing_field('button', array('button_style' => 'btn-primary', 'size' => 'btn-lg'));
?>
 href="#" class="btn btn-primary btn-lg">Learn more ยป</a></p>
    </div>

</div>