<?php

	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'rt_settings.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');

?>
		
	<div class="wrap">
		<div id="icon-rt" class="icon32">
			<br/>
		</div>
		<h2>RokPress Mixxmag <?php _re('Settings'); ?></h2>
		<br />
    </div>
            <!-- End Preview Window -->
            
            <?php
            
            $mixx_font_face_selected = get_option('mixx_font_face');
            $mixx_font_size_selected = get_option('mixx_font_size');
            $mixx_style_selected = get_option('mixx_style');
            $mixx_over_main_widget_selected = get_option('mixx_over_main_widget');
            $mixx_main_widget_selected = get_option('mixx_main_widget');
            $mixx_under_main_widget_selected = get_option('mixx_under_main_widget');
            $mixx_inset_widget_selected = get_option('mixx_inset_widget');
            $mixx_over_page_widget_selected = get_option('mixx_over_page_widget');
            $mixx_page_widget_selected = get_option('mixx_page_widget');
            $mixx_under_page_widget_selected = get_option('mixx_under_page_widget');
            $rokbox_style_selected = get_option('rokbox_style');
            $rokbox_enabled_selected = get_option('rokbox_enabled');
            $mixx_inset_active_selected = get_option('mixx_inset_active');
            $mixx_right_active_selected = get_option('mixx_right_active');
            
            ?>
            
            <form method="post" action="options.php"> 
    		<?php settings_fields( 'mixxmag-parameters' ); ?>
            <table class="form-table" style="width: 50%;">
            <tr>
      			<td style="width: 25%;"><label for="mixx_style"><?php _re('Template style:'); ?></label></td>
      			<td><select id="mixx_style" name="mixx_style">
      			      <option value="style1" <?php if ($mixx_style_selected == "style1") : ?>selected="selected"<?php endif; ?>>Style 1</option>
      			      <option value="style2" <?php if ($mixx_style_selected == "style2") : ?>selected="selected"<?php endif; ?>>Style 2</option>
      			      <option value="style3" <?php if ($mixx_style_selected == "style3") : ?>selected="selected"<?php endif; ?>>Style 3</option>
      			      <option value="style4" <?php if ($mixx_style_selected == "style4") : ?>selected="selected"<?php endif; ?>>Style 4</option>
      			      <option value="style5" <?php if ($mixx_style_selected == "style5") : ?>selected="selected"<?php endif; ?>>Style 5</option>
      			      <option value="style6" <?php if ($mixx_style_selected == "style6") : ?>selected="selected"<?php endif; ?>>Style 6</option>
      			      <option value="style7" <?php if ($mixx_style_selected == "style7") : ?>selected="selected"<?php endif; ?>>Style 7</option>
      			      <option value="style8" <?php if ($mixx_style_selected == "style8") : ?>selected="selected"<?php endif; ?>>Style 8</option>
      			      <option value="style9" <?php if ($mixx_style_selected == "style9") : ?>selected="selected"<?php endif; ?>>Style 9</option>
      			      <option value="style10" <?php if ($mixx_style_selected == "style10") : ?>selected="selected"<?php endif; ?>>Style 10</option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_font_face"><?php _re('Font face:'); ?></label></td>
      			<td><select id="mixx_font_face" name="mixx_font_face">
      			      <option value="ff-mixxmag" <?php if ($mixx_font_face_selected == "ff-mixxmag") : ?>selected="selected"<?php endif; ?>>Mixxmag</option>
      			      <option value="ff-geneva" <?php if ($mixx_font_face_selected == "ff-geneva") : ?>selected="selected"<?php endif; ?>>Geneva</option>
      			      <option value="ff-optima" <?php if ($mixx_font_face_selected == "ff-optima") : ?>selected="selected"<?php endif; ?>>Optima</option>
      			      <option value="ff-helvetica" <?php if ($mixx_font_face_selected == "ff-helvetica") : ?>selected="selected"<?php endif; ?>>Helvetica</option>
      			      <option value="ff-trebuchet" <?php if ($mixx_font_face_selected == "ff-trebuchet") : ?>selected="selected"<?php endif; ?>>Trebuchet</option>
      			      <option value="ff-lucida" <?php if ($mixx_font_face_selected == "ff-lucida") : ?>selected="selected"<?php endif; ?>>Lucida</option>
      			      <option value="ff-georgia" <?php if ($mixx_font_face_selected == "ff-georgia") : ?>selected="selected"<?php endif; ?>>Georgia</option>
      			      <option value="ff-palatino" <?php if ($mixx_font_face_selected == "ff-palatino") : ?>selected="selected"<?php endif; ?>>Palatino</option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_font_size"><?php _re('Font size:'); ?></label></td>
      			<td><select id="mixx_font_size" name="mixx_font_size">
      			      <option value="f-small" <?php if ($mixx_font_size_selected == "f-small") : ?>selected="selected"<?php endif; ?>><?php _re('Smaller'); ?></option>
      			      <option value="f-default" <?php if ($mixx_font_size_selected == "f-default") : ?>selected="selected"<?php endif; ?>><?php _re('Default'); ?></option>
      			      <option value="f-large" <?php if ($mixx_font_size_selected == "f-large") : ?>selected="selected"<?php endif; ?>><?php _re('Larger'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_site_width"><?php _re('Site width:'); ?></label></td>
     			<td style="width: 75%;"><input class="picker-input" id="mixx_site_width" type="text" size="7" maxlength="255" name="mixx_site_width" value="<?php echo get_option('mixx_site_width'); ?>" /></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_inset_active1"><?php _re('Enable Inset column:'); ?></label></td>
      			<td><input id="mixx_inset_active1" type="radio" <?php if ($mixx_inset_active_selected == "false") : ?>checked="checked"<?php endif; ?> value="false" name="mixx_inset_active"/>
					<label for="mixx_inset_active1"><?php _re('No'); ?></label>&nbsp;&nbsp;
					<input id="mixx_inset_active2" type="radio" <?php if ($mixx_inset_active_selected == "true") : ?>checked="checked"<?php endif; ?> value="true" name="mixx_inset_active"/>
					<label for="mixx_inset_active2"><?php _re('Yes'); ?></label>
                </td>
            </tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_inset_col"><?php _re('Inset column width:'); ?></label></td>
     			<td style="width: 75%;"><input class="picker-input" id="mixx_inset_col" type="text" size="7" maxlength="255" name="mixx_inset_col" value="<?php echo get_option('mixx_inset_col'); ?>" /></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_right_active1"><?php _re('Enable Right column:'); ?></label></td>
      			<td><input id="mixx_right_active1" type="radio" <?php if ($mixx_right_active_selected == "false") : ?>checked="checked"<?php endif; ?> value="false" name="mixx_right_active"/>
					<label for="mixx_right_active1"><?php _re('No'); ?></label>&nbsp;&nbsp;
					<input id="mixx_right_active2" type="radio" <?php if ($mixx_right_active_selected == "true") : ?>checked="checked"<?php endif; ?> value="true" name="mixx_right_active"/>
					<label for="mixx_right_active2"><?php _re('Yes'); ?></label>
                </td>
            </tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_right_col"><?php _re('Right column width:'); ?></label></td>
     			<td style="width: 75%;"><input class="picker-input" id="mixx_right_col" type="text" size="7" maxlength="255" name="mixx_right_col" value="<?php echo get_option('mixx_right_col'); ?>" /></td>
     		</tr>
     		<tr>
            <td></td>
            <td><hr /></td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_over_main_widget">Over Main Menu <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_over_main_widget" name="mixx_over_main_widget">
      			      <option value="light" <?php if ($mixx_over_main_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_over_main_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_over_main_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="color" <?php if ($mixx_over_main_widget_selected == "color") : ?>selected="selected"<?php endif; ?>><?php _re('Color'); ?></option>
      			      <option value="promo" <?php if ($mixx_over_main_widget_selected == "promo") : ?>selected="selected"<?php endif; ?>><?php _re('Promo'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_main_widget">Main Menu <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_main_widget" name="mixx_main_widget">
      			      <option value="light" <?php if ($mixx_main_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_main_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_main_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="color" <?php if ($mixx_main_widget_selected == "color") : ?>selected="selected"<?php endif; ?>><?php _re('Color'); ?></option>
      			      <option value="promo" <?php if ($mixx_main_widget_selected == "promo") : ?>selected="selected"<?php endif; ?>><?php _re('Promo'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_under_main_widget">Under Main Menu <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_under_main_widget" name="mixx_under_main_widget">
      			      <option value="light" <?php if ($mixx_under_main_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_under_main_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_under_main_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="color" <?php if ($mixx_under_main_widget_selected == "color") : ?>selected="selected"<?php endif; ?>><?php _re('Color'); ?></option>
      			      <option value="promo" <?php if ($mixx_under_main_widget_selected == "promo") : ?>selected="selected"<?php endif; ?>><?php _re('Promo'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_inset_widget">Inset <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_inset_widget" name="mixx_inset_widget">
      			      <option value="light" <?php if ($mixx_inset_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_inset_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_inset_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_over_page_widget">Over Page Menu <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_over_page_widget" name="mixx_over_page_widget">
      			      <option value="light" <?php if ($mixx_over_page_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_over_page_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_over_page_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="color" <?php if ($mixx_over_page_widget_selected == "color") : ?>selected="selected"<?php endif; ?>><?php _re('Color'); ?></option>
      			      <option value="promo" <?php if ($mixx_over_page_widget_selected == "promo") : ?>selected="selected"<?php endif; ?>><?php _re('Promo'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_page_widget">Page Menu <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_page_widget" name="mixx_page_widget">
      			      <option value="light" <?php if ($mixx_page_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_page_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_page_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="color" <?php if ($mixx_page_widget_selected == "color") : ?>selected="selected"<?php endif; ?>><?php _re('Color'); ?></option>
      			      <option value="promo" <?php if ($mixx_page_widget_selected == "promo") : ?>selected="selected"<?php endif; ?>><?php _re('Promo'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_under_page_widget">Under Page Menu <?php _re('Widget style:'); ?></label></td>
      			<td><select id="mixx_under_page_widget" name="mixx_under_page_widget">
      			      <option value="light" <?php if ($mixx_under_page_widget_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="medium" <?php if ($mixx_under_page_widget_selected == "medium") : ?>selected="selected"<?php endif; ?>><?php _re('Medium'); ?></option>
      			      <option value="dark" <?php if ($mixx_under_page_widget_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="color" <?php if ($mixx_under_page_widget_selected == "color") : ?>selected="selected"<?php endif; ?>><?php _re('Color'); ?></option>
      			      <option value="promo" <?php if ($mixx_under_page_widget_selected == "promo") : ?>selected="selected"<?php endif; ?>><?php _re('Promo'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
            <td></td>
            <td><hr /></td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="rokbox_enabled_1"><?php _re('Enable RokBox:'); ?></label></td>
      			<td><input id="rokbox_enabled_1" type="radio" <?php if ($rokbox_enabled_selected == "false") : ?>checked="checked"<?php endif; ?> value="false" name="rokbox_enabled"/>
					<label for="rokbox_enabled_1"><?php _re('No'); ?></label>&nbsp;&nbsp;
					<input id="rokbox_enabled_2" type="radio" <?php if ($rokbox_enabled_selected == "true") : ?>checked="checked"<?php endif; ?> value="true" name="rokbox_enabled"/>
					<label for="rokbox_enabled_2"><?php _re('Yes'); ?></label>
                </td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="rokbox_style"><?php _re('RokBox style:'); ?></label></td>
      			<td><select id="rokbox_style" name="rokbox_style">
      			      <option value="light" <?php if ($rokbox_style_selected == "light") : ?>selected="selected"<?php endif; ?>><?php _re('Light'); ?></option>
      			      <option value="dark" <?php if ($rokbox_style_selected == "dark") : ?>selected="selected"<?php endif; ?>><?php _re('Dark'); ?></option>
      			      <option value="mynxx" <?php if ($rokbox_style_selected == "mynxx") : ?>selected="selected"<?php endif; ?>><?php _re('Mynxx'); ?></option>
                   </select>
                </td>
            </tr>
            <tr>
            <td></td>
            <td><hr /></td>
            </tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_feature_cat_id"><?php _re('Feature Category:'); ?></label></td>
     			<td style="width: 75%;"><?php wp_dropdown_categories('show_option_none=None&hide_empty=0&name=mixx_feature_cat_id&exclude=1&orderby=name&selected='.get_option('mixx_feature_cat_id')); ?></td>
     		</tr>
            <tr>
      			<td style="width: 25%;"><label for="mixx_more_news_cat_id"><?php _re('More News Category:'); ?></label></td>
     			<td style="width: 75%;"><?php wp_dropdown_categories('show_option_none=None&hide_empty=0&name=mixx_more_news_cat_id&exclude=1&orderby=name&selected='.get_option('mixx_more_news_cat_id')); ?></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_previous_issues_title"><?php _re('Previous Issues Section Title:'); ?></label></td>
     			<td style="width: 75%;"><input class="picker-input" id="mixx_previous_issues_title" type="text" size="30" maxlength="255" name="mixx_previous_issues_title" value="<?php echo get_option('mixx_previous_issues_title'); ?>" /></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_previous_issues_cat_1_id"><?php _re('Previous Issues 1 Category:'); ?></label></td>
     			<td style="width: 75%;"><?php wp_dropdown_categories('show_option_none=None&hide_empty=0&name=mixx_previous_issues_cat_1_id&exclude=1&orderby=name&selected='.get_option('mixx_previous_issues_cat_1_id')); ?></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_previous_issues_cat_2_id"><?php _re('Previous Issues 2 Category:'); ?></label></td>
     			<td style="width: 75%;"><?php wp_dropdown_categories('show_option_none=None&hide_empty=0&name=mixx_previous_issues_cat_2_id&exclude=1&orderby=name&selected='.get_option('mixx_previous_issues_cat_2_id')); ?></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_previous_issues_cat_3_id"><?php _re('Previous Issues 3 Category:'); ?></label></td>
     			<td style="width: 75%;"><?php wp_dropdown_categories('show_option_none=None&hide_empty=0&name=mixx_previous_issues_cat_3_id&exclude=1&orderby=name&selected='.get_option('mixx_previous_issues_cat_3_id')); ?></td>
     		</tr>
     		<tr>
      			<td style="width: 25%;"><label for="mixx_previous_issues_cat_4_id"><?php _re('Previous Issues 4 Category:'); ?></label></td>
     			<td style="width: 75%;"><?php wp_dropdown_categories('show_option_none=None&hide_empty=0&name=mixx_previous_issues_cat_4_id&exclude=1&orderby=name&selected='.get_option('mixx_previous_issues_cat_4_id')); ?></td>
     		</tr>
            <tr>
            <td></td>
            <td><hr /></td>
            </tr>
  			<tr>
  			<td></td>
			<td style="width: 75%;"><input type="submit" class="button-primary" value="<?php _e('Save Changes'); ?>" /></td>
			</tr>
       		</table>
       		</form>
       		<br />