本文整理汇总了PHP中add_0函数的典型用法代码示例。如果您正苦于以下问题:PHP add_0函数的具体用法?PHP add_0怎么用?PHP add_0使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了add_0函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showcalendar
echo $category->color;
?>
"> </p><p id="category<?php
echo $id;
?>
-<?php
echo $category->id;
?>
" style="color:#<?php
echo $category->color;
?>
" onclick=" showcalendar( 'calendar_<?php
echo $id;
?>
','<?php
echo JRoute::_('index.php?option=com_spidercalendar&view=AJAXcalendar&calendar=' . $calendar_id . '&module_id=' . $id . '&cat_id=' . $category->id . '&cat_ids=' . $cat_ids) . '&format=row&Itemid=' . JRequest::getVar("Itemid", "") . '&date' . $id . '=' . $year . '-' . add_0(Month_num($month));
?>
')" > <?php
echo $category->title;
?>
</p></div>
<?php
}
?>
<?php
示例2: big_calendar_list_widget
//.........这里部分代码省略.........
$font_year = $theme->font_year;
$font_month = $theme->font_month;
$font_day = $theme->font_day;
$font_weekday = $theme->font_weekday;
$show_cat = 1;
$ev_title_color = '#' . str_replace('#', '', $theme->ev_title_color);
$popup_width = $theme->popup_width;
$popup_height = $theme->popup_height;
$show_event_bgcolor = '#' . str_replace('#', '', $theme->show_event_bgcolor);
__('January', 'sp_calendar');
__('February', 'sp_calendar');
__('March', 'sp_calendar');
__('April', 'sp_calendar');
__('May', 'sp_calendar');
__('June', 'sp_calendar');
__('July', 'sp_calendar');
__('August', 'sp_calendar');
__('September', 'sp_calendar');
__('October', 'sp_calendar');
__('November', 'sp_calendar');
__('December', 'sp_calendar');
if ($date != '') {
$date_REFERER = $date;
} else {
$date_REFERER = date("Y-m");
$date = date("Y") . '-' . php_Month_num(date("F")) . '-' . date("d");
}
$year_REFERER = substr($date_REFERER, 0, 4);
$month_REFERER = Month_name(substr($date_REFERER, 5, 2));
$day_REFERER = substr($date_REFERER, 8, 2);
$year = substr($date, 0, 4);
$month = Month_name(substr($date, 5, 2));
$day = substr($date, 8, 2);
$this_month = substr($year . '-' . add_0(Month_num($month)), 5, 2);
$prev_month = add_0((int) $this_month - 1);
$next_month = add_0((int) $this_month + 1);
$cell_width = $calendar_width / 7;
$cell_width = (int) $cell_width - 2;
$view = 'bigcalendarlist_widget';
$views = explode(',', $view_select);
$defaultview = 'list';
array_pop($views);
$display = '';
if (count($views) == 0) {
$display = "display:none";
}
if (count($views) == 1 && $views[0] == $defaultview) {
$display = "display:none";
}
?>
<style type='text/css'>
#calendar_<?php
echo $many_sp_calendar;
?>
table {
border-collapse: initial;
border:0px;
margin: 0;
}
#TB_iframeContent{
background-color: <?php
echo $show_event_bgcolor;
?>
;
}
#calendar_<?php
示例3: spider_calendar_big_front_end
//.........这里部分代码省略.........
}
document.onkeydown = function (evt) {
evt = evt || window.event;
if (evt.keyCode == 27) {
document.getElementById('sbox-window').close();
}
};
<?php
global $wpdb;
$calendarr = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "spidercalendar_calendar WHERE id='%d'", $id));
$year = $calendarr->def_year ? $calendarr->def_year : date("Y");
$month = $calendarr->def_month ? $calendarr->def_month : date("m");
$date = $year . '-' . $month;
if ($default == 'day') {
$date .= '-' . date('d');
}
if ($default == 'week') {
$date .= '-' . date('d');
$d = new DateTime($date);
$weekday = $d->format('w');
$diff = $weekday == 0 ? 6 : $weekday - 1;
if ($widget === 1) {
$theme_row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "spidercalendar_widget_theme WHERE id='%d'", $theme));
} else {
$theme_row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "spidercalendar_theme WHERE id='%d'", $theme));
}
$weekstart = $theme_row->week_start_day;
if ($weekstart == "su") {
$diff = $diff + 1;
}
$d->modify("-{$diff} day");
$d->modify("-1 day");
$prev_date = $d->format('Y-m-d');
$prev_month = add_0((int) substr($prev_date, 5, 2) - 1);
$this_month = add_0((int) substr($prev_date, 5, 2));
$next_month = add_0((int) substr($prev_date, 5, 2) + 1);
if ($next_month == '13') {
$next_month = '01';
}
if ($prev_month == '00') {
$prev_month = '12';
}
}
if ($widget === 1) {
$default .= '_widget';
} else {
}
?>
showbigcalendar('bigcalendar<?php
echo $many_sp_calendar;
?>
', '<?php
echo add_query_arg(array('action' => 'spiderbigcalendar_' . $default, 'theme_id' => $theme, 'calendar' => $id, 'select' => $select, 'date' => $date, 'months' => $default == 'week' || $default == 'week_widget' ? $prev_month . ',' . $this_month . ',' . $next_month : '', 'many_sp_calendar' => $many_sp_calendar, 'cur_page_url' => urlencode(current_page_url_sc()), 'widget' => $widget, 'rand' => $many_sp_calendar), admin_url('admin-ajax.php'));
?>
','<?php
echo $many_sp_calendar;
?>
','<?php
echo $widget;
?>
');</script>
<style>
html.thickbox_open{
overflow: hidden;
}
#TB_window iframe{
示例4: big_calendar_day
//.........这里部分代码省略.........
__('September', 'sp_calendar');
__('October', 'sp_calendar');
__('November', 'sp_calendar');
__('December', 'sp_calendar');
if ($cell_height == '') {
$cell_height = 70;
}
if ($cal_width == '') {
$cal_width = 700;
}
if ($date != '') {
$date_REFERER = $date;
} else {
$date_REFERER = date("Y-m");
$date = date("Y") . '-' . php_Month_num(date("F")) . '-' . date("d");
}
$year_REFERER = substr($date_REFERER, 0, 4);
$month_REFERER = Month_name(substr($date_REFERER, 5, 2));
$day_REFERER = substr($date_REFERER, 8, 2);
$year = substr($date, 0, 4);
$month = Month_name(substr($date, 5, 2));
$day = substr($date, 8, 2);
$cell_width = $cal_width / 7;
$month_day_count = date('t', mktime(0, 0, 0, Month_num($month), 1, $year));
$prev_month_day_count = date('t', mktime(0, 0, 0, Month_num($month) - 1, 1, $year));
if ($day > $month_day_count) {
$month = Month_name(Month_num($month) + 1);
$day = '01';
}
if ((int) $day < 1) {
$month = Month_name(Month_num($month) - 1);
$day = $prev_month_day_count;
}
$this_month = substr($year . '-' . add_0(Month_num($month)), 5, 2);
$prev_month = add_0((int) $this_month - 1);
$next_month = add_0((int) $this_month + 1);
$view = 'bigcalendarday';
$views = explode(',', $view_select);
$defaultview = 'day';
array_pop($views);
$display = '';
if (count($views) == 0) {
$display = "display:none";
}
if (count($views) == 1 && $views[0] == $defaultview) {
$display = "display:none";
}
?>
<style type='text/css'>
.day_ev{
border-top-left-radius: <?php
echo $border_radius2;
?>
px !important;
border-top-right-radius: <?php
echo $border_radius2;
?>
px !important;
border-radius: <?php
echo $border_radius2;
?>
px !important;
border-bottom-left-radius: <?php
echo $border_radius2;
?>
示例5: add_0
?>
<li style="float:left;"><p class="categories1" style="background-color:#<?php
echo $category->color;
?>
"> </p><p class="categories2" id="category<?php
echo $category->id;
?>
" style="color:#<?php
echo $category->color;
?>
" onclick="showbigcalendar( 'bigcalendar<?php
echo $id;
?>
','<?php
echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendar&def_view=' . $defaultview . '&views=' . $viewselect . '&rand=' . $id . '&theme_id=' . $theme_id . '&calendar=' . $calendar_id . '&cat_id=' . $category->id . '&cat_ids=' . $cat_ids) . '&format=row&tmpl=component&Itemid=' . JRequest::getVar("Itemid", "") . '&date=' . $year . '-' . add_0(Month_num($month));
?>
','<?php
echo $id;
?>
')" > <?php
echo $category->title;
?>
</p></li>
<?php
}
echo '</ul><br><br>';
$db = JFactory::getDBO();
$query = "SELECT * FROM #__spidercalendar_calendar where id=" . $calendar_id . "";
$db->setQuery($query);
示例6: big_calendarr
//.........这里部分代码省略.........
$list = '<p><b>' . $c . '.</b> ';
if ($rows[$i - 1]->time and $show_time != 0) {
$list .= ' ' . $rows[$i - 1]->title . '<br>(' . $rows[$i - 1]->time . ')</p>';
} else {
$list .= ' ' . $rows[$i - 1]->title . '</p>';
}
$title[$j] = $list;
$ev_ids[$j] = $rows[$i - 1]->id . '<br>';
}
}
}
}
}
for ($i = 1; $i <= count($array_days) - 1; $i++) {
if (isset($array_days[$i])) {
if ($array_days[$i] > '00' && $array_days[$i] < '09' and substr($array_days[$i], 0, 1) == '0') {
$array_days[$i] = substr($array_days[$i], 1, 1);
}
}
}
$all_calendar_files['array_days'] = $array_days;
$all_calendar_files['title'] = $title;
$all_calendar_files['option'] = $option;
$all_calendar_files['array_days1'] = $array_days1;
$all_calendar_files['calendar'] = $calendar;
$all_calendar_files['ev_ids'] = $ev_ids;
return array($all_calendar_files);
}
function Month_name($month_num)
{
$timestamp = mktime(0, 0, 0, $month_num, 1, 2005);
return date("F", $timestamp);
}
function add_0($month_num)
{
if ($month_num < 10) {
return '0' . $month_num;
}
return $month_num;
}
function Month_num($month_name)
{
for ($month_num = 1; $month_num <= 12; $month_num++) {
if (date("F", mktime(0, 0, 0, $month_num, 1, 0)) == $month_name) {
return $month_num;
}
}
}
///////////////////////////////////////////////////
$calendar_id = (int) $_GET['calendar'];
if ($cell_height == '') {
$cell_height = 70;
}
if ($cal_width == '') {
$cal_width = 700;
}
if (isset($_GET['date'])) {
if (IsDate_inputed($_GET['date'])) {
$date_REFERER = $_GET['date'];
} else {
$date_REFERER = date("Y-m");
}
} else {
$date_REFERER = date("Y-m");
}
$year_REFERER = substr($date_REFERER, 0, 4);
示例7: plugins_url
} else {
if (in_array($i, $array_days)) {
if ($widget) {
if ($k != 1) {
echo '<td class="cala_day" style="background-color:' . $evented_color_bg . ' !important;padding:0 !important; margin:0 !important;line-height:15px !important;"><a class="thickbox-previewbigcalendar' . $many_sp_calendar . '" rel="{handler: \'iframe\', size: {x: ' . $popup_width . ', y: ' . $popup_height . '}}" style="font-size:11px !important;background:none !important;color:' . $event_title_color . ' !important;text-align:center !important;" href="' . plugins_url("spidercalendarbig_seemore.php", __FILE__) . '?theme_id=' . $theme_id . '&ev_ids=' . $ev_ids_inline . '&calendar_id=' . $calendar_id . '&date=' . $year . '-' . add_0(Month_num($month)) . '-' . $i . '&Itemid=' . $Itemid . '&cur_page_url=' . $path_sp_cal . ($widget ? '&widget=1' : '') . '&TB_iframe=1&tbWidth=' . $popup_width . '&tbHeight=' . $popup_height . '" ' . $dayevent . '><b style="color:' . $evented_color . ' !important;font-size:' . $other_days_font_size . 'px !important;">' . $i . '</b></a></b>';
} else {
echo '<td class="cala_day" style="background-color:' . $evented_color_bg . ' !important;padding:0 !important; margin:0 !important;line-height:15px !important;"><a class="thickbox-previewbigcalendar' . $many_sp_calendar . '" rel="{handler: \'iframe\', size: {x: ' . $popup_width . ', y: ' . $popup_height . '}}" style="font-size:11px !important;background:none !important;color:' . $event_title_color . ' !important;text-align:center !important;" href="' . plugins_url("spidercalendarbig.php", __FILE__) . '?theme_id=' . $theme_id . '&calendar_id=' . $calendar_id . '&ev_ids=' . $ev_ids_inline . '&eventID=' . $ev_id[0] . '&date=' . $year . '-' . add_0(Month_num($month)) . '-' . $i . '&cur_page_url=' . $path_sp_cal . ($widget ? '&widget=1' : '') . '&TB_iframe=1&tbWidth=' . $popup_width . '&tbHeight=' . $popup_height . '" ' . $dayevent . '><b style="color:' . $evented_color . ' !important;font-size:' . $other_days_font_size . 'px !important;">' . $i . '</b></a></b>';
}
} else {
echo '<td class="cala_day" style="background-color:' . $evented_color_bg . ' !important;padding:0 !important; margin:0 !important;line-height:15px !important;"><b style="color:' . $evented_color . ' !important;font-size:' . $other_days_font_size . 'px !important;">' . $i . '</b>';
$r = 0;
for ($j = 0; $j < $k; $j++) {
if ($r < $number_of_shown_evetns) {
echo '<a class="thickbox-previewbigcalendar' . $many_sp_calendar . '" rel="{handler: \'iframe\', size: {x: ' . $popup_width . ', y: ' . $popup_height . '}}" style="background:none !important;color:' . $event_title_color . ' !important; " href="' . plugins_url("spidercalendarbig.php", __FILE__) . '?theme_id=' . $theme_id . '&calendar_id=' . $calendar_id . '&ev_ids=' . $ev_ids_inline . '&eventID=' . $ev_id[$j] . '&date=' . $year . '-' . add_0(Month_num($month)) . '-' . $i . '&cur_page_url=' . $path_sp_cal . ($widget ? '&widget=1' : '') . '&TB_iframe=1&tbWidth=' . $popup_width . '&tbHeight=' . $popup_height . '" ><b>' . $ev_title[$j] . '</b></a>';
} else {
echo '<p><a class="thickbox-previewbigcalendar' . $many_sp_calendar . '" rel="{handler: \'iframe\', size: {x: ' . $popup_width . ', y: ' . $popup_height . '}}" style="font-size:11px !important;background:none !important;color:' . $event_title_color . ' !important;text-align:center !important;" href="' . plugins_url("spidercalendarbig_seemore.php", __FILE__) . '?theme_id=' . $theme_id . '&ev_ids=' . $ev_ids_inline . '&calendar_id=' . $calendar_id . '&date=' . $year . '-' . add_0(Month_num($month)) . '-' . $i . '&Itemid=' . $Itemid . '&cur_page_url=' . $path_sp_cal . ($widget ? '&widget=1' : '') . '&TB_iframe=1&tbWidth=' . $popup_width . '&tbHeight=' . $popup_height . '" ' . $dayevent . '> <b>' . __('See more...', 'sp_calendar') . '</b></a></p>';
break;
}
$r++;
}
echo '</td>';
}
} else {
echo '<td style=" color:' . $text_color_this_month_unevented . ' !important;padding:0 !important; margin:0 !important; line-height:15px !important;border: ' . ($widget ? $all_days_border_width : '1') . 'px solid ' . $cell_border_color . ' !important; ' . ($widget ? 'vertical-align:middle !important; text-align: center' : 'vertical-align:top') . ' !important;"><b style="font-size:' . $other_days_font_size . 'px">' . $i . '</b></td>';
}
}
}
}
if ($weekday_i % 7 == 0 && $i != $month_days) {
echo '</tr><tr height="' . $cell_height . '" style="!important;line-height:15px">';
$weekday_i = 0;
示例8: php_getdays
//.........这里部分代码省略.........
$t = php_daysDifference($rows[$i - 1]->date, $rows[$i - 1]->date_end);
for ($k = 1; $k <= $t / $repeat; $k++) {
$next_date = php_GetNextDate($start_date, $repeat);
$next_date_array = explode('/', $next_date);
if ((int) $month == $date_month && (int) substr($date_year_month, 0, 4) == (int) $year) {
$date_days[0] = $date_day;
}
if ((int) $month == $next_date_array[0] && (int) $year == $next_date_array[2]) {
$date_days[] = $next_date_array[1];
}
$start_date = date("Y-m-d", mktime(0, 0, 0, $next_date_array[0], $next_date_array[1], $next_date_array[2]));
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////// Repeat Weekly ///////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($rows[$i - 1]->repeat_method == 'weekly') {
for ($j = 0; $j <= 6; $j++) {
if (in_array(date("D", mktime(0, 0, 0, $date_month, $date_day + $j, substr($rows[$i - 1]->date, 0, 4))), $weekly_array)) {
$weekdays_start[] = $date_day + $j;
}
}
for ($p = 0; $p < count($weekly_array) - 1; $p++) {
$start_date = substr($rows[$i - 1]->date, 0, 8) . $weekdays_start[$p];
$t = php_daysDifference($rows[$i - 1]->date, $rows[$i - 1]->date_end);
$r = 0;
for ($k = 1; $k < $t / $repeat; $k++) {
$start_date_array[] = $start_date;
$next_date = php_GetNextDate($start_date, $repeat * 7);
$next_date_array = explode('/', $next_date);
if ((int) $month == $date_month && (int) substr($date_year_month, 0, 4) == (int) $year) {
$date_days[0] = $weekdays_start[$p];
}
if ($next_date_array[2] . '-' . add_0($next_date_array[0]) . '-' . add_0($next_date_array[1]) > $rows[$i - 1]->date_end || $next_date_array[0] > (int) $month && $next_date_array[2] == (int) $year || $next_date_array[2] > (int) $year) {
break;
}
if ((int) $month == $date_month && (int) substr($date_year_month, 0, 4) == (int) $year) {
$date_days[0] = $weekdays_start[$p];
}
if ((int) $month == $next_date_array[0] && (int) $year == $next_date_array[2]) {
if ((int) $year > (int) substr($date_year_month, 0, 4)) {
$weekdays[] = $next_date_array[1];
} else {
$weekdays[] = $next_date_array[1];
}
}
$start_date = date("Y-m-d", mktime(0, 0, 0, $next_date_array[0], $next_date_array[1], $next_date_array[2]));
// if ($next_date_array[2] > (int)substr($rows[$i - 1]->date_end, 0, 4))
// break;
}
$date_days = array_merge($weekdays, $date_days);
}
$repeat = $repeat * 7;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////// Repeat Monthly ///////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($rows[$i - 1]->repeat_method == 'monthly') {
$xxxxx = 13;
$year_dif_count = (int) $year - (int) substr($rows[$i - 1]->date, 0, 4);
$mount_dif_count = 12 - (int) substr($rows[$i - 1]->date, 5, 2) + ($year_dif_count - 1) * 12;
if ($year_dif_count > 0) {
for ($my_serch_month = 1; $my_serch_month <= 12; $my_serch_month++) {
if (($mount_dif_count + $my_serch_month) % $rows[$i - 1]->repeat == 0) {
$xxxxx = $my_serch_month;
break;
示例9: array_pop
array_pop($ev_title);
for ($j = 0; $j < count($ev_title); $j++) {
$query = "SELECT #__spidercalendar_event_category.color AS color FROM #__spidercalendar_event JOIN #__spidercalendar_event_category\n\t ON #__spidercalendar_event.category=#__spidercalendar_event_category.id WHERE #__spidercalendar_event.calendar=" . $calendar . " AND \n\t #__spidercalendar_event.published='1' AND #__spidercalendar_event_category.published='1' AND #__spidercalendar_event.id=" . $ev_id[$j];
$db->setQuery($query);
$cat_color = $db->loadResult();
if (($j + 1) % 2 == 0) {
$color = $event_num_bg_color2;
$table_color = $event_bg_color2;
} else {
$color = $event_num_bg_color1;
$table_color = $event_bg_color1;
}
if ($cat_color != '') {
echo '<table style="height:' . $event_table_height . 'px;border-spacing:0;width: 100%;background-color:' . $table_color . '"><tr><td style="font-size:' . $event_num_font_size . 'px;font-weight:bold;width:15px;text-align:center;background-color:#' . $cat_color . ';color:' . $event_num_color . '">' . ($j + 1) . '</td><td ><a class="modal' . $id . '" rel="{handler: \'iframe\', size: {x: ' . $popup_width . ', y: ' . $popup_height . '}}" style="text-decoration:none;font-size:15px;background:none;color:' . $event_title_color . '; " href="' . JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id=' . $theme_id . '&calendar_id=' . $calendar_id . '&ev_ids=' . $ev_ids_inline . '&eventID=' . $ev_id[$j] . '&date=' . $year . '-' . add_0(Month_num($month)) . '-' . (int) $day) . '&tmpl=component&Itemid=' . $Itemid . '" ><b>' . $ev_title[$j] . '</b></a></td></tr></table>';
} else {
echo '<table style="height:' . $event_table_height . 'px;border-spacing:0;width: 100%;background-color:' . $table_color . '"><tr><td style="font-size:' . $event_num_font_size . 'px;font-weight:bold;width:15px;text-align:center;background-color:' . $color . ';color:' . $event_num_color . '">' . ($j + 1) . '</td><td ><a class="modal' . $id . '" rel="{handler: \'iframe\', size: {x: ' . $popup_width . ', y: ' . $popup_height . '}}" style="text-decoration:none;font-size:15px;background:none;color:' . $event_title_color . '; " href="' . JRoute::_('index.php?option=com_spidercalendar&view=spidercalendarbig&theme_id=' . $theme_id . '&calendar_id=' . $calendar_id . '&ev_ids=' . $ev_ids_inline . '&eventID=' . $ev_id[$j] . '&date=' . $year . '-' . add_0(Month_num($month)) . '-' . (int) $day) . '&tmpl=component&Itemid=' . $Itemid . '" ><b>' . $ev_title[$j] . '</b></a></td></tr></table>';
}
}
}
}
} else {
echo '<table style="height:' . $event_table_height . 'px;border-spacing:0;width: 100%;background-color:' . $event_bg_color1 . '"><tr><td style="font-size:22px;font-weight:bold;width:15px;text-align:center;background-color:' . $event_num_bg_color1 . ';color:' . $event_num_color . '"></td><td ><h1 style="color:' . $event_title_color . '; border:none;font-size: 15px;padding: 0;margin: 0;"> ' . JText::_('THERE_IS_NO_EVENT_IN_THIS_DAY') . '</h1> </td></tr></table>';
}
echo '</td></tr>';
echo '</table>';
}
?>
</td>
</tr>
</table>
</tr>
示例10: add_0
$cal_width = '700';
$popup_width = '800';
$popup_height = '500';
$border_radius = $theme->border_radius - $theme->border_width;
$rand = JRequest::getVar('rand');
JHTML::_('behavior.modal');
function add_0($month_num)
{
if ($month_num < 10) {
return '0' . $month_num;
}
return $month_num;
}
$this_month = substr($this->date, 5, 2);
$prev_month = add_0((int) $this_month - 1);
$next_month = add_0((int) $this_month + 1);
?>
<input type="hidden" value="<?php
echo $cal_width;
?>
" id="cal_wdth<?php
echo $rand;
?>
" />
<div id='bigcalendar<?php
echo $rand;
?>
'></div>
示例11: big_calendar_month
//.........这里部分代码省略.........
$show_event_bgcolor = '#' . str_replace('#', '', $theme->show_event_bgcolor);
__('January', 'sp_calendar');
__('February', 'sp_calendar');
__('March', 'sp_calendar');
__('April', 'sp_calendar');
__('May', 'sp_calendar');
__('June', 'sp_calendar');
__('July', 'sp_calendar');
__('August', 'sp_calendar');
__('September', 'sp_calendar');
__('October', 'sp_calendar');
__('November', 'sp_calendar');
__('December', 'sp_calendar');
if ($cell_height == '') {
$cell_height = 70;
}
if ($cal_width == '') {
$cal_width = 700;
}
if ($date != '') {
$date_REFERER = $date;
} else {
$date_REFERER = date("Y-m");
$date = date("Y") . '-' . php_Month_num(date("F")) . '-' . date("d");
}
$year_REFERER = substr($date_REFERER, 0, 4);
$month_REFERER = Month_name(substr($date_REFERER, 5, 2));
$day_REFERER = substr($date_REFERER, 8, 2);
$year = substr($date, 0, 4);
$month = Month_name(substr($date, 5, 2));
$day = substr($date, 8, 2);
$cell_width = $cal_width / 7;
$cell_width = (int) $cell_width - 2;
$this_month = substr($year . '-' . add_0(Month_num($month)), 5, 2);
$prev_month = add_0((int) $this_month - 1);
$next_month = add_0((int) $this_month + 1);
$view = 'bigcalendarmonth';
$views = explode(',', $view_select);
$defaultview = 'month';
array_pop($views);
$display = '';
if (count($views) == 0) {
$display = "display:none";
echo '<style>
@media only screen and (max-width : 640px) {
#views_tabs_select
{
display:none !important;
}
}
</style>';
}
if (count($views) == 1 and $views[0] == $defaultview) {
$display = "display:none";
echo '<style>
@media only screen and (max-width : 640px) {
#views_tabs_select
{
display:none !important;
}
}
</style>';