function _exitingDir($directory = null, $file = null) { $y = $this->_year; if ($mos =& $this->_months) { sort($mos); $list = ''; $linearlist = array(); foreach ($mos as $mth) { $lnk = get_month_link($y, $mth); $the_month = theme_date_format(mktime(0, 0, 0, $mth, 1, 0), '%B'); $list = "<li class=\"archive-month archive-m{$mth}\"><a href=\"{$lnk}\">" . $the_month . ' </a></li>' . $list; $linearlist["{$the_month} 20{$this->_year}"] = $lnk; } $list = '<ul>' . $list . '</ul>'; } $mos = array(); // we close year's li $this->_list[$y] = $linearlist; $this->_htmllist[$y] .= $list . '</li>'; }
function theme_smarty_modifier_date_format_daily($string, $format = null, $default_date = '') { global $THEME_CURRENT_DAY, $lang, $fp_config; if (is_null($format)) { $format = $fp_config['locale']['dateformat']; } $current_day = theme_date_format($string, $format, $default_date); if (!isset($THEME_CURRENT_DAY) || $THEME_CURRENT_DAY != $current_day) { $THEME_CURRENT_DAY = $current_day; return $current_day; } return ''; }