Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 21st, 2011  |  syntax: None  |  size: 4.70 KB  |  hits: 35  |  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. <!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" xml:lang="en" lang="en">
  3. <head>
  4.  
  5.         <title><?php bloginfo; wp_title(); ?></title>
  6.    
  7.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8.         <link href="/favicon.ico" rel="shortcut icon" type="image/ico" />
  9.         <link href="<?php bloginfo('stylesheet_directory'); ?>/c/style.css" rel="stylesheet" media="screen, projection" type="text/css" />     
  10.         <meta name="robots" content="noindex, nofollow" />
  11.  
  12. <?php wp_head(); ?>
  13. </head>
  14.  
  15. <body>
  16. <div id="container">
  17.         <div id="head">
  18.         <a href="/test-wordpress/" title="County Arms Truro - Go to Homepage"><img src="<?php bloginfo('template_directory'); ?>/i/logo.jpg" alt="County Arms - Logo" /></a>
  19.         <ul id="nav">
  20.         <?php wp_list_pages('title_li='); ?>
  21.             <li><a href="/" title="/">Gallery</a></li>
  22.             <li><a href="/" title="/">Contact</a></li>      
  23.                 </ul>
  24.     </div><!--/head-->
  25.    
  26.  
  27.     <div id="main">
  28.        
  29.         <div id="page-content-wrap">
  30.                    
  31.             <div id="slideshow-wrapper">
  32.                 <?php echo do_shortcode('[portfolio_slideshow]');?>
  33.             </div>
  34.             <div id="page-entry">
  35.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  36.         <?php $do_not_duplicate = $post->ID; ?>  
  37.                <?php the_content(); ?>
  38.                <?php endwhile; ?>
  39.                 <?php endif; ?>
  40.              </div><!--/page-entry-->
  41.         </div><!--/page-content-wrap-->
  42.  
  43.         <div id="random-widgets">
  44.         <?php $my_query = new WP_Query(array('post_type' => 'page', 'orderby' => 'rand', 'posts_per_page' => 2, 'post__not_in' => array($do_not_duplicate))); ?>
  45.                 <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
  46.                 <?php $permalink = get_permalink($post->ID); ?>
  47.         <?php   $selected_values = simple_fields_get_post_group_values(get_the_id(), "Randomized widgets", false,2);
  48.         foreach($selected_values as $value){;
  49.         echo '<div>' . "\n";
  50.         echo '<img src="' .wp_get_attachment_url( $value[1] ).'" /> ' . "\n";
  51.         echo '<div>' . "\n";
  52.         echo '<h3><a href=" ' . $permalink . ' ">  '.( $value[2] ).' </a></h3>' . "\n";
  53.         echo '<p> ' .( $value[3] ) . ' </p>' . "\n";
  54.         echo '</div>' . "\n";
  55.         echo '</div>' . "\n";
  56.         }
  57.         ?>
  58.                 <?php endwhile; ?>
  59.         </div><!--/random-widgets-->        
  60.         </div><!--/main-->
  61.  
  62.  
  63.     <div id="sidebar">
  64.         <div id="sidebar-forms">
  65.                 <?php $sidebar = new WP_Query('post_type=sidebar'); ?>
  66.         <?php while ($sidebar->have_posts()) : $sidebar->the_post(); ?>
  67.         <?php the_content(); ?>
  68.                 </div><!--/sidebar-forms-->
  69.          
  70.                 <div id="sidebar-widgets">
  71.                 <?php   $selected_values = simple_fields_get_post_group_values(get_the_id(), "Sidebar widgets", false,2);
  72.         foreach($selected_values as $value){;
  73.         echo '<div>' . "\n";
  74.         echo '<h2>  '.( $value[1] ).' </h2>' . "\n";
  75.         echo '  '.( $value[2] ).' ' . "\n";
  76.         echo '</div>' . "\n";
  77.         }
  78.         ?>
  79.                
  80.          <?php endwhile; ?>
  81.                         <div>
  82.                 <h2>Recent Twitter posts</h2>
  83.                 <?php //This requires 'latest-tweet.php' which is at root of domain. http://www.webdesigncreare.co.uk/blog/videos/display-latest-tweet.html
  84. // Step 1 - Swap crearegroup for your Twitter User-name
  85. $twitterid = "klood_com";
  86. // Step 2 - How many tweets to you want to show? Swap 4 for how many you would like.
  87. $numberoftweets = "1";
  88. // Step 3 - Make sure that you source the include file correctly below:
  89. require_once('latest-tweet.php');
  90. // Step 4 - Usage (XML FEED, STRIP_TAGS (DEFAULT NO), NOFOLLOW (DEFAULT YES), TARGETBLANK (DEFAULT YES))
  91. getLatestTweet($tweetxml, false, true, true);
  92.  ?>                
  93.             </div>
  94.                 </div><!--/sidebar-widgets-->
  95.     </div><!--/sidebar-->
  96.    
  97.     <div id="footer" style="margin-right:0;"><!--To make sidebar push down footer remove this style.-->
  98.  
  99.                 <?php $footer = new WP_Query('post_type=footer'); ?>
  100.         <?php while ($footer->have_posts()) : $footer->the_post(); ?>
  101.         <?php the_content(); ?>      
  102.                 <?php endwhile; ?>  
  103.    
  104.    
  105. </div><!--/footer-->
  106.  
  107.  
  108.  
  109. </div><!--/container-->
  110.  
  111. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/j/jquery-1.5.2.min.js"></script>
  112. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/j/scripts.js"></script>
  113.  
  114. <?php
  115.         /* Always have wp_footer() just before the closing </body>
  116.          * tag of your theme, or you will break many plugins, which
  117.          * generally use this hook to reference JavaScript files.
  118.          */
  119.  
  120.         wp_footer();
  121. ?>
  122. </body>
  123. </html>
  124.  
  125.  
  126.