php global options foreach options as value if get_settings value id F

  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
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="meta">
<ul>
<li class="time"><?php the_time('F j, Y') ?></li>
<li class="category"><?php the_category(', ') ?></li>
<li class="comments"><?php comments_popup_link('0 comments', '1 comment', '% comments'); ?></li>
<?php edit_post_link('Edit', '<li>', ' </li> '); ?>
</ul>
</div>
<?php if ($wpzoom_twitter_button == 'Yes') { ?>
<div class="retweet">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink() ?>';
tweetmeme_style = 'compact';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
<?php } ?>
<div class="clear"></div>
<?php the_content(''); ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<p class="pages tabs">Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php the_tags( '<p class="tags tabs">Tags: ', ' ', '</p>'); ?>
<div class="clear"></div>
</div>
<div id="authorbio">
<div id="authorpic"><?php echo get_avatar( get_the_author_id() , 70 ); ?></div>
<h3>Author: <?php the_author_posts_link(' '); ?> </h3>
<small><a href="<?php the_author_url(); ?>">visit my website</a></small>
<p><?php the_author_description(); ?></p>
</div>
<div class="post">
<div class="afterpost">
<div class="related">
<h3>Related Posts</h3>
<ul>
<?php wp_related_posts(); ?>
</ul>
</div>
<div class="share">
<h3>Share this Article</h3>
<ul>
<li class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" rel="external,nofollow" target="_blank">Share on Facebook</a></li>
<li class="twitter"><a href="http://twitter.com/home?status=Reading on <?php bloginfo('name') ?> - <?php the_title(); ?> <?php the_permalink(); ?>" rel="external,nofollow" target="_blank">Tweet This!</a></li>
<li class="delicious"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>" rel="external,nofollow" target="_blank">Save to delicious</a></li>
<li class="digg"><a href="http://digg.com/submit?phase=2&url=<?php the_permalink();?>&title=<?php the_title();?>" rel="external,nofollow" target="_blank">Digg it!</a></li>
<li class="stumble"><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>" rel="external,nofollow" target="_blank">Stumble this!</a></li>
</ul>
</div>
<div class="clear"></div>
</div> <!-- end afterpost -->
<div class="afterpost">
<?php comments_template(); ?>
</div> <!-- end afterpost -->
</div> <!-- end post -->
<?php endwhile; ?>
</div> <!-- end content -->
<?php else : ?>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>