1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Removed Months and Days from language files. Replaced with strftime() functions. New 'terms' method added to Date handler.

eg. e107::getDate()->terms('month'); returns an array of month names in the current language.
This commit is contained in:
Cameron
2014-06-02 17:07:02 -07:00
parent ac4b3a5fdc
commit c65359e444
6 changed files with 69 additions and 33 deletions

View File

@@ -30,9 +30,10 @@ require_once(HEADERF);
// ---------------------
$bcSql = new db;
$prefix = e_PLUGIN_ABS."blogcalendar_menu";
$marray = array(BLOGCAL_M1, BLOGCAL_M2, BLOGCAL_M3, BLOGCAL_M4,
BLOGCAL_M5, BLOGCAL_M6, BLOGCAL_M7, BLOGCAL_M8,
BLOGCAL_M9, BLOGCAL_M10, BLOGCAL_M11, BLOGCAL_M12);
$marray = e107::getDate()->terms('month');
// if nr of rows per month is not set, default to 3
$months_per_row = $pref['blogcal_mpr']?$pref['blogcal_mpr']:
"3";