-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
executable file
·82 lines (59 loc) · 1.84 KB
/
index.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
get_header();
?>
<div class="main-post">
<h5 class="column-title">Featured</h5>
<div class="slides">
<?php if ( have_posts() ) : ?>
<?php
$sticky = get_option( 'sticky_posts' );
$catquery = new WP_Query( 'p=' . $sticky[0] );
?>
<?php /* Start the Loop */ ?>
<?php while ( $catquery->have_posts() ) : $catquery->the_post(); ?>
<?php global $post ?>
<article id="post-<?php the_ID(); ?>" >
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php lucid_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php if ( has_post_thumbnail() ):?>
<a href="<?php echo the_permalink() ?>" class="thumbnail-permalink"><?php the_post_thumbnail('featured-post'); ?></a>
<?php endif; ?>
<div class="entry-content">
<p>
<a href="<?php echo the_permalink() ?>"><?php echo am_get_content(140) ?></a>
</p>
</div>
</article><!-- #post-## -->
<?php endwhile; ?>
<?php endif; ?>
</div>
<!-- .slides -->
</div>
<div id="primary" class="post-list" role="main">
<h5 class="column-title">FROM BLOG</h5>
<?php if ( have_posts() ) : ?>
<?php wp_reset_query(); ?>
<?php
$sticky = get_option( 'sticky_posts' );
$args = array(
'ignore_sticky_posts' => 1,
'post__not_in' => $sticky,
'paged' => $paged
);
$cq = new WP_Query($args);
?>
<?php while ( $cq->have_posts() ) : $cq->the_post(); ?>
<?php get_template_part( 'content', 'small'); ?>
<?php endwhile; ?>
<?php lucid_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php endif; ?>
</div><!-- .post-list -->
<?php get_footer(); ?>