<?php

add_action('init','of_options');

if (!function_exists('of_options'))
{
	function of_options()
	{
		//Access the WordPress Categories via an Array
		$of_categories 		= array();  
		$of_categories_obj 	= get_categories('hide_empty=0');
		foreach ($of_categories_obj as $of_cat) {
		$of_categories[$of_cat->cat_ID] = $of_cat->cat_name;}
		$categories_tmp 	= array_unshift($of_categories, "Select a category:");    
	       
		//Access the WordPress Pages via an Array
		$of_pages 			= array();
		$of_pages_obj 		= get_pages('sort_column=post_parent,menu_order');    
		foreach ($of_pages_obj as $of_page) {
		    $of_pages[$of_page->ID] = $of_page->post_name; }
		$of_pages_tmp 		= array_unshift($of_pages, "یک صفحه انتخاب نمایید");       
	
		//Testing 
		$of_options_msg_color = array(
		"alert-info"=>"آبی",
		"alert-warning"=>"زرد",
		"alert-success"=>"سبز",
		"alert-danger"=>"قرمز"); 
		$of_options_related_by = array(
		"download_tag"=>"تگ",
		"download_category"=>"دسته بندی"); 
		$icons_font_awesome=array(
		'fa-500px'   => '&#xf26e;',
		'fa-address-book'   => '&#xf2b9;',
		'fa-address-book-o'   => '&#xf2ba;',
		'fa-address-card'   => '&#xf2bb;',
		'fa-address-card-o'   => '&#xf2bc;',
		'fa-adjust'   => '&#xf042;',
		'fa-adn'   => '&#xf170;',
		'fa-align-center'   => '&#xf037;',
		'fa-align-justify'   => '&#xf039;',
		'fa-align-left'   => '&#xf036;',
		'fa-align-right'   => '&#xf038;',
		'fa-amazon'   => '&#xf270;',
		'fa-ambulance'   => '&#xf0f9;',
		'fa-american-sign-language-interpreting'   => '&#xf2a3;',
		'fa-anchor'   => '&#xf13d;',
		'fa-android'   => '&#xf17b;',
		'fa-angellist'   => '&#xf209;',
		'fa-angle-double-down'   => '&#xf103;',
		'fa-angle-double-left'   => '&#xf100;',
		'fa-angle-double-right'   => '&#xf101;',
		'fa-angle-double-up'   => '&#xf102;',
		'fa-angle-down'   => '&#xf107;',
		'fa-angle-left'   => '&#xf104;',
		'fa-angle-right'   => '&#xf105;',
		'fa-angle-up'   => '&#xf106;',
		'fa-apple'   => '&#xf179;',
		'fa-archive'   => '&#xf187;',
		'fa-area-chart'   => '&#xf1fe;',
		'fa-arrow-circle-down'   => '&#xf0ab;',
		'fa-arrow-circle-left'   => '&#xf0a8;',
		'fa-arrow-circle-o-down'   => '&#xf01a;',
		'fa-arrow-circle-o-left'   => '&#xf190;',
		'fa-arrow-circle-o-right'   => '&#xf18e;',
		'fa-arrow-circle-o-up'   => '&#xf01b;',
		'fa-arrow-circle-right'   => '&#xf0a9;',
		'fa-arrow-circle-up'   => '&#xf0aa;',
		'fa-arrow-down'   => '&#xf063;',
		'fa-arrow-left'   => '&#xf060;',
		'fa-arrow-right'   => '&#xf061;',
		'fa-arrow-up'   => '&#xf062;',
		'fa-arrows'   => '&#xf047;',
		'fa-arrows-alt'   => '&#xf0b2;',
		'fa-arrows-h'   => '&#xf07e;',
		'fa-arrows-v'   => '&#xf07d;',
		'fa-asl-interpreting'   => '&#xf2a3;',
		'fa-assistive-listening-systems'   => '&#xf2a2;',
		'fa-asterisk'   => '&#xf069;',
		'fa-at'   => '&#xf1fa;',
		'fa-audio-description'   => '&#xf29e;',
		'fa-automobile'   => '&#xf1b9;',
		'fa-backward'   => '&#xf04a;',
		'fa-balance-scale'   => '&#xf24e;',
		'fa-ban'   => '&#xf05e;',
		'fa-bandcamp'   => '&#xf2d5;',
		'fa-bank'   => '&#xf19c;',
		'fa-bar-chart'   => '&#xf080;',
		'fa-bar-chart-o'   => '&#xf080;',
		'fa-barcode'   => '&#xf02a;',
		'fa-bars'   => '&#xf0c9;',
		'fa-bath'   => '&#xf2cd;',
		'fa-bathtub'   => '&#xf2cd;',
		'fa-battery'   => '&#xf240;',
		'fa-battery-0'   => '&#xf244;',
		'fa-battery-1'   => '&#xf243;',
		'fa-battery-2'   => '&#xf242;',
		'fa-battery-3'   => '&#xf241;',
		'fa-battery-4'   => '&#xf240;',
		'fa-battery-empty'   => '&#xf244;',
		'fa-battery-full'   => '&#xf240;',
		'fa-battery-half'   => '&#xf242;',
		'fa-battery-quarter'   => '&#xf243;',
		'fa-battery-three-quarters'   => '&#xf241;',
		'fa-bed'   => '&#xf236;',
		'fa-beer'   => '&#xf0fc;',
		'fa-behance'   => '&#xf1b4;',
		'fa-behance-square'   => '&#xf1b5;',
		'fa-bell'   => '&#xf0f3;',
		'fa-bell-o'   => '&#xf0a2;',
		'fa-bell-slash'   => '&#xf1f6;',
		'fa-bell-slash-o'   => '&#xf1f7;',
		'fa-bicycle'   => '&#xf206;',
		'fa-binoculars'   => '&#xf1e5;',
		'fa-birthday-cake'   => '&#xf1fd;',
		'fa-bitbucket'   => '&#xf171;',
		'fa-bitbucket-square'   => '&#xf172;',
		'fa-bitcoin'   => '&#xf15a;',
		'fa-black-tie'   => '&#xf27e;',
		'fa-blind'   => '&#xf29d;',
		'fa-bluetooth'   => '&#xf293;',
		'fa-bluetooth-b'   => '&#xf294;',
		'fa-bold'   => '&#xf032;',
		'fa-bolt'   => '&#xf0e7;',
		'fa-bomb'   => '&#xf1e2;',
		'fa-book'   => '&#xf02d;',
		'fa-bookmark'   => '&#xf02e;',
		'fa-bookmark-o'   => '&#xf097;',
		'fa-braille'   => '&#xf2a1;',
		'fa-briefcase'   => '&#xf0b1;',
		'fa-btc'   => '&#xf15a;',
		'fa-bug'   => '&#xf188;',
		'fa-building'   => '&#xf1ad;',
		'fa-building-o'   => '&#xf0f7;',
		'fa-bullhorn'   => '&#xf0a1;',
		'fa-bullseye'   => '&#xf140;',
		'fa-bus'   => '&#xf207;',
		'fa-buysellads'   => '&#xf20d;',
		'fa-cab'   => '&#xf1ba;',
		'fa-calculator'   => '&#xf1ec;',
		'fa-calendar'   => '&#xf073;',
		'fa-calendar-check-o'   => '&#xf274;',
		'fa-calendar-minus-o'   => '&#xf272;',
		'fa-calendar-o'   => '&#xf133;',
		'fa-calendar-plus-o'   => '&#xf271;',
		'fa-calendar-times-o'   => '&#xf273;',
		'fa-camera'   => '&#xf030;',
		'fa-camera-retro'   => '&#xf083;',
		'fa-car'   => '&#xf1b9;',
		'fa-caret-down'   => '&#xf0d7;',
		'fa-caret-left'   => '&#xf0d9;',
		'fa-caret-right'   => '&#xf0da;',
		'fa-caret-square-o-down'   => '&#xf150;',
		'fa-caret-square-o-left'   => '&#xf191;',
		'fa-caret-square-o-right'   => '&#xf152;',
		'fa-caret-square-o-up'   => '&#xf151;',
		'fa-caret-up'   => '&#xf0d8;',
		'fa-cart-arrow-down'   => '&#xf218;',
		'fa-cart-plus'   => '&#xf217;',
		'fa-cc'   => '&#xf20a;',
		'fa-cc-amex'   => '&#xf1f3;',
		'fa-cc-diners-club'   => '&#xf24c;',
		'fa-cc-discover'   => '&#xf1f2;',
		'fa-cc-jcb'   => '&#xf24b;',
		'fa-cc-mastercard'   => '&#xf1f1;',
		'fa-cc-paypal'   => '&#xf1f4;',
		'fa-cc-stripe'   => '&#xf1f5;',
		'fa-cc-visa'   => '&#xf1f0;',
		'fa-certificate'   => '&#xf0a3;',
		'fa-chain'   => '&#xf0c1;',
		'fa-chain-broken'   => '&#xf127;',
		'fa-check'   => '&#xf00c;',
		'fa-check-circle'   => '&#xf058;',
		'fa-check-circle-o'   => '&#xf05d;',
		'fa-check-square'   => '&#xf14a;',
		'fa-check-square-o'   => '&#xf046;',
		'fa-chevron-circle-down'   => '&#xf13a;',
		'fa-chevron-circle-left'   => '&#xf137;',
		'fa-chevron-circle-right'   => '&#xf138;',
		'fa-chevron-circle-up'   => '&#xf139;',
		'fa-chevron-down'   => '&#xf078;',
		'fa-chevron-left'   => '&#xf053;',
		'fa-chevron-right'   => '&#xf054;',
		'fa-chevron-up'   => '&#xf077;',
		'fa-child'   => '&#xf1ae;',
		'fa-chrome'   => '&#xf268;',
		'fa-circle'   => '&#xf111;',
		'fa-circle-o'   => '&#xf10c;',
		'fa-circle-o-notch'   => '&#xf1ce;',
		'fa-circle-thin'   => '&#xf1db;',
		'fa-clipboard'   => '&#xf0ea;',
		'fa-clock-o'   => '&#xf017;',
		'fa-clone'   => '&#xf24d;',
		'fa-close'   => '&#xf00d;',
		'fa-cloud'   => '&#xf0c2;',
		'fa-cloud-download'   => '&#xf0ed;',
		'fa-cloud-upload'   => '&#xf0ee;',
		'fa-cny'   => '&#xf157;',
		'fa-code'   => '&#xf121;',
		'fa-code-fork'   => '&#xf126;',
		'fa-codepen'   => '&#xf1cb;',
		'fa-codiepie'   => '&#xf284;',
		'fa-coffee'   => '&#xf0f4;',
		'fa-cog'   => '&#xf013;',
		'fa-cogs'   => '&#xf085;',
		'fa-columns'   => '&#xf0db;',
		'fa-comment'   => '&#xf075;',
		'fa-comment-o'   => '&#xf0e5;',
		'fa-commenting'   => '&#xf27a;',
		'fa-commenting-o'   => '&#xf27b;',
		'fa-comments'   => '&#xf086;',
		'fa-comments-o'   => '&#xf0e6;',
		'fa-compass'   => '&#xf14e;',
		'fa-compress'   => '&#xf066;',
		'fa-connectdevelop'   => '&#xf20e;',
		'fa-contao'   => '&#xf26d;',
		'fa-copy'   => '&#xf0c5;',
		'fa-copyright'   => '&#xf1f9;',
		'fa-creative-commons'   => '&#xf25e;',
		'fa-credit-card'   => '&#xf09d;',
		'fa-credit-card-alt'   => '&#xf283;',
		'fa-crop'   => '&#xf125;',
		'fa-crosshairs'   => '&#xf05b;',
		'fa-css3'   => '&#xf13c;',
		'fa-cube'   => '&#xf1b2;',
		'fa-cubes'   => '&#xf1b3;',
		'fa-cut'   => '&#xf0c4;',
		'fa-cutlery'   => '&#xf0f5;',
		'fa-dashboard'   => '&#xf0e4;',
		'fa-dashcube'   => '&#xf210;',
		'fa-database'   => '&#xf1c0;',
		'fa-deaf'   => '&#xf2a4;',
		'fa-deafness'   => '&#xf2a4;',
		'fa-dedent'   => '&#xf03b;',
		'fa-delicious'   => '&#xf1a5;',
		'fa-desktop'   => '&#xf108;',
		'fa-deviantart'   => '&#xf1bd;',
		'fa-diamond'   => '&#xf219;',
		'fa-digg'   => '&#xf1a6;',
		'fa-dollar'   => '&#xf155;',
		'fa-dot-circle-o'   => '&#xf192;',
		'fa-download'   => '&#xf019;',
		'fa-dribbble'   => '&#xf17d;',
		'fa-drivers-license'   => '&#xf2c2;',
		'fa-drivers-license-o'   => '&#xf2c3;',
		'fa-dropbox'   => '&#xf16b;',
		'fa-drupal'   => '&#xf1a9;',
		'fa-edge'   => '&#xf282;',
		'fa-edit'   => '&#xf044;',
		'fa-eercast'   => '&#xf2da;',
		'fa-eject'   => '&#xf052;',
		'fa-ellipsis-h'   => '&#xf141;',
		'fa-ellipsis-v'   => '&#xf142;',
		'fa-empire'   => '&#xf1d1;',
		'fa-envelope'   => '&#xf0e0;',
		'fa-envelope-o'   => '&#xf003;',
		'fa-envelope-open'   => '&#xf2b6;',
		'fa-envelope-open-o'   => '&#xf2b7;',
		'fa-envelope-square'   => '&#xf199;',
		'fa-envira'   => '&#xf299;',
		'fa-eraser'   => '&#xf12d;',
		'fa-etsy'   => '&#xf2d7;',
		'fa-eur'   => '&#xf153;',
		'fa-euro'   => '&#xf153;',
		'fa-exchange'   => '&#xf0ec;',
		'fa-exclamation'   => '&#xf12a;',
		'fa-exclamation-circle'   => '&#xf06a;',
		'fa-exclamation-triangle'   => '&#xf071;',
		'fa-expand'   => '&#xf065;',
		'fa-expeditedssl'   => '&#xf23e;',
		'fa-external-link'   => '&#xf08e;',
		'fa-external-link-square'   => '&#xf14c;',
		'fa-eye'   => '&#xf06e;',
		'fa-eye-slash'   => '&#xf070;',
		'fa-eyedropper'   => '&#xf1fb;',
		'fa-fa'   => '&#xf2b4;',
		'fa-facebook'   => '&#xf09a;',
		'fa-facebook-f'   => '&#xf09a;',
		'fa-facebook-official'   => '&#xf230;',
		'fa-facebook-square'   => '&#xf082;',
		'fa-fast-backward'   => '&#xf049;',
		'fa-fast-forward'   => '&#xf050;',
		'fa-fax'   => '&#xf1ac;',
		'fa-feed'   => '&#xf09e;',
		'fa-female'   => '&#xf182;',
		'fa-fighter-jet'   => '&#xf0fb;',
		'fa-file'   => '&#xf15b;',
		'fa-file-archive-o'   => '&#xf1c6;',
		'fa-file-audio-o'   => '&#xf1c7;',
		'fa-file-code-o'   => '&#xf1c9;',
		'fa-file-excel-o'   => '&#xf1c3;',
		'fa-file-image-o'   => '&#xf1c5;',
		'fa-file-movie-o'   => '&#xf1c8;',
		'fa-file-o'   => '&#xf016;',
		'fa-file-pdf-o'   => '&#xf1c1;',
		'fa-file-photo-o'   => '&#xf1c5;',
		'fa-file-picture-o'   => '&#xf1c5;',
		'fa-file-powerpoint-o'   => '&#xf1c4;',
		'fa-file-sound-o'   => '&#xf1c7;',
		'fa-file-text'   => '&#xf15c;',
		'fa-file-text-o'   => '&#xf0f6;',
		'fa-file-video-o'   => '&#xf1c8;',
		'fa-file-word-o'   => '&#xf1c2;',
		'fa-file-zip-o'   => '&#xf1c6;',
		'fa-files-o'   => '&#xf0c5;',
		'fa-film'   => '&#xf008;',
		'fa-filter'   => '&#xf0b0;',
		'fa-fire'   => '&#xf06d;',
		'fa-fire-extinguisher'   => '&#xf134;',
		'fa-firefox'   => '&#xf269;',
		'fa-first-order'   => '&#xf2b0;',
		'fa-flag'   => '&#xf024;',
		'fa-flag-checkered'   => '&#xf11e;',
		'fa-flag-o'   => '&#xf11d;',
		'fa-flash'   => '&#xf0e7;',
		'fa-flask'   => '&#xf0c3;',
		'fa-flickr'   => '&#xf16e;',
		'fa-floppy-o'   => '&#xf0c7;',
		'fa-folder'   => '&#xf07b;',
		'fa-folder-o'   => '&#xf114;',
		'fa-folder-open'   => '&#xf07c;',
		'fa-folder-open-o'   => '&#xf115;',
		'fa-font'   => '&#xf031;',
		'fa-font-awesome'   => '&#xf2b4;',
		'fa-fonticons'   => '&#xf280;',
		'fa-fort-awesome'   => '&#xf286;',
		'fa-forumbee'   => '&#xf211;',
		'fa-forward'   => '&#xf04e;',
		'fa-foursquare'   => '&#xf180;',
		'fa-free-code-camp'   => '&#xf2c5;',
		'fa-frown-o'   => '&#xf119;',
		'fa-futbol-o'   => '&#xf1e3;',
		'fa-gamepad'   => '&#xf11b;',
		'fa-gavel'   => '&#xf0e3;',
		'fa-gbp'   => '&#xf154;',
		'fa-ge'   => '&#xf1d1;',
		'fa-gear'   => '&#xf013;',
		'fa-gears'   => '&#xf085;',
		'fa-genderless'   => '&#xf22d;',
		'fa-get-pocket'   => '&#xf265;',
		'fa-gg'   => '&#xf260;',
		'fa-gg-circle'   => '&#xf261;',
		'fa-gift'   => '&#xf06b;',
		'fa-git'   => '&#xf1d3;',
		'fa-git-square'   => '&#xf1d2;',
		'fa-github'   => '&#xf09b;',
		'fa-github-alt'   => '&#xf113;',
		'fa-github-square'   => '&#xf092;',
		'fa-gitlab'   => '&#xf296;',
		'fa-gittip'   => '&#xf184;',
		'fa-glass'   => '&#xf000;',
		'fa-glide'   => '&#xf2a5;',
		'fa-glide-g'   => '&#xf2a6;',
		'fa-globe'   => '&#xf0ac;',
		'fa-google'   => '&#xf1a0;',
		'fa-google-plus'   => '&#xf0d5;',
		'fa-google-plus-circle'   => '&#xf2b3;',
		'fa-google-plus-official'   => '&#xf2b3;',
		'fa-google-plus-square'   => '&#xf0d4;',
		'fa-google-wallet'   => '&#xf1ee;',
		'fa-graduation-cap'   => '&#xf19d;',
		'fa-gratipay'   => '&#xf184;',
		'fa-grav'   => '&#xf2d6;',
		'fa-group'   => '&#xf0c0;',
		'fa-h-square'   => '&#xf0fd;',
		'fa-hacker-news'   => '&#xf1d4;',
		'fa-hand-grab-o'   => '&#xf255;',
		'fa-hand-lizard-o'   => '&#xf258;',
		'fa-hand-o-down'   => '&#xf0a7;',
		'fa-hand-o-left'   => '&#xf0a5;',
		'fa-hand-o-right'   => '&#xf0a4;',
		'fa-hand-o-up'   => '&#xf0a6;',
		'fa-hand-paper-o'   => '&#xf256;',
		'fa-hand-peace-o'   => '&#xf25b;',
		'fa-hand-pointer-o'   => '&#xf25a;',
		'fa-hand-rock-o'   => '&#xf255;',
		'fa-hand-scissors-o'   => '&#xf257;',
		'fa-hand-spock-o'   => '&#xf259;',
		'fa-hand-stop-o'   => '&#xf256;',
		'fa-handshake-o'   => '&#xf2b5;',
		'fa-hard-of-hearing'   => '&#xf2a4;',
		'fa-hashtag'   => '&#xf292;',
		'fa-hdd-o'   => '&#xf0a0;',
		'fa-header'   => '&#xf1dc;',
		'fa-headphones'   => '&#xf025;',
		'fa-heart'   => '&#xf004;',
		'fa-heart-o'   => '&#xf08a;',
		'fa-heartbeat'   => '&#xf21e;',
		'fa-history'   => '&#xf1da;',
		'fa-home'   => '&#xf015;',
		'fa-hospital-o'   => '&#xf0f8;',
		'fa-hotel'   => '&#xf236;',
		'fa-hourglass'   => '&#xf254;',
		'fa-hourglass-1'   => '&#xf251;',
		'fa-hourglass-2'   => '&#xf252;',
		'fa-hourglass-3'   => '&#xf253;',
		'fa-hourglass-end'   => '&#xf253;',
		'fa-hourglass-half'   => '&#xf252;',
		'fa-hourglass-o'   => '&#xf250;',
		'fa-hourglass-start'   => '&#xf251;',
		'fa-houzz'   => '&#xf27c;',
		'fa-html5'   => '&#xf13b;',
		'fa-i-cursor'   => '&#xf246;',
		'fa-id-badge'   => '&#xf2c1;',
		'fa-id-card'   => '&#xf2c2;',
		'fa-id-card-o'   => '&#xf2c3;',
		'fa-ils'   => '&#xf20b;',
		'fa-image'   => '&#xf03e;',
		'fa-imdb'   => '&#xf2d8;',
		'fa-inbox'   => '&#xf01c;',
		'fa-indent'   => '&#xf03c;',
		'fa-industry'   => '&#xf275;',
		'fa-info'   => '&#xf129;',
		'fa-info-circle'   => '&#xf05a;',
		'fa-inr'   => '&#xf156;',
		'fa-instagram'   => '&#xf16d;',
		'fa-institution'   => '&#xf19c;',
		'fa-internet-explorer'   => '&#xf26b;',
		'fa-intersex'   => '&#xf224;',
		'fa-ioxhost'   => '&#xf208;',
		'fa-italic'   => '&#xf033;',
		'fa-joomla'   => '&#xf1aa;',
		'fa-jpy'   => '&#xf157;',
		'fa-jsfiddle'   => '&#xf1cc;',
		'fa-key'   => '&#xf084;',
		'fa-keyboard-o'   => '&#xf11c;',
		'fa-krw'   => '&#xf159;',
		'fa-language'   => '&#xf1ab;',
		'fa-laptop'   => '&#xf109;',
		'fa-lastfm'   => '&#xf202;',
		'fa-lastfm-square'   => '&#xf203;',
		'fa-leaf'   => '&#xf06c;',
		'fa-leanpub'   => '&#xf212;',
		'fa-legal'   => '&#xf0e3;',
		'fa-lemon-o'   => '&#xf094;',
		'fa-level-down'   => '&#xf149;',
		'fa-level-up'   => '&#xf148;',
		'fa-life-bouy'   => '&#xf1cd;',
		'fa-life-buoy'   => '&#xf1cd;',
		'fa-life-ring'   => '&#xf1cd;',
		'fa-life-saver'   => '&#xf1cd;',
		'fa-lightbulb-o'   => '&#xf0eb;',
		'fa-line-chart'   => '&#xf201;',
		'fa-link'   => '&#xf0c1;',
		'fa-linkedin'   => '&#xf0e1;',
		'fa-linkedin-square'   => '&#xf08c;',
		'fa-linode'   => '&#xf2b8;',
		'fa-linux'   => '&#xf17c;',
		'fa-list'   => '&#xf03a;',
		'fa-list-alt'   => '&#xf022;',
		'fa-list-ol'   => '&#xf0cb;',
		'fa-list-ul'   => '&#xf0ca;',
		'fa-location-arrow'   => '&#xf124;',
		'fa-lock'   => '&#xf023;',
		'fa-long-arrow-down'   => '&#xf175;',
		'fa-long-arrow-left'   => '&#xf177;',
		'fa-long-arrow-right'   => '&#xf178;',
		'fa-long-arrow-up'   => '&#xf176;',
		'fa-low-vision'   => '&#xf2a8;',
		'fa-magic'   => '&#xf0d0;',
		'fa-magnet'   => '&#xf076;',
		'fa-mail-forward'   => '&#xf064;',
		'fa-mail-reply'   => '&#xf112;',
		'fa-mail-reply-all'   => '&#xf122;',
		'fa-male'   => '&#xf183;',
		'fa-map'   => '&#xf279;',
		'fa-map-marker'   => '&#xf041;',
		'fa-map-o'   => '&#xf278;',
		'fa-map-pin'   => '&#xf276;',
		'fa-map-signs'   => '&#xf277;',
		'fa-mars'   => '&#xf222;',
		'fa-mars-double'   => '&#xf227;',
		'fa-mars-stroke'   => '&#xf229;',
		'fa-mars-stroke-h'   => '&#xf22b;',
		'fa-mars-stroke-v'   => '&#xf22a;',
		'fa-maxcdn'   => '&#xf136;',
		'fa-meanpath'   => '&#xf20c;',
		'fa-medium'   => '&#xf23a;',
		'fa-medkit'   => '&#xf0fa;',
		'fa-meetup'   => '&#xf2e0;',
		'fa-meh-o'   => '&#xf11a;',
		'fa-mercury'   => '&#xf223;',
		'fa-microchip'   => '&#xf2db;',
		'fa-microphone'   => '&#xf130;',
		'fa-microphone-slash'   => '&#xf131;',
		'fa-minus'   => '&#xf068;',
		'fa-minus-circle'   => '&#xf056;',
		'fa-minus-square'   => '&#xf146;',
		'fa-minus-square-o'   => '&#xf147;',
		'fa-mixcloud'   => '&#xf289;',
		'fa-mobile'   => '&#xf10b;',
		'fa-mobile-phone'   => '&#xf10b;',
		'fa-modx'   => '&#xf285;',
		'fa-money'   => '&#xf0d6;',
		'fa-moon-o'   => '&#xf186;',
		'fa-mortar-board'   => '&#xf19d;',
		'fa-motorcycle'   => '&#xf21c;',
		'fa-mouse-pointer'   => '&#xf245;',
		'fa-music'   => '&#xf001;',
		'fa-navicon'   => '&#xf0c9;',
		'fa-neuter'   => '&#xf22c;',
		'fa-newspaper-o'   => '&#xf1ea;',
		'fa-object-group'   => '&#xf247;',
		'fa-object-ungroup'   => '&#xf248;',
		'fa-odnoklassniki'   => '&#xf263;',
		'fa-odnoklassniki-square'   => '&#xf264;',
		'fa-opencart'   => '&#xf23d;',
		'fa-openid'   => '&#xf19b;',
		'fa-opera'   => '&#xf26a;',
		'fa-optin-monster'   => '&#xf23c;',
		'fa-outdent'   => '&#xf03b;',
		'fa-pagelines'   => '&#xf18c;',
		'fa-paint-brush'   => '&#xf1fc;',
		'fa-paper-plane'   => '&#xf1d8;',
		'fa-paper-plane-o'   => '&#xf1d9;',
		'fa-paperclip'   => '&#xf0c6;',
		'fa-paragraph'   => '&#xf1dd;',
		'fa-paste'   => '&#xf0ea;',
		'fa-pause'   => '&#xf04c;',
		'fa-pause-circle'   => '&#xf28b;',
		'fa-pause-circle-o'   => '&#xf28c;',
		'fa-paw'   => '&#xf1b0;',
		'fa-paypal'   => '&#xf1ed;',
		'fa-pencil'   => '&#xf040;',
		'fa-pencil-square'   => '&#xf14b;',
		'fa-pencil-square-o'   => '&#xf044;',
		'fa-percent'   => '&#xf295;',
		'fa-phone'   => '&#xf095;',
		'fa-phone-square'   => '&#xf098;',
		'fa-photo'   => '&#xf03e;',
		'fa-picture-o'   => '&#xf03e;',
		'fa-pie-chart'   => '&#xf200;',
		'fa-pied-piper'   => '&#xf2ae;',
		'fa-pied-piper-alt'   => '&#xf1a8;',
		'fa-pied-piper-pp'   => '&#xf1a7;',
		'fa-pinterest'   => '&#xf0d2;',
		'fa-pinterest-p'   => '&#xf231;',
		'fa-pinterest-square'   => '&#xf0d3;',
		'fa-plane'   => '&#xf072;',
		'fa-play'   => '&#xf04b;',
		'fa-play-circle'   => '&#xf144;',
		'fa-play-circle-o'   => '&#xf01d;',
		'fa-plug'   => '&#xf1e6;',
		'fa-plus'   => '&#xf067;',
		'fa-plus-circle'   => '&#xf055;',
		'fa-plus-square'   => '&#xf0fe;',
		'fa-plus-square-o'   => '&#xf196;',
		'fa-podcast'   => '&#xf2ce;',
		'fa-power-off'   => '&#xf011;',
		'fa-print'   => '&#xf02f;',
		'fa-product-hunt'   => '&#xf288;',
		'fa-puzzle-piece'   => '&#xf12e;',
		'fa-qq'   => '&#xf1d6;',
		'fa-qrcode'   => '&#xf029;',
		'fa-question'   => '&#xf128;',
		'fa-question-circle'   => '&#xf059;',
		'fa-question-circle-o'   => '&#xf29c;',
		'fa-quora'   => '&#xf2c4;',
		'fa-quote-left'   => '&#xf10d;',
		'fa-quote-right'   => '&#xf10e;',
		'fa-ra'   => '&#xf1d0;',
		'fa-random'   => '&#xf074;',
		'fa-ravelry'   => '&#xf2d9;',
		'fa-rebel'   => '&#xf1d0;',
		'fa-recycle'   => '&#xf1b8;',
		'fa-reddit'   => '&#xf1a1;',
		'fa-reddit-alien'   => '&#xf281;',
		'fa-reddit-square'   => '&#xf1a2;',
		'fa-refresh'   => '&#xf021;',
		'fa-registered'   => '&#xf25d;',
		'fa-remove'   => '&#xf00d;',
		'fa-renren'   => '&#xf18b;',
		'fa-reorder'   => '&#xf0c9;',
		'fa-repeat'   => '&#xf01e;',
		'fa-reply'   => '&#xf112;',
		'fa-reply-all'   => '&#xf122;',
		'fa-resistance'   => '&#xf1d0;',
		'fa-retweet'   => '&#xf079;',
		'fa-rmb'   => '&#xf157;',
		'fa-road'   => '&#xf018;',
		'fa-rocket'   => '&#xf135;',
		'fa-rotate-left'   => '&#xf0e2;',
		'fa-rotate-right'   => '&#xf01e;',
		'fa-rouble'   => '&#xf158;',
		'fa-rss'   => '&#xf09e;',
		'fa-rss-square'   => '&#xf143;',
		'fa-rub'   => '&#xf158;',
		'fa-ruble'   => '&#xf158;',
		'fa-rupee'   => '&#xf156;',
		'fa-s15'   => '&#xf2cd;',
		'fa-safari'   => '&#xf267;',
		'fa-save'   => '&#xf0c7;',
		'fa-scissors'   => '&#xf0c4;',
		'fa-scribd'   => '&#xf28a;',
		'fa-search'   => '&#xf002;',
		'fa-search-minus'   => '&#xf010;',
		'fa-search-plus'   => '&#xf00e;',
		'fa-sellsy'   => '&#xf213;',
		'fa-send'   => '&#xf1d8;',
		'fa-send-o'   => '&#xf1d9;',
		'fa-server'   => '&#xf233;',
		'fa-share'   => '&#xf064;',
		'fa-share-alt'   => '&#xf1e0;',
		'fa-share-alt-square'   => '&#xf1e1;',
		'fa-share-square'   => '&#xf14d;',
		'fa-share-square-o'   => '&#xf045;',
		'fa-shekel'   => '&#xf20b;',
		'fa-sheqel'   => '&#xf20b;',
		'fa-shield'   => '&#xf132;',
		'fa-ship'   => '&#xf21a;',
		'fa-shirtsinbulk'   => '&#xf214;',
		'fa-shopping-bag'   => '&#xf290;',
		'fa-shopping-basket'   => '&#xf291;',
		'fa-shopping-cart'   => '&#xf07a;',
		'fa-shower'   => '&#xf2cc;',
		'fa-sign-in'   => '&#xf090;',
		'fa-sign-language'   => '&#xf2a7;',
		'fa-sign-out'   => '&#xf08b;',
		'fa-signal'   => '&#xf012;',
		'fa-signing'   => '&#xf2a7;',
		'fa-simplybuilt'   => '&#xf215;',
		'fa-sitemap'   => '&#xf0e8;',
		'fa-skyatlas'   => '&#xf216;',
		'fa-skype'   => '&#xf17e;',
		'fa-slack'   => '&#xf198;',
		'fa-sliders'   => '&#xf1de;',
		'fa-slideshare'   => '&#xf1e7;',
		'fa-smile-o'   => '&#xf118;',
		'fa-snapchat'   => '&#xf2ab;',
		'fa-snapchat-ghost'   => '&#xf2ac;',
		'fa-snapchat-square'   => '&#xf2ad;',
		'fa-snowflake-o'   => '&#xf2dc;',
		'fa-soccer-ball-o'   => '&#xf1e3;',
		'fa-sort'   => '&#xf0dc;',
		'fa-sort-alpha-asc'   => '&#xf15d;',
		'fa-sort-alpha-desc'   => '&#xf15e;',
		'fa-sort-amount-asc'   => '&#xf160;',
		'fa-sort-amount-desc'   => '&#xf161;',
		'fa-sort-asc'   => '&#xf0de;',
		'fa-sort-desc'   => '&#xf0dd;',
		'fa-sort-down'   => '&#xf0dd;',
		'fa-sort-numeric-asc'   => '&#xf162;',
		'fa-sort-numeric-desc'   => '&#xf163;',
		'fa-sort-up'   => '&#xf0de;',
		'fa-soundcloud'   => '&#xf1be;',
		'fa-space-shuttle'   => '&#xf197;',
		'fa-spinner'   => '&#xf110;',
		'fa-spoon'   => '&#xf1b1;',
		'fa-spotify'   => '&#xf1bc;',
		'fa-square'   => '&#xf0c8;',
		'fa-square-o'   => '&#xf096;',
		'fa-stack-exchange'   => '&#xf18d;',
		'fa-stack-overflow'   => '&#xf16c;',
		'fa-star'   => '&#xf005;',
		'fa-star-half'   => '&#xf089;',
		'fa-star-half-empty'   => '&#xf123;',
		'fa-star-half-full'   => '&#xf123;',
		'fa-star-half-o'   => '&#xf123;',
		'fa-star-o'   => '&#xf006;',
		'fa-steam'   => '&#xf1b6;',
		'fa-steam-square'   => '&#xf1b7;',
		'fa-step-backward'   => '&#xf048;',
		'fa-step-forward'   => '&#xf051;',
		'fa-stethoscope'   => '&#xf0f1;',
		'fa-sticky-note'   => '&#xf249;',
		'fa-sticky-note-o'   => '&#xf24a;',
		'fa-stop'   => '&#xf04d;',
		'fa-stop-circle'   => '&#xf28d;',
		'fa-stop-circle-o'   => '&#xf28e;',
		'fa-street-view'   => '&#xf21d;',
		'fa-strikethrough'   => '&#xf0cc;',
		'fa-stumbleupon'   => '&#xf1a4;',
		'fa-stumbleupon-circle'   => '&#xf1a3;',
		'fa-subscript'   => '&#xf12c;',
		'fa-subway'   => '&#xf239;',
		'fa-suitcase'   => '&#xf0f2;',
		'fa-sun-o'   => '&#xf185;',
		'fa-superpowers'   => '&#xf2dd;',
		'fa-superscript'   => '&#xf12b;',
		'fa-support'   => '&#xf1cd;',
		'fa-table'   => '&#xf0ce;',
		'fa-tablet'   => '&#xf10a;',
		'fa-tachometer'   => '&#xf0e4;',
		'fa-tag'   => '&#xf02b;',
		'fa-tags'   => '&#xf02c;',
		'fa-tasks'   => '&#xf0ae;',
		'fa-taxi'   => '&#xf1ba;',
		'fa-telegram'   => '&#xf2c6;',
		'fa-television'   => '&#xf26c;',
		'fa-tencent-weibo'   => '&#xf1d5;',
		'fa-terminal'   => '&#xf120;',
		'fa-text-height'   => '&#xf034;',
		'fa-text-width'   => '&#xf035;',
		'fa-th'   => '&#xf00a;',
		'fa-th-large'   => '&#xf009;',
		'fa-th-list'   => '&#xf00b;',
		'fa-themeisle'   => '&#xf2b2;',
		'fa-thermometer'   => '&#xf2c7;',
		'fa-thermometer-0'   => '&#xf2cb;',
		'fa-thermometer-1'   => '&#xf2ca;',
		'fa-thermometer-2'   => '&#xf2c9;',
		'fa-thermometer-3'   => '&#xf2c8;',
		'fa-thermometer-4'   => '&#xf2c7;',
		'fa-thermometer-empty'   => '&#xf2cb;',
		'fa-thermometer-full'   => '&#xf2c7;',
		'fa-thermometer-half'   => '&#xf2c9;',
		'fa-thermometer-quarter'   => '&#xf2ca;',
		'fa-thermometer-three-quarters'   => '&#xf2c8;',
		'fa-thumb-tack'   => '&#xf08d;',
		'fa-thumbs-down'   => '&#xf165;',
		'fa-thumbs-o-down'   => '&#xf088;',
		'fa-thumbs-o-up'   => '&#xf087;',
		'fa-thumbs-up'   => '&#xf164;',
		'fa-ticket'   => '&#xf145;',
		'fa-times'   => '&#xf00d;',
		'fa-times-circle'   => '&#xf057;',
		'fa-times-circle-o'   => '&#xf05c;',
		'fa-times-rectangle'   => '&#xf2d3;',
		'fa-times-rectangle-o'   => '&#xf2d4;',
		'fa-tint'   => '&#xf043;',
		'fa-toggle-down'   => '&#xf150;',
		'fa-toggle-left'   => '&#xf191;',
		'fa-toggle-off'   => '&#xf204;',
		'fa-toggle-on'   => '&#xf205;',
		'fa-toggle-right'   => '&#xf152;',
		'fa-toggle-up'   => '&#xf151;',
		'fa-trademark'   => '&#xf25c;',
		'fa-train'   => '&#xf238;',
		'fa-transgender'   => '&#xf224;',
		'fa-transgender-alt'   => '&#xf225;',
		'fa-trash'   => '&#xf1f8;',
		'fa-trash-o'   => '&#xf014;',
		'fa-tree'   => '&#xf1bb;',
		'fa-trello'   => '&#xf181;',
		'fa-tripadvisor'   => '&#xf262;',
		'fa-trophy'   => '&#xf091;',
		'fa-truck'   => '&#xf0d1;',
		'fa-try'   => '&#xf195;',
		'fa-tty'   => '&#xf1e4;',
		'fa-tumblr'   => '&#xf173;',
		'fa-tumblr-square'   => '&#xf174;',
		'fa-turkish-lira'   => '&#xf195;',
		'fa-tv'   => '&#xf26c;',
		'fa-twitch'   => '&#xf1e8;',
		'fa-twitter'   => '&#xf099;',
		'fa-twitter-square'   => '&#xf081;',
		'fa-umbrella'   => '&#xf0e9;',
		'fa-underline'   => '&#xf0cd;',
		'fa-undo'   => '&#xf0e2;',
		'fa-universal-access'   => '&#xf29a;',
		'fa-university'   => '&#xf19c;',
		'fa-unlink'   => '&#xf127;',
		'fa-unlock'   => '&#xf09c;',
		'fa-unlock-alt'   => '&#xf13e;',
		'fa-unsorted'   => '&#xf0dc;',
		'fa-upload'   => '&#xf093;',
		'fa-usb'   => '&#xf287;',
		'fa-usd'   => '&#xf155;',
		'fa-user'   => '&#xf007;',
		'fa-user-circle'   => '&#xf2bd;',
		'fa-user-circle-o'   => '&#xf2be;',
		'fa-user-md'   => '&#xf0f0;',
		'fa-user-o'   => '&#xf2c0;',
		'fa-user-plus'   => '&#xf234;',
		'fa-user-secret'   => '&#xf21b;',
		'fa-user-times'   => '&#xf235;',
		'fa-users'   => '&#xf0c0;',
		'fa-vcard'   => '&#xf2bb;',
		'fa-vcard-o'   => '&#xf2bc;',
		'fa-venus'   => '&#xf221;',
		'fa-venus-double'   => '&#xf226;',
		'fa-venus-mars'   => '&#xf228;',
		'fa-viacoin'   => '&#xf237;',
		'fa-viadeo'   => '&#xf2a9;',
		'fa-viadeo-square'   => '&#xf2aa;',
		'fa-video-camera'   => '&#xf03d;',
		'fa-vimeo'   => '&#xf27d;',
		'fa-vimeo-square'   => '&#xf194;',
		'fa-vine'   => '&#xf1ca;',
		'fa-vk'   => '&#xf189;',
		'fa-volume-control-phone'   => '&#xf2a0;',
		'fa-volume-down'   => '&#xf027;',
		'fa-volume-off'   => '&#xf026;',
		'fa-volume-up'   => '&#xf028;',
		'fa-warning'   => '&#xf071;',
		'fa-wechat'   => '&#xf1d7;',
		'fa-weibo'   => '&#xf18a;',
		'fa-weixin'   => '&#xf1d7;',
		'fa-whatsapp'   => '&#xf232;',
		'fa-wheelchair'   => '&#xf193;',
		'fa-wheelchair-alt'   => '&#xf29b;',
		'fa-wifi'   => '&#xf1eb;',
		'fa-wikipedia-w'   => '&#xf266;',
		'fa-window-close'   => '&#xf2d3;',
		'fa-window-close-o'   => '&#xf2d4;',
		'fa-window-maximize'   => '&#xf2d0;',
		'fa-window-minimize'   => '&#xf2d1;',
		'fa-window-restore'   => '&#xf2d2;',
		'fa-windows'   => '&#xf17a;',
		'fa-won'   => '&#xf159;',
		'fa-wordpress'   => '&#xf19a;',
		'fa-wpbeginner'   => '&#xf297;',
		'fa-wpexplorer'   => '&#xf2de;',
		'fa-wpforms'   => '&#xf298;',
		'fa-wrench'   => '&#xf0ad;',
		'fa-xing'   => '&#xf168;',
		'fa-xing-square'   => '&#xf169;',
		'fa-y-combinator'   => '&#xf23b;',
		'fa-y-combinator-square'   => '&#xf1d4;',
		'fa-yahoo'   => '&#xf19e;',
		'fa-yc'   => '&#xf23b;',
		'fa-yc-square'   => '&#xf1d4;',
		'fa-yelp'   => '&#xf1e9;',
		'fa-yen'   => '&#xf157;',
		'fa-yoast'   => '&#xf2b1;',
		'fa-youtube'   => '&#xf167;',
		'fa-youtube-play'   => '&#xf16a;',
		'fa-youtube-square'   => '&#xf166;'
	);
		
		//Sample Homepage blocks for the layout manager (sorter)
		$of_options_homepage_blocks = array
		( 
			"disabled" => array (
				"placebo" 		=> "placebo", //REQUIRED!
				"block_one"		=> "Block One",
				"block_two"		=> "Block Two",
				"block_three"	=> "Block Three",
			), 
			"enabled" => array (
				"placebo" 		=> "placebo", //REQUIRED!
				"block_four"	=> "Block Four",
			),
		);


		//Stylesheets Reader
		$alt_stylesheet_path = LAYOUT_PATH;
		$alt_stylesheets = array();
		
		if ( is_dir($alt_stylesheet_path) ) 
		{
		    if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) 
		    { 
		        while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) 
		        {
		            if(stristr($alt_stylesheet_file, ".css") !== false)
		            {
		                $alt_stylesheets[] = $alt_stylesheet_file;
		            }
		        }    
		    }
		}


		//Background Images Reader
		$bg_images_path = get_stylesheet_directory(). '/images/bg/'; // change this to where you store your bg images
		$bg_images_url = get_template_directory_uri().'/images/bg/'; // change this to where you store your bg images
		$bg_images = array();
		
		if ( is_dir($bg_images_path) ) {
		    if ($bg_images_dir = opendir($bg_images_path) ) { 
		        while ( ($bg_images_file = readdir($bg_images_dir)) !== false ) {
		            if(stristr($bg_images_file, ".png") !== false || stristr($bg_images_file, ".jpg") !== false) {
		            	natsort($bg_images); //Sorts the array into a natural order
		                $bg_images[] = $bg_images_url . $bg_images_file;
		            }
		        }    
		    }
		}

		//Color Images Reader
		$color_images_path = get_stylesheet_directory(). '/images/color/'; // change this to where you store your color images
		$color_images_url = get_template_directory_uri().'/images/color/'; // change this to where you store your color images
		$color_images = array();
		
		if ( is_dir($color_images_path) ) {
		    if ($color_images_dir = opendir($color_images_path) ) { 
		        while ( ($color_images_file = readdir($color_images_dir)) !== false ) {
		            if(stristr($color_images_file, ".png") !== false || stristr($color_images_file, ".jpg") !== false) {
		            	natsort($color_images); //Sorts the array into a natural order
		                $color_images[] = $color_images_url . $color_images_file;
		            }
		        }    
		    }
		}
		

		/*-----------------------------------------------------------------------------------*/
		/* TO DO: Add options/functions that use these */
		/*-----------------------------------------------------------------------------------*/
		
		//More Options
		$uploads_arr 		= wp_upload_dir();
		$all_uploads_path 	= $uploads_arr['path'];
		$all_uploads 		= get_option('of_uploads');
		$other_entries 		= array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
		$body_repeat 		= array("no-repeat","repeat-x","repeat-y","repeat");
		$body_pos 			= array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right");
		
		// Image Alignment radio box
		$of_options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center"); 
		
		// Image Links to Options
		$of_options_image_link_to = array("image" => "The Image","post" => "The Post"); 


