Advertisement
Guest User

header.php

a guest
Sep 25th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.96 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  6. <meta name="generator" content="Wordpress <?php bloginfo('version'); ?>" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
  9. <link rel="pingback" href="<?php bloginfo('pingback url'); ?>" />
  10. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" />
  12. <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/img/favicon.ico" />
  13.  
  14. <?php echo do_shortcode('[mbYTPlayer url="http://www.youtube.com/watch?v=a2qWaELDmng&list=UUKU7pkfwlpYPCRz_yg929ig&index=1&feature=plcp" ratio="4/3" mute="true" loop="true" showControls="true" opacity=1]'); ?>
  15.  
  16. <script type="text/javascript">
  17.  
  18. function setCookie(c_name, value, exdays) {
  19.  
  20. c_name = c_name.toLowerCase();
  21.  
  22. var exdate = new Date();
  23.  
  24. exdate.setDate(exdate.getDate() + exdays);
  25.  
  26. var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
  27.  
  28. document.cookie = c_name + "=" + c_value;
  29.  
  30. }
  31.  
  32. function getCookie(c_name) {
  33.  
  34. c_name = c_name.toLowerCase();
  35.  
  36. var i, x, y, ARRcookies = document.cookie.split(";");
  37.  
  38. for (i = 0; i < ARRcookies.length; i++) {
  39.  
  40. x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
  41.  
  42. y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
  43.  
  44. x = x.replace(/^\s+|\s+$/g, "");
  45.  
  46. if (x == c_name) {
  47.  
  48. //alert("x = " + x);
  49.  
  50. return unescape(y);
  51.  
  52. }
  53.  
  54. }
  55.  
  56. }
  57.  
  58. function getQuerystring(key, default_) {
  59.  
  60. key = key.toLowerCase();
  61.  
  62. //alert("key : " + key);
  63.  
  64. //alert("default_ : " + default_);
  65.  
  66. if (default_ == null) default_ = "";
  67.  
  68. key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
  69.  
  70. var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
  71.  
  72. var qs = regex.exec(window.location.href.toLowerCase());
  73.  
  74. if (qs == null) {
  75.  
  76. //alert("default_ : " + default_);
  77.  
  78. return default_;
  79.  
  80. }
  81.  
  82. else {
  83.  
  84. //alert("qs[1] : " + qs[1]);
  85.  
  86. return qs[1];
  87.  
  88. }
  89.  
  90. }
  91.  
  92. function detectMobileAndRedirect(a,b){
  93.  
  94. // alert(location.href);
  95.  
  96. if(/android|webOS|avantgo|blackberry|blazer|elaine|hiptop|ip(hone|od)|kindle|midp|mmp|mobile|o2|opera mini|palm( os)?|pda|plucker|pocket|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-)|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))){
  97.  
  98. if(/ipad/i.test(a)){
  99.  
  100. return false;
  101.  
  102. }
  103.  
  104. location.href=b;
  105.  
  106. }
  107.  
  108. }
  109.  
  110. function removeQueryString(url) {
  111.  
  112. return url.split("?")[0];
  113.  
  114. }
  115.  
  116. var FullSiteCookie = getCookie("viewFullSite");
  117.  
  118. var viewFullSite = getQuerystring("viewFullSite");
  119.  
  120. var renderFullSite = new Boolean();
  121.  
  122. renderFullSite = false;
  123.  
  124. if (FullSiteCookie != null && FullSiteCookie != "") {
  125.  
  126. if (FullSiteCookie.toLowerCase() == "true") {
  127.  
  128. if (viewFullSite.toLowerCase() == "false") {
  129.  
  130. setCookie("viewFullSite", false, 1);
  131.  
  132. }
  133.  
  134. else {
  135.  
  136. renderFullSite = true;
  137.  
  138. //alert("Set 11");
  139.  
  140. }
  141.  
  142. }
  143.  
  144. else {
  145.  
  146. if (viewFullSite != null && viewFullSite != "") {
  147.  
  148. if (viewFullSite.toLowerCase() == "true") {
  149.  
  150. renderFullSite = true;
  151.  
  152. //alert("Set 2");
  153.  
  154. setCookie("viewFullSite", true, 1);
  155.  
  156. }
  157.  
  158. else {
  159.  
  160. if (viewFullSite.toLowerCase() == "false") {
  161.  
  162. setCookie("viewFullSite", false, 1);
  163.  
  164. }
  165.  
  166. renderFullSite = false;
  167.  
  168. //alert("Set 3");
  169.  
  170. }
  171.  
  172. }
  173.  
  174. else {
  175.  
  176. renderFullSite = false;
  177.  
  178. //alert("Set 4");
  179.  
  180. }
  181.  
  182. }
  183.  
  184. }
  185.  
  186. else {
  187.  
  188. viewFullSite = getQuerystring("viewFullSite");
  189.  
  190. //alert("viewFullSite 1 : " + viewFullSite);
  191.  
  192. if (viewFullSite != null && viewFullSite != "") {
  193.  
  194. if (viewFullSite.toLowerCase() == "true") {
  195.  
  196. renderFullSite = true;
  197.  
  198. //alert("Set 5");
  199.  
  200. setCookie("viewFullSite", true, 1);
  201.  
  202. }
  203.  
  204. else {
  205.  
  206. renderFullSite = false;
  207.  
  208. //alert("Set 6");
  209.  
  210. }
  211.  
  212. }
  213.  
  214. else {
  215.  
  216. renderFullSite = false;
  217.  
  218. //alert("Set 7");
  219.  
  220. }
  221.  
  222. }
  223.  
  224. //alert("renderFullSite : " + renderFullSite);
  225.  
  226. if (!renderFullSite) {
  227.  
  228. //alert("location href before: " + location.href);
  229.  
  230. var mobilesite = "http://parlourdc.mobi";
  231.  
  232. var locationhref = removeQueryString(location.href);
  233.  
  234. //alert("location href after: " + locationhref);
  235.  
  236. if (locationhref == "http://parlourdc.com") {
  237.  
  238. mobilesite = "http://parlourdc.mobi/index.php";
  239.  
  240. }
  241.  
  242. detectMobileAndRedirect(navigator.userAgent || navigator.vendor || window.opera, mobilesite);
  243.  
  244. }
  245.  
  246. function BookMark() {
  247.  
  248. $('#BookmarkImg').animate({ "top": "-81px" }, 1000);
  249.  
  250. baseCookieName = "rwbookmark";
  251.  
  252. var exdate = new Date();
  253.  
  254. var expiredays = "1";
  255.  
  256. exdate.setDate(exdate.getDate() + expiredays);
  257.  
  258. //use of arbritary stop point so no endless loop occurs
  259.  
  260. for (var i = 0; i < 10000; i++) {
  261.  
  262. var curName = baseCookieName + i;
  263.  
  264. if (document.cookie.indexOf(curName) < 0) {
  265.  
  266. document.cookie = curName + "=" + escape(window.location.href) + "[#]contentid=" + document.getElementById("inputContentID").value + "[#]title=" + GetPageTitle() + ";expires=" + exdate.toGMTString() + ";path=/;domain=parlourdc.com;";
  267.  
  268. break;
  269.  
  270. }
  271.  
  272. }
  273.  
  274. var link = document.getElementById('BookmarkLink');
  275.  
  276. link.onclick = null;
  277.  
  278. link.style.cursor = "default";
  279.  
  280. }
  281.  
  282. function GetPageTitle() {
  283.  
  284. var titlefromdom = "";
  285.  
  286. var titlefromdomarray = "";
  287.  
  288. $(document).ready(function() {
  289.  
  290. titlefromdom = document.title;
  291.  
  292. });
  293.  
  294. titlefromdomarray = titlefromdom.split("|");
  295.  
  296. if (titlefromdomarray.length > 0) {
  297.  
  298. titlefromdom = titlefromdomarray;
  299.  
  300. }
  301.  
  302. return titlefromdom;
  303.  
  304. }
  305.  
  306. </script>
  307.  
  308. <?php wp_head(); ?>
  309. </head>
  310.  
  311. <body>
  312.  
  313. <header>
  314. <nav>
  315. <ul>
  316. <li><a href="index.php?page_id=9">ABOUT</a></li>
  317. <?php wp_list_pages('title_li=&include=23,19,11,21,15'); ?>
  318. </ul>
  319.  
  320. </nav>
  321. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement