* * @param integer $message_id * * @hooked WooThemes_Sensei_Messages::the_title - 20 * @hooked WooThemes_Sensei_Messages::the_message_sent_by_title - 40 */ do_action('sensei_single_message_content_inside_before', get_the_ID()); ?> <section class="entry"> <?php the_content(); ?> </section> <?php /** * action inside the single message template after the content * @since 1.9.0 * * @param integer $message_id */ do_action('sensei_single_message_content_inside_after', get_the_ID()); ?> </article><!-- .post --> <?php get_sensei_footer();
/** * This function is specifically created for loading template files from the theme. * * This function checks if the user has overwritten the templates like in their theme. If they have it in their theme it will load the header and the footer * around the singular content file from their theme and exit. * * If none is found this function will do nothing. If a template is found this funciton * will exit execution of the script an not continue. * * @since 1.9.0 * @param string $template * @param bool $load_header_footer should the file be wrapped in between header and footer? Default: true */ public static function locate_and_load_template_overrides($template = '', $load_header_footer = false) { $found_template = locate_template(array($template)); if ($found_template) { if ($load_header_footer) { get_sensei_header(); include $found_template; get_sensei_footer(); } else { include $found_template; } exit; } }