/*-----------------------------------------------------------------------------------*/
/* The Options Array */
/*-----------------------------------------------------------------------------------*/

// Set the Options Array
global $of_options;
$of_options = array();
$of_options[] = array( 	"name" 		=> "تنظیمات خانه",
						"id" 		=> "menu_home",
						"type" 		=> "heading",
						"icon"		=> "fa-home"
				);
$of_options[] = array( 	"name" 		=> "لوگو شما",
						"desc" 		=> "لوگوی سایت خود را از این بخش آپلود نمایید.\nاندازه مناسب: 300 در 100",
						"id" 		=> "site_logo",
						// Use the shortcodes [site_url] or [site_url_secure] for setting default URLs
						"std" 		=> get_template_directory_uri()."/images/logo.png",
						"type" 		=> "upload"
				);

$of_options[] = array( 	"name" 		=> "فاوآیکون",
						"desc" 		=> "آیکن سایت خود را آپلود نمایید. این آیکن در برخی از مرورگرها کنار آدرس شما نمایش داده می شود.",
						"id" 		=> "site_favicon",
						"std" 		=> get_template_directory_uri()."/images/favicon.ico",
						"type" 		=> "upload"
				);
$of_options[] = array( 	"name" 		=> "رنگ پوسته",
						"desc" 		=> "رنگ پوسته را انتخاب نمایید.",
						"id" 		=> "custom_color",
						"std" 		=> $color_images_url."f7f8fa.png",
						"type" 		=> "tiles",
						"options" 	=> $color_images,
				);				
$of_options[] = array( 	"name" 		=> "تصویر پس زمینه",
						"desc" 		=> "الگوی پس زمینه سایت را انتخاب نمایید.",
						"id" 		=> "site_bg",
						"std" 		=> $bg_images_url."bg.png",
						"type" 		=> "tiles",
						"options" 	=> $bg_images,
				);
$of_options[] = array( 	"name" 		=> "محصولات پربازدید",
						"desc" 		=> "نمایش محصولات پربازدید در صفحه اصلی",
						"id" 		=> "show_most_viewed",
						"std" 		=> 0,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "نمایش بلاک مطالب وبلاگ",
						"desc" 		=> "نمایش یک بلاک جهت نمایش آخرین مطالب وبلاگ در صفحه اصلی",
						"id" 		=> "show_main_blog",
						"std" 		=> 0,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "عنوان بلاک",
						"id" 		=> "main_blog_title",
						"std" 		=> "مطالب رایگان",
						"fold" 		=> "show_main_blog", 
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "تعداد مطالب جهت  نمایش",
						"id" 		=> "main_blog_count",
						"std" 		=> 6,
						"fold" 		=> "show_main_blog", 
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "نمایش مطالب دسته بندی خاص، آی دی دسته بندی را وارد کنید برای مثال 1 یا 7,8,9 (برای نمایش همه خالی رها کنید.) ",
						"id" 		=> "main_blog_cat",
						"std" 		=> "",
						"fold" 		=> "show_main_blog", 
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "نمایش بلاک متن صفحه اصلی",
						"desc" 		=> "نمایش یک بلاک جهت نمایش متن در صفحه اصلی",
						"id" 		=> "show_main_page",
						"std" 		=> 0,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "عنوان بلاک",
						"id" 		=> "main_title",
						"std" 		=> "عنوان نمونه",
						"fold" 		=> "show_main_page", 
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن بلاک",
						"id" 		=> "main_text",
						"std" 		=> "این متن از طریق بخش تنظیمات قالب قابل تغییر است. شما می توانید متنی را در صفحه اصلی سایت نمایش دهید.",
						"fold" 		=> "show_main_page", 
						"type" 		=> "textarea"
				);
$of_options[] = array( 	"name" 		=> "تنظیمات اسلایدر",
						"desc" 		=> "نمایش اسلایدر در صفحه اصلی",
						"id" 		=> "show_slider",
						"std" 		=> 0,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "نمایش اسلایدر در حالت موبایل",
						"id" 		=> "show_slider_mobile",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"fold"		=> "show_slider",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "تنظیمات مربوط به اسلایدر صفحه اصلی را پیکربندی نمایید.",
						"id" 		=> "main_slider",
						"std" 		=> "",
						"fold"		=> "show_slider",
						"type" 		=> "slider"
				);
$of_options[] = array( 	"name" 		=> "تنظیمات عمومی",
						"id" 		=> "menu_general",
						"type" 		=> "heading",
						"icon"		=> "fa-cogs"
				);
$of_options[] = array( 	"name" 		=> "حالت تعمیرات",
						"desc" 		=> "فعال نمودن حالت تعمیرات در سایت",
						"id" 		=> "show_under_page",
						"std" 		=> 0,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "عنوان",
						"id" 		=> "under_title",
						"std" 		=> "در دست تعمیر",
						"fold" 		=> "show_under_page", 
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن",
						"id" 		=> "under_text",
						"std" 		=> "فروشگاه در دست تعمیر می باشد، لطفاً صبور باشید.",
						"fold" 		=> "show_under_page",
						"type" 		=> "textarea"
				);
$of_options[] = array( 	"name" 		=> "منوی ثابت",
						"desc" 		=> "نمایش منوی هدر به صورت ثابت در هنگام پیمایش صفحه",
						"id" 		=> "fixed_head_top",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "دکمه های کاربری",
						"desc" 		=> "نمایش دکمه های کاربری (ورود، عضویت و منوی کاربری) در بخش هدر",
						"id" 		=> "show_user_btn",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds" 		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "نمایش دکمه های کاربری در حالت موبایل",
						"id" 		=> "show_mo_btn",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"fold" 		=> "show_user_btn",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "تعداد برچسب های ابزارک",
						"desc" 		=> "تعداد برچسب هایی که در ابزارک ابر برچسب نمایش داده می شوند.",
						"id" 		=> "tag_number",
						"std" 		=> 32, 
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "نمایش سایدبار",
						"desc" 		=> "مشخص کنید که ساید بار در حالت تبلت و موبایل نمایش داده شود",
						"id" 		=> "show_side_mobile",
						"std" 		=> 0,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "متن کپی رایت",
						"desc" 		=> "متن موجود در قسمت فوتر سایت را تغییر دهید.",
						"id" 		=> "footer_text",
						"std" 		=> "تمامی حقوق برای سایت ما محفوظ است.",
						"type" 		=> "textarea"
				);
