web/wp-content/themes/bgw/includes/featured.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 1 0d28b7c10758
permissions -rw-r--r--
add hgignore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
<?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
global $options;
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
foreach ($options as $value) {
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
      ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
<div id="featured-container">
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
<div class="prev"></div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
<div id="featured">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
<ul>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    11
<?php 	$slidecat = get_option('pov_slide_category');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    12
	$slidecount = get_option('pov_slide_count');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    13
0d28b7c10758 First commit
ymh
parents:
diff changeset
    14
	$my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    15
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;  ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    16
<li>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    17
<span class="titles-featured"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    18
<div class="post-info">Posted by <?php the_author() ?> in  <?php the_category(', ') ?> on  <?php the_time('m jS, Y') ?> |  <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    19
<div style="clear: both;"></div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    20
<?php the_content_limit(415, ""); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    21
</li>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    22
<?php endwhile; ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    23
</ul>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    24
</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    25
<div class="next"></div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    26
</div>