<td>
				<label title="dynamic_flickr_data_type"><?php 
_e('Data Type', 'slider_pro');
?>
</label>				
				<select name="slide[<?php 
echo $counter;
?>
][settings][dynamic_flickr_data_type]">
					<?php 
$data_type = sliderpro_get_slide_setting($slide_settings, 'dynamic_flickr_data_type', 'dynamic');
$list = sliderpro_get_settings_list('dynamic_flickr_data_type');
foreach ($list as $entry) {
    $selected = $data_type == $entry ? ' selected="selected"' : '';
    echo '<option' . $selected . ' value="' . $entry . '">' . sliderpro_get_settings_pretty_name($entry) . '</option>';
}
?>
				</select>
			</td>
			
			<td>
				<label title="dynamic_flickr_maximum"><?php 
_e('Maximum', 'slider_pro');
?>
</label>
				<input name="slide[<?php 
echo $counter;
?>
][settings][dynamic_flickr_maximum]" type="text" 
					   value="<?php 
/**
* Create a slide setting field
*/
function sliderpro_create_slide_setting_field($setting_name, $setting_value, $counter)
{
    global $sliderpro_slide_settings;
    $setting = $sliderpro_slide_settings[$setting_name];
    $value = $setting_value == 'default' ? $setting['default_value'] : $setting_value;
    $setting_field_name = '';
    $setting_field_control = '';
    $setting_field_name = '<label title="' . $setting_name . '"><span>' . __($setting['name'], 'slider_pro') . '</span>';
    if ($setting['type'] == 'text') {
        $setting_field_control .= '<input name="slide[' . $counter . '][settings][' . $setting_name . ']" type="text" value="' . $value . '"/>';
    } else {
        if ($setting['type'] == 'checkbox') {
            $checked = $value == true ? ' checked="checked"' : '';
            $setting_field_control .= '<input name="slide[' . $counter . '][settings][' . $setting_name . ']" type="hidden" value="0"/>';
            $setting_field_control .= '<input name="slide[' . $counter . '][settings][' . $setting_name . ']" type="checkbox" value="1"' . $checked . '/>';
        } else {
            if ($setting['type'] == 'color') {
                $setting_field_control .= '<input name="slide[' . $counter . '][settings][' . $setting_name . ']" type="hidden" value="' . $value . '"/>';
                $setting_field_control .= '<input type="button" class="sp-color-picker"/>';
            } else {
                if ($setting['type'] == 'select') {
                    $setting_field_control .= '<select name="slide[' . $counter . '][settings][' . $setting_name . ']">';
                    $list = sliderpro_get_settings_list($setting['list']);
                    foreach ($list as $entry) {
                        $selected = $value == $entry ? ' selected="selected"' : '';
                        $setting_field_control .= '<option value="' . $entry . '"' . $selected . '>' . sliderpro_get_settings_pretty_name($entry) . '</option>';
                    }
                    $setting_field_control .= '</select>';
                }
            }
        }
    }
    $setting_field = '<tr class="setting-field" id="' . $setting_name . '"><td>' . $setting_field_name . '</td><td>' . $setting_field_control . '</td></tr>';
    return $setting_field;
}
     foreach ($sidebar_panel_settings[$category_name][$key] as $setting) {
         $value = $sliderpro_slider_settings[$setting]['default_value'];
         $selected = '';
         if (isset($slider_settings[$setting])) {
             $selected = ' selected="selected"';
             $set_settings[$setting] = $slider_settings[$setting];
         }
         if ($value === true) {
             $value = 'true';
         } else {
             if ($value === false) {
                 $value = 'false';
             }
         }
         if ($sliderpro_slider_settings[$setting]['type'] == 'select') {
             $value = sliderpro_get_settings_pretty_name($value);
         }
         echo SP_IND_4 . '<option' . $selected . ' value="' . $setting . '">' . $sliderpro_slider_settings[$setting]['name'] . ': ' . $value . '</option>' . PHP_EOL;
     }
     echo SP_IND_3 . '</optgroup>' . PHP_EOL;
 }
 echo SP_IND_2 . '</select>' . PHP_EOL;
 echo SP_IND_2 . '<a class="button-secondary display" href="' . admin_url("admin-ajax.php?action=sliderpro_display_slider_settings") . '">Display</a>' . PHP_EOL;
 echo SP_IND_2 . '<table class="settings-container">' . PHP_EOL;
 foreach ($set_settings as $name => $value) {
     echo SP_IND_3 . sliderpro_create_slider_setting_field($name, $value) . PHP_EOL;
 }
 unset($set_settings);
 echo SP_IND_2 . '</table>' . PHP_EOL;
 echo SP_IND_1 . '</div>' . PHP_EOL;
 echo '</div>' . PHP_EOL . PHP_EOL;
    $selected = sliderpro_get_slide_setting($slide_settings, 'dynamic_posts_relation', 'dynamic') == $entry ? 'selected="selected"' : "";
    echo "<option value=\"{$entry}\" {$selected}>" . sliderpro_get_settings_pretty_name($entry) . "</option>";
}
?>
	</select>
	
	
	<select name="slide[<?php 
echo $counter;
?>
][settings][dynamic_posts_orderby]" class="orderby-multiselect">
		<?php 
$list = sliderpro_get_settings_list('dynamic_posts_orderby');
foreach ($list as $entry) {
    $selected = sliderpro_get_slide_setting($slide_settings, 'dynamic_posts_orderby', 'dynamic') == $entry ? 'selected="selected"' : "";
    echo "<option value=\"{$entry}\" {$selected}>" . sliderpro_get_settings_pretty_name($entry) . "</option>";
}
?>
	</select>
	
	
	<div class="spacediv"></div>
	
	
	<select name="slide[<?php 
echo $counter;
?>
][settings][dynamic_posts_order]" class="order-multiselect">
		<?php 
$list = sliderpro_get_settings_list('dynamic_posts_order');
foreach ($list as $entry) {