<?php

/******************************************/
/**		  WOPTION HELPER CLASS           **/
/**   Get Options From Theme Option		 **/
/**							             **/
/******************************************/

if (!class_exists('webnus_options')) {
	class webnus_options {
		
		function webnus_enable_responsive() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_enable_responsive']) ? $thm_options['webnus_enable_responsive'] : 1;
		}
		
		function webnus_css_minifier() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_css_minifier']) ? $thm_options['webnus_css_minifier'] : 1;
		}
		
		function webnus_template_select() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_template_select']) ? $thm_options['webnus_template_select'] : '';
		}
		
		//Get Admin Login Page Logo
		function webnus_admin_login_logo() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_admin_login_logo']) ? $thm_options['webnus_admin_login_logo'] : null;
		}
		
		function webnus_container_width() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_container_width']) ? $thm_options['webnus_container_width'] : null;
		}	
		
		function webnus_enable_breadcrumbs() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_enable_breadcrumbs']) ? $thm_options['webnus_enable_breadcrumbs'] : null;
		}
		
		function webnus_enable_livesearch() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_enable_livesearch']) ? $thm_options['webnus_enable_livesearch'] : 1;
		}

		//Get Faveicon
		function webnus_fav_icon() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_favicon']) ? $thm_options['webnus_favicon'] : null;
		}

		function webnus_apple_iphone_icon() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_apple_iphone_icon']) ? $thm_options['webnus_apple_iphone_icon'] : null;
		}

		function webnus_apple_ipad_icon() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_apple_ipad_icon']) ? $thm_options['webnus_apple_ipad_icon'] : null;
		}

		/* dESiGNERz-CREW.iNFO for PRO users - LOGO */
		function webnus_logo() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_logo']) ? $thm_options['webnus_logo'] : null;
		}

		function webnus_logo_width() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_logo_width']) ? $thm_options['webnus_logo_width'] : null;
		}

		function webnus_transparent_logo() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_transparent_logo']) ? $thm_options['webnus_transparent_logo'] : null;
		}
		
		function webnus_transparent_logo_width() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_transparent_logo_width']) ? $thm_options['webnus_transparent_logo_width'] : null;
		}
		
		function webnus_sticky_logo() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_sticky_logo']) ? $thm_options['webnus_sticky_logo'] : null;
		}
		
		function webnus_sticky_logo_width() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_sticky_logo_width']) ? $thm_options['webnus_sticky_logo_width'] : null;
		}		
		/* dESiGNERz-CREW.iNFO for PRO users - END LOGO */
		

		function webnus_header_padding_top() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_padding_top']) ? $thm_options['webnus_header_padding_top'] : null;
		}

		function webnus_header_padding_bottom() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_padding_bottom']) ? $thm_options['webnus_header_padding_bottom'] : null;
		}		
		
		function webnus_header_color_type() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_color_type']) ? $thm_options['webnus_header_color_type'] : null;
		}
		
		function webnus_logo_width_dark() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_logo_width_dark']) ? $thm_options['webnus_logo_width_dark'] : null;
		}
		
		function webnus_logo_dark() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_logo_dark']) ? $thm_options['webnus_logo_dark'] : null;
		}
		function webnus_slogan() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_slogan']) ? $thm_options['webnus_slogan'] : null;
		}

		function webnus_toggle_toparea_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_toggle_toparea_enable']) ? $thm_options['webnus_toggle_toparea_enable'] : 0;
		}
		
		function webnus_header_topbar_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_topbar_enable']) ? $thm_options['webnus_header_topbar_enable'] : null;
		}

		function webnus_topbar_background_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_topbar_background_color']) ? $thm_options['webnus_topbar_background_color'] : null;
		}
		
		function webnus_header_topbar_leftcontent() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_topbar_leftcontent']) ? $thm_options['webnus_header_topbar_leftcontent'] : null;
		}

		function webnus_header_topbar_rightcontent() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_topbar_rightcontent']) ? $thm_options['webnus_header_topbar_rightcontent'] : null;
		}

		function webnus_header_email() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_email']) ? $thm_options['webnus_header_email'] : null;
		}
		
		function webnus_header_phone() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_phone']) ? $thm_options['webnus_header_phone'] : null;
		}

		function webnus_topbar_email() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_topbar_email']) ? $thm_options['webnus_topbar_email'] : null;
		}
		
		function webnus_topbar_phone() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_topbar_phone']) ? $thm_options['webnus_topbar_phone'] : null;
		}

		function webnus_top_social_icons_facebook() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_facebook']) ? $thm_options['webnus_top_social_icons_facebook'] : null;
		}

		function webnus_top_social_icons_twitter() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_twitter']) ? $thm_options['webnus_top_social_icons_twitter'] : null;
		}

		function webnus_top_social_icons_dribbble() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_dribbble']) ? $thm_options['webnus_top_social_icons_dribbble'] : null;
		}

		function webnus_top_social_icons_pinterest() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_pinterest']) ? $thm_options['webnus_top_social_icons_pinterest'] : null;
		}

		function webnus_top_social_icons_vimeo() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_vimeo']) ? $thm_options['webnus_top_social_icons_vimeo'] : null;
		}

		function webnus_top_social_icons_youtube() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_youtube']) ? $thm_options['webnus_top_social_icons_youtube'] : null;
		}

		function webnus_top_social_icons_google() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_google']) ? $thm_options['webnus_top_social_icons_google'] : null;
		}

		function webnus_top_social_icons_linkedin() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_linkedin']) ? $thm_options['webnus_top_social_icons_linkedin'] : null;
		}

		function webnus_top_social_icons_rss() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_rss']) ? $thm_options['webnus_top_social_icons_rss'] : null;
		}

		function webnus_top_social_icons_instagram() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_instagram']) ? $thm_options['webnus_top_social_icons_instagram'] : null;
		}

		function webnus_top_social_icons_flickr() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_flickr']) ? $thm_options['webnus_top_social_icons_flickr'] : null;
		}

		function webnus_top_social_icons_reddit() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_reddit']) ? $thm_options['webnus_top_social_icons_reddit'] : null;
		}

		function webnus_top_social_icons_delicious() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_delicious']) ? $thm_options['webnus_top_social_icons_delicious'] : null;
		}

		function webnus_top_social_icons_lastfm() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_lastfm']) ? $thm_options['webnus_top_social_icons_lastfm'] : null;
		}

		function webnus_top_social_icons_tumblr() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_tumblr']) ? $thm_options['webnus_top_social_icons_tumblr'] : null;
		}

		function webnus_top_social_icons_skype() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_social_icons_skype']) ? $thm_options['webnus_top_social_icons_skype'] : null;
		}

		function webnus_top_left_tagline() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_left_tagline']) ? $thm_options['webnus_top_left_tagline'] : null;
		}

		function webnus_top_right_tagline() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_top_right_tagline']) ? $thm_options['webnus_top_right_tagline'] : null;
		}

		function webnus_header_menu_type() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_menu_type']) ? $thm_options['webnus_header_menu_type'] : null;
		}
		
		function webnus_header_logo_alignment() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_logo_alignment']) ? $thm_options['webnus_header_logo_alignment'] : 1;
		}

		function webnus_header_sticky() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_sticky']) ? $thm_options['webnus_header_sticky'] : null;
		}
		
		function webnus_header_sticky_scrolls() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_sticky_scrolls']) ? $thm_options['webnus_header_sticky_scrolls'] : null;
		}
				
		function webnus_header_search_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_search_enable']) ? $thm_options['webnus_header_search_enable'] : null;
		}

		function webnus_header_logo_rightside() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_logo_rightside']) ? $thm_options['webnus_header_logo_rightside'] : null;
		}

		function webnus_space_before_head() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_space_before_head']) ? $thm_options['webnus_space_before_head'] : null;
		}

		function webnus_space_before_body() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_space_before_body']) ? $thm_options['webnus_space_before_body'] : null;
		}

		function webnus_header_menu_icon() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_header_menu_icon']) ? $thm_options['webnus_header_menu_icon'] : null;
		}

		function webnus_news_ticker() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_news_ticker']) ? $thm_options['webnus_news_ticker'] : '1';
		}

		function webnus_nt_show() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_show']) ? $thm_options['webnus_nt_show'] : '0';
		}
		
		function webnus_nt_title() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_title']) ? $thm_options['webnus_nt_title'] : 'Latest Posts';
		}	
		
		function webnus_nt_cat() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_cat']) ? $thm_options['webnus_nt_cat'] : '';
		}	
		
		function webnus_nt_count() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_count']) ? $thm_options['webnus_nt_count'] : '5';
		}	
		
		function webnus_nt_effect() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_effect']) ? $thm_options['webnus_nt_effect'] : 'reveal';
		}	
		
		function webnus_nt_speed() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_speed']) ? $thm_options['webnus_nt_speed'] : '1';
		}
		
		function webnus_nt_pause() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_nt_pause']) ? $thm_options['webnus_nt_pause'] : '2';
		}

		function webnus_footer_logo() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_logo']) ? $thm_options['webnus_footer_logo'] : null;
		}

		/***********************************/
		/***		Page Layouts
		/***********************************/

		function webnus_get_layout() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_background_layout']) ? $thm_options['webnus_background_layout'] : 'wrap';
		}

		function webnus_background_image_style() {

			$thm_options = get_option('webnus_options');
			$repeat = $thm_options['webnus_background_repeat'];
			$color = $thm_options['webnus_background_color'];
			$percent = isset($thm_options['webnus_background_100']) ? $thm_options['webnus_background_100'] : null;
			$out = "";
			$out .= '<style type="text/css" media="screen">';
			$out .= 'body{ ';
			if (!empty($color)) {
				$out .= "background-color:{$thm_options['webnus_background_color'] };";
			}
			if (!empty($thm_options['webnus_background'])) {
				if ($repeat == 1)
					$out .= " background-image:url('{$thm_options['webnus_background']}'); background-repeat:repeat;";
				else if ($repeat == 2)
					$out .= " background-image:url('{$thm_options['webnus_background']}'); background-repeat:repeat-x;";
				else if ($repeat == 3)
					$out .= " background-image:url('{$thm_options['webnus_background']}'); background-repeat:repeat-y;";
				else if ($repeat == 0) {
					if ($percent)
						$out .= " background-image:url('{$thm_options['webnus_background']}'); background-repeat:no-repeat; background-size:100% auto; ";
					else
						$out .= " background-image:url('{$thm_options['webnus_background']}'); background-repeat:no-repeat; ";
				}
			} else {
				if (isset($thm_options['webnus_background_pattern']) && $thm_options['webnus_background_pattern'] == 'none') {
					$out .= " background-image:url('');";
				}
				if (!empty($thm_options['webnus_background_pattern']) && ($thm_options['webnus_background_pattern'] != 'none')) {
					$out .= " background-image:url('{$thm_options['webnus_background_pattern']}'); background-repeat:repeat; ";
				}
			}

			if (!empty($percent))
				$out .= 'background-size:cover;-webkit-background-size: cover;
										  -moz-background-size: cover;
										  -o-background-size: cover; background-attachment:fixed;
										  background-position:center; ';
			$out .= ' } </style>';
			return $out;
		}

		function webnus_color_skin() {
			//this is for custom color skin
			if ($this -> webnus_custom_color_skin_enable())
				return 'custom';
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_color_skin']) ? $thm_options['webnus_color_skin'] : null;
		}

		function webnus_custom_color_skin_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_color_skin_enable']) ? $thm_options['webnus_custom_color_skin_enable'] : null;
		}

		function webnus_custom_css() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_css']) ? $thm_options['webnus_custom_css'] : null;
		}


		
		/***********************************/
		/***		SOCIAL NETWORK
		/***********************************/

		function webnus_twitter_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_twitter_ID']) ? $thm_options['webnus_twitter_ID'] : null;
		}

		function webnus_facebook_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_facebook_ID']) ? $thm_options['webnus_facebook_ID'] : null;
		}

		function webnus_youtube_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_youtube_ID']) ? $thm_options['webnus_youtube_ID'] : null;
		}

		function webnus_linkedin_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_linkedin_ID']) ? $thm_options['webnus_linkedin_ID'] : null;
		}

		function webnus_dribbble_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_dribbble_ID']) ? $thm_options['webnus_dribbble_ID'] : null;
		}

		function webnus_pinterest_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_pinterest_ID']) ? $thm_options['webnus_pinterest_ID'] : null;
		}

		function webnus_vimeo_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_vimeo_ID']) ? $thm_options['webnus_vimeo_ID'] : null;
		}

		function webnus_google_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_google_ID']) ? $thm_options['webnus_google_ID'] : null;
		}

		function webnus_rss_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_rss_ID']) ? $thm_options['webnus_rss_ID'] : null;
		}

		function webnus_instagram_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_instagram_ID']) ? $thm_options['webnus_instagram_ID'] : null;
		}

		function webnus_flickr_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_flickr_ID']) ? $thm_options['webnus_flickr_ID'] : null;
		}

		function webnus_reddit_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_reddit_ID']) ? $thm_options['webnus_reddit_ID'] : null;
		}

		function webnus_tumblr_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_tumblr_ID']) ? $thm_options['webnus_tumblr_ID'] : null;
		}

		function webnus_delicious_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_delicious_ID']) ? $thm_options['webnus_delicious_ID'] : null;
		}

		function webnus_lastfm_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_lastfm_ID']) ? $thm_options['webnus_lastfm_ID'] : null;
		}

		function webnus_skype_ID() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_skype_ID']) ? $thm_options['webnus_skype_ID'] : null;
		}


		/***********************************/
		/***		BLOG Options
		/***********************************/

		function webnus_blog_template() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_template']) ? $thm_options['webnus_blog_template'] : null;
		}

		function webnus_blog_page_title() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_page_title']) ? $thm_options['webnus_blog_page_title'] : null;
		}
		
		function webnus_blog_page_title_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_page_title_enable']) ? $thm_options['webnus_blog_page_title_enable'] : null;
		}
		
		function webnus_blog_featuredimage_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_featuredimage_enable']) ? $thm_options['webnus_blog_featuredimage_enable'] : null;
		}

		function webnus_blog_posttitle_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_posttitle_enable']) ? $thm_options['webnus_blog_posttitle_enable'] : null;
		}

		function webnus_blog_meta_date_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_meta_date_enable']) ? $thm_options['webnus_blog_meta_date_enable'] : null;
		}

		function webnus_blog_meta_author_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_meta_author_enable']) ? $thm_options['webnus_blog_meta_author_enable'] : null;
		}
		
		function webnus_blog_meta_gravatar_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_meta_gravatar_enable']) ? $thm_options['webnus_blog_meta_gravatar_enable'] : null;
		}
		
		function webnus_blog_meta_category_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_meta_category_enable']) ? $thm_options['webnus_blog_meta_category_enable'] : null;
		}
		
		function webnus_blog_meta_comments_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_meta_comments_enable']) ? $thm_options['webnus_blog_meta_comments_enable'] : null;
		}
		
		function webnus_blog_meta_views_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_meta_views_enable']) ? $thm_options['webnus_blog_meta_views_enable'] : null;
		}
		
		function webnus_blog_single_authorbox_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_single_authorbox_enable']) ? $thm_options['webnus_blog_single_authorbox_enable'] : null;
		}
		
		function webnus_recommended_posts() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_recommended_posts']) ? $thm_options['webnus_recommended_posts'] : 1;
		}

		function webnus_blog_excerptfull_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_excerptfull_enable']) ? $thm_options['webnus_blog_excerptfull_enable'] : null;
		}

		function webnus_blog_excerpt_len() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_excerpt_len']) ? $thm_options['webnus_blog_excerpt_len'] : null;
		}

		function webnus_blog_readmore_text() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_readmore_text']) ? $thm_options['webnus_blog_readmore_text'] : null;
		}

		function webnus_blog_sinlge_featuredimage_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_sinlge_featuredimage_enable']) ? $thm_options['webnus_blog_sinlge_featuredimage_enable'] : null;
		}

		function webnus_allow_comments_on_page() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_allow_comments_on_page']) ? $thm_options['webnus_allow_comments_on_page'] : null;
		}

		function webnus_blog_sidebar() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_sidebar']) ? $thm_options['webnus_blog_sidebar'] : null;
		}

		function webnus_blog_singlepost_sidebar() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_singlepost_sidebar']) ? $thm_options['webnus_blog_singlepost_sidebar'] : null;
		}

		function webnus_blog_social_share() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_social_share']) ? $thm_options['webnus_blog_social_share'] : 1;
		}

		function webnus_blog_type() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_type']) ? $thm_options['webnus_blog_type'] : null;
		}
		function webnus_blog_title_font_family() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_title_font_family']) ? $thm_options['webnus_blog_title_font_family'] : null;
		}
		
		function webnus_blog_loop_title_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_loop_title_font_size']) ? $thm_options['webnus_blog_loop_title_font_size'] : null;
		}
		
		function webnus_blog_loop_title_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_loop_title_line_height']) ? $thm_options['webnus_blog_loop_title_line_height'] : null;
		}
		
		function webnus_blog_loop_title_font_weight() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_loop_title_font_weight']) ? $thm_options['webnus_blog_loop_title_font_weight'] : null;
		}
		
		function webnus_blog_loop_title_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_loop_title_letter_spacing']) ? $thm_options['webnus_blog_loop_title_letter_spacing'] : null;
		}
		
		function webnus_blog_loop_title_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_loop_title_color']) ? $thm_options['webnus_blog_loop_title_color'] : null;
		}
		
		function webnus_blog_loop_title_hover_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_loop_title_hover_color']) ? $thm_options['webnus_blog_loop_title_hover_color'] : null;
		}
		
		function webnus_blog_single_post_title_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_single_post_title_font_size']) ? $thm_options['webnus_blog_single_post_title_font_size'] : null;
		}
		
		function webnus_blog_single_title_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_single_title_line_height']) ? $thm_options['webnus_blog_single_title_line_height'] : null;
		}
		
		function webnus_blog_single_title_font_weight() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_single_title_font_weight']) ? $thm_options['webnus_blog_single_title_font_weight'] : null;
		}
		
		function webnus_blog_single_title_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_single_title_letter_spacing']) ? $thm_options['webnus_blog_single_title_letter_spacing'] : null;
		}
		
		function webnus_blog_single_title_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_blog_single_title_color']) ? $thm_options['webnus_blog_single_title_color'] : null;
		}

		/***********************************/
		/***		Portfolio Options
		/***********************************/

		function webnus_portfolio_count() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_count']) ? $thm_options['webnus_portfolio_count'] : 0;
		}

		function webnus_portfolio_isotope_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_isotope_enable']) ? $thm_options['webnus_portfolio_isotope_enable'] : null;
		}

		function webnus_portfolio_image_width() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_image_width']) ? $thm_options['webnus_portfolio_image_width'] : null;
		}

		function webnus_portfolio_image_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_image_height']) ? $thm_options['webnus_portfolio_image_height'] : null;
		}

		function webnus_portfolio_recentworks_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_recentworks_enable']) ? $thm_options['webnus_portfolio_recentworks_enable'] : null;
		}

		function webnus_portfolio_likebox_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_likebox_enable']) ? $thm_options['webnus_portfolio_likebox_enable'] : null;
		}
		
		function webnus_portfolio_columns() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_columns']) ? $thm_options['webnus_portfolio_columns'] : null;
		}
		
		function webnus_portfolio_layout() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_layout']) ? $thm_options['webnus_portfolio_layout'] : null;
		}	
		
		function webnus_portfolio_space() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_portfolio_space']) ? $thm_options['webnus_portfolio_space'] : null;
		}		
		

		/***********************************/
		/***		Footer
		/***********************************/

		function webnus_footer_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_color']) ? $thm_options['webnus_footer_color'] : null;
		}

		function webnus_footer_type() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_type']) ? $thm_options['webnus_footer_type'] : null;
		}

		function webnus_footer_bottom_right() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_bottom_right']) ? $thm_options['webnus_footer_bottom_right'] : null;
		}

		function webnus_footer_bottom_left() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_bottom_left']) ? $thm_options['webnus_footer_bottom_left'] : null;
		}

		function webnus_footer_bottom_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_bottom_enable']) ? $thm_options['webnus_footer_bottom_enable'] : null;
		}

		function webnus_footer_copyright() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_copyright']) ? $thm_options['webnus_footer_copyright'] : null;
		}
		
		function webnus_footer_background_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_background_color']) ? $thm_options['webnus_footer_background_color'] : null;
		}		
		
		function webnus_footer_bottom_background_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_footer_bottom_background_color']) ? $thm_options['webnus_footer_bottom_background_color'] : null;
		}	
		
		/* dESiGNERz-CREW.iNFO for PRO users - 404 PAGE	 */
		function webnus_404_text() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_404_text']) ? $thm_options['webnus_404_text'] : null;
		}

		/* dESiGNERz-CREW.iNFO for PRO users - Woocommerce */
		function webnus_woo_shop_title() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_woo_shop_title']) ? $thm_options['webnus_woo_shop_title'] : null;
		}

		function webnus_woo_shop_title_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_woo_shop_title_enable']) ? $thm_options['webnus_woo_shop_title_enable'] : null;
		}

		function webnus_woo_product_title() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_woo_product_title']) ? $thm_options['webnus_woo_product_title'] : null;
		}

		function webnus_woo_product_title_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_woo_product_title_enable']) ? $thm_options['webnus_woo_product_title_enable'] : null;
		}

		function webnus_woo_sidebar_enable() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_woo_sidebar_enable']) ? $thm_options['webnus_woo_sidebar_enable'] : null;
		}

		function webnus_recaptcha_site_key() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_recaptcha_site_key']) ? $thm_options['webnus_recaptcha_site_key'] : null;
		}

		function webnus_recaptcha_secret_key() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_recaptcha_secret_key']) ? $thm_options['webnus_recaptcha_secret_key'] : null;
		}

		function webnus_typekit_id() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_typekit_id']) ? $thm_options['webnus_typekit_id'] : null;
		}
		
		function webnus_typekit_font1() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_typekit_font1']) ? $thm_options['webnus_typekit_font1'] : null;
		}
		
		function webnus_typekit_font2() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_typekit_font2']) ? $thm_options['webnus_typekit_font2'] : null;
		}
		
		function webnus_typekit_font3() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_typekit_font3']) ? $thm_options['webnus_typekit_font3'] : null;
		}
		
		function webnus_get_google_fonts() {
			$thm_options = get_option('webnus_options');
			$fonts_array = array();
			if (isset($thm_options['webnus_body_font']) && $thm_options['webnus_body_font'] != '') {
				if (!in_array($thm_options['webnus_body_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_body_font'];
			}
			if (isset($thm_options['webnus_menu_font']) && $thm_options['webnus_menu_font'] != '') {
				if (!in_array($thm_options['webnus_menu_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_menu_font'];
			}
			if (isset($thm_options['webnus_p_font']) && $thm_options['webnus_p_font'] != '') {
				if (!in_array($thm_options['webnus_p_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_p_font'];
			}
			if (isset($thm_options['webnus_heading_font']) && $thm_options['webnus_heading_font'] != '') {
				if (!in_array($thm_options['webnus_heading_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_heading_font'];
			}
			if (isset($thm_options['webnus_h2_font']) && $thm_options['webnus_h2_font'] != '') {
				if (!in_array($thm_options['webnus_h2_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_h2_font'];
			}
			if (isset($thm_options['webnus_h3_font']) && $thm_options['webnus_h3_font'] != '') {
				if (!in_array($thm_options['webnus_h3_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_h3_font'];
			}
			if (isset($thm_options['webnus_h4_font']) && $thm_options['webnus_h4_font'] != '') {
				if (!in_array($thm_options['webnus_h4_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_h4_font'];
			}
			if (isset($thm_options['webnus_h5_font']) && $thm_options['webnus_h5_font'] != '') {
				if (!in_array($thm_options['webnus_h5_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_h5_font'];
			}
			if (isset($thm_options['webnus_h6_font']) && $thm_options['webnus_h6_font'] != '') {
				if (!in_array($thm_options['webnus_h6_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_h6_font'];
			}
			if (isset($thm_options['webnus_blog_title_font_family']) && $thm_options['webnus_blog_title_font_family'] != '') {
				if (!in_array($thm_options['webnus_blog_title_font_family'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_blog_title_font_family'];
			}
			if (isset($thm_options['webnus_blog_single_post_title_font']) && $thm_options['webnus_blog_single_post_title_font'] != '') {
				if (!in_array($thm_options['webnus_blog_single_post_title_font'], $fonts_array))
					$fonts_array[] = $thm_options['webnus_blog_single_post_title_font'];
			}
			$fonts = "";
			if (count($fonts_array) > 0) {
  				$fonts_array = array_diff($fonts_array, array('custom-font-1','custom-font-2','custom-font-3','typekit-font-1','typekit-font-2','typekit-font-3'));					
				$fonts_str = implode('|', $fonts_array);
				if(!empty($fonts_str))
				$fonts = "http://fonts.googleapis.com/css?family=$fonts_str:300,400,600,700";
			}
			return $fonts;
		}

		
		function webnus_topnav_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_topnav_font_size']) ? $thm_options['webnus_topnav_font_size'] : null;
		}	
		
		function webnus_topnav_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_topnav_letter_spacing']) ? $thm_options['webnus_topnav_letter_spacing'] : null;
		}		
		
		function webnus_topnav_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_topnav_line_height']) ? $thm_options['webnus_topnav_line_height'] : null;
		}		
			
		
		function webnus_p_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_p_font_size']) ? $thm_options['webnus_p_font_size'] : null;
		}	
		
		function webnus_p_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_p_letter_spacing']) ? $thm_options['webnus_p_letter_spacing'] : null;
		}	
		
		function webnus_p_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_p_line_height']) ? $thm_options['webnus_p_line_height'] : null;
		}		
		
		
		function webnus_p_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_p_font_color']) ? $thm_options['webnus_p_font_color'] : null;
		}	
		
		function webnus_h1_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h1_font_size']) ? $thm_options['webnus_h1_font_size'] : null;
		}	
		
		function webnus_h1_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h1_letter_spacing']) ? $thm_options['webnus_h1_letter_spacing'] : null;
		}	
		
		function webnus_h1_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h1_line_height']) ? $thm_options['webnus_h1_line_height'] : null;
		}		
		
		
		function webnus_h1_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h1_font_color']) ? $thm_options['webnus_h1_font_color'] : null;
		}	
		
		function webnus_h2_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h2_font_size']) ? $thm_options['webnus_h2_font_size'] : null;
		}		
		
		function webnus_h2_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h2_letter_spacing']) ? $thm_options['webnus_h2_letter_spacing'] : null;
		}		
		
		function webnus_h2_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h2_line_height']) ? $thm_options['webnus_h2_line_height'] : null;
		}			
		
		function webnus_h2_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h2_font_color']) ? $thm_options['webnus_h2_font_color'] : null;
		}	
		
		function webnus_h3_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h3_font_size']) ? $thm_options['webnus_h3_font_size'] : null;
		}	
		
		function webnus_h3_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h3_letter_spacing']) ? $thm_options['webnus_h3_letter_spacing'] : null;
		}	
		
		function webnus_h3_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h3_line_height']) ? $thm_options['webnus_h3_line_height'] : null;
		}	
		
		function webnus_h3_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h3_font_color']) ? $thm_options['webnus_h3_font_color'] : null;
		}	
		
		function webnus_h4_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h4_font_size']) ? $thm_options['webnus_h4_font_size'] : null;
		}	
		
		function webnus_h4_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h4_letter_spacing']) ? $thm_options['webnus_h4_letter_spacing'] : null;
		}		
		
		function webnus_h4_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h4_line_height']) ? $thm_options['webnus_h4_line_height'] : null;
		}		
		
		
		function webnus_h4_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h4_font_color']) ? $thm_options['webnus_h4_font_color'] : null;
		}	
		
		function webnus_h5_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h5_font_size']) ? $thm_options['webnus_h5_font_size'] : null;
		}	
		
		function webnus_h5_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h5_letter_spacing']) ? $thm_options['webnus_h5_letter_spacing'] : null;
		}	
		
		function webnus_h5_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h5_line_height']) ? $thm_options['webnus_h5_line_height'] : null;
		}		
		
		function webnus_h5_font_wieght() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h5_font_wieght']) ? $thm_options['webnus_h5_font_wieght'] : null;
		}		
		
		function webnus_h5_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h5_font_color']) ? $thm_options['webnus_h5_font_color'] : null;
		}
			
		function webnus_h6_font_size() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h6_font_size']) ? $thm_options['webnus_h6_font_size'] : null;
		}		
		
		function webnus_h6_letter_spacing() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h6_letter_spacing']) ? $thm_options['webnus_h6_letter_spacing'] : null;
		}	
		
		function webnus_h6_line_height() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h6_line_height']) ? $thm_options['webnus_h6_line_height'] : null;
		}	
		
		function webnus_h6_font_wieght() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h6_font_wieght']) ? $thm_options['webnus_h6_font_wieght'] : null;
		}		
		
		function webnus_h6_font_color() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_h6_font_color']) ? $thm_options['webnus_h6_font_color'] : null;
		}		
		
		/* dESiGNERz-CREW.iNFO for PRO users - Custom font */ 
		function webnus_custom_font1_woff() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font1_woff']) ? $thm_options['webnus_custom_font1_woff'] : null;
		}		
		
		function webnus_custom_font1_ttf() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font1_ttf']) ? $thm_options['webnus_custom_font1_ttf'] : null;
		}
		
		function webnus_custom_font1_svg() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font1_svg']) ? $thm_options['webnus_custom_font1_svg'] : null;
		}
		
		function webnus_custom_font1_eot() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font1_eot']) ? $thm_options['webnus_custom_font1_eot'] : null;
		}

		/* dESiGNERz-CREW.iNFO for PRO users - Font 2 */
		function webnus_custom_font2_woff() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font2_woff']) ? $thm_options['webnus_custom_font2_woff'] : null;
		}		
		
		function webnus_custom_font2_ttf() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font2_ttf']) ? $thm_options['webnus_custom_font2_ttf'] : null;
		}
		
		function webnus_custom_font2_svg() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font2_svg']) ? $thm_options['webnus_custom_font2_svg'] : null;
		}
		
		function webnus_custom_font2_eot() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font2_eot']) ? $thm_options['webnus_custom_font2_eot'] : null;
		}

		/* dESiGNERz-CREW.iNFO for PRO users - Font 3 */
		function webnus_custom_font3_woff() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font3_woff']) ? $thm_options['webnus_custom_font3_woff'] : null;
		}		
		
		function webnus_custom_font3_ttf() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font3_ttf']) ? $thm_options['webnus_custom_font3_ttf'] : null;
		}
		
		function webnus_custom_font3_svg() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font3_svg']) ? $thm_options['webnus_custom_font3_svg'] : null;
		}
		
		function webnus_custom_font3_eot() {
			$thm_options = get_option('webnus_options');
			return isset($thm_options['webnus_custom_font3_eot']) ? $thm_options['webnus_custom_font3_eot'] : null;
		}
		
	}
}