document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. /*
  3. Template Name: Corechella Home
  4. */
  5. ?>
  6.  
  7. <?php get_header('corechella'); ?>
  8.  
  9.  
  10. <div id="banner">
  11.  
  12.  
  13.  
  14. <div id="homeslider">
  15.  
  16. <ul id="slider1">
  17.  
  18. <?php $recent = new WP_Query("cat=" .of_get_option('select_corechella_categories_slider')); while($recent->have_posts()) : $recent->the_post();?>
  19.  
  20. <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?>
  21.  
  22. <li>
  23.  
  24. <div class="slideinfo">
  25.  
  26. <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
  27.  
  28. <?php the_excerpt(); ?>
  29.  
  30. </div>
  31.  
  32. <span class="slideinfo_bg"></span>
  33.  
  34. <?php if ( $video ) : ?>
  35.  
  36. <div class="feature_video"><?php echo $video; ?></div>
  37.  
  38. <?php else: ?>
  39.  
  40. <a class="feature_img" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-feature' ); ?></a>
  41.  
  42. <?php endif; ?>
  43.  
  44. </li>
  45.  
  46. <?php endwhile; ?>
  47.  
  48. </ul>
  49.  
  50. </div>
  51.  
  52.  
  53.  
  54. <div id="bannerwidget">
  55.  
  56. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Widgets') ) : ?>
  57.  
  58. <div class="widget">
  59.  
  60. <h3><?php _e("Widget Area", 'organicthemes'); ?></h4>
  61.  
  62. <p><?php _e("This section is widgetized. To add widgets here, go to the", 'organicthemes'); ?> <a href="<?php echo admin_url(); ?>widgets.php"><?php _e("Widgets", 'organicthemes'); ?></a> <?php _e("panel in your WordPress admin, and add the widgets you would like to the", 'organicthemes'); ?> <strong><?php _e("Homepage Widget", 'organicthemes'); ?></strong>.</p>
  63.  
  64. <p><small><?php _e("*This message will be overwritten after widgets have been added", 'organicthemes'); ?></small></p>
  65.  
  66. </div>
  67.  
  68. <?php endif; ?>
  69.  
  70. </div>
  71.  
  72.  
  73.  
  74. </div>
  75.  
  76.  
  77.  
  78. <div id="contenthome">
  79.  
  80.  
  81.  
  82. <?php if(of_get_option('display_corechella_home_mid') == 'true') { ?>
  83.  
  84. <div id="homepagemid">
  85.  
  86.  
  87.  
  88. <div id="homecontent_left">
  89.  
  90. <?php $recent = new WP_Query('page_id='.of_get_option('select_corechella_pages_mid_1')); while($recent->have_posts()) : $recent->the_post();?>
  91.  
  92. <h2><?php the_title(); ?></h2>
  93.  
  94. <div class="homebox">
  95.  
  96. <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a>
  97.  
  98. <?php the_excerpt(); ?>
  99.  
  100. <div class="learnmore"><a href="<?php the_permalink() ?>" rel="bookmark"><?php _e("Learn More", 'organicthemes'); ?></a></div>
  101.  
  102. </div>
  103.  
  104. <?php endwhile; ?>
  105.  
  106. </div>
  107.  
  108.  
  109.  
  110. <div id="homecontent_mid">
  111.  
  112. <?php $recent = new WP_Query('page_id='.of_get_option('select_corechella_pages_mid_2')); while($recent->have_posts()) : $recent->the_post();?>
  113.  
  114. <h2><?php the_title(); ?></h2>
  115.  
  116. <div class="homebox">
  117.  
  118. <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a>
  119.  
  120. <?php the_excerpt(); ?>
  121.  
  122. <div class="learnmore"><a href="<?php the_permalink() ?>" rel="bookmark"><?php _e("Learn More", 'organicthemes'); ?></a></div>
  123.  
  124. </div>
  125.  
  126. <?php endwhile; ?>
  127.  
  128. </div>
  129.  
  130.  
  131.  
  132. <div id="homecontent_right">
  133.  
  134. <?php $recent = new WP_Query('page_id='.of_get_option('select_corechella_pages_mid_3')); while($recent->have_posts()) : $recent->the_post();?>
  135.  
  136. <h2><?php the_title(); ?></h2>
  137.  
  138. <div class="homebox">
  139.  
  140. <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a>
  141.  
  142. <?php the_excerpt(); ?>
  143.  
  144. <div class="learnmore"><a href="<?php the_permalink() ?>" rel="bookmark"><?php _e("Learn More", 'organicthemes'); ?></a></div>
  145.  
  146. </div>
  147.  
  148. <?php endwhile; ?>
  149.  
  150. </div>
  151.  
  152.  
  153.  
  154. </div>
  155.  
  156. <?php } else { ?>
  157.  
  158. <?php } ?>
  159.  
  160.  
  161.  
  162. <?php if(of_get_option('display_corechella_home_bot') == 'true') { ?>
  163.  
  164. <div id="homepagebot">
  165.  
  166.  
  167.  
  168. <div id="homecontent_page">
  169.  
  170. <a href="/category/latest-news/"><h1>Latest News</h1></a>
  171.  
  172. <div class="postarea">
  173.  
  174. <?php $wp_query = new WP_Query(array('cat'=>of_get_option('select_corechella_categories_featured_left'),'showposts'=>of_get_option('number_display_featured_left') ) ); ?>
  175.  
  176. <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
  177.  
  178. <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  179.  
  180. <?php the_excerpt(__("Read More", 'organicthemes')); ?>
  181.  
  182. <?php endwhile; ?>
  183.  
  184. </div>
  185.  
  186. <?php else : // do not delete ?>
  187.  
  188. <?php endif; // do not delete ?>
  189.  
  190. </div>
  191.  
  192.  
  193.  
  194. <div id="feature_list">
  195.  
  196.  
  197.  
  198. <a href="/academics/"><h4 class="featuredtitle"><?php echo cat_id_to_name(of_get_option('select_corechella_categories_tabber')); ?></h4></a>
  199.  
  200.  
  201.  
  202. <ul id="tabs">
  203.  
  204. <?php $recent = new WP_Query("cat=" .of_get_option('select_corechella_categories_tabber')); while($recent->have_posts()) : $recent->the_post();?>
  205.  
  206. <li>
  207.  
  208. <h3><a href="javascript:;"><?php the_title(); ?></a></h3>
  209.  
  210. </li>
  211.  
  212. <?php endwhile; ?>
  213.  
  214. </ul>
  215.  
  216.  
  217.  
  218. <ul id="output">
  219.  
  220. <?php $recent = new WP_Query("cat=" .of_get_option('select_corechella_categories_tabber')); while($recent->have_posts()) : $recent->the_post();?>
  221.  
  222. <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?>
  223.  
  224.  
  225.  
  226. <li>
  227.  
  228. <?php if ( $video ) : ?>
  229.  
  230. <div class="tab_video"><?php echo $video; ?></div>
  231.  
  232. <?php else: ?>
  233.  
  234. <a class="feature_img" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-tab' ); ?></a>
  235.  
  236. <?php endif; ?>
  237.  
  238. <div class="feature_info">
  239.  
  240. <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  241.  
  242. <?php the_excerpt(); ?>
  243.  
  244. </div>
  245.  
  246. <div class="learnmore"><a href="<?php the_permalink() ?>" rel="bookmark"><?php _e("Learn More", 'organicthemes'); ?></a></div>
  247.  
  248. </li>
  249.  
  250.  
  251.  
  252. <?php endwhile; ?>
  253.  
  254. </ul>
  255.  
  256.  
  257.  
  258. </div>
  259.  
  260.  
  261.  
  262. </div>
  263.  
  264. <?php } else { ?>
  265.  
  266. <?php } ?>
  267.  
  268.  
  269.  
  270. </div>
  271.  
  272.  
  273.  
  274. <!-- The main column ends -->
  275.  
  276.  
  277.  
  278. <?php get_footer(); ?>
');