<?php $tpid = (int) sensitive_get_theme_opts('home_featured_page_' . $i); $intropage = get_page($tpid); $introcontent = strip_tags(strip_shortcodes($intropage->post_content), "p,br"); if (preg_match('/^.{1,80}\\b/s', $introcontent, $match)) { $introcontent = $match[0]; } else { $introcontent = substr($introcontent, 0, 80); } ?> <div class="about well"> <a href="<?php echo get_permalink($intropage->ID); ?> "><?php sensitive_thumb($intropage, array(500, 300), array('class' => 'img')); ?> </a> <div class="entry-content"> <h2><?php echo $intropage->post_title; ?> </h2> <p><?php echo $introcontent; ?> </p> </div> <a href="<?php echo get_permalink($intropage->ID); ?>
echo get_the_date(); ?> / by <a href="<?php $taid = get_the_author_meta('ID'); echo get_author_posts_url($taid); ?> "><?php the_author(); ?> </a></div> <a href="<?php the_permalink(); ?> " class="thumbail"> <?php sensitive_thumb($post, array(500, 300)); ?> </a> <div class="entry-content"> <h2 class="entry-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </h2> </div> </li> <?php }