<?php
/**
 * Builds the Dynamik Skins admin content.
 *
 * @package Dynamik
 */
?>

<div id="dynamik-design-options-nav-skins-box" class="dynamik-optionbox-outer-1col dynamik-not-universal dynamik-all-options">
	<div class="dynamik-optionbox-inner-1col">
		<h3><?php _e( 'Dynamik Skins', 'dynamik' ); ?> <a href="http://dynamikdocs.cobaltapps.com/article/165-dynamik-skins" class="tooltip-mark" target="_blank">[?]</a></h3>
		
		<div id="dynamik-create-new-skin">
			<form method="post">
				<p>
					<input type="text" id="new-skin-name" class="default-text" name="new_skin_name" value="" title="New Dynamik Skin Name" style="width:200px; margin:0 5px 5px 0; float:left;" />
					<input type="submit" name="clicked_button" value="<?php _e( 'Create & Activate', 'dynamik' ); ?>" class="button-highlighted button" style="float:left !important;"/><a href="http://dynamikdocs.cobaltapps.com/article/166-create-and-activate-a-new-dynamik-skin" class="tooltip-mark" target="_blank" style="padding-top:4px; float:right;">[?]</a>
					<input type="hidden" name="action" value="dynamik_skin_copy">
				</p>
			</form>
		</div>

<?php	if( !empty( $_GET['notice'] ) )
		{
			if( $_GET['notice'] == 'import-complete' )
			{
?>				<div class="notice-box" style="margin:0 0 13px;"><strong><?php _e( 'Skin Import Complete', 'dynamik' ); ?></strong></div>
<?php		}
			elseif( $_GET['notice'] == 'skin-update-complete' )
			{
?>				<div class="notice-box" style="margin:0 0 13px;"><strong><?php _e( 'Dynamik Skin Update Complete', 'dynamik' ); ?></strong></div>
<?php		}
			elseif( $_GET['notice'] == 'skin-copy-complete' )
			{
?>				<div class="notice-box" style="margin:0 0 13px;"><strong><?php _e( 'Dynamik Skin Copy Complete', 'dynamik' ); ?></strong></div>
<?php		}
			elseif( $_GET['notice'] == 'skin-copy-error' )
			{
?>				<div class="notice-box" style="margin:0 0 13px;"><strong><?php _e( 'Error: Dynamik Skin Name Already Exists', 'dynamik' ); ?></strong></div>
<?php		}
			elseif( $_GET['notice'] == 'skin-import-error' )
			{
?>				<div class="notice-box" style="margin:0 0 13px;"><strong><?php _e( 'Error: Dynamik Skin With This Name Already Exists', 'dynamik' ); ?></strong></div>
<?php		}
		}
?>		
		<?php if( !empty( $skin_message ) ) { echo $skin_message; } ?>
		<?php dynamik_list_skins(); ?>

	</div>
</div>