Example #1
0
 /**
  * Filters WP template handlers to render a Shopp product page
  *
  * @author Jonathan Davis
  * @since 1.2
  * @version 1.2.1
  *
  * @param string $template The template
  * @return string The output of the templates
  **/
 public function single($template)
 {
     if (!is_shopp_product()) {
         return $template;
     }
     $Page = new ShoppProductPage();
     $Page->filters();
     return locate_template($Page->templates());
 }
Example #2
0
 public function __construct($settings = array())
 {
     self::$template = 'single-' . ShoppProduct::$posttype;
     parent::__construct($settings);
 }