<?php
	$Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
	$FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
	$FAQ_Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
	$Expand_Collapse_All = get_option("EWD_UFAQ_Expand_Collapse_All");
	$FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
	$Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
	$Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
	$Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
	$Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
	$Display_Author = get_option("EWD_UFAQ_Display_Author");
    $Display_Date = get_option("EWD_UFAQ_Display_Date");
    $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
    $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
	$Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
	$Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
	$Comments_On = get_option("EWD_UFAQ_Comments_On");

	$Display_Style = get_option("EWD_UFAQ_Display_Style");
	$Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
	$FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
	$WooCommerce_FAQs = get_option("EWD_UFAQ_WooCommerce_FAQs");
	$Use_Product = get_option("EWD_UFAQ_Use_Product");
	$Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
	$Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
    $Allow_Proposed_Answer = get_option("EWD_UFAQ_Allow_Proposed_Answer");
    $Submit_Question_Captcha = get_option("EWD_UFAQ_Submit_Question_Captcha");
    $Admin_Question_Notification = get_option("EWD_UFAQ_Admin_Question_Notification");
    $Admin_Notification_Email = get_option("EWD_UFAQ_Admin_Notification_Email");
	$FAQ_Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
	$Slug_Base = get_option("EWD_UFAQ_Slug_Base");
	$Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
    $Socialmedia = explode(",", $Socialmedia_String);

	$Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
	$Group_By_Category_Count = get_option("EWD_UFAQ_Group_By_Category_Count");
	$Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
	$Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
	$Order_By_Setting = get_option("EWD_UFAQ_Order_By");
	$Order_Setting = get_option("EWD_UFAQ_Order");

	$FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
	$Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");

	$Posted_Label = get_option("EWD_UFAQ_Posted_Label");
	$By_Label = get_option("EWD_UFAQ_By_Label");
	$On_Label = get_option("EWD_UFAQ_On_Label");
	$Category_Label = get_option("EWD_UFAQ_Category_Label");
	$Tag_Label = get_option("EWD_UFAQ_Tag_Label");
	$Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_Label");
	$Search_Label = get_option("EWD_UFAQ_Search_Label");
	$Permalink_Label = get_option("EWD_UFAQ_Permalink_Label");
	$Back_To_Top_Label = get_option("EWD_UFAQ_Back_To_Top_Label");
	$WooCommerce_Tab_Label = get_option("EWD_UFAQ_WooCommerce_Tab_Label");

	$Thank_You_Submit_Label = get_option("EWD_UFAQ_Thank_You_Submit_Label");
	$Submit_Question_Label = get_option("EWD_UFAQ_Submit_Question_Label");
	$Please_Fill_Form_Below_Label = get_option("EWD_UFAQ_Please_Fill_Form_Below_Label");
	$Send_Question_Label = get_option("EWD_UFAQ_Send_Question_Label");
	$Question_Title_Label = get_option("EWD_UFAQ_Question_Title_Label");
	$What_Question_Being_Answered_Label = get_option("EWD_UFAQ_What_Question_Being_Answered_Label");
	$Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
	$Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
	$What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
	$Retrieving_Results = get_option("EWD_UFAQ_Retrieving_Results");
	$No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");

	$UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
	$UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
	$UFAQ_Styling_Default_Border_Size = get_option("EWD_UFAQ_Styling_Default_Border_Size");
	$UFAQ_Styling_Default_Border_Color = get_option("EWD_UFAQ_Styling_Default_Border_Color");
	$UFAQ_Styling_Default_Border_Radius = get_option("EWD_UFAQ_Styling_Default_Border_Radius");
	$UFAQ_Styling_Toggle_Symbol_Size = get_option("EWD_UFAQ_Styling_Toggle_Symbol_Size");
	$UFAQ_Styling_Block_Bg_Color = get_option("EWD_UFAQ_Styling_Block_Bg_Color");
	$UFAQ_Styling_Block_Font_Color = get_option("EWD_UFAQ_Styling_Block_Font_Color");
	$UFAQ_Styling_List_Font = get_option("EWD_UFAQ_Styling_List_Font");
	$UFAQ_Styling_List_Font_Size = get_option("EWD_UFAQ_Styling_List_Font_Size");
	$UFAQ_Styling_List_Font_Color = get_option("EWD_UFAQ_Styling_List_Font_Color");
	$UFAQ_Styling_List_Margin = get_option("EWD_UFAQ_Styling_List_Margin");
	$UFAQ_Styling_List_Padding = get_option("EWD_UFAQ_Styling_List_Padding");

	$UFAQ_Styling_Question_Font = get_option("EWD_UFAQ_Styling_Question_Font");
	$UFAQ_Styling_Question_Font_Size = get_option("EWD_UFAQ_Styling_Question_Font_Size");
	$UFAQ_Styling_Question_Font_Color = get_option("EWD_UFAQ_Styling_Question_Font_Color");
	$UFAQ_Styling_Question_Margin = get_option("EWD_UFAQ_Styling_Question_Margin");
	$UFAQ_Styling_Question_Padding = get_option("EWD_UFAQ_Styling_Question_Padding");
	$UFAQ_Styling_Question_Icon_Top_Margin = get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin");
	$UFAQ_Styling_Answer_Font = get_option("EWD_UFAQ_Styling_Answer_Font");
	$UFAQ_Styling_Answer_Font_Size = get_option("EWD_UFAQ_Styling_Answer_Font_Size");
	$UFAQ_Styling_Answer_Font_Color = get_option("EWD_UFAQ_Styling_Answer_Font_Color");
	$UFAQ_Styling_Answer_Margin = get_option("EWD_UFAQ_Styling_Answer_Margin");
	$UFAQ_Styling_Answer_Padding = get_option("EWD_UFAQ_Styling_Answer_Padding");
	$UFAQ_Styling_Postdate_Font = get_option("EWD_UFAQ_Styling_Postdate_Font");
	$UFAQ_Styling_Postdate_Font_Size = get_option("EWD_UFAQ_Styling_Postdate_Font_Size");
	$UFAQ_Styling_Postdate_Font_Color = get_option("EWD_UFAQ_Styling_Postdate_Font_Color");
	$UFAQ_Styling_Postdate_Margin = get_option("EWD_UFAQ_Styling_Postdate_Margin");
	$UFAQ_Styling_Postdate_Padding = get_option("EWD_UFAQ_Styling_Postdate_Padding");
	$UFAQ_Styling_Category_Font = get_option("EWD_UFAQ_Styling_Category_Font");
	$UFAQ_Styling_Category_Font_Size = get_option("EWD_UFAQ_Styling_Category_Font_Size");
	$UFAQ_Styling_Category_Font_Color = get_option("EWD_UFAQ_Styling_Category_Font_Color");
	$UFAQ_Styling_Category_Margin = get_option("EWD_UFAQ_Styling_Category_Margin");
	$UFAQ_Styling_Category_Padding = get_option("EWD_UFAQ_Styling_Category_Padding");

	$UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
	$UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
	$Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");

	if (!isset($Display_Tab)) {$Display_Tab = "";}
?>
<div class="wrap ufaq-options-page-tabbed">
	<div class="ufaq-options-submenu-div">
		<ul class="ufaq-options-submenu ufaq-options-page-tabbed-nav">
			<li><a id="Basic_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == '' or $Display_Tab == 'Basic') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Basic');">Basic</a></li>
			<li><a id="Premium_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Premium') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Premium');">Premium</a></li>
			<li><a id="Order_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Order') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Order');">Ordering</a></li>
			<li><a id="Fields_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Fields') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Fields');">Fields</a></li>
			<li><a id="Labelling_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Labelling') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Labelling');">Labelling</a></li>
			<li><a id="Styling_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Styling') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Styling');">Styling</a></li>
		</ul>
	</div>


<div class="ufaq-options-page-tabbed-content">

<form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
<?php wp_nonce_field( 'EWD_UFAQ_Save_Options', 'EWD_UFAQ_Save_Options_Nonce' );  ?>
<div id='Basic' class='ufaq-option-set'>
<h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
<br />

<div class="ewd-ufaq-shortcode-reminder">
	<div class="ewd-ufaq-shortcode-reminder-message">REMINDER</div>
	<div class="ewd-ufaq-shortcode-reminder-display">To display FAQs, place the <strong>[ultimate-faqs]</strong> shortcode on a page</div>
</div>