$of_options[] = array( 	"name" 		=> "بخش نان ریزه ها",
						"desc" 		=> "نمایش بخش نان ریزه ها (لینک های تو در توی نشان دهنده مسیر)",
						"id" 		=> "show_bread",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "دکمه بازگشت به بالا",
						"desc" 		=> "نمایش دکمه بازگشت به بالا",
						"id" 		=> "show_return_top",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "دکمه سبد خرید",
						"desc" 		=> "نمایش دکمه سبد خرید",
						"id" 		=> "show_cart_btn",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "نوار بارگذاری",
						"desc" 		=> "نمایش نوار بارگذاری در بالای سایت",
						"id" 		=> "show_loading_bar",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "بخش اعلان",
						"desc" 		=> "نمایش بخش اعلان",
						"id" 		=> "show_msg",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن پیام",
						"id" 		=> "site_msg",
						"std" 		=> "به وب سایت ما خوش آمدید",
						"fold" 		=> "show_msg", 
						"type" 		=> "textarea"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "آیکن",
						"id" 		=> "msg_icon",
						"std" 		=> "fa-bell",
						"type" 		=> "fawe",
						"fold" 		=> "show_msg", 
						"options" 	=> $icons_font_awesome
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "قابلیت بسته شدن توسط کاربر",
						"id" 		=> "user_close",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"fold" 		=> "show_msg", 
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "رنگ",
						"id" 		=> "msg_color",
						"std" 		=> "alert-info",
						"type" 		=> "select",
						"fold" 		=> "show_msg", 
						"mod" 		=> "mini",
						"options" 	=> $of_options_msg_color
				);
$of_options[] = array( 	"name" 		=> "اطلاعات تماس",
						"desc" 		=> "نمایش اطلاعات تماس",
						"id" 		=> "show_contact",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "تلفن تماس",
						"id" 		=> "site_tel",
						"std" 		=> "09111111111",
						"fold" 		=> "show_contact",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "پست الکترونیک",
						"id" 		=> "site_email",
						"std" 		=> "test@test.com",
						"fold" 		=> "show_contact",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "منوی هدر",
						"desc" 		=> "متن آیکن اول",
						"id" 		=> "mhead_one_text",
						"std" 		=> "روش های پرداخت",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "mhead_one_link",
						"std" 		=> "#",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "آیکن",
						"id" 		=> "mhead_one_icon",
						"std" 		=> "fa-credit-card",
						"type" 		=> "fawe",
						"options" 	=> $icons_font_awesome
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن آیکن دوم",
						"id" 		=> "mhead_two_text",
						"std" 		=> "درخواست پروژه و تحقیق",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "mhead_two_link",
						"std" 		=> "#",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "آیکن",
						"id" 		=> "mhead_two_icon",
						"std" 		=> "fa-book",
						"type" 		=> "fawe",
						"options" 	=> $icons_font_awesome
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن آیکن سوم",
						"id" 		=> "mhead_three_text",
						"std" 		=> "سوالات متداول",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "mhead_three_link",
						"std" 		=> "#",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "آیکن",
						"id" 		=> "mhead_three_icon",
						"std" 		=> "fa-question-circle",
						"type" 		=> "fawe",
						"options" 	=> $icons_font_awesome
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن آیکن چهارم",
						"id" 		=> "mhead_four_text",
						"std" 		=> "تماس با ما",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "mhead_four_link",
						"std" 		=> "#",
						"type" 		=> "text",
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "آیکن",
						"id" 		=> "mhead_four_icon",
						"std" 		=> "fa-envelope",
						"type" 		=> "fawe",
						"options" 	=> $icons_font_awesome
				);
