Example #1
0
include '_pageClass/CategoryPage.php';
include '_pageClass/CategoriesPage.php';
switch ($currentPage) {
    case 'home-page':
        $obj = new HomePage();
        $module = $obj->module();
        break;
    case 'product-page':
        $obj = new ProductPage();
        $module = $obj->module($params);
        break;
    case 'category-page':
        $obj = new CategoryPage();
        $module = $obj->module($params, $catType);
        break;
    case 'categories-page':
        $obj = new CategoriesPage();
        $module = $obj->module($params, $catType);
        break;
}
$data['current-page'] = $currentPage;
if ($currentPage == 'product-page') {
    $data['product-detail'] = $module['productDetail'];
    $data['spin-content'] = $module['spinContent'];
}
$seoTags = $module['seoTags'];
//$header = Html::get( 'main', 'header', $data );
//$footer = Html::get( 'main', 'footer', $data );
/*
	Html::get( FunctionNmae, ID-Key, Data ); //see trait Components on html.php
*/
Example #2
0
/**
 *
 */
function wfSpecialCategories()
{
    list($limit, $offset) = wfCheckLimits();
    $cap = new CategoriesPage();
    return $cap->doQuery($offset, $limit);
}