$url_info = parse_url($client_info['selfurl']);
        $content_comment = nv_comment_module($module_name, $checkss, $area, NV_COMM_ID, $allowed, 1);
    } else {
        $content_comment = '';
    }
    // truyen bien sang module block detail
    global $data_album;
    $data_album = $album;
    // truyen thong tin seo
    $page_title = !empty($album['meta_title']) ? $album['meta_title'] : $album['name'];
    $key_words = !empty($album['meta_keyword']) ? $album['meta_keyword'] : $album['name'];
    $description = !empty($album['meta_description']) ? $album['meta_description'] : strip_tags($album['description']);
    // Phan trang
    $generate_page = nv_alias_page($page_title, $base_url, $num_items, $per_page, $page);
    // goi ham xu ly giao dien
    if ($module_config[$module_name]['album_view'] == 'album_view_grid') {
        $contents = detail_album($album, $array_photo, $other_category_album, $content_comment, $generate_page);
    } else {
        $contents = detail_album($album, $array_photo, $other_category_album, $content_comment, '');
    }
} else {
    // khong co quyen xem album
    $contents = no_permission($lang_module['no_permission_album']);
}
if ($page > 1) {
    $page_title .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $lang_global['page'] . ' ' . $page;
    $description .= ' ' . $page;
}
include NV_ROOTDIR . '/includes/header.php';
echo nv_site_theme($contents);
include NV_ROOTDIR . '/includes/footer.php';
Example #2
0
    }
    $photo->closeCursor();
    // album cung chu de
    $sql = 'SELECT a.album_id, a.category_id, a.name, a.alias, a.capturelocal, a.description, a.num_photo, a.date_added, r.file, r.thumb FROM ' . TABLE_PHOTO_NAME . '_album a 
		LEFT JOIN  ' . TABLE_PHOTO_NAME . '_rows r ON ( a.album_id = r.album_id )
		WHERE a.status= 1 AND a.category_id=' . $album['category_id'] . ' AND r.defaults = 1 AND a.album_id != ' . $album['album_id'] . ' 
		ORDER BY a.date_added DESC 
		LIMIT 0, 6';
    $result = $db->query($sql);
    $other_category_album = array();
    while ($item = $result->fetch()) {
        $item['link'] = $global_photo_cat[$album['category_id']]['link'] . '/' . $item['alias'] . '-' . $item['album_id'] . $global_config['rewrite_exturl'];
        $other_category_album[] = $item;
    }
    $result->closeCursor();
    // truyen bien sang module block detail
    global $data_album;
    $data_album = $album;
    // goi ham xu ly giao dien
    $contents = detail_album($album, $array_photo, $other_category_album);
    // truyen thong tin seo
    $page_title = $album['meta_title'];
    $key_words = $album['meta_keyword'];
    $description = $album['meta_description'];
} else {
    // khong co quyen xem album
    $contents = no_permission($global_photo_cat[$category_id]['groups_view']);
}
include NV_ROOTDIR . '/includes/header.php';
echo nv_site_theme($contents);
include NV_ROOTDIR . '/includes/footer.php';