$of_options[] = array( 	"name" 		=> "تنظیمات محصول",
						"id" 		=> "menu_product",
						"type" 		=> "heading",
						"icon"		=> "fa-shopping-bag"
				);
$url =  ADMIN_DIR . 'assets/images/';
$of_options[] = array( 	"name" 		=> "نمایش محصولات",
						"desc" 		=> "حالت نمایش محصولات را از بین حالت دو ستونه و سه ستونه مشخص نمایید.",
						"id" 		=> "view_type",
						"std" 		=> 1,
						"type" 		=> "images",
						"options" 	=> array(
							1 	=> $url . '2col.png',
							2 	=> $url . '3col.png',
						)
				);
$of_options[] = array( 	"name" 		=> "محصولات مشابه",
						"desc" 		=> "نمایش بخش محصولات مشابه در صفحه محصول",
						"id" 		=> "show_related",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "نمایش محصولات مشابه بر اساس",
						"id" 		=> "related_by",
						"std" 		=> "download_tag",
						"type" 		=> "select",
						"fold" 		=> "show_related", 
						"mod" 		=> "mini",
						"options" 	=> $of_options_related_by
				);
$of_options[] = array( 	"name" 		=> "قیمت تومان",
						"desc" 		=> "نمایش قیمت محصولات به تومان",
						"id" 		=> "toman_currency",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "قیمت رایگان",
						"desc" 		=> "نمایش عبارت رایگان به جای صفر در محصولات رایگان",
						"id" 		=> "free_price",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "اشتراک گذاری",
						"desc" 		=> "قابلیت اشتراک گذاری مطالب در شبکه های اجتماعی",
						"id" 		=> "social_share",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "راهنمای خرید محصول",
						"desc" 		=> "نمایش بلاکی جهت نمایش متن راهنمای خرید",
						"id" 		=> "show_msg_help",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "متن راهنما",
						"id" 		=> "msg_help",
						"std" 		=> '<div>
		                  <span class="fa fa-chevron-circle-left"></span>&nbsp;&nbsp;لینک دانلود فایل بلافاصله بعد از پرداخت وجه به نمایش در خواهد آمد.<br />
		                  <span class="fa fa-chevron-circle-left"></span>&nbsp;&nbsp;همچنین لینک دانلود به ایمیل شما ارسال خواهد شد به همین دلیل ایمیل خود را به دقت وارد نمایید.<br />
		                  <span class="fa fa-chevron-circle-left"></span>&nbsp;&nbsp;ممکن است ایمیل ارسالی به پوشه اسپم یا Bulk ایمیل شما ارسال شده باشد.<br />
		                  <span class="fa fa-chevron-circle-left"></span>&nbsp;&nbsp;در صورتی که به هر دلیلی موفق به دانلود فایل مورد نظر نشدید با ما تماس بگیرید.<br />
		               </div>',
						"fold" 		=> "show_msg_help", 
						"type" 		=> "textarea"
				);
$of_options[] = array( 	"name" 		=> "تگ محصولات",
						"desc" 		=> "نمایش تگ محصولات",
						"id" 		=> "show_post_tags",
						"std" 		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"folds"		=> 1,
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "شبکه های اجتماعی",
						"id" 		=> "menu_social",
						"type" 		=> "heading",
						"icon"		=> "fa-user-plus"
				);
$of_options[] = array( 	"name" 		=> "لینک شبکه های اجتماعی فوتر",
						"desc" 		=> "فیسبوک",
						"id" 		=> "so_facebook",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_facebook_link",
						"std" 		=> "#",
						"fold" 		=> "so_facebook",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "گوگل پلاس",
						"id" 		=> "so_google",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_google_link",
						"std" 		=> "#",
						"fold" 		=> "so_google",
						"type" 		=> "text"
				);
								
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "توئیتر",
						"id" 		=> "so_twitter",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_twitter_link",
						"std" 		=> "#",
						"fold" 		=> "so_twitter",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "یوتوب",
						"id" 		=> "so_youtube",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_youtube_link",
						"std" 		=> "#",
						"fold" 		=> "so_youtube",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "دریبل",
						"id" 		=> "so_dribble",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_dribble_link",
						"std" 		=> "#",
						"fold" 		=> "so_dribble",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینکداین",
						"id" 		=> "so_linkedin",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_linkedin_link",
						"std" 		=> "#",
						"fold" 		=> "so_linkedin",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "اینستاگرام",
						"id" 		=> "so_instagram",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_instagram_link",
						"std" 		=> "#",
						"fold" 		=> "so_instagram",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "کلوب",
						"id" 		=> "so_cloob",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_cloob_link",
						"std" 		=> "#",
						"fold" 		=> "so_cloob",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "تلگرام",
						"id" 		=> "so_telegram",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_telegram_link",
						"std" 		=> "#",
						"fold" 		=> "so_telegram",
						"type" 		=> "text"
				);
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "آپارات",
						"id" 		=> "so_aparat",
						"std" 		=> 1,
						"folds"		=> 1,
						"on" 		=> "فعال",
						"off" 		=> "غیر فعال",
						"type" 		=> "switch"
				);
				
$of_options[] = array( 	"name" 		=> "",
						"desc" 		=> "لینک",
						"id" 		=> "so_aparat_link",
						"std" 		=> "#",
						"fold" 		=> "so_aparat",
						"type" 		=> "text"
				);													
$of_options[] = array( 	"name" 		=> "سایر گزینه ها",
						"id" 		=> "menu_example",
						"type" 		=> "heading",
						"icon"		=> "fa-cubes"
				);
$of_options[] = array( 	"name" 		=> "شیوه نامه سفارشی",
						"desc" 		=> "کدهای شیوه نامه سفارشی خود را به سرعت به قالب اضافه نمایید.",
						"id" 		=> "custom_css",
						"std" 		=> "",
						"type" 		=> "textarea"
				);
$of_options[] = array( 	"name" 		=> "اسکریپت هدر",
						"desc" 		=> "کدهایی که نیاز دارید به بخش هدر قالب اضافه نمایید (مانند متاتگ ها) در اینجا وارد نمایید.",
						"id" 		=> "header_codes",
						"std" 		=> "",
						"type" 		=> "textarea"
				);	
$of_options[] = array( 	"name" 		=> "اسکریپت فوتر",
						"desc" 		=> "کدهایی که نیاز دارید به فوتر قالب اضافه نمایید (مانند گوگل آنالیز) در اینجا وارد نمایید.",
						"id" 		=> "footer_codes",
						"std" 		=> "",
						"type" 		=> "textarea"
				);
// Backup Options
$of_options[] = array( 	"name" 		=> "پشتیبان گیری",
						"id" 		=> "menu_backup",
						"type" 		=> "heading",
						"icon"		=> "fa-server"
				);
				
$of_options[] = array( 	"name" 		=> "پشتیبان گیری و بازگردانی تنظیمات",
						"id" 		=> "of_backup",
						"std" 		=> "",
						"type" 		=> "backup",
						"desc" 		=> 'توسط دو گزینه زیر می توانید از تنظیمات فعلی پوسته پشتیبان گیری نمایید و یا اینکه تنظیمات پشتیبان گیری شده را بازگردانی نمایید. توسط این امکان می توانید تنظیمات فعلی را ذخیره نموده تا در صورت تمایل آن را جایگزین تنظیمات جدید نمایید.',
				);
				
$of_options[] = array( 	"name" 		=> "انتقال اطلاعات پوسته",
						"id" 		=> "of_transfer",
						"std" 		=> "",
						"type" 		=> "transfer",
						"desc" 		=> 'توسط این گزینه می توانید تنظیمات موجود بر روی نسخه دیگر پوسته که در جای دیگر نصب شده را درون ریزی نمایید. همچنین می توانید با کپی کردن متن مقابل در نسخه دیگر تنظیمات فعلی را انتقال دهید.',
				);
				
	}//End function: of_options()
}//End chack if function exists: of_options()
?>
