Kalender



’no Spider catalog‘,
‚theme‘ => ’13‘,
‚default‘ => ‚month‘,
’select‘ => ‚month,list,day,week,‘,
), $atts));
if (!isset($atts[’select‘])) {
$atts[’select‘] = ‚month,list,day,week,‘;
}
return spider_calendar_big_front_end($id, $theme, $default, $select);
}
add_shortcode(‚Spider_Calendar‘, ’spider_calendar_big‘);

function spider_calendar_big_front_end($id, $theme, $default, $select, $widget = 0) {
require_once(„front_end/frontend_functions.php“);
ob_start();
global $many_sp_calendar;
global $wpdb;

if ($widget === 1) {
$themes = $wpdb->get_row($wpdb->prepare(‚SELECT * FROM ‚ . $wpdb->prefix . ’spidercalendar_widget_theme WHERE id=%d‘, $theme));
}
else{
$themes = $wpdb->get_row($wpdb->prepare(‚SELECT * FROM ‚ . $wpdb->prefix . ’spidercalendar_theme WHERE id=%d‘, $theme));
}
$cal_width = $themes->width; ?>
"; var tb_closeImage = "" var randi; if (typeof showbigcalendar != 'function') { function showbigcalendar(id, calendarlink, randi,widget) { var xmlHttp; try { xmlHttp = new XMLHttpRequest();// Firefox, Opera 8.0+, Safari } catch (e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("No AJAX!?"); return false; } } } xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4) { jQuery('#' + id).html(xmlHttp.responseText); } } xmlHttp.open("GET", calendarlink, false); xmlHttp.send(); jQuery(document).ready(function (){ jQuery('#views_select').toggle(function () { jQuery('#drop_down_views').stop(true, true).delay(200).slideDown(500); }, function () { jQuery('#drop_down_views').stop(true, true).slideUp(500); }); }); if(widget!=1) { if(jQuery(window).width() > 640) { jQuery('drop_down_views').hide(); var parent_width = document.getElementById('bigcalendar'+randi).parentNode.clientWidth; var calwidth= document.getElementById('cal_width'+randi).value; var responsive_width = (calwidth)/parent_width*100; document.getElementById('afterbig'+randi).setAttribute('style','width:'+responsive_width+'%;'); jQuery('pop_table').css('height','100%'); } else if(jQuery(jQuery('#bigcalendar'+randi).parent()).width() > 640) { jQuery('drop_down_views').hide(); var parent_width = document.getElementById('bigcalendar'+randi).parentNode.clientWidth; var calwidth= document.getElementById('cal_width'+randi).value; var responsive_width = (calwidth)/parent_width*100; document.getElementById('afterbig'+randi).setAttribute('style','width:'+responsive_width+'%;'); jQuery('pop_table').css('height','100%'); } else { document.getElementById('afterbig'+randi).setAttribute('style','width:100%;'); } } var thickDims, tbWidth, tbHeight; jQuery(document).ready(function ($) { thickDims = function () { jQuery('#TB_window iframe').css('margin-left','0%'); jQuery('#TB_window iframe').css('margin-top','0%'); jQuery('#TB_window iframe').css('margin-left','0%'); jQuery('#TB_window iframe').css('margin-top','0%'); jQuery('#TB_window iframe').css('padding-left','0%'); jQuery('#TB_window iframe').css('padding-top','0%'); var tbWindow = $('#TB_window'), H = $(window).height(), W = $(window).width(), w, h; if (tbWidth) { if (tbWidth < (W - 90)) w = tbWidth; else w = W - 200; } else w = W - 200; if (tbHeight) { if (tbHeight < (H - 90)) h = tbHeight; else h = H - 200; } else h = H - 200; if (tbWindow.size()) { tbWindow.width(w).height(h); $('#TB_iframeContent').width(w).height(h - 27); tbWindow.css({'margin-left':'-' + parseInt((w / 2), 10) + 'px'}); if (typeof document.body.style.maxWidth != 'undefined') tbWindow.css({'top':(H - h) / 2, 'margin-top':'0'}); } if(jQuery(window).width() < 640 ){ var tb_left = parseInt((w / 2), 10) + 20; jQuery('#TB_window').css('left', tb_left + 'px') jQuery('#TB_window').css('width','90%'); jQuery('#TB_window').css('margin-top','-13%'); jQuery('#TB_window iframe').css('height','100%'); jQuery('#TB_window iframe').css('width','100%'); } if(jQuery(window).width() > 640 ) { jQuery('#TB_window').css('left','50%'); } if (typeof popup_width_from_src != "undefined") { popup_width_from_src=jQuery('.thickbox-previewbigcalendar'+randi).attr('href').indexOf('tbWidth='); str=jQuery('.thickbox-previewbigcalendar'+randi).attr('href').substr(popup_width_from_src+8,150) find_amp=str.indexOf('&'); width_orig=str.substr(0,find_amp); find_eq=str.indexOf('='); height_orig=str.substr(find_eq+1,5); jQuery('#TB_window').css('max-width',width_orig+'px'); jQuery('#TB_window iframe').css('max-width',width_orig+'px'); jQuery('#TB_window').css('max-height',height_orig+'px'); } jQuery('#TB_window').css('background','none'); jQuery('#TB_window').css('background-color','none'); jQuery('#TB_window iframe').css('background-color','none'); }; thickDims(); $(window).resize(function () { thickDims(); if(jQuery(window).width() < 640 ){ jQuery('#TB_window').css('width','90%'); jQuery('#TB_window').css('margin-top','-13%'); jQuery('#TB_window iframe').css('height','100%'); jQuery('#TB_window').css('height','100%'); } if(jQuery(window).width() > 900 ) { jQuery('#TB_window').css('left','50%'); } }); $('a.thickbox-preview' + id).click(function () { tb_click.call(this); var alink = jQuery(this).parents('.available-theme').find('.activatelink'), link = '', href = jQuery(this).attr('href'), url, text; var reg_with = new RegExp(xx_cal_xx + "tbWidth=[0-9]+"); if (tbWidth = href.match(reg_with)) tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10); else tbWidth = jQuery(window).width() - 90; var reg_heght = new RegExp(xx_cal_xx + "tbHeight=[0-9]+"); if (tbHeight = href.match(reg_heght)) tbHeight = parseInt(tbHeight[0].replace(/[^0-9]+/g, ''), 10); else tbHeight = jQuery(window).height() - 60; jQuery('#TB_title').css({'background-color':'#222', 'color':'#dfdfdf'}); jQuery('#TB_closeAjaxWindow').css({'float':'left'}); jQuery('#TB_ajaxWindowTitle').css({'float':'right'}).html(link); jQuery('#TB_iframeContent').width('100%'); thickDims(); return false; }); }); } } document.onkeydown = function (evt) { evt = evt || window.event; if (evt.keyCode == 27) { document.getElementById('sbox-window').close(); } }; get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "spidercalendar_calendar WHERE id='%d'", $id)); $year = ($calendarr->def_year ? $calendarr->def_year : date("Y")); $month = ($calendarr->def_month ? $calendarr->def_month : date("m")); $date = $year . '-' . $month; if ($default == 'day') { $date .= '-' . date('d'); } if ($default == 'week') { $date .= '-' . date('d'); $d = new DateTime($date); $weekday = $d->format('w'); $diff = ($weekday == 0 ? 6 : $weekday - 1); if ($widget === 1) { $theme_row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "spidercalendar_widget_theme WHERE id='%d'", $theme)); } else { $theme_row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "spidercalendar_theme WHERE id='%d'", $theme)); } $weekstart = $theme_row->week_start_day; if ($weekstart == "su") { $diff = $diff + 1; } $d->modify("-$diff day"); $d->modify("-1 day"); $prev_date = $d->format('Y-m-d'); $prev_month = add_0((int) substr($prev_date, 5, 2) - 1); $this_month = add_0((int) substr($prev_date, 5, 2)); $next_month = add_0((int) substr($prev_date, 5, 2) + 1); if ($next_month == '13') { $next_month = '01'; } if ($prev_month == '00') { $prev_month = '12'; } } if ($widget === 1) { $default .= '_widget'; } else { } ?> showbigcalendar('bigcalendar', ' 'spiderbigcalendar_' . $default, 'theme_id' => $theme, 'calendar' => $id, 'select' => $select, 'date' => $date, 'months' => (($default == 'week' || $default == 'week_widget') ? $prev_month . ',' . $this_month . ',' . $next_month : ''), 'many_sp_calendar' => $many_sp_calendar, 'cur_page_url' => urlencode(current_page_url_sc()), 'widget' => $widget, 'rand' => $many_sp_calendar, ), admin_url('admin-ajax.php'));?>','','');

roles[0] !== ‚administrator‘) {
echo ‚You have no permission.‘;
die();
}
global $wpdb;
if (isset($_POST[‚calendar_id‘]) && isset($_POST[‚calendar_title‘]) && isset($_POST[‚us_12_format_sp_calendar‘]) && isset($_POST[‚default_year‘]) && isset($_POST[‚default_month‘])) {
$wpdb->update($wpdb->prefix . ’spidercalendar_calendar‘, array(
‚title‘ => $_POST[‚calendar_title‘],
‚time_format‘ => $_POST[‚us_12_format_sp_calendar‘],
‚def_year‘ => $_POST[‚default_year‘],
‚def_month‘ => $_POST[‚default_month‘],
), array(‚id‘ => $_POST[‚calendar_id‘]), array(
‚%s‘,
‚%d‘,
‚%s‘,
‚%s‘,
), array(‚%d‘));
$row = $wpdb->get_row($wpdb->prepare(„SELECT * FROM “ . $wpdb->prefix . „spidercalendar_calendar WHERE id=’%d'“, (int) $_POST[‚calendar_id‘]));
?>

id; ?>


id; ?>“>Manage events published)
echo ’style=“color:#C00″‚; ?>
href=“admin.php?page=SpiderCalendar&task=published&id=id; ?>“>published)
echo „Yes“;
else echo „No“; ?>

roles[0] !== ‚administrator‘) {
echo ‚You have no permission.‘;
die();
}
global $wpdb;
if (isset($_POST[‚calendar_id‘])) {
$row = $wpdb->get_row($wpdb->prepare(„SELECT * FROM “ . $wpdb->prefix . „spidercalendar_calendar WHERE id=’%d'“, $_POST[‚calendar_id‘]));
?>

Quick Edit



Default Year:

Default Month:





time_format == 0) echo ‚checked=“checked“‚; ?> />
No
time_format == 1) echo ‚checked=“checked“‚; ?> />
Yes


id . „‚“ ?>)“ class=“button-primary save alignright“>Update





This plugin is the non-commercial version of the Spider Event Calendar. Use of the calendar is free.
The only limitation is the use of the themes. If you want to use one of the 11 standard themes or create a new one that
satisfies the needs of your web site, you are required to purchase a license.
Purchasing a license will add 17 standard themes and give possibility to edit the themes of the Spider Event Calendar.

Purchase a License

After the purchasing the commercial version follow this steps:

  1. Deactivate Spider Event Calendar Plugin
  2. Delete Spider Event Calendar Plugin
  3. Install the downloaded commercial version of the plugin

var wdplugin_url = „‚ . plugins_url(“, __FILE__) . ‚“;‚;
}
add_action(‚admin_head‘, ‚add_button_style_calendar‘);

function Manage_Spider_Calendar() {
global $wpdb;
if (!function_exists(‚print_html_nav‘)) {
require_once(„nav_function/nav_html_func.php“);
}
require_once(„calendar_functions.php“); // add functions for Spider_Video_Player
require_once(„calendar_functions.html.php“); // add functions for vive Spider_Video_Player
if (isset($_GET[„task“])) {
$task = esc_html($_GET[„task“]);
}
else {
$task = „“;
}
if (isset($_GET[„id“])) {
$id = (int) $_GET[„id“];
}
else {
$id = 0;
}
if (isset($_GET[„calendar_id“])) {
$calendar_id = (int) $_GET[„calendar_id“];
}
else {
$calendar_id = 0;
}
switch ($task) {
case ‚calendar‘:
show_spider_calendar();
break;
case ‚add_calendar‘:
add_spider_calendar();
break;
case ‚published‘;
spider_calendar_published($id);
show_spider_calendar();
break;
case ‚Save‘:
if (!$id) {
apply_spider_calendar(-1);
}
else {
apply_spider_calendar($id);
}
show_spider_calendar();
break;
case ‚Apply‘:
if (!$id) {
apply_spider_calendar(-1);
$id = $wpdb->get_var(„SELECT MAX(id) FROM “ . $wpdb->prefix . „spidercalendar_calendar“);
}
else {
apply_spider_calendar($id);
}
edit_spider_calendar($id);
break;
case ‚edit_calendar‘:
edit_spider_calendar($id);
break;
case ‚remove_calendar‘:
remove_spider_calendar($id);
show_spider_calendar();
break;
// Events.
case ’show_manage_event‘:
show_spider_event($calendar_id);
break;
case ‚add_event‘:
add_spider_event($calendar_id);
break;
case ’save_event‘:
if ($id) {
apply_spider_event($calendar_id, $id);
}
else {
apply_spider_event($calendar_id, -1);
}
show_spider_event($calendar_id);
break;
case ‚apply_event‘:
if ($id) {
apply_spider_event($calendar_id, $id);
}
else {
apply_spider_event($calendar_id, -1);
$id = $wpdb->get_var(„SELECT MAX(id) FROM “ . $wpdb->prefix . „spidercalendar_event“);
}
edit_spider_event($calendar_id, $id);
break;
case ‚edit_event‘:
edit_spider_event($calendar_id, $id);
break;
case ‚remove_event‘:
remove_spider_event($calendar_id, $id);
show_spider_event($calendar_id);
break;
case ‚published_event‘;
published_spider_event($calendar_id, $id);
show_spider_event($calendar_id);
break;
default:
show_spider_calendar();
break;
}
}

function Manage_Spider_Category_Calendar(){
require_once(„calendar_functions.html.php“);
require_once(„calendar_functions.php“);
if (!function_exists(‚print_html_nav‘)) {
require_once(„nav_function/nav_html_func.php“);
}

global $wpdb;
if (isset($_GET[„task“])) {
$task = esc_html($_GET[„task“]);
}
else {
$task = „“;
show_event_cat();
return;
}
if (isset($_GET[„id“])) {
$id = (int) $_GET[„id“];
}
else {
$id = 0;
}

switch($task){
case ‚add_category‘:
edit_event_category($id);
break;

case ’save_category_event‘:
if(!$id){
save_spider_category_event();
$id = $wpdb->get_var(„SELECT MAX(id) FROM “ . $wpdb->prefix . „spidercalendar_event_category“);
}
else
{
apply_spider_category_event($id);
}
show_event_cat();
break;

case ‚apply_event_category‘:
if (!$id) {
save_spider_category_event();
$id = $wpdb->get_var(„SELECT MAX(id) FROM “ . $wpdb->prefix . „spidercalendar_event_category“);
}
else {
apply_spider_category_event($id);
}
edit_event_category($id);
break;

case ‚edit_event_category‘:
//apply_spider_category_event();
edit_event_category($id);
break;

case ‚remove_event_category‘:
remove_category_event($id);
show_event_cat();
break;
case ‚published‘:
spider_category_published($id);
show_event_cat();
break;
}

}

function upcoming_widget(){
require_once(„calendar_functions.html.php“);
require_once(„spidercalendar_upcoming_events_widget.php“);
require_once(„calendar_functions.php“);
if (!function_exists(‚print_html_nav‘)) {
require_once(„nav_function/nav_html_func.php“);
}

global $wpdb;

spider_upcoming();
}

function spider_widget_calendar_params() {
wp_enqueue_script(‚media-upload‘);
wp_admin_css(‚thickbox‘);
if (!function_exists(‚print_html_nav‘)) {
require_once(„nav_function/nav_html_func.php“);
}
require_once(„widget_Themes_function.html.php“);
global $wpdb;
if (isset($_GET[„task“])) {
$task = esc_html($_GET[„task“]);
}
else {
$task = „“;
}
switch ($task) {
case ‚theme‘:
html_show_theme_calendar_widget();
break;
default:
html_show_theme_calendar_widget();
}
}

// Themes.
function spider_calendar_params() {
wp_enqueue_script(‚media-upload‘);
wp_admin_css(‚thickbox‘);
if (!function_exists(‚print_html_nav‘)) {
require_once(„nav_function/nav_html_func.php“);
}
require_once(„Themes_function.html.php“); // add functions for vive Spider_Video_Player
global $wpdb;
if (isset($_GET[„task“])) {
$task = esc_html($_GET[„task“]);
}
else {
$task = „“;
}
switch ($task) {
case ‚theme‘:
html_show_theme_calendar();
break;
default:
html_show_theme_calendar();
}
}

function Uninstall_sp_calendar() {
global $wpdb;
$base_name = plugin_basename(‚Spider_Calendar‘);
$base_page = ‚admin.php?page=‘ . $base_name;
$mode = (isset($_GET[‚mode‘]) ? trim($_GET[‚mode‘]) : “);

if (!empty($_POST[‚do‘])) {
if ($_POST[‚do‘] == „UNINSTALL Spider Event Calendar“) {
check_admin_referer(‚Spider_Calendar uninstall‘);

echo ‚

‚;
echo ‚

‚;
echo „Table ‚“ . $wpdb->prefix . „spidercalendar_event‘ has been deleted.“;
$wpdb->query(„DROP TABLE “ . $wpdb->prefix . „spidercalendar_event“);
echo ‚‚;
echo ‚

‚;
echo ‚

‚;
echo ‚

‚;
echo „Table ‚“ . $wpdb->prefix . „spidercalendar_event_category‘ has been deleted.“;
$wpdb->query(„DROP TABLE “ . $wpdb->prefix . „spidercalendar_event_category“);
echo ‚‚;
echo ‚

‚;
echo ‚

‚;
echo ‚

‚;
echo „Table ‚“ . $wpdb->prefix . „spidercalendar_calendar‘ has been deleted.“;
$wpdb->query(„DROP TABLE “ . $wpdb->prefix . „spidercalendar_calendar“);
echo ‚‚;
echo ‚

‚;
echo ‚

‚;
echo ‚

‚;
echo „Table ‚“ . $wpdb->prefix . „spidercalendar_theme‘ has been deleted.“;
$wpdb->query(„DROP TABLE “ . $wpdb->prefix . „spidercalendar_theme“);
echo ‚‚;
echo ‚

‚;
echo ‚

‚;
echo ‚

‚;
echo „Table ‚“ . $wpdb->prefix . „spidercalendar_widget_theme‘ has been deleted.“;
$wpdb->query(„DROP TABLE “ . $wpdb->prefix . „spidercalendar_widget_theme“);
echo ‚‚;
echo ‚

‚;
echo ‚

‚;
echo ‚

‚;
$mode = ‚end-UNINSTALL‘;

}
}
switch ($mode) {
case ‚end-UNINSTALL‘:
$deactivate_url = wp_nonce_url(‚plugins.php?action=deactivate&plugin=‘ . plugin_basename(__FILE__), ‚deactivate-plugin_‘ . plugin_basename(__FILE__));
echo ‚

‚;
echo ‚

Uninstall Spider Event Calendar

‚;
echo ‚

‚ . sprintf(‚Click Here To Finish The Uninstallation And Spider Event Calendar Will Be Deactivated Automatically.‘, $deactivate_url) . ‚

‚;
echo ‚

‚;
break;
// Main Page
default:
?>


    ‚ . $wpdb->prefix . ’spidercalendar_event

    ‚ . „\n“;
    echo ‚

  1. ‚ . $wpdb->prefix . ’spidercalendar_event_category
  2. ‚ . „\n“;
    echo ‚

  3. ‚ . $wpdb->prefix . ’spidercalendar_calendar
  4. ‚ . „\n“;
    echo ‚

  5. ‚ . $wpdb->prefix . ’spidercalendar_theme
  6. ‚ . „\n“;
    echo ‚

  7. ‚ . $wpdb->prefix . ’spidercalendar_widget_theme
  8. ‚ . „\n“;
    ?>

 


prefix . „spidercalendar_event` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`calendar` int(11) NOT NULL,
`date` date NOT NULL,
`date_end` date NOT NULL,
`title` text NOT NULL,
`time` varchar(20) NOT NULL,
`text_for_date` longtext NOT NULL,
`userID` varchar(255) NOT NULL,
`repeat_method` varchar(255) NOT NULL,
`repeat` varchar(255) NOT NULL,
`week` varchar(255) NOT NULL,
`month` varchar(255) NOT NULL,
`month_type` varchar(255) NOT NULL,
`monthly_list` varchar(255) NOT NULL,
`month_week` varchar(255) NOT NULL,
`year_month` varchar(255) NOT NULL,
`published` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;“;
$spider_calendar_table = „CREATE TABLE IF NOT EXISTS `“ . $wpdb->prefix . „spidercalendar_calendar` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`gid` varchar(255) NOT NULL,
`time_format` tinyint(1) NOT NULL,
`allow_publish` varchar(255) NOT NULL,
`start_month` varchar(255) NOT NULL,
`published` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;“;
$spider_category_event_table = „CREATE TABLE IF NOT EXISTS `“ . $wpdb->prefix . „spidercalendar_event_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`published` tinyint(1) NOT NULL,
`color` varchar(255) NOT NULL,
`description` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;“;
$wpdb->query($spider_event_table);
$wpdb->query($spider_calendar_table);
$wpdb->query($spider_category_event_table);
require_once „spider_calendar_update.php“;
spider_calendar_chech_update();
}
register_activation_hook(__FILE__, ‚SpiderCalendar_activate‘);

function spider_calendar_ajax_func() {
?>

Twitter updates

RSS not configured

Sponsors