예제 #1
0
<?php

/*
# ----------------------------------------------------------------------
# HOME: CONTROL
# ----------------------------------------------------------------------
*/
/* --- CONSTRUCT CLASS --- */
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
/* --- SLIDESHOW --- */
$count_slideshow = $_get->count_slideshow();
$get_slideshow = $_get->get_slideshows();
$countService = $_get->countService();
if ($countService->rows > 0) {
    $getService = $_get->getService();
}
예제 #2
0
<?php

/*
# ----------------------------------------------------------------------
# SERVICE: CONTROL
# ----------------------------------------------------------------------
*/
$_get = new BLOG_GET();
$_update = new BLOG_UPDATE();
if (isset($_REQUEST['param'])) {
    $categoryAlias = filter_var($_REQUEST['param'], FILTER_SANITIZE_STRING);
    $countCategory = $_get->countCategory($categoryAlias);
    if ($countCategory->rows > 0) {
        $getCategory = $_get->getCategory($categoryAlias);
        $countService = $_get->countService($getCategory->category_id);
        if ($countService->rows > 0) {
            $getService = $_get->getService($getCategory->category_id);
        }
    }
} else {
    $getFullService = $_get->getFullService();
}
/* --- PROMO BANNER --- */
$count_promo = $_get->count_promo_banner();
$get_promo = $_get->get_promo_banner('15');
$footer = $_get->getFooterService('11');