global $blogConf, $isBlog; global $more; $more = false; if (isset($blogConf['post_contshow']) && $blogConf['post_contshow'] != 'Full') { if ($blogConf['post_contshow'] != 'Hide') { echo '<div class="entry-content">'; echo '<p>'; if (has_excerpt()) { echo showBrief(strip_shortcodes(get_the_excerpt()), $blogConf['post_contshow']); } else { echo showBrief(strip_shortcodes(get_the_content(__('Read more', 'themeton'))), $blogConf['post_contshow']); } echo '</p>'; echo '</div>'; } } else { if (has_excerpt()) { echo '<div class="entry-content">'; the_excerpt(); echo '</div>'; } else { echo '<div class="entry-content">'; if (isset($isBlog) && $isBlog == true) { the_content(__('Read more', 'themeton')); } else { echo showBrief(strip_shortcodes(get_the_content()), 20) . " <a href='" . get_permalink() . "'>" . __('Read more', 'themeton') . " ...</a>"; } echo '</div>'; } }
$posts = get_posts('numberposts=3&order=DEC'); ?> <?php foreach ($posts as $post) { ?> <dl class="entryList small"><dt><span style="font-size: 1.2em; margin-top: 4em;"><a href="<?php echo get_permalink($post->ID); ?> " rel="bookmark"><?php echo $post->post_title; ?> </a></dt></span> <dd> <?php echo showBrief(strip_tags($post->post_content), 40); ?> <span class="grey">[<a class="black" href="<?php echo get_permalink($post->ID); ?> ">...</a>]</span> </dd> <div style="height: 1em;"></div> <?php } ?> </nav> <p><a href="/blog/">More Articles</a></p>