function stpb_iconbox($pre_name = '', $data_values = array(), $post = false, $no_value = false, $interface = false)
    {
        ?>
        <div class="item" >
            <div class="left width-50">
                <?php 
        stpb_input_text($pre_name . '[title]', $data_values['title']);
        ?>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Title', 'smooththemes');
        ?>
</strong>
                <span><?php 
        _e('Enter something.', 'smooththemes');
        ?>
</span>
            </div>
        </div>

        <div class="item" >
            <div class="left width-50">
                <?php 
        stpb_input_textarea($pre_name . '[content]', $data_values['content']);
        ?>
                <span class="desc"><?php 
        _e('Arbitrary text or HTML', 'smooththemes');
        ?>
</span>
                <p><label><?php 
        stpb_input_checkbox($pre_name . '[autop]', $data_values['autop'], 1);
        ?>
&nbsp;<?php 
        _e('Automatically add paragraphs', 'smooththemes');
        ?>
</label></p>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Content', 'smooththemes');
        ?>
</strong>
                <span><?php 
        _e('Enter something.', 'smooththemes');
        ?>
</span>
            </div>
        </div>


        <div class="item show-on-select-change sl-sr-icontypes" show-on="icon">
            <div class="left width-50">
                <?php 
        stpb_input_select_one($pre_name . '[text_align]', $data_values['text_align'], array('left' => __('Left', 'smooththemes'), 'center' => __('Center', 'smooththemes'), 'right' => __('right', 'smooththemes')));
        ?>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Text algin', 'smooththemes');
        ?>
</strong>
            </div>
        </div>


        <div  class="item" show-on="">
            <strong><?php 
        _e('Icon', 'smooththemes');
        ?>
</strong>
            <?php 
        stpb_input_icon_popup($pre_name . '[icon]', $data_values['icon']);
        ?>
        </div>

        <div class="item" >
            <div class="left width-50">
                <?php 
        stpb_input_select_one($pre_name . '[icon_size]', $data_values['icon_size'], array('small' => __('Small', 'smooththemes'), 'medium' => __('Medium', 'smooththemes'), 'large' => __('Large', 'smooththemes')));
        ?>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Icon Size', 'smooththemes');
        ?>
</strong>
                <span><?php 
        _e('Select Icon size to display ?', 'smooththemes');
        ?>
</span>
            </div>
        </div>


         <div class="item">
             <div class="left width-50">
                 <?php 
        stpb_input_effect($pre_name . '[effect]', $data_values['effect']);
        ?>
             </div>
             <div class="right  width-50">
                 <strong><?php 
        _e('Effect', 'smooththemes');
        ?>
</strong>
                 <span><?php 
        _e('Special Effect for this Icon', 'smooththemes');
        ?>
</span>
             </div>
         </div>

        <div class="item" >
            <div class="left width-50">
                <?php 
        stpb_input_select_one($pre_name . '[icon_position]', $data_values['icon_position'], array('top' => __('Top', 'smooththemes'), 'left' => __('Left', 'smooththemes'), 'right' => __('Right', 'smooththemes')));
        ?>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Icon Position', 'smooththemes');
        ?>
</strong>
                <span><?php 
        _e('Where the Icon display ?', 'smooththemes');
        ?>
</span>
            </div>
        </div>

        <div class="item" >
            <div class="left width-50">
                <?php 
        stpb_input_select_one($pre_name . '[color_type]', $data_values['color_type'], array('default' => __('Default- Inherit form theme settings', 'smooththemes'), 'custom' => __('Custom', 'smooththemes')), '.icon_color_type');
        ?>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Icon Color', 'smooththemes');
        ?>
</strong>
            </div>
        </div>

         <div class="item show-on-select-change icon_color_type" show-on="custom">
            <div class="left width-50">
                <?php 
        stpb_input_color($pre_name . '[color]', $data_values['color']);
        ?>
            </div>
            <div class="right  width-50">
                <strong><?php 
        _e('Icon Custom Color', 'smooththemes');
        ?>
</strong>
            </div>
        </div>

        <?php 
    }
Пример #2
0
/**
 * hook stpb_col_settings
 * @param array $settings_value
 */
function stpb_layout_column_settings($settings_value = array())
{
    $pre_name = '[settings]';
    if (!is_array($settings_value)) {
        $settings_value = array();
    }
    ?>

    <div class="item">
        <div class="left width-50">
            <?php 
    stpb_input_select_one($pre_name . '[vertical_align]', $settings_value['vertical_align'], array('top' => __('Top', 'smooththemes'), 'middle' => __('Middle', 'smooththemes'), 'bottom' => __('Bottom', 'smooththemes')));
    ?>
        </div>
        <div class="right  width-50">
            <strong><?php 
    _e('Vertical align', 'smooththemes');
    ?>
</strong>
        </div>
    </div>

    <div class="item">
        <div class="left width-50">
            <?php 
    stpb_input_effect($pre_name . '[effect]', $settings_value['effect']);
    ?>
        </div>
        <div class="right  width-50">
            <strong><?php 
    _e('Effect', 'smooththemes');
    ?>
</strong>
            <span><?php 
    _e('Special Effect for this Image', 'smooththemes');
    ?>
</span>
        </div>
    </div>

    <div class="item">
        <div class="left width-50">
            <?php 
    stpb_input_text($pre_name . '[custom_class]', $settings_value['custom_class']);
    ?>
        </div>
        <div class="right width-50">
            <strong><?php 
    _e('Layout Class', 'smooththemes');
    ?>
</strong>
            <span><?php 
    _e('Custom Layout Class class name for your own style', 'smooththemes');
    ?>
</span>
        </div>
    </div>

    <div class="item">
        <div class="left width-50">
            <?php 
    stpb_input_text($pre_name . '[custom_id]', $settings_value['custom_id']);
    ?>
        </div>
        <div class="right width-50">
            <strong><?php 
    _e('Layout ID', 'smooththemes');
    ?>
</strong>
            <span><?php 
    _e('Custom Layout ID id for your own style or script', 'smooththemes');
    ?>
</span>
        </div>
    </div>

<?php 
}