$html = '<div class="main_category_box">' . "\n" . ' <h2>' . $name . '</h2>' . "\n"; $html .= $subcats_html . "\n" . ' </div>'; } } if ($html) { $cols[] = $html; } } } $content .= '<div id="menu_category_listing">'; $delimited = ceil(count($cols) / 3); if ($delimited < 1) { $delimited = 1; } $counter = 0; for ($col = 0; $col < 3; $col++) { $content .= '<div class="three_cols_wrapper">'; for ($i = 0; $i < $delimited; $i++) { if ($cols[$counter]) { $content .= $cols[$counter]; } $counter++; } $content .= '</div>'; } $content .= '</div>'; if ($current['content_footer']) { $content .= '<div class="msCategoriesFooterDescription">' . mslib_fe::htmlBox('', $current['content_footer'], 2) . '</div>'; }
if (!count($products)) { if ($current['content'] and !$p) { $hide_no_products_message = 1; if ($current['content']) { $content .= mslib_fe::htmlBox($current['categories_name'], $current['content'], 1); } else { $show_default_header = 1; } } if (!$hide_no_products_message) { $content .= '<div class="emptyContent">' . $this->pi_getLL('no_products_available') . '</div>'; } if ($current['content_footer'] and !$p) { $hide_no_products_message = 1; if ($current['content_footer']) { $content .= mslib_fe::htmlBox($current['categories_name'], $current['content_footer'], 1); } else { $show_default_header = 1; } } } else { if (strstr($this->ms['MODULES']['PRODUCTS_LISTING_TYPE'], "..")) { die('error in PRODUCTS_LISTING_TYPE value'); } else { if (strstr($this->ms['MODULES']['PRODUCTS_LISTING_TYPE'], "/")) { require $this->DOCUMENT_ROOT . $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] . '.php'; } else { if (!$this->ms['MODULES']['PRODUCTS_LISTING_TYPE']) { $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] = 'default'; } require \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('multishop') . 'scripts/front_pages/includes/products_listing/' . $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] . '.php';
$this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] = 'default'; } if (strstr($this->ms['MODULES']['PRODUCTS_LISTING_TYPE'], "/")) { require $this->DOCUMENT_ROOT . $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] . '.php'; } else { require \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('multishop') . 'scripts/front_pages/includes/products_listing/' . $this->ms['MODULES']['PRODUCTS_LISTING_TYPE'] . '.php'; } } // pagination if (!$this->hidePagination and $pageset['total_rows'] > $this->ms['MODULES']['PRODUCTS_LISTING_LIMIT']) { if (!isset($this->ms['MODULES']['PRODUCTS_LISTING_PAGINATION_TYPE']) || $this->ms['MODULES']['PRODUCTS_LISTING_PAGINATION_TYPE'] == 'default') { require \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('multishop') . 'scripts/front_pages/includes/products_listing_pagination.php'; } else { require \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('multishop') . 'scripts/front_pages/includes/products_listing_pagination_with_number.php'; } } // pagination eof } else { $content .= '<div class="main-heading"><h2>' . $this->pi_getLL('no_products_found_heading') . '</h2></div>' . "\n"; $content .= '<p>' . $this->pi_getLL('no_new_products_found_description') . '</p>' . "\n"; } if ($current['content_footer'] and !$p) { $content .= mslib_fe::htmlBox('', $current['content_footer'], '', 'msFrontManufacturersProductsListingCmsBottom'); //$content.=$current['content_footer']; } } if ($this->ms['MODULES']['CACHE_FRONT_END']) { $Cache_Lite->save($content); } } }
public function TypoBox($header = '', $content = '', $id_name = '', $heading_type = 'h2') { return mslib_fe::htmlBox($header, $content); }