Want more features on Pastebin? Sign Up, it's FREE!
Guest

Single.php

By: a guest on Mar 3rd, 2014  |  syntax: PHP  |  size: 5.04 KB  |  views: 96  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * The Template for displaying all single posts.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Eleven
  7.  * @since Twenty Eleven 1.0
  8.  */
  9.  
  10.  get_header(); ?>
  11. <div class="blackbar">
  12. <!--SOCIAL LINKS-->
  13. <style>
  14. .socialicons{ padding: 2px;}
  15. </style>
  16. <div style="top: 15px; position: absolute; left: 50%; margin-left: 353px; white-space: nowrap;">
  17. <a href="https://www.youtube.com/CTsoftware" target="_blank" ><img class="socialicons" height="22" width="22" src="/wp-content/uploads/2013/11/YouTubePlay.png" /></a><a href="http://www.linkedin.com/company/cleantelligent_software" target="_blank" ><img class="socialicons" height="22" width="22" src="/wp-content/uploads/2013/11/linkedin.png" /></a><a href="https://twitter.com/#!/CleanTelligent1" target="_blank" ><img class="socialicons" height="22" width="22" src="/wp-content/uploads/2013/11/twitter.png" /></a><a href="http://www.facebook.com/CleanTelligent" target="_blank" ><img class="socialicons" height="22" width="22" src="/wp-content/themes/cleantelligent/images/facebook.png" /></a><a href="https://plus.google.com/102775665167203456874" rel="publisher"><img src="/wp-content/uploads/2013/11/GooglePlusIcon.png" alt="Google +" style="padding: 0 0 1px 2px;"/></a>
  18. </div>
  19. <div style="font-family: 'News Cycle', sans-serif; color:#D1D1D1;  position: absolute; left: 50%; margin-left: 345px; white-space: nowrap; font-size: 40%;">
  20. <img style="position: relative; top: 8px;" src="/wp-content/uploads/2013/11/phonetrans.png" />(801) 404-5038</div>
  21.  
  22. <!--END OF SOCIAL LINKS-->
  23. <div class='bbw'>
  24. Blog
  25.         </div>
  26. </div>
  27.  
  28.  
  29. <div class='blog-cont-wrap'>
  30.  
  31.         <div id="primary">
  32.         <?php
  33.         $post_obj = $wp_query->get_queried_object();
  34.         $post_name = $post_obj->post_name;
  35.         if($post_name == 'blog'){
  36.                 echo 'Blog';
  37.         }else{
  38.                 $parent_title = get_the_title($post->post_parent);
  39.                 echo $parent_title;
  40.         }
  41. ?>
  42.                 <div id="content" role="main">
  43.  
  44.                         <?php while ( have_posts() ) : the_post(); ?>
  45.  
  46.                                 <?php get_template_part( 'content', 'archive'); ?>
  47.  
  48.                         <?php endwhile; // end of the loop. ?>
  49.  
  50.                 </div><!-- #content -->
  51.         </div><!-- #primary -->
  52.  
  53. <?php get_sidebar('blog'); ?>
  54.  
  55. </div>
  56.  
  57. </div><!-- #main -->
  58.  
  59.  
  60. <footer id="colophon" role="contentinfo">
  61.  
  62.    
  63.  
  64.  
  65.     <div id="site-generator">
  66.                 <div class='footw'>
  67.         <span id="footer-copyright">
  68.             &copy; 2013 CleanBrain Software Inc. All Rights Reserved.
  69.         </span>
  70.         <div class="menu-footer-menu-container"><ul id="menu-footer-menu" class="menu"><li id="menu-item-125" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-125"><a href="/about-us/contact-us">Contact Us</a></li>
  71. <li id="menu-item-126" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-126"><a href="/news-and-events/rss.xml">News &#038; Events</a></li>
  72. <li id="menu-item-395" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-395"><a href="/sitemap.xml">Site Map</a></li>
  73. <li id="menu-item-389" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-389"><a href="/privacy-statement">Privacy Statement</a></li>
  74. <li id="menu-item-124" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-124"><a href="/about-us/careers">Careers</a></li>
  75. <li id="menu-item-394" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-394"><a href="/send-a-referral">Send a Referral</a></li>
  76. </ul></div>             </div>
  77.     </div>
  78.  
  79.     <script type="text/javascript">// <![CDATA[
  80.         jQuery(function(){
  81.             jQuery("li:has(.current_page_item)").addClass('current_page_parent');
  82.         })
  83.         // ]]></script>
  84. </footer><!-- #colophon -->
  85. <!-- #page -->
  86.  
  87. <script type='text/javascript' src='/wp-content/plugins/formidable/js/formidable.js?ver=1.06.05'></script>
  88.  
  89. <!-- Begin Tracking Code -->
  90. <script type="text/javascript">
  91.    var trackCid = 155562;
  92.    var trackTid = '';
  93. </script>
  94. <script type="text/javascript">
  95.    document.write(unescape('%3Cscript src="' + (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//otracking.com/js/TrackingV2.js" type="text/javascript"%3E%3C/script%3E'));
  96. </script>
  97. <!-- End Tracking Code -->
  98.  
  99. <!-- Google Tracking Code - used on every page of static site -->
  100. <script type="text/javascript">
  101.  
  102.   var _gaq = _gaq || [];
  103.   _gaq.push(['_setAccount', 'UA-6385411-2']);
  104.   _gaq.push(['_trackPageview']);
  105.  
  106.   (function() {
  107.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  108.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  109.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  110.   })();
  111.  
  112. </script>
  113.  
  114. <script type="text/javascript">
  115. //<![CDATA[
  116. jQuery(document).ready(function($){
  117. $('.frm-show-form').live('submit',function(e){e.preventDefault();frmGetFormErrors(this,'/index.php?plugin=formidable');});
  118. });
  119.  
  120. //]]>
  121. </script>
  122. <script type='text/javascript' src='/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.8.20'></script>
  123.                 <a name="form" ></a>
  124.  
  125. </body>
  126. </html>
clone this paste RAW Paste Data