public static function content($slug = "layout") { $slug = $slug . '-content'; $tpl = new core_tpl($slug); $template = $tpl->tpl($slug); load_template($template, false); }
/** * * @param type $slug */ public static function get_theme_footer($slug = 'default') { core_tpl::get_tpl_part($slug, 'theme-footer'); }
public static function tpl($query = 'showposts=5', $template = 'captify', $module = 'loop', $data = null) { $query = new WP_Query($query); if ($query->have_posts()) { while ($query->have_posts()) { core_tpl::modules($template, $module, $data); } } // Reset Post Data wp_reset_postdata(); }