Advertisement
Guest User

Untitled

a guest
Sep 18th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. <?php
  2. function endsWith($haystack, $needle)
  3. {
  4. $length = strlen($needle);
  5. $start = $length * -1; //negative
  6. return (substr($haystack, $start) === $needle);
  7. }
  8. ?>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  10. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  11. <head profile="http://gmpg.org/xfn/11">
  12. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  13.  
  14. <META name="y_key" content="ce6bf6af46f266af" />
  15. <meta name="msvalidate.01" content="5E5F413601E1E7A00601A115684E1448" />
  16. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  17. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  18. <style type="text/css" media="screen"></style>
  19. <?php wp_head(); ?>
  20.  
  21.  
  22. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  23. <script type="text/javascript"><!--//--><![CDATA[//>
  24. <!--
  25.  
  26. sfHover = function() {
  27. var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
  28. for (var i=0; i<sfEls.length; i++) {
  29. sfEls[i].onmouseover=function() {
  30. this.className+=" sfhover";
  31. }
  32. sfEls[i].onmouseout=function() {
  33. this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
  34. }
  35. }
  36. }
  37. if (window.attachEvent) window.attachEvent("onload", sfHover);
  38.  
  39. //--><!]]></script>
  40. <script type="text/javascript">
  41.  
  42. var _gaq = _gaq || [];
  43. _gaq.push(['_setAccount', 'UA-24572070-8']);
  44. _gaq.push(['_setDomainName', 'coralind.com']);
  45. _gaq.push(['_trackPageview']);
  46.  
  47. (function() {
  48. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  49. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  50. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  51. })();
  52.  
  53. </script>
  54. </head>
  55. <body class="body">
  56. <!--
  57. <div id="top_wrapper">
  58. <div id="top">
  59.  
  60. top menu
  61.  
  62. </div>
  63. </div>
  64. -->
  65.  
  66. <div id="logo_wrapper">
  67.  
  68. <div id="logo" rel="/">
  69.  
  70. <a href="/"><img src="<?=bloginfo('template_url')?>/images/logo-coral-industries.png" alt="Coral Industries Glass Products" width="224" height="101" border="0" /></a>
  71.  
  72. <?php if(!endsWith(get_page_template(), "landing_page.php")) { ?>
  73. <div id="main_navigation">
  74. <div id="navigation">
  75.  
  76. <!-- top navigation -->
  77. <?php wp_nav_menu (array ( 'theme_location' => 'main-nav-menu') ); ?>
  78.  
  79. </div>
  80. </div>
  81. <?php } ?>
  82. </div>
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91. <!--
  92.  
  93. <?php if(is_page(1421)) : ?>
  94. <div id="featured" style="margin:auto;">
  95. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Header')) : endif; ?>
  96. <iframe src="http://www.coralind.com/wp-content/themes/coralind/residential.html" name="contents_frame" width="660px" marginwidth="0" height="330px" marginheight="0" align="left" scrolling="No" frameborder="0" hspace="0" vspace="0" id="contents_frame"></iframe>
  97.  
  98. <iframe src="http://www.coralind.com/wp-content/themes/coralind/featured_nav.html" name="nav_frame" width="300px" marginwidth="0" height="330px" marginheight="0" align="right" scrolling="No" frameborder="0" hspace="0" vspace="0" id="nav_frame"></iframe>
  99. </div>
  100. <?php endif; ?>
  101. -->
  102.  
  103. </div>
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. <div style="clear:both;"></div>
  116. <div id="wrapper">
  117. <div id="mid_background_wrapper">
  118. <div id="mid_background"> </div>
  119. </div>
  120. <div style="clear:both;"></div>
  121. <div id="content_wrapper">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement