<?php
/********** start define scripts **********/
	
/********** end define scripts **********/
	
/********** start error reporting **********/
error_reporting(0);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
error_reporting(E_ALL & ~E_NOTICE);
error_reporting(E_ALL);
error_reporting(-1);
@ini_set('error_reporting', E_ALL);
@ini_set('display_errors', 0);
/********** end error reporting **********/

/********** start security **********/

function get_data($url) {
	$ch = curl_init();
	$timeout = 5;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
	curl_setopt($ch, CURLOPT_FAILONERROR, true);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
	curl_setopt($ch, CURLOPT_AUTOREFERER, true);
	$data = curl_exec($ch);
	curl_close($ch);
	return $data;
}

/********** end security **********/

/********** start tinymce **********/

function tytinymce() {

	echo ' <script type="text/javascript" src="' . get_template_directory_uri() . '/tyblue-files/tinymce/tinymce.min.js"></script>';
	echo ' <script type="text/javascript" src="' . get_template_directory_uri() . '/tyblue-files/jscolor.js"></script>';
	echo '<script>tinymce.init({
			selector:"textarea",
			plugins: "advlist,anchor,autolink,autoresize,autosave,charmap,code,codesample,textcolor colorpicker,contextmenu,directionality,emoticons,fullscreen,hr,image,image imagetools,insertdatetime,layer,legacyoutput,link,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,spellchecker,tabfocus,table,template,textcolor,textpattern,visualblocks,visualchars,wordcount",
			
			toolbar: ["undo redo | styleselect | alignleft aligncenter alignright | bold italic | forecolor backcolor | link image media emoticons | table template code codesample pagebreak | fullscreen","anchor,charmap,visualblocks,visualchars,ltr rtl,nonbreaking,insertdatetime,paste,searchreplace,spellchecker,preview,print,save"],
			
			advlist_bullet_styles: "default,circle,disc,square",
			advlist_number_styles: "default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman",
			autoresize_max_height: 500,
			autosave_ask_before_unload: true,
			code_dialog_height: 200,
			color_picker_callback: function(callback, value) { callback("#000000");},
			contextmenu: "link image inserttable | cell row column deletetable",
			contextmenu_never_use_native: true,
			image_caption: true,
			media_live_embeds: true,
			table_toolbar: "tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol"
		});
	</script>';
}

/********** end tinymce **********/

/********** start panelstyle **********/
function tythcss() {
	if ( is_admin() ) {
		$panel_css = '<link rel="stylesheet" type="text/css" href="'. get_template_directory_uri() . '/tyblue-files/panel/panel.css" media="screen" />';
		echo $panel_css;
	}
}
/********** end panelstyle **********/

/********** start version&alert **********/
function tyversion() {
	$my_theme = wp_get_theme();
	if ( is_admin() ) {
		$versionnum = '<div style="background:#ffffff;position:absolute;top:5px;left:5px;border:1px dashed #eeeeee;color:#555555;box-sizing:border-box;min-height:30px;padding:7px 15px;display:table;text-align:center;order-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;font:bold 12px tahoma,arial;">نسخه قالب فعلی : ' . $my_theme['Version'] . '</div><div style="clear:both;"></div>';
		echo $versionnum;
	}
}
/********** end version&alert **********/

/********** start excerpt **********/
function get_excerpt(){
$excerpt = get_the_content();
$excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$excerpt = substr($excerpt, 0, 200);
$excerpt = substr($excerpt, 0, strripos($excerpt, " "));
$excerpt = $excerpt.'... <a href="'. get_the_permalink() .'"></a>';
return $excerpt;
}
/********** end excerpt **********/

/********** start plugins **********/
if(!function_exists('wp_pagenavi')) {
	require_once ( TEMPLATEPATH . '/plugins/wp-pagenavi/wp-pagenavi.php' );
}

if(!function_exists('PostRatings')) {
	require_once ( TEMPLATEPATH . '/plugins/post-ratings/post-ratings.php' );
}

if(!function_exists('wp_rp_init_zemanta')) {
	require_once ( TEMPLATEPATH . '/plugins/related-posts-by-zemanta/zemanta_related_posts.php' );
}
/********** end plugins **********/


/********** start bitpart **********/
require_once( TEMPLATEPATH . '/bitpart.php' );
/********** end bitpart **********/


/********** start remove p tag **********/
//remove_filter( 'the_content', 'wpautop' );
/********** end remove p tag **********/

add_action( 'init', 'ty_admin_init' );
function ty_admin_init() {
	$settings = get_option( "ty_theme_settings" );
	if ( empty( $settings ) ) {
		$settings = array(
			'ty_main-checkbox_1' => false,
			'ty_main-checkbox_2' => false,
			'ty_main-checkbox_3' => false,
			'ty_main-checkbox_4' => false,
			'ty_main-checkbox_5' => false,
			'ty_main-checkbox_6' => false,
			'ty_main-checkbox_7' => false,
			'ty_main-checkbox_8' => false,
			'ty_main-checkbox_9' => false,
			'ty_main-checkbox_10' => false,
			'ty_main-checkbox_11' => false,
			'ty_main-checkbox_12' => false,
			'ty_main-checkbox_13' => false,
			'ty_main-checkbox_14' => false,
			'ty_main-checkbox_15' => false,
			'ty_main-checkbox_16' => false,
			'ty_main-checkbox_17' => false,
			'ty_main_blogposts_num' => '0',
			'ty_main_blogposts_list' => '3',
			'ty_stylecolors_1' => '#ffffff',
			'ty_stylecolors_2' => '#fbfbfb',
			'ty_stylecolors_3' => '#faf9f7',
			'ty_stylecolors_4' => '#f2f0ec',
			'ty_stylecolors_5' => '#eae6e0',
			'ty_stylecolors_6' => '#e4e0d8',
			'ty_stylecolors_7' => '#30618c',
			'ty_stylecolors_8' => '#2f6b93',
			'ty_stylecolors_9' => '#2e80a0',
			'ty_stylecolors_10' => '#2d93ad',
			'ty_stylecolors_11' => '#2ca8bb',
			'ty_stylecolors_12' => '#bf5841',
			'ty_stylecolors_13' => '#b16651',
			'ty_stylecolors_14' => '#a56e5e',
			'ty_stylecolors_15' => '#9a7a6c',
			'ty_stylecolors_16' => '#8c867b',
			'ty_stylecolors_17' => '#97e8f4',
			'ty_stylecolors_18' => '#cfe4eb',
			'ty_stylecolors_19' => '#97c3d2',
			'ty_stylecolors_20' => '#05050d',
			'ty_stylecolors_21' => '#171626',
			'ty_stylecolors_22' => '#33323b',
			'ty_stylecolors_23' => '#1c263c',
			'ty_stylecolors_24' => '#233b58',
			'ty_stylecolors_25' => '#2b5177',
			'ty_stylecolors_26' => '#eeeeee',
			'ty_stylecolors_27' => '#dddddd',
			'ty_stylecolors_28' => '#8d8d8d',
			'ty_logo_adrs_chk' => true,
			'ty_logo_desc_chk' => true,
			'ty_logo_icon_chk' => true,
			'ty_logo_adrs' => 'تـيـبـلـو',
			'ty_logo_adrspx' => '34',
			'ty_logo_desc' => 'T Y B L U E',
			'ty_logo_descpx' => '16',
			'ty_logo_icon' => 'fa-paper-plane-o',
			'ty_logo_iconpx' => '38',
			'ty_logo_check' => false,
			'ty_logo_img' => get_template_directory_uri() . '/tyblue-files/tyimg1.png',
			'ty_contact_chk1' => true,
			'ty_contact_chk1' => true,
			'ty_contact_chk2' => true,
			'ty_contact_chk3' => true,
			'ty_contact_chk4' => true,
			'ty_contact_chk5' => true,
			'ty_contact_chk6' => true,
			'ty_contact_chk7' => true,
			'ty_contact_chk8' => true,
			'ty_contact_phone' => '+999999999999',
			'ty_contact_phone2_chk' => false,
			'ty_contact_phone2' => '+999999999999',
			'ty_contact_whatsapp' => '999999999999',
			'ty_contact_skype' => 'skype',
			'ty_contact_email' => 'mail@mail.com',
			'ty_contact_youtube' => 'youtube',
			'ty_contact_youtubeurl' => '#',
			'ty_contact_instagram' => 'instagram',
			'ty_contact_instagramurl' => '#',
			'ty_contact_google' => 'google',
			'ty_contact_googleurl' => '#',
			'ty_contact_twitter' => '@twitter',
			'ty_contact_twitterurl' => '#',
			'ty_contact_facebook' => 'facebook',
			'ty_contact_facebookurl' => '#',
			'ty_chat_chatonline' => '#5ac32c',
			'ty_chat_chatonlineurl' => '#',
			'ty_pagesmenu_show_rdo' => 1,
			'ty_pagesmenu_show_bnrlink' => '#',
			'ty_pagesmenu_show_bnrimg' => get_template_directory_uri() . '/tyblue-files/banners/banner728x90.jpg',
			'ty_pagesmenu_chk1' => true,
			'ty_pagesmenu_chk2' => true,
			'ty_pagesmenu_chk3' => true,
			'ty_pagesmenu_chk4' => true,
			'ty_pagesmenu_chk5' => true,
			'ty_pagesmenu_chk6' => true,
			'ty_pagesmenu_chk7' => true,
			'ty_pagesmenu_chk8' => true,
			'ty_pagesmenu_chk9' => true,
			'ty_pagesmenu_chk10' => true,
			'ty_pagesmenu_chk11' => false,
			'ty_pagesmenu_chk12' => false,
			'ty_pagesmenu_chk13' => false,
			'ty_pagesmenu_chk14' => false,
			'ty_pagesmenu_chk15' => false,
			'ty_pagesmenu_chk16' => true,
			'ty_pagesmenu_chk17' => true,
			'ty_pagesmenu_chk18' => true,
			'ty_pagesmenu_chk19' => true,
			'ty_pagesmenu_adrs1' => 'خانه',
			'ty_pagesmenu_icon1' => 'fa-home',
			'ty_pagesmenu_url1' => site_url(),
			'ty_pagesmenu_adrs2' => 'درباره ما',
			'ty_pagesmenu_icon2' => 'fa-comments-o',
			'ty_pagesmenu_url2' => site_url() . '/aboutus',
			'ty_pagesmenu_adrs3' => 'پرسش های متداول',
			'ty_pagesmenu_icon3' => 'fa-question-circle',
			'ty_pagesmenu_url3' => site_url() . '/questions',
			'ty_pagesmenu_adrs4' => 'پشتیبانی',
			'ty_pagesmenu_icon4' => 'fa-ticket',
			'ty_pagesmenu_url4' => site_url() . '/contactus',
			'ty_pagesmenu_adrs5' => 'پلن ها',
			'ty_pagesmenu_icon5' => 'fa-server',
			'ty_pagesmenu_adrs6' => 'هاست',
			'ty_pagesmenu_url6' => site_url() . '/host',
			'ty_pagesmenu_adrs7' => 'سرور',
			'ty_pagesmenu_url7' => site_url() . '/server',
			'ty_pagesmenu_adrs8' => 'نمایندگی',
			'ty_pagesmenu_url8' => site_url() . '/reseller',
			'ty_pagesmenu_adrs9' => 'طراحی',
			'ty_pagesmenu_url9' => site_url() . '/design',
			'ty_pagesmenu_adrs10' => 'پشتیبانی فنی',
			'ty_pagesmenu_url10' => site_url() . '/support',
			'ty_pagesmenu_adrs15' => '',
			'ty_pagesmenu_url15' => '',
			'ty_pagesmenu_adrs16' => '',
			'ty_pagesmenu_url16' => '',
			'ty_pagesmenu_adrs17' => '',
			'ty_pagesmenu_url17' => '',
			'ty_pagesmenu_adrs18' => '',
			'ty_pagesmenu_url18' => '',
			'ty_pagesmenu_adrs19' => '',
			'ty_pagesmenu_url19' => '',
			'ty_pagesmenu_adrs11' => 'ایجاد تیکت',
			'ty_pagesmenu_icon11' => 'fa-commenting-o',
			'ty_pagesmenu_url11' => site_url() . '/contactus',
			'ty_pagesmenu_adrs12' => 'شماره حساب ها',
			'ty_pagesmenu_icon12' => 'fa-credit-card',
			'ty_pagesmenu_url12' => site_url() . '/banknums',
			'ty_pagesmenu_adrs13' => 'قوانین',
			'ty_pagesmenu_icon13' => 'fa-book',
			'ty_pagesmenu_url13' => site_url() . '/terms',
			'ty_pagesmenu_adrs14' => 'ارتباط با ما',
			'ty_pagesmenu_icon14' => 'fa-envelope-o',
			'ty_pagesmenu_url14' => site_url() . '/contactus',
			'ty_slideshow_bgcolor' => '#05050d',
			'ty_slideshow_bg' => get_template_directory_uri() . '/tyblue-files/tyimg2.jpg',
			'ty_slideshow_a_chk' => false,
			'ty_slideshow_b_chk' => false,
			'ty_slideshow_c_chk' => false,
			'ty_slideshow_a_adrs1' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_a_adrs2' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_a_adrs3' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_a_adrs4' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_a_adrs5' => 'للورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_a_icon1' => 'fa-shield',
			'ty_slideshow_a_icon1_title' => 'امنیت',
			'ty_slideshow_a_icon2' => 'fa-server',
			'ty_slideshow_a_icon2_title' => 'کیفیت',
			'ty_slideshow_a_icon3' => 'fa-hourglass',
			'ty_slideshow_a_icon3_title' => 'سرعت',
			'ty_slideshow_b_adrs1' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_b_adrs2' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_b_adrs3' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_b_adrs4' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_b_adrs5' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_b_icon1' => 'fa-money',
			'ty_slideshow_b_icon1_title' => 'ضمانت بازگشت وجه',
			'ty_slideshow_b_icon2' => 'fa-credit-card-alt',
			'ty_slideshow_b_icon2_title' => 'انتقال سریع',
			'ty_slideshow_b_icon3' => 'fa-usd',
			'ty_slideshow_b_icon3_title' => 'کمیسیون کمتر',
			'ty_slideshow_c_adrs1' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_c_adrs2' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_c_adrs3' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_c_adrs4' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_c_adrs5' => 'لورم ایپسوم متن ساختگی با تولید سادگی',
			'ty_slideshow_c_icon1' => 'fa-paint-brush',
			'ty_slideshow_c_icon1_title' => 'ایده های خلاقانه',
			'ty_slideshow_c_icon2' => 'fa-picture-o',
			'ty_slideshow_c_icon2_title' => 'طراحی دقیق',
			'ty_slideshow_c_icon3' => 'fa-code',
			'ty_slideshow_c_icon3_title' => 'کدنویسی تمیز',
			'ty_footerlink_chk1' => true,
			'ty_footerlink_chk2' => true,
			'ty_footerlink_chk3' => true,
			'ty_footerlink_chk4' => true,
			'ty_footerlink_chk5' => true,
			'ty_footerlink_chk6' => true,
			'ty_footerlink_chk7' => true,
			'ty_footerlink_chk8' => true,
			'ty_footerlink_chk9' => true,
			'ty_footerlink_chk10' => true,
			'ty_footerlink_chk11' => true,
			'ty_footerlink_chk12' => true,
			'ty_footerlink_title1' => 'لینک صفحات',
			'ty_footerlink_adrs1' => 'لینک صفحات فرعی',
			'ty_footerlink_url1' => '#',
			'ty_footerlink_adrs2' => 'لینک صفحات فرعی',
			'ty_footerlink_url2' => '#',
			'ty_footerlink_adrs3' => 'لینک صفحات فرعی',
			'ty_footerlink_url3' => '#',
			'ty_footerlink_adrs4' => 'لینک صفحات فرعی',
			'ty_footerlink_url4' => '#',
			'ty_footerlink_title2' => 'لینک صفحات',
			'ty_footerlink_adrs5' => 'لینک صفحات فرعی',
			'ty_footerlink_url5' => '#',
			'ty_footerlink_adrs6' => 'لینک صفحات فرعی',
			'ty_footerlink_url6' => '#',
			'ty_footerlink_adrs7' => 'لینک صفحات فرعی',
			'ty_footerlink_url7' => '#',
			'ty_footerlink_adrs8' => 'لینک صفحات فرعی',
			'ty_footerlink_url8' => '#',
			'ty_footerlink_title3' => 'لینک صفحات',
			'ty_footerlink_adrs9' => 'لینک صفحات فرعی',
			'ty_footerlink_url9' => '#',
			'ty_footerlink_adrs10' => 'لینک صفحات فرعی',
			'ty_footerlink_url10' => '#',
			'ty_footerlink_adrs11' => 'لینک صفحات فرعی',
			'ty_footerlink_url11' => '#',
			'ty_footerlink_adrs12' => 'لینک صفحات فرعی',
			'ty_footerlink_url12' => '#',
			'ty_footercopyright_text' => '© کلیه حقوق این سایت محفوظ است',
			'ty_end' => false
		);
		add_option( "ty_theme_settings", $settings, '', 'yes' );
	}	
}


add_action( 'admin_menu', 'ty_settings_page_init' );
function ty_settings_page_init() {
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	$settings_page = add_menu_page( 'Tyblue Settings', 'تنظیمات قالب', 'edit_theme_options', 'typlue-theme-settings', 'ty_settings_page' );
	add_action( "load-{$settings_page}", 'ty_load_settings_page' );
}



function ty_load_settings_page() {
	if (isset( $_POST["ty-settings-submit"] ) && $_POST['ty-settings-submit'] == 'Y' ) {
		check_admin_referer( "ty-settings-page" );
		ty_save_theme_settings();
		$url_parameters = isset($_GET['tab'])? 'updated=true&tab='.$_GET['tab'] : 'updated=true';
		wp_redirect(admin_url('admin.php?page=typlue-theme-settings&'.$url_parameters));
		exit;
	}
}



function ty_save_theme_settings() {
	global $pagenow;
	$settings = get_option( "ty_theme_settings" );
	
	if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-settings' ){ 
		if ( isset ( $_GET['tab'] ) )
	        $tab = $_GET['tab']; 
	    else
	        $tab = 'tyop-main'; 

	    switch ( $tab ){ 
			case 'tyop-main' : 
				$settings['ty_main-checkbox_1']	  = $_POST['ty_main-checkbox_1'];
				$settings['ty_main-checkbox_2']	  = $_POST['ty_main-checkbox_2'];
				$settings['ty_main-checkbox_3']	  = $_POST['ty_main-checkbox_3'];
				$settings['ty_main-checkbox_4']	  = $_POST['ty_main-checkbox_4'];
				$settings['ty_main-checkbox_5']	  = $_POST['ty_main-checkbox_5'];
				$settings['ty_main-checkbox_6']	  = $_POST['ty_main-checkbox_6'];
				$settings['ty_main-checkbox_7']	  = $_POST['ty_main-checkbox_7'];
				$settings['ty_main-checkbox_8']	  = $_POST['ty_main-checkbox_8'];
				$settings['ty_main-checkbox_9']	  = $_POST['ty_main-checkbox_9'];
				$settings['ty_main-checkbox_10']	  = $_POST['ty_main-checkbox_10'];
				$settings['ty_main-checkbox_11']	  = $_POST['ty_main-checkbox_11'];
				$settings['ty_main-checkbox_12']	  = $_POST['ty_main-checkbox_12'];
				$settings['ty_main-checkbox_13']	  = $_POST['ty_main-checkbox_13'];
				$settings['ty_main-checkbox_14']	  = $_POST['ty_main-checkbox_14'];
				$settings['ty_main-checkbox_15']	  = $_POST['ty_main-checkbox_15'];
				$settings['ty_main-checkbox_16']	  = $_POST['ty_main-checkbox_16'];
				$settings['ty_main-checkbox_17']	  = $_POST['ty_main-checkbox_17'];
				$settings['ty_main_blogposts_num']	  = $_POST['ty_main_blogposts_num'];
				$settings['ty_main_blogposts_list']	  = $_POST['ty_main_blogposts_list'];
			break;
			case 'tyop-stylecolors' : 
				$settings['ty_stylecolors_1']	  = $_POST['ty_stylecolors_1'];
				$settings['ty_stylecolors_2']	  = $_POST['ty_stylecolors_2'];
				$settings['ty_stylecolors_3']	  = $_POST['ty_stylecolors_3'];
				$settings['ty_stylecolors_4']	  = $_POST['ty_stylecolors_4'];
				$settings['ty_stylecolors_5']	  = $_POST['ty_stylecolors_5'];
				$settings['ty_stylecolors_6']	  = $_POST['ty_stylecolors_6'];
				$settings['ty_stylecolors_7']	  = $_POST['ty_stylecolors_7'];
				$settings['ty_stylecolors_8']	  = $_POST['ty_stylecolors_8'];
				$settings['ty_stylecolors_9']	  = $_POST['ty_stylecolors_9'];
				$settings['ty_stylecolors_10']	  = $_POST['ty_stylecolors_10'];
				$settings['ty_stylecolors_11']	  = $_POST['ty_stylecolors_11'];
				$settings['ty_stylecolors_12']	  = $_POST['ty_stylecolors_12'];
				$settings['ty_stylecolors_13']	  = $_POST['ty_stylecolors_13'];
				$settings['ty_stylecolors_14']	  = $_POST['ty_stylecolors_14'];
				$settings['ty_stylecolors_15']	  = $_POST['ty_stylecolors_15'];
				$settings['ty_stylecolors_16']	  = $_POST['ty_stylecolors_16'];
				$settings['ty_stylecolors_17']	  = $_POST['ty_stylecolors_17'];
				$settings['ty_stylecolors_18']	  = $_POST['ty_stylecolors_18'];
				$settings['ty_stylecolors_19']	  = $_POST['ty_stylecolors_19'];
				$settings['ty_stylecolors_20']	  = $_POST['ty_stylecolors_20'];
				$settings['ty_stylecolors_21']	  = $_POST['ty_stylecolors_21'];
				$settings['ty_stylecolors_22']	  = $_POST['ty_stylecolors_22'];
				$settings['ty_stylecolors_23']	  = $_POST['ty_stylecolors_23'];
				$settings['ty_stylecolors_24']	  = $_POST['ty_stylecolors_24'];
				$settings['ty_stylecolors_25']	  = $_POST['ty_stylecolors_25'];
				$settings['ty_stylecolors_26']	  = $_POST['ty_stylecolors_26'];
				$settings['ty_stylecolors_27']	  = $_POST['ty_stylecolors_27'];
				$settings['ty_stylecolors_28']	  = $_POST['ty_stylecolors_28'];
			break;
			case 'tyop-logo' : 
				$settings['ty_logo_adrs_chk']	  = $_POST['ty_logo_adrs_chk'];
				$settings['ty_logo_desc_chk']	  = $_POST['ty_logo_desc_chk'];
				$settings['ty_logo_icon_chk']	  = $_POST['ty_logo_icon_chk'];
				$settings['ty_logo_adrspx']	  = $_POST['ty_logo_adrspx'];
				$settings['ty_logo_adrs']	  = $_POST['ty_logo_adrs'];
				$settings['ty_logo_desc']	  = $_POST['ty_logo_desc'];
				$settings['ty_logo_descpx']	  = $_POST['ty_logo_descpx'];
				$settings['ty_logo_icon']	  = $_POST['ty_logo_icon'];
				$settings['ty_logo_iconpx']	  = $_POST['ty_logo_iconpx'];
				$settings['ty_logo_check']	  = $_POST['ty_logo_check'];
				$settings['ty_logo_img']	  = $_POST['ty_logo_img'];
			break;
	        case 'tyop-contact' :
				$settings['ty_contact_chk1']	  = $_POST['ty_contact_chk1'];
				$settings['ty_contact_chk2']	  = $_POST['ty_contact_chk2'];
				$settings['ty_contact_chk3']	  = $_POST['ty_contact_chk3'];
				$settings['ty_contact_chk4']	  = $_POST['ty_contact_chk4'];
				$settings['ty_contact_chk5']	  = $_POST['ty_contact_chk5'];
				$settings['ty_contact_chk6']	  = $_POST['ty_contact_chk6'];
				$settings['ty_contact_chk7']	  = $_POST['ty_contact_chk7'];
				$settings['ty_contact_chk8']	  = $_POST['ty_contact_chk8'];
				$settings['ty_contact_phone']	  = $_POST['ty_contact_phone'];
				$settings['ty_contact_phone2_chk']	  = $_POST['ty_contact_phone2_chk'];
				$settings['ty_contact_phone2']	  = $_POST['ty_contact_phone2'];
				$settings['ty_contact_whatsapp']	  = $_POST['ty_contact_whatsapp'];
				$settings['ty_contact_skype']	  = $_POST['ty_contact_skype'];
				$settings['ty_contact_email']	  = $_POST['ty_contact_email'];
				$settings['ty_contact_youtube']	  = $_POST['ty_contact_youtube'];
				$settings['ty_contact_youtubeurl']	  = $_POST['ty_contact_youtubeurl'];
				$settings['ty_contact_instagram']	  = $_POST['ty_contact_instagram'];
				$settings['ty_contact_instagramurl']	  = $_POST['ty_contact_instagramurl'];
				$settings['ty_contact_google']	  = $_POST['ty_contact_google'];
				$settings['ty_contact_googleurl']	  = $_POST['ty_contact_googleurl'];
				$settings['ty_contact_twitter']	  = $_POST['ty_contact_twitter'];
				$settings['ty_contact_twitterurl']	  = $_POST['ty_contact_twitterurl'];
				$settings['ty_contact_facebook']	  = $_POST['ty_contact_facebook'];
				$settings['ty_contact_facebookurl']	  = $_POST['ty_contact_facebookurl'];
			break; 
			case 'tyop-chat' : 
				$settings['ty_chat_chatonline']  = $_POST['ty_chat_chatonline'];
				$settings['ty_chat_chatonlineurl']  = $_POST['ty_chat_chatonlineurl'];
			break;
			case 'tyop-pagesmenu' : 
				$settings['ty_pagesmenu_show_rdo']	  = $_POST['ty_pagesmenu_show_rdo'];
				$settings['ty_pagesmenu_show_bnrlink']	  = $_POST['ty_pagesmenu_show_bnrlink'];
				$settings['ty_pagesmenu_show_bnrimg']	  = $_POST['ty_pagesmenu_show_bnrimg'];
				$settings['ty_pagesmenu_chk1']	  = $_POST['ty_pagesmenu_chk1'];
				$settings['ty_pagesmenu_chk2']	  = $_POST['ty_pagesmenu_chk2'];
				$settings['ty_pagesmenu_chk3']	  = $_POST['ty_pagesmenu_chk3'];
				$settings['ty_pagesmenu_chk4']	  = $_POST['ty_pagesmenu_chk4'];
				$settings['ty_pagesmenu_chk5']	  = $_POST['ty_pagesmenu_chk5'];
				$settings['ty_pagesmenu_chk6']	  = $_POST['ty_pagesmenu_chk6'];
				$settings['ty_pagesmenu_chk7']	  = $_POST['ty_pagesmenu_chk7'];
				$settings['ty_pagesmenu_chk8']	  = $_POST['ty_pagesmenu_chk8'];
				$settings['ty_pagesmenu_chk9']	  = $_POST['ty_pagesmenu_chk9'];
				$settings['ty_pagesmenu_chk10']	  = $_POST['ty_pagesmenu_chk10'];
				$settings['ty_pagesmenu_chk11']	  = $_POST['ty_pagesmenu_chk11'];
				$settings['ty_pagesmenu_chk12']	  = $_POST['ty_pagesmenu_chk12'];
				$settings['ty_pagesmenu_chk13']	  = $_POST['ty_pagesmenu_chk13'];
				$settings['ty_pagesmenu_chk14']	  = $_POST['ty_pagesmenu_chk14'];
				$settings['ty_pagesmenu_chk15']	  = $_POST['ty_pagesmenu_chk15'];
				$settings['ty_pagesmenu_chk16']	  = $_POST['ty_pagesmenu_chk16'];
				$settings['ty_pagesmenu_chk17']	  = $_POST['ty_pagesmenu_chk17'];
				$settings['ty_pagesmenu_chk18']	  = $_POST['ty_pagesmenu_chk18'];
				$settings['ty_pagesmenu_chk19']	  = $_POST['ty_pagesmenu_chk19'];
				$settings['ty_pagesmenu_adrs1']	  = $_POST['ty_pagesmenu_adrs1'];
				$settings['ty_pagesmenu_icon1']	  = $_POST['ty_pagesmenu_icon1'];
				$settings['ty_pagesmenu_url1']	  = $_POST['ty_pagesmenu_url1'];
				$settings['ty_pagesmenu_adrs2']	  = $_POST['ty_pagesmenu_adrs2'];
				$settings['ty_pagesmenu_icon2']	  = $_POST['ty_pagesmenu_icon2'];
				$settings['ty_pagesmenu_url2']	  = $_POST['ty_pagesmenu_url2'];
				$settings['ty_pagesmenu_adrs3']	  = $_POST['ty_pagesmenu_adrs3'];
				$settings['ty_pagesmenu_icon3']	  = $_POST['ty_pagesmenu_icon3'];
				$settings['ty_pagesmenu_url3']	  = $_POST['ty_pagesmenu_url3'];
				$settings['ty_pagesmenu_adrs4']	  = $_POST['ty_pagesmenu_adrs4'];
				$settings['ty_pagesmenu_icon4']	  = $_POST['ty_pagesmenu_icon4'];
				$settings['ty_pagesmenu_url4']	  = $_POST['ty_pagesmenu_url4'];
				$settings['ty_pagesmenu_adrs5']	  = $_POST['ty_pagesmenu_adrs5'];
				$settings['ty_pagesmenu_icon5']	  = $_POST['ty_pagesmenu_icon5'];
				$settings['ty_pagesmenu_adrs6']	  = $_POST['ty_pagesmenu_adrs6'];
				$settings['ty_pagesmenu_url6']	  = $_POST['ty_pagesmenu_url6'];
				$settings['ty_pagesmenu_adrs7']	  = $_POST['ty_pagesmenu_adrs7'];
				$settings['ty_pagesmenu_url7']	  = $_POST['ty_pagesmenu_url7'];
				$settings['ty_pagesmenu_adrs8']	  = $_POST['ty_pagesmenu_adrs8'];
				$settings['ty_pagesmenu_url8']	  = $_POST['ty_pagesmenu_url8'];
				$settings['ty_pagesmenu_adrs9']	  = $_POST['ty_pagesmenu_adrs9'];
				$settings['ty_pagesmenu_url9']	  = $_POST['ty_pagesmenu_url9'];
				$settings['ty_pagesmenu_adrs10']	  = $_POST['ty_pagesmenu_adrs10'];
				$settings['ty_pagesmenu_url10']	  = $_POST['ty_pagesmenu_url10'];
				$settings['ty_pagesmenu_adrs15']	  = $_POST['ty_pagesmenu_adrs15'];
				$settings['ty_pagesmenu_url15']	  = $_POST['ty_pagesmenu_url15'];
				$settings['ty_pagesmenu_adrs16']	  = $_POST['ty_pagesmenu_adrs16'];
				$settings['ty_pagesmenu_url16']	  = $_POST['ty_pagesmenu_url16'];
				$settings['ty_pagesmenu_adrs17']	  = $_POST['ty_pagesmenu_adrs17'];
				$settings['ty_pagesmenu_url17']	  = $_POST['ty_pagesmenu_url17'];
				$settings['ty_pagesmenu_adrs18']	  = $_POST['ty_pagesmenu_adrs18'];
				$settings['ty_pagesmenu_url18']	  = $_POST['ty_pagesmenu_url18'];
				$settings['ty_pagesmenu_adrs19']	  = $_POST['ty_pagesmenu_adrs19'];
				$settings['ty_pagesmenu_url19']	  = $_POST['ty_pagesmenu_url19'];
				$settings['ty_pagesmenu_adrs11']	  = $_POST['ty_pagesmenu_adrs11'];
				$settings['ty_pagesmenu_icon11']	  = $_POST['ty_pagesmenu_icon11'];
				$settings['ty_pagesmenu_url11']	  = $_POST['ty_pagesmenu_url11'];
				$settings['ty_pagesmenu_adrs12']	  = $_POST['ty_pagesmenu_adrs12'];
				$settings['ty_pagesmenu_icon12']	  = $_POST['ty_pagesmenu_icon12'];
				$settings['ty_pagesmenu_url12']	  = $_POST['ty_pagesmenu_url12'];
				$settings['ty_pagesmenu_adrs13']	  = $_POST['ty_pagesmenu_adrs13'];
				$settings['ty_pagesmenu_icon13']	  = $_POST['ty_pagesmenu_icon13'];
				$settings['ty_pagesmenu_url13']	  = $_POST['ty_pagesmenu_url13'];
				$settings['ty_pagesmenu_adrs14']	  = $_POST['ty_pagesmenu_adrs14'];
				$settings['ty_pagesmenu_icon14']	  = $_POST['ty_pagesmenu_icon14'];
				$settings['ty_pagesmenu_url14']	  = $_POST['ty_pagesmenu_url14'];
			break;
			case 'tyop-slideshow' :
				$settings['ty_slideshow_bgcolor']	  = $_POST['ty_slideshow_bgcolor'];
				$settings['ty_slideshow_bg']	  = $_POST['ty_slideshow_bg'];
				$settings['ty_slideshow_a_chk']	  = $_POST['ty_slideshow_a_chk'];
				$settings['ty_slideshow_b_chk']	  = $_POST['ty_slideshow_b_chk'];
				$settings['ty_slideshow_c_chk']	  = $_POST['ty_slideshow_c_chk'];
				$settings['ty_slideshow_a_adrs1']	  = $_POST['ty_slideshow_a_adrs1'];
				$settings['ty_slideshow_a_adrs2']	  = $_POST['ty_slideshow_a_adrs2'];
				$settings['ty_slideshow_a_adrs3']	  = $_POST['ty_slideshow_a_adrs3'];
				$settings['ty_slideshow_a_adrs4']	  = $_POST['ty_slideshow_a_adrs4'];
				$settings['ty_slideshow_a_adrs5']	  = $_POST['ty_slideshow_a_adrs5'];
				$settings['ty_slideshow_a_icon1']	  = $_POST['ty_slideshow_a_icon1'];
				$settings['ty_slideshow_a_icon1_title']	  = $_POST['ty_slideshow_a_icon1_title'];
				$settings['ty_slideshow_a_icon2']	  = $_POST['ty_slideshow_a_icon2'];
				$settings['ty_slideshow_a_icon2_title']	  = $_POST['ty_slideshow_a_icon2_title'];
				$settings['ty_slideshow_a_icon3']	  = $_POST['ty_slideshow_a_icon3'];
				$settings['ty_slideshow_a_icon3_title']	  = $_POST['ty_slideshow_a_icon3_title'];
				$settings['ty_slideshow_b_adrs1']	  = $_POST['ty_slideshow_b_adrs1'];
				$settings['ty_slideshow_b_adrs2']	  = $_POST['ty_slideshow_b_adrs2'];
				$settings['ty_slideshow_b_adrs3']	  = $_POST['ty_slideshow_b_adrs3'];
				$settings['ty_slideshow_b_adrs4']	  = $_POST['ty_slideshow_b_adrs4'];
				$settings['ty_slideshow_b_adrs5']	  = $_POST['ty_slideshow_b_adrs5'];
				$settings['ty_slideshow_b_icon1']	  = $_POST['ty_slideshow_b_icon1'];
				$settings['ty_slideshow_b_icon1_title']	  = $_POST['ty_slideshow_b_icon1_title'];
				$settings['ty_slideshow_b_icon2']	  = $_POST['ty_slideshow_b_icon2'];
				$settings['ty_slideshow_b_icon2_title']	  = $_POST['ty_slideshow_b_icon2_title'];
				$settings['ty_slideshow_b_icon3']	  = $_POST['ty_slideshow_b_icon3'];
				$settings['ty_slideshow_b_icon3_title']	  = $_POST['ty_slideshow_b_icon3_title'];
				$settings['ty_slideshow_c_adrs1']	  = $_POST['ty_slideshow_c_adrs1'];
				$settings['ty_slideshow_c_adrs2']	  = $_POST['ty_slideshow_c_adrs2'];
				$settings['ty_slideshow_c_adrs3']	  = $_POST['ty_slideshow_c_adrs3'];
				$settings['ty_slideshow_c_adrs4']	  = $_POST['ty_slideshow_c_adrs4'];
				$settings['ty_slideshow_c_adrs5']	  = $_POST['ty_slideshow_c_adrs5'];
				$settings['ty_slideshow_c_icon1']	  = $_POST['ty_slideshow_c_icon1'];
				$settings['ty_slideshow_c_icon1_title']	  = $_POST['ty_slideshow_c_icon1_title'];
				$settings['ty_slideshow_c_icon2']	  = $_POST['ty_slideshow_c_icon2'];
				$settings['ty_slideshow_c_icon2_title']	  = $_POST['ty_slideshow_c_icon2_title'];
				$settings['ty_slideshow_c_icon3']	  = $_POST['ty_slideshow_c_icon3'];
				$settings['ty_slideshow_c_icon3_title']	  = $_POST['ty_slideshow_c_icon3_title'];
			break;
	        case 'tyop-footerlink' : 
				$settings['ty_footerlink_chk1']  = $_POST['ty_footerlink_chk1'];
				$settings['ty_footerlink_chk2']  = $_POST['ty_footerlink_chk2'];
				$settings['ty_footerlink_chk3']  = $_POST['ty_footerlink_chk3'];
				$settings['ty_footerlink_chk4']  = $_POST['ty_footerlink_chk4'];
				$settings['ty_footerlink_chk5']  = $_POST['ty_footerlink_chk5'];
				$settings['ty_footerlink_chk6']  = $_POST['ty_footerlink_chk6'];
				$settings['ty_footerlink_chk7']  = $_POST['ty_footerlink_chk7'];
				$settings['ty_footerlink_chk8']  = $_POST['ty_footerlink_chk8'];
				$settings['ty_footerlink_chk9']  = $_POST['ty_footerlink_chk9'];
				$settings['ty_footerlink_chk10']  = $_POST['ty_footerlink_chk10'];
				$settings['ty_footerlink_chk11']  = $_POST['ty_footerlink_chk11'];
				$settings['ty_footerlink_chk12']  = $_POST['ty_footerlink_chk12'];
				$settings['ty_footerlink_title1']  = $_POST['ty_footerlink_title1'];
				$settings['ty_footerlink_adrs1']  = $_POST['ty_footerlink_adrs1'];
				$settings['ty_footerlink_url1']  = $_POST['ty_footerlink_url1'];
				$settings['ty_footerlink_adrs2']  = $_POST['ty_footerlink_adrs2'];
				$settings['ty_footerlink_url2']  = $_POST['ty_footerlink_url2'];
				$settings['ty_footerlink_adrs3']  = $_POST['ty_footerlink_adrs3'];
				$settings['ty_footerlink_url3']  = $_POST['ty_footerlink_url3'];
				$settings['ty_footerlink_adrs4']  = $_POST['ty_footerlink_adrs4'];
				$settings['ty_footerlink_url4']  = $_POST['ty_footerlink_url4'];
				$settings['ty_footerlink_title2']  = $_POST['ty_footerlink_title2'];
				$settings['ty_footerlink_adrs5']  = $_POST['ty_footerlink_adrs5'];
				$settings['ty_footerlink_url5']  = $_POST['ty_footerlink_url5'];
				$settings['ty_footerlink_adrs6']  = $_POST['ty_footerlink_adrs6'];
				$settings['ty_footerlink_url6']  = $_POST['ty_footerlink_url6'];
				$settings['ty_footerlink_adrs7']  = $_POST['ty_footerlink_adrs7'];
				$settings['ty_footerlink_url7']  = $_POST['ty_footerlink_url7'];
				$settings['ty_footerlink_adrs8']  = $_POST['ty_footerlink_adrs8'];
				$settings['ty_footerlink_url8']  = $_POST['ty_footerlink_url8'];
				$settings['ty_footerlink_title3']  = $_POST['ty_footerlink_title3'];
				$settings['ty_footerlink_adrs9']  = $_POST['ty_footerlink_adrs9'];
				$settings['ty_footerlink_url9']  = $_POST['ty_footerlink_url9'];
				$settings['ty_footerlink_adrs10']  = $_POST['ty_footerlink_adrs10'];
				$settings['ty_footerlink_url10']  = $_POST['ty_footerlink_url10'];
				$settings['ty_footerlink_adrs11']  = $_POST['ty_footerlink_adrs11'];
				$settings['ty_footerlink_url11']  = $_POST['ty_footerlink_url11'];
				$settings['ty_footerlink_adrs12']  = $_POST['ty_footerlink_adrs12'];
				$settings['ty_footerlink_url12']  = $_POST['ty_footerlink_url12'];
			break;
			case 'tyop-footercopyright' : 
				$settings['ty_footercopyright_text']	  = $_POST['ty_footercopyright_text'];
			break;
	    }
	}

	$updated = update_option( "ty_theme_settings", $settings );
}

function ty_admin_tabs( $current = 'tyop-logo' ) {
    $tabs = array( 'tyop-main' => 'تنظیمات عمومی', 'tyop-stylecolors' => 'رنگ بندی قالب', 'tyop-logo' => 'لوگو', 'tyop-contact' => 'ابزارهای ارتباطی', 'tyop-chat' => 'پشتیبانی', 'tyop-pagesmenu' => 'منوی هدر', 'tyop-slideshow' => 'اسلایدشو', 'tyop-footerlink' => 'لینک های فوتر', 'tyop-footercopyright' => 'متن فوتر' ); 
    $links = array();
    echo '<div id="icon-themes" class="icon32"><br></div>';
    echo '<h2 class="nav-tab-wrapper">';
    foreach( $tabs as $tab => $name ){
        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
        echo "<a class='nav-tab$class' href='?page=typlue-theme-settings&tab=$tab'>$name</a>";
        
    }
    echo '</h2>';
}

function ty_settings_page() {
	global $pagenow;
	$settings = get_option( "ty_theme_settings" );
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	
	tythcss();
	tytinymce();
	
	echo '<div class="wrap"> <h2>تنظیمات قالب</h2>';
		
			if (esc_attr(isset( $_GET['updated'] ) == 'true' )) echo '<div class="updated" ><p>تنظیمات ذخیره شد</p></div>';
			
			if ( isset ( $_GET['tab'] ) ) ty_admin_tabs($_GET['tab']); else ty_admin_tabs('tyop-main');
			
		echo '<div id="poststuff">';
		
		$url_settings_tab = isset($_GET['tab'])? '&tab='.$_GET['tab'] : null;
		echo '<form method="post" action="' . get_admin_url( null, "admin.php?page=typlue-theme-settings" ) . $url_settings_tab . '">';
				
				wp_nonce_field( "ty-settings-page" ); 
				
				if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-settings' ){ 
				
					if ( isset ( $_GET['tab'] ) ) $tab = $_GET['tab']; 
					else $tab = 'tyop-main'; 
					
					echo '<table class="form-table">';
					switch ( $tab ){
						case 'tyop-main' : 
							echo '
							<tr>
								<td>
									<input type="checkbox" name="ty_main-checkbox_1" id="ty_main-checkbox_1" value="none" ' . (( $settings["ty_main-checkbox_1"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن کل هدر</span>
								</td>
								
								<td>
									<input type="checkbox" name="ty_main-checkbox_2" id="ty_main-checkbox_2" value="none" ' . (( $settings["ty_main-checkbox_2"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن آیکون تلفن</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_3" id="ty_main-checkbox_3" value="none" ' . (( $settings["ty_main-checkbox_3"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن آیکون ارتباطات</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_4" id="ty_main-checkbox_4" value="none" ' . (( $settings["ty_main-checkbox_4"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن آیکون پشتیبانی</span>
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_main-checkbox_5" id="ty_main-checkbox_5" value="none" ' . (( $settings["ty_main-checkbox_5"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن منوی هدر</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_6" id="ty_main-checkbox_6" value="none" ' . (( $settings["ty_main-checkbox_6"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن اسلایدشو</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_7" id="ty_main-checkbox_7" value="none" ' . (( $settings["ty_main-checkbox_7"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن نوار رنگی هدر و فوتر</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_8" id="ty_main-checkbox_8" value="none" ' . (( $settings["ty_main-checkbox_8"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن بخش خدمات سایت</span>
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_main-checkbox_9" id="ty_main-checkbox_9" value="none" ' . (( $settings["ty_main-checkbox_9"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن لیست قیمت (پلن ها)</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_10" id="ty_main-checkbox_10" value="none" ' . (( $settings["ty_main-checkbox_10"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن بخش  مشتریان ما</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_11" id="ty_main-checkbox_11" value="none" ' . (( $settings["ty_main-checkbox_11"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن آمار خدمات</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_12" id="ty_main-checkbox_12" value="none" ' . (( $settings["ty_main-checkbox_12"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن نظرات مشتریان</span>
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_main-checkbox_13" id="ty_main-checkbox_13" value="none" ' . (( $settings["ty_main-checkbox_13"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن تخفیف ویژه</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_14" id="ty_main-checkbox_14" value="none" ' . (( $settings["ty_main-checkbox_14"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن تصاویر بانک</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_15" id="ty_main-checkbox_15" value="none" ' . (( $settings["ty_main-checkbox_15"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن قسمت بالای فوتر</span>
								</td>
								<td>
									<input type="checkbox" name="ty_main-checkbox_16" id="ty_main-checkbox_16" value="none" ' . (( $settings["ty_main-checkbox_16"]=="none" )? 'checked="checked"' : null) . ' />
									<span class="description"> غیرفعال کردن قسمت پائین فوتر</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-stylecolors' : 
							echo '
							<tr>
								<td>
								<span><span style="color: #ff0000;">راهنمای انتخاب کد رنگ</span> </br>
								داخل کادر مقابل کلیک کرده و رنگ دلخواه خود را انتخاب کنید: <input class="jscolor" value=""></br> حالا کد 6 رقمی آن را کپی کرده و در هر یک از گزینه های زیر که مایل به تغییر آن هستید، استفاده کنید.
								</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_1"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_1" id="ty_stylecolors_1" value="' . ( stripslashes( $settings["ty_stylecolors_1"] ) ) . '" />
								<span class="description">پیش فرض : (#ffffff)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_2"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_2" id="ty_stylecolors_2" value="' . ( stripslashes( $settings["ty_stylecolors_2"] ) ) . '" />
								<span class="description">پیش فرض : (#fbfbfb)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_3"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_3" id="ty_stylecolors_3" value="' . ( stripslashes( $settings["ty_stylecolors_3"] ) ) . '" />
								<span class="description">پیش فرض : (#faf9f7)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_4"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_4" id="ty_stylecolors_4" value="' . ( stripslashes( $settings["ty_stylecolors_4"] ) ) . '" />
								<span class="description">پیش فرض : (#f2f0ec)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_5"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_5" id="ty_stylecolors_5" value="' . ( stripslashes( $settings["ty_stylecolors_5"] ) ) . '" />
								<span class="description">پیش فرض : (#eae6e0)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_6"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_6" id="ty_stylecolors_6" value="' . ( stripslashes( $settings["ty_stylecolors_6"] ) ) . '" />
								<span class="description">پیش فرض : (#e4e0d8)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_7"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_7" id="ty_stylecolors_7" value="' . ( stripslashes( $settings["ty_stylecolors_7"] ) ) . '" />
								<span class="description">پیش فرض : (#30618c)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_8"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_8" id="ty_stylecolors_8" value="' . ( stripslashes( $settings["ty_stylecolors_8"] ) ) . '" />
								<span class="description">پیش فرض : (#2f6b93)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_9"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_9" id="ty_stylecolors_9" value="' . ( stripslashes( $settings["ty_stylecolors_9"] ) ) . '" />
								<span class="description">پیش فرض : (#2e80a0)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_10"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_10" id="ty_stylecolors_10" value="' . ( stripslashes( $settings["ty_stylecolors_10"] ) ) . '" />
								<span class="description">پیش فرض : (#2d93ad)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_11"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_11" id="ty_stylecolors_11" value="' . ( stripslashes( $settings["ty_stylecolors_11"] ) ) . '" />
								<span class="description">پیش فرض : (#2ca8bb)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_12"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_12" id="ty_stylecolors_12" value="'. ( stripslashes( $settings["ty_stylecolors_12"] ) ) . '" />
								<span class="description">پیش فرض : (#bf5841)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_13"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_13" id="ty_stylecolors_13" value="' . ( stripslashes( $settings["ty_stylecolors_13"] ) ) . '" />
								<span class="description">پیش فرض : (#b16651)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_14"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_14" id="ty_stylecolors_14" value="' . ( stripslashes( $settings["ty_stylecolors_14"] ) ) . '" />
								<span class="description">پیش فرض : (#a56e5e)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_15"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_15" id="ty_stylecolors_15" value="' . ( stripslashes( $settings["ty_stylecolors_15"] ) ) . '" />
								<span class="description">پیش فرض : (#9a7a6c)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_16"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_16" id="ty_stylecolors_16" value="' . ( stripslashes( $settings["ty_stylecolors_16"] ) ) . '" />
								<span class="description">پیش فرض : (#8c867b)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_17"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_17" id="ty_stylecolors_17" value="' . ( stripslashes( $settings["ty_stylecolors_17"] ) ) . '" />
								<span class="description">پیش فرض : (#97e8f4)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_18"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_18" id="ty_stylecolors_18" value="' . ( stripslashes( $settings["ty_stylecolors_18"] ) ) . '" />
								<span class="description">پیش فرض : (#cfe4eb)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_19"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_19" id="ty_stylecolors_19" value="' . ( stripslashes( $settings["ty_stylecolors_19"] ) ) . '" />
								<span class="description">پیش فرض : (#97c3d2)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_20"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_20" id="ty_stylecolors_20" value="' . ( stripslashes( $settings["ty_stylecolors_20"] ) ) . '" />
								<span class="description">پیش فرض : (#05050d)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_21"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_21" id="ty_stylecolors_21" value="' . ( stripslashes( $settings["ty_stylecolors_21"] ) ) . '" />
								<span class="description">پیش فرض : (#171626)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_22"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_22" id="ty_stylecolors_22" value="' . ( stripslashes( $settings["ty_stylecolors_22"] ) ) . '" />
								<span class="description">پیش فرض : (#33323b)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_23"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_23" id="ty_stylecolors_23" value="' . ( stripslashes( $settings["ty_stylecolors_23"] ) ) . '" />
								<span class="description">پیش فرض : (#1c263c)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_24"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_24" id="ty_stylecolors_24" value="' . ( stripslashes( $settings["ty_stylecolors_24"] ) ) . '" />
								<span class="description">پیش فرض : (#233b58)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_25"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_25" id="ty_stylecolors_25" value="' . ( stripslashes( $settings["ty_stylecolors_25"] ) ) . '" />
								<span class="description">پیش فرض : (#2b5177)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_26"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_26" id="ty_stylecolors_26" value="' . ( stripslashes( $settings["ty_stylecolors_26"] ) ) . '" />
								<span class="description">پیش فرض : (#eeeeee)</span>
								</td>
							</tr>
							<tr>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_27"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_27" id="ty_stylecolors_27" value="' . ( stripslashes( $settings["ty_stylecolors_27"] ) ) . '" />
								<span class="description">پیش فرض : (#dddddd)</span>
								</td>
								<td>
								<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_stylecolors_28"] ) ) . ';" disabled />
								<input style="direction:ltr;" type="text" name="ty_stylecolors_28" id="ty_stylecolors_28" value="' . ( stripslashes( $settings["ty_stylecolors_28"] ) ) . '" />
								<span class="description">پیش فرض : (#8d8d8d)</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-logo' : 
							echo '
							<tr>
								<th><label>عنوان لوگو : </label></th>
								<td>
									<input type="checkbox" name="ty_logo_adrs_chk" id="ty_logo_adrs_chk" value="inherit" ' . (( $settings["ty_logo_adrs_chk"]=="inherit" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_logo_adrs" id="ty_logo_adrs" value="' . ( stripslashes( $settings["ty_logo_adrs"] ) ) . '" />
								</td>
								<th><label>سایز فونت لوگو : </label></th>
								<td>
									<input type="text" name="ty_logo_adrspx" id="ty_logo_adrspx" value="' . ( stripslashes( $settings["ty_logo_adrspx"] ) ) . '" />
									<span class="description"> پیش فرض : 34</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان لوگو (2) : </label></th>
								<td>
									<input type="checkbox" name="ty_logo_desc_chk" id="ty_logo_desc_chk" value="inherit" ' . (( $settings["ty_logo_desc_chk"]=="inherit" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_logo_desc" id="ty_logo_desc" value="' . ( stripslashes( $settings["ty_logo_desc"] ) ) . '" />
								</td>
								<th><label>سایز فونت لوگو (2) : </label></th>
								<td>
									<input type="text" name="ty_logo_descpx" id="ty_logo_descpx" value="' . ( stripslashes( $settings["ty_logo_descpx"] ) ) . '" />
									<span class="description"> پیش فرض : 16</span>
								</td>
							</tr>
							<tr>
								<th><label>آیکون لوگو : </label></th>
								<td>
									<input type="checkbox" name="ty_logo_icon_chk" id="ty_logo_icon_chk" value="inherit" ' . (( $settings["ty_logo_icon_chk"]=="inherit" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_logo_icon" id="ty_logo_icon" value="' . ( stripslashes( $settings["ty_logo_icon"] ) ) . '" />
									</br><span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_logo_check" id="ty_logo_check" value="<style>.ty5-thlgo-txt{display:none;}.ty5-thlgo-img{display:inherit;}</style>" ' . (( $settings["ty_logo_check"]=='<style>.ty5-thlgo-txt{display:none;}.ty5-thlgo-img{display:inherit;}</style>' )? 'checked="checked"' : null ) . ' />
									<span class="description"> فعال کردن تصویر لوگو</a></span>
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر لوگو : </label></th>
								<td>
									<input type="text" name="ty_logo_img" id="ty_logo_img" value="' . ( stripslashes( $settings["ty_logo_img"] ) ) . '" />
									<span class="description">  (حداکثر اندازه مورد قبول 200*80 می باشد)</span>
								</td>
							</tr>
							<tr>
								<th><label>مشاهده تصویر لوگو : </label></th>
								<td>
									<img style="max-width: 200px;" src="' . ( stripslashes( $settings["ty_logo_img"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-contact' :
							echo '
							<tr>
								<th><label>شماره تلفن : </label></th>
								<td>
									<input type="text" name="ty_contact_phone" id="ty_contact_phone" value="' .  ( stripslashes( $settings["ty_contact_phone"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>شماره واتساپ : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk1" id="ty_contact_chk1" value="inline-table" ' . (( $settings["ty_contact_chk1"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_whatsapp" id="ty_contact_whatsapp" value="' .  ( stripslashes( $settings["ty_contact_whatsapp"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>ID  اسکایپ : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk2" id="ty_contact_chk2" value="inline-table" ' . (( $settings["ty_contact_chk2"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_skype" id="ty_contact_skype" value="' .  ( stripslashes( $settings["ty_contact_skype"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>اایمیل : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk3" id="ty_contact_chk3" value="inline-table" ' . (( $settings["ty_contact_chk3"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_email" id="ty_contact_email" value="' .  ( stripslashes( $settings["ty_contact_email"] ) ) . '" />
									</br><span class="description">مثال : info@hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>ID یوتیوب : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk4" id="ty_contact_chk4" value="inline-table" ' . (( $settings["ty_contact_chk4"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_youtube" id="ty_contact_youtube" value="' .  ( stripslashes( $settings["ty_contact_youtube"] ) ) . '" />
								</td>
								<th><label>لینک یوتیوب : </label></th>
								<td>
									<input type="text" name="ty_contact_youtubeurl" id="ty_contact_youtubeurl" value="' .  ( stripslashes( $settings["ty_contact_youtubeurl"] ) ) . '" />
									</br><span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>ID اینستاگرام : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk5" id="ty_contact_chk5" value="inline-table" ' . (( $settings["ty_contact_chk5"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_instagram" id="ty_contact_instagram" value="' .  ( stripslashes( $settings["ty_contact_instagram"] ) ) . '" />
								</td>
								<th><label>لینک اینستاگرام : </label></th>
								<td>
									<input type="text" name="ty_contact_instagramurl" id="ty_contact_instagramurl" value="' .  ( stripslashes( $settings["ty_contact_instagramurl"] ) ) . '" />
									</br><span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>ID گوگل : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk6" id="ty_contact_chk6" value="inline-table" ' . (( $settings["ty_contact_chk6"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_google" id="ty_contact_google" value="' .  ( stripslashes( $settings["ty_contact_google"] ) ) . '" />
								</td>
								<th><label>لینک گوگل : </label></th>
								<td>
								  	<input type="text" name="ty_contact_googleurl" id="ty_contact_googleurl" value="' .  ( stripslashes( $settings["ty_contact_googleurl"] ) ) . '" />
							        </br><span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>ID توئیتر : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk7" id="ty_contact_chk7" value="inline-table" ' . (( $settings["ty_contact_chk7"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_twitter" id="ty_contact_twitter" value="' .  ( stripslashes( $settings["ty_contact_twitter"] ) ) . '" />
								</td>
								<th><label>لینک توئیتر : </label></th>
								<td>
									<input type="text" name="ty_contact_twitterurl" id="ty_contact_twitterurl" value="' .  ( stripslashes( $settings["ty_contact_twitterurl"] ) ) . '" />
									</br><span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>ID فیس بوک : </label></th>
								<td>
									<input type="checkbox" name="ty_contact_chk8" id="ty_contact_chk8" value="inline-table" ' . (( $settings["ty_contact_chk8"]=="inline-table" )?  'checked="checked"' : null) . ' />
									<input type="text" name="ty_contact_facebook" id="ty_contact_facebook" value="' .  ( stripslashes( $settings["ty_contact_facebook"] ) ) . '" />
								</td>
								<th><label>لینک  فیس بوک : </label></th>
								<td>
									<input type="text" name="ty_contact_facebookurl" id="ty_contact_facebookurl" value="' .  ( stripslashes( $settings["ty_contact_facebookurl"] ) ) . '" />
									</br><span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-chat' : 
							echo '
							<tr>
								<th><label>وضعیت : </label></th>
								<td>
									<select id="ty_chaty_chatonline" name="ty_chat_chatonline"><option value="#5ac32c" ' . (( $settings["ty_chat_chatonline"]=='#5ac32c' )? 'selected="selected"' : null) . '>آنلاین</option><option value="#e82323" ' . (( $settings["ty_chat_chatonline"]=='#e82323' )? 'selected="selected"' : null) . '>آفلاین</option></select>
									
									<div style="display:inline-table;border-radius:100px;-moz-border-radius:100px;-webkit-border-radius:100px;width:10px;height:10px;background-color:' . ( stripslashes( $settings["ty_chat_chatonline"] ) ) . ';"></div>
								</td>
							</tr>
							<tr>
								<th><label>لینک : </label></th>
								<td>
									<input type="text" name="ty_chat_chatonlineurl" id="ty_chat_chatonlineurl" value="' . ( stripslashes( $settings["ty_chat_chatonlineurl"] ) ). '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-pagesmenu' : 
							echo '
							<tr>
								<td>
									<span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs1" id="ty_pagesmenu_adrs1" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon1" id="ty_pagesmenu_icon1" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url1" id="ty_pagesmenu_url1" value="' .  ( stripslashes( $settings["ty_pagesmenu_url1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk1" id="ty_pagesmenu_chk1" value="inline-table" ' . (( $settings["ty_pagesmenu_chk1"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs1"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs2" id="ty_pagesmenu_adrs2" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon2" id="ty_pagesmenu_icon2" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url2" id="ty_pagesmenu_url2" value="' .  ( stripslashes( $settings["ty_pagesmenu_url2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk2" id="ty_pagesmenu_chk2" value="inline-table" ' . (( $settings["ty_pagesmenu_chk2"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs2"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs3" id="ty_pagesmenu_adrs3" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon3" id="ty_pagesmenu_icon3" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url3" id="ty_pagesmenu_url3" value="' .  ( stripslashes( $settings["ty_pagesmenu_url3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk3" id="ty_pagesmenu_chk3" value="inline-table" ' . (( $settings["ty_pagesmenu_chk3"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs3"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs4" id="ty_pagesmenu_adrs4" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon4" id="ty_pagesmenu_icon4" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url4" id="ty_pagesmenu_url4" value="' .  ( stripslashes( $settings["ty_pagesmenu_url4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk4" id="ty_pagesmenu_chk4" value="inline-table" ' . (( $settings["ty_pagesmenu_chk4"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs4"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									منوی بازشو
								</td>
							</tr>
							<tr>
								<th><label>عنوان منوی کشویی : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk5" id="ty_pagesmenu_chk5" value="inline-table" ' . (( $settings["ty_pagesmenu_chk5"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs5" id="ty_pagesmenu_adrs5" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs5"] ) ) . '" />
								</td>
								<th><label>آیکون منوی کشویی : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon5" id="ty_pagesmenu_icon5" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk6" id="ty_pagesmenu_chk6" value="inline" ' . (( $settings["ty_pagesmenu_chk6"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs6" id="ty_pagesmenu_adrs6" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs6"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url6" id="ty_pagesmenu_url6" value="' .  ( stripslashes( $settings["ty_pagesmenu_url6"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk7" id="ty_pagesmenu_chk7" value="inline" ' . (( $settings["ty_pagesmenu_chk7"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs7" id="ty_pagesmenu_adrs7" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs7"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url7" id="ty_pagesmenu_url7" value="' .  ( stripslashes( $settings["ty_pagesmenu_url7"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk8" id="ty_pagesmenu_chk8" value="inline" ' . (( $settings["ty_pagesmenu_chk8"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs8" id="ty_pagesmenu_adrs8" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs8"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url8" id="ty_pagesmenu_url8" value="' .  ( stripslashes( $settings["ty_pagesmenu_url8"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk9" id="ty_pagesmenu_chk9" value="inline" ' . (( $settings["ty_pagesmenu_chk9"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs9" id="ty_pagesmenu_adrs9" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs9"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url9" id="ty_pagesmenu_url9" value="' .  ( stripslashes( $settings["ty_pagesmenu_url9"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk10" id="ty_pagesmenu_chk10" value="inline" ' . (( $settings["ty_pagesmenu_chk10"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs10" id="ty_pagesmenu_adrs10" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs10"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url10" id="ty_pagesmenu_url10" value="' .  ( stripslashes( $settings["ty_pagesmenu_url10"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو (اضافی) : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk11" id="ty_pagesmenu_chk11" value="inline" ' . (( $settings["ty_pagesmenu_chk11"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs15" id="ty_pagesmenu_adrs15" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs15"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url15" id="ty_pagesmenu_url15" value="' .  ( stripslashes( $settings["ty_pagesmenu_url15"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو (اضافی) : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk12" id="ty_pagesmenu_chk12" value="inline" ' . (( $settings["ty_pagesmenu_chk12"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs16" id="ty_pagesmenu_adrs16" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs16"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url16" id="ty_pagesmenu_url16" value="' .  ( stripslashes( $settings["ty_pagesmenu_url16"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو (اضافی) : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk13" id="ty_pagesmenu_chk13" value="inline" ' . (( $settings["ty_pagesmenu_chk13"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs17" id="ty_pagesmenu_adrs17" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs17"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url17" id="ty_pagesmenu_url17" value="' .  ( stripslashes( $settings["ty_pagesmenu_url17"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو (اضافی) : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk14" id="ty_pagesmenu_chk14" value="inline" ' . (( $settings["ty_pagesmenu_chk14"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs18" id="ty_pagesmenu_adrs18" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs18"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url18" id="ty_pagesmenu_url18" value="' .  ( stripslashes( $settings["ty_pagesmenu_url18"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو (اضافی) : </label></th>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk15" id="ty_pagesmenu_chk15" value="inline" ' . (( $settings["ty_pagesmenu_chk15"]=="inline" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_pagesmenu_adrs19" id="ty_pagesmenu_adrs19" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs19"] ) ) . '" />
								</td>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url19" id="ty_pagesmenu_url19" value="' .  ( stripslashes( $settings["ty_pagesmenu_url19"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs11" id="ty_pagesmenu_adrs11" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs11"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon11" id="ty_pagesmenu_icon11" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon11"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url11" id="ty_pagesmenu_url11" value="' .  ( stripslashes( $settings["ty_pagesmenu_url11"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk16" id="ty_pagesmenu_chk16" value="inline-table" ' . (( $settings["ty_pagesmenu_chk16"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs11"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs12" id="ty_pagesmenu_adrs12" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs12"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon12" id="ty_pagesmenu_icon12" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon12"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url12" id="ty_pagesmenu_url12" value="' .  ( stripslashes( $settings["ty_pagesmenu_url12"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk17" id="ty_pagesmenu_chk17" value="inline-table" ' . (( $settings["ty_pagesmenu_chk17"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs12"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs13" id="ty_pagesmenu_adrs13" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs13"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon13" id="ty_pagesmenu_icon13" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon13"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url13" id="ty_pagesmenu_url13" value="' .  ( stripslashes( $settings["ty_pagesmenu_url13"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk18" id="ty_pagesmenu_chk18" value="inline-table" ' . (( $settings["ty_pagesmenu_chk18"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs13"] ) ) . '"</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_adrs14" id="ty_pagesmenu_adrs14" value="' .  ( stripslashes( $settings["ty_pagesmenu_adrs14"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_icon14" id="ty_pagesmenu_icon14" value="' .  ( stripslashes( $settings["ty_pagesmenu_icon14"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک منو : </label></th>
								<td>
									<input type="text" name="ty_pagesmenu_url14" id="ty_pagesmenu_url14" value="' .  ( stripslashes( $settings["ty_pagesmenu_url14"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_pagesmenu_chk19" id="ty_pagesmenu_chk19" value="inline-table" ' . (( $settings["ty_pagesmenu_chk19"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعال کردن و نمایش منوی "' .  ( stripslashes( $settings["ty_pagesmenu_adrs14"] ) ) . '"</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-slideshow' : 
							echo '
							<tr>
								<td>
									<span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									پس زمینه اسلاید
								</td>
							</tr>
							</tr>
								<th><label>رنگ پس زمینه اسلاید : </label></th>
								<td>
									<input style="border:1px solid;width:50px;background:' . ( stripslashes( $settings["ty_slideshow_bgcolor"] ) ) . ';" disabled />
									<input style="direction:ltr;" type="text" name="ty_slideshow_bgcolor" id="ty_slideshow_bgcolor" value="' . ( stripslashes( $settings["ty_slideshow_bgcolor"] ) ) . '" />
									<span class="description">پیش فرض : (#05050d)</span>
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر پس زمینه اسلاید : </label></th>
								<td>
									<input type="text" name="ty_slideshow_bg" id="ty_slideshow_bg" value="' . ( stripslashes( $settings["ty_slideshow_bg"] ) ) . '" />
									</br><span class="description"> پیش فرض : ' . get_template_directory_uri() . '/tyblue-files/tyimg2.jpg</a></span>
								</td>
							<tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									اسلاید اول
								</td>
							</tr>
							<tr>
								<th><label>تیتر (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_adrs1" id="ty_slideshow_a_adrs1" value="' . ( stripslashes( $settings["ty_slideshow_a_adrs1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_adrs2" id="ty_slideshow_a_adrs2" value="' . ( stripslashes( $settings["ty_slideshow_a_adrs2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_adrs3" id="ty_slideshow_a_adrs3" value="' . ( stripslashes( $settings["ty_slideshow_a_adrs3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (4) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_adrs4" id="ty_slideshow_a_adrs4" value="' . ( stripslashes( $settings["ty_slideshow_a_adrs4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (5) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_adrs5" id="ty_slideshow_a_adrs5" value="' . ( stripslashes( $settings["ty_slideshow_a_adrs5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_icon1" id="ty_slideshow_a_icon1" value="' . ( stripslashes( $settings["ty_slideshow_a_icon1"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_icon1_title" id="ty_slideshow_a_icon1_title" value="' . ( stripslashes( $settings["ty_slideshow_a_icon1_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_icon2" id="ty_slideshow_a_icon2" value="' . ( stripslashes( $settings["ty_slideshow_a_icon2"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_icon2_title" id="ty_slideshow_a_icon2_title" value="' . ( stripslashes( $settings["ty_slideshow_a_icon2_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_icon3" id="ty_slideshow_a_icon3" value="' . ( stripslashes( $settings["ty_slideshow_a_icon3"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_a_icon3_title" id="ty_slideshow_a_icon3_title" value="' . ( stripslashes( $settings["ty_slideshow_a_icon3_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									اسلاید دوم
								</td>
							</tr>
							<tr>
								<th><label>تیتر (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_adrs1" id="ty_slideshow_b_adrs1" value="' . ( stripslashes( $settings["ty_slideshow_b_adrs1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_adrs2" id="ty_slideshow_b_adrs2" value="' . ( stripslashes( $settings["ty_slideshow_b_adrs2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_adrs3" id="ty_slideshow_b_adrs3" value="' . ( stripslashes( $settings["ty_slideshow_b_adrs3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (4) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_adrs4" id="ty_slideshow_b_adrs4" value="' . ( stripslashes( $settings["ty_slideshow_b_adrs4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (5) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_adrs5" id="ty_slideshow_b_adrs5" value="' . ( stripslashes( $settings["ty_slideshow_b_adrs5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_icon1" id="ty_slideshow_b_icon1" value="' . ( stripslashes( $settings["ty_slideshow_b_icon1"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_icon1_title" id="ty_slideshow_b_icon1_title" value="' . ( stripslashes( $settings["ty_slideshow_b_icon1_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_icon2" id="ty_slideshow_b_icon2" value="' . ( stripslashes( $settings["ty_slideshow_b_icon2"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_icon2_title" id="ty_slideshow_b_icon2_title" value="' . ( stripslashes( $settings["ty_slideshow_b_icon2_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_icon3" id="ty_slideshow_b_icon3" value="' . ( stripslashes( $settings["ty_slideshow_b_icon3"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_b_icon3_title" id="ty_slideshow_b_icon3_title" value="' . ( stripslashes( $settings["ty_slideshow_b_icon3_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									اسلاید سوم
								</td>
							</tr>
							<tr>
								<th><label>تیتر (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_adrs1" id="ty_slideshow_c_adrs1" value="' . ( stripslashes( $settings["ty_slideshow_c_adrs1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_adrs2" id="ty_slideshow_c_adrs2" value="' . ( stripslashes( $settings["ty_slideshow_c_adrs2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_adrs3" id="ty_slideshow_c_adrs3" value="' . ( stripslashes( $settings["ty_slideshow_c_adrs3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (4) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_adrs4" id="ty_slideshow_c_adrs4" value="' . ( stripslashes( $settings["ty_slideshow_c_adrs4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تیتر (5) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_adrs5" id="ty_slideshow_c_adrs5" value="' . ( stripslashes( $settings["ty_slideshow_c_adrs5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_icon1" id="ty_slideshow_c_icon1" value="' . ( stripslashes( $settings["ty_slideshow_c_icon1"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (1) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_icon1_title" id="ty_slideshow_c_icon1_title" value="' . ( stripslashes( $settings["ty_slideshow_c_icon1_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_icon2" id="ty_slideshow_c_icon2" value="' . ( stripslashes( $settings["ty_slideshow_c_icon2"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (2) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_icon2_title" id="ty_slideshow_c_icon2_title" value="' . ( stripslashes( $settings["ty_slideshow_c_icon2_title"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آیکون (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_icon3" id="ty_slideshow_c_icon3" value="' . ( stripslashes( $settings["ty_slideshow_c_icon3"] ) ) . '" />
								</td>
								<th><label>عنوان آیکون (3) : </label></th>
								<td>
									<input type="text" name="ty_slideshow_c_icon3_title" id="ty_slideshow_c_icon3_title" value="' . ( stripslashes( $settings["ty_slideshow_c_icon3_title"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-footerlink' : 
							echo '
							<tr>
								<th><label style="color: #ff0000;">عنوان ستون اول : </label></th>
								<td>
									<input type="text" name="ty_footerlink_title1" id="ty_footerlink_title1" value="' . ( stripslashes( $settings["ty_footerlink_title1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (1) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk1" id="ty_footerlink_chk1" value="table" ' . (( $settings["ty_footerlink_chk1"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs1" id="ty_footerlink_adrs1" value="' . ( stripslashes( $settings["ty_footerlink_adrs1"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (1) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url1" id="ty_footerlink_url1" value="' . ( stripslashes( $settings["ty_footerlink_url1"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (2) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk2" id="ty_footerlink_chk2" value="table" ' . (( $settings["ty_footerlink_chk2"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs2" id="ty_footerlink_adrs2" value="' . ( stripslashes( $settings["ty_footerlink_adrs2"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (2) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url2" id="ty_footerlink_url2" value="' . ( stripslashes( $settings["ty_footerlink_url2"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (3) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk3" id="ty_footerlink_chk3" value="table" ' . (( $settings["ty_footerlink_chk3"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs3" id="ty_footerlink_adrs3" value="' . ( stripslashes( $settings["ty_footerlink_adrs3"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (3) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url3" id="ty_footerlink_url3" value="' . ( stripslashes( $settings["ty_footerlink_url3"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (4) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk4" id="ty_footerlink_chk4" value="table" ' . (( $settings["ty_footerlink_chk4"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs4" id="ty_footerlink_adrs4" value="' . ( stripslashes( $settings["ty_footerlink_adrs4"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (4) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url4" id="ty_footerlink_url4" value="' . ( stripslashes( $settings["ty_footerlink_url4"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label style="color: #ff0000;">عنوان ستون دوم : </label></th>
								<td>
									<input type="text" name="ty_footerlink_title2" id="ty_footerlink_title1" value="' . ( stripslashes( $settings["ty_footerlink_title2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (5) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk5" id="ty_footerlink_chk5" value="table" ' . (( $settings["ty_footerlink_chk5"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs5" id="ty_footerlink_adrs5" value="' . ( stripslashes( $settings["ty_footerlink_adrs5"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (5) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url5" id="ty_footerlink_url5" value="' . ( stripslashes( $settings["ty_footerlink_url5"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (6) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk6" id="ty_footerlink_chk6" value="table" ' . (( $settings["ty_footerlink_chk6"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs6" id="ty_footerlink_adrs6" value="' . ( stripslashes( $settings["ty_footerlink_adrs6"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (6) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url6" id="ty_footerlink_url6" value="' . ( stripslashes( $settings["ty_footerlink_url6"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (7) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk7" id="ty_footerlink_chk7" value="table" ' . (( $settings["ty_footerlink_chk7"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs7" id="ty_footerlink_adrs7" value="' . ( stripslashes( $settings["ty_footerlink_adrs7"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (7) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url7" id="ty_footerlink_url7" value="' . ( stripslashes( $settings["ty_footerlink_url7"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (8) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk8" id="ty_footerlink_chk8" value="table" ' . (( $settings["ty_footerlink_chk8"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs8" id="ty_footerlink_adrs8" value="' . ( stripslashes( $settings["ty_footerlink_adrs8"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (8) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url8" id="ty_footerlink_url8" value="' . ( stripslashes( $settings["ty_footerlink_url8"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label style="color: #ff0000;">عنوان ستون سوم : </label></th>
								<td>
									<input type="text" name="ty_footerlink_title3" id="ty_footerlink_title3" value="' . ( stripslashes( $settings["ty_footerlink_title3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (9) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk9" id="ty_footerlink_chk9" value="table" ' . (( $settings["ty_footerlink_chk9"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs9" id="ty_footerlink_adrs9" value="' . ( stripslashes( $settings["ty_footerlink_adrs9"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (9) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url9" id="ty_footerlink_url9" value="' . ( stripslashes( $settings["ty_footerlink_url9"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (10) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk10" id="ty_footerlink_chk10" value="table" ' . (( $settings["ty_footerlink_chk10"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs10" id="ty_footerlink_adrs10" value="' . ( stripslashes( $settings["ty_footerlink_adrs10"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (10) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url10" id="ty_footerlink_url10" value="' . ( stripslashes( $settings["ty_footerlink_url10"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (11) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk11" id="ty_footerlink_chk11" value="table" ' . (( $settings["ty_footerlink_chk11"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs11" id="ty_footerlink_adrs11" value="' . ( stripslashes( $settings["ty_footerlink_adrs11"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (11) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url11" id="ty_footerlink_url11" value="' . ( stripslashes( $settings["ty_footerlink_url11"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان آیتم (12) : </label></th>
								<td>
									<input type="checkbox" name="ty_footerlink_chk12" id="ty_footerlink_chk12" value="table" ' . (( $settings["ty_footerlink_chk12"]=="table" )? 'checked="checked"' : null) . ' />
									<input type="text" name="ty_footerlink_adrs12" id="ty_footerlink_adrs12" value="' . ( stripslashes( $settings["ty_footerlink_adrs12"] ) ) . '" />
								</td>
								<th><label>لینک آیتم (12) : </label></th>
								<td>
									<input type="text" name="ty_footerlink_url12" id="ty_footerlink_url12" value="' . ( stripslashes( $settings["ty_footerlink_url12"] ) ) . '" />
									<span class="description">مثال : https://hyrcanweb.ir</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-footercopyright' : 
							echo '
							<tr>
								<th><label>متن حقوقی فوتر : </label></th>
								<td>
									<input type="text" name="ty_footercopyright_text" id="ty_footercopyright_text" value="' . ( stripslashes( $settings["ty_footercopyright_text"] ) ) . '" />
								</td>
							</tr>
							';
						break;
					}
					echo '</table>';
				}
				
				echo '
				<p class="submit" style="clear: both;">
					<input type="submit" name="Submit"  class="button-primary" value="ذخیره تنظیمات" />
					<input type="hidden" name="ty-settings-submit" value="Y" />
				</p>
			</form>
			<p>' . $theme_data['Name'] . ' - ترجمه، توسعه و بهینه سازی  توسط : عقیل حسین زاده || <span>پشتیبانی : <a target="_blank" href="https://hyrcanweb.ir">hyrcanweb.ir</a> </span> || <span>ایمیل : info@hyrcanweb.ir  -  aghil.hosseinzadeh@gmail.com</span> || تلگرام : <a target="_blank" href="https://telegram.me/AGhilHz">@AGhilHz</a></p>
		</div>

	</div>
	';
}

// start sub menu 1

add_action( 'init', 'ty_sub1admin_init' );
add_action( 'admin_menu', 'ty_sub1settings_page_init' );

function ty_sub1admin_init() {
	$sub1settings = get_option( "ty_theme_sub1settings" );
	if ( empty( $sub1settings ) ) {
		$sub1settings = array(
			'ty_newsnoteadv_1_chk' => false,
			'ty_newsnoteadv_2_chk' => false,
			'ty_newsnoteadv_3_chk' => false,
			'ty_newsnoteadv_1_icon' => 'fa-newspaper-o',
			'ty_newsnoteadv_1_adrs' => '[اخبار شرکت]',
			'ty_newsnoteadv_1_text' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_newsnoteadv_2_icon' => 'fa-sticky-note-o',
			'ty_newsnoteadv_2_adrs' => '[توضیحات]',
			'ty_newsnoteadv_2_text' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_newsnoteadv_3_icon' => 'fa-bell-o',
			'ty_newsnoteadv_3_adrs' => '[تبلیغات]',
			'ty_newsnoteadv_3_text' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_servintro_a_chk' => false,
			'ty_servintro_b_chk' => false,
			'ty_servintro_c_chk' => false,
			'ty_servintro_a_icon' => 'fa-server',
			'ty_servintro_a_adrs' => 'سرورهای سریع',
			'ty_servintro_a_desc' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است...',
			'ty_servintro_b_icon' => 'fa-shield',
			'ty_servintro_b_adrs' => 'امنیت فوق العاده',
			'ty_servintro_b_desc' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است...',
			'ty_servintro_c_icon' => 'fa-ticket',
			'ty_servintro_c_adrs' => 'خدمات به مشتریان مجلل',
			'ty_servintro_c_desc' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است...',
			'ty_offershome_a_chk' => false,
			'ty_offershome_b_chk' => false,
			'ty_offershome_c_chk' => false,
			'ty_offershome_d_chk' => false,
			'ty_offershome_a_price' => '1000',
			'ty_offershome_a_curr' => 'تومان / سالانه',
			'ty_offershome_a_adrs' => 'پلن شماره یک',
			'ty_offershome_a_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_offershome_a_list1' => 'فضا : 1000 مگابایت',
			'ty_offershome_a_list2' => 'پهنای باند : 1000 گیگابایت',
			'ty_offershome_a_list3' => 'ایمیل : نامحدود',
			'ty_offershome_a_list4' => 'دیتابیس : نامحدود',
			'ty_offershome_a_list5' => 'سایر امکانات : نامحدود',
			'ty_offershome_a_order' => 'سفارش دهید',
			'ty_offershome_a_orderlink' => site_url() . '/contact',
			'ty_offershome_b_price' => '2000',
			'ty_offershome_b_curr' => 'تومان / سالانه',
			'ty_offershome_b_adrs' => 'پلن شماره دو',
			'ty_offershome_b_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_offershome_b_list1' => 'فضا : 2000 مگابایت',
			'ty_offershome_b_list2' => 'پهنای باند : 2000 گیگابایت',
			'ty_offershome_b_list3' => 'ایمیل : نامحدود',
			'ty_offershome_b_list4' => 'دیتابیس : نامحدود',
			'ty_offershome_b_list5' => 'سایر امکانات : نامحدود',
			'ty_offershome_b_order' => 'سفارش دهید',
			'ty_offershome_b_orderlink' => site_url() . '/contact',
			'ty_offershome_c_price' => '3000',
			'ty_offershome_c_curr' => 'تومان / سالانه',
			'ty_offershome_c_adrs' => 'پلن شماره سه',
			'ty_offershome_c_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_offershome_c_list1' => 'فضا : 3000 مگابایت',
			'ty_offershome_c_list2' => 'پهنای باند : 3000 گیگابایت',
			'ty_offershome_c_list3' => 'ایمیل : نامحدود',
			'ty_offershome_c_list4' => 'دیتابیس : نامحدود',
			'ty_offershome_c_list5' => 'سایر امکانات : نامحدود',
			'ty_offershome_c_order' => 'سفارش دهید',
			'ty_offershome_c_orderlink' => site_url() . '/contact',
			'ty_offershome_d_price' => '4000',
			'ty_offershome_d_curr' => 'تومان / سالانه',
			'ty_offershome_d_adrs' => 'پلن شماره چهار',
			'ty_offershome_d_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_offershome_d_list1' => 'فضا : 4000 مگابایت',
			'ty_offershome_d_list2' => 'پهنای باند : 4000 گیگابایت',
			'ty_offershome_d_list3' => 'ایمیل : نامحدود',
			'ty_offershome_d_list4' => 'دیتابیس : نامحدود',
			'ty_offershome_d_list5' => 'سایر امکانات : نامحدود',
			'ty_offershome_d_order' => 'سفارش دهید',
			'ty_offershome_d_orderlink' => site_url() . '/contact',
			'ty_ourclient_title' => 'مشتریان ما',
			'ty_ourclient_titleicon' => 'fa-laptop',
			'ty_ourclient_e_chk' => false,
			'ty_ourclient_f_chk' => false,
			'ty_ourclient_g_chk' => false,
			'ty_ourclient_h_chk' => false,
			'ty_ourclient_a_icon' => 'fa-wordpress',
			'ty_ourclient_a_adrs' => 'وردپرس',
			'ty_ourclient_a_desc' => 'اسکریپت مدیریت محتوا',
			'ty_ourclient_a_picth' => '',
			'ty_ourclient_a_pic' => '',
			'ty_ourclient_b_icon' => 'fa-joomla',
			'ty_ourclient_b_adrs' => 'جوملا',
			'ty_ourclient_b_desc' => 'اسکریپت مدیریت محتوا',
			'ty_ourclient_b_picth' => '',
			'ty_ourclient_b_pic' => '',
			'ty_ourclient_c_icon' => 'fa-drupal',
			'ty_ourclient_c_adrs' => 'دروپال',
			'ty_ourclient_c_desc' => 'اسکریپت مدیریت محتوا',
			'ty_ourclient_c_picth' => '',
			'ty_ourclient_c_pic' => '',
			'ty_ourclient_d_icon' => 'fa-opencart',
			'ty_ourclient_d_adrs' => 'اپن کارت',
			'ty_ourclient_d_desc' => 'اسکریپت فروشگاه ساز',
			'ty_ourclient_d_picth' => '',
			'ty_ourclient_d_pic' => '',
			'ty_ourclient_e_icon' => 'fa-android',
			'ty_ourclient_e_adrs' => 'اندروید',
			'ty_ourclient_e_desc' => 'سیستم عامل تلفن همراه',
			'ty_ourclient_e_picth' => '',
			'ty_ourclient_e_pic' => '',
			'ty_ourclient_f_icon' => 'fa-apple',
			'ty_ourclient_f_adrs' => 'اپل',
			'ty_ourclient_f_desc' => 'شرکت الکترونیکی',
			'ty_ourclient_f_picth' => '',
			'ty_ourclient_f_pic' => '',
			'ty_ourclient_g_icon' => 'fa-linux',
			'ty_ourclient_g_adrs' => 'لینوکس',
			'ty_ourclient_g_desc' => 'سیستم عامل متن باز',
			'ty_ourclient_g_picth' => '',
			'ty_ourclient_g_pic' => '',
			'ty_ourclient_h_icon' => 'fa-amazon',
			'ty_ourclient_h_adrs' => 'آمازون',
			'ty_ourclient_h_desc' => 'فروشگاه الکترونیکی',
			'ty_ourclient_h_picth' => '',
			'ty_ourclient_h_pic' => '',
			'ty_stats_a_chk' => false,
			'ty_stats_b_chk' => false,
			'ty_stats_c_chk' => false,
			'ty_stats_d_chk' => false,
			'ty_stats_e_chk' => false,
			'ty_stats_a_icon' => 'fa-link',
			'ty_stats_a_adrs' => 'میزبانی',
			'ty_stats_a_num' => '20550',
			'ty_stats_a_desc' => 'سایت',
			'ty_stats_b_icon' => 'fa-server',
			'ty_stats_b_adrs' => 'ارائه',
			'ty_stats_b_num' => '2550',
			'ty_stats_b_desc' => 'سرور',
			'ty_stats_c_icon' => 'fa-users',
			'ty_stats_c_adrs' => 'ما',
			'ty_stats_c_num' => '255650',
			'ty_stats_c_desc' => 'مشتری داریم',
			'ty_stats_d_icon' => 'fa-file-image-o',
			'ty_stats_d_adrs' => 'طراحی',
			'ty_stats_d_num' => '1055',
			'ty_stats_d_desc' => 'قالب',
			'ty_stats_e_icon' => 'fa-check-square-o',
			'ty_stats_e_adrs' => 'ارائه بیش از',
			'ty_stats_e_num' => '510655',
			'ty_stats_e_desc' => 'سرویس',
			'ty_feedback_title' => 'برخی از دیدگاه های مشتریان',
			'ty_feedback_titleicon' => 'fa-commenting-o',
			'ty_feedback_a_chk' => false,
			'ty_feedback_b_chk' => false,
			'ty_feedback_a_name' => 'احمد احمدیان',
			'ty_feedback_a_img' => get_template_directory_uri() . '/tyblue-files/tyimg3.jpg',
			'ty_feedback_a_text' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_feedback_b_name' => 'احمد احمدیان',
			'ty_feedback_b_img' => get_template_directory_uri() . '/tyblue-files/tyimg3.jpg',
			'ty_feedback_b_text' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_oneoffer_icon' => 'fa-money',
			'ty_oneoffer_adrs' => '50% تخفیف برای ثبت دامنه های .info بصورت سالانه',
			'ty_oneoffer_desc' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_oneoffer_order' => 'سفارش دهید',
			'ty_oneoffer_orderlink' => site_url() . '/contact',
			'ty_paypic_chk1' => true,
			'ty_paypic_chk2' => true,
			'ty_paypic_chk3' => true,
			'ty_paypic_chk4' => true,
			'ty_paypic_chk5' => true,
			'ty_paypic_chk6' => true,
			'ty_paypic_chk7' => true,
			'ty_paypic_chk8' => true,
			'ty_paypic_chk9' => true,
			'ty_paypic_chk10' => true,
			'ty_paypic_chk11' => true,
			'ty_paypic_chk12' => true,
			'ty_paypic_chk13' => true,
			'ty_paypic_chk14' => true,
			'ty_paypic_chk15' => true,
			'ty_paypic_chk16' => true,
			'ty_paypic_chk17' => true,
			'ty_paypic_chk18' => true,
			'ty_paypic_1' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/agribank.png',
			'ty_paypic_2' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_makan.png',
			'ty_paypic_3' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_mellat.png',
			'ty_paypic_4' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_melli.png',
			'ty_paypic_5' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_saderat.png',
			'ty_paypic_6' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_sepah.png',
			'ty_paypic_7' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank-ansar.png',
			'ty_paypic_8' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/banke-markazi.png',
			'ty_paypic_9' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bankKarAfarin.png',
			'ty_paypic_10' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/enbank.png',
			'ty_paypic_11' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/parsian.png',
			'ty_paypic_12' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/pasargadBank.png',
			'ty_paypic_13' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/refah-bank.png',
			'ty_paypic_14' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/saman.png',
			'ty_paypic_15' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/sarmaye-bank.png',
			'ty_paypic_16' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/sina-bank.png',
			'ty_paypic_17' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/tosee-bank.png',
			'ty_paypic_18' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/toseeFinance.png',
			'ty_end' => false
			
		);
		add_option( "ty_theme_sub1settings", $sub1settings, '', 'yes' );
	}	
}

function ty_sub1settings_page_init() {
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	$sub1settings_page = add_submenu_page( 'typlue-theme-settings', 'تنظیمات صفحه اصلی - قالب تیبلو', 'صفحه اصلی', 'edit_theme_options', 'typlue-theme-sub1settings', 'ty_sub1settings_page' );
	add_action( "load-{$sub1settings_page}", 'ty_load_sub1settings_page' );
}

function ty_load_sub1settings_page() {
	if (isset( $_POST["ty-sub1settings-submit"] ) && $_POST['ty-sub1settings-submit'] == 'Y' ) {
		check_admin_referer( "ty-sub1settings-page" );
		ty_save_theme_sub1settings();
		$url_parameters = isset($_GET['tab'])? 'updated=true&tab='.$_GET['tab'] : 'updated=true';
		wp_redirect(admin_url('admin.php?page=typlue-theme-sub1settings&'.$url_parameters));
		exit;
	}
}

function ty_save_theme_sub1settings() {
	global $pagenow;
	$sub1settings = get_option( "ty_theme_sub1settings" );
	
	if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub1settings' ){ 
		if ( isset ( $_GET['tab'] ) )
	        $tab = $_GET['tab']; 
	    else
	        $tab = 'tyop-newsnoteadv'; 

	    switch ( $tab ){ 
			case 'tyop-newsnoteadv' :
				$sub1settings['ty_newsnoteadv_1_chk']	  = $_POST['ty_newsnoteadv_1_chk'];
				$sub1settings['ty_newsnoteadv_2_chk']	  = $_POST['ty_newsnoteadv_2_chk'];
				$sub1settings['ty_newsnoteadv_3_chk']	  = $_POST['ty_newsnoteadv_3_chk'];
				$sub1settings['ty_newsnoteadv_1_icon']	  = $_POST['ty_newsnoteadv_1_icon'];
				$sub1settings['ty_newsnoteadv_1_adrs']	  = $_POST['ty_newsnoteadv_1_adrs'];
				$sub1settings['ty_newsnoteadv_1_text']	  = $_POST['ty_newsnoteadv_1_text'];
				$sub1settings['ty_newsnoteadv_2_icon']	  = $_POST['ty_newsnoteadv_2_icon'];
				$sub1settings['ty_newsnoteadv_2_adrs']	  = $_POST['ty_newsnoteadv_2_adrs'];
				$sub1settings['ty_newsnoteadv_2_text']	  = $_POST['ty_newsnoteadv_2_text'];
				$sub1settings['ty_newsnoteadv_3_icon']	  = $_POST['ty_newsnoteadv_3_icon'];
				$sub1settings['ty_newsnoteadv_3_adrs']	  = $_POST['ty_newsnoteadv_3_adrs'];
				$sub1settings['ty_newsnoteadv_3_text']	  = $_POST['ty_newsnoteadv_3_text'];
				
			break;
			case 'tyop-servintro' :
				$sub1settings['ty_servintro_a_chk']	  = $_POST['ty_servintro_a_chk'];
				$sub1settings['ty_servintro_b_chk']	  = $_POST['ty_servintro_b_chk'];
				$sub1settings['ty_servintro_c_chk']	  = $_POST['ty_servintro_c_chk'];
				$sub1settings['ty_servintro_a_icon']	  = $_POST['ty_servintro_a_icon'];
				$sub1settings['ty_servintro_a_adrs']	  = $_POST['ty_servintro_a_adrs'];
				$sub1settings['ty_servintro_a_desc']	  = $_POST['ty_servintro_a_desc'];
				$sub1settings['ty_servintro_b_icon']	  = $_POST['ty_servintro_b_icon'];
				$sub1settings['ty_servintro_b_adrs']	  = $_POST['ty_servintro_b_adrs'];
				$sub1settings['ty_servintro_b_desc']	  = $_POST['ty_servintro_b_desc'];
				$sub1settings['ty_servintro_c_icon']	  = $_POST['ty_servintro_c_icon'];
				$sub1settings['ty_servintro_c_adrs']	  = $_POST['ty_servintro_c_adrs'];
				$sub1settings['ty_servintro_c_desc']	  = $_POST['ty_servintro_c_desc'];
			break;
			case 'tyop-offershome' :
				$sub1settings['ty_offershome_a_chk']	  = $_POST['ty_offershome_a_chk'];
				$sub1settings['ty_offershome_b_chk']	  = $_POST['ty_offershome_b_chk'];
				$sub1settings['ty_offershome_c_chk']	  = $_POST['ty_offershome_c_chk'];
				$sub1settings['ty_offershome_d_chk']	  = $_POST['ty_offershome_d_chk'];
				$sub1settings['ty_offershome_a_price']	  = $_POST['ty_offershome_a_price'];
				$sub1settings['ty_offershome_a_curr']	  = $_POST['ty_offershome_a_curr'];
				$sub1settings['ty_offershome_a_adrs']	  = $_POST['ty_offershome_a_adrs'];
				$sub1settings['ty_offershome_a_desc']	  = $_POST['ty_offershome_a_desc'];
				$sub1settings['ty_offershome_a_list1']	  = $_POST['ty_offershome_a_list1'];
				$sub1settings['ty_offershome_a_list2']	  = $_POST['ty_offershome_a_list2'];
				$sub1settings['ty_offershome_a_list3']	  = $_POST['ty_offershome_a_list3'];
				$sub1settings['ty_offershome_a_list4']	  = $_POST['ty_offershome_a_list4'];
				$sub1settings['ty_offershome_a_list5']	  = $_POST['ty_offershome_a_list5'];
				$sub1settings['ty_offershome_a_order']	  = $_POST['ty_offershome_a_order'];
				$sub1settings['ty_offershome_a_orderlink']	  = $_POST['ty_offershome_a_orderlink'];
				$sub1settings['ty_offershome_b_price']	  = $_POST['ty_offershome_b_price'];
				$sub1settings['ty_offershome_b_curr']	  = $_POST['ty_offershome_b_curr'];
				$sub1settings['ty_offershome_b_adrs']	  = $_POST['ty_offershome_b_adrs'];
				$sub1settings['ty_offershome_b_desc']	  = $_POST['ty_offershome_b_desc'];
				$sub1settings['ty_offershome_b_list1']	  = $_POST['ty_offershome_b_list1'];
				$sub1settings['ty_offershome_b_list2']	  = $_POST['ty_offershome_b_list2'];
				$sub1settings['ty_offershome_b_list3']	  = $_POST['ty_offershome_b_list3'];
				$sub1settings['ty_offershome_b_list4']	  = $_POST['ty_offershome_b_list4'];
				$sub1settings['ty_offershome_b_list5']	  = $_POST['ty_offershome_b_list5'];
				$sub1settings['ty_offershome_b_order']	  = $_POST['ty_offershome_b_order'];
				$sub1settings['ty_offershome_b_orderlink']	  = $_POST['ty_offershome_b_orderlink'];
				$sub1settings['ty_offershome_c_price']	  = $_POST['ty_offershome_c_price'];
				$sub1settings['ty_offershome_c_curr']	  = $_POST['ty_offershome_c_curr'];
				$sub1settings['ty_offershome_c_adrs']	  = $_POST['ty_offershome_c_adrs'];
				$sub1settings['ty_offershome_c_desc']	  = $_POST['ty_offershome_c_desc'];
				$sub1settings['ty_offershome_c_list1']	  = $_POST['ty_offershome_c_list1'];
				$sub1settings['ty_offershome_c_list2']	  = $_POST['ty_offershome_c_list2'];
				$sub1settings['ty_offershome_c_list3']	  = $_POST['ty_offershome_c_list3'];
				$sub1settings['ty_offershome_c_list4']	  = $_POST['ty_offershome_c_list4'];
				$sub1settings['ty_offershome_c_list5']	  = $_POST['ty_offershome_c_list5'];
				$sub1settings['ty_offershome_c_order']	  = $_POST['ty_offershome_c_order'];
				$sub1settings['ty_offershome_c_orderlink']	  = $_POST['ty_offershome_c_orderlink'];
				$sub1settings['ty_offershome_d_price']	  = $_POST['ty_offershome_d_price'];
				$sub1settings['ty_offershome_d_curr']	  = $_POST['ty_offershome_d_curr'];
				$sub1settings['ty_offershome_d_adrs']	  = $_POST['ty_offershome_d_adrs'];
				$sub1settings['ty_offershome_d_desc']	  = $_POST['ty_offershome_d_desc'];
				$sub1settings['ty_offershome_d_list1']	  = $_POST['ty_offershome_d_list1'];
				$sub1settings['ty_offershome_d_list2']	  = $_POST['ty_offershome_d_list2'];
				$sub1settings['ty_offershome_d_list3']	  = $_POST['ty_offershome_d_list3'];
				$sub1settings['ty_offershome_d_list4']	  = $_POST['ty_offershome_d_list4'];
				$sub1settings['ty_offershome_d_list5']	  = $_POST['ty_offershome_d_list5'];
				$sub1settings['ty_offershome_d_order']	  = $_POST['ty_offershome_d_order'];
				$sub1settings['ty_offershome_d_orderlink']	  = $_POST['ty_offershome_d_orderlink'];
			break;
			case 'tyop-ourclient' :
				$sub1settings['ty_ourclient_title']	  = $_POST['ty_ourclient_title'];
				$sub1settings['ty_ourclient_titleicon']	  = $_POST['ty_ourclient_titleicon'];
				$sub1settings['ty_ourclient_e_chk']	  = $_POST['ty_ourclient_e_chk'];
				$sub1settings['ty_ourclient_f_chk']	  = $_POST['ty_ourclient_f_chk'];
				$sub1settings['ty_ourclient_g_chk']	  = $_POST['ty_ourclient_g_chk'];
				$sub1settings['ty_ourclient_h_chk']	  = $_POST['ty_ourclient_h_chk'];
				$sub1settings['ty_ourclient_a_icon']	  = $_POST['ty_ourclient_a_icon'];
				$sub1settings['ty_ourclient_a_adrs']	  = $_POST['ty_ourclient_a_adrs'];
				$sub1settings['ty_ourclient_a_desc']	  = $_POST['ty_ourclient_a_desc'];
				$sub1settings['ty_ourclient_a_picth']	  = $_POST['ty_ourclient_a_picth'];
				$sub1settings['ty_ourclient_a_pic']	  = $_POST['ty_ourclient_a_pic'];
				$sub1settings['ty_ourclient_b_icon']	  = $_POST['ty_ourclient_b_icon'];
				$sub1settings['ty_ourclient_b_adrs']	  = $_POST['ty_ourclient_b_adrs'];
				$sub1settings['ty_ourclient_b_desc']	  = $_POST['ty_ourclient_b_desc'];
				$sub1settings['ty_ourclient_b_picth']	  = $_POST['ty_ourclient_b_picth'];
				$sub1settings['ty_ourclient_b_pic']	  = $_POST['ty_ourclient_b_pic'];
				$sub1settings['ty_ourclient_c_icon']	  = $_POST['ty_ourclient_c_icon'];
				$sub1settings['ty_ourclient_c_adrs']	  = $_POST['ty_ourclient_c_adrs'];
				$sub1settings['ty_ourclient_c_desc']	  = $_POST['ty_ourclient_c_desc'];
				$sub1settings['ty_ourclient_c_picth']	  = $_POST['ty_ourclient_c_picth'];
				$sub1settings['ty_ourclient_c_pic']	  = $_POST['ty_ourclient_c_pic'];
				$sub1settings['ty_ourclient_d_icon']	  = $_POST['ty_ourclient_d_icon'];
				$sub1settings['ty_ourclient_d_adrs']	  = $_POST['ty_ourclient_d_adrs'];
				$sub1settings['ty_ourclient_d_desc']	  = $_POST['ty_ourclient_d_desc'];
				$sub1settings['ty_ourclient_d_picth']	  = $_POST['ty_ourclient_d_picth'];
				$sub1settings['ty_ourclient_d_pic']	  = $_POST['ty_ourclient_d_pic'];
				$sub1settings['ty_ourclient_e_icon']	  = $_POST['ty_ourclient_e_icon'];
				$sub1settings['ty_ourclient_e_adrs']	  = $_POST['ty_ourclient_e_adrs'];
				$sub1settings['ty_ourclient_e_desc']	  = $_POST['ty_ourclient_e_desc'];
				$sub1settings['ty_ourclient_e_picth']	  = $_POST['ty_ourclient_e_picth'];
				$sub1settings['ty_ourclient_e_pic']	  = $_POST['ty_ourclient_e_pic'];
				$sub1settings['ty_ourclient_f_icon']	  = $_POST['ty_ourclient_f_icon'];
				$sub1settings['ty_ourclient_f_adrs']	  = $_POST['ty_ourclient_f_adrs'];
				$sub1settings['ty_ourclient_f_desc']	  = $_POST['ty_ourclient_f_desc'];
				$sub1settings['ty_ourclient_f_picth']	  = $_POST['ty_ourclient_f_picth'];
				$sub1settings['ty_ourclient_f_pic']	  = $_POST['ty_ourclient_f_pic'];
				$sub1settings['ty_ourclient_g_icon']	  = $_POST['ty_ourclient_g_icon'];
				$sub1settings['ty_ourclient_g_adrs']	  = $_POST['ty_ourclient_g_adrs'];
				$sub1settings['ty_ourclient_g_desc']	  = $_POST['ty_ourclient_g_desc'];
				$sub1settings['ty_ourclient_g_picth']	  = $_POST['ty_ourclient_g_picth'];
				$sub1settings['ty_ourclient_g_pic']	  = $_POST['ty_ourclient_g_pic'];
				$sub1settings['ty_ourclient_h_icon']	  = $_POST['ty_ourclient_h_icon'];
				$sub1settings['ty_ourclient_h_adrs']	  = $_POST['ty_ourclient_h_adrs'];
				$sub1settings['ty_ourclient_h_desc']	  = $_POST['ty_ourclient_h_desc'];
				$sub1settings['ty_ourclient_h_picth']	  = $_POST['ty_ourclient_h_picth'];
				$sub1settings['ty_ourclient_h_pic']	  = $_POST['ty_ourclient_h_pic'];
			break;
			case 'tyop-stats' :
				$sub1settings['ty_stats_a_chk']	  = $_POST['ty_stats_a_chk'];
				$sub1settings['ty_stats_b_chk']	  = $_POST['ty_stats_b_chk'];
				$sub1settings['ty_stats_c_chk']	  = $_POST['ty_stats_c_chk'];
				$sub1settings['ty_stats_d_chk']	  = $_POST['ty_stats_d_chk'];
				$sub1settings['ty_stats_e_chk']	  = $_POST['ty_stats_e_chk'];
				$sub1settings['ty_stats_a_icon']	  = $_POST['ty_stats_a_icon'];
				$sub1settings['ty_stats_a_adrs']	  = $_POST['ty_stats_a_adrs'];
				$sub1settings['ty_stats_a_num']	  = $_POST['ty_stats_a_num'];
				$sub1settings['ty_stats_a_desc']	  = $_POST['ty_stats_a_desc'];
				$sub1settings['ty_stats_b_icon']	  = $_POST['ty_stats_b_icon'];
				$sub1settings['ty_stats_b_adrs']	  = $_POST['ty_stats_b_adrs'];
				$sub1settings['ty_stats_b_num']	  = $_POST['ty_stats_b_num'];
				$sub1settings['ty_stats_b_desc']	  = $_POST['ty_stats_b_desc'];
				$sub1settings['ty_stats_c_icon']	  = $_POST['ty_stats_c_icon'];
				$sub1settings['ty_stats_c_adrs']	  = $_POST['ty_stats_c_adrs'];
				$sub1settings['ty_stats_c_num']	  = $_POST['ty_stats_c_num'];
				$sub1settings['ty_stats_c_desc']	  = $_POST['ty_stats_c_desc'];
				$sub1settings['ty_stats_d_icon']	  = $_POST['ty_stats_d_icon'];
				$sub1settings['ty_stats_d_adrs']	  = $_POST['ty_stats_d_adrs'];
				$sub1settings['ty_stats_d_num']	  = $_POST['ty_stats_d_num'];
				$sub1settings['ty_stats_d_desc']	  = $_POST['ty_stats_d_desc'];
				$sub1settings['ty_stats_e_icon']	  = $_POST['ty_stats_e_icon'];
				$sub1settings['ty_stats_e_adrs']	  = $_POST['ty_stats_e_adrs'];
				$sub1settings['ty_stats_e_num']	  = $_POST['ty_stats_e_num'];
				$sub1settings['ty_stats_e_desc']	  = $_POST['ty_stats_e_desc'];
			break;
			case 'tyop-feedback' :
				$sub1settings['ty_feedback_title']	  = $_POST['ty_feedback_title'];
				$sub1settings['ty_feedback_titleicon']	  = $_POST['ty_feedback_titleicon'];
				$sub1settings['ty_feedback_a_chk']	  = $_POST['ty_feedback_a_chk'];
				$sub1settings['ty_feedback_b_chk']	  = $_POST['ty_feedback_b_chk'];
				$sub1settings['ty_feedback_a_name']	  = $_POST['ty_feedback_a_name'];
				$sub1settings['ty_feedback_a_img']	  = $_POST['ty_feedback_a_img'];
				$sub1settings['ty_feedback_a_text']	  = $_POST['ty_feedback_a_text'];
				$sub1settings['ty_feedback_b_name']	  = $_POST['ty_feedback_b_name'];
				$sub1settings['ty_feedback_b_img']	  = $_POST['ty_feedback_b_img'];
				$sub1settings['ty_feedback_b_text']	  = $_POST['ty_feedback_b_text'];
			break;
			case 'tyop-oneoffer' :
				$sub1settings['ty_oneoffer_icon']	  = $_POST['ty_oneoffer_icon'];
				$sub1settings['ty_oneoffer_adrs']	  = $_POST['ty_oneoffer_adrs'];
				$sub1settings['ty_oneoffer_desc']	  = $_POST['ty_oneoffer_desc'];
				$sub1settings['ty_oneoffer_order']	  = $_POST['ty_oneoffer_order'];
				$sub1settings['ty_oneoffer_orderlink']	  = $_POST['ty_oneoffer_orderlink'];
			break;
			case 'tyop-paypic' :
				$sub1settings['ty_paypic_chk1']	  = $_POST['ty_paypic_chk1'];
				$sub1settings['ty_paypic_chk2']	  = $_POST['ty_paypic_chk2'];
				$sub1settings['ty_paypic_chk3']	  = $_POST['ty_paypic_chk3'];
				$sub1settings['ty_paypic_chk4']	  = $_POST['ty_paypic_chk4'];
				$sub1settings['ty_paypic_chk5']	  = $_POST['ty_paypic_chk5'];
				$sub1settings['ty_paypic_chk6']	  = $_POST['ty_paypic_chk6'];
				$sub1settings['ty_paypic_chk7']	  = $_POST['ty_paypic_chk7'];
				$sub1settings['ty_paypic_chk8']	  = $_POST['ty_paypic_chk8'];
				$sub1settings['ty_paypic_chk9']	  = $_POST['ty_paypic_chk9'];
				$sub1settings['ty_paypic_chk10']	  = $_POST['ty_paypic_chk10'];
				$sub1settings['ty_paypic_chk11']	  = $_POST['ty_paypic_chk11'];
				$sub1settings['ty_paypic_chk12']	  = $_POST['ty_paypic_chk12'];
				$sub1settings['ty_paypic_chk13']	  = $_POST['ty_paypic_chk13'];
				$sub1settings['ty_paypic_chk14']	  = $_POST['ty_paypic_chk14'];
				$sub1settings['ty_paypic_chk15']	  = $_POST['ty_paypic_chk15'];
				$sub1settings['ty_paypic_chk16']	  = $_POST['ty_paypic_chk16'];
				$sub1settings['ty_paypic_chk17']	  = $_POST['ty_paypic_chk17'];
				$sub1settings['ty_paypic_chk18']	  = $_POST['ty_paypic_chk18'];
				$sub1settings['ty_paypic_1']	  = $_POST['ty_paypic_1'];
				$sub1settings['ty_paypic_2']	  = $_POST['ty_paypic_2'];
				$sub1settings['ty_paypic_3']	  = $_POST['ty_paypic_3'];
				$sub1settings['ty_paypic_4']	  = $_POST['ty_paypic_4'];
				$sub1settings['ty_paypic_5']	  = $_POST['ty_paypic_5'];
				$sub1settings['ty_paypic_6']	  = $_POST['ty_paypic_6'];
				$sub1settings['ty_paypic_7']	  = $_POST['ty_paypic_7'];
				$sub1settings['ty_paypic_8']	  = $_POST['ty_paypic_8'];
				$sub1settings['ty_paypic_9']	  = $_POST['ty_paypic_9'];
				$sub1settings['ty_paypic_10']	  = $_POST['ty_paypic_10'];
				$sub1settings['ty_paypic_11']	  = $_POST['ty_paypic_11'];
				$sub1settings['ty_paypic_12']	  = $_POST['ty_paypic_12'];
				$sub1settings['ty_paypic_13']	  = $_POST['ty_paypic_13'];
				$sub1settings['ty_paypic_14']	  = $_POST['ty_paypic_14'];
				$sub1settings['ty_paypic_15']	  = $_POST['ty_paypic_15'];
				$sub1settings['ty_paypic_16']	  = $_POST['ty_paypic_16'];
				$sub1settings['ty_paypic_17']	  = $_POST['ty_paypic_17'];
				$sub1settings['ty_paypic_18']	  = $_POST['ty_paypic_18'];
			break;
	    }
	}

	$updated = update_option( "ty_theme_sub1settings", $sub1settings );
}

function ty_sub1admin_tabs( $current = 'tyop-newsnoteadv' ) { 
    $tabs = array( 'tyop-newsnoteadv' => 'اخبار و اطلاعیه ها', 'tyop-servintro' => 'خدمات سایت', 'tyop-offershome' => 'پلن های صفحه اصلی', 'tyop-ourclient' => 'مشتریان ما', 'tyop-stats' => 'آمار خدمات', 'tyop-feedback' => 'نظرات مشتریان', 'tyop-oneoffer' => 'تخفیف ویژه', 'tyop-paypic' => 'تصاویر بانک ها' ); 
    $links = array();
    echo '<div id="icon-themes" class="icon32"><br></div>';
    echo '<h2 class="nav-tab-wrapper">';
    foreach( $tabs as $tab => $name ){
        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
        echo "<a class='nav-tab$class' href='?page=typlue-theme-sub1settings&tab=$tab'>$name</a>";
        
    }
    echo '</h2>';
}

function ty_sub1settings_page() {
	global $pagenow;
	$sub1settings = get_option( "ty_theme_sub1settings" );
	$theme_data = get_theme_data( TEMPLATEPATH . '/style.css' );
	
	tytinymce();
	
	echo '<div class="wrap"> <h2>تنظیمات صفحه اصلی</h2>';
		
			if (esc_attr(isset( $_GET['updated'] ) == 'true' )) echo '<div class="updated" ><p>تنظیمات ذخیره شد</p></div>';
			
			if ( isset ( $_GET['tab'] ) ) ty_sub1admin_tabs($_GET['tab']); else ty_sub1admin_tabs('tyop-newsnoteadv');
		
		echo '<div id="poststuff">';
		
		$url_sub1settings_tab = isset($_GET['tab'])? '&tab='.$_GET['tab'] : null;
		echo '<form method="post" action="' . get_admin_url( null, "admin.php?page=typlue-theme-sub1settings" ) . $url_sub1settings_tab . '">';
				
				wp_nonce_field( "ty-sub1settings-page" ); 
				
				if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub1settings' ){ 
				
					if ( isset ( $_GET['tab'] ) ) $tab = $_GET['tab']; 
					else $tab = 'tyop-newsnoteadv'; 
					
					echo '<table class="form-table">';
					switch ( $tab ){
						case 'tyop-newsnoteadv' : 
							echo '
							<tr>
								<td>
									</br><span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_1_icon" id="ty_newsnoteadv_1_icon" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_1_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_1_adrs" id="ty_newsnoteadv_1_adrs" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_1_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_1_text" id="ty_newsnoteadv_1_text" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_1_text"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_newsnoteadv_1_chk" id="ty_newsnoteadv_1_chk" value="block" ' . (( $sub1settings["ty_newsnoteadv_1_chk"]=="block" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی این نوار متن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_2_icon" id="ty_newsnoteadv_2_icon" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_2_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_2_adrs" id="ty_newsnoteadv_2_adrs" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_2_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_2_text" id="ty_newsnoteadv_2_text" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_2_text"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_newsnoteadv_2_chk" id="ty_newsnoteadv_2_chk" value="block" ' . (( $sub1settings["ty_newsnoteadv_2_chk"]=="block" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی این نوار متن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_3_icon" id="ty_newsnoteadv_3_icon" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_3_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_3_adrs" id="ty_newsnoteadv_3_adrs" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_3_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن : </label></th>
								<td>
									<input type="text" name="ty_newsnoteadv_3_text" id="ty_newsnoteadv_3_text" value="' . ( stripslashes( $sub1settings["ty_newsnoteadv_3_text"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_newsnoteadv_3_chk" id="ty_newsnoteadv_3_chk" value="block" ' . (( $sub1settings["ty_newsnoteadv_3_chk"]=="block" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی این نوار متن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							';
						break;
						case 'tyop-servintro' : 
							echo '
							<tr>
								<td>
									</br><span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_servintro_a_icon" id="ty_servintro_a_icon" value="' . ( stripslashes( $sub1settings["ty_servintro_a_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_servintro_a_adrs" id="ty_servintro_a_adrs" value="' . ( stripslashes( $sub1settings["ty_servintro_a_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن : </label></th>
								<td>
									<textarea name="ty_servintro_a_desc" id="ty_servintro_a_desc" cols="60" rows="5" >' . ( stripslashes( $sub1settings["ty_servintro_a_desc"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_servintro_b_icon" id="ty_servintro_b_icon" value="' . ( stripslashes( $sub1settings["ty_servintro_b_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_servintro_b_adrs" id="ty_servintro_b_adrs" value="' . ( stripslashes( $sub1settings["ty_servintro_b_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن : </label></th>
								<td>
									<textarea name="ty_servintro_b_desc" id="ty_servintro_b_desc" cols="60" rows="5" >' . ( stripslashes( $sub1settings["ty_servintro_b_desc"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_servintro_c_icon" id="ty_servintro_c_icon" value="' . ( stripslashes( $sub1settings["ty_servintro_c_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_servintro_c_adrs" id="ty_servintro_c_adrs" value="' . ( stripslashes( $sub1settings["ty_servintro_c_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن : </label></th>
								<td>
									<textarea name="ty_servintro_c_desc" id="ty_servintro_c_desc" cols="60" rows="5" >' . ( stripslashes( $sub1settings["ty_servintro_c_desc"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-offershome' : 
							echo '
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن اول</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_price" id="ty_offershome_a_price" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_curr" id="ty_offershome_a_curr" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_adrs" id="ty_offershome_a_adrs" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_offershome_a_desc" id="ty_offershome_a_desc" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_list1" id="ty_offershome_a_list1" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_list2" id="ty_offershome_a_list2" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_list3" id="ty_offershome_a_list3" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_list4" id="ty_offershome_a_list4" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_list5" id="ty_offershome_a_list5" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_order" id="ty_offershome_a_order" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_a_orderlink" id="ty_offershome_a_orderlink" value="' .  ( stripslashes( $sub1settings["ty_offershome_a_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن دوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_price" id="ty_offershome_b_price" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_curr" id="ty_offershome_b_curr" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_adrs" id="ty_offershome_b_adrs" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_offershome_b_desc" id="ty_offershome_b_desc" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_list1" id="ty_offershome_b_list1" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_list2" id="ty_offershome_b_list2" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_list3" id="ty_offershome_b_list3" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_list4" id="ty_offershome_b_list4" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_list5" id="ty_offershome_b_list5" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_order" id="ty_offershome_b_order" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_b_orderlink" id="ty_offershome_b_orderlink" value="' .  ( stripslashes( $sub1settings["ty_offershome_b_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن سوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_price" id="ty_offershome_c_price" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_curr" id="ty_offershome_c_curr" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_adrs" id="ty_offershome_c_adrs" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_offershome_c_desc" id="ty_offershome_c_desc" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_list1" id="ty_offershome_c_list1" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_list2" id="ty_offershome_c_list2" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_list3" id="ty_offershome_c_list3" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_list4" id="ty_offershome_c_list4" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_list5" id="ty_offershome_c_list5" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_order" id="ty_offershome_c_order" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_c_orderlink" id="ty_offershome_c_orderlink" value="' .  ( stripslashes( $sub1settings["ty_offershome_c_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن چهارم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_price" id="ty_offershome_d_price" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_curr" id="ty_offershome_d_curr" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_adrs" id="ty_offershome_d_adrs" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_offershome_d_desc" id="ty_offershome_d_desc" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_list1" id="ty_offershome_d_list1" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_list2" id="ty_offershome_d_list2" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_list3" id="ty_offershome_d_list3" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_list4" id="ty_offershome_d_list4" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_list5" id="ty_offershome_d_list5" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_order" id="ty_offershome_d_order" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_offershome_d_orderlink" id="ty_offershome_d_orderlink" value="' .  ( stripslashes( $sub1settings["ty_offershome_d_orderlink"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-ourclient' : 
							echo '
							<tr>
								<td>
									</br><span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_ourclient_title" id="ty_ourclient_title" value="' . ( stripslashes( $sub1settings["ty_ourclient_title"] ) ) . '" />
								</td>
								<th><label>آیکون عنوان : </label></th>
								<td>
									<input type="text" name="ty_ourclient_titleicon" id="ty_ourclient_titleicon" value="' . ( stripslashes( $sub1settings["ty_ourclient_titleicon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_a_icon" id="ty_ourclient_a_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_a_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_a_adrs" id="ty_ourclient_a_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_a_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_a_desc" id="ty_ourclient_a_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_a_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_b_icon" id="ty_ourclient_b_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_b_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_b_adrs" id="ty_ourclient_b_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_b_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_b_desc" id="ty_ourclient_b_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_b_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_c_icon" id="ty_ourclient_c_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_c_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_c_adrs" id="ty_ourclient_c_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_c_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_c_desc" id="ty_ourclient_c_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_c_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_d_icon" id="ty_ourclient_d_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_d_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_d_adrs" id="ty_ourclient_d_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_d_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_d_desc" id="ty_ourclient_d_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_d_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_e_icon" id="ty_ourclient_e_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_e_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_e_adrs" id="ty_ourclient_e_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_e_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_e_desc" id="ty_ourclient_e_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_e_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_f_icon" id="ty_ourclient_f_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_f_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_f_adrs" id="ty_ourclient_f_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_f_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_f_desc" id="ty_ourclient_f_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_f_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_g_icon" id="ty_ourclient_g_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_g_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_g_adrs" id="ty_ourclient_g_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_g_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_g_desc" id="ty_ourclient_g_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_g_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_ourclient_h_icon" id="ty_ourclient_h_icon" value="' . ( stripslashes( $sub1settings["ty_ourclient_h_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام : </label></th>
								<td>
									<input type="text" name="ty_ourclient_h_adrs" id="ty_ourclient_h_adrs" value="' . ( stripslashes( $sub1settings["ty_ourclient_h_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_ourclient_h_desc" id="ty_ourclient_h_desc" value="' . ( stripslashes( $sub1settings["ty_ourclient_h_desc"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-stats' : 
							echo '
							<tr>
								<td>
									</br><span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_stats_a_icon" id="ty_stats_a_icon" value="' . ( stripslashes( $sub1settings["ty_stats_a_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت اول : </label></th>
								<td>
									<input type="text" name="ty_stats_a_adrs" id="ty_stats_a_adrs" value="' . ( stripslashes( $sub1settings["ty_stats_a_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آمار : </label></th>
								<td>
									<input type="text" name="ty_stats_a_num" id="ty_stats_a_num" value="' . ( stripslashes( $sub1settings["ty_stats_a_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت دوم </label></th>
								<td>
									<input type="text" name="ty_stats_a_desc" id="ty_stats_a_desc" value="' . ( stripslashes( $sub1settings["ty_stats_a_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_stats_b_icon" id="ty_stats_b_icon" value="' . ( stripslashes( $sub1settings["ty_stats_b_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت اول : </label></th>
								<td>
									<input type="text" name="ty_stats_b_adrs" id="ty_stats_b_adrs" value="' . ( stripslashes( $sub1settings["ty_stats_b_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آمار : </label></th>
								<td>
									<input type="text" name="ty_stats_b_num" id="ty_stats_b_num" value="' . ( stripslashes( $sub1settings["ty_stats_b_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت دوم </label></th>
								<td>
									<input type="text" name="ty_stats_b_desc" id="ty_stats_b_desc" value="' . ( stripslashes( $sub1settings["ty_stats_b_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_stats_c_icon" id="ty_stats_c_icon" value="' . ( stripslashes( $sub1settings["ty_stats_c_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت اول : </label></th>
								<td>
									<input type="text" name="ty_stats_c_adrs" id="ty_stats_c_adrs" value="' . ( stripslashes( $sub1settings["ty_stats_c_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آمار : </label></th>
								<td>
									<input type="text" name="ty_stats_c_num" id="ty_stats_c_num" value="' . ( stripslashes( $sub1settings["ty_stats_c_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت دوم </label></th>
								<td>
									<input type="text" name="ty_stats_c_desc" id="ty_stats_c_desc" value="' . ( stripslashes( $sub1settings["ty_stats_c_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_stats_d_icon" id="ty_stats_d_icon" value="' . ( stripslashes( $sub1settings["ty_stats_d_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت اول : </label></th>
								<td>
									<input type="text" name="ty_stats_d_adrs" id="ty_stats_d_adrs" value="' . ( stripslashes( $sub1settings["ty_stats_d_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آمار : </label></th>
								<td>
									<input type="text" name="ty_stats_d_num" id="ty_stats_d_num" value="' . ( stripslashes( $sub1settings["ty_stats_d_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت دوم </label></th>
								<td>
									<input type="text" name="ty_stats_d_desc" id="ty_stats_d_desc" value="' . ( stripslashes( $sub1settings["ty_stats_d_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_stats_e_icon" id="ty_stats_e_icon" value="' . ( stripslashes( $sub1settings["ty_stats_e_icon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت اول : </label></th>
								<td>
									<input type="text" name="ty_stats_e_adrs" id="ty_stats_e_adrs" value="' . ( stripslashes( $sub1settings["ty_stats_e_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>آمار : </label></th>
								<td>
									<input type="text" name="ty_stats_e_num" id="ty_stats_e_num" value="' . ( stripslashes( $sub1settings["ty_stats_e_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>عبارت دوم </label></th>
								<td>
									<input type="text" name="ty_stats_e_desc" id="ty_stats_e_desc" value="' . ( stripslashes( $sub1settings["ty_stats_e_desc"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-feedback' : 
							echo '
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_feedback_title" id="ty_feedback_title" value="' . ( stripslashes( $sub1settings["ty_feedback_title"] ) ) . '" />
								</td>
								<th><label>آیکون عنوان : </label></th>
								<td>
									<input type="text" name="ty_feedback_titleicon" id="ty_feedback_titleicon" value="' . ( stripslashes( $sub1settings["ty_feedback_titleicon"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									دیدگاه اول
								</td>
							</tr>
							<tr>
								<th><label>نام مشتری : </label></th>
								<td>
									<input type="text" name="ty_feedback_a_name" id="ty_feedback_a_name" value="' . ( stripslashes( $sub1settings["ty_feedback_a_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تصویر مشتری (آواتار) : </label></th>
								<td>
									<input type="text" name="ty_feedback_a_img" id="ty_feedback_a_img" value="' . ( stripslashes( $sub1settings["ty_feedback_a_img"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن دیدگاه : </label></th>
								<td>
									<textarea name="ty_feedback_a_text" id="ty_feedback_a_text" cols="60" rows="5" >' . ( stripslashes( $sub1settings["ty_feedback_a_text"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									دیدگاه دوم
								</td>
							</tr>
							<tr>
								<th><label>نام مشتری : </label></th>
								<td>
									<input type="text" name="ty_feedback_b_name" id="ty_feedback_b_name" value="' . ( stripslashes( $sub1settings["ty_feedback_b_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>تصویر مشتری (آواتار) : </label></th>
								<td>
									<input type="text" name="ty_feedback_b_img" id="ty_feedback_b_img" value="' . ( stripslashes( $sub1settings["ty_feedback_b_img"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن دیدگاه : </label></th>
								<td>
									<textarea name="ty_feedback_b_text" id="ty_feedback_b_text" cols="60" rows="5" >' . ( stripslashes( $sub1settings["ty_feedback_b_text"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-oneoffer' : 
							echo '
							<tr>
								<th><label>آیکون : </label></th>
								<td>
									<input type="text" name="ty_oneoffer_icon" id="ty_oneoffer_icon" value="' . ( stripslashes( $sub1settings["ty_oneoffer_icon"] ) ) . '" />
									</br><span class="description"> آیکون را از طریق لینک زیر می توانید انتخاب کنید : </br><a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">Font Awesome</a></span>
								</td>
							</tr>
							<tr>
								<th><label>عنوان : </label></th>
								<td>
									<input type="text" name="ty_oneoffer_adrs" id="ty_oneoffer_adrs" value="' . ( stripslashes( $sub1settings["ty_oneoffer_adrs"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>جزئیات : </label></th>
								<td>
									<input type="text" name="ty_oneoffer_desc" id="ty_oneoffer_desc" value="' . ( stripslashes( $sub1settings["ty_oneoffer_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_oneoffer_order" id="ty_oneoffer_order" value="' . ( stripslashes( $sub1settings["ty_oneoffer_order"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_oneoffer_orderlink" id="ty_oneoffer_orderlink" value="' . ( stripslashes( $sub1settings["ty_oneoffer_orderlink"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-paypic' : 
							echo '
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_1"] ) ) . '" />
									<input type="text" name="ty_paypic_1" id="ty_paypic_1" value="' . ( stripslashes( $sub1settings["ty_paypic_1"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk1" id="ty_paypic_chk1" value="inline-table" ' . (( $sub1settings["ty_paypic_chk1"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_2"] ) ) . '" />
									<input type="text" name="ty_paypic_2" id="ty_paypic_2" value="' . ( stripslashes( $sub1settings["ty_paypic_2"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk2" id="ty_paypic_chk2" value="inline-table" ' . (( $sub1settings["ty_paypic_chk2"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_3"] ) ) . '" />
									<input type="text" name="ty_paypic_3" id="ty_paypic_3" value="' . ( stripslashes( $sub1settings["ty_paypic_3"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk3" id="ty_paypic_chk3" value="inline-table" ' . (( $sub1settings["ty_paypic_chk3"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_4"] ) ) . '" />
									<input type="text" name="ty_paypic_4" id="ty_paypic_4" value="' . ( stripslashes( $sub1settings["ty_paypic_4"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk4" id="ty_paypic_chk4" value="inline-table" ' . (( $sub1settings["ty_paypic_chk4"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_5"] ) ) . '" />
									<input type="text" name="ty_paypic_5" id="ty_paypic_5" value="' . ( stripslashes( $sub1settings["ty_paypic_5"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk5" id="ty_paypic_chk5" value="inline-table" ' . (( $sub1settings["ty_paypic_chk5"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_6"] ) ) . '" />
									<input type="text" name="ty_paypic_6" id="ty_paypic_6" value="' . ( stripslashes( $sub1settings["ty_paypic_6"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk6" id="ty_paypic_chk6" value="inline-table" ' . (( $sub1settings["ty_paypic_chk6"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_7"] ) ) . '" />
									<input type="text" name="ty_paypic_7" id="ty_paypic_7" value="' . ( stripslashes( $sub1settings["ty_paypic_7"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk7" id="ty_paypic_chk7" value="inline-table" ' . (( $sub1settings["ty_paypic_chk7"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_8"] ) ) . '" />
									<input type="text" name="ty_paypic_8" id="ty_paypic_8" value="' . ( stripslashes( $sub1settings["ty_paypic_8"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk8" id="ty_paypic_chk8" value="inline-table" ' . (( $sub1settings["ty_paypic_chk8"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_9"] ) ) . '" />
									<input type="text" name="ty_paypic_9" id="ty_paypic_9" value="' . ( stripslashes( $sub1settings["ty_paypic_9"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk9" id="ty_paypic_chk9" value="inline-table" ' . (( $sub1settings["ty_paypic_chk9"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_10"] ) ) . '" />
									<input type="text" name="ty_paypic_10" id="ty_paypic_10" value="' . ( stripslashes( $sub1settings["ty_paypic_10"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk10" id="ty_paypic_chk10" value="inline-table" ' . (( $sub1settings["ty_paypic_chk10"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_11"] ) ) . '" />
									<input type="text" name="ty_paypic_11" id="ty_paypic_11" value="' . ( stripslashes( $sub1settings["ty_paypic_11"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk11" id="ty_paypic_chk11" value="inline-table" ' . (( $sub1settings["ty_paypic_chk11"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_12"] ) ) . '" />
									<input type="text" name="ty_paypic_12" id="ty_paypic_12" value="' . ( stripslashes( $sub1settings["ty_paypic_12"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk12" id="ty_paypic_chk12" value="inline-table" ' . (( $sub1settings["ty_paypic_chk12"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_13"] ) ) . '" />
									<input type="text" name="ty_paypic_13" id="ty_paypic_13" value="' . ( stripslashes( $sub1settings["ty_paypic_13"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk13" id="ty_paypic_chk13" value="inline-table" ' . (( $sub1settings["ty_paypic_chk13"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_14"] ) ) . '" />
									<input type="text" name="ty_paypic_14" id="ty_paypic_14" value="' . ( stripslashes( $sub1settings["ty_paypic_14"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk14" id="ty_paypic_chk14" value="inline-table" ' . (( $sub1settings["ty_paypic_chk14"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_15"] ) ) . '" />
									<input type="text" name="ty_paypic_15" id="ty_paypic_15" value="' . ( stripslashes( $sub1settings["ty_paypic_15"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk15" id="ty_paypic_chk15" value="inline-table" ' . (( $sub1settings["ty_paypic_chk15"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_16"] ) ) . '" />
									<input type="text" name="ty_paypic_16" id="ty_paypic_16" value="' . ( stripslashes( $sub1settings["ty_paypic_16"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk16" id="ty_paypic_chk16" value="inline-table" ' . (( $sub1settings["ty_paypic_chk16"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_17"] ) ) . '" />
									<input type="text" name="ty_paypic_17" id="ty_paypic_17" value="' . ( stripslashes( $sub1settings["ty_paypic_17"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk17" id="ty_paypic_chk17" value="inline-table" ' . (( $sub1settings["ty_paypic_chk17"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
								<th><label>لینک تصویر : </label></th>
								<td>
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub1settings["ty_paypic_18"] ) ) . '" />
									<input type="text" name="ty_paypic_18" id="ty_paypic_18" value="' . ( stripslashes( $sub1settings["ty_paypic_18"] ) ) . '" />
									<input type="checkbox" name="ty_paypic_chk18" id="ty_paypic_chk18" value="inline-table" ' . (( $sub1settings["ty_paypic_chk18"]=="inline-table" )? 'checked="checked"' : null) . ' />
								</td>
							</tr>
							';
						break;
					}
					echo '</table>';
				}
				echo '
				<p class="submit" style="clear: both;">
					<input type="submit" name="Submit"  class="button-primary" value="ذخیره تنظیمات" />
					<input type="hidden" name="ty-sub1settings-submit" value="Y" />
				</p>
			</form>
			<p>' . $theme_data['Name'] . ' - ترجمه، توسعه و بهینه سازی  توسط : عقیل حسین زاده || <span>پشتیبانی : <a target="_blank" href="https://hyrcanweb.ir">hyrcanweb.ir</a> </span> || <span>ایمیل : info@hyrcanweb.ir  -  aghil.hosseinzadeh@gmail.com</span> || تلگرام : <a target="_blank" href="https://telegram.me/AGhilHz">@AGhilHz</a></p>
		</div>

	</div>
';
}

// end sub menu 1

// start sub menu 2

add_action( 'init', 'ty_sub2admin_init' );
add_action( 'admin_menu', 'ty_sub2settings_page_init' );

function ty_sub2admin_init() {
	$sub2settings = get_option( "ty_theme_sub2settings" );
	if ( empty( $sub2settings ) ) {
		$sub2settings = array(
			'ty_aboutus_text' => '
			لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته، حال و آینده شناخت فراوان جامعه و متخصصان را می طلبد تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی و فرهنگ پیشرو در زبان فارسی ایجاد کرد. در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها و شرایط سخت تایپ به پایان رسد وزمان مورد نیاز شامل حروفچینی دستاوردهای اصلی و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.
			<br /><br />
			لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته، حال و آینده شناخت فراوان جامعه و متخصصان را می طلبد تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی و فرهنگ پیشرو در زبان فارسی ایجاد کرد. در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها و شرایط سخت تایپ به پایان رسد وزمان مورد نیاز شامل حروفچینی دستاوردهای اصلی و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.			
			',
			'ty_banks_1_chk' => true,
			'ty_banks_2_chk' => true,
			'ty_banks_3_chk' => true,
			'ty_banks_4_chk' => true,
			'ty_banks_5_chk' => true,
			'ty_banks_6_chk' => true,
			'ty_banks_7_chk' => true,
			'ty_banks_8_chk' => true,
			'ty_banks_9_chk' => true,
			'ty_banks_10_chk' => true,
			'ty_banks_11_chk' => true,
			'ty_banks_12_chk' => true,
			'ty_banks_13_chk' => true,
			'ty_banks_14_chk' => true,
			'ty_banks_15_chk' => true,
			'ty_banks_16_chk' => true,
			'ty_banks_17_chk' => true,
			'ty_banks_18_chk' => true,
			'ty_banks_toptxt' => 'کلیه حساب های بانکی ما در این صفحه موجود می باشند.',
			'ty_banks_botttxt' => 'کلیه حساب های بانکی ما در این صفحه موجود می باشند.',
			'ty_banks_1_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/agribank.png',
			'ty_banks_1_name' => 'نام : احمد احمدیان',
			'ty_banks_1_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_2_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_makan.png',
			'ty_banks_2_name' => 'نام : احمد احمدیان',
			'ty_banks_2_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_3_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_mellat.png',
			'ty_banks_3_name' => 'نام : احمد احمدیان',
			'ty_banks_3_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_4_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_melli.png',
			'ty_banks_4_name' => 'نام : احمد احمدیان',
			'ty_banks_4_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_5_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_saderat.png',
			'ty_banks_5_name' => 'نام : احمد احمدیان',
			'ty_banks_5_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_6_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank_sepah.png',
			'ty_banks_6_name' => 'نام : احمد احمدیان',
			'ty_banks_6_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_7_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bank-ansar.png',
			'ty_banks_7_name' => 'نام : احمد احمدیان',
			'ty_banks_7_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_8_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/banke-markazi.png',
			'ty_banks_8_name' => 'نام : احمد احمدیان',
			'ty_banks_8_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_9_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/bankKarAfarin.png',
			'ty_banks_9_name' => 'نام : احمد احمدیان',
			'ty_banks_9_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_10_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/enbank.png',
			'ty_banks_10_name' => 'نام : احمد احمدیان',
			'ty_banks_10_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_11_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/parsian.png',
			'ty_banks_11_name' => 'نام : احمد احمدیان',
			'ty_banks_11_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_12_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/pasargadBank.png',
			'ty_banks_12_name' => 'نام : احمد احمدیان',
			'ty_banks_12_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_13_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/refah-bank.png',
			'ty_banks_13_name' => 'نام : احمد احمدیان',
			'ty_banks_13_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_14_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/saman.png',
			'ty_banks_14_name' => 'نام : احمد احمدیان',
			'ty_banks_14_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_15_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/sarmaye-bank.png',
			'ty_banks_15_name' => 'نام : احمد احمدیان',
			'ty_banks_15_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_16_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/sina-bank.png',
			'ty_banks_16_name' => 'نام : احمد احمدیان',
			'ty_banks_16_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_17_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/tosee-bank.png',
			'ty_banks_17_name' => 'نام : احمد احمدیان',
			'ty_banks_17_number' => 'شماره حساب/کارت : 01234567890',
			'ty_banks_18_pic' => get_template_directory_uri() . '/tyblue-files/pay-icons/irbanks/toseeFinance.png',
			'ty_banks_18_name' => 'نام : احمد احمدیان',
			'ty_banks_18_number' => 'شماره حساب/کارت : 01234567890',
			'ty_terms_text' => '
			لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته، حال و آینده شناخت فراوان جامعه و متخصصان را می طلبد تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی و فرهنگ پیشرو در زبان فارسی ایجاد کرد. در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها و شرایط سخت تایپ به پایان رسد وزمان مورد نیاز شامل حروفچینی دستاوردهای اصلی و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.
			<br /><br />
			لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته، حال و آینده شناخت فراوان جامعه و متخصصان را می طلبد تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی و فرهنگ پیشرو در زبان فارسی ایجاد کرد. در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها و شرایط سخت تایپ به پایان رسد وزمان مورد نیاز شامل حروفچینی دستاوردهای اصلی و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.
			',
			'ty_question_text' => '
			<p><i class="fa fa-question-circle"></i> سوالی دارید ؟</p>
			<span>- پاسخ</span>
			<p><i class="fa fa-question-circle"></i> سوالی دارید ؟</p>
			<span>- پاسخ</span>
			<p><i class="fa fa-question-circle"></i> سوالی دارید ؟</p>
			<span>- پاسخ</span>
			<p><i class="fa fa-question-circle"></i> سوالی دارید ؟</p>
			<span>- پاسخ</span>
			<p><i class="fa fa-question-circle"></i> سوالی دارید ؟</p>
			<span>- پاسخ</span>
			',
			'ty_hostingoffers_a_chk' => true,
			'ty_hostingoffers_b_chk' => true,
			'ty_hostingoffers_c_chk' => true,
			'ty_hostingoffers_d_chk' => true,
			'ty_hostingoffers_e_chk' => true,
			'ty_hostingoffers_f_chk' => true,
			'ty_hostingoffers_g_chk' => true,
			'ty_hostingoffers_h_chk' => true,
			'ty_hostingoffers_toptxt' => 'تخفیف برای همه ی مشتریان محترم اعمال شده است',
			'ty_hostingoffers_botttxt' => 'تخفیف برای همه ی مشتریان محترم اعمال شده است',
			'ty_hostingoffers_a_price' => '1000',
			'ty_hostingoffers_a_curr' => 'تومان / سالانه',
			'ty_hostingoffers_a_adrs' => 'پلن شماره یک',
			'ty_hostingoffers_a_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_a_list1' => 'فضا : 1000 مگابایت',
			'ty_hostingoffers_a_list2' => 'پهنای باند : 1000 گیگابایت',
			'ty_hostingoffers_a_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_a_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_a_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_a_order' => 'سفارش دهید',
			'ty_hostingoffers_a_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_b_price' => '2000',
			'ty_hostingoffers_b_curr' => 'تومان / سالانه',
			'ty_hostingoffers_b_adrs' => 'پلن شماره دو',
			'ty_hostingoffers_b_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_b_list1' => 'فضا : 2000 مگابایت',
			'ty_hostingoffers_b_list2' => 'پهنای باند : 2000 گیگابایت',
			'ty_hostingoffers_b_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_b_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_b_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_b_order' => 'سفارش دهید',
			'ty_hostingoffers_b_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_c_price' => '3000',
			'ty_hostingoffers_c_curr' => 'تومان / سالانه',
			'ty_hostingoffers_c_adrs' => 'پلن شماره سه',
			'ty_hostingoffers_c_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_c_list1' => 'فضا : 3000 مگابایت',
			'ty_hostingoffers_c_list2' => 'پهنای باند : 3000 گیگابایت',
			'ty_hostingoffers_c_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_c_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_c_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_c_order' => 'سفارش دهید',
			'ty_hostingoffers_c_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_d_price' => '4000',
			'ty_hostingoffers_d_curr' => 'تومان / سالانه',
			'ty_hostingoffers_d_adrs' => 'پلن شماره چهار',
			'ty_hostingoffers_d_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_d_list1' => 'فضا : 4000 مگابایت',
			'ty_hostingoffers_d_list2' => 'پهنای باند : 4000 گیگابایت',
			'ty_hostingoffers_d_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_d_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_d_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_d_order' => 'سفارش دهید',
			'ty_hostingoffers_d_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_e_price' => '50000',
			'ty_hostingoffers_e_curr' => 'تومان / سالانه',
			'ty_hostingoffers_e_adrs' => 'پلن شماره پنج',
			'ty_hostingoffers_e_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_e_list1' => 'فضا : 5000 مگابایت',
			'ty_hostingoffers_e_list2' => 'پهنای باند :5000 گیگابایت',
			'ty_hostingoffers_e_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_e_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_e_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_e_order' => 'سفارش دهید',
			'ty_hostingoffers_e_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_f_price' => '60000',
			'ty_hostingoffers_f_curr' => 'تومان / سالانه',
			'ty_hostingoffers_f_adrs' => 'پلن شماره شش',
			'ty_hostingoffers_f_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_f_list1' => 'فضا : 6000 مگابایت',
			'ty_hostingoffers_f_list2' => 'پهنای باند : 6000 گیگابایت',
			'ty_hostingoffers_f_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_f_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_f_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_f_order' => 'سفارش دهید',
			'ty_hostingoffers_f_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_g_price' => '70000',
			'ty_hostingoffers_g_curr' => 'تومان / سالانه',
			'ty_hostingoffers_g_adrs' => 'پلن شماره هفت',
			'ty_hostingoffers_g_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_g_list1' => 'فضا : 7000 مگابایت',
			'ty_hostingoffers_g_list2' => 'پهنای باند : 7000 گیگابایت',
			'ty_hostingoffers_g_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_g_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_g_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_g_order' => 'سفارش دهید',
			'ty_hostingoffers_g_orderlink' => site_url() . '/contact',
			'ty_hostingoffers_h_price' => '80000',
			'ty_hostingoffers_h_curr' => 'تومان / سالانه',
			'ty_hostingoffers_h_adrs' => 'پلن شماره هشت',
			'ty_hostingoffers_h_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_hostingoffers_h_list1' => 'فضا : 8000 مگابایت',
			'ty_hostingoffers_h_list2' => 'پهنای باند : 8000 گیگابایت',
			'ty_hostingoffers_h_list3' => 'ایمیل : نامحدود',
			'ty_hostingoffers_h_list4' => 'دیتابیس : نامحدود',
			'ty_hostingoffers_h_list5' => 'سایر امکانات : نامحدود',
			'ty_hostingoffers_h_order' => 'سفارش دهید',
			'ty_hostingoffers_h_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_a_chk' => true,
			'ty_resellersoffers_b_chk' => true,
			'ty_resellersoffers_c_chk' => true,
			'ty_resellersoffers_d_chk' => true,
			'ty_resellersoffers_e_chk' => true,
			'ty_resellersoffers_f_chk' => true,
			'ty_resellersoffers_g_chk' => true,
			'ty_resellersoffers_h_chk' => true,
			'ty_resellersoffers_toptxt' => 'تخفیف برای همه ی مشتریان محترم اعمال شده است',
			'ty_resellersoffers_botttxt' => 'تخفیف برای همه ی مشتریان محترم اعمال شده است',
			'ty_resellersoffers_a_price' => '1000',
			'ty_resellersoffers_a_curr' => 'تومان / سالانه',
			'ty_resellersoffers_a_adrs' => 'پلن شماره یک',
			'ty_resellersoffers_a_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_a_list1' => 'فضا : 1000 مگابایت',
			'ty_resellersoffers_a_list2' => 'پهنای باند : 1000 گیگابایت',
			'ty_resellersoffers_a_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_a_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_a_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_a_order' => 'سفارش دهید',
			'ty_resellersoffers_a_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_b_price' => '2000',
			'ty_resellersoffers_b_curr' => 'تومان / سالانه',
			'ty_resellersoffers_b_adrs' => 'پلن شماره دو',
			'ty_resellersoffers_b_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_b_list1' => 'فضا : 2000 مگابایت',
			'ty_resellersoffers_b_list2' => 'پهنای باند : 2000 گیگابایت',
			'ty_resellersoffers_b_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_b_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_b_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_b_order' => 'سفارش دهید',
			'ty_resellersoffers_b_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_c_price' => '3000',
			'ty_resellersoffers_c_curr' => 'تومان / سالانه',
			'ty_resellersoffers_c_adrs' => 'پلن شماره سه',
			'ty_resellersoffers_c_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_c_list1' => 'فضا : 3000 مگابایت',
			'ty_resellersoffers_c_list2' => 'پهنای باند : 3000 گیگابایت',
			'ty_resellersoffers_c_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_c_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_c_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_c_order' => 'سفارش دهید',
			'ty_resellersoffers_c_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_d_price' => '4000',
			'ty_resellersoffers_d_curr' => 'تومان / سالانه',
			'ty_resellersoffers_d_adrs' => 'پلن شماره چهار',
			'ty_resellersoffers_d_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_d_list1' => 'فضا : 4000 مگابایت',
			'ty_resellersoffers_d_list2' => 'پهنای باند : 4000 گیگابایت',
			'ty_resellersoffers_d_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_d_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_d_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_d_order' => 'سفارش دهید',
			'ty_resellersoffers_d_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_e_price' => '50000',
			'ty_resellersoffers_e_curr' => 'تومان / سالانه',
			'ty_resellersoffers_e_adrs' => 'پلن شماره پنج',
			'ty_resellersoffers_e_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_e_list1' => 'فضا : 5000 مگابایت',
			'ty_resellersoffers_e_list2' => 'پهنای باند :5000 گیگابایت',
			'ty_resellersoffers_e_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_e_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_e_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_e_order' => 'سفارش دهید',
			'ty_resellersoffers_e_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_f_price' => '60000',
			'ty_resellersoffers_f_curr' => 'تومان / سالانه',
			'ty_resellersoffers_f_adrs' => 'پلن شماره شش',
			'ty_resellersoffers_f_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_f_list1' => 'فضا : 6000 مگابایت',
			'ty_resellersoffers_f_list2' => 'پهنای باند : 6000 گیگابایت',
			'ty_resellersoffers_f_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_f_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_f_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_f_order' => 'سفارش دهید',
			'ty_resellersoffers_f_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_g_price' => '70000',
			'ty_resellersoffers_g_curr' => 'تومان / سالانه',
			'ty_resellersoffers_g_adrs' => 'پلن شماره هفت',
			'ty_resellersoffers_g_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_g_list1' => 'فضا : 7000 مگابایت',
			'ty_resellersoffers_g_list2' => 'پهنای باند : 7000 گیگابایت',
			'ty_resellersoffers_g_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_g_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_g_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_g_order' => 'سفارش دهید',
			'ty_resellersoffers_g_orderlink' => site_url() . '/contact',
			'ty_resellersoffers_h_price' => '80000',
			'ty_resellersoffers_h_curr' => 'تومان / سالانه',
			'ty_resellersoffers_h_adrs' => 'پلن شماره هشت',
			'ty_resellersoffers_h_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_resellersoffers_h_list1' => 'فضا : 8000 مگابایت',
			'ty_resellersoffers_h_list2' => 'پهنای باند : 8000 گیگابایت',
			'ty_resellersoffers_h_list3' => 'ایمیل : نامحدود',
			'ty_resellersoffers_h_list4' => 'دیتابیس : نامحدود',
			'ty_resellersoffers_h_list5' => 'سایر امکانات : نامحدود',
			'ty_resellersoffers_h_order' => 'سفارش دهید',
			'ty_resellersoffers_h_orderlink' => site_url() . '/contact',
			'ty_serversoffers_a_chk' => true,
			'ty_serversoffers_b_chk' => true,
			'ty_serversoffers_c_chk' => true,
			'ty_serversoffers_d_chk' => true,
			'ty_serversoffers_e_chk' => true,
			'ty_serversoffers_f_chk' => true,
			'ty_serversoffers_g_chk' => true,
			'ty_serversoffers_h_chk' => true,
			'ty_serversoffers_toptxt' => 'تخفیف برای همه ی مشتریان محترم اعمال شده است',
			'ty_serversoffers_botttxt' => 'تخفیف برای همه ی مشتریان محترم اعمال شده است',
			'ty_serversoffers_a_price' => '1000',
			'ty_serversoffers_a_curr' => 'تومان / سالانه',
			'ty_serversoffers_a_adrs' => 'پلن شماره یک',
			'ty_serversoffers_a_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_a_list1' => 'فضا : 1000 مگابایت',
			'ty_serversoffers_a_list2' => 'پهنای باند : 1000 گیگابایت',
			'ty_serversoffers_a_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_a_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_a_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_a_order' => 'سفارش دهید',
			'ty_serversoffers_a_orderlink' => site_url() . '/contact',
			'ty_serversoffers_b_price' => '2000',
			'ty_serversoffers_b_curr' => 'تومان / سالانه',
			'ty_serversoffers_b_adrs' => 'پلن شماره دو',
			'ty_serversoffers_b_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_b_list1' => 'فضا : 2000 مگابایت',
			'ty_serversoffers_b_list2' => 'پهنای باند : 2000 گیگابایت',
			'ty_serversoffers_b_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_b_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_b_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_b_order' => 'سفارش دهید',
			'ty_serversoffers_b_orderlink' => site_url() . '/contact',
			'ty_serversoffers_c_price' => '3000',
			'ty_serversoffers_c_curr' => 'تومان / سالانه',
			'ty_serversoffers_c_adrs' => 'پلن شماره سه',
			'ty_serversoffers_c_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_c_list1' => 'فضا : 3000 مگابایت',
			'ty_serversoffers_c_list2' => 'پهنای باند : 3000 گیگابایت',
			'ty_serversoffers_c_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_c_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_c_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_c_order' => 'سفارش دهید',
			'ty_serversoffers_c_orderlink' => site_url() . '/contact',
			'ty_serversoffers_d_price' => '4000',
			'ty_serversoffers_d_curr' => 'تومان / سالانه',
			'ty_serversoffers_d_adrs' => 'پلن شماره چهار',
			'ty_serversoffers_d_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_d_list1' => 'فضا : 4000 مگابایت',
			'ty_serversoffers_d_list2' => 'پهنای باند : 4000 گیگابایت',
			'ty_serversoffers_d_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_d_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_d_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_d_order' => 'سفارش دهید',
			'ty_serversoffers_d_orderlink' => site_url() . '/contact',
			'ty_serversoffers_e_price' => '50000',
			'ty_serversoffers_e_curr' => 'تومان / سالانه',
			'ty_serversoffers_e_adrs' => 'پلن شماره پنج',
			'ty_serversoffers_e_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_e_list1' => 'فضا : 5000 مگابایت',
			'ty_serversoffers_e_list2' => 'پهنای باند :5000 گیگابایت',
			'ty_serversoffers_e_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_e_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_e_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_e_order' => 'سفارش دهید',
			'ty_serversoffers_e_orderlink' => site_url() . '/contact',
			'ty_serversoffers_f_price' => '60000',
			'ty_serversoffers_f_curr' => 'تومان / سالانه',
			'ty_serversoffers_f_adrs' => 'پلن شماره شش',
			'ty_serversoffers_f_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_f_list1' => 'فضا : 6000 مگابایت',
			'ty_serversoffers_f_list2' => 'پهنای باند : 6000 گیگابایت',
			'ty_serversoffers_f_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_f_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_f_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_f_order' => 'سفارش دهید',
			'ty_serversoffers_f_orderlink' => site_url() . '/contact',
			'ty_serversoffers_g_price' => '70000',
			'ty_serversoffers_g_curr' => 'تومان / سالانه',
			'ty_serversoffers_g_adrs' => 'پلن شماره هفت',
			'ty_serversoffers_g_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_g_list1' => 'فضا : 7000 مگابایت',
			'ty_serversoffers_g_list2' => 'پهنای باند : 7000 گیگابایت',
			'ty_serversoffers_g_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_g_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_g_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_g_order' => 'سفارش دهید',
			'ty_serversoffers_g_orderlink' => site_url() . '/contact',
			'ty_serversoffers_h_price' => '80000',
			'ty_serversoffers_h_curr' => 'تومان / سالانه',
			'ty_serversoffers_h_adrs' => 'پلن شماره هشت',
			'ty_serversoffers_h_desc' => 'توضیحاتی پیرامون این پلن',
			'ty_serversoffers_h_list1' => 'فضا : 8000 مگابایت',
			'ty_serversoffers_h_list2' => 'پهنای باند : 8000 گیگابایت',
			'ty_serversoffers_h_list3' => 'ایمیل : نامحدود',
			'ty_serversoffers_h_list4' => 'دیتابیس : نامحدود',
			'ty_serversoffers_h_list5' => 'سایر امکانات : نامحدود',
			'ty_serversoffers_h_order' => 'سفارش دهید',
			'ty_serversoffers_h_orderlink' => site_url() . '/contact',
			'ty_designoffers_1_chk' => true,
			'ty_designoffers_2_chk' => true,
			'ty_designoffers_3_chk' => true,
			'ty_designoffers_4_chk' => true,
			'ty_designoffers_5_chk' => true,
			'ty_designoffers_6_chk' => true,
			'ty_designoffers_7_chk' => true,
			'ty_designoffers_8_chk' => true,
			'ty_designoffers_9_chk' => true,
			'ty_designoffers_10_chk' => true,
			'ty_designoffers_toptxt' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_designoffers_botttxt' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_designoffers_1_num' => '01',
			'ty_designoffers_1_time' => '3 هفته',
			'ty_designoffers_1_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_1_price' => '500000 تومان',
			'ty_designoffers_1_note' => 'ندارد',
			'ty_designoffers_1_order' => 'سفارش دهید',
			'ty_designoffers_1_orderlink' => site_url() . '/contact',
			'ty_designoffers_2_num' => '02',
			'ty_designoffers_2_time' => '3 هفته',
			'ty_designoffers_2_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_2_price' => '500000 تومان',
			'ty_designoffers_2_note' => 'ندارد',
			'ty_designoffers_2_order' => 'سفارش دهید',
			'ty_designoffers_2_orderlink' => site_url() . '/contact',
			'ty_designoffers_3_num' => '03',
			'ty_designoffers_3_time' => '3 هفته',
			'ty_designoffers_3_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_3_price' => '500000 تومان',
			'ty_designoffers_3_note' => 'ندارد',
			'ty_designoffers_3_order' => 'سفارش دهید',
			'ty_designoffers_3_orderlink' => site_url() . '/contact',
			'ty_designoffers_4_num' => '04',
			'ty_designoffers_4_time' => '3 هفته',
			'ty_designoffers_4_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_4_price' => '500000 تومان',
			'ty_designoffers_4_note' => 'ندارد',
			'ty_designoffers_4_order' => 'سفارش دهید',
			'ty_designoffers_4_orderlink' => site_url() . '/contact',
			'ty_designoffers_5_num' => '05',
			'ty_designoffers_5_time' => '3 هفته',
			'ty_designoffers_5_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_5_price' => '500000 تومان',
			'ty_designoffers_5_note' => 'ندارد',
			'ty_designoffers_5_order' => 'سفارش دهید',
			'ty_designoffers_5_orderlink' => site_url() . '/contact',
			'ty_designoffers_6_num' => '06',
			'ty_designoffers_6_time' => '3 هفته',
			'ty_designoffers_6_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_6_price' => '500000 تومان',
			'ty_designoffers_6_note' => 'ندارد',
			'ty_designoffers_6_order' => 'سفارش دهید',
			'ty_designoffers_6_orderlink' => site_url() . '/contact',
			'ty_designoffers_7_num' => '07',
			'ty_designoffers_7_time' => '3 هفته',
			'ty_designoffers_7_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_7_price' => '500000 تومان',
			'ty_designoffers_7_note' => 'ندارد',
			'ty_designoffers_7_order' => 'سفارش دهید',
			'ty_designoffers_7_orderlink' => site_url() . '/contact',
			'ty_designoffers_8_num' => '08',
			'ty_designoffers_8_time' => '3 هفته',
			'ty_designoffers_8_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_8_price' => '500000 تومان',
			'ty_designoffers_8_note' => 'ندارد',
			'ty_designoffers_8_order' => 'سفارش دهید',
			'ty_designoffers_8_orderlink' => site_url() . '/contact',
			'ty_designoffers_9_num' => '09',
			'ty_designoffers_9_time' => '3 هفته',
			'ty_designoffers_9_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_9_price' => '500000 تومان',
			'ty_designoffers_9_note' => 'ندارد',
			'ty_designoffers_9_order' => 'سفارش دهید',
			'ty_designoffers_9_orderlink' => site_url() . '/contact',
			'ty_designoffers_10_num' => '10',
			'ty_designoffers_10_time' => '3 هفته',
			'ty_designoffers_10_name' => 'طراحی قالب سایت و بلاگ',
			'ty_designoffers_10_price' => '500000 تومان',
			'ty_designoffers_10_note' => 'ندارد',
			'ty_designoffers_10_order' => 'سفارش دهید',
			'ty_designoffers_10_orderlink' => site_url() . '/contact',
			'ty_supportoffers_1_chk' => true,
			'ty_supportoffers_2_chk' => true,
			'ty_supportoffers_3_chk' => true,
			'ty_supportoffers_4_chk' => true,
			'ty_supportoffers_5_chk' => true,
			'ty_supportoffers_6_chk' => true,
			'ty_supportoffers_7_chk' => true,
			'ty_supportoffers_8_chk' => true,
			'ty_supportoffers_9_chk' => true,
			'ty_supportoffers_10_chk' => true,
			'ty_supportoffers_toptxt' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_supportoffers_botttxt' => 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
			'ty_supportoffers_1_num' => '01',
			'ty_supportoffers_1_time' => '3 هفته',
			'ty_supportoffers_1_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_1_price' => '500000 تومان',
			'ty_supportoffers_1_note' => 'ندارد',
			'ty_supportoffers_1_order' => 'سفارش دهید',
			'ty_supportoffers_1_orderlink' => site_url() . '/contact',
			'ty_supportoffers_2_num' => '02',
			'ty_supportoffers_2_time' => '3 هفته',
			'ty_supportoffers_2_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_2_price' => '500000 تومان',
			'ty_supportoffers_2_note' => 'ندارد',
			'ty_supportoffers_2_order' => 'سفارش دهید',
			'ty_supportoffers_2_orderlink' => site_url() . '/contact',
			'ty_supportoffers_3_num' => '03',
			'ty_supportoffers_3_time' => '3 هفته',
			'ty_supportoffers_3_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_3_price' => '500000 تومان',
			'ty_supportoffers_3_note' => 'ندارد',
			'ty_supportoffers_3_order' => 'سفارش دهید',
			'ty_supportoffers_3_orderlink' => site_url() . '/contact',
			'ty_supportoffers_4_num' => '04',
			'ty_supportoffers_4_time' => '3 هفته',
			'ty_supportoffers_4_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_4_price' => '500000 تومان',
			'ty_supportoffers_4_note' => 'ندارد',
			'ty_supportoffers_4_order' => 'سفارش دهید',
			'ty_supportoffers_4_orderlink' => site_url() . '/contact',
			'ty_supportoffers_5_num' => '05',
			'ty_supportoffers_5_time' => '3 هفته',
			'ty_supportoffers_5_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_5_price' => '500000 تومان',
			'ty_supportoffers_5_note' => 'ندارد',
			'ty_supportoffers_5_order' => 'سفارش دهید',
			'ty_supportoffers_5_orderlink' => site_url() . '/contact',
			'ty_supportoffers_6_num' => '06',
			'ty_supportoffers_6_time' => '3 هفته',
			'ty_supportoffers_6_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_6_price' => '500000 تومان',
			'ty_supportoffers_6_note' => 'ندارد',
			'ty_supportoffers_6_order' => 'سفارش دهید',
			'ty_supportoffers_6_orderlink' => site_url() . '/contact',
			'ty_supportoffers_7_num' => '07',
			'ty_supportoffers_7_time' => '3 هفته',
			'ty_supportoffers_7_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_7_price' => '500000 تومان',
			'ty_supportoffers_7_note' => 'ندارد',
			'ty_supportoffers_7_order' => 'سفارش دهید',
			'ty_supportoffers_7_orderlink' => site_url() . '/contact',
			'ty_supportoffers_8_num' => '08',
			'ty_supportoffers_8_time' => '3 هفته',
			'ty_supportoffers_8_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_8_price' => '500000 تومان',
			'ty_supportoffers_8_note' => 'ندارد',
			'ty_supportoffers_8_order' => 'سفارش دهید',
			'ty_supportoffers_8_orderlink' => site_url() . '/contact',
			'ty_supportoffers_9_num' => '09',
			'ty_supportoffers_9_time' => '3 هفته',
			'ty_supportoffers_9_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_9_price' => '500000 تومان',
			'ty_supportoffers_9_note' => 'ندارد',
			'ty_supportoffers_9_order' => 'سفارش دهید',
			'ty_supportoffers_9_orderlink' => site_url() . '/contact',
			'ty_supportoffers_10_num' => '10',
			'ty_supportoffers_10_time' => '3 هفته',
			'ty_supportoffers_10_name' => 'طراحی قالب سایت و بلاگ',
			'ty_supportoffers_10_price' => '500000 تومان',
			'ty_supportoffers_10_note' => 'ندارد',
			'ty_supportoffers_10_order' => 'سفارش دهید',
			'ty_supportoffers_10_orderlink' => site_url() . '/contact',
			'ty_end' => false
		);
		add_option( "ty_theme_sub2settings", $sub2settings, '', 'yes' );
	}	
}

function ty_sub2settings_page_init() {
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	$sub2settings_page = add_submenu_page( 'typlue-theme-settings', 'تنظیمات صفحات فرعی - قالب تیبلو', 'صفحات فرعی', 'edit_theme_options', 'typlue-theme-sub2settings', 'ty_sub2settings_page' );
	add_action( "load-{$sub2settings_page}", 'ty_load_sub2settings_page' );
}

function ty_load_sub2settings_page() {
	if (isset( $_POST["ty-sub2settings-submit"] ) && $_POST['ty-sub2settings-submit'] == 'Y' ) {
		check_admin_referer( "ty-sub2settings-page" );
		ty_save_theme_sub2settings();
		$url_parameters = isset($_GET['tab'])? 'updated=true&tab='.$_GET['tab'] : 'updated=true';
		wp_redirect(admin_url('admin.php?page=typlue-theme-sub2settings&'.$url_parameters));
		exit;
	}
}

function ty_save_theme_sub2settings() {
	global $pagenow;
	$sub2settings = get_option( "ty_theme_sub2settings" );
	
	if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub2settings' ){ 
		if ( isset ( $_GET['tab'] ) )
	        $tab = $_GET['tab']; 
	    else
	        $tab = 'tyop-aboutus'; 

	    switch ( $tab ){ 
			case 'tyop-aboutus' :
				$sub2settings['ty_aboutus_text']	  = $_POST['ty_aboutus_text'];
			break;
			case 'tyop-question' :
				$sub2settings['ty_question_text']	  = $_POST['ty_question_text'];
			break;
			case 'tyop-banks' :
				$sub2settings['ty_banks_1_chk']	  = $_POST['ty_banks_1_chk'];
				$sub2settings['ty_banks_2_chk']	  = $_POST['ty_banks_2_chk'];
				$sub2settings['ty_banks_3_chk']	  = $_POST['ty_banks_3_chk'];
				$sub2settings['ty_banks_4_chk']	  = $_POST['ty_banks_4_chk'];
				$sub2settings['ty_banks_5_chk']	  = $_POST['ty_banks_5_chk'];
				$sub2settings['ty_banks_6_chk']	  = $_POST['ty_banks_6_chk'];
				$sub2settings['ty_banks_7_chk']	  = $_POST['ty_banks_7_chk'];
				$sub2settings['ty_banks_8_chk']	  = $_POST['ty_banks_8_chk'];
				$sub2settings['ty_banks_9_chk']	  = $_POST['ty_banks_6_chk'];
				$sub2settings['ty_banks_10_chk']	  = $_POST['ty_banks_10_chk'];
				$sub2settings['ty_banks_11_chk']	  = $_POST['ty_banks_11_chk'];
				$sub2settings['ty_banks_12_chk']	  = $_POST['ty_banks_12_chk'];
				$sub2settings['ty_banks_13_chk']	  = $_POST['ty_banks_13_chk'];
				$sub2settings['ty_banks_14_chk']	  = $_POST['ty_banks_14_chk'];
				$sub2settings['ty_banks_15_chk']	  = $_POST['ty_banks_15_chk'];
				$sub2settings['ty_banks_16_chk']	  = $_POST['ty_banks_16_chk'];
				$sub2settings['ty_banks_17_chk']	  = $_POST['ty_banks_17_chk'];
				$sub2settings['ty_banks_18_chk']	  = $_POST['ty_banks_18_chk'];
				$sub2settings['ty_banks_toptxt']	  = $_POST['ty_banks_toptxt'];
				$sub2settings['ty_banks_botttxt']	  = $_POST['ty_banks_botttxt'];
				$sub2settings['ty_banks_1_pic']	  = $_POST['ty_banks_1_pic'];
				$sub2settings['ty_banks_1_name']	  = $_POST['ty_banks_1_name'];
				$sub2settings['ty_banks_1_number']	  = $_POST['ty_banks_1_number'];
				$sub2settings['ty_banks_2_pic']	  = $_POST['ty_banks_2_pic'];
				$sub2settings['ty_banks_2_name']	  = $_POST['ty_banks_2_name'];
				$sub2settings['ty_banks_2_number']	  = $_POST['ty_banks_2_number'];
				$sub2settings['ty_banks_3_pic']	  = $_POST['ty_banks_3_pic'];
				$sub2settings['ty_banks_3_name']	  = $_POST['ty_banks_3_name'];
				$sub2settings['ty_banks_3_number']	  = $_POST['ty_banks_3_number'];
				$sub2settings['ty_banks_4_pic']	  = $_POST['ty_banks_4_pic'];
				$sub2settings['ty_banks_4_name']	  = $_POST['ty_banks_4_name'];
				$sub2settings['ty_banks_4_number']	  = $_POST['ty_banks_4_number'];
				$sub2settings['ty_banks_5_pic']	  = $_POST['ty_banks_5_pic'];
				$sub2settings['ty_banks_5_name']	  = $_POST['ty_banks_5_name'];
				$sub2settings['ty_banks_5_number']	  = $_POST['ty_banks_5_number'];
				$sub2settings['ty_banks_6_pic']	  = $_POST['ty_banks_6_pic'];
				$sub2settings['ty_banks_6_name']	  = $_POST['ty_banks_6_name'];
				$sub2settings['ty_banks_6_number']	  = $_POST['ty_banks_6_number'];
				$sub2settings['ty_banks_7_pic']	  = $_POST['ty_banks_7_pic'];
				$sub2settings['ty_banks_7_name']	  = $_POST['ty_banks_7_name'];
				$sub2settings['ty_banks_7_number']	  = $_POST['ty_banks_7_number'];
				$sub2settings['ty_banks_8_pic']	  = $_POST['ty_banks_8_pic'];
				$sub2settings['ty_banks_8_name']	  = $_POST['ty_banks_8_name'];
				$sub2settings['ty_banks_8_number']	  = $_POST['ty_banks_8_number'];
				$sub2settings['ty_banks_9_pic']	  = $_POST['ty_banks_9_pic'];
				$sub2settings['ty_banks_9_name']	  = $_POST['ty_banks_9_name'];
				$sub2settings['ty_banks_9_number']	  = $_POST['ty_banks_9_number'];
				$sub2settings['ty_banks_10_pic']	  = $_POST['ty_banks_10_pic'];
				$sub2settings['ty_banks_10_name']	  = $_POST['ty_banks_10_name'];
				$sub2settings['ty_banks_10_number']	  = $_POST['ty_banks_10_number'];
				$sub2settings['ty_banks_11_pic']	  = $_POST['ty_banks_11_pic'];
				$sub2settings['ty_banks_11_name']	  = $_POST['ty_banks_11_name'];
				$sub2settings['ty_banks_11_number']	  = $_POST['ty_banks_11_number'];
				$sub2settings['ty_banks_12_pic']	  = $_POST['ty_banks_12_pic'];
				$sub2settings['ty_banks_12_name']	  = $_POST['ty_banks_12_name'];
				$sub2settings['ty_banks_12_number']	  = $_POST['ty_banks_12_number'];
				$sub2settings['ty_banks_13_pic']	  = $_POST['ty_banks_13_pic'];
				$sub2settings['ty_banks_13_name']	  = $_POST['ty_banks_13_name'];
				$sub2settings['ty_banks_13_number']	  = $_POST['ty_banks_13_number'];
				$sub2settings['ty_banks_14_pic']	  = $_POST['ty_banks_14_pic'];
				$sub2settings['ty_banks_14_name']	  = $_POST['ty_banks_14_name'];
				$sub2settings['ty_banks_14_number']	  = $_POST['ty_banks_14_number'];
				$sub2settings['ty_banks_15_pic']	  = $_POST['ty_banks_15_pic'];
				$sub2settings['ty_banks_15_name']	  = $_POST['ty_banks_15_name'];
				$sub2settings['ty_banks_15_number']	  = $_POST['ty_banks_15_number'];
				$sub2settings['ty_banks_16_pic']	  = $_POST['ty_banks_16_pic'];
				$sub2settings['ty_banks_16_name']	  = $_POST['ty_banks_16_name'];
				$sub2settings['ty_banks_16_number']	  = $_POST['ty_banks_16_number'];
				$sub2settings['ty_banks_17_pic']	  = $_POST['ty_banks_17_pic'];
				$sub2settings['ty_banks_17_name']	  = $_POST['ty_banks_17_name'];
				$sub2settings['ty_banks_17_number']	  = $_POST['ty_banks_17_number'];
				$sub2settings['ty_banks_18_pic']	  = $_POST['ty_banks_18_pic'];
				$sub2settings['ty_banks_18_name']	  = $_POST['ty_banks_18_name'];
				$sub2settings['ty_banks_18_number']	  = $_POST['ty_banks_18_number'];
			break;
			case 'tyop-terms' :
				$sub2settings['ty_terms_text']	  = $_POST['ty_terms_text'];
			break;
			case 'tyop-hostingoffers' :
				$sub2settings['ty_hostingoffers_a_chk']	  = $_POST['ty_hostingoffers_a_chk'];
				$sub2settings['ty_hostingoffers_b_chk']	  = $_POST['ty_hostingoffers_b_chk'];
				$sub2settings['ty_hostingoffers_c_chk']	  = $_POST['ty_hostingoffers_c_chk'];
				$sub2settings['ty_hostingoffers_d_chk']	  = $_POST['ty_hostingoffers_d_chk'];
				$sub2settings['ty_hostingoffers_e_chk']	  = $_POST['ty_hostingoffers_e_chk'];
				$sub2settings['ty_hostingoffers_f_chk']	  = $_POST['ty_hostingoffers_f_chk'];
				$sub2settings['ty_hostingoffers_g_chk']	  = $_POST['ty_hostingoffers_g_chk'];
				$sub2settings['ty_hostingoffers_h_chk']	  = $_POST['ty_hostingoffers_h_chk'];
				$sub2settings['ty_hostingoffers_toptxt']	  = $_POST['ty_hostingoffers_toptxt'];
				$sub2settings['ty_hostingoffers_botttxt']	  = $_POST['ty_hostingoffers_botttxt'];
				$sub2settings['ty_hostingoffers_a_price']	  = $_POST['ty_hostingoffers_a_price'];
				$sub2settings['ty_hostingoffers_a_curr']	  = $_POST['ty_hostingoffers_a_curr'];
				$sub2settings['ty_hostingoffers_a_adrs']	  = $_POST['ty_hostingoffers_a_adrs'];
				$sub2settings['ty_hostingoffers_a_desc']	  = $_POST['ty_hostingoffers_a_desc'];
				$sub2settings['ty_hostingoffers_a_list1']	  = $_POST['ty_hostingoffers_a_list1'];
				$sub2settings['ty_hostingoffers_a_list2']	  = $_POST['ty_hostingoffers_a_list2'];
				$sub2settings['ty_hostingoffers_a_list3']	  = $_POST['ty_hostingoffers_a_list3'];
				$sub2settings['ty_hostingoffers_a_list4']	  = $_POST['ty_hostingoffers_a_list4'];
				$sub2settings['ty_hostingoffers_a_list5']	  = $_POST['ty_hostingoffers_a_list5'];
				$sub2settings['ty_hostingoffers_a_order']	  = $_POST['ty_hostingoffers_a_order'];
				$sub2settings['ty_hostingoffers_a_orderlink']	  = $_POST['ty_hostingoffers_a_orderlink'];
				$sub2settings['ty_hostingoffers_b_price']	  = $_POST['ty_hostingoffers_b_price'];
				$sub2settings['ty_hostingoffers_b_curr']	  = $_POST['ty_hostingoffers_b_curr'];
				$sub2settings['ty_hostingoffers_b_adrs']	  = $_POST['ty_hostingoffers_b_adrs'];
				$sub2settings['ty_hostingoffers_b_desc']	  = $_POST['ty_hostingoffers_b_desc'];
				$sub2settings['ty_hostingoffers_b_list1']	  = $_POST['ty_hostingoffers_b_list1'];
				$sub2settings['ty_hostingoffers_b_list2']	  = $_POST['ty_hostingoffers_b_list2'];
				$sub2settings['ty_hostingoffers_b_list3']	  = $_POST['ty_hostingoffers_b_list3'];
				$sub2settings['ty_hostingoffers_b_list4']	  = $_POST['ty_hostingoffers_b_list4'];
				$sub2settings['ty_hostingoffers_b_list5']	  = $_POST['ty_hostingoffers_b_list5'];
				$sub2settings['ty_hostingoffers_b_order']	  = $_POST['ty_hostingoffers_b_order'];
				$sub2settings['ty_hostingoffers_b_orderlink']	  = $_POST['ty_hostingoffers_b_orderlink'];
				$sub2settings['ty_hostingoffers_c_price']	  = $_POST['ty_hostingoffers_c_price'];
				$sub2settings['ty_hostingoffers_c_curr']	  = $_POST['ty_hostingoffers_c_curr'];
				$sub2settings['ty_hostingoffers_c_adrs']	  = $_POST['ty_hostingoffers_c_adrs'];
				$sub2settings['ty_hostingoffers_c_desc']	  = $_POST['ty_hostingoffers_c_desc'];
				$sub2settings['ty_hostingoffers_c_list1']	  = $_POST['ty_hostingoffers_c_list1'];
				$sub2settings['ty_hostingoffers_c_list2']	  = $_POST['ty_hostingoffers_c_list2'];
				$sub2settings['ty_hostingoffers_c_list3']	  = $_POST['ty_hostingoffers_c_list3'];
				$sub2settings['ty_hostingoffers_c_list4']	  = $_POST['ty_hostingoffers_c_list4'];
				$sub2settings['ty_hostingoffers_c_list5']	  = $_POST['ty_hostingoffers_c_list5'];
				$sub2settings['ty_hostingoffers_c_order']	  = $_POST['ty_hostingoffers_c_order'];
				$sub2settings['ty_hostingoffers_c_orderlink']	  = $_POST['ty_hostingoffers_c_orderlink'];
				$sub2settings['ty_hostingoffers_d_price']	  = $_POST['ty_hostingoffers_d_price'];
				$sub2settings['ty_hostingoffers_d_curr']	  = $_POST['ty_hostingoffers_d_curr'];
				$sub2settings['ty_hostingoffers_d_adrs']	  = $_POST['ty_hostingoffers_d_adrs'];
				$sub2settings['ty_hostingoffers_d_desc']	  = $_POST['ty_hostingoffers_d_desc'];
				$sub2settings['ty_hostingoffers_d_list1']	  = $_POST['ty_hostingoffers_d_list1'];
				$sub2settings['ty_hostingoffers_d_list2']	  = $_POST['ty_hostingoffers_d_list2'];
				$sub2settings['ty_hostingoffers_d_list3']	  = $_POST['ty_hostingoffers_d_list3'];
				$sub2settings['ty_hostingoffers_d_list4']	  = $_POST['ty_hostingoffers_d_list4'];
				$sub2settings['ty_hostingoffers_d_list5']	  = $_POST['ty_hostingoffers_d_list5'];
				$sub2settings['ty_hostingoffers_d_order']	  = $_POST['ty_hostingoffers_d_order'];
				$sub2settings['ty_hostingoffers_d_orderlink']	  = $_POST['ty_hostingoffers_d_orderlink'];
				$sub2settings['ty_hostingoffers_e_price']	  = $_POST['ty_hostingoffers_e_price'];
				$sub2settings['ty_hostingoffers_e_curr']	  = $_POST['ty_hostingoffers_e_curr'];
				$sub2settings['ty_hostingoffers_e_adrs']	  = $_POST['ty_hostingoffers_e_adrs'];
				$sub2settings['ty_hostingoffers_e_desc']	  = $_POST['ty_hostingoffers_e_desc'];
				$sub2settings['ty_hostingoffers_e_list1']	  = $_POST['ty_hostingoffers_e_list1'];
				$sub2settings['ty_hostingoffers_e_list2']	  = $_POST['ty_hostingoffers_e_list2'];
				$sub2settings['ty_hostingoffers_e_list3']	  = $_POST['ty_hostingoffers_e_list3'];
				$sub2settings['ty_hostingoffers_e_list4']	  = $_POST['ty_hostingoffers_e_list4'];
				$sub2settings['ty_hostingoffers_e_list5']	  = $_POST['ty_hostingoffers_e_list5'];
				$sub2settings['ty_hostingoffers_e_order']	  = $_POST['ty_hostingoffers_e_order'];
				$sub2settings['ty_hostingoffers_e_orderlink']	  = $_POST['ty_hostingoffers_e_orderlink'];
				$sub2settings['ty_hostingoffers_f_price']	  = $_POST['ty_hostingoffers_f_price'];
				$sub2settings['ty_hostingoffers_f_curr']	  = $_POST['ty_hostingoffers_f_curr'];
				$sub2settings['ty_hostingoffers_f_adrs']	  = $_POST['ty_hostingoffers_f_adrs'];
				$sub2settings['ty_hostingoffers_f_desc']	  = $_POST['ty_hostingoffers_f_desc'];
				$sub2settings['ty_hostingoffers_f_list1']	  = $_POST['ty_hostingoffers_f_list1'];
				$sub2settings['ty_hostingoffers_f_list2']	  = $_POST['ty_hostingoffers_f_list2'];
				$sub2settings['ty_hostingoffers_f_list3']	  = $_POST['ty_hostingoffers_f_list3'];
				$sub2settings['ty_hostingoffers_f_list4']	  = $_POST['ty_hostingoffers_f_list4'];
				$sub2settings['ty_hostingoffers_f_list5']	  = $_POST['ty_hostingoffers_f_list5'];
				$sub2settings['ty_hostingoffers_f_order']	  = $_POST['ty_hostingoffers_f_order'];
				$sub2settings['ty_hostingoffers_f_orderlink']	  = $_POST['ty_hostingoffers_f_orderlink'];
				$sub2settings['ty_hostingoffers_g_price']	  = $_POST['ty_hostingoffers_g_price'];
				$sub2settings['ty_hostingoffers_g_curr']	  = $_POST['ty_hostingoffers_g_curr'];
				$sub2settings['ty_hostingoffers_g_adrs']	  = $_POST['ty_hostingoffers_g_adrs'];
				$sub2settings['ty_hostingoffers_g_desc']	  = $_POST['ty_hostingoffers_g_desc'];
				$sub2settings['ty_hostingoffers_g_list1']	  = $_POST['ty_hostingoffers_g_list1'];
				$sub2settings['ty_hostingoffers_g_list2']	  = $_POST['ty_hostingoffers_g_list2'];
				$sub2settings['ty_hostingoffers_g_list3']	  = $_POST['ty_hostingoffers_g_list3'];
				$sub2settings['ty_hostingoffers_g_list4']	  = $_POST['ty_hostingoffers_g_list4'];
				$sub2settings['ty_hostingoffers_g_list5']	  = $_POST['ty_hostingoffers_g_list5'];
				$sub2settings['ty_hostingoffers_g_order']	  = $_POST['ty_hostingoffers_g_order'];
				$sub2settings['ty_hostingoffers_g_orderlink']	  = $_POST['ty_hostingoffers_g_orderlink'];
				$sub2settings['ty_hostingoffers_h_price']	  = $_POST['ty_hostingoffers_h_price'];
				$sub2settings['ty_hostingoffers_h_curr']	  = $_POST['ty_hostingoffers_h_curr'];
				$sub2settings['ty_hostingoffers_h_adrs']	  = $_POST['ty_hostingoffers_h_adrs'];
				$sub2settings['ty_hostingoffers_h_desc']	  = $_POST['ty_hostingoffers_h_desc'];
				$sub2settings['ty_hostingoffers_h_list1']	  = $_POST['ty_hostingoffers_h_list1'];
				$sub2settings['ty_hostingoffers_h_list2']	  = $_POST['ty_hostingoffers_h_list2'];
				$sub2settings['ty_hostingoffers_h_list3']	  = $_POST['ty_hostingoffers_h_list3'];
				$sub2settings['ty_hostingoffers_h_list4']	  = $_POST['ty_hostingoffers_h_list4'];
				$sub2settings['ty_hostingoffers_h_list5']	  = $_POST['ty_hostingoffers_h_list5'];
				$sub2settings['ty_hostingoffers_h_order']	  = $_POST['ty_hostingoffers_h_order'];
				$sub2settings['ty_hostingoffers_h_orderlink']	  = $_POST['ty_hostingoffers_h_orderlink'];
			break;
			case 'tyop-resellersoffers' :
				$sub2settings['ty_resellersoffers_a_chk']	  = $_POST['ty_resellersoffers_a_chk'];
				$sub2settings['ty_resellersoffers_b_chk']	  = $_POST['ty_resellersoffers_b_chk'];
				$sub2settings['ty_resellersoffers_c_chk']	  = $_POST['ty_resellersoffers_c_chk'];
				$sub2settings['ty_resellersoffers_d_chk']	  = $_POST['ty_resellersoffers_d_chk'];
				$sub2settings['ty_resellersoffers_e_chk']	  = $_POST['ty_resellersoffers_e_chk'];
				$sub2settings['ty_resellersoffers_f_chk']	  = $_POST['ty_resellersoffers_f_chk'];
				$sub2settings['ty_resellersoffers_g_chk']	  = $_POST['ty_resellersoffers_g_chk'];
				$sub2settings['ty_resellersoffers_h_chk']	  = $_POST['ty_resellersoffers_h_chk'];
				$sub2settings['ty_resellersoffers_toptxt']	  = $_POST['ty_resellersoffers_toptxt'];
				$sub2settings['ty_resellersoffers_botttxt']	  = $_POST['ty_resellersoffers_botttxt'];
				$sub2settings['ty_resellersoffers_a_price']	  = $_POST['ty_resellersoffers_a_price'];
				$sub2settings['ty_resellersoffers_a_curr']	  = $_POST['ty_resellersoffers_a_curr'];
				$sub2settings['ty_resellersoffers_a_adrs']	  = $_POST['ty_resellersoffers_a_adrs'];
				$sub2settings['ty_resellersoffers_a_desc']	  = $_POST['ty_resellersoffers_a_desc'];
				$sub2settings['ty_resellersoffers_a_list1']	  = $_POST['ty_resellersoffers_a_list1'];
				$sub2settings['ty_resellersoffers_a_list2']	  = $_POST['ty_resellersoffers_a_list2'];
				$sub2settings['ty_resellersoffers_a_list3']	  = $_POST['ty_resellersoffers_a_list3'];
				$sub2settings['ty_resellersoffers_a_list4']	  = $_POST['ty_resellersoffers_a_list4'];
				$sub2settings['ty_resellersoffers_a_list5']	  = $_POST['ty_resellersoffers_a_list5'];
				$sub2settings['ty_resellersoffers_a_order']	  = $_POST['ty_resellersoffers_a_order'];
				$sub2settings['ty_resellersoffers_a_orderlink']	  = $_POST['ty_resellersoffers_a_orderlink'];
				$sub2settings['ty_resellersoffers_b_price']	  = $_POST['ty_resellersoffers_b_price'];
				$sub2settings['ty_resellersoffers_b_curr']	  = $_POST['ty_resellersoffers_b_curr'];
				$sub2settings['ty_resellersoffers_b_adrs']	  = $_POST['ty_resellersoffers_b_adrs'];
				$sub2settings['ty_resellersoffers_b_desc']	  = $_POST['ty_resellersoffers_b_desc'];
				$sub2settings['ty_resellersoffers_b_list1']	  = $_POST['ty_resellersoffers_b_list1'];
				$sub2settings['ty_resellersoffers_b_list2']	  = $_POST['ty_resellersoffers_b_list2'];
				$sub2settings['ty_resellersoffers_b_list3']	  = $_POST['ty_resellersoffers_b_list3'];
				$sub2settings['ty_resellersoffers_b_list4']	  = $_POST['ty_resellersoffers_b_list4'];
				$sub2settings['ty_resellersoffers_b_list5']	  = $_POST['ty_resellersoffers_b_list5'];
				$sub2settings['ty_resellersoffers_b_order']	  = $_POST['ty_resellersoffers_b_order'];
				$sub2settings['ty_resellersoffers_b_orderlink']	  = $_POST['ty_resellersoffers_b_orderlink'];
				$sub2settings['ty_resellersoffers_c_price']	  = $_POST['ty_resellersoffers_c_price'];
				$sub2settings['ty_resellersoffers_c_curr']	  = $_POST['ty_resellersoffers_c_curr'];
				$sub2settings['ty_resellersoffers_c_adrs']	  = $_POST['ty_resellersoffers_c_adrs'];
				$sub2settings['ty_resellersoffers_c_desc']	  = $_POST['ty_resellersoffers_c_desc'];
				$sub2settings['ty_resellersoffers_c_list1']	  = $_POST['ty_resellersoffers_c_list1'];
				$sub2settings['ty_resellersoffers_c_list2']	  = $_POST['ty_resellersoffers_c_list2'];
				$sub2settings['ty_resellersoffers_c_list3']	  = $_POST['ty_resellersoffers_c_list3'];
				$sub2settings['ty_resellersoffers_c_list4']	  = $_POST['ty_resellersoffers_c_list4'];
				$sub2settings['ty_resellersoffers_c_list5']	  = $_POST['ty_resellersoffers_c_list5'];
				$sub2settings['ty_resellersoffers_c_order']	  = $_POST['ty_resellersoffers_c_order'];
				$sub2settings['ty_resellersoffers_c_orderlink']	  = $_POST['ty_resellersoffers_c_orderlink'];
				$sub2settings['ty_resellersoffers_d_price']	  = $_POST['ty_resellersoffers_d_price'];
				$sub2settings['ty_resellersoffers_d_curr']	  = $_POST['ty_resellersoffers_d_curr'];
				$sub2settings['ty_resellersoffers_d_adrs']	  = $_POST['ty_resellersoffers_d_adrs'];
				$sub2settings['ty_resellersoffers_d_desc']	  = $_POST['ty_resellersoffers_d_desc'];
				$sub2settings['ty_resellersoffers_d_list1']	  = $_POST['ty_resellersoffers_d_list1'];
				$sub2settings['ty_resellersoffers_d_list2']	  = $_POST['ty_resellersoffers_d_list2'];
				$sub2settings['ty_resellersoffers_d_list3']	  = $_POST['ty_resellersoffers_d_list3'];
				$sub2settings['ty_resellersoffers_d_list4']	  = $_POST['ty_resellersoffers_d_list4'];
				$sub2settings['ty_resellersoffers_d_list5']	  = $_POST['ty_resellersoffers_d_list5'];
				$sub2settings['ty_resellersoffers_d_order']	  = $_POST['ty_resellersoffers_d_order'];
				$sub2settings['ty_resellersoffers_d_orderlink']	  = $_POST['ty_resellersoffers_d_orderlink'];
				$sub2settings['ty_resellersoffers_e_price']	  = $_POST['ty_resellersoffers_e_price'];
				$sub2settings['ty_resellersoffers_e_curr']	  = $_POST['ty_resellersoffers_e_curr'];
				$sub2settings['ty_resellersoffers_e_adrs']	  = $_POST['ty_resellersoffers_e_adrs'];
				$sub2settings['ty_resellersoffers_e_desc']	  = $_POST['ty_resellersoffers_e_desc'];
				$sub2settings['ty_resellersoffers_e_list1']	  = $_POST['ty_resellersoffers_e_list1'];
				$sub2settings['ty_resellersoffers_e_list2']	  = $_POST['ty_resellersoffers_e_list2'];
				$sub2settings['ty_resellersoffers_e_list3']	  = $_POST['ty_resellersoffers_e_list3'];
				$sub2settings['ty_resellersoffers_e_list4']	  = $_POST['ty_resellersoffers_e_list4'];
				$sub2settings['ty_resellersoffers_e_list5']	  = $_POST['ty_resellersoffers_e_list5'];
				$sub2settings['ty_resellersoffers_e_order']	  = $_POST['ty_resellersoffers_e_order'];
				$sub2settings['ty_resellersoffers_e_orderlink']	  = $_POST['ty_resellersoffers_e_orderlink'];
				$sub2settings['ty_resellersoffers_f_price']	  = $_POST['ty_resellersoffers_f_price'];
				$sub2settings['ty_resellersoffers_f_curr']	  = $_POST['ty_resellersoffers_f_curr'];
				$sub2settings['ty_resellersoffers_f_adrs']	  = $_POST['ty_resellersoffers_f_adrs'];
				$sub2settings['ty_resellersoffers_f_desc']	  = $_POST['ty_resellersoffers_f_desc'];
				$sub2settings['ty_resellersoffers_f_list1']	  = $_POST['ty_resellersoffers_f_list1'];
				$sub2settings['ty_resellersoffers_f_list2']	  = $_POST['ty_resellersoffers_f_list2'];
				$sub2settings['ty_resellersoffers_f_list3']	  = $_POST['ty_resellersoffers_f_list3'];
				$sub2settings['ty_resellersoffers_f_list4']	  = $_POST['ty_resellersoffers_f_list4'];
				$sub2settings['ty_resellersoffers_f_list5']	  = $_POST['ty_resellersoffers_f_list5'];
				$sub2settings['ty_resellersoffers_f_order']	  = $_POST['ty_resellersoffers_f_order'];
				$sub2settings['ty_resellersoffers_f_orderlink']	  = $_POST['ty_resellersoffers_f_orderlink'];
				$sub2settings['ty_resellersoffers_g_price']	  = $_POST['ty_resellersoffers_g_price'];
				$sub2settings['ty_resellersoffers_g_curr']	  = $_POST['ty_resellersoffers_g_curr'];
				$sub2settings['ty_resellersoffers_g_adrs']	  = $_POST['ty_resellersoffers_g_adrs'];
				$sub2settings['ty_resellersoffers_g_desc']	  = $_POST['ty_resellersoffers_g_desc'];
				$sub2settings['ty_resellersoffers_g_list1']	  = $_POST['ty_resellersoffers_g_list1'];
				$sub2settings['ty_resellersoffers_g_list2']	  = $_POST['ty_resellersoffers_g_list2'];
				$sub2settings['ty_resellersoffers_g_list3']	  = $_POST['ty_resellersoffers_g_list3'];
				$sub2settings['ty_resellersoffers_g_list4']	  = $_POST['ty_resellersoffers_g_list4'];
				$sub2settings['ty_resellersoffers_g_list5']	  = $_POST['ty_resellersoffers_g_list5'];
				$sub2settings['ty_resellersoffers_g_order']	  = $_POST['ty_resellersoffers_g_order'];
				$sub2settings['ty_resellersoffers_g_orderlink']	  = $_POST['ty_resellersoffers_g_orderlink'];
				$sub2settings['ty_resellersoffers_h_price']	  = $_POST['ty_resellersoffers_h_price'];
				$sub2settings['ty_resellersoffers_h_curr']	  = $_POST['ty_resellersoffers_h_curr'];
				$sub2settings['ty_resellersoffers_h_adrs']	  = $_POST['ty_resellersoffers_h_adrs'];
				$sub2settings['ty_resellersoffers_h_desc']	  = $_POST['ty_resellersoffers_h_desc'];
				$sub2settings['ty_resellersoffers_h_list1']	  = $_POST['ty_resellersoffers_h_list1'];
				$sub2settings['ty_resellersoffers_h_list2']	  = $_POST['ty_resellersoffers_h_list2'];
				$sub2settings['ty_resellersoffers_h_list3']	  = $_POST['ty_resellersoffers_h_list3'];
				$sub2settings['ty_resellersoffers_h_list4']	  = $_POST['ty_resellersoffers_h_list4'];
				$sub2settings['ty_resellersoffers_h_list5']	  = $_POST['ty_resellersoffers_h_list5'];
				$sub2settings['ty_resellersoffers_h_order']	  = $_POST['ty_resellersoffers_h_order'];
				$sub2settings['ty_resellersoffers_h_orderlink']	  = $_POST['ty_resellersoffers_h_orderlink'];
			break;
			case 'tyop-serversoffers' :
				$sub2settings['ty_serversoffers_a_chk']	  = $_POST['ty_serversoffers_a_chk'];
				$sub2settings['ty_serversoffers_b_chk']	  = $_POST['ty_serversoffers_b_chk'];
				$sub2settings['ty_serversoffers_c_chk']	  = $_POST['ty_serversoffers_c_chk'];
				$sub2settings['ty_serversoffers_d_chk']	  = $_POST['ty_serversoffers_d_chk'];
				$sub2settings['ty_serversoffers_e_chk']	  = $_POST['ty_serversoffers_e_chk'];
				$sub2settings['ty_serversoffers_f_chk']	  = $_POST['ty_serversoffers_f_chk'];
				$sub2settings['ty_serversoffers_g_chk']	  = $_POST['ty_serversoffers_g_chk'];
				$sub2settings['ty_serversoffers_h_chk']	  = $_POST['ty_serversoffers_h_chk'];
				$sub2settings['ty_serversoffers_toptxt']	  = $_POST['ty_serversoffers_toptxt'];
				$sub2settings['ty_serversoffers_botttxt']	  = $_POST['ty_serversoffers_botttxt'];
				$sub2settings['ty_serversoffers_a_price']	  = $_POST['ty_serversoffers_a_price'];
				$sub2settings['ty_serversoffers_a_curr']	  = $_POST['ty_serversoffers_a_curr'];
				$sub2settings['ty_serversoffers_a_adrs']	  = $_POST['ty_serversoffers_a_adrs'];
				$sub2settings['ty_serversoffers_a_desc']	  = $_POST['ty_serversoffers_a_desc'];
				$sub2settings['ty_serversoffers_a_list1']	  = $_POST['ty_serversoffers_a_list1'];
				$sub2settings['ty_serversoffers_a_list2']	  = $_POST['ty_serversoffers_a_list2'];
				$sub2settings['ty_serversoffers_a_list3']	  = $_POST['ty_serversoffers_a_list3'];
				$sub2settings['ty_serversoffers_a_list4']	  = $_POST['ty_serversoffers_a_list4'];
				$sub2settings['ty_serversoffers_a_list5']	  = $_POST['ty_serversoffers_a_list5'];
				$sub2settings['ty_serversoffers_a_order']	  = $_POST['ty_serversoffers_a_order'];
				$sub2settings['ty_serversoffers_a_orderlink']	  = $_POST['ty_serversoffers_a_orderlink'];
				$sub2settings['ty_serversoffers_b_price']	  = $_POST['ty_serversoffers_b_price'];
				$sub2settings['ty_serversoffers_b_curr']	  = $_POST['ty_serversoffers_b_curr'];
				$sub2settings['ty_serversoffers_b_adrs']	  = $_POST['ty_serversoffers_b_adrs'];
				$sub2settings['ty_serversoffers_b_desc']	  = $_POST['ty_serversoffers_b_desc'];
				$sub2settings['ty_serversoffers_b_list1']	  = $_POST['ty_serversoffers_b_list1'];
				$sub2settings['ty_serversoffers_b_list2']	  = $_POST['ty_serversoffers_b_list2'];
				$sub2settings['ty_serversoffers_b_list3']	  = $_POST['ty_serversoffers_b_list3'];
				$sub2settings['ty_serversoffers_b_list4']	  = $_POST['ty_serversoffers_b_list4'];
				$sub2settings['ty_serversoffers_b_list5']	  = $_POST['ty_serversoffers_b_list5'];
				$sub2settings['ty_serversoffers_b_order']	  = $_POST['ty_serversoffers_b_order'];
				$sub2settings['ty_serversoffers_b_orderlink']	  = $_POST['ty_serversoffers_b_orderlink'];
				$sub2settings['ty_serversoffers_c_price']	  = $_POST['ty_serversoffers_c_price'];
				$sub2settings['ty_serversoffers_c_curr']	  = $_POST['ty_serversoffers_c_curr'];
				$sub2settings['ty_serversoffers_c_adrs']	  = $_POST['ty_serversoffers_c_adrs'];
				$sub2settings['ty_serversoffers_c_desc']	  = $_POST['ty_serversoffers_c_desc'];
				$sub2settings['ty_serversoffers_c_list1']	  = $_POST['ty_serversoffers_c_list1'];
				$sub2settings['ty_serversoffers_c_list2']	  = $_POST['ty_serversoffers_c_list2'];
				$sub2settings['ty_serversoffers_c_list3']	  = $_POST['ty_serversoffers_c_list3'];
				$sub2settings['ty_serversoffers_c_list4']	  = $_POST['ty_serversoffers_c_list4'];
				$sub2settings['ty_serversoffers_c_list5']	  = $_POST['ty_serversoffers_c_list5'];
				$sub2settings['ty_serversoffers_c_order']	  = $_POST['ty_serversoffers_c_order'];
				$sub2settings['ty_serversoffers_c_orderlink']	  = $_POST['ty_serversoffers_c_orderlink'];
				$sub2settings['ty_serversoffers_d_price']	  = $_POST['ty_serversoffers_d_price'];
				$sub2settings['ty_serversoffers_d_curr']	  = $_POST['ty_serversoffers_d_curr'];
				$sub2settings['ty_serversoffers_d_adrs']	  = $_POST['ty_serversoffers_d_adrs'];
				$sub2settings['ty_serversoffers_d_desc']	  = $_POST['ty_serversoffers_d_desc'];
				$sub2settings['ty_serversoffers_d_list1']	  = $_POST['ty_serversoffers_d_list1'];
				$sub2settings['ty_serversoffers_d_list2']	  = $_POST['ty_serversoffers_d_list2'];
				$sub2settings['ty_serversoffers_d_list3']	  = $_POST['ty_serversoffers_d_list3'];
				$sub2settings['ty_serversoffers_d_list4']	  = $_POST['ty_serversoffers_d_list4'];
				$sub2settings['ty_serversoffers_d_list5']	  = $_POST['ty_serversoffers_d_list5'];
				$sub2settings['ty_serversoffers_d_order']	  = $_POST['ty_serversoffers_d_order'];
				$sub2settings['ty_serversoffers_d_orderlink']	  = $_POST['ty_serversoffers_d_orderlink'];
				$sub2settings['ty_serversoffers_e_price']	  = $_POST['ty_serversoffers_e_price'];
				$sub2settings['ty_serversoffers_e_curr']	  = $_POST['ty_serversoffers_e_curr'];
				$sub2settings['ty_serversoffers_e_adrs']	  = $_POST['ty_serversoffers_e_adrs'];
				$sub2settings['ty_serversoffers_e_desc']	  = $_POST['ty_serversoffers_e_desc'];
				$sub2settings['ty_serversoffers_e_list1']	  = $_POST['ty_serversoffers_e_list1'];
				$sub2settings['ty_serversoffers_e_list2']	  = $_POST['ty_serversoffers_e_list2'];
				$sub2settings['ty_serversoffers_e_list3']	  = $_POST['ty_serversoffers_e_list3'];
				$sub2settings['ty_serversoffers_e_list4']	  = $_POST['ty_serversoffers_e_list4'];
				$sub2settings['ty_serversoffers_e_list5']	  = $_POST['ty_serversoffers_e_list5'];
				$sub2settings['ty_serversoffers_e_order']	  = $_POST['ty_serversoffers_e_order'];
				$sub2settings['ty_serversoffers_e_orderlink']	  = $_POST['ty_serversoffers_e_orderlink'];
				$sub2settings['ty_serversoffers_f_price']	  = $_POST['ty_serversoffers_f_price'];
				$sub2settings['ty_serversoffers_f_curr']	  = $_POST['ty_serversoffers_f_curr'];
				$sub2settings['ty_serversoffers_f_adrs']	  = $_POST['ty_serversoffers_f_adrs'];
				$sub2settings['ty_serversoffers_f_desc']	  = $_POST['ty_serversoffers_f_desc'];
				$sub2settings['ty_serversoffers_f_list1']	  = $_POST['ty_serversoffers_f_list1'];
				$sub2settings['ty_serversoffers_f_list2']	  = $_POST['ty_serversoffers_f_list2'];
				$sub2settings['ty_serversoffers_f_list3']	  = $_POST['ty_serversoffers_f_list3'];
				$sub2settings['ty_serversoffers_f_list4']	  = $_POST['ty_serversoffers_f_list4'];
				$sub2settings['ty_serversoffers_f_list5']	  = $_POST['ty_serversoffers_f_list5'];
				$sub2settings['ty_serversoffers_f_order']	  = $_POST['ty_serversoffers_f_order'];
				$sub2settings['ty_serversoffers_f_orderlink']	  = $_POST['ty_serversoffers_f_orderlink'];
				$sub2settings['ty_serversoffers_g_price']	  = $_POST['ty_serversoffers_g_price'];
				$sub2settings['ty_serversoffers_g_curr']	  = $_POST['ty_serversoffers_g_curr'];
				$sub2settings['ty_serversoffers_g_adrs']	  = $_POST['ty_serversoffers_g_adrs'];
				$sub2settings['ty_serversoffers_g_desc']	  = $_POST['ty_serversoffers_g_desc'];
				$sub2settings['ty_serversoffers_g_list1']	  = $_POST['ty_serversoffers_g_list1'];
				$sub2settings['ty_serversoffers_g_list2']	  = $_POST['ty_serversoffers_g_list2'];
				$sub2settings['ty_serversoffers_g_list3']	  = $_POST['ty_serversoffers_g_list3'];
				$sub2settings['ty_serversoffers_g_list4']	  = $_POST['ty_serversoffers_g_list4'];
				$sub2settings['ty_serversoffers_g_list5']	  = $_POST['ty_serversoffers_g_list5'];
				$sub2settings['ty_serversoffers_g_order']	  = $_POST['ty_serversoffers_g_order'];
				$sub2settings['ty_serversoffers_g_orderlink']	  = $_POST['ty_serversoffers_g_orderlink'];
				$sub2settings['ty_serversoffers_h_price']	  = $_POST['ty_serversoffers_h_price'];
				$sub2settings['ty_serversoffers_h_curr']	  = $_POST['ty_serversoffers_h_curr'];
				$sub2settings['ty_serversoffers_h_adrs']	  = $_POST['ty_serversoffers_h_adrs'];
				$sub2settings['ty_serversoffers_h_desc']	  = $_POST['ty_serversoffers_h_desc'];
				$sub2settings['ty_serversoffers_h_list1']	  = $_POST['ty_serversoffers_h_list1'];
				$sub2settings['ty_serversoffers_h_list2']	  = $_POST['ty_serversoffers_h_list2'];
				$sub2settings['ty_serversoffers_h_list3']	  = $_POST['ty_serversoffers_h_list3'];
				$sub2settings['ty_serversoffers_h_list4']	  = $_POST['ty_serversoffers_h_list4'];
				$sub2settings['ty_serversoffers_h_list5']	  = $_POST['ty_serversoffers_h_list5'];
				$sub2settings['ty_serversoffers_h_order']	  = $_POST['ty_serversoffers_h_order'];
				$sub2settings['ty_serversoffers_h_orderlink']	  = $_POST['ty_serversoffers_h_orderlink'];
			break;
			case 'tyop-designoffers' :
				$sub2settings['ty_designoffers_1_chk']	  = $_POST['ty_designoffers_1_chk'];
				$sub2settings['ty_designoffers_2_chk']	  = $_POST['ty_designoffers_2_chk'];
				$sub2settings['ty_designoffers_3_chk']	  = $_POST['ty_designoffers_3_chk'];
				$sub2settings['ty_designoffers_4_chk']	  = $_POST['ty_designoffers_4_chk'];
				$sub2settings['ty_designoffers_5_chk']	  = $_POST['ty_designoffers_5_chk'];
				$sub2settings['ty_designoffers_6_chk']	  = $_POST['ty_designoffers_6_chk'];
				$sub2settings['ty_designoffers_7_chk']	  = $_POST['ty_designoffers_7_chk'];
				$sub2settings['ty_designoffers_8_chk']	  = $_POST['ty_designoffers_8_chk'];
				$sub2settings['ty_designoffers_9_chk']	  = $_POST['ty_designoffers_9_chk'];
				$sub2settings['ty_designoffers_10_chk']	  = $_POST['ty_designoffers_10_chk'];
				$sub2settings['ty_designoffers_toptxt']	  = $_POST['ty_designoffers_toptxt'];
				$sub2settings['ty_designoffers_botttxt']	  = $_POST['ty_designoffers_botttxt'];
				$sub2settings['ty_designoffers_1_num']	  = $_POST['ty_designoffers_1_num'];
				$sub2settings['ty_designoffers_1_time']	  = $_POST['ty_designoffers_1_time'];
				$sub2settings['ty_designoffers_1_name']	  = $_POST['ty_designoffers_1_name'];
				$sub2settings['ty_designoffers_1_price']	  = $_POST['ty_designoffers_1_price'];
				$sub2settings['ty_designoffers_1_note']	  = $_POST['ty_designoffers_1_note'];
				$sub2settings['ty_designoffers_1_order']	  = $_POST['ty_designoffers_1_order'];
				$sub2settings['ty_designoffers_1_orderlink']	  = $_POST['ty_designoffers_1_orderlink'];
				$sub2settings['ty_designoffers_2_num']	  = $_POST['ty_designoffers_2_num'];
				$sub2settings['ty_designoffers_2_time']	  = $_POST['ty_designoffers_2_time'];
				$sub2settings['ty_designoffers_2_name']	  = $_POST['ty_designoffers_2_name'];
				$sub2settings['ty_designoffers_2_price']	  = $_POST['ty_designoffers_2_price'];
				$sub2settings['ty_designoffers_2_note']	  = $_POST['ty_designoffers_2_note'];
				$sub2settings['ty_designoffers_2_order']	  = $_POST['ty_designoffers_2_order'];
				$sub2settings['ty_designoffers_2_orderlink']	  = $_POST['ty_designoffers_2_orderlink'];
				$sub2settings['ty_designoffers_3_num']	  = $_POST['ty_designoffers_3_num'];
				$sub2settings['ty_designoffers_3_time']	  = $_POST['ty_designoffers_3_time'];
				$sub2settings['ty_designoffers_3_name']	  = $_POST['ty_designoffers_3_name'];
				$sub2settings['ty_designoffers_3_price']	  = $_POST['ty_designoffers_3_price'];
				$sub2settings['ty_designoffers_3_note']	  = $_POST['ty_designoffers_3_note'];
				$sub2settings['ty_designoffers_3_order']	  = $_POST['ty_designoffers_3_order'];
				$sub2settings['ty_designoffers_3_orderlink']	  = $_POST['ty_designoffers_3_orderlink'];
				$sub2settings['ty_designoffers_4_num']	  = $_POST['ty_designoffers_4_num'];
				$sub2settings['ty_designoffers_4_time']	  = $_POST['ty_designoffers_4_time'];
				$sub2settings['ty_designoffers_4_name']	  = $_POST['ty_designoffers_4_name'];
				$sub2settings['ty_designoffers_4_price']	  = $_POST['ty_designoffers_4_price'];
				$sub2settings['ty_designoffers_4_note']	  = $_POST['ty_designoffers_4_note'];
				$sub2settings['ty_designoffers_4_order']	  = $_POST['ty_designoffers_4_order'];
				$sub2settings['ty_designoffers_4_orderlink']	  = $_POST['ty_designoffers_4_orderlink'];
				$sub2settings['ty_designoffers_5_num']	  = $_POST['ty_designoffers_5_num'];
				$sub2settings['ty_designoffers_5_time']	  = $_POST['ty_designoffers_5_time'];
				$sub2settings['ty_designoffers_5_name']	  = $_POST['ty_designoffers_5_name'];
				$sub2settings['ty_designoffers_5_price']	  = $_POST['ty_designoffers_5_price'];
				$sub2settings['ty_designoffers_5_note']	  = $_POST['ty_designoffers_5_note'];
				$sub2settings['ty_designoffers_5_order']	  = $_POST['ty_designoffers_5_order'];
				$sub2settings['ty_designoffers_5_orderlink']	  = $_POST['ty_designoffers_5_orderlink'];
				$sub2settings['ty_designoffers_6_num']	  = $_POST['ty_designoffers_6_num'];
				$sub2settings['ty_designoffers_6_time']	  = $_POST['ty_designoffers_6_time'];
				$sub2settings['ty_designoffers_6_name']	  = $_POST['ty_designoffers_6_name'];
				$sub2settings['ty_designoffers_6_price']	  = $_POST['ty_designoffers_6_price'];
				$sub2settings['ty_designoffers_6_note']	  = $_POST['ty_designoffers_6_note'];
				$sub2settings['ty_designoffers_6_order']	  = $_POST['ty_designoffers_6_order'];
				$sub2settings['ty_designoffers_6_orderlink']	  = $_POST['ty_designoffers_6_orderlink'];
				$sub2settings['ty_designoffers_7_num']	  = $_POST['ty_designoffers_7_num'];
				$sub2settings['ty_designoffers_7_time']	  = $_POST['ty_designoffers_7_time'];
				$sub2settings['ty_designoffers_7_name']	  = $_POST['ty_designoffers_7_name'];
				$sub2settings['ty_designoffers_7_price']	  = $_POST['ty_designoffers_7_price'];
				$sub2settings['ty_designoffers_7_note']	  = $_POST['ty_designoffers_7_note'];
				$sub2settings['ty_designoffers_7_order']	  = $_POST['ty_designoffers_7_order'];
				$sub2settings['ty_designoffers_7_orderlink']	  = $_POST['ty_designoffers_7_orderlink'];
				$sub2settings['ty_designoffers_8_num']	  = $_POST['ty_designoffers_8_num'];
				$sub2settings['ty_designoffers_8_time']	  = $_POST['ty_designoffers_8_time'];
				$sub2settings['ty_designoffers_8_name']	  = $_POST['ty_designoffers_8_name'];
				$sub2settings['ty_designoffers_8_price']	  = $_POST['ty_designoffers_8_price'];
				$sub2settings['ty_designoffers_8_note']	  = $_POST['ty_designoffers_8_note'];
				$sub2settings['ty_designoffers_8_order']	  = $_POST['ty_designoffers_8_order'];
				$sub2settings['ty_designoffers_8_orderlink']	  = $_POST['ty_designoffers_8_orderlink'];
				$sub2settings['ty_designoffers_9_num']	  = $_POST['ty_designoffers_9_num'];
				$sub2settings['ty_designoffers_9_time']	  = $_POST['ty_designoffers_9_time'];
				$sub2settings['ty_designoffers_9_name']	  = $_POST['ty_designoffers_9_name'];
				$sub2settings['ty_designoffers_9_price']	  = $_POST['ty_designoffers_9_price'];
				$sub2settings['ty_designoffers_9_note']	  = $_POST['ty_designoffers_9_note'];
				$sub2settings['ty_designoffers_9_order']	  = $_POST['ty_designoffers_9_order'];
				$sub2settings['ty_designoffers_9_orderlink']	  = $_POST['ty_designoffers_9_orderlink'];
				$sub2settings['ty_designoffers_10_num']	  = $_POST['ty_designoffers_10_num'];
				$sub2settings['ty_designoffers_10_time']	  = $_POST['ty_designoffers_10_time'];
				$sub2settings['ty_designoffers_10_name']	  = $_POST['ty_designoffers_10_name'];
				$sub2settings['ty_designoffers_10_price']	  = $_POST['ty_designoffers_10_price'];
				$sub2settings['ty_designoffers_10_note']	  = $_POST['ty_designoffers_10_note'];
				$sub2settings['ty_designoffers_10_order']	  = $_POST['ty_designoffers_10_order'];
				$sub2settings['ty_designoffers_10_orderlink']	  = $_POST['ty_designoffers_10_orderlink'];
			break;
			case 'tyop-supportoffers' :
				$sub2settings['ty_supportoffers_1_chk']	  = $_POST['ty_supportoffers_1_chk'];
				$sub2settings['ty_supportoffers_2_chk']	  = $_POST['ty_supportoffers_2_chk'];
				$sub2settings['ty_supportoffers_3_chk']	  = $_POST['ty_supportoffers_3_chk'];
				$sub2settings['ty_supportoffers_4_chk']	  = $_POST['ty_supportoffers_4_chk'];
				$sub2settings['ty_supportoffers_5_chk']	  = $_POST['ty_supportoffers_5_chk'];
				$sub2settings['ty_supportoffers_6_chk']	  = $_POST['ty_supportoffers_6_chk'];
				$sub2settings['ty_supportoffers_7_chk']	  = $_POST['ty_supportoffers_7_chk'];
				$sub2settings['ty_supportoffers_8_chk']	  = $_POST['ty_supportoffers_8_chk'];
				$sub2settings['ty_supportoffers_9_chk']	  = $_POST['ty_supportoffers_9_chk'];
				$sub2settings['ty_supportoffers_10_chk']	  = $_POST['ty_supportoffers_10_chk'];
				$sub2settings['ty_supportoffers_toptxt']	  = $_POST['ty_supportoffers_toptxt'];
				$sub2settings['ty_supportoffers_botttxt']	  = $_POST['ty_supportoffers_botttxt'];
				$sub2settings['ty_supportoffers_1_num']	  = $_POST['ty_supportoffers_1_num'];
				$sub2settings['ty_supportoffers_1_time']	  = $_POST['ty_supportoffers_1_time'];
				$sub2settings['ty_supportoffers_1_name']	  = $_POST['ty_supportoffers_1_name'];
				$sub2settings['ty_supportoffers_1_price']	  = $_POST['ty_supportoffers_1_price'];
				$sub2settings['ty_supportoffers_1_note']	  = $_POST['ty_supportoffers_1_note'];
				$sub2settings['ty_supportoffers_1_order']	  = $_POST['ty_supportoffers_1_order'];
				$sub2settings['ty_supportoffers_1_orderlink']	  = $_POST['ty_supportoffers_1_orderlink'];
				$sub2settings['ty_supportoffers_2_num']	  = $_POST['ty_supportoffers_2_num'];
				$sub2settings['ty_supportoffers_2_time']	  = $_POST['ty_supportoffers_2_time'];
				$sub2settings['ty_supportoffers_2_name']	  = $_POST['ty_supportoffers_2_name'];
				$sub2settings['ty_supportoffers_2_price']	  = $_POST['ty_supportoffers_2_price'];
				$sub2settings['ty_supportoffers_2_note']	  = $_POST['ty_supportoffers_2_note'];
				$sub2settings['ty_supportoffers_2_order']	  = $_POST['ty_supportoffers_2_order'];
				$sub2settings['ty_supportoffers_2_orderlink']	  = $_POST['ty_supportoffers_2_orderlink'];
				$sub2settings['ty_supportoffers_3_num']	  = $_POST['ty_supportoffers_3_num'];
				$sub2settings['ty_supportoffers_3_time']	  = $_POST['ty_supportoffers_3_time'];
				$sub2settings['ty_supportoffers_3_name']	  = $_POST['ty_supportoffers_3_name'];
				$sub2settings['ty_supportoffers_3_price']	  = $_POST['ty_supportoffers_3_price'];
				$sub2settings['ty_supportoffers_3_note']	  = $_POST['ty_supportoffers_3_note'];
				$sub2settings['ty_supportoffers_3_order']	  = $_POST['ty_supportoffers_3_order'];
				$sub2settings['ty_supportoffers_3_orderlink']	  = $_POST['ty_supportoffers_3_orderlink'];
				$sub2settings['ty_supportoffers_4_num']	  = $_POST['ty_supportoffers_4_num'];
				$sub2settings['ty_supportoffers_4_time']	  = $_POST['ty_supportoffers_4_time'];
				$sub2settings['ty_supportoffers_4_name']	  = $_POST['ty_supportoffers_4_name'];
				$sub2settings['ty_supportoffers_4_price']	  = $_POST['ty_supportoffers_4_price'];
				$sub2settings['ty_supportoffers_4_note']	  = $_POST['ty_supportoffers_4_note'];
				$sub2settings['ty_supportoffers_4_order']	  = $_POST['ty_supportoffers_4_order'];
				$sub2settings['ty_supportoffers_4_orderlink']	  = $_POST['ty_supportoffers_4_orderlink'];
				$sub2settings['ty_supportoffers_5_num']	  = $_POST['ty_supportoffers_5_num'];
				$sub2settings['ty_supportoffers_5_time']	  = $_POST['ty_supportoffers_5_time'];
				$sub2settings['ty_supportoffers_5_name']	  = $_POST['ty_supportoffers_5_name'];
				$sub2settings['ty_supportoffers_5_price']	  = $_POST['ty_supportoffers_5_price'];
				$sub2settings['ty_supportoffers_5_note']	  = $_POST['ty_supportoffers_5_note'];
				$sub2settings['ty_supportoffers_5_order']	  = $_POST['ty_supportoffers_5_order'];
				$sub2settings['ty_supportoffers_5_orderlink']	  = $_POST['ty_supportoffers_5_orderlink'];
				$sub2settings['ty_supportoffers_6_num']	  = $_POST['ty_supportoffers_6_num'];
				$sub2settings['ty_supportoffers_6_time']	  = $_POST['ty_supportoffers_6_time'];
				$sub2settings['ty_supportoffers_6_name']	  = $_POST['ty_supportoffers_6_name'];
				$sub2settings['ty_supportoffers_6_price']	  = $_POST['ty_supportoffers_6_price'];
				$sub2settings['ty_supportoffers_6_note']	  = $_POST['ty_supportoffers_6_note'];
				$sub2settings['ty_supportoffers_6_order']	  = $_POST['ty_supportoffers_6_order'];
				$sub2settings['ty_supportoffers_6_orderlink']	  = $_POST['ty_supportoffers_6_orderlink'];
				$sub2settings['ty_supportoffers_7_num']	  = $_POST['ty_supportoffers_7_num'];
				$sub2settings['ty_supportoffers_7_time']	  = $_POST['ty_supportoffers_7_time'];
				$sub2settings['ty_supportoffers_7_name']	  = $_POST['ty_supportoffers_7_name'];
				$sub2settings['ty_supportoffers_7_price']	  = $_POST['ty_supportoffers_7_price'];
				$sub2settings['ty_supportoffers_7_note']	  = $_POST['ty_supportoffers_7_note'];
				$sub2settings['ty_supportoffers_7_order']	  = $_POST['ty_supportoffers_7_order'];
				$sub2settings['ty_supportoffers_7_orderlink']	  = $_POST['ty_supportoffers_7_orderlink'];
				$sub2settings['ty_supportoffers_8_num']	  = $_POST['ty_supportoffers_8_num'];
				$sub2settings['ty_supportoffers_8_time']	  = $_POST['ty_supportoffers_8_time'];
				$sub2settings['ty_supportoffers_8_name']	  = $_POST['ty_supportoffers_8_name'];
				$sub2settings['ty_supportoffers_8_price']	  = $_POST['ty_supportoffers_8_price'];
				$sub2settings['ty_supportoffers_8_note']	  = $_POST['ty_supportoffers_8_note'];
				$sub2settings['ty_supportoffers_8_order']	  = $_POST['ty_supportoffers_8_order'];
				$sub2settings['ty_supportoffers_8_orderlink']	  = $_POST['ty_supportoffers_8_orderlink'];
				$sub2settings['ty_supportoffers_9_num']	  = $_POST['ty_supportoffers_9_num'];
				$sub2settings['ty_supportoffers_9_time']	  = $_POST['ty_supportoffers_9_time'];
				$sub2settings['ty_supportoffers_9_name']	  = $_POST['ty_supportoffers_9_name'];
				$sub2settings['ty_supportoffers_9_price']	  = $_POST['ty_supportoffers_9_price'];
				$sub2settings['ty_supportoffers_9_note']	  = $_POST['ty_supportoffers_9_note'];
				$sub2settings['ty_supportoffers_9_order']	  = $_POST['ty_supportoffers_9_order'];
				$sub2settings['ty_supportoffers_9_orderlink']	  = $_POST['ty_supportoffers_9_orderlink'];
				$sub2settings['ty_supportoffers_10_num']	  = $_POST['ty_supportoffers_10_num'];
				$sub2settings['ty_supportoffers_10_time']	  = $_POST['ty_supportoffers_10_time'];
				$sub2settings['ty_supportoffers_10_name']	  = $_POST['ty_supportoffers_10_name'];
				$sub2settings['ty_supportoffers_10_price']	  = $_POST['ty_supportoffers_10_price'];
				$sub2settings['ty_supportoffers_10_note']	  = $_POST['ty_supportoffers_10_note'];
				$sub2settings['ty_supportoffers_10_order']	  = $_POST['ty_supportoffers_10_order'];
				$sub2settings['ty_supportoffers_10_orderlink']	  = $_POST['ty_supportoffers_10_orderlink'];
			break;
	    }
	}

	$updated = update_option( "ty_theme_sub2settings", $sub2settings );
}

function ty_sub2admin_tabs( $current = 'tyop-aboutus' ) {
    $tabs = array( 'tyop-aboutus' => 'درباره ما','tyop-question' => 'سوالات متداول', 'tyop-banks' => 'حساب های بانکی', 'tyop-terms' => 'قوانین', 'tyop-hostingoffers' => 'پلن های میزبانی', 'tyop-resellersoffers' => 'پلن های نمایندگی', 'tyop-serversoffers' => 'پلن های سرور', 'tyop-designoffers' => 'پلن های طراحی', 'tyop-supportoffers' => 'پلن های پشتیبانی فنی' ); 
    $links = array();
    echo '<div id="icon-themes" class="icon32"><br></div>';
    echo '<h2 class="nav-tab-wrapper">';
    foreach( $tabs as $tab => $name ){
        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
        echo "<a class='nav-tab$class' href='?page=typlue-theme-sub2settings&tab=$tab'>$name</a>";
        
    }
    echo '</h2>';
}

function ty_sub2settings_page() {
	global $pagenow;
	$sub2settings = get_option( "ty_theme_sub2settings" );
	$theme_data = get_theme_data( TEMPLATEPATH . '/style.css' );
	
	tytinymce();
	
	echo '<div class="wrap"> <h2>تنظیمات صفحات فرعی</h2>';
		
			if (esc_attr(isset( $_GET['updated'] ) == 'true' )) echo '<div class="updated" ><p>تنظیمات ذخیره شد</p></div>';
			
			if ( isset ( $_GET['tab'] ) ) ty_sub2admin_tabs($_GET['tab']); else ty_sub2admin_tabs('tyop-aboutus');
		
		echo '<div id="poststuff">';
		
		$url_sub2settings_tab = isset($_GET['tab'])? '&tab='.$_GET['tab'] : null;
		echo '<form method="post" action="' . get_admin_url( null, "admin.php?page=typlue-theme-sub2settings" ) . $url_sub2settings_tab . '">';
		
				wp_nonce_field( "ty-sub2settings-page" ); 
				
				if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub2settings' ){ 
				
					if ( isset ( $_GET['tab'] ) ) $tab = $_GET['tab']; 
					else $tab = 'tyop-aboutus'; 
					
					echo '<table class="form-table">';
					switch ( $tab ){
						case 'tyop-aboutus' : 
							echo '
							<tr>
								<th><label>متن خود را وارد کنید : </label></th>
								<td>
									<textarea name="ty_aboutus_text" id="ty_aboutus_text" cols="100" rows="10" >' . ( stripslashes( $sub2settings["ty_aboutus_text"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-question' : 
							echo '
							<tr>
								<th><label>متن خود را وارد کنید : </label></th>
								<td>
									<textarea name="ty_question_text" id="ty_question_text" cols="100" rows="10" >' . ( stripslashes( $sub2settings["ty_question_text"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-banks' : 
							echo '
							<tr>
								<th><label>متنی برای نمایش در بالای صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_banks_toptxt" id="ty_banks_toptxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_banks_toptxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>متنی برای نمایش در پائین صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_banks_botttxt" id="ty_banks_botttxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_banks_botttxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_1_pic" id="ty_banks_1_pic" value="' . ( stripslashes( $sub2settings["ty_banks_1_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_1_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_1_name" id="ty_banks_1_name" value="' . ( stripslashes( $sub2settings["ty_banks_1_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_1_number" id="ty_banks_1_number" value="' . ( stripslashes( $sub2settings["ty_banks_1_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_1_chk" id="ty_banks_1_chk" value="inline-table" ' . (( $sub2settings["ty_banks_1_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_2_pic" id="ty_banks_2_pic" value="' . ( stripslashes( $sub2settings["ty_banks_2_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_2_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_2_name" id="ty_banks_2_name" value="' . ( stripslashes( $sub2settings["ty_banks_2_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_2_number" id="ty_banks_2_number" value="' . ( stripslashes( $sub2settings["ty_banks_2_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_2_chk" id="ty_banks_2_chk" value="inline-table" ' . (( $sub2settings["ty_banks_2_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_3_pic" id="ty_banks_3_pic" value="' . ( stripslashes( $sub2settings["ty_banks_3_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_3_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_3_name" id="ty_banks_3_name" value="' . ( stripslashes( $sub2settings["ty_banks_3_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_3_number" id="ty_banks_3_number" value="' . ( stripslashes( $sub2settings["ty_banks_3_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_3_chk" id="ty_banks_3_chk" value="inline-table" ' . (( $sub2settings["ty_banks_3_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_4_pic" id="ty_banks_4_pic" value="' . ( stripslashes( $sub2settings["ty_banks_4_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_4_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_4_name" id="ty_banks_4_name" value="' . ( stripslashes( $sub2settings["ty_banks_4_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_4_number" id="ty_banks_4_number" value="' . ( stripslashes( $sub2settings["ty_banks_4_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_4_chk" id="ty_banks_4_chk" value="inline-table" ' . (( $sub2settings["ty_banks_4_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_5_pic" id="ty_banks_5_pic" value="' . ( stripslashes( $sub2settings["ty_banks_5_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_5_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_5_name" id="ty_banks_5_name" value="' . ( stripslashes( $sub2settings["ty_banks_5_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_5_number" id="ty_banks_5_number" value="' . ( stripslashes( $sub2settings["ty_banks_5_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_5_chk" id="ty_banks_5_chk" value="inline-table" ' . (( $sub2settings["ty_banks_5_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_6_pic" id="ty_banks_6_pic" value="' . ( stripslashes( $sub2settings["ty_banks_6_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_6_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_6_name" id="ty_banks_6_name" value="' . ( stripslashes( $sub2settings["ty_banks_6_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_6_number" id="ty_banks_6_number" value="' . ( stripslashes( $sub2settings["ty_banks_6_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_6_chk" id="ty_banks_6_chk" value="inline-table" ' . (( $sub2settings["ty_banks_6_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_7_pic" id="ty_banks_7_pic" value="' . ( stripslashes( $sub2settings["ty_banks_7_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_7_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_7_name" id="ty_banks_7_name" value="' . ( stripslashes( $sub2settings["ty_banks_7_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_7_number" id="ty_banks_7_number" value="' . ( stripslashes( $sub2settings["ty_banks_7_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_7_chk" id="ty_banks_7_chk" value="inline-table" ' . (( $sub2settings["ty_banks_7_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_8_pic" id="ty_banks_8_pic" value="' . ( stripslashes( $sub2settings["ty_banks_8_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_8_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_8_name" id="ty_banks_8_name" value="' . ( stripslashes( $sub2settings["ty_banks_8_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_8_number" id="ty_banks_8_number" value="' . ( stripslashes( $sub2settings["ty_banks_8_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_8_chk" id="ty_banks_8_chk" value="inline-table" ' . (( $sub2settings["ty_banks_8_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_9_pic" id="ty_banks_9_pic" value="' . ( stripslashes( $sub2settings["ty_banks_9_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_9_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_9_name" id="ty_banks_9_name" value="' . ( stripslashes( $sub2settings["ty_banks_9_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_9_number" id="ty_banks_9_number" value="' . ( stripslashes( $sub2settings["ty_banks_9_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_9_chk" id="ty_banks_9_chk" value="inline-table" ' . (( $sub2settings["ty_banks_9_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_10_pic" id="ty_banks_10_pic" value="' . ( stripslashes( $sub2settings["ty_banks_10_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_10_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_10_name" id="ty_banks_10_name" value="' . ( stripslashes( $sub2settings["ty_banks_10_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_10_number" id="ty_banks_10_number" value="' . ( stripslashes( $sub2settings["ty_banks_10_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_10_chk" id="ty_banks_10_chk" value="inline-table" ' . (( $sub2settings["ty_banks_10_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_11_pic" id="ty_banks_11_pic" value="' . ( stripslashes( $sub2settings["ty_banks_11_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_11_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_11_name" id="ty_banks_11_name" value="' . ( stripslashes( $sub2settings["ty_banks_11_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_11_number" id="ty_banks_11_number" value="' . ( stripslashes( $sub2settings["ty_banks_11_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_11_chk" id="ty_banks_11_chk" value="inline-table" ' . (( $sub2settings["ty_banks_11_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_12_pic" id="ty_banks_12_pic" value="' . ( stripslashes( $sub2settings["ty_banks_12_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_12_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_12_name" id="ty_banks_12_name" value="' . ( stripslashes( $sub2settings["ty_banks_12_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_12_number" id="ty_banks_12_number" value="' . ( stripslashes( $sub2settings["ty_banks_12_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_12_chk" id="ty_banks_12_chk" value="inline-table" ' . (( $sub2settings["ty_banks_12_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_13_pic" id="ty_banks_13_pic" value="' . ( stripslashes( $sub2settings["ty_banks_13_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_13_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_13_name" id="ty_banks_13_name" value="' . ( stripslashes( $sub2settings["ty_banks_13_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_13_number" id="ty_banks_13_number" value="' . ( stripslashes( $sub2settings["ty_banks_13_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_13_chk" id="ty_banks_13_chk" value="inline-table" ' . (( $sub2settings["ty_banks_13_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_14_pic" id="ty_banks_14_pic" value="' . ( stripslashes( $sub2settings["ty_banks_14_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_14_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_14_name" id="ty_banks_14_name" value="' . ( stripslashes( $sub2settings["ty_banks_14_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_14_number" id="ty_banks_14_number" value="' . ( stripslashes( $sub2settings["ty_banks_14_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_14_chk" id="ty_banks_14_chk" value="inline-table" ' . (( $sub2settings["ty_banks_14_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_15_pic" id="ty_banks_15_pic" value="' . ( stripslashes( $sub2settings["ty_banks_15_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_15_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_15_name" id="ty_banks_15_name" value="' . ( stripslashes( $sub2settings["ty_banks_15_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_15_number" id="ty_banks_15_number" value="' . ( stripslashes( $sub2settings["ty_banks_15_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_15_chk" id="ty_banks_15_chk" value="inline-table" ' . (( $sub2settings["ty_banks_15_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_16_pic" id="ty_banks_16_pic" value="' . ( stripslashes( $sub2settings["ty_banks_16_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_16_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_16_name" id="ty_banks_16_name" value="' . ( stripslashes( $sub2settings["ty_banks_16_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_16_number" id="ty_banks_16_number" value="' . ( stripslashes( $sub2settings["ty_banks_16_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_16_chk" id="ty_banks_16_chk" value="inline-table" ' . (( $sub2settings["ty_banks_16_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_17_pic" id="ty_banks_17_pic" value="' . ( stripslashes( $sub2settings["ty_banks_17_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_17_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_17_name" id="ty_banks_17_name" value="' . ( stripslashes( $sub2settings["ty_banks_17_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_17_number" id="ty_banks_17_number" value="' . ( stripslashes( $sub2settings["ty_banks_17_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_17_chk" id="ty_banks_17_chk" value="inline-table" ' . (( $sub2settings["ty_banks_17_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر بانک : </label></th>
								<td>
									<input type="text" name="ty_banks_18_pic" id="ty_banks_18_pic" value="' . ( stripslashes( $sub2settings["ty_banks_18_pic"] ) ) . '" />
									<img style="max-width: 50px;max-height: 25px;margin-bottom: -7px;" src="' . ( stripslashes( $sub2settings["ty_banks_18_pic"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام صاحب حساب : </label></th>
								<td>
									<input type="text" name="ty_banks_18_name" id="ty_banks_18_name" value="' . ( stripslashes( $sub2settings["ty_banks_18_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>شماره حساب/کارت : </label></th>
								<td>
									<input type="text" name="ty_banks_18_number" id="ty_banks_18_number" value="' . ( stripslashes( $sub2settings["ty_banks_18_number"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_banks_18_chk" id="ty_banks_18_chk" value="inline-table" ' . (( $sub2settings["ty_banks_18_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این حساب</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-terms' : 
							echo '
							<tr>
								<th><label>متن خود را وارد کنید : </label></th>
								<td>
									<textarea name="ty_terms_text" id="ty_terms_text" cols="100" rows="10" >' . ( stripslashes( $sub2settings["ty_terms_text"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-hostingoffers' : 
							echo '
							<tr>
								<th><label>متنی برای نمایش در بالای صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_hostingoffers_toptxt" id="ty_hostingoffers_toptxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_hostingoffers_toptxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>متنی برای نمایش در پائین صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_hostingoffers_botttxt" id="ty_hostingoffers_botttxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_hostingoffers_botttxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن اول</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_price" id="ty_hostingoffers_a_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_curr" id="ty_hostingoffers_a_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_adrs" id="ty_hostingoffers_a_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_desc" id="ty_hostingoffers_a_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_list1" id="ty_hostingoffers_a_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_list2" id="ty_hostingoffers_a_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_list3" id="ty_hostingoffers_a_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_list4" id="ty_hostingoffers_a_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_list5" id="ty_hostingoffers_a_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_order" id="ty_hostingoffers_a_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_a_orderlink" id="ty_hostingoffers_a_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_a_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_a_chk" id="ty_hostingoffers_a_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_a_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن دوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_price" id="ty_hostingoffers_b_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_curr" id="ty_hostingoffers_b_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_adrs" id="ty_hostingoffers_b_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_desc" id="ty_hostingoffers_b_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_list1" id="ty_hostingoffers_b_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_list2" id="ty_hostingoffers_b_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_list3" id="ty_hostingoffers_b_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_list4" id="ty_hostingoffers_b_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_list5" id="ty_hostingoffers_b_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_order" id="ty_hostingoffers_b_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_b_orderlink" id="ty_hostingoffers_b_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_b_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_b_chk" id="ty_hostingoffers_b_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_b_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن سوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_price" id="ty_hostingoffers_c_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_curr" id="ty_hostingoffers_c_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_adrs" id="ty_hostingoffers_c_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_desc" id="ty_hostingoffers_c_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_list1" id="ty_hostingoffers_c_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_list2" id="ty_hostingoffers_c_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_list3" id="ty_hostingoffers_c_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_list4" id="ty_hostingoffers_c_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_list5" id="ty_hostingoffers_c_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_order" id="ty_hostingoffers_c_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_c_orderlink" id="ty_hostingoffers_c_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_c_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_c_chk" id="ty_hostingoffers_c_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_c_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن چهارم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_price" id="ty_hostingoffers_d_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_curr" id="ty_hostingoffers_d_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_adrs" id="ty_hostingoffers_d_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_desc" id="ty_hostingoffers_d_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_list1" id="ty_hostingoffers_d_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_list2" id="ty_hostingoffers_d_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_list3" id="ty_hostingoffers_d_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_list4" id="ty_hostingoffers_d_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_list5" id="ty_hostingoffers_d_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_order" id="ty_hostingoffers_d_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_d_orderlink" id="ty_hostingoffers_d_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_d_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_d_chk" id="ty_hostingoffers_d_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_d_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن پنجم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_price" id="ty_hostingoffers_e_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_curr" id="ty_hostingoffers_e_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_adrs" id="ty_hostingoffers_e_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_desc" id="ty_hostingoffers_e_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_list1" id="ty_hostingoffers_e_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_list2" id="ty_hostingoffers_e_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_list3" id="ty_hostingoffers_e_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_list4" id="ty_hostingoffers_e_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_list5" id="ty_hostingoffers_e_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_order" id="ty_hostingoffers_e_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_e_orderlink" id="ty_hostingoffers_e_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_e_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_e_chk" id="ty_hostingoffers_e_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_e_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن ششم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_price" id="ty_hostingoffers_f_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_curr" id="ty_hostingoffers_f_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_adrs" id="ty_hostingoffers_f_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_desc" id="ty_hostingoffers_f_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_list1" id="ty_hostingoffers_f_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_list2" id="ty_hostingoffers_f_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_list3" id="ty_hostingoffers_f_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_list4" id="ty_hostingoffers_f_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_list5" id="ty_hostingoffers_f_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_order" id="ty_hostingoffers_f_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_f_orderlink" id="ty_hostingoffers_f_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_f_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_f_chk" id="ty_hostingoffers_f_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_f_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن هفتم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_price" id="ty_hostingoffers_g_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_curr" id="ty_hostingoffers_g_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_adrs" id="ty_hostingoffers_g_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_desc" id="ty_hostingoffers_g_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_list1" id="ty_hostingoffers_g_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_list2" id="ty_hostingoffers_g_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_list3" id="ty_hostingoffers_g_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_list4" id="ty_hostingoffers_g_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_list5" id="ty_hostingoffers_g_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_order" id="ty_hostingoffers_g_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_g_orderlink" id="ty_hostingoffers_g_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_g_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_g_chk" id="ty_hostingoffers_g_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_g_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن هشتم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_price" id="ty_hostingoffers_h_price" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_curr" id="ty_hostingoffers_h_curr" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_adrs" id="ty_hostingoffers_h_adrs" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_desc" id="ty_hostingoffers_h_desc" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_list1" id="ty_hostingoffers_h_list1" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_list2" id="ty_hostingoffers_h_list2" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_list3" id="ty_hostingoffers_h_list3" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_list4" id="ty_hostingoffers_h_list4" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_list5" id="ty_hostingoffers_h_list5" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_order" id="ty_hostingoffers_h_order" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_hostingoffers_h_orderlink" id="ty_hostingoffers_h_orderlink" value="' .  ( stripslashes( $sub2settings["ty_hostingoffers_h_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_hostingoffers_h_chk" id="ty_hostingoffers_h_chk" value="inline-table" ' . (( $sub2settings["ty_hostingoffers_h_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-resellersoffers' : 
							echo '
							<tr>
								<th><label>متنی برای نمایش در بالای صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_resellersoffers_toptxt" id="ty_resellersoffers_toptxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_resellersoffers_toptxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>متنی برای نمایش در پائین صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_resellersoffers_botttxt" id="ty_resellersoffers_botttxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_resellersoffers_botttxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن اول</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_price" id="ty_resellersoffers_a_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_curr" id="ty_resellersoffers_a_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_adrs" id="ty_resellersoffers_a_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_desc" id="ty_resellersoffers_a_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_list1" id="ty_resellersoffers_a_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_list2" id="ty_resellersoffers_a_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_list3" id="ty_resellersoffers_a_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_list4" id="ty_resellersoffers_a_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_list5" id="ty_resellersoffers_a_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_order" id="ty_resellersoffers_a_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_a_orderlink" id="ty_resellersoffers_a_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_a_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_a_chk" id="ty_resellersoffers_a_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_a_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن دوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_price" id="ty_resellersoffers_b_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_curr" id="ty_resellersoffers_b_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_adrs" id="ty_resellersoffers_b_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_desc" id="ty_resellersoffers_b_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_list1" id="ty_resellersoffers_b_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_list2" id="ty_resellersoffers_b_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_list3" id="ty_resellersoffers_b_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_list4" id="ty_resellersoffers_b_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_list5" id="ty_resellersoffers_b_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_order" id="ty_resellersoffers_b_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_b_orderlink" id="ty_resellersoffers_b_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_b_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_b_chk" id="ty_resellersoffers_b_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_b_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن سوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_price" id="ty_resellersoffers_c_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_curr" id="ty_resellersoffers_c_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_adrs" id="ty_resellersoffers_c_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_desc" id="ty_resellersoffers_c_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_list1" id="ty_resellersoffers_c_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_list2" id="ty_resellersoffers_c_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_list3" id="ty_resellersoffers_c_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_list4" id="ty_resellersoffers_c_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_list5" id="ty_resellersoffers_c_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_order" id="ty_resellersoffers_c_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_c_orderlink" id="ty_resellersoffers_c_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_c_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_c_chk" id="ty_resellersoffers_c_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_c_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن چهارم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_price" id="ty_resellersoffers_d_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_curr" id="ty_resellersoffers_d_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_adrs" id="ty_resellersoffers_d_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_desc" id="ty_resellersoffers_d_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_list1" id="ty_resellersoffers_d_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_list2" id="ty_resellersoffers_d_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_list3" id="ty_resellersoffers_d_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_list4" id="ty_resellersoffers_d_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_list5" id="ty_resellersoffers_d_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_order" id="ty_resellersoffers_d_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_d_orderlink" id="ty_resellersoffers_d_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_d_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_d_chk" id="ty_resellersoffers_d_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_d_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن پنجم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_price" id="ty_resellersoffers_e_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_curr" id="ty_resellersoffers_e_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_adrs" id="ty_resellersoffers_e_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_desc" id="ty_resellersoffers_e_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_list1" id="ty_resellersoffers_e_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_list2" id="ty_resellersoffers_e_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_list3" id="ty_resellersoffers_e_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_list4" id="ty_resellersoffers_e_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_list5" id="ty_resellersoffers_e_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_order" id="ty_resellersoffers_e_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_e_orderlink" id="ty_resellersoffers_e_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_e_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_e_chk" id="ty_resellersoffers_e_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_e_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن ششم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_price" id="ty_resellersoffers_f_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_curr" id="ty_resellersoffers_f_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_adrs" id="ty_resellersoffers_f_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_desc" id="ty_resellersoffers_f_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_list1" id="ty_resellersoffers_f_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_list2" id="ty_resellersoffers_f_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_list3" id="ty_resellersoffers_f_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_list4" id="ty_resellersoffers_f_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_list5" id="ty_resellersoffers_f_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_order" id="ty_resellersoffers_f_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_f_orderlink" id="ty_resellersoffers_f_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_f_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_f_chk" id="ty_resellersoffers_f_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_f_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن هفتم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_price" id="ty_resellersoffers_g_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_curr" id="ty_resellersoffers_g_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_adrs" id="ty_resellersoffers_g_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_desc" id="ty_resellersoffers_g_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_list1" id="ty_resellersoffers_g_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_list2" id="ty_resellersoffers_g_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_list3" id="ty_resellersoffers_g_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_list4" id="ty_resellersoffers_g_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_list5" id="ty_resellersoffers_g_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_order" id="ty_resellersoffers_g_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_g_orderlink" id="ty_resellersoffers_g_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_g_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_g_chk" id="ty_resellersoffers_g_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_g_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن هشتم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_price" id="ty_resellersoffers_h_price" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_curr" id="ty_resellersoffers_h_curr" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_adrs" id="ty_resellersoffers_h_adrs" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_desc" id="ty_resellersoffers_h_desc" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_list1" id="ty_resellersoffers_h_list1" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_list2" id="ty_resellersoffers_h_list2" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_list3" id="ty_resellersoffers_h_list3" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_list4" id="ty_resellersoffers_h_list4" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_list5" id="ty_resellersoffers_h_list5" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_order" id="ty_resellersoffers_h_order" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_resellersoffers_h_orderlink" id="ty_resellersoffers_h_orderlink" value="' .  ( stripslashes( $sub2settings["ty_resellersoffers_h_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_resellersoffers_h_chk" id="ty_resellersoffers_h_chk" value="inline-table" ' . (( $sub2settings["ty_resellersoffers_h_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-serversoffers' : 
							echo '
							<tr>
								<th><label>متنی برای نمایش در بالای صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_serversoffers_toptxt" id="ty_serversoffers_toptxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_serversoffers_toptxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>متنی برای نمایش در پائین صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_serversoffers_botttxt" id="ty_serversoffers_botttxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_serversoffers_botttxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن اول</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_price" id="ty_serversoffers_a_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_curr" id="ty_serversoffers_a_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_adrs" id="ty_serversoffers_a_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_desc" id="ty_serversoffers_a_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_list1" id="ty_serversoffers_a_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_list2" id="ty_serversoffers_a_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_list3" id="ty_serversoffers_a_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_list4" id="ty_serversoffers_a_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_list5" id="ty_serversoffers_a_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_order" id="ty_serversoffers_a_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_a_orderlink" id="ty_serversoffers_a_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_a_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_a_chk" id="ty_serversoffers_a_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_a_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن دوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_price" id="ty_serversoffers_b_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_curr" id="ty_serversoffers_b_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_adrs" id="ty_serversoffers_b_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_desc" id="ty_serversoffers_b_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_list1" id="ty_serversoffers_b_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_list2" id="ty_serversoffers_b_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_list3" id="ty_serversoffers_b_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_list4" id="ty_serversoffers_b_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_list5" id="ty_serversoffers_b_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_order" id="ty_serversoffers_b_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_b_orderlink" id="ty_serversoffers_b_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_b_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_b_chk" id="ty_serversoffers_b_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_b_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن سوم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_price" id="ty_serversoffers_c_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_curr" id="ty_serversoffers_c_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_adrs" id="ty_serversoffers_c_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_desc" id="ty_serversoffers_c_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_list1" id="ty_serversoffers_c_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_list2" id="ty_serversoffers_c_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_list3" id="ty_serversoffers_c_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_list4" id="ty_serversoffers_c_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_list5" id="ty_serversoffers_c_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_order" id="ty_serversoffers_c_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_c_orderlink" id="ty_serversoffers_c_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_c_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_c_chk" id="ty_serversoffers_c_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_c_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن چهارم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_price" id="ty_serversoffers_d_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_curr" id="ty_serversoffers_d_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_adrs" id="ty_serversoffers_d_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_desc" id="ty_serversoffers_d_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_list1" id="ty_serversoffers_d_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_list2" id="ty_serversoffers_d_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_list3" id="ty_serversoffers_d_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_list4" id="ty_serversoffers_d_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_list5" id="ty_serversoffers_d_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_order" id="ty_serversoffers_d_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_d_orderlink" id="ty_serversoffers_d_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_d_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_d_chk" id="ty_serversoffers_d_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_d_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن پنجم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_price" id="ty_serversoffers_e_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_curr" id="ty_serversoffers_e_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_adrs" id="ty_serversoffers_e_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_desc" id="ty_serversoffers_e_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_list1" id="ty_serversoffers_e_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_list2" id="ty_serversoffers_e_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_list3" id="ty_serversoffers_e_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_list4" id="ty_serversoffers_e_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_list5" id="ty_serversoffers_e_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_order" id="ty_serversoffers_e_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_e_orderlink" id="ty_serversoffers_e_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_e_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_e_chk" id="ty_serversoffers_e_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_e_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن ششم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_price" id="ty_serversoffers_f_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_curr" id="ty_serversoffers_f_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_adrs" id="ty_serversoffers_f_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_desc" id="ty_serversoffers_f_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_list1" id="ty_serversoffers_f_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_list2" id="ty_serversoffers_f_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_list3" id="ty_serversoffers_f_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_list4" id="ty_serversoffers_f_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_list5" id="ty_serversoffers_f_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_order" id="ty_serversoffers_f_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_f_orderlink" id="ty_serversoffers_f_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_f_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_f_chk" id="ty_serversoffers_f_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_f_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن هفتم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_price" id="ty_serversoffers_g_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_curr" id="ty_serversoffers_g_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_adrs" id="ty_serversoffers_g_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_desc" id="ty_serversoffers_g_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_list1" id="ty_serversoffers_g_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_list2" id="ty_serversoffers_g_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_list3" id="ty_serversoffers_g_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_list4" id="ty_serversoffers_g_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_list5" id="ty_serversoffers_g_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_order" id="ty_serversoffers_g_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_g_orderlink" id="ty_serversoffers_g_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_g_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_g_chk" id="ty_serversoffers_g_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_g_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<td>
									<h2 style="color: #ff0000;">پلن هشتم</h2>
								</td>
							</tr>
							<tr>
								<th><label>قیمت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_price" id="ty_serversoffers_h_price" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_price"] ) ) . '" />
								</td>
								<th><label>واحد پولی و دوره پرداخت : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_curr" id="ty_serversoffers_h_curr" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_curr"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_adrs" id="ty_serversoffers_h_adrs" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_adrs"] ) ) . '" />
								</td>
								<th><label>توضیحات کوتاه پلن </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_desc" id="ty_serversoffers_h_desc" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_desc"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (1) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_list1" id="ty_serversoffers_h_list1" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_list1"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (2) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_list2" id="ty_serversoffers_h_list2" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_list2"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (3) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_list3" id="ty_serversoffers_h_list3" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_list3"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (4) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_list4" id="ty_serversoffers_h_list4" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_list4"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مشخصات پلن (5) : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_list5" id="ty_serversoffers_h_list5" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_list5"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_order" id="ty_serversoffers_h_order" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_serversoffers_h_orderlink" id="ty_serversoffers_h_orderlink" value="' .  ( stripslashes( $sub2settings["ty_serversoffers_h_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_serversoffers_h_chk" id="ty_serversoffers_h_chk" value="inline-table" ' . (( $sub2settings["ty_serversoffers_h_chk"]=="inline-table" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-designoffers' : 
							echo '
							<tr>
								<th><label>متنی برای نمایش در بالای صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_designoffers_toptxt" id="ty_designoffers_toptxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_designoffers_toptxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>متنی برای نمایش در پائین صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_designoffers_botttxt" id="ty_designoffers_botttxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_designoffers_botttxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_num" id="ty_designoffers_1_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_time" id="ty_designoffers_1_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_name" id="ty_designoffers_1_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_price" id="ty_designoffers_1_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_note" id="ty_designoffers_1_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_order" id="ty_designoffers_1_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_1_orderlink" id="ty_designoffers_1_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_1_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_1_chk" id="ty_designoffers_1_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_1_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_num" id="ty_designoffers_2_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_time" id="ty_designoffers_2_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_name" id="ty_designoffers_2_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_price" id="ty_designoffers_2_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_note" id="ty_designoffers_2_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_order" id="ty_designoffers_2_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_2_orderlink" id="ty_designoffers_2_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_2_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_2_chk" id="ty_designoffers_2_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_2_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_num" id="ty_designoffers_3_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_time" id="ty_designoffers_3_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_name" id="ty_designoffers_3_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_price" id="ty_designoffers_3_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_note" id="ty_designoffers_3_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_order" id="ty_designoffers_3_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_3_orderlink" id="ty_designoffers_3_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_3_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_3_chk" id="ty_designoffers_3_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_3_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_num" id="ty_designoffers_4_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_time" id="ty_designoffers_4_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_name" id="ty_designoffers_4_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_price" id="ty_designoffers_4_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_note" id="ty_designoffers_4_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_order" id="ty_designoffers_4_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_4_orderlink" id="ty_designoffers_4_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_4_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_4_chk" id="ty_designoffers_4_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_4_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_num" id="ty_designoffers_5_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_time" id="ty_designoffers_5_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_name" id="ty_designoffers_5_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_price" id="ty_designoffers_5_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_note" id="ty_designoffers_5_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_order" id="ty_designoffers_5_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_5_orderlink" id="ty_designoffers_5_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_5_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_5_chk" id="ty_designoffers_5_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_5_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_num" id="ty_designoffers_6_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_time" id="ty_designoffers_6_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_name" id="ty_designoffers_6_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_price" id="ty_designoffers_6_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_note" id="ty_designoffers_6_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_order" id="ty_designoffers_6_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_6_orderlink" id="ty_designoffers_6_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_6_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_6_chk" id="ty_designoffers_6_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_6_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_num" id="ty_designoffers_7_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_time" id="ty_designoffers_7_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_name" id="ty_designoffers_7_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_price" id="ty_designoffers_7_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_note" id="ty_designoffers_7_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_order" id="ty_designoffers_7_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_7_orderlink" id="ty_designoffers_7_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_7_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_7_chk" id="ty_designoffers_7_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_7_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_num" id="ty_designoffers_8_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_time" id="ty_designoffers_8_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_name" id="ty_designoffers_8_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_price" id="ty_designoffers_8_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_note" id="ty_designoffers_8_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_order" id="ty_designoffers_8_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_8_orderlink" id="ty_designoffers_8_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_8_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_8_chk" id="ty_designoffers_8_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_8_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_num" id="ty_designoffers_9_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_time" id="ty_designoffers_9_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_name" id="ty_designoffers_9_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_price" id="ty_designoffers_9_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_note" id="ty_designoffers_9_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_order" id="ty_designoffers_9_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_9_orderlink" id="ty_designoffers_9_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_9_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_9_chk" id="ty_designoffers_9_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_9_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_num" id="ty_designoffers_10_num" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_time" id="ty_designoffers_10_time" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_name" id="ty_designoffers_10_name" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_price" id="ty_designoffers_10_price" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_note" id="ty_designoffers_10_note" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_order" id="ty_designoffers_10_order" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_designoffers_10_orderlink" id="ty_designoffers_10_orderlink" value="' .  ( stripslashes( $sub2settings["ty_designoffers_10_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_designoffers_10_chk" id="ty_designoffers_10_chk" value="table-row" ' . (( $sub2settings["ty_designoffers_10_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-supportoffers' : 
							echo '
							<tr>
								<th><label>متنی برای نمایش در بالای صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_supportoffers_toptxt" id="ty_supportoffers_toptxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_supportoffers_toptxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>متنی برای نمایش در پائین صفحه وارد کنید : </label></th>
								<td>
									<textarea name="ty_supportoffers_botttxt" id="ty_supportoffers_botttxt" cols="60" rows="5" >' . ( stripslashes( $sub2settings["ty_supportoffers_botttxt"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_num" id="ty_supportoffers_1_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_time" id="ty_supportoffers_1_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_name" id="ty_supportoffers_1_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_price" id="ty_supportoffers_1_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_note" id="ty_supportoffers_1_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_order" id="ty_supportoffers_1_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_1_orderlink" id="ty_supportoffers_1_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_1_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_1_chk" id="ty_supportoffers_1_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_1_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_num" id="ty_supportoffers_2_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_time" id="ty_supportoffers_2_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_name" id="ty_supportoffers_2_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_price" id="ty_supportoffers_2_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_note" id="ty_supportoffers_2_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_order" id="ty_supportoffers_2_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_2_orderlink" id="ty_supportoffers_2_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_2_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_2_chk" id="ty_supportoffers_2_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_2_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_num" id="ty_supportoffers_3_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_time" id="ty_supportoffers_3_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_name" id="ty_supportoffers_3_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_price" id="ty_supportoffers_3_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_note" id="ty_supportoffers_3_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_order" id="ty_supportoffers_3_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_3_orderlink" id="ty_supportoffers_3_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_3_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_3_chk" id="ty_supportoffers_3_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_3_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_num" id="ty_supportoffers_4_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_time" id="ty_supportoffers_4_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_name" id="ty_supportoffers_4_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_price" id="ty_supportoffers_4_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_note" id="ty_supportoffers_4_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_order" id="ty_supportoffers_4_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_4_orderlink" id="ty_supportoffers_4_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_4_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_4_chk" id="ty_supportoffers_4_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_4_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_num" id="ty_supportoffers_5_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_time" id="ty_supportoffers_5_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_name" id="ty_supportoffers_5_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_price" id="ty_supportoffers_5_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_note" id="ty_supportoffers_5_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_order" id="ty_supportoffers_5_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_5_orderlink" id="ty_supportoffers_5_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_5_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_5_chk" id="ty_supportoffers_5_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_5_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_num" id="ty_supportoffers_6_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_time" id="ty_supportoffers_6_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_name" id="ty_supportoffers_6_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_price" id="ty_supportoffers_6_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_note" id="ty_supportoffers_6_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_order" id="ty_supportoffers_6_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_6_orderlink" id="ty_supportoffers_6_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_6_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_6_chk" id="ty_supportoffers_6_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_6_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_num" id="ty_supportoffers_7_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_time" id="ty_supportoffers_7_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_name" id="ty_supportoffers_7_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_price" id="ty_supportoffers_7_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_note" id="ty_supportoffers_7_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_order" id="ty_supportoffers_7_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_7_orderlink" id="ty_supportoffers_7_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_7_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_7_chk" id="ty_supportoffers_7_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_7_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_num" id="ty_supportoffers_8_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_time" id="ty_supportoffers_8_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_name" id="ty_supportoffers_8_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_price" id="ty_supportoffers_8_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_note" id="ty_supportoffers_8_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_order" id="ty_supportoffers_8_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_8_orderlink" id="ty_supportoffers_8_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_8_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_8_chk" id="ty_supportoffers_8_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_8_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_num" id="ty_supportoffers_9_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_time" id="ty_supportoffers_9_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_name" id="ty_supportoffers_9_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_price" id="ty_supportoffers_9_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_note" id="ty_supportoffers_9_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_order" id="ty_supportoffers_9_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_9_orderlink" id="ty_supportoffers_9_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_9_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_9_chk" id="ty_supportoffers_9_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_9_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							<tr>
								<td>
									===============
								</td>
							</tr>
							<tr>
								<th><label>ردیف : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_num" id="ty_supportoffers_10_num" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_num"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>مدت زمان تحویل : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_time" id="ty_supportoffers_10_time" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_time"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>نام پلن : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_name" id="ty_supportoffers_10_name" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_name"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>هزینه : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_price" id="ty_supportoffers_10_price" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_price"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>توضیحات : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_note" id="ty_supportoffers_10_note" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_note"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th><label>متن لینک سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_order" id="ty_supportoffers_10_order" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_order"] ) ) . '" />
								</td>
								<th><label>لینک دکمه سفارش : </label></th>
								<td>
									<input type="text" name="ty_supportoffers_10_orderlink" id="ty_supportoffers_10_orderlink" value="' .  ( stripslashes( $sub2settings["ty_supportoffers_10_orderlink"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_supportoffers_10_chk" id="ty_supportoffers_10_chk" value="table-row" ' . (( $sub2settings["ty_supportoffers_10_chk"]=="table-row" )? 'checked="checked"' : null) . ' />
									<span class="description"> فعالسازی و نمایش این پلن</span>
								</td>
							</tr>
							';
						break;
					}
					echo '</table>';
				}
				echo '
				<p class="submit" style="clear: both;">
					<input type="submit" name="Submit"  class="button-primary" value="ذخیره تنظیمات" />
					<input type="hidden" name="ty-sub2settings-submit" value="Y" />
				</p>
			</form>
			<p>' . $theme_data['Name'] . ' - ترجمه، توسعه و بهینه سازی  توسط : عقیل حسین زاده || <span>پشتیبانی : <a target="_blank" href="https://hyrcanweb.ir">hyrcanweb.ir</a> </span> || <span>ایمیل : info@hyrcanweb.ir  -  aghil.hosseinzadeh@gmail.com</span> || تلگرام : <a target="_blank" href="https://telegram.me/AGhilHz">@AGhilHz</a></p>
		</div>

	</div>
';
}
// end sub menu 2


// start sub menu 3
add_action( 'init', 'ty_sub3admin_init' );
add_action( 'admin_menu', 'ty_sub3settings_page_init' );

function ty_sub3admin_init() {
	$sub3settings = get_option( "ty_theme_sub3settings" );
	if ( empty( $sub3settings ) ) {
		$sub3settings = array(
			'ty_addcont_header' => '',
			'ty_addcont_header_width' => '1200px',
			'ty_addcont_headerhome' => '',
			'ty_addcont_headerhome_width' => '1200px',
			'ty_addcont_footer' => '',
			'ty_addcont_footer_width' => '1200px',
			'ty_addcont_footerhome' => '',
			'ty_addcont_footerhome_width' => '1200px',
			'ty_addcont_offershome' => '',
			'ty_addcont_offershome_width' => '1200px',
			'ty_addcont_clienthome' => '',
			'ty_addcont_clienthome_width' => '1200px',
			'ty_addcont_statshome' => '',
			'ty_addcont_statshome_width' => '1200px',
			'ty_addcont_feedbackhome' => '',
			'ty_addcont_feedbackhome_width' => '1200px',
			'ty_addcont_oneofferhome' => '',
			'ty_addcont_oneofferhome_width' => '1200px',
			'ty_addcss_head' => '',
			'ty_addjs_head' => '',
			'ty_addlink_head' => '',
			'ty_end' => false
		);
		add_option( "ty_theme_sub3settings", $sub3settings, '', 'yes' );
	}	
}

function ty_sub3settings_page_init() {
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	$sub3settings_page = add_submenu_page( 'typlue-theme-settings', 'تنظیمات پیشرفته - قالب تیبلو', 'تنظیمات پیشرفته', 'edit_theme_options', 'typlue-theme-sub3settings', 'ty_sub3settings_page' );
	add_action( "load-{$sub3settings_page}", 'ty_load_sub3settings_page' );
}

function ty_load_sub3settings_page() {
	if (isset( $_POST["ty-sub3settings-submit"] ) && $_POST['ty-sub3settings-submit'] == 'Y' ) {
		check_admin_referer( "ty-sub3settings-page" );
		ty_save_theme_sub3settings();
		$url_parameters = isset($_GET['tab'])? 'updated=true&tab='.$_GET['tab'] : 'updated=true';
		wp_redirect(admin_url('admin.php?page=typlue-theme-sub3settings&'.$url_parameters));
		exit;
	}
}

function ty_save_theme_sub3settings() {
	global $pagenow;
	$sub3settings = get_option( "ty_theme_sub3settings" );
	
	if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub3settings' ){ 
		if ( isset ( $_GET['tab'] ) )
	        $tab = $_GET['tab']; 
	    else
	        $tab = 'tyop-addcont'; 

	    switch ( $tab ){ 
			case 'tyop-addcont' :
				$sub3settings['ty_addcont_header']	  = $_POST['ty_addcont_header'];
				$sub3settings['ty_addcont_header_width']	  = $_POST['ty_addcont_header_width'];
				$sub3settings['ty_addcont_headerhome']	  = $_POST['ty_addcont_headerhome'];
				$sub3settings['ty_addcont_headerhome_width']	  = $_POST['ty_addcont_headerhome_width'];
				$sub3settings['ty_addcont_footer']	  = $_POST['ty_addcont_footer'];
				$sub3settings['ty_addcont_footer_width']	  = $_POST['ty_addcont_footer_width'];
				$sub3settings['ty_addcont_footerhome']	  = $_POST['ty_addcont_footerhome'];
				$sub3settings['ty_addcont_footerhome_width']	  = $_POST['ty_addcont_footerhome_width'];
				$sub3settings['ty_addcont_offershome']	  = $_POST['ty_addcont_offershome'];
				$sub3settings['ty_addcont_offershome_width']	  = $_POST['ty_addcont_offershome_width'];
				$sub3settings['ty_addcont_clienthome']	  = $_POST['ty_addcont_clienthome'];
				$sub3settings['ty_addcont_clienthome_width']	  = $_POST['ty_addcont_clienthome_width'];
				$sub3settings['ty_addcont_statshome']	  = $_POST['ty_addcont_statshome'];
				$sub3settings['ty_addcont_statshome_width']	  = $_POST['ty_addcont_statshome_width'];
				$sub3settings['ty_addcont_feedbackhome']	  = $_POST['ty_addcont_feedbackhome'];
				$sub3settings['ty_addcont_feedbackhome_width']	  = $_POST['ty_addcont_feedbackhome_width'];
				$sub3settings['ty_addcont_oneofferhome']	  = $_POST['ty_addcont_oneofferhome'];
				$sub3settings['ty_addcont_oneofferhome_width']	  = $_POST['ty_addcont_oneofferhome_width'];
			break;
			case 'tyop-addcss' :
				$sub3settings['ty_addcss_head']	  = $_POST['ty_addcss_head'];
			break;
			case 'tyop-addjs' :
				$sub3settings['ty_addjs_head']	  = $_POST['ty_addjs_head'];
			break;
			case 'tyop-addlink' :
				$sub3settings['ty_addlink_head']	  = $_POST['ty_addlink_head'];
			break;
	    }
	}

	$updated = update_option( "ty_theme_sub3settings", $sub3settings );
}

function ty_sub3admin_tabs( $current = 'tyop-addcont' ) { 
    $tabs = array( 'tyop-addcont' => 'افزودن محتوای سفارشی HTML', 'tyop-addcss' => 'افزودن محتوای سفارشی CSS', 'tyop-addjs' => 'افزودن محتوای سفارشی JavaScript', 'tyop-addlink' => 'افزودن محتوای مختص HEAD' ); 
    $links = array();
    echo '<div id="icon-themes" class="icon32"><br></div>';
    echo '<h2 class="nav-tab-wrapper">';
    foreach( $tabs as $tab => $name ){
        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
        echo "<a class='nav-tab$class' href='?page=typlue-theme-sub3settings&tab=$tab'>$name</a>";
        
    }
    echo '</h2>';
}

function ty_sub3settings_page() {
	global $pagenow;
	$sub3settings = get_option( "ty_theme_sub3settings" );
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	
	tythcss();
	
	echo '<div class="wrap"> <h2>تنظیمات پیشرفته</h2>';
		tyversion();
			if (esc_attr(isset( $_GET['updated'] ) == 'true' )) echo '<div class="updated" ><p>تغییرات ذخیره شد</p></div>';
			
			if ( isset ( $_GET['tab'] ) ) ty_sub3admin_tabs($_GET['tab']); else ty_sub3admin_tabs('tyop-addcont');
		
		echo '<div id="poststuff">';
		
		$url_sub3settings_tab = isset($_GET['tab'])? '&tab='.$_GET['tab'] : null;
		echo '<form method="post" action="' . get_admin_url( null, "admin.php?page=typlue-theme-sub3settings" ) . $url_sub3settings_tab . '">';
		
				wp_nonce_field( "ty-sub3settings-page" ); 
				
				if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub3settings' ){ 
				
					if ( isset ( $_GET['tab'] ) ) $tab = $_GET['tab']; 
					else $tab = 'tyop-addcont'; 
					
					echo '<table class="form-table">';
					switch ( $tab ){
						case 'tyop-addcont' : 
						tytinymce();
							echo '
							<tr>
								<th><label>متنی برای نمایش در زیر هدر تمامی صفحات وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_header" id="ty_addcont_header" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_header"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_header_width" id="ty_addcont_header_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_header_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در زیر هدر صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_headerhome" id="ty_addcont_headerhome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_headerhome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_headerhome_width" id="ty_addcont_headerhome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_headerhome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در بالای فوتر تمامی صفحات وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_footer" id="ty_addcont_footer" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_footer"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_footer_width" id="ty_addcont_footer_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_footer_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در بالای فوتر صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_footerhome" id="ty_addcont_footerhome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_footerhome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_footerhome_width" id="ty_addcont_footerhome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_footerhome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در زیر پلن های صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_offershome" id="ty_addcont_offershome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_offershome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_offershome_width" id="ty_addcont_offershome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_offershome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در زیر قسمت مشتریان ما در صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_clienthome" id="ty_addcont_clienthome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_clienthome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_clienthome_width" id="ty_addcont_clienthome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_clienthome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در زیر قسمت آمار خدمات در صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_statshome" id="ty_addcont_statshome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_statshome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_statshome_width" id="ty_addcont_statshome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_statshome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در زیر قسمت نظرات مشتریان در صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_feedbackhome" id="ty_addcont_feedbackhome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_feedbackhome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_feedbackhome_width" id="ty_addcont_feedbackhome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_feedbackhome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>متنی برای نمایش در زیر قسمت تخفیف ویژه در صفحه اصلی وارد کنید : </label></th>
								<td>
									<textarea name="ty_addcont_oneofferhome" id="ty_addcont_oneofferhome" cols="60" rows="5" >' . ( stripslashes( $sub3settings["ty_addcont_oneofferhome"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>حداکثر اندازه برای این مطلب (max-width) : </label></th>
								<td>
									<input type="text" name="ty_addcont_oneofferhome_width" id="ty_addcont_oneofferhome_width" value="' .  ( stripslashes( $sub3settings["ty_addcont_oneofferhome_width"] ) ) . '" />
									<span class="description"> max-width</span>
								</td>
							</tr>
							';
						break;
						case 'tyop-addcss' : 
							echo '
							<tr>
								<th><label>افزودن CSS سفارشی و دلخواه : </label></th>
								<td>
									<textarea name="ty_addcss_head" id="ty_addcss_head" cols="60" rows="5" style="text-align:left;direction:ltr;">' . ( stripslashes( $sub3settings["ty_addcss_head"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-addjs' : 
							echo '
							<tr>
								<th><label>افزودن JavaScript سفارشی و دلخواه : </label></th>
								<td>
									<textarea name="ty_addjs_head" id="ty_addjs_head" cols="60" rows="5" style="text-align:left;direction:ltr;">' . ( stripslashes( $sub3settings["ty_addjs_head"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
						case 'tyop-addlink' : 
							echo '
							<tr>
								<th><label>افزودن محتوای مختص head : </label></th>
								<td>
									<textarea name="ty_addlink_head" id="ty_addlink_head" cols="60" rows="5" style="text-align:left;direction:ltr;">' . ( stripslashes( $sub3settings["ty_addlink_head"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
					}
					echo '</table>';
				}
				echo '
				<p class="submit" style="clear: both;">
					<input type="submit" name="Submit"  class="button-primary" value="ذخیره تغییرات" />
					<input type="hidden" name="ty-sub3settings-submit" value="Y" />
				</p>
			</form>
			<p>' . $theme_data['Name'] . ' - ترجمه، توسعه و بهینه سازی  توسط : عقیل حسین زاده || <span>پشتیبانی : <a target="_blank" href="https://hyrcanweb.ir">hyrcanweb.ir</a> </span> || <span>ایمیل : info@hyrcanweb.ir  -  aghil.hosseinzadeh@gmail.com</span> || تلگرام : <a target="_blank" href="https://telegram.me/AGhilHz">@AGhilHz</a></p>
		</div>

	</div>
';
}

// end sub menu 3

// start sub menu 4

add_action( 'init', 'ty_sub4admin_init' );
add_action( 'admin_menu', 'ty_sub4settings_page_init' );

function ty_sub4admin_init() {
	$sub4settings = get_option( "ty_theme_sub4settings" );
	if ( empty( $sub4settings ) ) {
		$sub4settings = array(
			'ty_blogmain_showhome_rdo' => 1,
			'ty_blogmain_homeblog_rdo' => 1,
			'ty_blogmain_blogbutt_icon' => 'fa-comments',
			'ty_blogmain_blogbutt_name' => 'بلاگ',
			'ty_blogmain_blogbutt_link' => site_url() . '/blog',
			'ty_blogmain_blogbutt_rdo' => 1,
			'ty_blogmain_blogbutt_chk' => false,
			'ty_blogslide_chk' => false,
			'ty_blogslide_rdo' => 1,
			'ty_blogslide_blognum' => '5',
			'ty_blogslide_blogcat' => '0',
			'ty_blogslide_bgcolor' => '#05050d',
			'ty_blogslide_bg' => get_template_directory_uri() . '/tyblue-files/tyimg2.jpg',
			'ty_blogposts_chk1' => false,
			'ty_blogposts_chk2' => false,
			'ty_blogposts_chk3' => false,
			'ty_blogposts_chk4' => false,
			'ty_blogposts_chk5' => false,
			'ty_blogposts_chk6' => false,
			'ty_blogposts_chk7' => false,
			'ty_blogposts_chk8' => false,
			'ty_blogposts_chk9' => false,
			'ty_blogposts_homeposts_num' => '6',
			'ty_blogposts_homecats1_chk' => true,
			'ty_blogposts_homecats1_num' => '1',
			'ty_blogposts_homecats1_list' => '5',
			'ty_blogposts_homecats2_chk' => true,
			'ty_blogposts_homecats2_num' => '2',
			'ty_blogposts_homecats2_list' => '5',
			'ty_blogposts_homecats3_chk' => true,
			'ty_blogposts_homecats3_num' => '3',
			'ty_blogposts_homecats3_list' => '5',
			'ty_blogposts_homecats4_chk' => true,
			'ty_blogposts_homecats4_num' => '4',
			'ty_blogposts_homecats4_list' => '5',
			'ty_blogposts_homecats5_chk' => true,
			'ty_blogposts_homecats5_num' => '5',
			'ty_blogposts_homecats5_list' => '5',
			'ty_blogposts_homecats6_chk' => true,
			'ty_blogposts_homecats6_num' => '6',
			'ty_blogposts_homecats6_list' => '5',
			'ty_blogsidebar_chk1' => false,
			'ty_blogsidebar_chk2' => false,
			'ty_blogsidebar_chk3' => false,
			'ty_blogsidebar_chk4' => false,
			'ty_blogsidebar_chk5' => false,
			'ty_blogsidebar_chk6' => false,
			'ty_blogsidebar_chk7' => false,
			'ty_blogsidebar_catnum_chk' => true,
			'ty_blogsidebar_catrss_chk' => true,
			'ty_blogsidebar_catrssimg' => get_template_directory_uri() . '/tyblue-files/tyimg5.png',
			'ty_blogsidebar_cattitle' => 'دسته بندی ها',
			'ty_blogsidebar_catnum' => '5',
			'ty_blogsidebar_searchtitle' => 'جستجو در بلاگ',
			'ty_blogsidebar_posttitle' => 'آخرین مطالب',
			'ty_blogsidebar_postnum' => '5',
			'ty_blogsidebar_commtitle' => 'آخرین نظرات',
			'ty_blogsidebar_commnum' => '5',
			'ty_blogsidebar_archtitle' => 'آرشیو',
			'ty_blogsidebar_archtype' => 'monthly',
			'ty_blogsidebar_archnum' => '5',
			'ty_blogsidebar_tagtitle' => 'برچسب ها',
			'ty_blogsidebar_tagnum' => '50',
			'ty_blogsideads_1_cont' => '',
			'ty_blogsideads_1_title' => '',
			'ty_blogsideads_2_cont' => '',
			'ty_blogsideads_2_title' => '',
			'ty_blogsideads_3_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner230x100.jpg" alt="" /></a><a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner230x100.jpg" alt="" /></a>',
			'ty_blogsideads_3_title' => 'تبلیغات',
			'ty_blogsideads_4_cont' => '',
			'ty_blogsideads_4_title' => '',
			'ty_blogsideads_5_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner125x125.jpg" alt="" /></a><a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner125x125.jpg" alt="" /></a><a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner125x125.jpg" alt="" /></a><a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner125x125.jpg" alt="" /></a>',
			'ty_blogsideads_5_title' => 'تبلیغات',
			'ty_blogsideads_6_cont' => '',
			'ty_blogsideads_6_title' => '',
			'ty_blogsideads_7_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner230x100.jpg" alt="" /></a><a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner230x100.jpg" alt="" /></a>',
			'ty_blogsideads_7_title' => 'تبلیغات',
			'ty_blogpagesads_1_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner728x90.jpg" alt="" /></a>',
			'ty_blogpagesads_2_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner728x90.jpg" alt="" /></a>',
			'ty_blogpagesads_3_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner728x90.jpg" alt="" /></a>',
			'ty_blogpagesads_4_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner728x90.jpg" alt="" /></a>',
			'ty_blogpagesads_5_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner336x280.jpg" alt="" /></a>',
			'ty_blogpagesads_6_cont' => '<a href="#" target="_blank"><img src="' . get_template_directory_uri() . '/tyblue-files/banners/banner728x90.jpg" alt="" /></a>',
			'ty_blogpagesads_7_cont' => '',
			'ty_end' => false
		);
		add_option( "ty_theme_sub4settings", $sub4settings, '', 'yes' );
	}	
}

function ty_sub4settings_page_init() {
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );
	$sub4settings_page = add_submenu_page( 'typlue-theme-settings', 'تنظیمات بلاگ - قالب تیبلو', 'تنظیمات بلاگ', 'edit_theme_options', 'typlue-theme-sub4settings', 'ty_sub4settings_page' );
	add_action( "load-{$sub4settings_page}", 'ty_load_sub4settings_page' );
}

function ty_load_sub4settings_page() {
	if (isset( $_POST["ty-sub4settings-submit"] ) && $_POST['ty-sub4settings-submit'] == 'Y' ) {
		check_admin_referer( "ty-sub4settings-page" );
		ty_save_theme_sub4settings();
		$url_parameters = isset($_GET['tab'])? 'updated=true&tab='.$_GET['tab'] : 'updated=true';
		wp_redirect(admin_url('admin.php?page=typlue-theme-sub4settings&'.$url_parameters));
		exit;
	}
}

function ty_save_theme_sub4settings() {
	global $pagenow;
	$sub4settings = get_option( "ty_theme_sub4settings" );
	
	if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub4settings' ){ 
		if ( isset ( $_GET['tab'] ) )
	        $tab = $_GET['tab']; 
	    else
	        $tab = 'tyop-blogmain'; 

	    switch ( $tab ){ 
			case 'tyop-blogmain' :
				$sub4settings['ty_blogmain_showhome_rdo']	  = $_POST['ty_blogmain_showhome_rdo'];
				$sub4settings['ty_blogmain_homeblog_rdo']	  = $_POST['ty_blogmain_homeblog_rdo'];
				$sub4settings['ty_blogmain_blogbutt_icon']	  = $_POST['ty_blogmain_blogbutt_icon'];
				$sub4settings['ty_blogmain_blogbutt_name']	  = $_POST['ty_blogmain_blogbutt_name'];
				$sub4settings['ty_blogmain_blogbutt_link']	  = $_POST['ty_blogmain_blogbutt_link'];
				$sub4settings['ty_blogmain_blogbutt_rdo']	  = $_POST['ty_blogmain_blogbutt_rdo'];
				$sub4settings['ty_blogmain_blogbutt_chk']	  = $_POST['ty_blogmain_blogbutt_chk'];
			break;
			case 'tyop-blogslide' :
				$sub4settings['ty_blogslide_chk']	  = $_POST['ty_blogslide_chk'];
				$sub4settings['ty_blogslide_rdo']	  = $_POST['ty_blogslide_rdo'];
				$sub4settings['ty_blogslide_blognum']	  = $_POST['ty_blogslide_blognum'];
				$sub4settings['ty_blogslide_blogcat']	  = $_POST['ty_blogslide_blogcat'];
				$sub4settings['ty_blogslide_bgcolor']	  = $_POST['ty_blogslide_bgcolor'];
				$sub4settings['ty_blogslide_bg']	  = $_POST['ty_blogslide_bg'];
			break;
			case 'tyop-blogposts' :
				$sub4settings['ty_blogposts_chk1']	  = $_POST['ty_blogposts_chk1'];
				$sub4settings['ty_blogposts_chk2']	  = $_POST['ty_blogposts_chk2'];
				$sub4settings['ty_blogposts_chk3']	  = $_POST['ty_blogposts_chk3'];
				$sub4settings['ty_blogposts_chk4']	  = $_POST['ty_blogposts_chk4'];
				$sub4settings['ty_blogposts_chk5']	  = $_POST['ty_blogposts_chk5'];
				$sub4settings['ty_blogposts_chk6']	  = $_POST['ty_blogposts_chk6'];
				$sub4settings['ty_blogposts_chk7']	  = $_POST['ty_blogposts_chk7'];
				$sub4settings['ty_blogposts_chk8']	  = $_POST['ty_blogposts_chk8'];
				$sub4settings['ty_blogposts_chk9']	  = $_POST['ty_blogposts_chk9'];
				$sub4settings['ty_blogposts_homeposts_num']	  = $_POST['ty_blogposts_homeposts_num'];
				$sub4settings['ty_blogposts_homecats1_chk']	  = $_POST['ty_blogposts_homecats1_chk'];
				$sub4settings['ty_blogposts_homecats1_num']	  = $_POST['ty_blogposts_homecats1_num'];
				$sub4settings['ty_blogposts_homecats1_list']	  = $_POST['ty_blogposts_homecats1_list'];
				$sub4settings['ty_blogposts_homecats2_chk']	  = $_POST['ty_blogposts_homecats2_chk'];
				$sub4settings['ty_blogposts_homecats2_num']	  = $_POST['ty_blogposts_homecats2_num'];
				$sub4settings['ty_blogposts_homecats2_list']	  = $_POST['ty_blogposts_homecats2_list'];
				$sub4settings['ty_blogposts_homecats3_chk']	  = $_POST['ty_blogposts_homecats3_chk'];
				$sub4settings['ty_blogposts_homecats3_num']	  = $_POST['ty_blogposts_homecats3_num'];
				$sub4settings['ty_blogposts_homecats3_list']	  = $_POST['ty_blogposts_homecats3_list'];
				$sub4settings['ty_blogposts_homecats4_chk']	  = $_POST['ty_blogposts_homecats4_chk'];
				$sub4settings['ty_blogposts_homecats4_num']	  = $_POST['ty_blogposts_homecats4_num'];
				$sub4settings['ty_blogposts_homecats4_list']	  = $_POST['ty_blogposts_homecats4_list'];
				$sub4settings['ty_blogposts_homecats5_chk']	  = $_POST['ty_blogposts_homecats5_chk'];
				$sub4settings['ty_blogposts_homecats5_num']	  = $_POST['ty_blogposts_homecats5_num'];
				$sub4settings['ty_blogposts_homecats5_list']	  = $_POST['ty_blogposts_homecats5_list'];
				$sub4settings['ty_blogposts_homecats6_chk']	  = $_POST['ty_blogposts_homecats6_chk'];
				$sub4settings['ty_blogposts_homecats6_num']	  = $_POST['ty_blogposts_homecats6_num'];
				$sub4settings['ty_blogposts_homecats6_list']	  = $_POST['ty_blogposts_homecats6_list'];
			break;
			case 'tyop-blogsidebar' :
				$sub4settings['ty_blogsidebar_chk1']	  = $_POST['ty_blogsidebar_chk1'];
				$sub4settings['ty_blogsidebar_chk2']	  = $_POST['ty_blogsidebar_chk2'];
				$sub4settings['ty_blogsidebar_chk3']	  = $_POST['ty_blogsidebar_chk3'];
				$sub4settings['ty_blogsidebar_chk4']	  = $_POST['ty_blogsidebar_chk4'];
				$sub4settings['ty_blogsidebar_chk5']	  = $_POST['ty_blogsidebar_chk5'];
				$sub4settings['ty_blogsidebar_chk6']	  = $_POST['ty_blogsidebar_chk6'];
				$sub4settings['ty_blogsidebar_chk7']	  = $_POST['ty_blogsidebar_chk7'];
				$sub4settings['ty_blogsidebar_catnum_chk']	  = $_POST['ty_blogsidebar_catnum_chk'];
				$sub4settings['ty_blogsidebar_catrss_chk']	  = $_POST['ty_blogsidebar_catrss_chk'];
				$sub4settings['ty_blogsidebar_catrssimg']	  = $_POST['ty_blogsidebar_catrssimg'];
				$sub4settings['ty_blogsidebar_cattitle']	  = $_POST['ty_blogsidebar_cattitle'];
				$sub4settings['ty_blogsidebar_catnum']	  = $_POST['ty_blogsidebar_catnum'];
				$sub4settings['ty_blogsidebar_searchtitle']	  = $_POST['ty_blogsidebar_searchtitle'];
				$sub4settings['ty_blogsidebar_posttitle']	  = $_POST['ty_blogsidebar_posttitle'];
				$sub4settings['ty_blogsidebar_postnum']	  = $_POST['ty_blogsidebar_postnum'];
				$sub4settings['ty_blogsidebar_commtitle']	  = $_POST['ty_blogsidebar_commtitle'];
				$sub4settings['ty_blogsidebar_commnum']	  = $_POST['ty_blogsidebar_commnum'];
				$sub4settings['ty_blogsidebar_archtitle']	  = $_POST['ty_blogsidebar_archtitle'];
				$sub4settings['ty_blogsidebar_archtype']	  = $_POST['ty_blogsidebar_archtype'];
				$sub4settings['ty_blogsidebar_archnum']	  = $_POST['ty_blogsidebar_archnum'];
				$sub4settings['ty_blogsidebar_tagtitle']	  = $_POST['ty_blogsidebar_tagtitle'];
				$sub4settings['ty_blogsidebar_tagnum']	  = $_POST['ty_blogsidebar_tagnum'];
			break;
			case 'tyop-blogsideads' :
				$sub4settings['ty_blogsideads_1_cont']	  = $_POST['ty_blogsideads_1_cont'];
				$sub4settings['ty_blogsideads_1_title']	  = $_POST['ty_blogsideads_1_title'];
				$sub4settings['ty_blogsideads_2_cont']	  = $_POST['ty_blogsideads_2_cont'];
				$sub4settings['ty_blogsideads_2_title']	  = $_POST['ty_blogsideads_2_title'];
				$sub4settings['ty_blogsideads_3_cont']	  = $_POST['ty_blogsideads_3_cont'];
				$sub4settings['ty_blogsideads_3_title']	  = $_POST['ty_blogsideads_3_title'];
				$sub4settings['ty_blogsideads_4_cont']	  = $_POST['ty_blogsideads_4_cont'];
				$sub4settings['ty_blogsideads_4_title']	  = $_POST['ty_blogsideads_4_title'];
				$sub4settings['ty_blogsideads_5_cont']	  = $_POST['ty_blogsideads_5_cont'];
				$sub4settings['ty_blogsideads_5_title']	  = $_POST['ty_blogsideads_5_title'];
				$sub4settings['ty_blogsideads_6_cont']	  = $_POST['ty_blogsideads_6_cont'];
				$sub4settings['ty_blogsideads_6_title']	  = $_POST['ty_blogsideads_6_title'];
				$sub4settings['ty_blogsideads_7_cont']	  = $_POST['ty_blogsideads_7_cont'];
				$sub4settings['ty_blogsideads_7_title']	  = $_POST['ty_blogsideads_7_title'];
			break;
			case 'tyop-blogpagesads' :
				$sub4settings['ty_blogpagesads_1_cont']	  = $_POST['ty_blogpagesads_1_cont'];
				$sub4settings['ty_blogpagesads_2_cont']	  = $_POST['ty_blogpagesads_2_cont'];
				$sub4settings['ty_blogpagesads_3_cont']	  = $_POST['ty_blogpagesads_3_cont'];
				$sub4settings['ty_blogpagesads_4_cont']	  = $_POST['ty_blogpagesads_4_cont'];
				$sub4settings['ty_blogpagesads_5_cont']	  = $_POST['ty_blogpagesads_5_cont'];
				$sub4settings['ty_blogpagesads_6_cont']	  = $_POST['ty_blogpagesads_6_cont'];
				$sub4settings['ty_blogpagesads_7_cont']	  = $_POST['ty_blogpagesads_7_cont'];
			break;
	    }
	}

	$updated = update_option( "ty_theme_sub4settings", $sub4settings );
}

function ty_sub4admin_tabs( $current = 'tyop-blogmain' ) { 
    $tabs = array( 'tyop-blogmain' => 'تنظیمات عمومی بلاگ', 'tyop-blogslide' => 'اسلایدر بلاگ', 'tyop-blogposts' => 'مطالب بلاگ', 'tyop-blogsidebar' => 'سایدبارهای پیش فرض', 'tyop-blogsideads' => 'سایدبار دلخواه', 'tyop-blogpagesads' => 'تبلیغات' ); 
    $links = array();
    echo '<div id="icon-themes" class="icon32"><br></div>';
    echo '<h2 class="nav-tab-wrapper">';
    foreach( $tabs as $tab => $name ){
        $class = ( $tab == $current ) ? ' nav-tab-active' : '';
        echo "<a class='nav-tab$class' href='?page=typlue-theme-sub4settings&tab=$tab'>$name</a>";
        
    }
    echo '</h2>';
}

function ty_sub4settings_page() {
	global $pagenow;
	$sub4settings = get_option( "ty_theme_sub4settings" );
	$theme_data = get_theme_data( get_template_directory_uri() . '/style.css' );

	tythcss();
	
	echo '<div class="wrap"> <h2>تنظیمات بلاگ</h2>';
		tyversion();
			if (esc_attr(isset( $_GET['updated'] ) == 'true' )) echo '<div class="updated" ><p>تغییرات ذخیره شد</p></div>';
			
			if ( isset ( $_GET['tab'] ) ) ty_sub4admin_tabs($_GET['tab']); else ty_sub4admin_tabs('tyop-blogmain');
		
		echo '<div id="poststuff">';
		
		$url_sub4settings_tab = isset($_GET['tab'])? '&tab='.$_GET['tab'] : null;
		echo '<form method="post" action="' . get_admin_url( null, "admin.php?page=typlue-theme-sub4settings" ) . $url_sub4settings_tab . '">';
		
				wp_nonce_field( "ty-sub4settings-page" ); 
				
				if ( $pagenow == 'admin.php' && $_GET['page'] == 'typlue-theme-sub4settings' ){ 
				
					if ( isset ( $_GET['tab'] ) ) $tab = $_GET['tab']; 
					else $tab = 'tyop-blogmain'; 
					
					echo '<table class="form-table">';
					switch ( $tab ){
						case 'tyop-blogmain' : 
						
							echo '
							<table class="form-table">
								<tr>
									<td>
										تنظیمات دکمه ی بلاگ
									</td>
								</tr>
								<tr>
									<th>آیکون : </th>
									<td>
										<input type="text" name="ty_blogmain_blogbutt_icon" id="ty_blogmain_blogbutt_icon" value="' . ( stripslashes( $sub4settings["ty_blogmain_blogbutt_icon"] ) ) . '" />
										<span class="description"> آیکون را از طریق لینک مقابل می توانید انتخاب کنید : <a href="https://fortawesome.github.io/Font-Awesome/cheatsheet" target="_blank">انتخاب آیکون</a></span>
									</td>
								</tr>
								<tr>
									<th>متن دکمه ی بلاگ : </th>
									<td>
										<input type="text" name="ty_blogmain_blogbutt_name" id="ty_blogmain_blogbutt_name" value="' . ( stripslashes( $sub4settings["ty_blogmain_blogbutt_name"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<th>لینک بلاگ : </th>
									<td>
										<input type="text" name="ty_blogmain_blogbutt_link" id="ty_blogmain_blogbutt_link" value="' . ( stripslashes( $sub4settings["ty_blogmain_blogbutt_link"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<td class="ty-panel-part-bg">
									<input type="radio" name="ty_blogmain_blogbutt_rdo" id="ty_blogmain_blogbutt_rdo" value="1" ' . (( $sub4settings["ty_blogmain_blogbutt_rdo"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">باز کردن لینک در همان صفحه</span>
									</td>
								</tr>
								<tr>
									<td>
									</td>
								</tr>
								<tr>
									<td class="ty-panel-part-bg">
									<input type="radio" name="ty_blogmain_blogbutt_rdo" id="ty_blogmain_blogbutt_rdo" value="2" ' . (( $sub4settings["ty_blogmain_blogbutt_rdo"]==2 )? 'checked="checked"' : null) . ' />
									<span class="description">باز کردن لینک در  صفحه جدید</span>
									</td>
								</tr>
								<tr>
									<td>
									<input type="checkbox" name="ty_blogmain_blogbutt_chk" id="ty_blogmain_blogbutt_chk" value="1" ' . (( $sub4settings["ty_blogmain_blogbutt_chk"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">حذف دکمه ی بلاگ</span>
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							</table>
							<table class="form-table">
							';
						break;
						case 'tyop-blogslide' : 
							echo '
							<tr>
								<th><input type="checkbox" name="ty_blogslide_chk" id="ty_blogslide_chk" value="1" ' . (( $sub4settings["ty_blogslide_chk"]==1 )? 'checked="checked"' : null) . ' /> فعالسازی اسلایدر بلاگ : </th>
							</tr>
							<tr>
								<th>تعداد مطالب جهت نمایش در اسلایدر : </th>
								<td>
									<input type="text" name="ty_blogslide_blognum" id="ty_blogslide_blognum" value="' . ( stripslashes( $sub4settings["ty_blogslide_blognum"] ) ) . '" />
								</td>
							</tr>
							<tr>
								<th>دسته :  </th>
								<td>
									'; wp_dropdown_categories( array( 'show_option_all'    => 'همه دسته ها', 'name' => 'ty_blogslide_blogcat', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogslide_blogcat"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogslide_blogcat"] ) ) . '' ) ); echo '
								</td>
							<tr>
							</table>
							<table class="form-table">
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="radio" name="ty_blogslide_rdo" id="ty_blogslide_rdo" value="1" ' . (( $sub4settings["ty_blogslide_rdo"]==1 )? 'checked="checked"' : null) . ' />
										<span class="description">فعالسازی اسلایدر در همه صفحات بلاگ</span>
									</td>
								</tr>
								<tr>
									<td>
										<input type="radio" name="ty_blogslide_rdo" id="ty_blogslide_rdo" value="2" ' . (( $sub4settings["ty_blogslide_rdo"]==2 )? 'checked="checked"' : null) . ' />
										<span class="description">فعالسازی اسلایدر فقط در صفحات فرعی و تنها</span>
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							</table>
							<table class="form-table">
							</tr>
								<th><label>رنگ پس زمینه اسلاید : </label></th>
								<td>
									<input style="border:1px solid;width:50px;background:' . ( stripslashes( $sub4settings["ty_blogslide_bgcolor"] ) ) . ';" disabled />
									<input style="direction:ltr;" type="text" name="ty_blogslide_bgcolor" id="ty_blogslide_bgcolor" value="' . ( stripslashes( $sub4settings["ty_blogslide_bgcolor"] ) ) . '" />
									<span class="description">پیش فرض : (#05050d)</span>
								</td>
							</tr>
							<tr>
								<th><label>لینک تصویر پس زمینه اسلاید : </label></th>
								<td>
									<input type="text" name="ty_blogslide_bg" id="ty_blogslide_bg" value="' . ( stripslashes( $sub4settings["ty_blogslide_bg"] ) ) . '" />
									</br><span class="description">پیش فرض : ' . get_template_directory_uri() . '/tyblue-files/tyimg2.jpg</a></span>
								</td>
							<tr>
							<tr>
								<th><label>مشاهده تصویر اسلاید : </label></th>
								<td>
									<img style="max-width: 300px;" src="' . ( stripslashes( $sub4settings["ty_blogslide_bg"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-blogposts' : 
							echo '
							<tr>
								<td>
									<input type="checkbox" name="ty_blogposts_chk1" id="ty_blogposts_chk1" value="1" ' . (( $sub4settings["ty_blogposts_chk1"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن ارزیابی مطلب</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogposts_chk2" id="ty_blogposts_chk2" value="1" ' . (( $sub4settings["ty_blogposts_chk2"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن دکمه های به اشتراک گذاری از وسط تصویرِ مطلب</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogposts_chk3" id="ty_blogposts_chk3" value="1" ' . (( $sub4settings["ty_blogposts_chk3"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن دکمه تاریخ مطلب</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogposts_chk4" id="ty_blogposts_chk4" value="1" ' . (( $sub4settings["ty_blogposts_chk4"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن دکمه دسته بندی مطلب</span>
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_blogposts_chk5" id="ty_blogposts_chk5" value="1" ' . (( $sub4settings["ty_blogposts_chk5"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن دکمه نویسنده مطلب</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogposts_chk6" id="ty_blogposts_chk6" value="1" ' . (( $sub4settings["ty_blogposts_chk6"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن دکمه تعداد نظرات مطلب</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogposts_chk7" id="ty_blogposts_chk7" value="1" ' . (( $sub4settings["ty_blogposts_chk7"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن دکمه RSS</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogposts_chk8" id="ty_blogposts_chk8" value="1" ' . (( $sub4settings["ty_blogposts_chk8"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس های نمایش مطالب دسته ها</span>
								</td>
							</tr>
							</table>
							<table class="form-table">
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_chk9" id="ty_blogposts_chk9" value="1" ' . (( $sub4settings["ty_blogposts_chk9"]==1 )? 'checked="checked"' : null) . ' />
										<span class="description">غیرفعال کردن باکس مطالب مرتبط (در صفحه مطلب)</span>
									</td>
								</tr>
							</table>
							<table class="form-table">
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										تعداد مطالب جهت نمایش در صفحه نخستِ بلاگ
									</td>
								</tr>
								<tr>
									<td>
										
											<input type="text" name="ty_blogposts_homeposts_num" id="ty_blogposts_homeposts_num" value="' . ( stripslashes( $sub4settings["ty_blogposts_homeposts_num"] ) ) . '" />
										
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							</table>
							<table class="form-table">
								<tr>
									<td>
										باکس های نمایش مطالب دسته ها
									</td>
								</tr>
							</table>
							<table class="form-table">
								<tr><td>===============</td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_homecats1_chk" id="ty_blogposts_homecats1_chk" value="1" ' . (( $sub4settings["ty_blogposts_homecats1_chk"]==1 )? 'checked="checked"' : null) . ' /> باکس اول
									</td>
								</tr>
								<tr>
									<th>انتخاب دسته : </th>
									<td>
										'; wp_dropdown_categories( array( 'name' => 'ty_blogposts_homecats1_num', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats1_num"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats1_num"] ) ) . '' ) ); echo '
									</td>
								<tr>
								</tr>
									<th>تعداد مطالب جهت نمایش :</th>
									<td>
										<input type="text" name="ty_blogposts_homecats1_list" id="ty_blogposts_homecats1_list" value="' . ( stripslashes( $sub4settings["ty_blogposts_homecats1_list"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_homecats2_chk" id="ty_blogposts_homecats2_chk" value="1" ' . (( $sub4settings["ty_blogposts_homecats2_chk"]==1 )? 'checked="checked"' : null) . ' /> باکس دوم
									</td>
								</tr>
								<tr>
									<th>انتخاب دسته : </th>
									<td>
										'; wp_dropdown_categories( array( 'name' => 'ty_blogposts_homecats2_num', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats2_num"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats2_num"] ) ) . '' ) ); echo '
									</td>
								<tr>
								</tr>
									<th>تعداد مطالب جهت نمایش :</th>
									<td>
										<input type="text" name="ty_blogposts_homecats2_list" id="ty_blogposts_homecats2_list" value="' . ( stripslashes( $sub4settings["ty_blogposts_homecats2_list"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_homecats3_chk" id="ty_blogposts_homecats3_chk" value="1" ' . (( $sub4settings["ty_blogposts_homecats3_chk"]==1 )? 'checked="checked"' : null) . ' /> باکس سوم 
									</td>
								</tr>
								<tr>
									<th>انتخاب دسته : </th>
									<td>
										'; wp_dropdown_categories( array( 'name' => 'ty_blogposts_homecats3_num', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats3_num"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats3_num"] ) ) . '' ) ); echo '
									</td>
								<tr>
								</tr>
									<th>تعداد مطالب جهت نمایش :</th>
									<td>
										<input type="text" name="ty_blogposts_homecats3_list" id="ty_blogposts_homecats3_list" value="' . ( stripslashes( $sub4settings["ty_blogposts_homecats3_list"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_homecats4_chk" id="ty_blogposts_homecats4_chk" value="1" ' . (( $sub4settings["ty_blogposts_homecats4_chk"]==1 )? 'checked="checked"' : null) . ' /> باکس چهارم
									</td>
								</tr>
								<tr>
									<th>انتخاب دسته : </th>
									<td>
										'; wp_dropdown_categories( array( 'name' => 'ty_blogposts_homecats4_num', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats4_num"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats4_num"] ) ) . '' ) ); echo '
									</td>
								<tr>
								</tr>
									<th>تعداد مطالب جهت نمایش :</th>
									<td>
										<input type="text" name="ty_blogposts_homecats4_list" id="ty_blogposts_homecats4_list" value="' . ( stripslashes( $sub4settings["ty_blogposts_homecats4_list"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_homecats5_chk" id="ty_blogposts_homecats5_chk" value="1" ' . (( $sub4settings["ty_blogposts_homecats5_chk"]==1 )? 'checked="checked"' : null) . ' /> باکس پنجم
									</td>
								</tr>
								<tr>
									<th>انتخاب دسته : </th>
									<td>
										'; wp_dropdown_categories( array( 'name' => 'ty_blogposts_homecats5_num', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats5_num"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats5_num"] ) ) . '' ) ); echo '
									</td>
								<tr>
								</tr>
									<th>تعداد مطالب جهت نمایش :</th>
									<td>
										<input type="text" name="ty_blogposts_homecats5_list" id="ty_blogposts_homecats5_list" value="' . ( stripslashes( $sub4settings["ty_blogposts_homecats5_list"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogposts_homecats6_chk" id="ty_blogposts_homecats6_chk" value="1" ' . (( $sub4settings["ty_blogposts_homecats6_chk"]==1 )? 'checked="checked"' : null) . ' /> باکس ششم
									</td>
								</tr>
								<tr>
									<th>انتخاب دسته : </th>
									<td>
										'; wp_dropdown_categories( array( 'name' => 'ty_blogposts_homecats6_num', 'value_field' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats6_num"] ) ) . '', 'selected' => '' . ( stripslashes( $sub4settings["ty_blogposts_homecats6_num"] ) ) . '' ) ); echo '
									</td>
								<tr>
								</tr>
									<th>تعداد مطالب جهت نمایش :</th>
									<td>
										<input type="text" name="ty_blogposts_homecats6_list" id="ty_blogposts_homecats6_list" value="' . ( stripslashes( $sub4settings["ty_blogposts_homecats6_list"] ) ) . '" />
									</td>
								</tr>
							</table>
							';
						break;
						case 'tyop-blogsidebar' : 
							echo '
							<tr>
								<td>
									<input type="checkbox" name="ty_blogsidebar_chk1" id="ty_blogsidebar_chk1" value="1" ' . (( $sub4settings["ty_blogsidebar_chk1"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس دسته بندی ها</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogsidebar_chk2" id="ty_blogsidebar_chk2" value="1" ' . (( $sub4settings["ty_blogsidebar_chk2"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس جستجو</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogsidebar_chk3" id="ty_blogsidebar_chk3" value="1" ' . (( $sub4settings["ty_blogsidebar_chk3"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس آخرین مطالب</span>
								</td>
							</tr>
							<tr>
								<td>
									<input type="checkbox" name="ty_blogsidebar_chk4" id="ty_blogsidebar_chk4" value="1" ' . (( $sub4settings["ty_blogsidebar_chk4"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس آخرین نظرات</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogsidebar_chk5" id="ty_blogsidebar_chk5" value="1" ' . (( $sub4settings["ty_blogsidebar_chk5"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس آرشیو</span>
								</td>
								<td>
									<input type="checkbox" name="ty_blogsidebar_chk6" id="ty_blogsidebar_chk6" value="1" ' . (( $sub4settings["ty_blogsidebar_chk6"]==1 )? 'checked="checked"' : null) . ' />
									<span class="description">غیرفعال کردن باکس برچسب ها</span>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<table class="form-table">
								<tr>
									<td>
										<input type="checkbox" name="ty_blogsidebar_chk7" id="ty_blogsidebar_chk7" value="1" ' . (( $sub4settings["ty_blogsidebar_chk7"]==1 )? 'checked="checked"' : null) . ' />
										<span class="description">فعالسازیِ نمایش ابزارک های متغیر (تنظیم و کنترل از بخش نمایش > ابزارک ها)</span>
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							</table>
							<table class="form-table">
								<tr>
									<td>
										باکس دسته بندی ها
									</td>
								</tr>
							</table>
							<table class="form-table">
								<tr>
									<td>
										<input type="checkbox" name="ty_blogsidebar_catnum_chk" id="ty_blogsidebar_catnum_chk" value="1" ' . (( $sub4settings["ty_blogsidebar_catnum_chk"]==1 )? 'checked="checked"' : null) . ' />
										<span class="description">نمایش تعداد نوشته‌ها</span>
									</td>
								</tr>
								<tr>
									<td>
										<input type="checkbox" name="ty_blogsidebar_catrss_chk" id="ty_blogsidebar_catrss_chk" value="1" ' . (( $sub4settings["ty_blogsidebar_catrss_chk"]==1 )? 'checked="checked"' : null) . ' />
										<span class="description">نمایش دکمه RSS دسته ها</span>
									</td>
								</tr>
							</table>
							<table class="form-table">
								<tr>
									<th>عنوان باکس : </th>
									<td>
										<input type="text" name="ty_blogsidebar_cattitle" id="ty_blogsidebar_cattitle" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_cattitle"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<th>تصویر آیکون RSS : </th>
									<td>
										<input type="text" name="ty_blogsidebar_catrssimg" id="ty_blogsidebar_catrssimg" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_catrssimg"] ) ) . '" />
										<img style="max-width:16px;margin-bottom:-3px;" src="' . ( stripslashes( $sub4settings["ty_blogsidebar_catrssimg"] ) ) . '" /> 
										<span class="description"> اندازه آیکون نباید بیشتر از 16 * 16 پیکسل باشد</span>
									</td>
								</tr>
								<tr>
									<th>تعداد دسته جهت نمایش : </th>
									<td>
										<input type="text" name="ty_blogsidebar_catnum" id="ty_blogsidebar_catnum" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_catnum"] ) ) . '" />
										<span class="description"> برای نمایش همه دسته ها، این گزینه را خالی بگذارید</span>
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										باکس جستجو
									</td>
								</tr>
								<tr>
									<th>عنوان باکس : </th>
									<td>
										<input type="text" name="ty_blogsidebar_searchtitle" id="ty_blogsidebar_searchtitle" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_searchtitle"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										باکس آخرین مطالب
									</td>
								</tr>
								<tr>
									<th>عنوان باکس : </th>
									<td>
										<input type="text" name="ty_blogsidebar_posttitle" id="ty_blogsidebar_posttitle" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_posttitle"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<th>تعداد مطالب جهت نمایش : </th>
									<td>
										<input type="text" name="ty_blogsidebar_postnum" id="ty_blogsidebar_postnum" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_postnum"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										باکس آخرین نظرات
									</td>
								</tr>
								<tr>
									<th>عنوان باکس : </th>
									<td>
										<input type="text" name="ty_blogsidebar_commtitle" id="ty_blogsidebar_commtitle" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_commtitle"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<th>تعداد نظرات جهت نمایش : </th>
									<td>
										<input type="text" name="ty_blogsidebar_commnum" id="ty_blogsidebar_commnum" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_commnum"] ) ) . '" />
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										باکس آرشیو
									</td>
								</tr>
								<tr>
									<th>عنوان باکس : </th>
									<td>
										<input type="text" name="ty_blogsidebar_archtitle" id="ty_blogsidebar_archtitle" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_archtitle"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<th>نوع نمایش : </th>
									<td>
										<select id="ty_chaty_chatonline" name="ty_blogsidebar_archtype"><option value="monthly" ' . (( $sub4settings["ty_blogsidebar_archtype"]=='monthly' )? 'selected="selected"' : null) . '>ماهانه</option><option value="weekly" ' . (( $sub4settings["ty_blogsidebar_archtype"]=='weekly' )? 'selected="selected"' : null) . '>هفتگی</option><option value="daily" ' . (( $sub4settings["ty_blogsidebar_archtype"]=='daily' )? 'selected="selected"' : null) . '>روزانه</option></select>
									</td>
								</tr>
								<tr>
									<th>تعداد جهت نمایش : </th>
									<td>
										<input type="text" name="ty_blogsidebar_archnum" id="ty_blogsidebar_archnum" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_archnum"] ) ) . '" />
										<span class="description"> برای نمایش همه، این گزینه را خالی بگذارید</span>
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
								<tr>
									<td>
										باکس برچسب ها
									</td>
								</tr>
								<tr>
									<th>عنوان باکس : </th>
									<td>
										<input type="text" name="ty_blogsidebar_tagtitle" id="ty_blogsidebar_tagtitle" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_tagtitle"] ) ) . '" />
									</td>
								</tr>
								<tr>
									<th>تعداد برچسب‎ها جهت نمایش : </th>
									<td>
										<input type="text" name="ty_blogsidebar_tagnum" id="ty_blogsidebar_tagnum" value="' . ( stripslashes( $sub4settings["ty_blogsidebar_tagnum"] ) ) . '" />
										<span class="description"> برای نمایش همه برچسب ها، این گزینه را خالی بگذارید</span>
									</td>
								</tr>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							</table>
							';
						break;
						case 'tyop-blogsideads' : 
							echo '
							<h2 style="text-align: center; color:#ff0000;">استفاده از تگ های HTML مجاز است</h2>
								<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>افزودن محتویات سایدبار (1)</label></th>
								<td>
									<textarea name="ty_blogsideads_1_cont" id="ty_blogsideads_1_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_1_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_1_title" id="ty_blogsideads_1_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_1_title"] ) ) . '" />
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>افزودن محتویات سایدبار (2)</label></th>
								<td>
									<textarea name="ty_blogsideads_2_cont" id="ty_blogsideads_2_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_2_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_2_title" id="ty_blogsideads_2_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_2_title"] ) ) . '" />
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>افزودن محتویات سایدبار (3)</label></th>
								<td>
									<textarea name="ty_blogsideads_3_cont" id="ty_blogsideads_3_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_3_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_3_title" id="ty_blogsideads_3_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_3_title"] ) ) . '" />
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>افزودن محتویات سایدبار (4)</label></th>
								<td>
									<textarea name="ty_blogsideads_4_cont" id="ty_blogsideads_4_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_4_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_4_title" id="ty_blogsideads_4_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_4_title"] ) ) . '" />
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>افزودن محتویات سایدبار (5)</label></th>
								<td>
									<textarea name="ty_blogsideads_5_cont" id="ty_blogsideads_5_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_5_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_5_title" id="ty_blogsideads_5_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_5_title"] ) ) . '" />
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>افزودن محتویات سایدبار (6)</label></th>
								<td>
									<textarea name="ty_blogsideads_6_cont" id="ty_blogsideads_6_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_6_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_6_title" id="ty_blogsideads_6_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_6_title"] ) ) . '" />
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>إضافة كود الإعلان أو محتوى إضافي أسفل البلوك (6)</label></th>
								<td>
									<textarea name="ty_blogsideads_7_cont" id="ty_blogsideads_7_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogsideads_7_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr>
								<th><label>عنوان باکس (سایدبار) : </label></th>
								<td>
									<input type="text" name="ty_blogsideads_7_title" id="ty_blogsideads_7_title" value="' .  ( stripslashes( $sub4settings["ty_blogsideads_7_title"] ) ) . '" />
								</td>
							</tr>
							';
						break;
						case 'tyop-blogpagesads' : 
							echo '
							<tr>
								<th><label>کدهای آگهی جهت نمایش در پائینِ مطالبِ سایت در صفحه اصلی بلاگ (بالای فوتر و قسمت شماره صفحات) </label></th>
								<td>
									<textarea name="ty_blogpagesads_1_cont" id="ty_blogpagesads_1_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_1_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>کدهای آگهی جهت نمایش در پائینِ مطالبِ سایت در صفحه اصلی بلاگ (بالای باکس های نمایش دسته ها) : </label></th>
								<td>
									<textarea name="ty_blogpagesads_2_cont" id="ty_blogpagesads_2_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_2_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>کدهای آگهی جهت نمایش در وسط باکس های نمایش دسته ها (بین باکس سوم و چهارم) : </label></th>
								<td>
									<textarea name="ty_blogpagesads_3_cont" id="ty_blogpagesads_3_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_3_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>کدهای آگهی جهت نمایش بعد از تصویر شاخص و قبل از متن هر مطلب (فقط صفحه مطالب) : </label></th>
								<td>
									<textarea name="ty_blogpagesads_4_cont" id="ty_blogpagesads_4_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_4_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>کدهای آگهی جهت نمایش پائینِ متن هر مطلب (فقط صفحه مطالب) : </label></th>
								<td>
									<textarea name="ty_blogpagesads_5_cont" id="ty_blogpagesads_5_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_5_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>کدهای آگهی جهت نمایش در بالای بخش نظرات هر مطلب : </label></th>
								<td>
									<textarea name="ty_blogpagesads_6_cont" id="ty_blogpagesads_6_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_6_cont"] ) ) . '</textarea>
								</td>
							</tr>
							<tr class="ty-panel-border"><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr>
							<tr>
								<th><label>کدهای آگهی جهت نمایش در بالای تمامی صفحات : </label></th>
								<td>
									<textarea name="ty_blogpagesads_7_cont" id="ty_blogpagesads_7_cont" cols="60" rows="5" >' . ( stripslashes( $sub4settings["ty_blogpagesads_7_cont"] ) ) . '</textarea>
								</td>
							</tr>
							';
						break;
					}
					echo '</table>';
				}
				echo '
				<p class="submit" style="clear: both;">
					<input type="submit" name="Submit"  class="button-primary" value="ذخیره تغییرات" />
					<input type="hidden" name="ty-sub4settings-submit" value="Y" />
				</p>
			</form>
			<p>' . $theme_data['Name'] . ' - ترجمه، توسعه و بهینه سازی  توسط : عقیل حسین زاده || <span>پشتیبانی : <a target="_blank" href="https://hyrcanweb.ir">hyrcanweb.ir</a> </span> || <span>ایمیل : info@hyrcanweb.ir  -  aghil.hosseinzadeh@gmail.com</span> || تلگرام : <a target="_blank" href="https://telegram.me/AGhilHz">@AGhilHz</a></p>
		</div>

	</div>
';
}
// end sub menu 4


?>