Advertisement
Guest User

Untitled

a guest
Oct 19th, 2010
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.71 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
  2.  
  3. transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head profile="http://gmpg.org/xfn/11">
  6. <link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz' rel='stylesheet' type='text/css'>
  7. <link href='http://fonts.googleapis.com/css?family=Molengo' rel='stylesheet' type='text/css'>
  8.  
  9. <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
  10.  
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css"
  12.  
  13. media="screen" />
  14. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo
  15.  
  16. ('rss2_url'); ?>" />
  17. <?php wp_head(); ?>
  18.  
  19. <script type="text/javascript"
  20.  
  21. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  22. <script type="text/javascript" src="http://kscope.flubba.webfactional.com/wp-
  23.  
  24. content/themes/kscope/jcarousel/lib/jquery.jcarousel.min.js"></script>
  25.  
  26. <script type="text/javascript">
  27.  
  28. function featured_initCallback(carousel)
  29. {
  30. // Disable autoscrolling if the user clicks the prev or next button.
  31. carousel.buttonNext.bind('click', function() {
  32. carousel.startAuto(0);
  33. });
  34.  
  35. carousel.buttonPrev.bind('click', function() {
  36. carousel.startAuto(0);
  37. });
  38.  
  39. // Pause autoscrolling if the user moves with the cursor over the clip.
  40. carousel.clip.hover(function() {
  41. carousel.stopAuto();
  42. }, function() {
  43. carousel.startAuto();
  44. });
  45.  
  46. jQuery('#featured-next').bind('click', function() {
  47. carousel.next();
  48. return false;
  49. });
  50.  
  51. jQuery('#featured-prev').bind('click', function() {
  52. carousel.prev();
  53. return false;
  54. });
  55.  
  56. jQuery('#featured-controls li').bind('click', function() {
  57. var st = jQuery(this).attr('id').split('-')[2];
  58. carousel.scroll(jQuery.jcarousel.intval(st));
  59. return false;
  60. });
  61.  
  62.  
  63. }
  64.  
  65. function selectNextControl(carousel,control,enabled) {
  66. $('#featured-controls li.selected').removeClass('selected');
  67. $('#featured-control-'+carousel.first).addClass('selected');
  68. }
  69.  
  70. function selectPrevControl(carousel,control,enabled) {
  71. $('#featured-controls li.selected').removeClass('selected');
  72. $('#featured-control-'+carousel.first).addClass('selected');
  73. }
  74.  
  75. function featured_itemVisibleInCallback(carousel, item, i, state, evt) {
  76. $('#featured-controls li.selected').removeClass('selected');
  77. $('#featured-control-'+i).addClass('selected');
  78. }
  79.  
  80.  
  81. jQuery(document).ready(function() {
  82. jQuery('#carousel').jcarousel({
  83. scroll: 1, //auto: 2
  84. wrap: 'last',
  85. vertical: false,
  86. auto:6,
  87. initCallback: featured_initCallback,
  88. itemVisibleInCallback: {onAfterAnimation: featured_itemVisibleInCallback}
  89. });
  90. $("#right-posts .post").hover(function() {$(this).animate({opacity:0.9},200);},
  91. function() {$(this).animate({opacity:1},200);}
  92. );
  93. });
  94.  
  95. </script>
  96. </head>
  97. <body>
  98. <div id="top">
  99. <div id="header">
  100. <div id="dateAndTime">
  101. <?php date_default_timezone_set('America/New_York'); echo date("F j, Y, g:i a"); ?>
  102. </div>
  103. <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  104. <p id="slogan"><?php bloginfo('description'); ?></p>
  105. <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
  106. <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s"
  107.  
  108. size="15" />
  109. <input type="submit" id="searchSubmit" value="Search" />
  110. </form>
  111. <div class="clear"></div>
  112. </div>
  113. <div id="categories-wrapper">
  114. <ul id="categories">
  115. <?php wp_list_categories('orderby=name&exclude=1,9,10&title_li='); ?>
  116. <div class="clear"></div>
  117. </ul>
  118. </div>
  119.  
  120. </div>
  121. <div id="wrapper" class="container_12">
  122. <div id="content" class="container_12">
  123. <div class="grid_6">
  124. <div id="featured-carousel">
  125. <ul id="carousel">
  126. <?php
  127. $featured = new WP_Query();
  128. $featured->query('showposts=5&cat=10');
  129. while($featured->have_posts()) : $featured->the_post();
  130. ?>
  131. <li class="post">
  132. <div class="featured-image">
  133. <a href="<?php the_permalink() ?>">
  134. <?php
  135. the_post_thumbnail('carousel');
  136. ?></a></div>
  137.  
  138. <h1><a href="<?php the_permalink() ?>">
  139. <?php the_title(); ?></a></h1>
  140. <div class="tease"><?php the_excerpt(); ?></div>
  141. </li>
  142. <?php endwhile; ?>
  143. </ul>
  144. </div>
  145. <ul id="featured-controls">
  146. <?php
  147. $featured = new WP_Query();
  148. $featured->query('showposts=7&cat=10');
  149. $i = 1;
  150. while($featured->have_posts()): $featured->the_post();
  151. ?>
  152. <li id="featured-control-<?php echo $i; ?>"<?php if($i==1): ?
  153.  
  154. >class="selected"<?php endif; ?>>
  155. <?php the_post_thumbnail('carousel-control'); ?>
  156. </li>
  157.  
  158. <?php $i++; ?>
  159. <?php endwhile; ?>
  160. <div class="clear"></div>
  161. </ul>
  162. <!-- end carousel -->
  163.  
  164.  
  165. <div id="top-stories">
  166. <div id="left" class="grid_4 front-posts">
  167.  
  168. <?php
  169. $leftNews = new WP_Query();
  170. $leftNews->query('cat=-10,-3,-8,-7&showposts=3');
  171. while($leftNews->have_posts()) : $leftNews->the_post();
  172. ?>
  173.  
  174. <div id="post-<?php the_ID(); ?>" class="post" <?php post_class(); ?>>
  175. <a href="<?php the_permalink(); ?>" class="post-list-thumbnail"><?
  176.  
  177. php the_post_thumbnail('front-post'); ?></a>
  178. <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?
  179.  
  180. ></a></h4>
  181. <div class="meta">
  182. By <span class="author"><?php the_author_link(); ?></span> <span
  183.  
  184. class="timestamp"><?php the_date(); ?></span>
  185. </div>
  186. <div class="entry"><?php the_excerpt(); ?></div>
  187. <div class="clear"></div>
  188. </div>
  189.  
  190. <?php endwhile; ?>
  191.  
  192. </div>
  193.  
  194. <div id="in-depth">
  195. <div class="grid_6 front-posts">
  196. <h4>In Depth</h4>
  197. <?php
  198. $idPosts = new WP_Query();
  199. $idPosts->query('cat=-10,-3,-8,7&showposts=2');
  200. while($idPosts->have_posts()) : $idPosts->the_post();
  201. ?>
  202.  
  203. <div id="post-<?php the_ID(); ?>" class="post" <?php post_class(); ?>>
  204. <a href="<?php the_permalink(); ?>" class="post-list-
  205.  
  206. thumbnail"><?php the_post_thumbnail(); ?></a>
  207. <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?
  208.  
  209. ></a></h4>
  210. <div class="meta">
  211. By <span class="author"><?php the_author_link(); ?></span>
  212.  
  213. <span class="timestamp"><?php the_date(); ?></span>
  214. </div>
  215. <div class="entry"><?php the_excerpt(); ?></div>
  216. <div class="clear"></div>
  217. </div>
  218.  
  219. <?php endwhile; ?>
  220. </div>
  221. </div>
  222.  
  223. </div>
  224. </div>
  225. </div>
  226. <div id="middle" class="grid_2">
  227. <div id="recent-posts">
  228. <?php
  229. $middleNews = new WP_Query();
  230. $middleNews->query('cat=-10&showposts=10&offset=3');
  231. while($middleNews->have_posts()) : $middleNews->the_post();
  232. ?>
  233.  
  234. <div id="post-<?php the_ID(); ?>" class="post" <?php post_class(); ?>>
  235. <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
  236. <div class="meta">
  237. By <span class="author"><?php the_author_link(); ?></span>
  238. </div>
  239. <div class="clear"></div>
  240. </div>
  241.  
  242. <?php endwhile; ?>
  243. </div>
  244. ---
  245. <div id="more-middle">
  246. <?php
  247. $middleNews = new WP_Query();
  248. $middleNews->query('cat=-10&showposts=3&offset=3');
  249. while($middleNews->have_posts()) : $middleNews->the_post();
  250. ?>
  251.  
  252. <div id="post-<?php the_ID(); ?>" class="post" <?php post_class(); ?>>
  253. <a href="<?php the_permalink(); ?>" class="post-list-thumbnail"><?php
  254.  
  255. the_post_thumbnail('middle'); ?></a>
  256. <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
  257. <div class="meta">
  258. By <span class="author"><?php the_author_link(); ?></span>
  259. </div>
  260. <div class="entry"><?php the_excerpt(); ?></div>
  261. <div class="clear"></div>
  262. </div>
  263.  
  264. <?php endwhile; ?>
  265. </div>
  266. --- </div>
  267.  
  268. <div class="grid_4">
  269. <div id="right-posts" class="grid_4">
  270. <?php
  271. $rightNews = new WP_Query();
  272. $rightNews->query('cat=-10&showposts=3');
  273. while($rightNews->have_posts()) : $rightNews->the_post();
  274. ?>
  275.  
  276. <div id="post-<?php the_ID(); ?>" class="post" <?php post_class(); ?>>
  277. <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?
  278.  
  279. ></a></h4>
  280. <div class="meta">
  281. By <span class="author"><?php the_author_link(); ?></span> <span
  282.  
  283. class="timestamp"><?php the_date(); ?></span>
  284. </div>
  285. <a href="<?php the_permalink(); ?>" class="post-list-thumbnail"><?php
  286.  
  287. the_post_thumbnail('smallish'); ?></a>
  288. <div class="entry"><?php the_excerpt(); ?></div>
  289. <div class="clear"></div>
  290. </div>
  291.  
  292. <?php endwhile; ?>
  293. </div>
  294. <div id="sidebar" class="grid_4">
  295. <h4>Most Read Posts</h4>
  296. <?php wpp_get_mostpopular(); ?>
  297.  
  298. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('rightSidebar'))
  299.  
  300. {} ?>
  301. </div>
  302. </div>
  303. <div class="clear"></div>
  304. </div>
  305. </div>
  306. <div id="footer">
  307. <div class="container_12">
  308. <p>
  309. <?php bloginfo('name'); ?> &copy; '<?php echo date('y'); ?><br />
  310. <?php bloginfo('description'); ?> - Designed by Aaron Lifton -
  311.  
  312. aaronlifton at gmail dot com
  313. </p>
  314. <ul>
  315. <li><a href="<?php bloginfo('url'); ?>" title="home">Home</a></li>
  316. <?php wp_list_pages('title_li='); ?>
  317. <div class="clear"></div>
  318. </ul>
  319. </div>
  320. </div>
  321. </div>
  322. </body>
  323. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement