?> ><?php echo _e(apply_filters(' ', _($subHeading))); ?> </p><?php } ?> </hgroup> <?php } ?> <?php if ($fullEmbed != '') { ?> <div class="full-embed"><?php echo van_shortcode($fullEmbed); ?> </div> <?php } else { ?> <div class="entry"<?php echo $font; ?> > <?php van_content(true, true); ?> </div> <?php }
function van_center_shortcode($atts, $content) { //extract short code attr extract(shortcode_atts(array('width' => '100%', 'top' => '', 'bottom' => ''), $atts)); $style = ' style="width:' . $width . ';margin:' . $top . ' auto ' . $bottom . '"'; $str = '<div' . $style . '>' . van_shortcode($content) . '</div>'; return $str; }