/** * Get a list of localized month names * * @param string $width The format name; it can be 'wide' (eg 'January'), * 'abbreviated' (eg 'Jan') or 'narrow' (eg 'J'). * * @return string Returns an empty string if $value is empty, the name of the month otherwise. */ public static function getMonthList($width = 'wide') { return \Xoops\Core\Lists\Month::getList($width); }
* @author Xoops Modules Dev Team * @version $Id$ */ // ###################################################################### // # Original version: // # [11-may-2001] Kenneth Lee - http://www.nexgear.com/ // ###################################################################### include_once __DIR__ . '/header.php'; $xoops = Xoops::getInstance(); $publisher = Publisher::getInstance(); $xoops->header('module:publisher/publisher_archive.tpl'); $xoopsTpl = $xoops->tpl(); XoopsLoad::loadFile($publisher->path('footer.php')); $lastyear = 0; $lastmonth = 0; $months_arr = Month::getList(); $fromyear = Request::getInt('year'); $frommonth = Request::getInt('month'); $pgtitle = ''; if ($fromyear && $frommonth) { $pgtitle = sprintf(" - %d - %d", $fromyear, $frommonth); } $dateformat = $publisher->getConfig('format_date'); if ($dateformat == '') { $dateformat = 'm'; } $myts = \Xoops\Core\Text\Sanitizer::getInstance(); $xoopsTpl->assign('xoops_pagetitle', $myts->htmlSpecialChars(_MD_PUBLISHER_ARCHIVES) . $pgtitle . ' - ' . $myts->htmlSpecialChars($xoopsModule->getVar('name'))); $useroffset = ''; if ($xoops->isUser()) { $timezone = $xoops->user->timezone();