/** Load module/addon automatically to existing template list
  *
  * @param array $templates The current template definition
  *
  * @return array The template with new elements
  */
 function custom_template_load($templates)
 {
     include 'templates/wpshop/main_elements.tpl.php';
     $wpshop_display = new wpshop_display();
     $templates = $wpshop_display->add_modules_template_to_internal($tpl_element, $templates);
     unset($tpl_element);
     return $templates;
 }
示例#2
0
 /**
  * Load module/addon automatically to existing template list
  *
  * @param array $templates The current template definition
  *
  * @return array The template with new elements
  */
 function custom_template_load($templates)
 {
     include 'templates/common/main_elements.tpl.php';
     $wpshop_template = $tpl_element;
     /*	Get custom frontend template	*/
     if (is_file(get_stylesheet_directory() . '/wpshop/common/main_elements.tpl.php')) {
         require_once get_stylesheet_directory() . '/wpshop/common/main_elements.tpl.php';
         if (!empty($tpl_element)) {
             $wpshop_template['common']['custom'] = $tpl_element;
         }
         unset($tpl_element);
     }
     $wpshop_display = new wpshop_display();
     $templates = $wpshop_display->add_modules_template_to_internal($wpshop_template, $templates);
     unset($tpl_element);
     return $templates;
 }
 /** Load module/addon automatically to existing template list
  *
  * @param array $templates The current template definition
  *
  * @return array The template with new elements
  */
 function custom_template_load($templates)
 {
     include WPS_LOCALISATION_FRONTEND_TPL_DIR . 'main_elements.tpl.php';
     $wpshop_display = new wpshop_display();
     $templates = $wpshop_display->add_modules_template_to_internal($tpl_element, $templates);
     unset($tpl_element);
     return $templates;
 }