XOOPS  2.6.0
popup.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
23 include dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php';
24 
26 $xoops->disableErrorReporting();
27 
28 $xoops->simpleHeader(false);
29 
30 $criteria = new Criteria('avatar_type', 'S');
31 $tpl = new XoopsTpl();
32 $tpl->assign('avatars', Avatars::getInstance()->getHandlerAvatar()->getObjects($criteria, false, false));
33 $tpl->assign('closebutton', 1);
34 $tpl->display('module:avatars/avatars_popup.tpl');
35 
36 $xoops->simpleFooter();
$xoops
Definition: popup.php:25
static getInstance()
Definition: Xoops.php:160
$tpl
Definition: popup.php:31
$criteria
Definition: popup.php:30
defined('DS') or define('DS' DIRECTORY_SEPARATOR
Definition: common.php:41
static getInstance()
Definition: helper.php:34