Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title><?php bloginfo; wp_title(); ?></title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link href="/favicon.ico" rel="shortcut icon" type="image/ico" />
- <link href="<?php bloginfo('stylesheet_directory'); ?>/c/style.css" rel="stylesheet" media="screen, projection" type="text/css" />
- <meta name="robots" content="noindex, nofollow" />
- <?php wp_head(); ?>
- </head>
- <body>
- <div id="container">
- <div id="head">
- <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>
- <ul id="nav">
- <?php wp_list_pages('title_li='); ?>
- <li><a href="/" title="/">Gallery</a></li>
- <li><a href="/" title="/">Contact</a></li>
- </ul>
- </div><!--/head-->
- <div id="main">
- <div id="page-content-wrap">
- <div id="slideshow-wrapper">
- <?php echo do_shortcode('[portfolio_slideshow]');?>
- </div>
- <div id="page-entry">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php $do_not_duplicate = $post->ID; ?>
- <?php the_content(); ?>
- <?php endwhile; ?>
- <?php endif; ?>
- </div><!--/page-entry-->
- </div><!--/page-content-wrap-->
- <div id="random-widgets">
- <?php $my_query = new WP_Query(array('post_type' => 'page', 'orderby' => 'rand', 'posts_per_page' => 2, 'post__not_in' => array($do_not_duplicate))); ?>
- <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <?php $permalink = get_permalink($post->ID); ?>
- <?php $selected_values = simple_fields_get_post_group_values(get_the_id(), "Randomized widgets", false,2);
- foreach($selected_values as $value){;
- echo '<div>' . "\n";
- echo '<img src="' .wp_get_attachment_url( $value[1] ).'" /> ' . "\n";
- echo '<div>' . "\n";
- echo '<h3><a href=" ' . $permalink . ' "> '.( $value[2] ).' </a></h3>' . "\n";
- echo '<p> ' .( $value[3] ) . ' </p>' . "\n";
- echo '</div>' . "\n";
- echo '</div>' . "\n";
- }
- ?>
- <?php endwhile; ?>
- </div><!--/random-widgets-->
- </div><!--/main-->
- <div id="sidebar">
- <div id="sidebar-forms">
- <?php $sidebar = new WP_Query('post_type=sidebar'); ?>
- <?php while ($sidebar->have_posts()) : $sidebar->the_post(); ?>
- <?php the_content(); ?>
- </div><!--/sidebar-forms-->
- <div id="sidebar-widgets">
- <?php $selected_values = simple_fields_get_post_group_values(get_the_id(), "Sidebar widgets", false,2);
- foreach($selected_values as $value){;
- echo '<div>' . "\n";
- echo '<h2> '.( $value[1] ).' </h2>' . "\n";
- echo ' '.( $value[2] ).' ' . "\n";
- echo '</div>' . "\n";
- }
- ?>
- <?php endwhile; ?>
- <div>
- <h2>Recent Twitter posts</h2>
- <?php //This requires 'latest-tweet.php' which is at root of domain. http://www.webdesigncreare.co.uk/blog/videos/display-latest-tweet.html
- // Step 1 - Swap crearegroup for your Twitter User-name
- $twitterid = "klood_com";
- // Step 2 - How many tweets to you want to show? Swap 4 for how many you would like.
- $numberoftweets = "1";
- // Step 3 - Make sure that you source the include file correctly below:
- require_once('latest-tweet.php');
- // Step 4 - Usage (XML FEED, STRIP_TAGS (DEFAULT NO), NOFOLLOW (DEFAULT YES), TARGETBLANK (DEFAULT YES))
- getLatestTweet($tweetxml, false, true, true);
- ?>
- </div>
- </div><!--/sidebar-widgets-->
- </div><!--/sidebar-->
- <div id="footer" style="margin-right:0;"><!--To make sidebar push down footer remove this style.-->
- <?php $footer = new WP_Query('post_type=footer'); ?>
- <?php while ($footer->have_posts()) : $footer->the_post(); ?>
- <?php the_content(); ?>
- <?php endwhile; ?>
- </div><!--/footer-->
- </div><!--/container-->
- <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/j/jquery-1.5.2.min.js"></script>
- <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/j/scripts.js"></script>
- <?php
- /* Always have wp_footer() just before the closing </body>
- * tag of your theme, or you will break many plugins, which
- * generally use this hook to reference JavaScript files.
- */
- wp_footer();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement