<table>
	<?php if(count($settings) > 0): $i = 0; ?>

	<?php foreach($settings as $key => $value): ?>

	<?php if( !isset($value, $value['type'], $value['default'], $value['description']) || !is_array($value)) continue; ?>

	<tr <?php if(isset($value['dependsOn'])) echo 'style="display:none;"'; ?>>
		<td><?php echo $value['description']; ?></td>
		<td><?php echo SlideshowPluginSlideshowSettingsHandler::getInputField(htmlspecialchars(SlideshowPluginSlideshowSettingsHandler::$styleSettingsKey), $key, $value); ?></td>
		<td><?php _e('Default', 'slideshow-plugin'); ?>: &#39;<?php echo (isset($value['options']))? $value['options'][$value['default']]: $value['default']; ?>&#39;</td>
	</tr>

	<?php endforeach; ?>

	<?php endif; ?>
</table>

<p>
	<?php
		echo sprintf(__(
				'Custom styles can be created and customized %shere%s.',
				'slideshow-plugin'
			),
			'<a href="' . admin_url() . '/edit.php?post_type=slideshow&page=general_settings#custom-styles" target="_blank">',
			'</a>'
		);
	?>
</p>