This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-home.php
53 lines (41 loc) · 1.89 KB
/
page-home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
Template Name: OC Home Page
Description: This is a modified version of Mimbo's default index.php. We're keeping the basic formatting but changing the content and the loop to pull from page content rather than from the blog
*/
get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="lead" class="clearfloat">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail('featured'); } ?></a>
<div id="lead-text">
<!--<h2><?php the_title(); ?></h2>-->
<?php if(get_post_meta($post->ID, 'ocslc_excerpt')) { echo get_post_meta($post->ID, 'ocslc_excerpt', true); } ?>
</div>
</div><!--END LEAD/STICKY POST-->
<div id="more-posts">
<div class="clearfloat recent-excerpts">
<?php the_content(); ?>
</div>
<?php edit_post_link(__('Edit this entry','Mimbo'), '<p>', ' »</p>'); ?>
</div>
<?php endwhile; endif; ?>
<div id="featured-cats">
<h3><?php _e('News','Mimbo'); ?></h3>
<?php
$display_categories = get_option('openbook_cats');
foreach ($display_categories as $category) {
$showposts = get_option('openbook_featured_posts');
query_posts("showposts=$showposts&cat=$category");
?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li class="clearfloat"><p class="date"><?php the_time('n/d/y'); ?> • </p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
<?php } ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?><?php endif; ?>
</div><!--END FEATURED CATS-->
</div><!--END CONTENT-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>