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