function GetMonthNames() { $tmp = cgcalendar_utils::get_locale_dates(); $month_names = $tmp['monthNames']; return $month_names; }
# GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Or read it online: http://www.gnu.org/licenses/licenses.html#GPL # #------------------------------------------------------------------------- #END_LICENSE if (!$gCms) { exit; } if (!$this->CheckPermission('Modify Calendar') && !$this->CheckPermission('Add Calendar Events') && !$this->CheckPermission('Edit My Calendar Events')) { return; } // get the locale specified dates $locale_info = cgcalendar_utils::get_locale_dates(); foreach ($locale_info as $key => &$value) { $value = json_encode($value); } $smarty->assign('firstdayofweek', (int) $this->GetPreference('firstdayofweek', 1)); $smarty->assign('datestrings', $locale_info); $smarty->assign('text_week', $this->Lang('week')); $smarty->assign('text_month', $this->Lang('month')); $smarty->assign('text_day', $this->Lang('day')); $smarty->assign('text_today', $this->Lang('today')); $smarty->assign('dflt_fgcolor', $this->GetPreference('dflt_fgcolor', '#ffffff')); $smarty->assign('dflt_bgcolor', $this->GetPreference('dflt_bgcolor', '#009900')); $smarty->assign('holiday_fgcolor', $this->GetPreference('holidayfgcolor', '#000000')); $smarty->assign('holiday_bgcolor', $this->GetPreference('holidaybgcolor', '#ccffff')); $categories = $this->GetCategories(); if (is_array($categories) && count($categories)) {