Ejemplo n.º 1
0
function stpb_carousel($function_name, $name = '', $values = array())
{
    ?>
     <h2 class="stpb_title"><?php 
    _e('Carousel', 'smooththemes');
    ?>
</h2>
    <?php 
    stpb_gallery($function_name, $name, $values);
}
                <h4><?php 
    _e('Title', 'smooththemes');
    ?>
</h4>
                <input type="text"  class="group-name" group-name="<?php 
    echo $affter_name . '[data][title]';
    ?>
" value="<?php 
    echo esc_attr($values['data']['title']);
    ?>
" />
            </label>
        </div>
        <div class="lb-stdive"></div>
        <div class="item-gr">
            <label>
                <h4><?php 
    _e('Content', 'smooththemes');
    ?>
</h4>
                <textarea rows="10" class="group-name" group-name="<?php 
    echo $affter_name . '[data][content]';
    ?>
" ><?php 
    echo esc_attr($values['data']['content']);
    ?>
</textarea>
            </label>
            <span class="desc"><?php 
    _e('Arbitrary text or HTML', 'smooththemes');
    ?>
</span>
        </div>
        <div class="lb-stdive"></div>
        <div class="item-gr">
            <h4><?php 
    _e('Automatically add paragraphs', 'smooththemes');
    ?>
</h4>
            <input type="checkbox" group-name="<?php 
    echo $affter_name . '[data][autop]';
    ?>
"  class="group-name lb-ibutton"  <?php 
    echo $values['data']['autop'] == 1 ? ' checked="checked"  ' : '';
    ?>
 value="1" />
        </div>
    </div>