<?php
$slides = Thememakers_Entity_Slider::get_slides();
$slider_types = Thememakers_Entity_Slider::get_sliders_types();
?>

<?php _e("Slider group", THEMEMAKERS_THEME_FOLDER_NAME) ?>:<br />
<?php if (!empty($slides)): ?>
    <select name="page_slider">
        <option value=""><?php _e("Choose sliders group", THEMEMAKERS_THEME_FOLDER_NAME) ?></option>
        <?php foreach ($slides as $key => $slide) : ?>
            <?php if (isset($slide['name'])): ?>
                <?php if ($slide['name']): ?>
                    <option <?php echo ($page_slider == $slide['name'] ? "selected" : "") ?> value="<?php echo $slide['name'] ?>"><?php echo $slide['name'] ?></option>
                <?php endif; ?>
            <?php endif; ?>
        <?php endforeach; ?>
    </select>
<?php else: ?>
<?php _e("No one slider exists", THEMEMAKERS_THEME_FOLDER_NAME) ?>
<?php endif; ?>
<br />
<br />
<?php _e("Page slider type", THEMEMAKERS_THEME_FOLDER_NAME) ?>:<br />
<select name="page_slider_type">
    <?php foreach ($slider_types as $key => $type) : ?>
        <option <?php echo ($page_slider_type == $key ? "selected" : "") ?> value="<?php echo $key ?>"><?php echo $type ?></option>
    <?php endforeach; ?>
</select>

