function pw_sample_shortcode()
{
    $templates = new PW_Template_Loader();
    ob_start();
    $templates->get_template_part('content', 'header');
    $templates->get_template_part('content', 'middle');
    $templates->get_template_part('content', 'footer');
    return ob_get_clean();
}
Beispiel #2
0
 /**
  * Add Short Code
  *
  * @version	1.0.0
  * @since	1.0.0
  */
 public function print_shortcode($type)
 {
     extract(shortcode_atts(array('type' => 'type'), $type));
     //
     ob_start();
     $template = new PW_Template_Loader();
     switch ($type) {
         case 'demo':
             $template->get_template_part('demo-template');
             break;
     }
     return ob_get_clean();
 }