Advertisement
Guest User

Untitled

a guest
Apr 4th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.72 KB | None | 0 0
  1. <?php
  2.  
  3. ##################################################
  4. #### VILLAGE
  5. ##################################################
  6.  
  7. global $options;
  8.  
  9. $options = get_option('option_tree');
  10. $skin = "";
  11.  
  12. if (isset($_GET['skin'])) {
  13. $skin = $_GET['skin'];
  14. }
  15.  
  16. ?>
  17.  
  18. <!DOCTYPE HTML>
  19.  
  20. <html>
  21.  
  22. <head>
  23.  
  24. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  25. <meta http-equiv="imagetoolbar" content="no" />
  26.  
  27. <?php
  28.  
  29. ##################################################
  30. #### INCLUDE SEO
  31. ##################################################
  32.  
  33. blueprint_seo();
  34.  
  35. ##################################################
  36. #### INCLUDE WP HEAD
  37. ##################################################
  38.  
  39. wp_enqueue_script( 'comment-reply' );
  40. wp_head();
  41.  
  42. ?>
  43.  
  44. <title><?php blueprint_seo_title(); ?></title>
  45.  
  46. <!-- css imports -->
  47.  
  48. <link href="<?php echo BP; ?>/style.css" rel="stylesheet" media="all" />
  49. <?php if ($options['setting_skin'] == "Dark Noise" || $skin == "dark_noise") : ?>
  50. <link href="<?php echo BP; ?>/skins/dark_noise.css" rel="stylesheet" media="all" />
  51. <?php endif; ?>
  52. <?php if ($options['setting_skin'] == "Stone" || $skin == "stone") : ?>
  53. <link href="<?php echo BP; ?>/skins/stone.css" rel="stylesheet" media="all" />
  54. <?php endif; ?>
  55. <?php if ($options['setting_skin'] == "Dark Crosshair" || $skin == "dark_crosshair") : ?>
  56. <link href="<?php echo BP; ?>/skins/dark_crosshair.css" rel="stylesheet" media="all" />
  57. <?php endif; ?>
  58. <?php if ($options['setting_skin'] == "Light Fabric" || $skin == "light_fabric") : ?>
  59. <link href="<?php echo BP; ?>/skins/light_fabric.css" rel="stylesheet" media="all" />
  60. <?php endif; ?>
  61. <link href="<?php echo BP; ?>/wall/source/style/prettyPhoto.css" rel="stylesheet" media="all" />
  62. <link href="http://fonts.googleapis.com/css?family=<?php echo $options['setting_menu_font']; ?>|<?php echo $options['setting_body_font']; ?>|<?php echo $options['setting_heading_font']; ?>" rel="stylesheet" type="text/css" >
  63. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  64. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/colorbox/colorbox.css" media="screen" />
  65. <?php if (is_page_template('portrait_slideshow_gallery.php')) : ?>
  66. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/css/supersized.css" media="screen" />
  67. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/supersized/supersized.shutter.css" media="screen" />
  68. <?php endif; ?>
  69.  
  70. <style type="text/css">
  71.  
  72. h1,h2,h3,h4,h5,h6 {
  73. font-family: "<?php echo str_replace("+", " ",$options['setting_heading_font']); ?>";
  74. }
  75.  
  76. #menu ul li a {
  77. font-family: "<?php echo str_replace("+", " ",$options['setting_menu_font']); ?>";
  78. }
  79. #menu ul li ul li a, #menu ul li ul li ul li a {
  80. font-family: "<?php echo str_replace("+", " ",$options['setting_submenu_font']); ?>";
  81. }
  82.  
  83. body, #content_wrap, #search input[type=text], #cart_n_stuff {
  84. font-family: "<?php echo str_replace("+", " ",$options['setting_body_font']); ?>";
  85. }
  86.  
  87. </style>
  88.  
  89. <!--[if IE]>
  90. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/ie.css" />
  91. <![endif]-->
  92.  
  93. <!--[if lt IE 9]>
  94. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/ie8.css" />
  95. <![endif]-->
  96.  
  97. <?php if ($options['setting_skin'] == "Stone" || $skin == "stone") : ?>
  98. <!--[if lt IE 9]>
  99. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/skins/stone_ie.css" />
  100. <![endif]-->
  101. <?php endif; ?>
  102. <?php if ($options['setting_skin'] == "Dark Crosshair" || $skin == "dark_crosshair") : ?>
  103. <!--[if lt IE 9]>
  104. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/skins/dark_crosshair_ie.css" />
  105. <![endif]-->
  106. <?php endif; ?>
  107. <?php if ($options['setting_skin'] == "Light Fabric" || $skin == "light_fabric") : ?>
  108. <!--[if lt IE 9]>
  109. <link rel="stylesheet" type="text/css" href="<?php echo BP; ?>/skins/light_fabric_ie.css" />
  110. <![endif]-->
  111. <?php endif; ?>
  112.  
  113. <!-- javascript imports -->
  114.  
  115.  
  116. <script type="text/javascript" src="<?php echo BP; ?>/wall/source/js/jquery.prettyPhoto.js"></script>
  117. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.effects.core.min.js"></script>
  118. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.effects.slide.min.js"></script>
  119. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.effects.blind.min.js"></script>
  120. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.superbgimage.js"></script>
  121. <script type="text/javascript" src="<?php echo BP; ?>/jscript/swfobject.js"></script>
  122. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.easing.1.3.js"></script>
  123. <script type="text/javascript" src="<?php echo BP; ?>/jscript/flowplayer-3.2.6.min.js"></script>
  124. <script type="text/javascript" src="<?php echo BP; ?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
  125. <script type="text/javascript" src="<?php echo BP; ?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
  126. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.colorbox-min.js"></script>
  127. <script type="text/javascript" src="<?php echo BP; ?>/galleria/galleria-1.2.5.min.js"></script>
  128. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.masonry.min.js"></script>
  129. <?php if (is_page_template('portrait_slideshow_gallery.php')) : ?>
  130. <script type="text/javascript" src="<?php echo BP; ?>/jscript/supersized.3.2.4.min.js"></script>
  131. <script type="text/javascript" src="<?php echo BP; ?>/supersized/supersized.shutter.min.js"></script>
  132. <?php endif; ?>
  133.  
  134. <script type="text/javascript">
  135.  
  136. var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>/wp-admin/admin-ajax.php";
  137. var cf_name = "<?php echo $options['cf_name']; ?>";
  138. var cf_email = "<?php echo $options['cf_email']; ?>";
  139. var cf_phone = "<?php echo $options['cf_phone']; ?>";
  140. var cf_website = "<?php echo $options['cf_website']; ?>";
  141.  
  142. function getInternetExplorerVersion()
  143. {
  144. var rv = -1; // Return value assumes failure.
  145. if (navigator.appName == 'Microsoft Internet Explorer')
  146. {
  147. var ua = navigator.userAgent;
  148. var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
  149. if (re.exec(ua) != null)
  150. rv = parseFloat( RegExp.$1 );
  151. }
  152. return rv;
  153. }
  154. function checkVersion()
  155. {
  156. var msg = "You're not using Internet Explorer.";
  157. var ver = getInternetExplorerVersion();
  158.  
  159. if ( ver > -1 )
  160. {
  161. if ( ver <= 8.0 ) return true;
  162. }
  163.  
  164. return false;
  165.  
  166. }
  167.  
  168. </script>
  169.  
  170. <script type="text/javascript" src="<?php echo BP; ?>/jscript/jquery.custom.js"></script>
  171.  
  172. <?php if(!is_page_template('wall.php') || !is_page_template('wall_menu.php')) : ?>
  173.  
  174. <script type="text/javascript">
  175.  
  176. jQuery(function() {
  177.  
  178. // Options for SuperBGImage
  179. jQuery.fn.superbgimage.options = {
  180. id: 'superbgimage', // id for the containter
  181. z_index: 0, // z-index for the container
  182. inlineMode: 0, // 0-resize to browser size, 1-do not resize to browser-size
  183. showimage: 1, // number of first image to display
  184. vertical_center: 1, // 0-align top, 1-center vertical
  185. transition: 1, // 0-none, 1-fade, 2-slide down, 3-slide left, 4-slide top, 5-slide right, 6-blind horizontal, 7-blind vertical, 90-slide right/left, 91-slide top/down
  186. transitionout: 1, // 0-no transition for previous image, 1-transition for previous image
  187. randomtransition: 0, // 0-none, 1-use random transition (0-7)
  188. showtitle: 0, // 0-none, 1-show title
  189. slideshow: ((jQuery("#thumbs a, #thumbs_hide a, #floating_slideshow_nav a").size() > 1) ? 1 : 0), // 0-none, 1-autostart slideshow
  190. slide_interval: 4000, // interval for the slideshow
  191. randomimage: 0, // 0-none, 1-random image
  192. speed: 'slow', // animation speed
  193. preload: 1, // 0-none, 1-preload images
  194. onShow: null, // function-callback show image
  195. onClick: null, // function-callback click image
  196. onHide: null, // function-callback hide image
  197. onMouseenter: null, // function-callback mouseenter
  198. onMouseleave: null, // function-callback mouseleave
  199. onMousemove: null // function-callback mousemove
  200. };
  201.  
  202. // initialize SuperBGImage
  203.  
  204. <?php if (is_page_template('slideshow.php') || is_page_template('slideshow_floating.php') || is_page_template('slideshow_portrait.php') || is_page_template('slideshow_no_thumbs.php') || is_page_template('slideshow_floating_portrait.php')) : ?>
  205.  
  206. jQuery('#thumb_mousemove, #thumb_vert_mousemove, #thumbs_hidden').superbgimage();
  207.  
  208. <?php else: ?>
  209.  
  210. jQuery('#thumbs_hide').superbgimage();
  211.  
  212. <?php endif; ?>
  213.  
  214. });
  215.  
  216. </script>
  217.  
  218. <?php endif; ?>
  219.  
  220. <?php if (get_option_tree("setting_rcprotect") == "Yes") : ?>
  221.  
  222. <script type="text/javascript">
  223.  
  224. var message="Right Click Is Disabled";
  225.  
  226. ///////////////////////////////////
  227. function clickIE4(){
  228. if (event.button==2){
  229. alert(message);
  230. return false;
  231. }
  232. }
  233.  
  234. function clickNS4(e){
  235. if (document.layers||document.getElementById&&!document.all){
  236. if (e.which==2||e.which==3){
  237. alert(message);
  238. return false;
  239. }
  240. }
  241. }
  242.  
  243. if (document.layers){
  244. document.captureEvents(Event.MOUSEDOWN);
  245. document.onmousedown=clickNS4;
  246. }
  247. else if (document.all&&!document.getElementById){
  248. document.onmousedown=clickIE4;
  249. }
  250.  
  251. document.oncontextmenu=new Function("alert(message);return false");
  252.  
  253. </script>
  254.  
  255. <?php endif; ?>
  256.  
  257. </head>
  258.  
  259. <body>
  260.  
  261. <!-- START #header -->
  262.  
  263. <div id="header">
  264.  
  265. <!-- START #logo -->
  266.  
  267. <div id="logo">
  268.  
  269. <a href="<?php bloginfo('url'); ?>"><img src="<?php echo $options['logo_url']; ?>" alt="" /></a>
  270.  
  271. </div>
  272.  
  273. <!-- END #logo -->
  274.  
  275. <!-- START #menu -->
  276.  
  277. <div id="menu">
  278.  
  279. <?php wp_nav_menu(array('theme_location' => 'primary')); ?>
  280.  
  281. </div>
  282.  
  283. <!-- END #menu -->
  284.  
  285. <!-- START #cart_n_stuff -->
  286.  
  287. <div id="cart_n_stuff">
  288.  
  289. <div id="search">
  290.  
  291. <form method="get" action="<?php bloginfo('siteurl'); ?>">
  292.  
  293. <input type="submit" value="" />
  294. <input type="text" name="s" value="<?php echo $options['setting_slbt']; ?>" class="search_input" onfocus="if (this.value == '<?php echo $options['setting_slbt']; ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $options['setting_slbt']; ?>'}" />
  295.  
  296.  
  297. </form>
  298.  
  299. </div>
  300.  
  301. <?php
  302.  
  303. ##################################################
  304. #### SOCIAL NETWORK ICON CONFIG
  305. ##################################################
  306.  
  307. $icon_status_array = array();
  308. $icon_url_array = array();
  309. $icon_src_path = get_bloginfo('template_url')."/images/social_icons/";
  310.  
  311. for ($icon_count = 0; $icon_count < 19; $icon_count++) {
  312.  
  313. $icon_status_array[$icon_count] = get_option_tree('social_array', '', false, true, $icon_count);
  314. $icon_url_array[$icon_count] = get_option_tree($icon_status_array[$icon_count]."_url",'',false);
  315.  
  316. }
  317.  
  318. $icon_link_new_window = get_option_tree('icon_link_new_window', '', false);
  319.  
  320. ($icon_link_new_window == "Yes") ? $icon_link_new_window = "_blank" : $icon_link_new_window = "_self";
  321.  
  322. ?>
  323.  
  324. <div id="social_icons">
  325.  
  326. <ul>
  327.  
  328. <?php
  329.  
  330. $icon_count = 0;
  331.  
  332. ## GENERATE THE SOCIAL NETWORK ICONS
  333.  
  334. for ($icon_count = 0; $icon_count < 19; $icon_count++) {
  335.  
  336. if ($icon_status_array[$icon_count] != "") echo '<li><a href="' . $icon_url_array[$icon_count] . '" target="' . $icon_link_new_window . '"><img alt="" src="' . $icon_src_path . '' . $icon_status_array[$icon_count] . '_32.png" /></a></li>';
  337.  
  338. }
  339.  
  340. ?>
  341.  
  342. </ul>
  343.  
  344. <div class="clear"></div>
  345.  
  346. </div>
  347.  
  348. <span style="margin-top: 5px; display: block;"><?php echo get_option_tree("footer_text"); ?></span>
  349.  
  350. </div>
  351.  
  352. <!-- END #cart_n_stuff -->
  353.  
  354. </div>
  355.  
  356. <!-- END #header -->
  357.  
  358. <?php if (!is_page_template('slideshow.php') && !is_page_template('slideshow_no_thumbs.php') && !is_page_template('slideshow_portrait.php')) : ?>
  359.  
  360. <div id="show_hide"><img src="<?php echo BP; ?>/images/toggle.png" alt="" /></div>
  361.  
  362. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement