Version Description
bug fixed in description editor allow origin issue fixed
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.4.15 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.14 to 1.4.15
- calendar.php +1 -1
- calendar_functions.html.php +0 -1
- calendar_functions.php +4 -4
- front_end/bigcalendarday.php +16 -16
- front_end/bigcalendarday_widget.php +12 -12
- front_end/bigcalendarlist.php +16 -16
- front_end/bigcalendarlist_widget.php +12 -12
- front_end/bigcalendarmonth.php +28 -28
- front_end/bigcalendarmonth_widget.php +21 -21
- front_end/bigcalendarweek.php +16 -16
- front_end/bigcalendarweek_widget.php +12 -12
- readme.txt +11 -4
- spidercalendar_upcoming_events_widget.php +11 -11
calendar.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Spider Event Calendar
|
| 5 |
Plugin URI: http://web-dorado.com/products/wordpress-calendar.html
|
| 6 |
Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
|
| 7 |
-
Version: 1.4.
|
| 8 |
Author: http://web-dorado.com/
|
| 9 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
| 4 |
Plugin Name: Spider Event Calendar
|
| 5 |
Plugin URI: http://web-dorado.com/products/wordpress-calendar.html
|
| 6 |
Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
|
| 7 |
+
Version: 1.4.15
|
| 8 |
Author: http://web-dorado.com/
|
| 9 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
calendar_functions.html.php
CHANGED
|
@@ -785,7 +785,6 @@ $row=$wpdb->get_row($wpdb->prepare ("SELECT * FROM " . $wpdb->prefix . "spiderca
|
|
| 785 |
<tr>
|
| 786 |
<td class="key"><label for="message"> <?php echo 'Description'; ?>:</label></td>
|
| 787 |
<td ><div id="poststuff" style="width:100% !important;">
|
| 788 |
-
|
| 789 |
<?php if(version_compare(get_bloginfo('version'),3.3)<0) {?>
|
| 790 |
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor(stripslashes($row->description),"description","title" ); ?>
|
| 791 |
</div>
|
| 785 |
<tr>
|
| 786 |
<td class="key"><label for="message"> <?php echo 'Description'; ?>:</label></td>
|
| 787 |
<td ><div id="poststuff" style="width:100% !important;">
|
|
|
|
| 788 |
<?php if(version_compare(get_bloginfo('version'),3.3)<0) {?>
|
| 789 |
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor(stripslashes($row->description),"description","title" ); ?>
|
| 790 |
</div>
|
calendar_functions.php
CHANGED
|
@@ -239,7 +239,7 @@ function save_spider_category_event() {
|
|
| 239 |
$title = (isset($_POST["title"]) ? esc_sql(esc_html(stripslashes($_POST["title"]))) : '');
|
| 240 |
$published = (isset($_POST["published"]) ? (int) $_POST["published"] : 1);
|
| 241 |
$color = (isset($_POST["color"]) ? esc_sql(esc_html(stripslashes($_POST["color"]))) : '');
|
| 242 |
-
$description = (
|
| 243 |
global $wpdb;
|
| 244 |
|
| 245 |
$save_or_no = $wpdb->insert($wpdb->prefix . 'spidercalendar_event_category', array(
|
|
@@ -294,7 +294,7 @@ function apply_spider_category_event($id) {
|
|
| 294 |
$title = (isset($_POST["title"]) ? esc_sql(esc_html(stripslashes($_POST["title"]))) : '');
|
| 295 |
$published = (isset($_POST["published"]) ? (int) $_POST["published"] : 1);
|
| 296 |
$color = (isset($_POST["color"]) ? esc_sql(esc_html(stripslashes($_POST["color"]))) : '');
|
| 297 |
-
$description = (
|
| 298 |
global $wpdb;
|
| 299 |
|
| 300 |
|
|
@@ -500,8 +500,8 @@ function apply_spider_event($calendar_id, $id) {
|
|
| 500 |
global $wpdb;
|
| 501 |
if(isset($_POST['title'])){
|
| 502 |
$title = ((isset($_POST['title'])) ? esc_sql(esc_html(stripslashes($_POST['title']))) : '');
|
| 503 |
-
$category = ((isset($_POST['category'])) ? esc_sql(esc_html(stripslashes($_POST['category']))) : '');
|
| 504 |
-
$text_for_date = ((
|
| 505 |
$published = ((isset($_POST['published'])) ? (int) $_POST['published'] : 1);
|
| 506 |
$repeat = ((isset($_POST['repeat'])) ? esc_sql(esc_html(stripslashes($_POST['repeat']))) : '');
|
| 507 |
$week = ((isset($_POST['week'])) ? esc_sql(esc_html(stripslashes($_POST['week']))) : '');
|
| 239 |
$title = (isset($_POST["title"]) ? esc_sql(esc_html(stripslashes($_POST["title"]))) : '');
|
| 240 |
$published = (isset($_POST["published"]) ? (int) $_POST["published"] : 1);
|
| 241 |
$color = (isset($_POST["color"]) ? esc_sql(esc_html(stripslashes($_POST["color"]))) : '');
|
| 242 |
+
$description = preg_replace('#<script(.*?)>(.*?)</script>#is', '', stripslashes($_POST["description"]));
|
| 243 |
global $wpdb;
|
| 244 |
|
| 245 |
$save_or_no = $wpdb->insert($wpdb->prefix . 'spidercalendar_event_category', array(
|
| 294 |
$title = (isset($_POST["title"]) ? esc_sql(esc_html(stripslashes($_POST["title"]))) : '');
|
| 295 |
$published = (isset($_POST["published"]) ? (int) $_POST["published"] : 1);
|
| 296 |
$color = (isset($_POST["color"]) ? esc_sql(esc_html(stripslashes($_POST["color"]))) : '');
|
| 297 |
+
$description = preg_replace('#<script(.*?)>(.*?)</script>#is', '', stripslashes($_POST["description"]));
|
| 298 |
global $wpdb;
|
| 299 |
|
| 300 |
|
| 500 |
global $wpdb;
|
| 501 |
if(isset($_POST['title'])){
|
| 502 |
$title = ((isset($_POST['title'])) ? esc_sql(esc_html(stripslashes($_POST['title']))) : '');
|
| 503 |
+
$category = ((isset($_POST['category'])) ? esc_sql(esc_html(stripslashes($_POST['category']))) : '');
|
| 504 |
+
$text_for_date = preg_replace('#<script(.*?)>(.*?)</script>#is', '', stripslashes($_POST["text_for_date"]));
|
| 505 |
$published = ((isset($_POST['published'])) ? (int) $_POST['published'] : 1);
|
| 506 |
$repeat = ((isset($_POST['repeat'])) ? esc_sql(esc_html(stripslashes($_POST['repeat']))) : '');
|
| 507 |
$week = ((isset($_POST['week'])) ? esc_sql(esc_html(stripslashes($_POST['week']))) : '');
|
front_end/bigcalendarday.php
CHANGED
|
@@ -9,7 +9,7 @@ function big_calendar_day() {
|
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
-
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
|
|
@@ -503,7 +503,7 @@ position: relative;
|
|
| 503 |
'cat_ids' => $cat_ids,
|
| 504 |
'widget' => $widget,
|
| 505 |
'rand' => $many_sp_calendar,
|
| 506 |
-
),
|
| 507 |
</div>
|
| 508 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 509 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -519,7 +519,7 @@ position: relative;
|
|
| 519 |
'cat_ids' => $cat_ids,
|
| 520 |
'widget' => $widget,
|
| 521 |
'rand' => $many_sp_calendar,
|
| 522 |
-
),
|
| 523 |
</div>
|
| 524 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 525 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -534,7 +534,7 @@ position: relative;
|
|
| 534 |
'cat_ids' => $cat_ids,
|
| 535 |
'widget' => $widget,
|
| 536 |
'rand' => $many_sp_calendar,
|
| 537 |
-
),
|
| 538 |
</div>
|
| 539 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 540 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -549,7 +549,7 @@ position: relative;
|
|
| 549 |
'cat_ids' => $cat_ids,
|
| 550 |
'widget' => $widget,
|
| 551 |
'rand' => $many_sp_calendar,
|
| 552 |
-
),
|
| 553 |
</div>
|
| 554 |
</div>
|
| 555 |
<div id="views_tabs_select" style="display:none" >
|
|
@@ -574,7 +574,7 @@ position: relative;
|
|
| 574 |
'cat_id' => '',
|
| 575 |
'cat_ids' => $cat_ids,
|
| 576 |
'widget' => $widget,
|
| 577 |
-
),
|
| 578 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 579 |
</div>
|
| 580 |
</li>
|
|
@@ -592,7 +592,7 @@ position: relative;
|
|
| 592 |
'cat_id' => '',
|
| 593 |
'cat_ids' => $cat_ids,
|
| 594 |
'widget' => $widget,
|
| 595 |
-
),
|
| 596 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 597 |
</div>
|
| 598 |
</li>
|
|
@@ -609,7 +609,7 @@ position: relative;
|
|
| 609 |
'cat_id' => '',
|
| 610 |
'cat_ids' => $cat_ids,
|
| 611 |
'widget' => $widget,
|
| 612 |
-
),
|
| 613 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 614 |
</div>
|
| 615 |
</li>
|
|
@@ -626,7 +626,7 @@ position: relative;
|
|
| 626 |
'cat_id' => '',
|
| 627 |
'cat_ids' => $cat_ids,
|
| 628 |
'widget' => $widget,
|
| 629 |
-
),
|
| 630 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 631 |
|
| 632 |
</ul>
|
|
@@ -657,7 +657,7 @@ position: relative;
|
|
| 657 |
'cat_id' => '',
|
| 658 |
'cat_ids' => $cat_ids,
|
| 659 |
'widget' => $widget,
|
| 660 |
-
),
|
| 661 |
<span style="font-size:18px; color:#FFF"><?php echo $year - 1; ?></span>
|
| 662 |
</div>
|
| 663 |
</td>
|
|
@@ -692,7 +692,7 @@ position: relative;
|
|
| 692 |
'cat_id' => '',
|
| 693 |
'cat_ids' => $cat_ids,
|
| 694 |
'widget' => $widget,
|
| 695 |
-
),
|
| 696 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◀
|
| 697 |
</a>
|
| 698 |
</td>
|
|
@@ -733,7 +733,7 @@ position: relative;
|
|
| 733 |
'cat_id' => '',
|
| 734 |
'cat_ids' => $cat_ids,
|
| 735 |
'widget' => $widget,
|
| 736 |
-
),
|
| 737 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">▶
|
| 738 |
</a>
|
| 739 |
</td>
|
|
@@ -750,7 +750,7 @@ position: relative;
|
|
| 750 |
'cat_id' => '',
|
| 751 |
'cat_ids' => $cat_ids,
|
| 752 |
'widget' => $widget,
|
| 753 |
-
),
|
| 754 |
<span style="font-size:18px; color:#FFF"><?php echo $year + 1; ?></span>
|
| 755 |
</div>
|
| 756 |
</td>
|
|
@@ -869,7 +869,7 @@ position: relative;
|
|
| 869 |
'TB_iframe' => 1,
|
| 870 |
'tbWidth' => $popup_width,
|
| 871 |
'tbHeight' => $popup_height,
|
| 872 |
-
),
|
| 873 |
</a>
|
| 874 |
</td>
|
| 875 |
</tr>
|
|
@@ -996,7 +996,7 @@ foreach($categories as $category)
|
|
| 996 |
'cat_id' => $category->id,
|
| 997 |
'cat_ids' => $cat_ids,
|
| 998 |
'widget' => $widget,
|
| 999 |
-
),
|
| 1000 |
|
| 1001 |
|
| 1002 |
<?php
|
|
@@ -1014,7 +1014,7 @@ if (!empty($categories)) {
|
|
| 1014 |
'cat_id' => '',
|
| 1015 |
'cat_ids' => '',
|
| 1016 |
'widget' => $widget,
|
| 1017 |
-
),
|
| 1018 |
<?php echo '</ul>';
|
| 1019 |
}
|
| 1020 |
}
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
|
| 503 |
'cat_ids' => $cat_ids,
|
| 504 |
'widget' => $widget,
|
| 505 |
'rand' => $many_sp_calendar,
|
| 506 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 507 |
</div>
|
| 508 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 509 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 519 |
'cat_ids' => $cat_ids,
|
| 520 |
'widget' => $widget,
|
| 521 |
'rand' => $many_sp_calendar,
|
| 522 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 523 |
</div>
|
| 524 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 525 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 534 |
'cat_ids' => $cat_ids,
|
| 535 |
'widget' => $widget,
|
| 536 |
'rand' => $many_sp_calendar,
|
| 537 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 538 |
</div>
|
| 539 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 540 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 549 |
'cat_ids' => $cat_ids,
|
| 550 |
'widget' => $widget,
|
| 551 |
'rand' => $many_sp_calendar,
|
| 552 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 553 |
</div>
|
| 554 |
</div>
|
| 555 |
<div id="views_tabs_select" style="display:none" >
|
| 574 |
'cat_id' => '',
|
| 575 |
'cat_ids' => $cat_ids,
|
| 576 |
'widget' => $widget,
|
| 577 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 578 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 579 |
</div>
|
| 580 |
</li>
|
| 592 |
'cat_id' => '',
|
| 593 |
'cat_ids' => $cat_ids,
|
| 594 |
'widget' => $widget,
|
| 595 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">
|
| 596 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 597 |
</div>
|
| 598 |
</li>
|
| 609 |
'cat_id' => '',
|
| 610 |
'cat_ids' => $cat_ids,
|
| 611 |
'widget' => $widget,
|
| 612 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 613 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 614 |
</div>
|
| 615 |
</li>
|
| 626 |
'cat_id' => '',
|
| 627 |
'cat_ids' => $cat_ids,
|
| 628 |
'widget' => $widget,
|
| 629 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 630 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 631 |
|
| 632 |
</ul>
|
| 657 |
'cat_id' => '',
|
| 658 |
'cat_ids' => $cat_ids,
|
| 659 |
'widget' => $widget,
|
| 660 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:102%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 661 |
<span style="font-size:18px; color:#FFF"><?php echo $year - 1; ?></span>
|
| 662 |
</div>
|
| 663 |
</td>
|
| 692 |
'cat_id' => '',
|
| 693 |
'cat_ids' => $cat_ids,
|
| 694 |
'widget' => $widget,
|
| 695 |
+
), $site_url);
|
| 696 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◀
|
| 697 |
</a>
|
| 698 |
</td>
|
| 733 |
'cat_id' => '',
|
| 734 |
'cat_ids' => $cat_ids,
|
| 735 |
'widget' => $widget,
|
| 736 |
+
), $site_url);
|
| 737 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">▶
|
| 738 |
</a>
|
| 739 |
</td>
|
| 750 |
'cat_id' => '',
|
| 751 |
'cat_ids' => $cat_ids,
|
| 752 |
'widget' => $widget,
|
| 753 |
+
), $site_url); ?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:102%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 754 |
<span style="font-size:18px; color:#FFF"><?php echo $year + 1; ?></span>
|
| 755 |
</div>
|
| 756 |
</td>
|
| 869 |
'TB_iframe' => 1,
|
| 870 |
'tbWidth' => $popup_width,
|
| 871 |
'tbHeight' => $popup_height,
|
| 872 |
+
), $site_url) . '"><b>' . $ev_title[$j] . '</b>
|
| 873 |
</a>
|
| 874 |
</td>
|
| 875 |
</tr>
|
| 996 |
'cat_id' => $category->id,
|
| 997 |
'cat_ids' => $cat_ids,
|
| 998 |
'widget' => $widget,
|
| 999 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 1000 |
|
| 1001 |
|
| 1002 |
<?php
|
| 1014 |
'cat_id' => '',
|
| 1015 |
'cat_ids' => '',
|
| 1016 |
'widget' => $widget,
|
| 1017 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 1018 |
<?php echo '</ul>';
|
| 1019 |
}
|
| 1020 |
}
|
front_end/bigcalendarday_widget.php
CHANGED
|
@@ -9,7 +9,7 @@ function big_calendar_day_widget() {
|
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
-
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
if(isset($_GET['cat_id']))
|
|
@@ -346,7 +346,7 @@ position: relative;
|
|
| 346 |
'cat_ids' => $cat_ids,
|
| 347 |
'widget' => $widget,
|
| 348 |
'TB_iframe' => 1,
|
| 349 |
-
),
|
| 350 |
</div>
|
| 351 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 352 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
|
@@ -362,7 +362,7 @@ position: relative;
|
|
| 362 |
'cat_ids' => $cat_ids,
|
| 363 |
'widget' => $widget,
|
| 364 |
'TB_iframe' => 1,
|
| 365 |
-
),
|
| 366 |
</div>
|
| 367 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 368 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
|
@@ -377,7 +377,7 @@ position: relative;
|
|
| 377 |
'cat_ids' => $cat_ids,
|
| 378 |
'widget' => $widget,
|
| 379 |
'TB_iframe' => 1,
|
| 380 |
-
),
|
| 381 |
</div>
|
| 382 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 383 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
|
@@ -392,7 +392,7 @@ position: relative;
|
|
| 392 |
'cat_ids' => $cat_ids,
|
| 393 |
'widget' => $widget,
|
| 394 |
'TB_iframe' => 1,
|
| 395 |
-
),
|
| 396 |
</div>
|
| 397 |
</div>
|
| 398 |
</td>
|
|
@@ -429,7 +429,7 @@ position: relative;
|
|
| 429 |
'cat_ids' => $cat_ids,
|
| 430 |
'widget' => $widget,
|
| 431 |
'TB_iframe' => 1,
|
| 432 |
-
),
|
| 433 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 434 |
</a>
|
| 435 |
</td>
|
|
@@ -460,7 +460,7 @@ position: relative;
|
|
| 460 |
'cat_ids' => $cat_ids,
|
| 461 |
'widget' => $widget,
|
| 462 |
'TB_iframe' => 1,
|
| 463 |
-
),
|
| 464 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 465 |
</a>
|
| 466 |
</td>
|
|
@@ -571,7 +571,7 @@ position: relative;
|
|
| 571 |
'TB_iframe' => 1,
|
| 572 |
'tbWidth' => $popup_width,
|
| 573 |
'tbHeight' => $popup_height,
|
| 574 |
-
),
|
| 575 |
</a>
|
| 576 |
</td>
|
| 577 |
</tr>
|
|
@@ -598,7 +598,7 @@ position: relative;
|
|
| 598 |
'cat_id' => '',
|
| 599 |
'cat_ids' => $cat_ids,
|
| 600 |
'TB_iframe' => 1,
|
| 601 |
-
),
|
| 602 |
<?php echo ($year - 1); ?>
|
| 603 |
</td>
|
| 604 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
|
@@ -617,7 +617,7 @@ position: relative;
|
|
| 617 |
'cat_id' => '',
|
| 618 |
'cat_ids' => $cat_ids,
|
| 619 |
'TB_iframe' => 1,
|
| 620 |
-
),
|
| 621 |
<?php echo ($year + 1); ?>
|
| 622 |
</td>
|
| 623 |
</tr>
|
|
@@ -694,7 +694,7 @@ foreach($categories as $category)
|
|
| 694 |
'cat_ids' => $cat_ids,
|
| 695 |
'widget' => $widget,
|
| 696 |
'TB_iframe' => 1,
|
| 697 |
-
),
|
| 698 |
|
| 699 |
|
| 700 |
<?php
|
|
@@ -713,7 +713,7 @@ if (!empty($categories)) {
|
|
| 713 |
'cat_ids' => '',
|
| 714 |
'widget' => $widget,
|
| 715 |
'TB_iframe' => 1,
|
| 716 |
-
),
|
| 717 |
|
| 718 |
<?php echo '</ul>';
|
| 719 |
}
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
if(isset($_GET['cat_id']))
|
| 346 |
'cat_ids' => $cat_ids,
|
| 347 |
'widget' => $widget,
|
| 348 |
'TB_iframe' => 1,
|
| 349 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 350 |
</div>
|
| 351 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 352 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
| 362 |
'cat_ids' => $cat_ids,
|
| 363 |
'widget' => $widget,
|
| 364 |
'TB_iframe' => 1,
|
| 365 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 366 |
</div>
|
| 367 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 368 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
| 377 |
'cat_ids' => $cat_ids,
|
| 378 |
'widget' => $widget,
|
| 379 |
'TB_iframe' => 1,
|
| 380 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 381 |
</div>
|
| 382 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 383 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
| 392 |
'cat_ids' => $cat_ids,
|
| 393 |
'widget' => $widget,
|
| 394 |
'TB_iframe' => 1,
|
| 395 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 396 |
</div>
|
| 397 |
</div>
|
| 398 |
</td>
|
| 429 |
'cat_ids' => $cat_ids,
|
| 430 |
'widget' => $widget,
|
| 431 |
'TB_iframe' => 1,
|
| 432 |
+
), $site_url);
|
| 433 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 434 |
</a>
|
| 435 |
</td>
|
| 460 |
'cat_ids' => $cat_ids,
|
| 461 |
'widget' => $widget,
|
| 462 |
'TB_iframe' => 1,
|
| 463 |
+
), $site_url);
|
| 464 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 465 |
</a>
|
| 466 |
</td>
|
| 571 |
'TB_iframe' => 1,
|
| 572 |
'tbWidth' => $popup_width,
|
| 573 |
'tbHeight' => $popup_height,
|
| 574 |
+
), $site_url) . '"><b>' . $ev_title[$j] . '</b>
|
| 575 |
</a>
|
| 576 |
</td>
|
| 577 |
</tr>
|
| 598 |
'cat_id' => '',
|
| 599 |
'cat_ids' => $cat_ids,
|
| 600 |
'TB_iframe' => 1,
|
| 601 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>">
|
| 602 |
<?php echo ($year - 1); ?>
|
| 603 |
</td>
|
| 604 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
| 617 |
'cat_id' => '',
|
| 618 |
'cat_ids' => $cat_ids,
|
| 619 |
'TB_iframe' => 1,
|
| 620 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>;color:<?php echo $year_font_color; ?>">
|
| 621 |
<?php echo ($year + 1); ?>
|
| 622 |
</td>
|
| 623 |
</tr>
|
| 694 |
'cat_ids' => $cat_ids,
|
| 695 |
'widget' => $widget,
|
| 696 |
'TB_iframe' => 1,
|
| 697 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 698 |
|
| 699 |
|
| 700 |
<?php
|
| 713 |
'cat_ids' => '',
|
| 714 |
'widget' => $widget,
|
| 715 |
'TB_iframe' => 1,
|
| 716 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 717 |
|
| 718 |
<?php echo '</ul>';
|
| 719 |
}
|
front_end/bigcalendarlist.php
CHANGED
|
@@ -9,7 +9,7 @@ function big_calendar_list() {
|
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
-
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
|
|
@@ -492,7 +492,7 @@ position: relative;
|
|
| 492 |
'cat_ids' => $cat_ids,
|
| 493 |
'widget' => $widget,
|
| 494 |
'rand' => $many_sp_calendar,
|
| 495 |
-
),
|
| 496 |
</div>
|
| 497 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 498 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -508,7 +508,7 @@ position: relative;
|
|
| 508 |
'cat_ids' => $cat_ids,
|
| 509 |
'widget' => $widget,
|
| 510 |
'rand' => $many_sp_calendar,
|
| 511 |
-
),
|
| 512 |
</div>
|
| 513 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 514 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -523,7 +523,7 @@ position: relative;
|
|
| 523 |
'cat_ids' => $cat_ids,
|
| 524 |
'widget' => $widget,
|
| 525 |
'rand' => $many_sp_calendar,
|
| 526 |
-
),
|
| 527 |
</div>
|
| 528 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 529 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -538,7 +538,7 @@ position: relative;
|
|
| 538 |
'cat_ids' => $cat_ids,
|
| 539 |
'widget' => $widget,
|
| 540 |
'rand' => $many_sp_calendar,
|
| 541 |
-
),
|
| 542 |
</div>
|
| 543 |
</div>
|
| 544 |
|
|
@@ -564,7 +564,7 @@ position: relative;
|
|
| 564 |
'cat_id' => '',
|
| 565 |
'cat_ids' => $cat_ids,
|
| 566 |
'widget' => $widget,
|
| 567 |
-
),
|
| 568 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 569 |
</div>
|
| 570 |
</li>
|
|
@@ -582,7 +582,7 @@ position: relative;
|
|
| 582 |
'cat_id' => '',
|
| 583 |
'cat_ids' => $cat_ids,
|
| 584 |
'widget' => $widget,
|
| 585 |
-
),
|
| 586 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 587 |
</div>
|
| 588 |
</li>
|
|
@@ -599,7 +599,7 @@ position: relative;
|
|
| 599 |
'cat_id' => '',
|
| 600 |
'cat_ids' => $cat_ids,
|
| 601 |
'widget' => $widget,
|
| 602 |
-
),
|
| 603 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 604 |
</div>
|
| 605 |
</li>
|
|
@@ -616,7 +616,7 @@ position: relative;
|
|
| 616 |
'cat_id' => '',
|
| 617 |
'cat_ids' => $cat_ids,
|
| 618 |
'widget' => $widget,
|
| 619 |
-
),
|
| 620 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 621 |
|
| 622 |
</ul>
|
|
@@ -649,7 +649,7 @@ position: relative;
|
|
| 649 |
'cat_id' => '',
|
| 650 |
'cat_ids' => $cat_ids,
|
| 651 |
'widget' => $widget,
|
| 652 |
-
),
|
| 653 |
<span style="font-size:18px; color:#FFF"><?php echo $year-1; ?></span>
|
| 654 |
</div>
|
| 655 |
</td>
|
|
@@ -672,7 +672,7 @@ position: relative;
|
|
| 672 |
'cat_id' => '',
|
| 673 |
'cat_ids' => $cat_ids,
|
| 674 |
'widget' => $widget,
|
| 675 |
-
),
|
| 676 |
</a>
|
| 677 |
</td>
|
| 678 |
<td style="text-align:center; margin:0;" width="40%">
|
|
@@ -698,7 +698,7 @@ position: relative;
|
|
| 698 |
'cat_id' => '',
|
| 699 |
'cat_ids' => $cat_ids,
|
| 700 |
'widget' => $widget,
|
| 701 |
-
),
|
| 702 |
</a>
|
| 703 |
</td>
|
| 704 |
<td width="15%">
|
|
@@ -714,7 +714,7 @@ position: relative;
|
|
| 714 |
'cat_id' => '',
|
| 715 |
'cat_ids' => $cat_ids,
|
| 716 |
'widget' => $widget,
|
| 717 |
-
),
|
| 718 |
<span style="font-size:18px; color:#FFF"><?php echo $year + 1; ?></span>
|
| 719 |
</div>
|
| 720 |
</td>
|
|
@@ -820,7 +820,7 @@ position: relative;
|
|
| 820 |
'TB_iframe' => 1,
|
| 821 |
'tbWidth' => $popup_width,
|
| 822 |
'tbHeight' => $popup_height,
|
| 823 |
-
),
|
| 824 |
</a>
|
| 825 |
</td>
|
| 826 |
</tr>
|
|
@@ -946,7 +946,7 @@ foreach($categories as $category)
|
|
| 946 |
'cat_id' => $category->id,
|
| 947 |
'cat_ids' => $cat_ids,
|
| 948 |
'widget' => $widget,
|
| 949 |
-
),
|
| 950 |
|
| 951 |
|
| 952 |
<?php
|
|
@@ -964,7 +964,7 @@ if (!empty($categories)) {
|
|
| 964 |
'cat_id' => '',
|
| 965 |
'cat_ids' => '',
|
| 966 |
'widget' => $widget,
|
| 967 |
-
),
|
| 968 |
<?php echo '</ul>';
|
| 969 |
}
|
| 970 |
}
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
|
| 492 |
'cat_ids' => $cat_ids,
|
| 493 |
'widget' => $widget,
|
| 494 |
'rand' => $many_sp_calendar,
|
| 495 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 496 |
</div>
|
| 497 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 498 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 508 |
'cat_ids' => $cat_ids,
|
| 509 |
'widget' => $widget,
|
| 510 |
'rand' => $many_sp_calendar,
|
| 511 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 512 |
</div>
|
| 513 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 514 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 523 |
'cat_ids' => $cat_ids,
|
| 524 |
'widget' => $widget,
|
| 525 |
'rand' => $many_sp_calendar,
|
| 526 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 527 |
</div>
|
| 528 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 529 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 538 |
'cat_ids' => $cat_ids,
|
| 539 |
'widget' => $widget,
|
| 540 |
'rand' => $many_sp_calendar,
|
| 541 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 542 |
</div>
|
| 543 |
</div>
|
| 544 |
|
| 564 |
'cat_id' => '',
|
| 565 |
'cat_ids' => $cat_ids,
|
| 566 |
'widget' => $widget,
|
| 567 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 568 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 569 |
</div>
|
| 570 |
</li>
|
| 582 |
'cat_id' => '',
|
| 583 |
'cat_ids' => $cat_ids,
|
| 584 |
'widget' => $widget,
|
| 585 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">
|
| 586 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 587 |
</div>
|
| 588 |
</li>
|
| 599 |
'cat_id' => '',
|
| 600 |
'cat_ids' => $cat_ids,
|
| 601 |
'widget' => $widget,
|
| 602 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 603 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 604 |
</div>
|
| 605 |
</li>
|
| 616 |
'cat_id' => '',
|
| 617 |
'cat_ids' => $cat_ids,
|
| 618 |
'widget' => $widget,
|
| 619 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 620 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 621 |
|
| 622 |
</ul>
|
| 649 |
'cat_id' => '',
|
| 650 |
'cat_ids' => $cat_ids,
|
| 651 |
'widget' => $widget,
|
| 652 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:100%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 653 |
<span style="font-size:18px; color:#FFF"><?php echo $year-1; ?></span>
|
| 654 |
</div>
|
| 655 |
</td>
|
| 672 |
'cat_id' => '',
|
| 673 |
'cat_ids' => $cat_ids,
|
| 674 |
'widget' => $widget,
|
| 675 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◀
|
| 676 |
</a>
|
| 677 |
</td>
|
| 678 |
<td style="text-align:center; margin:0;" width="40%">
|
| 698 |
'cat_id' => '',
|
| 699 |
'cat_ids' => $cat_ids,
|
| 700 |
'widget' => $widget,
|
| 701 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">▶
|
| 702 |
</a>
|
| 703 |
</td>
|
| 704 |
<td width="15%">
|
| 714 |
'cat_id' => '',
|
| 715 |
'cat_ids' => $cat_ids,
|
| 716 |
'widget' => $widget,
|
| 717 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:100%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 718 |
<span style="font-size:18px; color:#FFF"><?php echo $year + 1; ?></span>
|
| 719 |
</div>
|
| 720 |
</td>
|
| 820 |
'TB_iframe' => 1,
|
| 821 |
'tbWidth' => $popup_width,
|
| 822 |
'tbHeight' => $popup_height,
|
| 823 |
+
), $site_url) . '"><b>'.$ev_title[$j].'</b>
|
| 824 |
</a>
|
| 825 |
</td>
|
| 826 |
</tr>
|
| 946 |
'cat_id' => $category->id,
|
| 947 |
'cat_ids' => $cat_ids,
|
| 948 |
'widget' => $widget,
|
| 949 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 950 |
|
| 951 |
|
| 952 |
<?php
|
| 964 |
'cat_id' => '',
|
| 965 |
'cat_ids' => '',
|
| 966 |
'widget' => $widget,
|
| 967 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 968 |
<?php echo '</ul>';
|
| 969 |
}
|
| 970 |
}
|
front_end/bigcalendarlist_widget.php
CHANGED
|
@@ -9,7 +9,7 @@ function big_calendar_list_widget() {
|
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
-
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
if(isset($_GET['cat_id']))
|
|
@@ -322,7 +322,7 @@ position: relative;
|
|
| 322 |
'cat_ids' => $cat_ids,
|
| 323 |
'widget' => $widget,
|
| 324 |
'TB_iframe' => 1,
|
| 325 |
-
),
|
| 326 |
</div>
|
| 327 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 328 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -338,7 +338,7 @@ position: relative;
|
|
| 338 |
'cat_ids' => $cat_ids,
|
| 339 |
'widget' => $widget,
|
| 340 |
'TB_iframe' => 1,
|
| 341 |
-
),
|
| 342 |
</div>
|
| 343 |
<div class="views" style="margin-left: 3px;margin-right: 1px;<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 344 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -353,7 +353,7 @@ position: relative;
|
|
| 353 |
'cat_ids' => $cat_ids,
|
| 354 |
'widget' => $widget,
|
| 355 |
'TB_iframe' => 1,
|
| 356 |
-
),
|
| 357 |
</div>
|
| 358 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 359 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -368,7 +368,7 @@ position: relative;
|
|
| 368 |
'cat_ids' => $cat_ids,
|
| 369 |
'widget' => $widget,
|
| 370 |
'TB_iframe' => 1,
|
| 371 |
-
),
|
| 372 |
</div>
|
| 373 |
</div>
|
| 374 |
</td>
|
|
@@ -402,7 +402,7 @@ position: relative;
|
|
| 402 |
'cat_ids' => $cat_ids,
|
| 403 |
'widget' => $widget,
|
| 404 |
'TB_iframe' => 1,
|
| 405 |
-
),
|
| 406 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 407 |
</a>
|
| 408 |
</td>
|
|
@@ -430,7 +430,7 @@ position: relative;
|
|
| 430 |
'cat_ids' => $cat_ids,
|
| 431 |
'widget' => $widget,
|
| 432 |
'TB_iframe' => 1,
|
| 433 |
-
),
|
| 434 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 435 |
</a>
|
| 436 |
</td>
|
|
@@ -529,7 +529,7 @@ position: relative;
|
|
| 529 |
'TB_iframe' => 1,
|
| 530 |
'tbWidth' => $popup_width,
|
| 531 |
'tbHeight' => $popup_height,
|
| 532 |
-
),
|
| 533 |
</a>
|
| 534 |
</td>
|
| 535 |
</tr>
|
|
@@ -556,7 +556,7 @@ position: relative;
|
|
| 556 |
'cat_id' => '',
|
| 557 |
'cat_ids' => $cat_ids,
|
| 558 |
'TB_iframe' => 1,
|
| 559 |
-
),
|
| 560 |
<?php echo ($year - 1); ?>
|
| 561 |
</td>
|
| 562 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
|
@@ -575,7 +575,7 @@ position: relative;
|
|
| 575 |
'cat_id' => '',
|
| 576 |
'cat_ids' => $cat_ids,
|
| 577 |
'TB_iframe' => 1,
|
| 578 |
-
),
|
| 579 |
<?php echo ($year + 1); ?>
|
| 580 |
</td>
|
| 581 |
</tr>
|
|
@@ -652,7 +652,7 @@ foreach($categories as $category)
|
|
| 652 |
'cat_ids' => $cat_ids,
|
| 653 |
'widget' => $widget,
|
| 654 |
'TB_iframe' => 1,
|
| 655 |
-
),
|
| 656 |
|
| 657 |
|
| 658 |
<?php
|
|
@@ -671,7 +671,7 @@ if (!empty($categories)) {
|
|
| 671 |
'cat_ids' => '',
|
| 672 |
'widget' => $widget,
|
| 673 |
'TB_iframe' => 1,
|
| 674 |
-
),
|
| 675 |
<?php echo '</ul>';
|
| 676 |
}
|
| 677 |
}
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
if(isset($_GET['cat_id']))
|
| 322 |
'cat_ids' => $cat_ids,
|
| 323 |
'widget' => $widget,
|
| 324 |
'TB_iframe' => 1,
|
| 325 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 326 |
</div>
|
| 327 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 328 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 338 |
'cat_ids' => $cat_ids,
|
| 339 |
'widget' => $widget,
|
| 340 |
'TB_iframe' => 1,
|
| 341 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 342 |
</div>
|
| 343 |
<div class="views" style="margin-left: 3px;margin-right: 1px;<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 344 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 353 |
'cat_ids' => $cat_ids,
|
| 354 |
'widget' => $widget,
|
| 355 |
'TB_iframe' => 1,
|
| 356 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 357 |
</div>
|
| 358 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 359 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 368 |
'cat_ids' => $cat_ids,
|
| 369 |
'widget' => $widget,
|
| 370 |
'TB_iframe' => 1,
|
| 371 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 372 |
</div>
|
| 373 |
</div>
|
| 374 |
</td>
|
| 402 |
'cat_ids' => $cat_ids,
|
| 403 |
'widget' => $widget,
|
| 404 |
'TB_iframe' => 1,
|
| 405 |
+
), $site_url);
|
| 406 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 407 |
</a>
|
| 408 |
</td>
|
| 430 |
'cat_ids' => $cat_ids,
|
| 431 |
'widget' => $widget,
|
| 432 |
'TB_iframe' => 1,
|
| 433 |
+
), $site_url);
|
| 434 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 435 |
</a>
|
| 436 |
</td>
|
| 529 |
'TB_iframe' => 1,
|
| 530 |
'tbWidth' => $popup_width,
|
| 531 |
'tbHeight' => $popup_height,
|
| 532 |
+
), $site_url) . '"><b>'.$ev_title[$j].'</b>
|
| 533 |
</a>
|
| 534 |
</td>
|
| 535 |
</tr>
|
| 556 |
'cat_id' => '',
|
| 557 |
'cat_ids' => $cat_ids,
|
| 558 |
'TB_iframe' => 1,
|
| 559 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>">
|
| 560 |
<?php echo ($year - 1); ?>
|
| 561 |
</td>
|
| 562 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
| 575 |
'cat_id' => '',
|
| 576 |
'cat_ids' => $cat_ids,
|
| 577 |
'TB_iframe' => 1,
|
| 578 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>;color:<?php echo $year_font_color; ?>">
|
| 579 |
<?php echo ($year + 1); ?>
|
| 580 |
</td>
|
| 581 |
</tr>
|
| 652 |
'cat_ids' => $cat_ids,
|
| 653 |
'widget' => $widget,
|
| 654 |
'TB_iframe' => 1,
|
| 655 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 656 |
|
| 657 |
|
| 658 |
<?php
|
| 671 |
'cat_ids' => '',
|
| 672 |
'widget' => $widget,
|
| 673 |
'TB_iframe' => 1,
|
| 674 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 675 |
<?php echo '</ul>';
|
| 676 |
}
|
| 677 |
}
|
front_end/bigcalendarmonth.php
CHANGED
|
@@ -11,7 +11,7 @@ function big_calendar_month() {
|
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
$query = "SELECT * FROM " . $wpdb->prefix . "spidercalendar_calendar where id=".$calendar_id."";
|
| 13 |
$calendar = $wpdb->query($query);
|
| 14 |
-
|
| 15 |
|
| 16 |
///////////////////////////////////////////////////////////////////////////////////
|
| 17 |
|
|
@@ -431,7 +431,7 @@ min-height: 30px;
|
|
| 431 |
'cat_ids' => $cat_ids,
|
| 432 |
'widget' => $widget,
|
| 433 |
'rand' => $many_sp_calendar,
|
| 434 |
-
),
|
| 435 |
</div>
|
| 436 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;' ?>"
|
| 437 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -447,7 +447,7 @@ min-height: 30px;
|
|
| 447 |
'cat_ids' => $cat_ids,
|
| 448 |
'widget' => $widget,
|
| 449 |
'rand' => $many_sp_calendar,
|
| 450 |
-
),
|
| 451 |
</div>
|
| 452 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;' ?>"
|
| 453 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -462,7 +462,7 @@ min-height: 30px;
|
|
| 462 |
'cat_ids' => $cat_ids,
|
| 463 |
'widget' => $widget,
|
| 464 |
'rand' => $many_sp_calendar,
|
| 465 |
-
),
|
| 466 |
</div>
|
| 467 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 468 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -477,7 +477,7 @@ min-height: 30px;
|
|
| 477 |
'cat_ids' => $cat_ids,
|
| 478 |
'widget' => $widget,
|
| 479 |
'rand' => $many_sp_calendar,
|
| 480 |
-
),
|
| 481 |
</div>
|
| 482 |
</div>
|
| 483 |
|
|
@@ -503,7 +503,7 @@ min-height: 30px;
|
|
| 503 |
'cat_id' => '',
|
| 504 |
'cat_ids' => $cat_ids,
|
| 505 |
'widget' => $widget,
|
| 506 |
-
),
|
| 507 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 508 |
</div>
|
| 509 |
</li>
|
|
@@ -521,7 +521,7 @@ min-height: 30px;
|
|
| 521 |
'cat_id' => '',
|
| 522 |
'cat_ids' => $cat_ids,
|
| 523 |
'widget' => $widget,
|
| 524 |
-
),
|
| 525 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 526 |
</div>
|
| 527 |
</li>
|
|
@@ -538,7 +538,7 @@ min-height: 30px;
|
|
| 538 |
'cat_id' => '',
|
| 539 |
'cat_ids' => $cat_ids,
|
| 540 |
'widget' => $widget,
|
| 541 |
-
),
|
| 542 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 543 |
</div>
|
| 544 |
</li>
|
|
@@ -555,7 +555,7 @@ min-height: 30px;
|
|
| 555 |
'cat_id' => '',
|
| 556 |
'cat_ids' => $cat_ids,
|
| 557 |
'widget' => $widget,
|
| 558 |
-
),
|
| 559 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 560 |
|
| 561 |
</ul>
|
|
@@ -585,7 +585,7 @@ min-height: 30px;
|
|
| 585 |
'cat_id' => '',
|
| 586 |
'cat_ids' => $cat_ids,
|
| 587 |
'widget' => $widget,
|
| 588 |
-
),
|
| 589 |
<span style="font-size:18px;color:#FFF"><?php echo $year - 1; ?></span>
|
| 590 |
</div>
|
| 591 |
</td>
|
|
@@ -608,7 +608,7 @@ min-height: 30px;
|
|
| 608 |
'cat_id' => '',
|
| 609 |
'cat_ids' => $cat_ids,
|
| 610 |
'widget' => $widget,
|
| 611 |
-
),
|
| 612 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◀
|
| 613 |
</a>
|
| 614 |
</td>
|
|
@@ -635,7 +635,7 @@ min-height: 30px;
|
|
| 635 |
'cat_id' => '',
|
| 636 |
'cat_ids' => $cat_ids,
|
| 637 |
'widget' => $widget,
|
| 638 |
-
),
|
| 639 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">▶
|
| 640 |
</a>
|
| 641 |
</td>
|
|
@@ -652,7 +652,7 @@ min-height: 30px;
|
|
| 652 |
'cat_id' => '',
|
| 653 |
'cat_ids' => $cat_ids,
|
| 654 |
'widget' => $widget,
|
| 655 |
-
),
|
| 656 |
<span style="font-size:18px;color:#FFF"><?php echo $year + 1; ?></span>
|
| 657 |
</div>
|
| 658 |
</td>
|
|
@@ -808,7 +808,7 @@ $color=str_replace('#','',$color);
|
|
| 808 |
'tbWidth' => $popup_width,
|
| 809 |
'tbHeight' => $popup_height,
|
| 810 |
'cat_id' => $cat_ids
|
| 811 |
-
),
|
| 812 |
</a>';
|
| 813 |
}
|
| 814 |
else {
|
|
@@ -826,7 +826,7 @@ $color=str_replace('#','',$color);
|
|
| 826 |
'TB_iframe' => 1,
|
| 827 |
'tbWidth' => $popup_width,
|
| 828 |
'tbHeight' => $popup_height,
|
| 829 |
-
),
|
| 830 |
</a>';
|
| 831 |
break;
|
| 832 |
}
|
|
@@ -868,7 +868,7 @@ $color=str_replace('#','',$color);
|
|
| 868 |
'TB_iframe' => 1,
|
| 869 |
'tbWidth' => $popup_width,
|
| 870 |
'tbHeight' => $popup_height,
|
| 871 |
-
),
|
| 872 |
</a>';
|
| 873 |
}
|
| 874 |
else {
|
|
@@ -886,7 +886,7 @@ $color=str_replace('#','',$color);
|
|
| 886 |
'TB_iframe' => 1,
|
| 887 |
'tbWidth' => $popup_width,
|
| 888 |
'tbHeight' => $popup_height,
|
| 889 |
-
),
|
| 890 |
</a>';
|
| 891 |
break;
|
| 892 |
}
|
|
@@ -916,7 +916,7 @@ $color=str_replace('#','',$color);
|
|
| 916 |
$cat_color=category_color($ev_id[$j]);
|
| 917 |
|
| 918 |
if ($r < $number_of_shown_evetns) {
|
| 919 |
-
echo '
|
| 920 |
href="' . add_query_arg(array(
|
| 921 |
'action' => 'spidercalendarbig',
|
| 922 |
'theme_id' => $theme_id,
|
|
@@ -930,7 +930,7 @@ $color=str_replace('#','',$color);
|
|
| 930 |
'TB_iframe' => 1,
|
| 931 |
'tbWidth' => $popup_width,
|
| 932 |
'tbHeight' => $popup_height,
|
| 933 |
-
),
|
| 934 |
</a>';
|
| 935 |
}
|
| 936 |
else {
|
|
@@ -948,7 +948,7 @@ $color=str_replace('#','',$color);
|
|
| 948 |
'TB_iframe' => 1,
|
| 949 |
'tbWidth' => $popup_width,
|
| 950 |
'tbHeight' => $popup_height,
|
| 951 |
-
),
|
| 952 |
</a>';
|
| 953 |
break;
|
| 954 |
}
|
|
@@ -993,7 +993,7 @@ $color=str_replace('#','',$color);
|
|
| 993 |
'TB_iframe' => 1,
|
| 994 |
'tbWidth' => $popup_width,
|
| 995 |
'tbHeight' => $popup_height,
|
| 996 |
-
),
|
| 997 |
</a>';
|
| 998 |
}
|
| 999 |
else {
|
|
@@ -1011,7 +1011,7 @@ $color=str_replace('#','',$color);
|
|
| 1011 |
'TB_iframe' => 1,
|
| 1012 |
'tbWidth' => $popup_width,
|
| 1013 |
'tbHeight' => $popup_height,
|
| 1014 |
-
),
|
| 1015 |
</a>';
|
| 1016 |
break;
|
| 1017 |
}
|
|
@@ -1052,7 +1052,7 @@ $color=str_replace('#','',$color);
|
|
| 1052 |
'TB_iframe' => 1,
|
| 1053 |
'tbWidth' => $popup_width,
|
| 1054 |
'tbHeight' => $popup_height,
|
| 1055 |
-
),
|
| 1056 |
</a>';
|
| 1057 |
}
|
| 1058 |
else {
|
|
@@ -1070,7 +1070,7 @@ $color=str_replace('#','',$color);
|
|
| 1070 |
'TB_iframe' => 1,
|
| 1071 |
'tbWidth' => $popup_width,
|
| 1072 |
'tbHeight' => $popup_height,
|
| 1073 |
-
),
|
| 1074 |
</a>';
|
| 1075 |
break;
|
| 1076 |
}
|
|
@@ -1114,7 +1114,7 @@ if (in_array($i, $array_days)) {
|
|
| 1114 |
'TB_iframe' => 1,
|
| 1115 |
'tbWidth' => $popup_width,
|
| 1116 |
'tbHeight' => $popup_height,
|
| 1117 |
-
),
|
| 1118 |
</a>';
|
| 1119 |
}
|
| 1120 |
else {
|
|
@@ -1131,7 +1131,7 @@ if (in_array($i, $array_days)) {
|
|
| 1131 |
'TB_iframe' => 1,
|
| 1132 |
'tbWidth' => $popup_width,
|
| 1133 |
'tbHeight' => $popup_height,
|
| 1134 |
-
),
|
| 1135 |
</a></p>';
|
| 1136 |
break;
|
| 1137 |
}
|
|
@@ -1283,7 +1283,7 @@ foreach($categories as $category)
|
|
| 1283 |
'cat_id' => $category->id,
|
| 1284 |
'cat_ids' => $cat_ids,
|
| 1285 |
'widget' => $widget,
|
| 1286 |
-
),
|
| 1287 |
|
| 1288 |
|
| 1289 |
<?php }
|
|
@@ -1300,7 +1300,7 @@ if (!empty($categories)) {
|
|
| 1300 |
'cat_id' => '',
|
| 1301 |
'cat_ids' => '',
|
| 1302 |
'widget' => $widget,
|
| 1303 |
-
),
|
| 1304 |
<?php
|
| 1305 |
}
|
| 1306 |
echo '</ul><br><br>';
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
$query = "SELECT * FROM " . $wpdb->prefix . "spidercalendar_calendar where id=".$calendar_id."";
|
| 13 |
$calendar = $wpdb->query($query);
|
| 14 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 15 |
|
| 16 |
///////////////////////////////////////////////////////////////////////////////////
|
| 17 |
|
| 431 |
'cat_ids' => $cat_ids,
|
| 432 |
'widget' => $widget,
|
| 433 |
'rand' => $many_sp_calendar,
|
| 434 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 435 |
</div>
|
| 436 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;' ?>"
|
| 437 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 447 |
'cat_ids' => $cat_ids,
|
| 448 |
'widget' => $widget,
|
| 449 |
'rand' => $many_sp_calendar,
|
| 450 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 451 |
</div>
|
| 452 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;' ?>"
|
| 453 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 462 |
'cat_ids' => $cat_ids,
|
| 463 |
'widget' => $widget,
|
| 464 |
'rand' => $many_sp_calendar,
|
| 465 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 466 |
</div>
|
| 467 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 468 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 477 |
'cat_ids' => $cat_ids,
|
| 478 |
'widget' => $widget,
|
| 479 |
'rand' => $many_sp_calendar,
|
| 480 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 481 |
</div>
|
| 482 |
</div>
|
| 483 |
|
| 503 |
'cat_id' => '',
|
| 504 |
'cat_ids' => $cat_ids,
|
| 505 |
'widget' => $widget,
|
| 506 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 507 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 508 |
</div>
|
| 509 |
</li>
|
| 521 |
'cat_id' => '',
|
| 522 |
'cat_ids' => $cat_ids,
|
| 523 |
'widget' => $widget,
|
| 524 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">
|
| 525 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 526 |
</div>
|
| 527 |
</li>
|
| 538 |
'cat_id' => '',
|
| 539 |
'cat_ids' => $cat_ids,
|
| 540 |
'widget' => $widget,
|
| 541 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 542 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 543 |
</div>
|
| 544 |
</li>
|
| 555 |
'cat_id' => '',
|
| 556 |
'cat_ids' => $cat_ids,
|
| 557 |
'widget' => $widget,
|
| 558 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 559 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 560 |
|
| 561 |
</ul>
|
| 585 |
'cat_id' => '',
|
| 586 |
'cat_ids' => $cat_ids,
|
| 587 |
'widget' => $widget,
|
| 588 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:100%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 589 |
<span style="font-size:18px;color:#FFF"><?php echo $year - 1; ?></span>
|
| 590 |
</div>
|
| 591 |
</td>
|
| 608 |
'cat_id' => '',
|
| 609 |
'cat_ids' => $cat_ids,
|
| 610 |
'widget' => $widget,
|
| 611 |
+
), $site_url);
|
| 612 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◀
|
| 613 |
</a>
|
| 614 |
</td>
|
| 635 |
'cat_id' => '',
|
| 636 |
'cat_ids' => $cat_ids,
|
| 637 |
'widget' => $widget,
|
| 638 |
+
), $site_url);
|
| 639 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">▶
|
| 640 |
</a>
|
| 641 |
</td>
|
| 652 |
'cat_id' => '',
|
| 653 |
'cat_ids' => $cat_ids,
|
| 654 |
'widget' => $widget,
|
| 655 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:100%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 656 |
<span style="font-size:18px;color:#FFF"><?php echo $year + 1; ?></span>
|
| 657 |
</div>
|
| 658 |
</td>
|
| 808 |
'tbWidth' => $popup_width,
|
| 809 |
'tbHeight' => $popup_height,
|
| 810 |
'cat_id' => $cat_ids
|
| 811 |
+
), $site_url) . '"><b>' . style($ev_title[$j],$cat_color) . '</b>
|
| 812 |
</a>';
|
| 813 |
}
|
| 814 |
else {
|
| 826 |
'TB_iframe' => 1,
|
| 827 |
'tbWidth' => $popup_width,
|
| 828 |
'tbHeight' => $popup_height,
|
| 829 |
+
), $site_url) . '"><b>' . __('See more', 'sp_calendar') . '</b>
|
| 830 |
</a>';
|
| 831 |
break;
|
| 832 |
}
|
| 868 |
'TB_iframe' => 1,
|
| 869 |
'tbWidth' => $popup_width,
|
| 870 |
'tbHeight' => $popup_height,
|
| 871 |
+
), $site_url) . '"><b>' . style($ev_title[$j],$cat_color) . '</b>
|
| 872 |
</a>';
|
| 873 |
}
|
| 874 |
else {
|
| 886 |
'TB_iframe' => 1,
|
| 887 |
'tbWidth' => $popup_width,
|
| 888 |
'tbHeight' => $popup_height,
|
| 889 |
+
), $site_url) . '"><b>' . __('See more', 'sp_calendar') . '</b>
|
| 890 |
</a>';
|
| 891 |
break;
|
| 892 |
}
|
| 916 |
$cat_color=category_color($ev_id[$j]);
|
| 917 |
|
| 918 |
if ($r < $number_of_shown_evetns) {
|
| 919 |
+
echo ' <a class="thickbox-previewbigcalendar' . $many_sp_calendar . '" style="background:none; color:' . $event_title_color . ';"
|
| 920 |
href="' . add_query_arg(array(
|
| 921 |
'action' => 'spidercalendarbig',
|
| 922 |
'theme_id' => $theme_id,
|
| 930 |
'TB_iframe' => 1,
|
| 931 |
'tbWidth' => $popup_width,
|
| 932 |
'tbHeight' => $popup_height,
|
| 933 |
+
), $site_url) . '"><b>' . style($ev_title[$j],$cat_color) . '</b>
|
| 934 |
</a>';
|
| 935 |
}
|
| 936 |
else {
|
| 948 |
'TB_iframe' => 1,
|
| 949 |
'tbWidth' => $popup_width,
|
| 950 |
'tbHeight' => $popup_height,
|
| 951 |
+
), $site_url) . '"><b>' . __('See more', 'sp_calendar') . '</b>
|
| 952 |
</a>';
|
| 953 |
break;
|
| 954 |
}
|
| 993 |
'TB_iframe' => 1,
|
| 994 |
'tbWidth' => $popup_width,
|
| 995 |
'tbHeight' => $popup_height,
|
| 996 |
+
), $site_url) . '"><b>' . style($ev_title[$j],$cat_color) . '</b>
|
| 997 |
</a>';
|
| 998 |
}
|
| 999 |
else {
|
| 1011 |
'TB_iframe' => 1,
|
| 1012 |
'tbWidth' => $popup_width,
|
| 1013 |
'tbHeight' => $popup_height,
|
| 1014 |
+
), $site_url) . '"><b>' . __('See more', 'sp_calendar') . '</b>
|
| 1015 |
</a>';
|
| 1016 |
break;
|
| 1017 |
}
|
| 1052 |
'TB_iframe' => 1,
|
| 1053 |
'tbWidth' => $popup_width,
|
| 1054 |
'tbHeight' => $popup_height,
|
| 1055 |
+
), $site_url) . '"><b>' . style($ev_title[$j],$cat_color) . '</b>
|
| 1056 |
</a>';
|
| 1057 |
}
|
| 1058 |
else {
|
| 1070 |
'TB_iframe' => 1,
|
| 1071 |
'tbWidth' => $popup_width,
|
| 1072 |
'tbHeight' => $popup_height,
|
| 1073 |
+
), $site_url) . '"><b>' . __('See more', 'sp_calendar') . '</b>
|
| 1074 |
</a>';
|
| 1075 |
break;
|
| 1076 |
}
|
| 1114 |
'TB_iframe' => 1,
|
| 1115 |
'tbWidth' => $popup_width,
|
| 1116 |
'tbHeight' => $popup_height,
|
| 1117 |
+
), $site_url) . '"><b>' . style($ev_title[$j],$cat_color) . '</b>
|
| 1118 |
</a>';
|
| 1119 |
}
|
| 1120 |
else {
|
| 1131 |
'TB_iframe' => 1,
|
| 1132 |
'tbWidth' => $popup_width,
|
| 1133 |
'tbHeight' => $popup_height,
|
| 1134 |
+
), $site_url) . '"><b>' . __('See more', 'sp_calendar') . '</b>
|
| 1135 |
</a></p>';
|
| 1136 |
break;
|
| 1137 |
}
|
| 1283 |
'cat_id' => $category->id,
|
| 1284 |
'cat_ids' => $cat_ids,
|
| 1285 |
'widget' => $widget,
|
| 1286 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 1287 |
|
| 1288 |
|
| 1289 |
<?php }
|
| 1300 |
'cat_id' => '',
|
| 1301 |
'cat_ids' => '',
|
| 1302 |
'widget' => $widget,
|
| 1303 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 1304 |
<?php
|
| 1305 |
}
|
| 1306 |
echo '</ul><br><br>';
|
front_end/bigcalendarmonth_widget.php
CHANGED
|
@@ -9,7 +9,7 @@ function big_calendar_month_widget() {
|
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
-
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
|
|
@@ -321,7 +321,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 321 |
'cat_ids' => $cat_ids,
|
| 322 |
'widget' => $widget,
|
| 323 |
'rand' => $many_sp_calendar,
|
| 324 |
-
),
|
| 325 |
</div>
|
| 326 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 327 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -336,7 +336,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 336 |
'cat_id' => '',
|
| 337 |
'cat_ids' => $cat_ids,
|
| 338 |
'widget' => $widget,
|
| 339 |
-
),
|
| 340 |
</div>
|
| 341 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 342 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -350,7 +350,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 350 |
'cat_id' => '',
|
| 351 |
'cat_ids' => $cat_ids,
|
| 352 |
'widget' => $widget,
|
| 353 |
-
),
|
| 354 |
</div>
|
| 355 |
<div class="views" style="margin-left: 0px;margin-right: 2px;<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 356 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -364,7 +364,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 364 |
'cat_id' => '',
|
| 365 |
'cat_ids' => $cat_ids,
|
| 366 |
'widget' => $widget,
|
| 367 |
-
),
|
| 368 |
</div>
|
| 369 |
</div>
|
| 370 |
</td>
|
|
@@ -397,7 +397,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 397 |
'cat_id' => '',
|
| 398 |
'cat_ids' => $cat_ids,
|
| 399 |
'widget' => $widget,
|
| 400 |
-
),
|
| 401 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 402 |
</a>
|
| 403 |
</td>
|
|
@@ -425,7 +425,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 425 |
'cat_id' => '',
|
| 426 |
'cat_ids' => $cat_ids,
|
| 427 |
'widget' => $widget,
|
| 428 |
-
),
|
| 429 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 430 |
</a>
|
| 431 |
</td>
|
|
@@ -543,7 +543,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 543 |
'TB_iframe' => 1,
|
| 544 |
'tbWidth' => $popup_width,
|
| 545 |
'tbHeight' => $popup_height,
|
| 546 |
-
),
|
| 547 |
</a>
|
| 548 |
</div>
|
| 549 |
</td>';
|
|
@@ -567,7 +567,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 567 |
'TB_iframe' => 1,
|
| 568 |
'tbWidth' => $popup_width,
|
| 569 |
'tbHeight' => $popup_height,
|
| 570 |
-
),
|
| 571 |
</a>';
|
| 572 |
echo '<table style="width:100%; border:0;margin: 0"><tr>';
|
| 573 |
foreach($categ_color as $color){
|
|
@@ -593,7 +593,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 593 |
'TB_iframe' => 1,
|
| 594 |
'tbWidth' => $popup_width,
|
| 595 |
'tbHeight' => $popup_height,
|
| 596 |
-
),
|
| 597 |
</a>';
|
| 598 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 599 |
foreach($categ_color as $color){
|
|
@@ -631,7 +631,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 631 |
'tbWidth' => $popup_width,
|
| 632 |
'tbHeight' => $popup_height,
|
| 633 |
'cat_id' => $cat_ids
|
| 634 |
-
),
|
| 635 |
</a>';
|
| 636 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 637 |
foreach($categ_color as $color){
|
|
@@ -658,7 +658,7 @@ $cat_ids = substr($cat_ids, 0,-1);
|
|
| 658 |
'tbWidth' => $popup_width,
|
| 659 |
'tbHeight' => $popup_height,
|
| 660 |
'cat_id' => $cat_ids
|
| 661 |
-
),
|
| 662 |
</a>';
|
| 663 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 664 |
foreach($categ_color as $color){
|
|
@@ -697,7 +697,7 @@ if (in_array ($i,$array_days)) {
|
|
| 697 |
'tbWidth' => $popup_width,
|
| 698 |
'tbHeight' => $popup_height,
|
| 699 |
'cat_id' => $cat_ids
|
| 700 |
-
),
|
| 701 |
</a>';
|
| 702 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 703 |
foreach($categ_color as $color){
|
|
@@ -740,7 +740,7 @@ if (in_array ($i,$array_days)) {
|
|
| 740 |
'tbWidth' => $popup_width,
|
| 741 |
'tbHeight' => $popup_height,
|
| 742 |
'cat_id' => $cat_ids
|
| 743 |
-
),
|
| 744 |
</a>';
|
| 745 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 746 |
foreach($categ_color as $color){
|
|
@@ -767,7 +767,7 @@ if (in_array ($i,$array_days)) {
|
|
| 767 |
'tbWidth' => $popup_width,
|
| 768 |
'tbHeight' => $popup_height,
|
| 769 |
'cat_id' => $cat_ids
|
| 770 |
-
),
|
| 771 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 772 |
foreach($categ_color as $color){
|
| 773 |
echo '<td id="cat_width" style="border:0; border-top:2px solid #'.$color->color.'; display:table-cell;"></td>';
|
|
@@ -802,7 +802,7 @@ if (in_array ($i,$array_days)) {
|
|
| 802 |
'tbWidth' => $popup_width,
|
| 803 |
'tbHeight' => $popup_height,
|
| 804 |
'cat_id' => $cat_ids
|
| 805 |
-
),
|
| 806 |
</a>';
|
| 807 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 808 |
foreach($categ_color as $color){
|
|
@@ -828,7 +828,7 @@ if (in_array ($i,$array_days)) {
|
|
| 828 |
'tbWidth' => $popup_width,
|
| 829 |
'tbHeight' => $popup_height,
|
| 830 |
'cat_id' => $cat_ids
|
| 831 |
-
),
|
| 832 |
';
|
| 833 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 834 |
foreach($categ_color as $color){
|
|
@@ -875,7 +875,7 @@ if (in_array ($i,$array_days)) {
|
|
| 875 |
'cat_id' => '',
|
| 876 |
'cat_ids' => $cat_ids,
|
| 877 |
'TB_iframe' => 1,
|
| 878 |
-
),
|
| 879 |
<?php echo ($year - 1); ?>
|
| 880 |
</td>
|
| 881 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
|
@@ -894,7 +894,7 @@ if (in_array ($i,$array_days)) {
|
|
| 894 |
'cat_id' => '',
|
| 895 |
'cat_ids' => $cat_ids,
|
| 896 |
'TB_iframe' => 1,
|
| 897 |
-
),
|
| 898 |
<?php echo ($year + 1); ?>
|
| 899 |
</td>
|
| 900 |
</tr>
|
|
@@ -972,7 +972,7 @@ foreach($categories as $category)
|
|
| 972 |
'cat_id' => $category->id,
|
| 973 |
'cat_ids' => $cat_ids,
|
| 974 |
'widget' => $widget,
|
| 975 |
-
),
|
| 976 |
<?php
|
| 977 |
}
|
| 978 |
if (!empty($categories)) {
|
|
@@ -988,7 +988,7 @@ if (!empty($categories)) {
|
|
| 988 |
'cat_id' => '',
|
| 989 |
'cat_ids' => '',
|
| 990 |
'widget' => $widget,
|
| 991 |
-
),
|
| 992 |
<?php echo '</ul><br><br>';
|
| 993 |
}
|
| 994 |
die();
|
| 9 |
$date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 13 |
///////////////////////////////////////////////////////////////////////////////////
|
| 14 |
|
| 15 |
|
| 321 |
'cat_ids' => $cat_ids,
|
| 322 |
'widget' => $widget,
|
| 323 |
'rand' => $many_sp_calendar,
|
| 324 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 325 |
</div>
|
| 326 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 327 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 336 |
'cat_id' => '',
|
| 337 |
'cat_ids' => $cat_ids,
|
| 338 |
'widget' => $widget,
|
| 339 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 340 |
</div>
|
| 341 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 342 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 350 |
'cat_id' => '',
|
| 351 |
'cat_ids' => $cat_ids,
|
| 352 |
'widget' => $widget,
|
| 353 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 354 |
</div>
|
| 355 |
<div class="views" style="margin-left: 0px;margin-right: 2px;<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 356 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 364 |
'cat_id' => '',
|
| 365 |
'cat_ids' => $cat_ids,
|
| 366 |
'widget' => $widget,
|
| 367 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="position:relative;top:15%;color:<?php echo $text_color_month; ?>;"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 368 |
</div>
|
| 369 |
</div>
|
| 370 |
</td>
|
| 397 |
'cat_id' => '',
|
| 398 |
'cat_ids' => $cat_ids,
|
| 399 |
'widget' => $widget,
|
| 400 |
+
), $site_url);
|
| 401 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 402 |
</a>
|
| 403 |
</td>
|
| 425 |
'cat_id' => '',
|
| 426 |
'cat_ids' => $cat_ids,
|
| 427 |
'widget' => $widget,
|
| 428 |
+
), $site_url);
|
| 429 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 430 |
</a>
|
| 431 |
</td>
|
| 543 |
'TB_iframe' => 1,
|
| 544 |
'tbWidth' => $popup_width,
|
| 545 |
'tbHeight' => $popup_height,
|
| 546 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 547 |
</a>
|
| 548 |
</div>
|
| 549 |
</td>';
|
| 567 |
'TB_iframe' => 1,
|
| 568 |
'tbWidth' => $popup_width,
|
| 569 |
'tbHeight' => $popup_height,
|
| 570 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 571 |
</a>';
|
| 572 |
echo '<table style="width:100%; border:0;margin: 0"><tr>';
|
| 573 |
foreach($categ_color as $color){
|
| 593 |
'TB_iframe' => 1,
|
| 594 |
'tbWidth' => $popup_width,
|
| 595 |
'tbHeight' => $popup_height,
|
| 596 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 597 |
</a>';
|
| 598 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 599 |
foreach($categ_color as $color){
|
| 631 |
'tbWidth' => $popup_width,
|
| 632 |
'tbHeight' => $popup_height,
|
| 633 |
'cat_id' => $cat_ids
|
| 634 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 635 |
</a>';
|
| 636 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 637 |
foreach($categ_color as $color){
|
| 658 |
'tbWidth' => $popup_width,
|
| 659 |
'tbHeight' => $popup_height,
|
| 660 |
'cat_id' => $cat_ids
|
| 661 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 662 |
</a>';
|
| 663 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 664 |
foreach($categ_color as $color){
|
| 697 |
'tbWidth' => $popup_width,
|
| 698 |
'tbHeight' => $popup_height,
|
| 699 |
'cat_id' => $cat_ids
|
| 700 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 701 |
</a>';
|
| 702 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 703 |
foreach($categ_color as $color){
|
| 740 |
'tbWidth' => $popup_width,
|
| 741 |
'tbHeight' => $popup_height,
|
| 742 |
'cat_id' => $cat_ids
|
| 743 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 744 |
</a>';
|
| 745 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 746 |
foreach($categ_color as $color){
|
| 767 |
'tbWidth' => $popup_width,
|
| 768 |
'tbHeight' => $popup_height,
|
| 769 |
'cat_id' => $cat_ids
|
| 770 |
+
), $site_url) . '"><b>' . $i . '</b></a>';
|
| 771 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 772 |
foreach($categ_color as $color){
|
| 773 |
echo '<td id="cat_width" style="border:0; border-top:2px solid #'.$color->color.'; display:table-cell;"></td>';
|
| 802 |
'tbWidth' => $popup_width,
|
| 803 |
'tbHeight' => $popup_height,
|
| 804 |
'cat_id' => $cat_ids
|
| 805 |
+
), $site_url) . '"><b>' . $i . '</b>
|
| 806 |
</a>';
|
| 807 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 808 |
foreach($categ_color as $color){
|
| 828 |
'tbWidth' => $popup_width,
|
| 829 |
'tbHeight' => $popup_height,
|
| 830 |
'cat_id' => $cat_ids
|
| 831 |
+
), $site_url) . '"><b>' . $i . '</b></a>
|
| 832 |
';
|
| 833 |
echo '<table style="width:100%; border:0;margin:0;"><tr>';
|
| 834 |
foreach($categ_color as $color){
|
| 875 |
'cat_id' => '',
|
| 876 |
'cat_ids' => $cat_ids,
|
| 877 |
'TB_iframe' => 1,
|
| 878 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>">
|
| 879 |
<?php echo ($year - 1); ?>
|
| 880 |
</td>
|
| 881 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
| 894 |
'cat_id' => '',
|
| 895 |
'cat_ids' => $cat_ids,
|
| 896 |
'TB_iframe' => 1,
|
| 897 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>;color:<?php echo $year_font_color; ?>">
|
| 898 |
<?php echo ($year + 1); ?>
|
| 899 |
</td>
|
| 900 |
</tr>
|
| 972 |
'cat_id' => $category->id,
|
| 973 |
'cat_ids' => $cat_ids,
|
| 974 |
'widget' => $widget,
|
| 975 |
+
), $site_url);?>','<?php echo $many_sp_calendar ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 976 |
<?php
|
| 977 |
}
|
| 978 |
if (!empty($categories)) {
|
| 988 |
'cat_id' => '',
|
| 989 |
'cat_ids' => '',
|
| 990 |
'widget' => $widget,
|
| 991 |
+
), $site_url);?>','<?php echo $many_sp_calendar ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 992 |
<?php echo '</ul><br><br>';
|
| 993 |
}
|
| 994 |
die();
|
front_end/bigcalendarweek.php
CHANGED
|
@@ -10,7 +10,7 @@ function big_calendar_week() {
|
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
$months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
|
| 13 |
-
|
| 14 |
///////////////////////////////////////////////////////////////////////////////////
|
| 15 |
|
| 16 |
|
|
@@ -526,7 +526,7 @@ position: relative;
|
|
| 526 |
'cat_ids' => $cat_ids,
|
| 527 |
'widget' => $widget,
|
| 528 |
'rand' => $many_sp_calendar,
|
| 529 |
-
),
|
| 530 |
</div>
|
| 531 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 532 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -542,7 +542,7 @@ position: relative;
|
|
| 542 |
'cat_ids' => $cat_ids,
|
| 543 |
'widget' => $widget,
|
| 544 |
'rand' => $many_sp_calendar,
|
| 545 |
-
),
|
| 546 |
</div>
|
| 547 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;' ?>"
|
| 548 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -557,7 +557,7 @@ position: relative;
|
|
| 557 |
'cat_ids' => $cat_ids,
|
| 558 |
'widget' => $widget,
|
| 559 |
'rand' => $many_sp_calendar,
|
| 560 |
-
),
|
| 561 |
</div>
|
| 562 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 563 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -572,7 +572,7 @@ position: relative;
|
|
| 572 |
'cat_ids' => $cat_ids,
|
| 573 |
'widget' => $widget,
|
| 574 |
'rand' => $many_sp_calendar,
|
| 575 |
-
),
|
| 576 |
</div>
|
| 577 |
</div>
|
| 578 |
<div id="views_tabs_select" style="display:none" >
|
|
@@ -597,7 +597,7 @@ position: relative;
|
|
| 597 |
'cat_id' => '',
|
| 598 |
'cat_ids' => $cat_ids,
|
| 599 |
'widget' => $widget,
|
| 600 |
-
),
|
| 601 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 602 |
</div>
|
| 603 |
</li>
|
|
@@ -615,7 +615,7 @@ position: relative;
|
|
| 615 |
'cat_id' => '',
|
| 616 |
'cat_ids' => $cat_ids,
|
| 617 |
'widget' => $widget,
|
| 618 |
-
),
|
| 619 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 620 |
</div>
|
| 621 |
</li>
|
|
@@ -632,7 +632,7 @@ position: relative;
|
|
| 632 |
'cat_id' => '',
|
| 633 |
'cat_ids' => $cat_ids,
|
| 634 |
'widget' => $widget,
|
| 635 |
-
),
|
| 636 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 637 |
</div>
|
| 638 |
</li>
|
|
@@ -649,7 +649,7 @@ position: relative;
|
|
| 649 |
'cat_id' => '',
|
| 650 |
'cat_ids' => $cat_ids,
|
| 651 |
'widget' => $widget,
|
| 652 |
-
),
|
| 653 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 654 |
|
| 655 |
</ul>
|
|
@@ -683,7 +683,7 @@ position: relative;
|
|
| 683 |
'cat_id' => '',
|
| 684 |
'cat_ids' => $cat_ids,
|
| 685 |
'widget' => $widget,
|
| 686 |
-
),
|
| 687 |
<span style="font-size:18px; color:#FFF"><?php echo $year - 1; ?></span>
|
| 688 |
</div>
|
| 689 |
</td>
|
|
@@ -701,7 +701,7 @@ position: relative;
|
|
| 701 |
'cat_id' => '',
|
| 702 |
'cat_ids' => $cat_ids,
|
| 703 |
'widget' => $widget,
|
| 704 |
-
),
|
| 705 |
</a>
|
| 706 |
</td>
|
| 707 |
<?php
|
|
@@ -730,7 +730,7 @@ position: relative;
|
|
| 730 |
'cat_id' => '',
|
| 731 |
'cat_ids' => $cat_ids,
|
| 732 |
'widget' => $widget,
|
| 733 |
-
),
|
| 734 |
</a>
|
| 735 |
</td>
|
| 736 |
<td width="15%">
|
|
@@ -747,7 +747,7 @@ position: relative;
|
|
| 747 |
'cat_id' => '',
|
| 748 |
'cat_ids' => $cat_ids,
|
| 749 |
'widget' => $widget,
|
| 750 |
-
),
|
| 751 |
<span style="font-size:18px; color:#FFF"><?php echo $year + 1; ?></span>
|
| 752 |
</div>
|
| 753 |
</td>
|
|
@@ -883,7 +883,7 @@ position: relative;
|
|
| 883 |
'TB_iframe' => 1,
|
| 884 |
'tbWidth' => $popup_width,
|
| 885 |
'tbHeight' => $popup_height,
|
| 886 |
-
),
|
| 887 |
</a>
|
| 888 |
</td>
|
| 889 |
</tr>
|
|
@@ -1019,7 +1019,7 @@ foreach($categories as $category)
|
|
| 1019 |
'cat_id' => $category->id,
|
| 1020 |
'cat_ids' => $cat_ids,
|
| 1021 |
'widget' => $widget,
|
| 1022 |
-
),
|
| 1023 |
|
| 1024 |
|
| 1025 |
<?php
|
|
@@ -1038,7 +1038,7 @@ if (!empty($categories)) {
|
|
| 1038 |
'cat_id' => '',
|
| 1039 |
'cat_ids' => '',
|
| 1040 |
'widget' => $widget,
|
| 1041 |
-
),
|
| 1042 |
<?php echo '</ul>';
|
| 1043 |
}
|
| 1044 |
}
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
$months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
|
| 13 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 14 |
///////////////////////////////////////////////////////////////////////////////////
|
| 15 |
|
| 16 |
|
| 526 |
'cat_ids' => $cat_ids,
|
| 527 |
'widget' => $widget,
|
| 528 |
'rand' => $many_sp_calendar,
|
| 529 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 530 |
</div>
|
| 531 |
<div class="views" style="<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 532 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 542 |
'cat_ids' => $cat_ids,
|
| 543 |
'widget' => $widget,
|
| 544 |
'rand' => $many_sp_calendar,
|
| 545 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 546 |
</div>
|
| 547 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist') echo 'background-color:' . $bg_top . ';top:0;' ?>"
|
| 548 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 557 |
'cat_ids' => $cat_ids,
|
| 558 |
'widget' => $widget,
|
| 559 |
'rand' => $many_sp_calendar,
|
| 560 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 561 |
</div>
|
| 562 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth') echo 'background-color:' . $bg_top . ';top:0;'; ?>"
|
| 563 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 572 |
'cat_ids' => $cat_ids,
|
| 573 |
'widget' => $widget,
|
| 574 |
'rand' => $many_sp_calendar,
|
| 575 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="color:<?php echo $views_tabs_text_color; ?>;font-size:<?php echo $views_tabs_font_size; ?>px"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 576 |
</div>
|
| 577 |
</div>
|
| 578 |
<div id="views_tabs_select" style="display:none" >
|
| 597 |
'cat_id' => '',
|
| 598 |
'cat_ids' => $cat_ids,
|
| 599 |
'widget' => $widget,
|
| 600 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 601 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Day</span>
|
| 602 |
</div>
|
| 603 |
</li>
|
| 615 |
'cat_id' => '',
|
| 616 |
'cat_ids' => $cat_ids,
|
| 617 |
'widget' => $widget,
|
| 618 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">
|
| 619 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Week</span>
|
| 620 |
</div>
|
| 621 |
</li>
|
| 632 |
'cat_id' => '',
|
| 633 |
'cat_ids' => $cat_ids,
|
| 634 |
'widget' => $widget,
|
| 635 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 636 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">List</span>
|
| 637 |
</div>
|
| 638 |
</li>
|
| 649 |
'cat_id' => '',
|
| 650 |
'cat_ids' => $cat_ids,
|
| 651 |
'widget' => $widget,
|
| 652 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" >
|
| 653 |
<span style="position:relative;top:25%;color:<?php echo $views_tabs_text_color ?>;font-size:<?php echo $views_tabs_font_size ?>px">Month</span></div></li>
|
| 654 |
|
| 655 |
</ul>
|
| 683 |
'cat_id' => '',
|
| 684 |
'cat_ids' => $cat_ids,
|
| 685 |
'widget' => $widget,
|
| 686 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:100%;background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 687 |
<span style="font-size:18px; color:#FFF"><?php echo $year - 1; ?></span>
|
| 688 |
</div>
|
| 689 |
</td>
|
| 701 |
'cat_id' => '',
|
| 702 |
'cat_ids' => $cat_ids,
|
| 703 |
'widget' => $widget,
|
| 704 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◀
|
| 705 |
</a>
|
| 706 |
</td>
|
| 707 |
<?php
|
| 730 |
'cat_id' => '',
|
| 731 |
'cat_ids' => $cat_ids,
|
| 732 |
'widget' => $widget,
|
| 733 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">▶
|
| 734 |
</a>
|
| 735 |
</td>
|
| 736 |
<td width="15%">
|
| 747 |
'cat_id' => '',
|
| 748 |
'cat_ids' => $cat_ids,
|
| 749 |
'widget' => $widget,
|
| 750 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="text-align:center; cursor:pointer; width:100%; background-color:#000000; filter:alpha(opacity=30); opacity:0.3;">
|
| 751 |
<span style="font-size:18px; color:#FFF"><?php echo $year + 1; ?></span>
|
| 752 |
</div>
|
| 753 |
</td>
|
| 883 |
'TB_iframe' => 1,
|
| 884 |
'tbWidth' => $popup_width,
|
| 885 |
'tbHeight' => $popup_height,
|
| 886 |
+
), $site_url) . '"><b>' . $ev_title[$j] . '</b>
|
| 887 |
</a>
|
| 888 |
</td>
|
| 889 |
</tr>
|
| 1019 |
'cat_id' => $category->id,
|
| 1020 |
'cat_ids' => $cat_ids,
|
| 1021 |
'widget' => $widget,
|
| 1022 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 1023 |
|
| 1024 |
|
| 1025 |
<?php
|
| 1038 |
'cat_id' => '',
|
| 1039 |
'cat_ids' => '',
|
| 1040 |
'widget' => $widget,
|
| 1041 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 1042 |
<?php echo '</ul>';
|
| 1043 |
}
|
| 1044 |
}
|
front_end/bigcalendarweek_widget.php
CHANGED
|
@@ -10,7 +10,7 @@ function big_calendar_week_widget() {
|
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
$months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
|
| 13 |
-
|
| 14 |
///////////////////////////////////////////////////////////////////////////////////
|
| 15 |
|
| 16 |
if(isset($_GET['cat_id']))
|
|
@@ -352,7 +352,7 @@ position: relative;
|
|
| 352 |
'cat_ids' => $cat_ids,
|
| 353 |
'widget' => $widget,
|
| 354 |
'TB_iframe' => 1,
|
| 355 |
-
),
|
| 356 |
</div>
|
| 357 |
<div class="views" style="margin-left: 3px;margin-right: 1px;<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 358 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -368,7 +368,7 @@ position: relative;
|
|
| 368 |
'cat_ids' => $cat_ids,
|
| 369 |
'widget' => $widget,
|
| 370 |
'TB_iframe' => 1,
|
| 371 |
-
),
|
| 372 |
</div>
|
| 373 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 374 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
|
@@ -383,7 +383,7 @@ position: relative;
|
|
| 383 |
'cat_ids' => $cat_ids,
|
| 384 |
'widget' => $widget,
|
| 385 |
'TB_iframe' => 1,
|
| 386 |
-
),
|
| 387 |
</div>
|
| 388 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 389 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
|
@@ -398,7 +398,7 @@ position: relative;
|
|
| 398 |
'cat_ids' => $cat_ids,
|
| 399 |
'widget' => $widget,
|
| 400 |
'TB_iframe' => 1,
|
| 401 |
-
),
|
| 402 |
</div>
|
| 403 |
</div>
|
| 404 |
</td>
|
|
@@ -433,7 +433,7 @@ position: relative;
|
|
| 433 |
'cat_ids' => $cat_ids,
|
| 434 |
'widget' => $widget,
|
| 435 |
'TB_iframe' => 1,
|
| 436 |
-
),
|
| 437 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 438 |
</a>
|
| 439 |
</td>
|
|
@@ -470,7 +470,7 @@ position: relative;
|
|
| 470 |
'cat_ids' => $cat_ids,
|
| 471 |
'widget' => $widget,
|
| 472 |
'TB_iframe' => 1,
|
| 473 |
-
),
|
| 474 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 475 |
</a>
|
| 476 |
</td>
|
|
@@ -595,7 +595,7 @@ position: relative;
|
|
| 595 |
'TB_iframe' => 1,
|
| 596 |
'tbWidth' => $popup_width,
|
| 597 |
'tbHeight' => $popup_height,
|
| 598 |
-
),
|
| 599 |
</a>
|
| 600 |
</td>
|
| 601 |
</tr>
|
|
@@ -632,7 +632,7 @@ position: relative;
|
|
| 632 |
'cat_id' => '',
|
| 633 |
'cat_ids' => $cat_ids,
|
| 634 |
'TB_iframe' => 1,
|
| 635 |
-
),
|
| 636 |
<?php echo ($year - 1); ?>
|
| 637 |
</td>
|
| 638 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
|
@@ -652,7 +652,7 @@ position: relative;
|
|
| 652 |
'cat_id' => '',
|
| 653 |
'cat_ids' => $cat_ids,
|
| 654 |
'TB_iframe' => 1,
|
| 655 |
-
),
|
| 656 |
<?php echo ($year + 1); ?>
|
| 657 |
</td>
|
| 658 |
</tr>
|
|
@@ -728,7 +728,7 @@ foreach($categories as $category)
|
|
| 728 |
'cat_ids' => $cat_ids,
|
| 729 |
'widget' => $widget,
|
| 730 |
'TB_iframe' => 1,
|
| 731 |
-
),
|
| 732 |
<?php
|
| 733 |
}
|
| 734 |
if (!empty($categories)) {
|
|
@@ -746,7 +746,7 @@ if (!empty($categories)) {
|
|
| 746 |
'cat_ids' => '',
|
| 747 |
'widget' => $widget,
|
| 748 |
'TB_iframe' => 1,
|
| 749 |
-
),
|
| 750 |
<?php echo '</ul>';
|
| 751 |
}
|
| 752 |
}
|
| 10 |
$view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
|
| 11 |
$path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
|
| 12 |
$months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
|
| 13 |
+
$site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
|
| 14 |
///////////////////////////////////////////////////////////////////////////////////
|
| 15 |
|
| 16 |
if(isset($_GET['cat_id']))
|
| 352 |
'cat_ids' => $cat_ids,
|
| 353 |
'widget' => $widget,
|
| 354 |
'TB_iframe' => 1,
|
| 355 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Day', 'sp_calendar'); ?></span>
|
| 356 |
</div>
|
| 357 |
<div class="views" style="margin-left: 3px;margin-right: 1px;<?php if (!in_array('week', $views) AND $defaultview != 'week') echo 'display:none;'; if ($view == 'bigcalendarweek_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 358 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 368 |
'cat_ids' => $cat_ids,
|
| 369 |
'widget' => $widget,
|
| 370 |
'TB_iframe' => 1,
|
| 371 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Week', 'sp_calendar'); ?></span>
|
| 372 |
</div>
|
| 373 |
<div class="views" style="<?php if (!in_array('list', $views) AND $defaultview != 'list') echo 'display:none;'; if ($view == 'bigcalendarlist_widget') echo 'background-color:' . $bg . ';height:28px;top:0;' ?>"
|
| 374 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar ?>', '<?php echo add_query_arg(array(
|
| 383 |
'cat_ids' => $cat_ids,
|
| 384 |
'widget' => $widget,
|
| 385 |
'TB_iframe' => 1,
|
| 386 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('List', 'sp_calendar'); ?></span>
|
| 387 |
</div>
|
| 388 |
<div class="views" style="<?php if (!in_array('month', $views) AND $defaultview != 'month') echo 'display:none;'; if ($view == 'bigcalendarmonth_widget') echo 'background-color:' . $bg . ';height:28px;top:0;'; ?>"
|
| 389 |
onclick="showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>', '<?php echo add_query_arg(array(
|
| 398 |
'cat_ids' => $cat_ids,
|
| 399 |
'widget' => $widget,
|
| 400 |
'TB_iframe' => 1,
|
| 401 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" ><span style="line-height: 2;color:<?php echo $text_color_month; ?>;"><?php echo __('Month', 'sp_calendar'); ?></span>
|
| 402 |
</div>
|
| 403 |
</div>
|
| 404 |
</td>
|
| 433 |
'cat_ids' => $cat_ids,
|
| 434 |
'widget' => $widget,
|
| 435 |
'TB_iframe' => 1,
|
| 436 |
+
), $site_url);
|
| 437 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">◄
|
| 438 |
</a>
|
| 439 |
</td>
|
| 470 |
'cat_ids' => $cat_ids,
|
| 471 |
'widget' => $widget,
|
| 472 |
'TB_iframe' => 1,
|
| 473 |
+
), $site_url);
|
| 474 |
?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')">►
|
| 475 |
</a>
|
| 476 |
</td>
|
| 595 |
'TB_iframe' => 1,
|
| 596 |
'tbWidth' => $popup_width,
|
| 597 |
'tbHeight' => $popup_height,
|
| 598 |
+
), $site_url) . '"><b>' . $ev_title[$j] . '</b>
|
| 599 |
</a>
|
| 600 |
</td>
|
| 601 |
</tr>
|
| 632 |
'cat_id' => '',
|
| 633 |
'cat_ids' => $cat_ids,
|
| 634 |
'TB_iframe' => 1,
|
| 635 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>">
|
| 636 |
<?php echo ($year - 1); ?>
|
| 637 |
</td>
|
| 638 |
<td colspan="3" style="font-size:<?php echo $year_font_size + 2; ?>px;color:<?php echo $year_font_color; ?>;text-align: center;border-right:1px solid <?php echo $cell_border_color; ?>;border-left:1px solid <?php echo $cell_border_color; ?>">
|
| 652 |
'cat_id' => '',
|
| 653 |
'cat_ids' => $cat_ids,
|
| 654 |
'TB_iframe' => 1,
|
| 655 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')" style="cursor:pointer;font-size:<?php echo $year_font_size; ?>px;text-align: center;background-color:<?php echo $year_tabs_bg_color; ?>;color:<?php echo $year_font_color; ?>">
|
| 656 |
<?php echo ($year + 1); ?>
|
| 657 |
</td>
|
| 658 |
</tr>
|
| 728 |
'cat_ids' => $cat_ids,
|
| 729 |
'widget' => $widget,
|
| 730 |
'TB_iframe' => 1,
|
| 731 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"> <?php echo $category->title ?></p></li>
|
| 732 |
<?php
|
| 733 |
}
|
| 734 |
if (!empty($categories)) {
|
| 746 |
'cat_ids' => '',
|
| 747 |
'widget' => $widget,
|
| 748 |
'TB_iframe' => 1,
|
| 749 |
+
), $site_url);?>','<?php echo $many_sp_calendar; ?>','<?php echo $widget; ?>')"><?php echo __('All categories', 'sp_calendar'); ?></p></li>
|
| 750 |
<?php echo '</ul>';
|
| 751 |
}
|
| 752 |
}
|
readme.txt
CHANGED
|
@@ -1,17 +1,18 @@
|
|
| 1 |
=== WordPress Event Calendar ===
|
| 2 |
Contributors: webdorado
|
| 3 |
Donate link: http://web-dorado.com/products/wordpress-calendar.html
|
| 4 |
-
Tags: calendar, calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,online calendar,holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.1
|
| 7 |
-
Stable tag: 1.4.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 11 |
|
| 12 |
Spider Event Calendar is a highly configurable product which allows you to have multiple organized events.
|
| 13 |
== Description ==
|
| 14 |
-
|
|
|
|
| 15 |
[WordPress Calendar](http://web-dorado.com/products/wordpress-calendar.html)
|
| 16 |
[Demo](http://wpdemo.web-dorado.com/spider-calendar/)
|
| 17 |
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=SpiderCalendar)
|
|
@@ -76,7 +77,8 @@ Upgrade to [WordPress Calendar Pro](http://web-dorado.com/products/wordpress-cal
|
|
| 76 |
* Possibility to select calendar date style in the popup.
|
| 77 |
* Possibility to set a number of events to be displayed within a single day
|
| 78 |
|
| 79 |
-
###IMPORTANT:
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
### Supported languages
|
|
@@ -141,6 +143,11 @@ Vietnamese (vi)
|
|
| 141 |
|
| 142 |
|
| 143 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
= 1.4.14 =
|
| 145 |
bug fixed in upcoming events widget
|
| 146 |
|
| 1 |
=== WordPress Event Calendar ===
|
| 2 |
Contributors: webdorado
|
| 3 |
Donate link: http://web-dorado.com/products/wordpress-calendar.html
|
| 4 |
+
Tags: calendar, calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,online calendar,holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, tribe
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.1
|
| 7 |
+
Stable tag: 1.4.15
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 11 |
|
| 12 |
Spider Event Calendar is a highly configurable product which allows you to have multiple organized events.
|
| 13 |
== Description ==
|
| 14 |
+
WordPress event calendar is a FREE user-friendly responsive plugin to manage multiple recurring events and with various options.
|
| 15 |
+
|
| 16 |
[WordPress Calendar](http://web-dorado.com/products/wordpress-calendar.html)
|
| 17 |
[Demo](http://wpdemo.web-dorado.com/spider-calendar/)
|
| 18 |
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=SpiderCalendar)
|
| 77 |
* Possibility to select calendar date style in the popup.
|
| 78 |
* Possibility to set a number of events to be displayed within a single day
|
| 79 |
|
| 80 |
+
###IMPORTANT:
|
| 81 |
+
If you think you found a bug in Spider Calendar or have any problem/question concerning the plugin, please check out [Support Forum](http://web-dorado.com/forum/spider-calendar-wordpress.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
|
| 82 |
|
| 83 |
|
| 84 |
### Supported languages
|
| 143 |
|
| 144 |
|
| 145 |
== Changelog ==
|
| 146 |
+
|
| 147 |
+
= 1.4.15 =
|
| 148 |
+
bug fixed in description editor
|
| 149 |
+
allow origin issue fixed
|
| 150 |
+
|
| 151 |
= 1.4.14 =
|
| 152 |
bug fixed in upcoming events widget
|
| 153 |
|
spidercalendar_upcoming_events_widget.php
CHANGED
|
@@ -782,7 +782,7 @@ href="' . add_query_arg(array(
|
|
| 782 |
'TB_iframe' => 1,
|
| 783 |
'tbWidth' => $popup_width,
|
| 784 |
'tbHeight' => $popup_height
|
| 785 |
-
),
|
| 786 |
></br><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 787 |
|
| 788 |
}
|
|
@@ -799,7 +799,7 @@ href="' . add_query_arg(array(
|
|
| 799 |
'TB_iframe' => 1,
|
| 800 |
'tbWidth' => $popup_width,
|
| 801 |
'tbHeight' => $popup_height
|
| 802 |
-
),
|
| 803 |
|
| 804 |
}
|
| 805 |
|
|
@@ -995,7 +995,7 @@ href="' . add_query_arg(array(
|
|
| 995 |
'TB_iframe' => 1,
|
| 996 |
'tbWidth' => $popup_width,
|
| 997 |
'tbHeight' => $popup_height
|
| 998 |
-
),
|
| 999 |
|
| 1000 |
|
| 1001 |
}
|
|
@@ -1333,7 +1333,7 @@ href="' . add_query_arg(array(
|
|
| 1333 |
'TB_iframe' => 1,
|
| 1334 |
'tbWidth' => $popup_width,
|
| 1335 |
'tbHeight' => $popup_height
|
| 1336 |
-
),
|
| 1337 |
}
|
| 1338 |
else
|
| 1339 |
{
|
|
@@ -1348,7 +1348,7 @@ href="' . add_query_arg(array(
|
|
| 1348 |
'TB_iframe' => 1,
|
| 1349 |
'tbWidth' => $popup_width,
|
| 1350 |
'tbHeight' => $popup_height
|
| 1351 |
-
),
|
| 1352 |
}
|
| 1353 |
|
| 1354 |
?>
|
|
@@ -1470,7 +1470,7 @@ href="' . add_query_arg(array(
|
|
| 1470 |
'TB_iframe' => 1,
|
| 1471 |
'tbWidth' => $popup_width,
|
| 1472 |
'tbHeight' => $popup_height
|
| 1473 |
-
),
|
| 1474 |
|
| 1475 |
}
|
| 1476 |
}
|
|
@@ -1738,7 +1738,7 @@ href="' . add_query_arg(array(
|
|
| 1738 |
'TB_iframe' => 1,
|
| 1739 |
'tbWidth' => $popup_width,
|
| 1740 |
'tbHeight' => $popup_height
|
| 1741 |
-
),
|
| 1742 |
}
|
| 1743 |
else
|
| 1744 |
{
|
|
@@ -1753,7 +1753,7 @@ href="' . add_query_arg(array(
|
|
| 1753 |
'TB_iframe' => 1,
|
| 1754 |
'tbWidth' => $popup_width,
|
| 1755 |
'tbHeight' => $popup_height
|
| 1756 |
-
),
|
| 1757 |
}
|
| 1758 |
|
| 1759 |
?>
|
|
@@ -1877,7 +1877,7 @@ href="' . add_query_arg(array(
|
|
| 1877 |
'TB_iframe' => 1,
|
| 1878 |
'tbWidth' => $popup_width,
|
| 1879 |
'tbHeight' => $popup_height
|
| 1880 |
-
),
|
| 1881 |
|
| 1882 |
}
|
| 1883 |
}
|
|
@@ -2186,7 +2186,7 @@ $ev++;
|
|
| 2186 |
</td>
|
| 2187 |
<td>
|
| 2188 |
<?php global $sonan; ?>
|
| 2189 |
-
<a href="<?php echo
|
| 2190 |
|
| 2191 |
<img src="<?php echo plugins_url(); ?>/spider-event-calendar/front_end/images/add_but.png" class="hasTip" /> </a>
|
| 2192 |
|
|
@@ -2226,7 +2226,7 @@ $ev++;
|
|
| 2226 |
function addcal(x,y,z,f)
|
| 2227 |
{
|
| 2228 |
var calendar=document.getElementById(y).value;
|
| 2229 |
-
jQuery(x).attr('href','<?php echo
|
| 2230 |
}
|
| 2231 |
</script>
|
| 2232 |
<table width="100%" class="paramlist admintable" cellpadding="3">
|
| 782 |
'TB_iframe' => 1,
|
| 783 |
'tbWidth' => $popup_width,
|
| 784 |
'tbHeight' => $popup_height
|
| 785 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '"
|
| 786 |
></br><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 787 |
|
| 788 |
}
|
| 799 |
'TB_iframe' => 1,
|
| 800 |
'tbWidth' => $popup_width,
|
| 801 |
'tbHeight' => $popup_height
|
| 802 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" ></br><b>'.$event_title.'</b></a></div>';
|
| 803 |
|
| 804 |
}
|
| 805 |
|
| 995 |
'TB_iframe' => 1,
|
| 996 |
'tbWidth' => $popup_width,
|
| 997 |
'tbHeight' => $popup_height
|
| 998 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" >'. __('See more', 'sp_calendar').'</a></div>';
|
| 999 |
|
| 1000 |
|
| 1001 |
}
|
| 1333 |
'TB_iframe' => 1,
|
| 1334 |
'tbWidth' => $popup_width,
|
| 1335 |
'tbHeight' => $popup_height
|
| 1336 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" ><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 1337 |
}
|
| 1338 |
else
|
| 1339 |
{
|
| 1348 |
'TB_iframe' => 1,
|
| 1349 |
'tbWidth' => $popup_width,
|
| 1350 |
'tbHeight' => $popup_height
|
| 1351 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" ><b>'.$event_title.'</b></a></div>';
|
| 1352 |
}
|
| 1353 |
|
| 1354 |
?>
|
| 1470 |
'TB_iframe' => 1,
|
| 1471 |
'tbWidth' => $popup_width,
|
| 1472 |
'tbHeight' => $popup_height
|
| 1473 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" >'. __('See more', 'sp_calendar').'</a></div>';
|
| 1474 |
|
| 1475 |
}
|
| 1476 |
}
|
| 1738 |
'TB_iframe' => 1,
|
| 1739 |
'tbWidth' => $popup_width,
|
| 1740 |
'tbHeight' => $popup_height
|
| 1741 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" ></br><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 1742 |
}
|
| 1743 |
else
|
| 1744 |
{
|
| 1753 |
'TB_iframe' => 1,
|
| 1754 |
'tbWidth' => $popup_width,
|
| 1755 |
'tbHeight' => $popup_height
|
| 1756 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" ></br><b>'.$event_title.'</b></a></div>';
|
| 1757 |
}
|
| 1758 |
|
| 1759 |
?>
|
| 1877 |
'TB_iframe' => 1,
|
| 1878 |
'tbWidth' => $popup_width,
|
| 1879 |
'tbHeight' => $popup_height
|
| 1880 |
+
), get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php') . '" >'.__('See more', 'sp_calendar').'</a></div>';
|
| 1881 |
|
| 1882 |
}
|
| 1883 |
}
|
| 2186 |
</td>
|
| 2187 |
<td>
|
| 2188 |
<?php global $sonan; ?>
|
| 2189 |
+
<a href="<?php echo get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php'; ?>?action=upcoming&id_input=<?php echo $this->get_field_id('event_select');?>&w_id=<?php echo $this->get_field_id('title');?>&TB_iframe=1&tbWidth=1024&tbHeight=768" class="thickbox-preview<?php echo $sonan; ?>" id="<?php echo $id?>" onclick="addcal(this,'<?php echo $this->get_field_id('calendar'); ?>','<?php echo $this->get_field_id('event_select');?>','<?php echo $this->get_field_id('title');?>')" rel="{handler: 'iframe', size: {x: 750, y: 450}}" >
|
| 2190 |
|
| 2191 |
<img src="<?php echo plugins_url(); ?>/spider-event-calendar/front_end/images/add_but.png" class="hasTip" /> </a>
|
| 2192 |
|
| 2226 |
function addcal(x,y,z,f)
|
| 2227 |
{
|
| 2228 |
var calendar=document.getElementById(y).value;
|
| 2229 |
+
jQuery(x).attr('href','<?php echo get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php'; ?>?action=upcoming&id_input='+z+'&w_id='+f+'&upcalendar_id='+calendar+'&TB_iframe=1&tbWidth=1024&tbHeight=768');
|
| 2230 |
}
|
| 2231 |
</script>
|
| 2232 |
<table width="100%" class="paramlist admintable" cellpadding="3">
|
