wp/wp-content/themes/IN-MOTION-package-u1/in-motion/header.php
author ymh <ymh.work@gmail.com>
Wed, 13 Nov 2013 17:59:35 +0000
changeset 3 6d22aaa62d12
parent 0 d970ebf37754
child 7 cf61fcea0001
permissions -rwxr-xr-x
correct portofolio item display
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php include("scripts/contact-form.php"); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<!DOCTYPE html>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
<html <?php language_attributes(); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
	<head>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
		<!-- Meta Tags -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
		<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
  		<meta name="viewport" content="width=device-width" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
		<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
		<!-- Stylesheets -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
		<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css" type="text/css" media="screen" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
		<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/reset.css" type="text/css" media="screen" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
		<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
		<!--[if lt IE 9]>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
			<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/ie8-and-down.css" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
		<![endif]-->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
		<!--[if lte IE 8]>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
		  <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/ie8.css" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
		<![endif]-->		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
		<!-- Fonts -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
		<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css' />		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
		<!-- Favicon -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
		<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
		$favicon =  get_template_directory_uri().'/favicon.ico';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
		if ( function_exists( 'get_option_tree' ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    		    if (get_option_tree( 'favicon')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
    		    	$favicon = get_option_tree( 'favicon' );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
		?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
		<link rel="icon" href="<?php echo $favicon; ?>" type="image/x-ico" />
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
		<!-- Check for option tree -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
		<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
  			if ( !function_exists( 'get_option_tree') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
				echo '<h1 style="color:white; background-color:#494a4a;">You need the Option Tree plugin installed for this theme!<br/>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
					You can get it here: <a href="http://wordpress.org/extend/plugins/option-tree/" target="_blank" class="ot-warning">Option tree</a></h1>';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
		?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
		<!-- start for google maps -->	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
		<?php 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
			$map_latitude_value='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
			$map_longitude_value='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
			$map_pin_picture='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
			if ( function_exists( 'get_option_tree') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
				if( get_option_tree( 'map_latitude_value') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
					$map_latitude_value=get_option_tree( 'map_latitude_value');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
				if( get_option_tree( 'map_longitude_value') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
					$map_longitude_value=get_option_tree( 'map_longitude_value');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
				if( get_option_tree( 'map_pin_picture') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
					$map_pin_picture=get_option_tree( 'map_pin_picture');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
				}		 	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
			}			
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
		?>			
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
		<!-- end for google maps -->		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
		<!-- main template color -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
		<?php 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
			$main_template_color = "#91a4ac";
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
			if ( function_exists( 'get_option_tree' ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
    		    if (get_option_tree( 'main_template_color')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
    		    	$main_template_color = get_option_tree( 'main_template_color' );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
			$css_output='<style type="text/css">';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
			$css_output.=' .hl-main, .button a, .circle-p1, #eden a.ajax-back, #eden .client-stuff p, #eden .url-stuff a, .post-title, input#submit, #sidebar-right input#searchsubmit, #main-menu a, a.readmore, .quote, #contact-form #submit-button  {background-color: '.$main_template_color.'; }';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
			$css_output.=' a, #portfolio-filter ul li a:hover, #portfolio-filter li.active a, #eden .item-desc p, p.contact-paragraph-call span, .list-1 li a:hover,  p.blog-post-date,  .blog-details ul li a, .blog-post-tags a, #respond h3,  .reply a, #respond a, h3#comments, ol.commentlist li div.comment-meta a,   #sidebar-right .widget ul li a:hover, h4.widget-title, #foot-col1 a, #foot-col2 a, #foot-col3 a, #foot-col4 a,  #foot-col1 a, #foot-col2 a, #foot-col3 a, #foot-col4 a,  #foot-col1 a:hover, #foot-col2 a:hover, #foot-col3 a:hover, #foot-col4 a:hover, .menu-inside a:hover, .menu-inside .current a  {color: '.$main_template_color.'; }';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
			$css_output.='  .post-date, .news-date {background: '.$main_template_color.'; }';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
			$css_output.=' #headerSlideContainer {border-top: 3px solid '.$main_template_color.';}'; 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
			
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
			$css_output.=' .dotted-line { border-bottom: 2px dashed '.$main_template_color.';}'; 			
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
			$css_output.=' .blog-post-tags a:hover {border-bottom: 1px dashed '.$main_template_color.';}'; 	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
			$css_output.=' #header {	border-bottom: 4px solid '.$main_template_color.';}';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
			$css_output.=' .page-title {	background: '.$main_template_color.' url('. get_template_directory_uri() .'/images/bg-title.png) repeat;}';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
			$css_output.=' ::selection {background: '.$main_template_color.'; }';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
			$css_output.=' ::-moz-selection {background: '.$main_template_color.'; }';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
			if ( function_exists( 'get_option_tree') ) {	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
				if (get_option_tree( 'heading_h1_size')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
					$css_output.=' h1 { font-size: '.get_option_tree( 'heading_h1_size').'px; }';				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
				if (get_option_tree( 'heading_h2_size')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
					$css_output.=' h2 { font-size: '.get_option_tree( 'heading_h2_size').'px; }';				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
				if (get_option_tree( 'heading_h3_size')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
					$css_output.=' h3 { font-size: '.get_option_tree( 'heading_h3_size').'px; }';				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
				if (get_option_tree( 'heading_h4_size')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
					$css_output.=' h4 { font-size: '.get_option_tree( 'heading_h4_size').'px; }';				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
			$css_output.='</style>';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
			echo $css_output;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
   
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
		?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   102
		<!--  code for google analytics -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   103
		<?php 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
		$googleAnalitics = '';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   105
		if ( function_exists( 'get_option_tree') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   106
				$googleAnalitics = get_option_tree( 'google_analytics');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   107
				echo $googleAnalitics;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
		}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
		?>	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
<script type="text/javascript">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
			(function() {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
				window.onload = function(){
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
				var pinkParksStyles = '';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
				if (jQuery.browser.msie  && parseInt(jQuery.browser.version, 10) === 8) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
				} else {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
					var pinkParksStyles = [ { stylers: [ { invert_lightness: false }, { hue: "#ff0000" }, { saturation: -92 }, { lightness: 5 } ] },{ featureType: "poi", elementType: "labels", stylers: [ { visibility: "off" } ] },{ featureType: "road", elementType: "labels", stylers: [ { visibility: "on" }, { lightness: 20 } ] },{ featureType: "landscape", stylers: [ { visibility: "off" } ] },{ featureType: "transit.station", elementType: "labels", stylers: [ { lightness: 100 } ] },{ featureType: "road.arterial", stylers: [ { visibility: "on" } ] },{ } ];
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
					
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   123
				var pinkMapType = new google.maps.StyledMapType(pinkParksStyles,
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   124
					{name: "Our Location"});
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   125
				var mapOptions = {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   126
					zoom: 11,
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   127
					center: new google.maps.LatLng(<?php echo $map_latitude_value; ?>, <?php echo $map_longitude_value; ?>),
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   128
					mapTypeControlOptions: {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   129
					mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'pink_parks']
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   130
					}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   131
				};
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   132
				var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   133
				  map.mapTypes.set('pink_parks', pinkMapType);
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
				  map.setMapTypeId('pink_parks');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   135
  
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   136
				var image = "<?php echo $map_pin_picture; ?>";
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   137
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   138
				var marker = new google.maps.Marker({
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   139
					position: new google.maps.LatLng(<?php echo $map_latitude_value ?>, <?php echo $map_longitude_value ?>),
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   140
					map: map,
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   141
					icon: image
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   142
				}); 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   143
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   144
			})();
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   145
		</script>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   146
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   147
		<?php wp_enqueue_script('jquery'); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   148
		<?php wp_head(); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   149
	</head>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   150
 <?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   151
	//default background start
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   152
	$default_body_data='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   153
	$default_fix_image=0;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   154
	$default_background_image='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   155
	$default_background_repeat='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   156
	if ( function_exists( 'get_option_tree') ){
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   157
			if( get_option_tree( 'default_background_color') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   158
				$default_background_color=get_option_tree( 'default_background_color');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   159
					if (!empty($default_background_color)){
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   160
							$default_body_data.=' '.$default_background_color;							
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   161
					}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   162
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   163
			if( get_option_tree( 'default_background_image')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   164
				$default_background_image=get_option_tree( 'default_background_image');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   165
				$default_background_repeat=get_option_tree( 'default_background_repeat');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   166
				switch ($default_background_repeat ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   167
				    case 'No repeat':
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   168
				        $default_background_repeat='no-repeat';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   169
				        $default_fix_image++;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   170
				        break;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   171
				    case 'Repeat':
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   172
				        $default_background_repeat='repeat';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   173
				        break;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   174
				    case 'Repeat x':
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   175
				        $default_background_repeat='repeat-x';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   176
				        break;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   177
				    case 'Repeat y':
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   178
				        $default_background_repeat='repeat-y';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   179
				        break;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   180
				    default:
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   181
				    	  $default_background_repeat='no-repeat';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   182
				        break;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   183
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   184
				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   185
				if (!empty($default_background_image)){
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   186
							$default_body_data.=' url('.$default_background_image.') top center '.$default_background_repeat.'';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   187
							$default_fix_image++;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   188
							$picture=$default_background_image;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   189
					}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   190
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   191
   
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   192
			
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   193
			if (!empty($default_body_data)){
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   194
					$default_body_data=' style="background:'.$default_body_data.'; background-attachment:fixed;" ';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   195
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   196
			else {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   197
					$default_body_data='';	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   198
			}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   199
	}  
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   200
	//default background end
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   201
	?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   202
	<body <?php body_class(); ?><?php echo $default_body_data;  ?> >
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   203
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   204
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   205
	<div id="all-wrapper">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   206
	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   207
	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   208
	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   209
		<div id="left-sidebar"><!-- start left-sidebar -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   210
			<div id="logo" class="fl"><!-- start logo -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   211
				<?php 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   212
				global $option_tree;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   213
				if ( function_exists( 'get_option_tree') ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   214
					$option_tree = get_option('option_tree');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   215
				}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   216
				
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   217
						$logo='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   218
						if ( function_exists( 'get_option_tree' ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   219
							$logo = get_option_tree( 'logo' );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   220
						}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   221
						if ( $logo != '' ) { ?>								
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   222
							<a href="<?php echo get_option('siteurl'); ?>" title="Go Home"><img src="<?php echo get_option_tree( 'logo' ) ?>" alt="logo" /></a>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   223
						<?php } 							
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   224
					?>  
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   225
			</div><!-- end logo -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   226
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   227
			 <!-- koda za menu -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   228
			<ul class="menu" id="main-menu">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   229
				<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   230
            $page_args = array('sort_order' => 'ASC', 'sort_column' => 'menu_order');
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   231
            $pages = get_pages($page_args); 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   232
            $menu_items=1;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   233
            foreach ($pages as $single_page) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   234
            		$trenutni="";
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   235
            		//if(($menu_items==1)&&(!is_single())){ $trenutni=" current";}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   236
            		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   237
            		$pageTemplate= get_post_meta($single_page->ID , 'page_template' , true);
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   238
            		if(($pageTemplate=='Blog')&&(is_single())){ $trenutni="class='current'";}	 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   239
            		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   240
            	   $pageInMenu= get_post_meta($single_page->ID, 'show_page_in_menu' , true);
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   241
				  
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   242
            	   $url_tab = "#"; 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   243
            	   if (!is_front_page()){
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   244
            	   	 $url_tab = get_option("siteurl")."#";
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   245
            	   }
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   246
            	   $menu_items++;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   247
            		if ($pageInMenu == 'Yes') {						
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   248
							echo '<li '.$trenutni.'><a class="boxes" href="' . $url_tab . $single_page->post_name . '">' . $single_page->post_title . '</a></li> ';						
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   249
                  }                 
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   250
            }
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   251
            ?>  
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   252
			</ul>						
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   253
			<!-- start social icons -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   254
			<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   255
			$socials='';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   256
			if ( function_exists( 'get_option_tree' ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   257
    		    		  if (get_option_tree( 'social_icons')) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   258
    		    				$socials= get_option_tree( 'social_icons', $option_tree, false, true, -1 );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   259
    		    				$img_num = 1;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   260
    		    				if(!empty($socials)){ ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   261
								<ul class="tt-wrapper">								
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   262
								<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   263
								foreach( $socials as $social ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   264
									echo '<li><a href="'.$social['link'].'" target="_blank" title="'.$social['title'].'" style="background: transparent url('.$social['image'].') no-repeat top left;"><span>'.$social['title'].'</span></a></li>';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   265
								}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   266
								echo '</ul>';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   267
					} } }					
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   268
			?>	
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   269
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   270
		</div><!-- end left-sidebar -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   271
		
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
   272
		<div id="container"><!-- start container -->