Advertisement
Guest User

Untitled

a guest
Apr 15th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.92 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head>
  4. <link type="text/css" href="/main/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
  5. <script type="text/javascript" src="/main/cometchat/cometchatjs.php" charset="utf-8"></script>
  6. <title><?php wp_title( '|', true, 'right' ); ?></title>
  7. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  8. <?php wp_head(); ?>
  9.  
  10. <script type="text/javascript">
  11. <!--
  12. window.location.hash="";
  13. if(window.location.hash!="" && window.location.hash!="#"){
  14. var loc = window.location.toString();
  15. var locRep = loc.replace(/#.*/m,"");
  16. window.location = locRep;
  17. }
  18. -->
  19. </script>
  20.  
  21. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  22.  
  23. <link rel="profile" href="http://gmpg.org/xfn/11" />
  24. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  25.  
  26. <!--[if IE 7]>
  27. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/ie7.css" />
  28. <![endif]-->
  29.  
  30. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/reset.css" type="text/css"/>
  31. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/screen.css" type="text/css"/>
  32.  
  33. <style type="text/css" id="imgMaxWidth"></style>
  34.  
  35. <!-- colors from colorpicker -->
  36. <style type="text/css">
  37. <?php $background_color = get_option( 'background_color' ); ?>
  38. <?php if ( !empty( $background_color ) ) : ?>
  39. html { background-color: <?php echo $background_color; ?>; }
  40. <?php endif; ?>
  41.  
  42. <?php $titles_color = get_option( 'titles_color' ); ?>
  43. <?php if ( !empty( $titles_color ) ) : ?>
  44. h1, h2, h3, h4, h5, h6,
  45. table#wp-calendar caption,
  46. .mainmenu li a,
  47. .mainmenu li.current_page_item li a,
  48. .mainmenu li.current-page-ancestor li a,
  49. .footer a, .header a,
  50. .part1 a, .part3 a,
  51. .sidetabs li span,
  52. .service h3 a,
  53. .sidepost h3 a,
  54. table#wp-calendar tfoot a,
  55. .widget_nav_menu li.current_page_item li a,
  56. .widget_categories .current-cat li a { color: <?php echo $titles_color; ?>; }
  57. <?php endif; ?>
  58.  
  59. <?php $decor_lines_color = get_option( 'decor_lines_color' ); ?>
  60. <?php if ( !empty( $decor_lines_color ) ) : ?>
  61. .header .decor,
  62. .footer .decor {background-color: <?php echo $decor_lines_color; ?>;}
  63. <?php endif; ?>
  64.  
  65. <?php $left_box_height = get_option( 'left_box_height' ); ?>
  66. <?php if ( !empty( $left_box_height ) ) : ?>
  67. .pgsize1 {height: <?php echo $left_box_height; ?>px;}
  68. <?php endif; ?>
  69.  
  70. <?php $center_box_height = get_option( 'center_box_height' ); ?>
  71. <?php if ( !empty( $center_box_height ) ) : ?>
  72. <?php if ( $center_box_height != 'auto' ) : ?>
  73. .pgsize2 {height: <?php echo $center_box_height; ?>px;}
  74. .box-center {height: <?php echo $center_box_height; ?>px;}
  75. <?php
  76. $scrVal = (int)$center_box_height;
  77. $scrVal = $scrVal - 25;
  78. $scrHeight = (string)$scrVal;
  79. ?>
  80. #mcs2_container {height: <?php echo $scrHeight; ?>px;}
  81. <?php endif; ?>
  82. <?php endif; ?>
  83.  
  84. <?php $right_box_height = get_option( 'right_box_height' ); ?>
  85. <?php if ( !empty( $right_box_height ) ) : ?>
  86. .pgsize3 {height: <?php echo $right_box_height; ?>px;}
  87. <?php
  88. $topSearchVal = (int)$right_box_height;
  89. $topSearchVal = $topSearchVal - 30;
  90. $topSearch = (string)$topSearchVal;
  91. ?>
  92. .sidepost div.search {top: <?php echo $topSearch; ?>px;}
  93. <?php endif; ?>
  94.  
  95. <?php
  96. // footer width
  97. $footer_clone_picture = get_option( 'footer_clone_picture' );
  98. if ( !empty( $footer_clone_picture ) ){
  99. $pictures = json_decode($footer_clone_picture);
  100. $imgFooterCount = count($pictures);
  101. $imgFooterWidth = $imgFooterCount * 98;
  102. ?>
  103. #mcs5_container .content {width:<?php echo $imgFooterWidth; ?>px;}
  104. <?php } ?>
  105.  
  106. <?php $right_box_height = get_option( 'right_box_height' ); ?>
  107. <?php if ( !empty( $right_box_height ) ) : ?>
  108. .pgsize3 {height: <?php echo $right_box_height; ?>px;}
  109. <?php
  110. $scrVal = (int)$right_box_height;
  111. $scrVal = $scrVal - 40;
  112. $scrHeight = (string)$scrVal;
  113. ?>
  114. #mcs_container {height: <?php echo $scrHeight; ?>px;}
  115. <?php endif; ?>
  116.  
  117. <?php $default_footer_height = get_option( 'default_footer_height' ); ?>
  118. <?php if ( !empty( $default_footer_height ) ) : ?>
  119. .footer {height: <?php echo $default_footer_height; ?>px;}
  120. <?php
  121. $insVal = (int)$default_footer_height;
  122. $insVal = $insVal + 17;
  123. $insHeight = (string)$insVal;
  124. ?>
  125. .footer .inside {height: <?php echo $insHeight; ?>px;}
  126. <?php else: ?>
  127. .footer {height: 90px;}
  128.  
  129. .footer .inside {height: 107px;}
  130. <?php endif; ?>
  131.  
  132. <?php
  133.  
  134. /* Get page ID */
  135. $queried_object = $wp_query->get_queried_object();
  136. if ( $queried_object->ID == get_option( 'page_for_posts' ) ) {
  137. $current_id = get_option( 'page_for_posts' );
  138. }
  139. else {
  140. $current_id = $wp_query->post->ID;
  141. }
  142.  
  143. $GLOBALS['set_style'] = "light";
  144.  
  145. $light_title_color = '';
  146. $light_subtitles_color = '';
  147. $light_links_color = '';
  148.  
  149. $dark_title_color = '';
  150. $dark_subtitles_color = '';
  151. $dark_links_color = '';
  152.  
  153. // global setting
  154. if (trim(get_option( 'center_box_variant' )) == "dark"){
  155.  
  156. $dark_title_color = get_option( 'center_box_dark_title_color' );
  157. $dark_subtitles_color = get_option( 'center_box_dark_subtitles_color' );
  158. $dark_links_color = get_option( 'center_box_dark_links_color' );
  159.  
  160. $GLOBALS['set_style'] = "dark";
  161.  
  162. } else if(trim(get_option( 'center_box_variant' )) == "light"){
  163.  
  164. $light_title_color = get_option( 'center_box_light_title_color' );
  165. $light_subtitles_color = get_option( 'center_box_light_subtitles_color' );
  166. $light_links_color = get_option( 'center_box_light_links_color' );
  167.  
  168. $GLOBALS['set_style'] = "light";
  169. }
  170.  
  171. // page settings
  172. if ( is_single() || is_page() || ($queried_object->ID == get_option( 'page_for_posts' ) ) || is_front_page() ) {
  173.  
  174. $center_box_bg_variant = get_post_meta( $current_id, 'center_box_bg_variant' );
  175. $center_box_bg_variant['0'] = trim($center_box_bg_variant['0']);
  176.  
  177. if($center_box_bg_variant['0'] == 'Dark'){
  178.  
  179. $dark_title_color = get_option( 'center_box_dark_title_color' );
  180. $dark_subtitles_color = get_option( 'center_box_dark_subtitles_color' );
  181. $dark_links_color = get_option( 'center_box_dark_links_color' );
  182.  
  183. $GLOBALS['set_style'] = "dark";
  184.  
  185. } else if($center_box_bg_variant['0'] == 'Light'){
  186.  
  187. $light_title_color = get_option( 'center_box_light_title_color' );
  188. $light_subtitles_color = get_option( 'center_box_light_subtitles_color' );
  189. $light_links_color = get_option( 'center_box_light_links_color' );
  190.  
  191. $GLOBALS['set_style'] = "light";
  192. }
  193. }
  194. // apply light version
  195. if($GLOBALS['set_style'] == "light"){
  196.  
  197. /* echo ".box-center .float { background: url(".link_to("wp-content/themes/fullscreen/images/bck_FF-85.png")."); }"; */
  198.  
  199. if ($light_links_color!=''){
  200. echo '.part2 a, .part2 a:hover { color: '.$light_links_color.'; }';
  201. }
  202. if ($light_title_color!=''){
  203. echo '.part2 h1, .part2 h1 a, .part2 h1 a:hover { color: '.$light_title_color.'; }';
  204. }
  205. if ($light_subtitles_color!=''){
  206. echo '.part2 h2, .part2 h3, .part2 h4, .part2 h5, .part2 h6 { color: '.$light_subtitles_color.'; }';
  207. echo '.part2 h2 a, .part2 h3 a, .part2 h4 a, .part2 h5 a, .part2 h6 a { color: '.$light_subtitles_color.'; }';
  208. echo '.part2 h2 a:hover, .part2 h3 a:hover, .part2 h4 a:hover, .part2 h5 a:hover, .part2 h6 a:hover { color: '.$light_subtitles_color.'; }';
  209. echo '.website-name, .website-name a, .website-name a:hover { color: '.$light_subtitles_color.'; }';
  210. }
  211.  
  212. // apply dark version
  213. } else if($GLOBALS['set_style'] == "dark"){
  214.  
  215. /* echo ".box-center .float { background: url(".link_to("wp-content/themes/fullscreen/images/bck_00-80.png")."); }"; */
  216.  
  217. if ($dark_links_color!=''){
  218. echo '.part2 a, .part2 a:hover { color: '.$dark_links_color.'; }';
  219. }
  220. if ($dark_title_color!=''){
  221. echo '.part2 h1, .part2 h1 a, .part2 h1 a:hover { color: '.$dark_title_color.'; }';
  222. }
  223. if ($dark_subtitles_color!=''){
  224. echo '.part2 h2, .part2 h3, .part2 h4, .part2 h5, .part2 h6 { color: '.$dark_subtitles_color.'; }';
  225. echo '.part2 h2 a, .part2 h3 a, .part2 h4 a, .part2 h5 a, .part2 h6 a { color: '.$dark_subtitles_color.'; }';
  226. echo '.part2 h2 a:hover, .part2 h3 a:hover, .part2 h4 a:hover, .part2 h5 a:hover, .part2 h6 a:hover { color: '.$dark_subtitles_color.'; }';
  227. echo '.website-name, .website-name a, .website-name a:hover { color: '.$dark_subtitles_color.'; }';
  228. }
  229.  
  230. }
  231. // hide center box
  232. if ( is_single() || is_page() || ($queried_object->ID == get_option( 'page_for_posts' ) ) || is_front_page() ) {
  233. $hide_cb_backgroud = get_post_meta( $current_id, 'page_hide_cb_background');
  234.  
  235. $hide_cb_backgroud['0'] = trim($hide_cb_backgroud['0']);
  236.  
  237.  
  238. if($hide_cb_backgroud['0'] == 'yes'){
  239. echo ".box-center .float { background: url(".get_bloginfo('url')."/images/none.gif) !important; }";
  240. //echo ".box-center .hide-box { display: none; }";
  241. }
  242. }
  243.  
  244. ?>
  245.  
  246. .header .logo .title {color: #FFFFFF;}
  247. .header .logo .subtitle {color: #BBBBBB;}
  248. </style>
  249. <script type="text/javascript">
  250. Cufon.replace('h1');
  251. Cufon.replace('h2');
  252. </script>
  253. </head>
  254. <?php
  255.  
  256. if ( ! isset( $content_width ) ) $content_width = 900;
  257.  
  258. ?>
  259.  
  260. <body <?php body_class(); ?>>
  261.  
  262. <?php
  263. $cb_height = '';
  264. if ( $center_box_height == 'auto' ) { $cb_height = 'auto'; }
  265. ?>
  266. <div id="center-box-height" style="display:none"><?php echo $cb_height; ?></div>
  267.  
  268. <?php if ( get_option( 'show_themebox' ) ) : ?>
  269.  
  270. <div id="theme-box">
  271. <span id="theme-box-closer" class="opened">open/close</span>
  272. <a href="<?php echo home_url();?>/" id="theme-box-reset" class="not">Reset All</a>
  273. <a href="http://themeforest.net/user/ait/portfolio" id="theme-box-purchase">Purchase Now</a>
  274. <a href="http://themeforest.net/user/ait/follow" id="theme-box-follow">Follow Us</a>
  275.  
  276. <h2>Theme Variant</h2>
  277. <ul id="themebox-images">
  278. <li><a href="http://www.ait.sk/fullscreen/wp/" id="theme-1" class="not"><img src="<?php echo get_template_directory_uri()."/images/thumbnail_cars.jpg"; ?>" alt="" /></a></li>
  279. <li><a href="http://www.ait.sk/fullscreen/wp2/" id="theme-2" class="not"><img src="<?php echo get_template_directory_uri()."/images/thumbnail_furniture.jpg"; ?>" alt="" /></a></li>
  280. <li><a href="http://www.ait.sk/fullscreen/wp3/" id="theme-3" class="not"><img src="<?php echo get_template_directory_uri()."/images/thumbnail_sports.jpg"; ?>" alt="" /></a></li>
  281. </ul>
  282.  
  283. <h2>Our other Themes</h2>
  284. <select id="best-sellers">
  285. <option value="select">- please select -</option>
  286. <option value="corporate">Corporate</option>
  287. <option value="simplicius">Simplicius</option>
  288. <option value="universal-business">Universal business</option>
  289. <option value="glamorous">Glamorous</option>
  290. <option value="trademark">Trademark</option>
  291. <option value="fullscreen">Fullscreen</option>
  292. </select>
  293.  
  294. </div><!-- /#theme-box -->
  295. <?php endif; ?>
  296.  
  297. <div class="screen">
  298.  
  299. <!-- background image -->
  300. <div class="mainpic">
  301. <?php
  302. /* get background url from page metadata */
  303. $background_image_url = get_post_meta( $current_id, 'page_background_image' );
  304. $background_image_url['0'] = trim($background_image_url['0']);
  305.  
  306. /* get background url from default value */
  307. $default_background_image_url = get_option( 'background_image' );
  308.  
  309. // page setting
  310. if(!empty($background_image_url['0'])) {
  311. echo '<img class="bottom-img" src="'.link_to($background_image_url['0']).'" alt="" />';
  312. // global setting
  313. } elseif (!empty( $default_background_image_url )) {
  314. echo '<img class="bottom-img" src="'.link_to($default_background_image_url).'" alt="" />';
  315. }
  316. ?>
  317. </div>
  318.  
  319. <div id="show_hide_content_button" class="show"></div>
  320.  
  321. <!-- full page -->
  322. <div class="mainpage">
  323.  
  324. <?php
  325. $blogname = get_option( 'blogname' );
  326. $blogdesc = get_option( 'blogdescription' );
  327. ?>
  328.  
  329. <!-- header -->
  330. <div class="header">
  331. <div class="inside">
  332. <div class="logo">
  333.  
  334. <?php $logo_url = get_option('logo_url'); ?>
  335.  
  336. <?php if ((get_option('show_logo')) && !(get_option('show_title')) && !empty($logo_url)): ?>
  337. <!-- 1. version LOGO + SUBTITLE -->
  338. <a href="<?php echo home_url(); ?>" class="ver1 <?php if(get_option('show_subtitle')) echo "subtit"; ?>">
  339. <img alt="<?php bloginfo( 'blogname' ); ?>" class="picture" src="<?php echo link_to( $logo_url ); ?>" />
  340. <span class="texted">
  341. <?php if(get_option('show_subtitle')): ?><span class="subtitle"><?php echo $blogdesc; ?></span><?php endif; ?>
  342. </span>
  343. </a>
  344. <?php endif; ?>
  345.  
  346. <?php if ((get_option('show_logo')) && (get_option('show_title')) && !empty($logo_url)): ?>
  347. <!-- 2. version LOGO + TITLE + SUBTITLE -->
  348. <a href="<?php echo home_url(); ?>" class="ver2 <?php if(get_option('show_subtitle')) echo "subtit"; ?>">
  349. <img alt="<?php bloginfo( 'blogname' ); ?>" class="picture" src="<?php echo link_to( $logo_url ); ?>" />
  350. <span class="texted">
  351. <span class="title"><?php echo $blogname; ?></span>
  352. <?php if(get_option('show_subtitle')): ?><span class="subtitle"><?php echo $blogdesc; ?></span><?php endif; ?>
  353. </span>
  354. </a>
  355. <?php endif; ?>
  356.  
  357. <?php if ((!get_option('show_logo')) && (get_option('show_title'))): ?>
  358. <!-- 3. version TITLE + SUBTITLE -->
  359. <a href="<?php echo home_url(); ?>" class="ver3 <?php if(get_option('show_subtitle')) echo "subtit"; ?>">
  360. <span class="texted">
  361. <span class="title"><?php echo $blogname; ?></span>
  362. <?php if(get_option('show_subtitle')): ?><span class="subtitle"><?php echo $blogdesc; ?></span><?php endif; ?>
  363. </span>
  364. </a>
  365. <?php endif; ?>
  366.  
  367. </div>
  368. </div>
  369. <div class="decor"></div>
  370. </div><!-- end of header -->
  371.  
  372. <div class="mainmenu">
  373. <?php
  374. $args = array(
  375. 'menu' => 'Main menu',
  376. 'link_before' => '',
  377. 'link_after' => '',
  378. );
  379. wp_nav_menu( $args );
  380. ?>
  381. </div>
  382.  
  383. <!-- central part -->
  384. <div class="central">
  385. <div class="parts clear">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement