Example #1
0
 /**
  * Generates output for templates that are shared by modules inside of a WPLib App.
  *
  * @param string $template
  * @param array|string $_template_vars
  * @param WPLib_Item_Base|object|null $item
  */
 static function the_module_template($template, $_template_vars = array(), $item = null)
 {
     $module_filepath = WPLib::get_module_filepath($item);
     $templates_subdir = static::templates_subdir();
     $template = "{$module_filepath}/{$templates_subdir}/{$template}";
     static::the_template($template, $_template_vars, $item);
 }