All pastes #1391838 Raw Edit

Charles Anthony

public text v1 · immutable
#1391838 ·published 2009-04-14 16:32 UTC
rendered paste body
<?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() ?>



	<div id="container">

		<div id="content">



			<div id="nav-above" class="navigation">

                <?php if(function_exists('wp_pagenavi')) { ?>

                <?php wp_pagenavi(); ?>

                <?php } else { ?>  

				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'thematic')) ?></div>

				<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'thematic')) ?></div>

				<?php } ?>

			</div>

			

<?php get_sidebar('index-top') ?>



<?php /* Count the number of posts so we can insert a widgetized area */ $count = 1 ?>

<?php while ( have_posts() ) : the_post() ?>







			<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">

    			<?php thematic_postheader(); ?>

				<div class="entry-content">









<!-- I added the below code.  It calls the "image_key" file from the post's Custom Fields.       Ch. A.    -->



<?php if(get_post_meta($post->ID, 'image_key', true))

  {

    $values = get_post_custom_values("image_key");

    $image_key = $values[0];

?>

<img src="/wp-content/imagesss/<?php echo $image_key; ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" width="400" />

<?php } ?> 



<!-- I added the above code.      It calls the "image_key" file from the post's Custom Fields.       Ch. A.    -->



























<?php the_content(''.__('Read More <span class="meta-nav">&raquo;</span>', 'thematic').''); ?>



				<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>

				</div>

				<?php thematic_postfooter(); ?>

			</div><!-- .post -->



<?php comments_template() ?>



<?php if ($count==$thm_insert_position) { ?><?php get_sidebar('index-insert') ?><?php } ?>

<?php $count = $count + 1; ?>

<?php endwhile ?>



<?php get_sidebar('index-bottom') ?>



			<div id="nav-below" class="navigation">

                <?php if(function_exists('wp_pagenavi')) { ?>

                <?php wp_pagenavi(); ?>

                <?php } else { ?>  

				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'thematic')) ?></div>

				<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'thematic')) ?></div>

				<?php } ?>

			</div>



		</div><!-- #content -->

	</div><!-- #container -->



<?php thematic_sidebar() ?>



<?php get_footer() ?>