<?php
/**
 * Created by ra on 1/13/2015.
 */
$taxonomy_name = td_util::get_http_post_val('taxonomy_name');
?>





<!-- DISPLAY VIEW -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title"><?php _e('ARTICLE DISPLAY VIEW', TD_THEME_NAME); ?></span>
        <p><?php _e('Select a module type, this is how your article list will be displayed. For custom modules or tuning, read <a target="_blank" href="http://forum.tagdiv.com/api-modules-introduction/">the module API</a>', TD_THEME_NAME); ?></p>
    </div>
    <div class="td-box-control-full td-panel-module">
        <?php
        echo td_panel_generator::visual_select_o(array(
            'ds' => 'td_taxonomy',
            'item_id' => $taxonomy_name,
            'option_id' => 'tds_taxonomy_page_layout',
            'values' => td_panel_generator::helper_display_modules('enabled_on_loops')
        ));
        ?>
    </div>
</div>



<!-- Custom Sidebar + position -->
<div class="td-box-row">
    <div class="td-box-description">
        <span class="td-box-title"><?php _e('CUSTOM SIDEBAR + POSITION', TD_THEME_NAME); ?></span>
        <p><?php _e('Sidebar position and custom sidebars', TD_THEME_NAME); ?></p>
    </div>
    <div class="td-box-control-full td-panel-sidebar-pos">
        <div class="td-display-inline-block">
            <?php
            echo td_panel_generator::visual_select_o(array(
                'ds' => 'td_taxonomy',
                'item_id' => $taxonomy_name,
                'option_id' => 'tds_taxonomy_sidebar_pos',
                'values' => array(
                    array('text' => '', 'title' => 'Sidebar Left', 'val' => 'sidebar_left', 'img' => TDC_URL_LEGACY . '/assets/images/panel/sidebar/sidebar-left.png'),
                    array('text' => '', 'title' => 'No Sidebar', 'val' => 'no_sidebar', 'img' => TDC_URL_LEGACY . '/assets/images/panel/sidebar/sidebar-full.png'),
                    array('text' => '', 'title' => 'Sidebar Right', 'val' => '', 'img' => TDC_URL_LEGACY . '/assets/images/panel/sidebar/sidebar-right.png')
                )
            ));
            ?>
            <div class="td-panel-control-comment td-text-align-right"><?php _e('Select sidebar position', TD_THEME_NAME); ?></div>
        </div>
        <div class="td-display-inline-block td_sidebars_pulldown_align">
            <?php
            echo td_panel_generator::sidebar_pulldown(array(
                'ds' => 'td_taxonomy',
                'item_id' => $taxonomy_name,
                'option_id' => 'tds_taxonomy_sidebar'
            ));
            ?>
            <div class="td-panel-control-comment td-text-align-right"><?php _e('Create or select an existing sidebar', TD_THEME_NAME); ?></div>
        </div>
    </div>
</div>