<br />
<h3 id="general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'ultimate-faqs'); ?></h3>
<table class="form-table">
<tr>
<th scope="row">Custom CSS</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Custom CSS</span></legend>
	<label title='Custom CSS'></label><textarea class='ewd-ufaq-textarea' name='custom_css'> <?php echo $Custom_CSS; ?></textarea><br />
	<p>You can add custom CSS styles for your FAQs in the box above.</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Scroll To Top</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Scroll To Top</span></legend>
	<label title='Yes'><input type='radio' name='scroll_to_top' value='Yes' <?php if($Scroll_To_Top == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='scroll_to_top' value='No' <?php if($Scroll_To_Top == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the browser scroll to the top of the FAQ when it's opened?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Show Editor Helper</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
	<label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the shortcode builder be shown above the WordPress page/post editor, in the toolbar buttons?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Turn On Comment Support</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Turn On Comment Support</span></legend>
	<label title='Yes'><input type='radio' name='comments_on' value='Yes' <?php if($Comments_On == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='comments_on' value='No' <?php if($Comments_On == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should comment support be turned on, so that if the "Allow Comments" checkbox is selected for a given FAQ, comments are shown in the FAQ list?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Include Permalink Icon</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
	<label title='Yes'><input type='radio' name='include_permalink' value='Yes' <?php if($Include_Permalink == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='include_permalink' value='No' <?php if($Include_Permalink == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should an icon to link directly to each question be displayed?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Permalink Type</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
	<label title='SamePage'><input type='radio' name='permalink_type' value='SamePage' <?php if($Permalink_Type == "SamePage") {echo "checked='checked'";} ?> /> <span>Main FAQ Page</span></label><br />
	<label title='IndividualPage'><input type='radio' name='permalink_type' value='IndividualPage' <?php if($Permalink_Type == "IndividualPage") {echo "checked='checked'";} ?> /> <span>Individual FAQ Page</span></label><br />
	<p>Should the permalink icon link to the main FAQ page, or to the individual FAQ post?</p>
	</fieldset>
</td>
</tr>
</table>

<br />
<h3 id="functionality-options" class="ufaq-options-page-tab-title"><?php _e('Functionality', 'ultimate-faqs'); ?></h3>

<table class="form-table">
<tr>
<th scope="row">FAQ Toggle</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
	<label title='Yes'><input type='radio' name='faq_toggle' value='Yes' <?php if($FAQ_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='faq_toggle' value='No' <?php if($FAQ_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the FAQs hide/open when they are clicked? </p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Category Toggle</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Category Toggle</span></legend>
	<label title='Yes'><input type='radio' name='faq_category_toggle' value='Yes' <?php if($FAQ_Category_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='faq_category_toggle' value='No' <?php if($FAQ_Category_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the FAQ categories hide/open when they are clicked, if FAQs are being grouped by category ("Group FAQs by Category" in the "Ordering" area)? </p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Expand/Collapse All</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Expand/Collapse All</span></legend>
	<label title='Yes'><input type='radio' name='expand_collapse_all' value='Yes' <?php if($Expand_Collapse_All == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='expand_collapse_all' value='No' <?php if($Expand_Collapse_All == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should there be a control to open and close all FAQs simultaneously?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Accordion</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Accordion</span></legend>
	<label title='Yes'><input type='radio' name='faq_accordion' value='Yes' <?php if($FAQ_Accordion == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='faq_accordion' value='No' <?php if($FAQ_Accordion == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the FAQs accordion? (Only one FAQ is open at a time, requires FAQ Toggle)</p>
	</fieldset>
</td>
</tr>
</table>

<br />
<h3 id="display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'ultimate-faqs'); ?></h3>

<table class="form-table">
<tr>
<th scope="row">Hide Categories</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Hide Categories</span></legend>
	<label title='Yes'><input type='radio' name='hide_categories' value='Yes' <?php if($Hide_Categories == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='hide_categories' value='No' <?php if($Hide_Categories == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the categories for each FAQ be hidden?</p>
	</fieldset>
</td>
</tr>

<tr>
<th scope="row">Hide Tags</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Hide Tags</span></legend>
	<label title='Yes'><input type='radio' name='hide_tags' value='Yes' <?php if($Hide_Tags == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='hide_tags' value='No' <?php if($Hide_Tags == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the tags for each FAQ be hidden?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Display All Answers</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Display All Answers</span></legend>
	<label title='Yes'><input type='radio' name='display_all_answers' value='Yes' <?php if($Display_All_Answers == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='display_all_answers' value='No' <?php if($Display_All_Answers == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should all answers be displayed when the page loads? (Careful if FAQ Accordion is on)</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Display Post Author</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Display Post Author</span></legend>
	<label title='Yes'><input type='radio' name='display_author' value='Yes' <?php if($Display_Author == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='display_author' value='No' <?php if($Display_Author == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the display name of the post's author be displayed beneath the FAQ title?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Display Post Date</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Display Post Date</span></legend>
	<label title='Yes'><input type='radio' name='display_date' value='Yes' <?php if($Display_Date == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='display_date' value='No' <?php if($Display_Date == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the date the post was created be displayed beneath the FAQ title?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Display 'Back to Top'</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Display 'Back to Top'</span></legend>
	<label title='Yes'><input type='radio' name='display_back_to_top' value='Yes' <?php if($Display_Back_To_Top == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='display_back_to_top' value='No' <?php if($Display_Back_To_Top == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should a link to return to the top of the page be added to each FAQ post?</p>
	</fieldset>
</td>
</tr>
</table>
</div>

<div id='Premium' class='ufaq-option-set ufaq-hidden'>
<h2 id='label-premium-options' class='ufaq-options-page-tab-title'>Premium Options</h2>
<br />
<h3 id="premium-display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'ultimate-faqs'); ?></h3>
<table class="form-table">
<tr>
<th scope="row">FAQ Display Style</th>
<td>
<fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
<label title='Default Style'><input type='radio' name='display_style' value='Default' <?php if($Display_Style == "Default") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Default</span></label><br />
<label title='Color Block Style'><input type='radio' name='display_style' value='Color_Block' <?php if($Display_Style == "Color_Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Color Block</span></label><br />
<label title='Block Style'><input type='radio' name='display_style' value='Block' <?php if($Display_Style == "Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Block</span></label><br />
<label title='Border Block Style'><input type='radio' name='display_style' value='Border_Block' <?php if($Display_Style == "Border_Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Border Block</span></label><br />
<label title='Contemporary Style'><input type='radio' name='display_style' value='Contemporary' <?php if($Display_Style == "Contemporary") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Contemporary</span></label><br />
<label title='List Style'><input type='radio' name='display_style' value='List' <?php if($Display_Style == "List") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>List</span></label><br />
<label title='Minimalist Style'><input type='radio' name='display_style' value='Minimalist' <?php if($Display_Style == "Minimalist") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Minimalist</span></label><br />
<p>Which theme should be used to display the FAQ's?</p>
</fieldset>
</td>
</tr>
<tr>
<th scope="row">Color Block Shape</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Color Block Shape</span></legend>
	<label title='Square'><input type='radio' name='color_block_shape' value='Square' <?php if($Color_Block_Shape == "Square") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Square</span></label><br />
	<label title='Circle'><input type='radio' name='color_block_shape' value='Circle' <?php if($Color_Block_Shape == "Circle") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Circle</span></label><br />
	<p>If "Color Block" is selected for "FAQ Display Style", should the block be square or circle?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Reveal Effect</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Reveal Effect</span></legend>
	<label title='Reveal Effect'></label>

	<select name="reveal_effect" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
  		<option value="none" <?php if($Reveal_Effect == "none") {echo "selected=selected";} ?> >None</option>
			<option value="blind" <?php if($Reveal_Effect == "blind") {echo "selected=selected";} ?> >Blind</option>
  		<option value="bounce" <?php if($Reveal_Effect == "bounce") {echo "selected=selected";} ?> >Bounce</option>
  		<option value="clip" <?php if($Reveal_Effect == "clip") {echo "selected=selected";} ?> >Clip</option>
  		<option value="drop" <?php if($Reveal_Effect == "drop") {echo "selected=selected";} ?> >Drop</option>
  		<option value="explode" <?php if($Reveal_Effect == "explode") {echo "selected=selected";} ?> >Explode</option>
  		<option value="fade" <?php if($Reveal_Effect == "fade") {echo "selected=selected";} ?> >Fade</option>
  		<option value="fold" <?php if($Reveal_Effect == "fold") {echo "selected=selected";} ?> >Fold</option>
  		<option value="highlight" <?php if($Reveal_Effect == "highlight") {echo "selected=selected";} ?> >Highlight</option>
  		<option value="puff" <?php if($Reveal_Effect == "puff") {echo "selected=selected";} ?> >Puff</option>
  		<option value="pulsate" <?php if($Reveal_Effect == "pulsate") {echo "selected=selected";} ?> >Pulsate</option>
  		<option value="shake" <?php if($Reveal_Effect == "shake") {echo "selected=selected";} ?> >Shake</option>
  		<option value="size" <?php if($Reveal_Effect == "size") {echo "selected=selected";} ?> >Size</option>
  		<option value="slide" <?php if($Reveal_Effect == "slide") {echo "selected=selected";} ?> >Slide</option>
	</select>

	<p>How should FAQ's be displayed when their titles are clicked?</p>
	</fieldset>
</td>
</tr>
</table>

<br />
<h3 id="premium-general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'ultimate-faqs'); ?></h3>

<table class="form-table">
<tr>
<th scope="row">FAQ Ratings</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Ratings</span></legend>
	<label title='Yes'><input type='radio' name='faq_ratings' value='Yes' <?php if($FAQ_Ratings == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='faq_ratings' value='No' <?php if($FAQ_Ratings == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
	<p>Should visitors be able to up or down vote FAQs to let others know if they found them helpful?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Pretty Permalinks</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Pretty Permalinks</span></legend>
	<label title='Yes'><input type='radio' name='pretty_permalinks' value='Yes' <?php if($Pretty_Permalinks == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='pretty_permalinks' value='No' <?php if($Pretty_Permalinks == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
	<p>Should an SEO friendly permalink structure be used for the link to the FAQ?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Auto Complete Titles</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Auto Complete Titles</span></legend>
	<label title='Yes'><input type='radio' name='faq_auto_complete_titles' value='Yes' <?php if($FAQ_Auto_Complete_Titles == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='faq_auto_complete_titles' value='No' <?php if($FAQ_Auto_Complete_Titles == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should the FAQ Titles auto complete when using the FAQ search shortcode?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Slug Base</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Slug Base</span></legend>
	<input type='text' name='slug_base' value='<?php echo $Slug_Base; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
	<p>This option can be used to change the slug base for all FAQ posts. Be sure to go to "Settings" -> "Permalinks" in the WordPress sidebar and hit "Save Changes" to avoid 404 errors.</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Social Media Option</th>
<td>
    <fieldset><legend class="screen-reader-text"><span>Social Media Option</span></legend>
        <label title='Facebook'><input type='checkbox' name='Socialmedia[]' value='Facebook' <?php if(in_array("Facebook", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Facebook</span></label><br />
        <label title='Name'><input type='checkbox' name='Socialmedia[]' value='Google'  <?php if(in_array("Google", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Google</span></label><br />
        <label title='Twitter'><input type='checkbox' name='Socialmedia[]' value='Twitter' <?php if(in_array("Twitter", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Twitter</span></label><br />
        <label title='Linkedin'><input type='checkbox' name='Socialmedia[]' value='Linkedin' <?php if(in_array("Linkedin", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Linkedin</span></label><br />
        <label title='Pinterest'><input type='checkbox' name='Socialmedia[]' value='Pinterest' <?php if(in_array("Pinterest", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Pinterest</span></label><br />
        <label title='Email'><input type='checkbox' name='Socialmedia[]' value='Email' <?php if(in_array("Email", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Email</span></label><br />
        <div style='display:none;'><label title='Blank'><input type='checkbox' name='Socialmedia[]' value='Blank' checked='checked'/> <span>Blank</span></label></div>
    </fieldset>
</td>
</tr>
</table>

<br />
<h3 id="premium-woocommerce-options" class="ufaq-options-page-tab-title"><?php _e('WooCommerce', 'ultimate-faqs'); ?></h3>

<table class="form-table">
<tr>
<th scope="row">WooCommerce FAQs</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>WooCommerce FAQs</span></legend>
	<label title='Yes'><input type='radio' name='woocommerce_faqs' value='Yes' <?php if($WooCommerce_FAQs == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='woocommerce_faqs' value='No' <?php if($WooCommerce_FAQs == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
	<p>Should FAQs for a given product be displayed as an extra tab on the WooCommerce product page?<br/> For this to work correctly, an FAQ category needs to be created with the same name as a given WooCommerce product.</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Use WooCommerce Product Object</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Use WooCommerce Product Object</span></legend>
	<label title='Yes'><input type='radio' name='use_product' value='Yes' <?php if($Use_Product == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='use_product' value='No' <?php if($Use_Product == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
	<p>Should the FAQ tab be set up using the WooCommerce product object, as in the WC documentation, or just using the ID of the page?</p>
	</fieldset>
</td>
</tr>
</table>

<br />
<h3 id="premium-submit-faq-options" class="ufaq-options-page-tab-title"><?php _e('Submit FAQ', 'ultimate-faqs'); ?></h3>

<table class="form-table">
<tr>
<th scope="row">Allow Proposed Answer</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Allow Proposed Answer</span></legend>
	<label title='Yes'><input type='radio' name='allow_proposed_answer' value='Yes' <?php if($Allow_Proposed_Answer == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='allow_proposed_answer' value='No' <?php if($Allow_Proposed_Answer == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
	<p>When using the user-submitted question shortcode, should users be able to propose an answer to the question they're submitting?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Submit Question Captcha</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Submit Question Captcha</span></legend>
	<label title='Yes'><input type='radio' name='submit_question_captcha' value='Yes' <?php if($Submit_Question_Captcha == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='submit_question_captcha' value='No' <?php if($Submit_Question_Captcha == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
	<p>When using the user-submitted question shortcode, should a captcha field be added to the form to reduce the volume of spam FAQs?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Admin Question Notification</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Admin Question Notification</span></legend>
	<label title='Yes'><input type='radio' name='admin_question_notification' value='Yes' <?php if($Admin_Question_Notification == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='admin_question_notification' value='No' <?php if($Admin_Question_Notification == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should an email be sent to the site administrator when a question is submitted?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Admin Notification Email</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Admin Notification Email</span></legend>
	<input type='text' name='admin_notification_email' value='<?php echo $Admin_Notification_Email; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
	<p>What email address should the notifications be sent to if "Admin Question Notifications" are set to "Yes" above? If blank, the default WordPress admin email will be used.</p>
	</fieldset>
</td>
</tr>
</table>
</div>

<div id='Order' class='ufaq-option-set ufaq-hidden'>
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Ordering Options</h2>
<table class="form-table">
<tr>
<th scope="row">Group FAQs by Category</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Group FAQs by Category</span></legend>
	<label title='Yes'><input type='radio' name='group_by_category' value='Yes' <?php if($Group_By_Category == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='group_by_category' value='No' <?php if($Group_By_Category == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>Should FAQs be grouped by category, or should all categories be mixed together?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Display FAQ Category Count</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Display FAQ Category Count</span></legend>
	<label title='Yes'><input type='radio' name='group_by_category_count' value='Yes' <?php if($Group_By_Category_Count == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
	<label title='No'><input type='radio' name='group_by_category_count' value='No' <?php if($Group_By_Category_Count == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
	<p>If FAQs are grouped by category, should the number of FAQs in a category be displayed beside the category name?</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Sort Categories</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
	<label title='Group By Order By'></label>

	<select name="group_by_order_by" <?php if ($UFAQ_Full_Version != "Yes"  and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
  		<option value="name" <?php if($Group_By_Order_By == "name") {echo "selected=selected";} ?> >Name</option>
			<option value="count" <?php if($Group_By_Order_By == "count") {echo "selected=selected";} ?> >FAQ Count</option>
  		<option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
	</select>

	<p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes"). Please note, this is a premium feature.</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">Sort Categories Ordering</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
	<label title='Ascending'><input type='radio' name='group_by_order' value='ASC' <?php if($Group_By_Order == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
	<label title='Descending'><input type='radio' name='group_by_order' value='DESC' <?php if($Group_By_Order == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
	<p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Ordering</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
	<label title='FAQ Ordering'></label>

	<select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
  		<option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
		<option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
  		<option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
  		<option value="set_order" <?php if($Order_By_Setting == "set_order") {echo "selected=selected";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >Selected Order (using Order table)</option>
	</select>

	<p>How should individual FAQs be ordered? <?php if (get_option("EWD_UFAQ_Install_Version") >= 1.6) {?> Please note, this is a premium feature. <?php } ?></p>
	</fieldset>
</td>
</tr>
<tr>
<th scope="row">FAQ Order Setting</th>
<td>
	<fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
	<label title='Yes'><input type='radio' name='order_setting' value='ASC' <?php if($Order_Setting == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
	<label title='No'><input type='radio' name='order_setting' value='DESC' <?php if($Order_Setting == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
	<p>Should FAQ be ascending or descending order, based on the ordering criteria above?</p>
	</fieldset>
</td>
</tr>
</table>

<div class='ufaq-order-table'>
<h3><?php echo __("Order Table", 'ultimate-faqs'); ?></h3>
<p><?php _e("Drag and drop the posts below to reorder them, if you have 'Selected Order' set for the 'FAQ Ordering' option", 'ultimate-faqs'); ?></p>
<?php
	if ($UFAQ_Full_Version != "Yes") {echo "<p>Upgrade to premium to access this feature.</p>";}
	else {
?>
<!--<div id="col-right">
	<div class="col-wrap">
	<div id="add-page" class="postbox metabox-holder" >
	<div class="inside">
	<div id="posttype-page" class="posttypediv">-->
	<div id="tabs-panel-posttype-page-most-recent" class="tabs-panel tabs-panel-active">

	<table class="wp-list-table widefat tags sorttable ewd-ufaq-list">
	    <thead>
	    	<tr>
	            <th><?php _e("Question", 'ultimate-faqs') ?></th>
	            <th><?php _e("Views", 'ultimate-faqs') ?></th>
	            <th><?php _e("Categories", 'ultimate-faqs') ?></th>
	            <th><?php _e("Tags", 'ultimate-faqs') ?></th>
	    	</tr>
	    </thead>
	    <tbody>
	    <?php
	    $params = array(
	    	'post_type' => 'ufaq',
	    	'posts_per_page' => -1,
	    	'meta_key' => 'ufaq_order',
	    	'orderby' => 'meta_value_num',
	    	'order' => 'ASC'
	    );
	    $FAQs = get_posts($params);
		if (empty($FAQs)) { echo "<div class='ewd-ufaq-row list-item'><p>No FAQs have been created<p/></div>"; }
		else {
	    	foreach ($FAQs as $FAQ) {
	    		$FAQ_Views = get_post_meta($FAQ->ID, 'ufaq_view_count', true);
	    		$FAQ_Categories = get_the_term_list($FAQ->ID, 'ufaq-category', '', ', ', '');
	    		$FAQ_Tags = get_the_term_list($FAQ->ID, 'ufaq-tag', '', ', ', '');
	    		echo "<tr id='ewd-ufaq-item-" . $FAQ->ID . "' class='ewd-ufaq-item'>";
	    	    echo "<td class='ufaq-title'>" . $FAQ->post_title . "</td>";
	    	    echo "<td class='ufaq-title'>" . $FAQ_Views . "</td>";
	    	    echo "<td class='ufaq-title'>" . $FAQ_Categories . "</td>";
	    	    echo "<td class='ufaq-title'>" . $FAQ_Tags . "</td>";
	    		echo "</tr>";
	    	}
		}?>
	    </tbody>
	    <tfoot>
	        <tr>
	            <th><?php _e("Question", 'ultimate-faqs') ?></th>
	            <th><?php _e("Views", 'ultimate-faqs') ?></th>
	            <th><?php _e("Categories", 'ultimate-faqs') ?></th>
	            <th><?php _e("Tags", 'ultimate-faqs') ?></th>
	        </tr>
	    </tfoot>
	</table>
</div>
<?php } ?>

</div>
</div>

<div id='Fields' class='ufaq-option-set ufaq-hidden'>
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Fields Options (Premium)</h2>
<table class="form-table">
	<tr>
		<th scope="row">FAQ Custom Fields</th>
		<td>
			<fieldset><legend class="screen-reader-text"><span>FAQ Custom Fields</span></legend>
				<table id='ewd-ufaq-custom-fields-table'>
					<tr>
						<th></th>
						<th>Field Name</th>
						<th>Field Type</th>
						<th>Field Values</th>
					</tr>
					<?php
					$Counter = 0;
					$Max_ID = 0;
					if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
					foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
						echo "<tr id='ewd-ufaq-custom-field-row-" . $Counter . "'>";
						echo "<td><input type='hidden' name='Custom_Field_" . $Counter . "_ID' value='" . $FAQ_Field_Item['FieldID'] . "' /><a class='ewd-ufaq-delete-custom-field' data-fieldid='" . $Counter . "'>Delete</a></td>";
						echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Name' value='" . $FAQ_Field_Item['FieldName'] . "'/></td>";
						echo "<td><select name='Custom_Field_" . $Counter . "_Type'>"; ?>
						<option value='text' <?php if ($FAQ_Field_Item['FieldType'] == "text") {echo "selected='selected'";} ?>>Text</option>
						<option value='textarea' <?php if ($FAQ_Field_Item['FieldType'] == "textarea") {echo "selected='selected'";} ?>>Text Area</option>
						<option value='select' <?php if ($FAQ_Field_Item['FieldType'] == "select") {echo "selected='selected'";} ?>>Select Box</option>
						<option value='radio' <?php if ($FAQ_Field_Item['FieldType'] == "radio") {echo "selected='selected'";} ?>>Radio Buttons</option>
						<option value='checkbox' <?php if ($FAQ_Field_Item['FieldType'] == "checkbox") {echo "selected='selected'";} ?>>Checkbox</option>
						<option value='file' <?php if ($FAQ_Field_Item['FieldType'] == "file") {echo "selected='selected'";} ?>>File</option>
						<option value='link' <?php if ($FAQ_Field_Item['FieldType'] == "link") {echo "selected='selected'";} ?>>Link</option>
						<option value='date' <?php if ($FAQ_Field_Item['FieldType'] == "date") {echo "selected='selected'";} ?>>Date</option>
						<option value='datetime' <?php if ($FAQ_Field_Item['FieldType'] == "datetime") {echo "selected='selected'";} ?>>Date/Time</option>
						<?php echo "</select></td>";
						echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Values' value='" . $FAQ_Field_Item['FieldValues'] . "'/></td>";
						echo "</tr>";
						$Counter++;
						$Max_ID = max($Max_ID, $FAQ_Field_Item['FieldID']);
					}
					$Max_ID++;
					echo "<tr><td colspan='4'><a class='ewd-ufaq-add-custom-field' data-nextid='" . $Counter . "' data-maxid='" . $Max_ID . "'>Add</a></td></tr>";
					?>
				</table>
				<p>Should any extra fields be added to the FAQs?<br />
				The "Field Values" should be a comma-separated list of values for the select, radio or checkbox field types (no extra spaces after the comma)</p>
			</fieldset>
		</td>
	</tr>
	<tr>
		<th scope="row">Hide Blank Fields</th>
		<td>
			<fieldset><legend class="screen-reader-text"><span>Hide Blank Fields</span></legend>
			<label title='Yes'><input type='radio' name='hide_blank_fields' value='Yes' <?php if($Hide_Blank_Fields == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
			<label title='No'><input type='radio' name='hide_blank_fields' value='No' <?php if($Hide_Blank_Fields == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
			<p>Should field labels be hidden if a field hasn't been filled out for a particular FAQ?</p>
			</fieldset>
		</td>
	</tr>
</table>
</div>


<div id='Labelling' class='ufaq-option-set ufaq-hidden'>
	<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Labelling Options</h2>
	<div class="ufaq-label-description"> Replace the default text on the FAQ page </div>

	<div id='labelling-view-options' class="ufaq-options-div ufaq-options-flex">
		<div class='ufaq-subsection'>
			<div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Posted", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("By", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("On", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Categories", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Tags", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Enter your question", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Search", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Permalink", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Back To Top", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("WooCommerce Tab Label", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='woocommerce_tab_label' value='<?php echo $WooCommerce_Tab_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				</div>
				</div>
				<div class='ufaq-subsection'>
			<div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
			<div class='ufaq-option ufaq-label-option'>
					<?php _e("Thank you for submitting an FAQ", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Submit a Question", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Please fill out the form below to submit a question.", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='please_fill_form_below_label' value='<?php echo $Please_Fill_Form_Below_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Send Question", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Question Title", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("What question is being answered?", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='what_question_being_answered_label' value='<?php echo $What_Question_Being_Answered_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Proposed Answer", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Question Author", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("What name should be displayed with your question?", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='what_name_with_review_label' value='<?php echo $What_Name_With_Review_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("Retrieving Results", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='retrieving_results' value='<?php echo $Retrieving_Results; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
				<div class='ufaq-option ufaq-label-option'>
					<?php _e("No results FAQ's contained the term '%s'", 'ultimate-faqs')?>
					<fieldset>
						<input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
					</fieldset>
				</div>
			</div>
		</div>
	</div>
</div>
<div id='Styling' class='ufaq-option-set ufaq-hidden'>
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Styling Options (Premium)</h2>

<div id='ufaq-styling-options' class="ufaq-options-div ufaq-options-flex">
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>Toggle Symbol</div>
		<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='A' <?php if ($Toggle_Symbol == "A") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>a  A</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='B' <?php if ($Toggle_Symbol == "B") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>b  B</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='C' <?php if ($Toggle_Symbol == "C") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>c  C</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='D' <?php if ($Toggle_Symbol == "D") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>d  D</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='E' <?php if ($Toggle_Symbol == "E") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>e  E</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='F' <?php if ($Toggle_Symbol == "F") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>f  F</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='G' <?php if ($Toggle_Symbol == "G") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>g  G</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='H' <?php if ($Toggle_Symbol == "H") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>h  H</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='I' <?php if ($Toggle_Symbol == "I") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>i  I</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='J' <?php if ($Toggle_Symbol == "J") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>j  J</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='K' <?php if ($Toggle_Symbol == "K") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>k  K</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='L' <?php if ($Toggle_Symbol == "L") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>l  L</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='M' <?php if ($Toggle_Symbol == "M") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>m  M</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='N' <?php if ($Toggle_Symbol == "N") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>n  N</span></div><br />
				<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='O' <?php if ($Toggle_Symbol == "O") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>o  O</span></div><br />
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>Toggle Symbol Styling</div>
		<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Icon Size (e.g. 16px)</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_toggle_symbol_size' value='<?php echo $UFAQ_Styling_Toggle_Symbol_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Icon Background Color</div>
				<div class='ufaq-color-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_bg_color' value='<?php echo $UFAQ_Styling_Default_Bg_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Icon Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_font_color' value='<?php echo $UFAQ_Styling_Default_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Icon Border size (e.g. 1px)</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border_size' value='<?php echo $UFAQ_Styling_Default_Border_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Icon Border Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_border_color' value='<?php echo $UFAQ_Styling_Default_Border_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Icon Border Radius (e.g. 3px)</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border_radius' value='<?php echo $UFAQ_Styling_Default_Border_Radius; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>Block Theme</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Hover Background Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_block_bg_color' value='<?php echo $UFAQ_Styling_Block_Bg_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Hover Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_block_font_color' value='<?php echo $UFAQ_Styling_Block_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>List Theme Anchors</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Family</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_font' value='<?php echo $UFAQ_Styling_List_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Size</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_font_size' value='<?php echo $UFAQ_Styling_List_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_list_font_color' value='<?php echo $UFAQ_Styling_List_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Margin</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_margin' value='<?php echo $UFAQ_Styling_List_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Padding</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_padding' value='<?php echo $UFAQ_Styling_List_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>FAQ Question</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Family</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_font' value='<?php echo $UFAQ_Styling_Question_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Size</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_font_size' value='<?php echo $UFAQ_Styling_Question_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_question_font_color' value='<?php echo $UFAQ_Styling_Question_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Margin</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_margin' value='<?php echo $UFAQ_Styling_Question_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Padding</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_padding' value='<?php echo $UFAQ_Styling_Question_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Toggle Symbol Top Margin</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_icon_top_margin' value='<?php echo $UFAQ_Styling_Question_Icon_Top_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>FAQ Answer</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Family</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_font' value='<?php echo $UFAQ_Styling_Answer_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Size</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_font_size' value='<?php echo $UFAQ_Styling_Answer_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_answer_font_color' value='<?php echo $UFAQ_Styling_Answer_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Margin</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_margin' value='<?php echo $UFAQ_Styling_Answer_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Padding</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_padding' value='<?php echo $UFAQ_Styling_Answer_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>FAQ Post Date</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Family</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_font' value='<?php echo $UFAQ_Styling_Postdate_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Size</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_font_size' value='<?php echo $UFAQ_Styling_Postdate_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_postdate_font_color' value='<?php echo $UFAQ_Styling_Postdate_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Margin</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_margin' value='<?php echo $UFAQ_Styling_Postdate_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Padding</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_padding' value='<?php echo $UFAQ_Styling_Postdate_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
		</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>FAQ Category, Tags</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Family</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_font' value='<?php echo $UFAQ_Styling_Category_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Size</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_font_size' value='<?php echo $UFAQ_Styling_Category_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Font Color</div>
				<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_category_font_color' value='<?php echo $UFAQ_Styling_Category_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Margin</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_margin' value='<?php echo $UFAQ_Styling_Category_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Padding</div>
				<div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_padding' value='<?php echo $UFAQ_Styling_Category_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
			</div>
	</div>
	</div>
	<div class='ufaq-subsection'>
		<div class='ufaq-subsection-header'>FAQ Heading Types</div>
			<div class='ufaq-subsection-content'>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>Category Heading Type</div>
				<div class='ufaq-option-input'>
					<select name='ufaq_styling_category_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
						<option value='h1' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
						<option value='h2' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
						<option value='h3' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
						<option value='h4' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
						<option value='h5' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
						<option value='h6' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
					</select>
				</div>
			</div>
			<div class='ufaq-option ufaq-styling-option'>
				<div class='ufaq-option-label'>FAQ Heading Type</div>
				<div class='ufaq-option-input'>
					<select name='ufaq_styling_faq_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
						<option value='h1' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
						<option value='h2' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
						<option value='h3' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
						<option value='h4' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
						<option value='h5' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
						<option value='h6' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
					</select>
				</div>
			</div>
		</div>
	</div>

</div>
</div>

<p class="submit"><input type="submit" name="Options_Submit" id="submit" class="button button-primary" value="Save Changes"  /></p></form>

	<?php /* </div><!-- /.tabs-panel -->
	</div><!-- /.posttypediv -->
	</div>
	</div>
	</div>
	</div><!-- col-right --> */ ?>
</div>
</div>
