-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (31 loc) · 1.25 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Index page
*
* @copyright http://smartfactory.ca The SmartFactory
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author marcan aka Marc-André Lanciault <marcan@smartfactory.ca>
* @package imfeeding
* @version $Id$
*/
/** Include the module's header for all pages */
include_once 'header.php';
$xoopsOption['template_main'] = 'imfeeding_index.html';
/** Include the ICMS header file */
include_once ICMS_ROOT_PATH . '/header.php';
// At which record shall we start display
$clean_start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$imfeeding_feed_handler = xoops_getModuleHandler('feed');
$xoopsTpl->assign('imfeeding_feeds', $imfeeding_feed_handler->getFeeds($clean_start, $xoopsModuleConfig['feeds_limit']));
/**
* Create Navbar
*/
include_once ICMS_ROOT_PATH . '/class/pagenav.php';
$feeds_count = $imfeeding_feed_handler->getFeedsCount();
$pagenav = new XoopsPageNav($feeds_count, $xoopsModuleConfig['feeds_limit'], $clean_start, 'start');
$xoopsTpl->assign('navbar', $pagenav->renderNav());
$xoopsTpl->assign('imfeeding_module_home', imfeeding_getModuleName(true, true));
/** Include the module's footer */
include_once 'footer.php';
?>