My Calendar - Version 1.3.8

Version Description

  • Fixed problem with CSS editing which effectively disabled CSS unless a specific choice had been made for pages to show CSS
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 My Calendar
Version 1.3.8
Comparing to
See all releases

Code changes from version 1.2.1 to 1.3.8

my-calendar-event-manager.php CHANGED
@@ -6,7 +6,6 @@ function edit_my_calendar() {
6
?>
7
8
<?php
9
- update_option('ko_calendar_imported','false');
10
if ( get_option('ko_calendar_imported') != 'true' ) {
11
if (function_exists('check_calendar')) {
12
echo "<div id='message' class='updated'>";
@@ -17,12 +16,12 @@ if ( get_option('ko_calendar_imported') != 'true' ) {
17
<form method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
18
<div>
19
<input type="hidden" name="import" value="true" />
20
- <input type="submit" value="Import from Calendar" name="import-calendar" class="button-primary" />
21
</div>
22
</form>
23
<?php
24
echo "<p>";
25
- _e('Calendar Import has received limited testing. Although it is possible that it could fail to import your events correctly, it should not have any impact on your existing Calendar database. If you encounter any problems, <a href="http://www.joedolson.com/contact.php">please contact me</a>!','my-calendar');
26
echo "</p>";
27
echo "</div>";
28
}
@@ -77,9 +76,21 @@ if ( $action == 'add' ) {
77
$end = !empty($_POST['event_end']) ? $_POST['event_end'] : $begin;
78
$time = !empty($_POST['event_time']) ? $_POST['event_time'] : '';
79
$recur = !empty($_POST['event_recur']) ? $_POST['event_recur'] : '';
80
- $repeats = !empty($_POST['event_repeats']) ? $_POST['event_repeats'] : '';
81
$category = !empty($_POST['event_category']) ? $_POST['event_category'] : '';
82
$linky = !empty($_POST['event_link']) ? $_POST['event_link'] : '';
83
$event_label = !empty($_POST['event_label']) ? $_POST['event_label'] : '';
84
$event_street = !empty($_POST['event_street']) ? $_POST['event_street'] : '';
85
$event_street2 = !empty($_POST['event_street2']) ? $_POST['event_street2'] : '';
@@ -87,7 +98,7 @@ if ( $action == 'add' ) {
87
$event_state = !empty($_POST['event_state']) ? $_POST['event_state'] : '';
88
$event_postcode = !empty($_POST['event_postcode']) ? $_POST['event_postcode'] : '';
89
$event_country = !empty($_POST['event_country']) ? $_POST['event_country'] : '';
90
-
91
// Deal with the fools who have left magic quotes turned on
92
if ( ini_get('magic_quotes_gpc') ) {
93
$title = stripslashes($title);
@@ -184,7 +195,7 @@ if ( $action == 'add' ) {
184
event_end='" . mysql_real_escape_string($end) . "',
185
event_time='" . mysql_real_escape_string($time) . "',
186
event_recur='" . mysql_real_escape_string($recur) . "',
187
- event_repeats='" . mysql_real_escape_string($repeats) . "',
188
event_author=".$current_user->ID.",
189
event_category=".mysql_real_escape_string($category).",
190
event_link='".mysql_real_escape_string($linky)."',
@@ -197,9 +208,8 @@ if ( $action == 'add' ) {
197
event_country='".mysql_real_escape_string($event_country)."'";
198
199
$wpdb->get_results($sql);
200
-
201
$sql = "SELECT event_id FROM " . MY_CALENDAR_TABLE . " WHERE event_title='" . mysql_real_escape_string($title) . "'"
202
- . " AND event_desc='" . mysql_real_escape_string($desc) . "' AND event_begin='" . mysql_real_escape_string($begin) . "' AND event_end='" . mysql_real_escape_string($end) . "' AND event_recur='" . mysql_real_escape_string($recur) . "' AND event_repeats='" . mysql_real_escape_string($repeats) . "' LIMIT 1";
203
$result = $wpdb->get_results($sql);
204
205
if ( empty($result) || empty($result[0]->event_id) ) {
@@ -238,9 +248,21 @@ if ( $action == 'add' ) {
238
$end = !empty($_POST['event_end']) ? $_POST['event_end'] : $begin;
239
$time = !empty($_POST['event_time']) ? $_POST['event_time'] : '';
240
$recur = !empty($_POST['event_recur']) ? $_POST['event_recur'] : '';
241
- $repeats = !empty($_POST['event_repeats']) ? $_POST['event_repeats'] : '';
242
$category = !empty($_POST['event_category']) ? $_POST['event_category'] : '';
243
$linky = !empty($_POST['event_link']) ? $_POST['event_link'] : '';
244
$event_label = !empty($_POST['event_label']) ? $_POST['event_label'] : '';
245
$event_street = !empty($_POST['event_street']) ? $_POST['event_street'] : '';
246
$event_street2 = !empty($_POST['event_street2']) ? $_POST['event_street2'] : '';
@@ -248,6 +270,7 @@ if ( $action == 'add' ) {
248
$event_state = !empty($_POST['event_state']) ? $_POST['event_state'] : '';
249
$event_postcode = !empty($_POST['event_postcode']) ? $_POST['event_postcode'] : '';
250
$event_country = !empty($_POST['event_country']) ? $_POST['event_country'] : '';
251
$event_author = !empty($_POST['event_author']) ? $_POST['event_author'] : '';
252
253
if ( mc_can_edit_event( $event_author ) ) {
@@ -355,7 +378,7 @@ if ( $action == 'add' ) {
355
event_end='" . mysql_real_escape_string($end) . "',
356
event_time='" . mysql_real_escape_string($time) . "',
357
event_recur='" . mysql_real_escape_string($recur) . "',
358
- event_repeats='" . mysql_real_escape_string($repeats) . "',
359
event_category=".mysql_real_escape_string($category).",
360
event_link='".mysql_real_escape_string($linky)."',
361
event_label='".mysql_real_escape_string($event_label)."',
@@ -463,7 +486,24 @@ if ( $action == 'add' ) {
463
464
<h2><?php _e('Manage Events','my-calendar'); ?></h2>
465
466
- <?php jd_events_display_list();
467
}
468
?>
469
</div>
@@ -513,10 +553,10 @@ function jd_events_edit_form($mode='add', $event_id=false) {
513
<fieldset>
514
<legend><?php _e('Enter your Event Information','my-calendar'); ?></legend>
515
<p>
516
- <label for="event_title"><?php _e('Event Title','my-calendar'); ?></label> <input type="text" id="event_title" name="event_title" class="input" size="40" maxlength="60" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_title); ?>" />
517
</p>
518
<p>
519
- <label for="event_desc"><?php _e('Event Description (<abbr title="hypertext markup language">HTML</abbr> allowed)','my-calendar'); ?></label><br /><textarea id="event_desc" name="event_desc" class="input" rows="5" cols="50"><?php if ( !empty($data) ) echo htmlspecialchars($data->event_desc); ?></textarea>
520
</p>
521
<p>
522
<label for="event_category"><?php _e('Event Category','my-calendar'); ?></label>
@@ -541,7 +581,7 @@ function jd_events_edit_form($mode='add', $event_id=false) {
541
<label for="event_link"><?php _e('Event Link (Optional)','my-calendar'); ?></label> <input type="text" id="event_link" name="event_link" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_link); ?>" />
542
</p>
543
<p>
544
- <label for="event_begin"><?php _e('Start Date (YYYY-MM-DD)','my-calendar'); ?></label> <input type="text" id="event_begin" name="event_begin" class="calendar_input" size="12" value="<?php if ( !empty($data) ) { echo htmlspecialchars($data->event_begin);} else {echo date("Y-m-d");} ?>" />
545
</p>
546
<p>
547
<label for="event_end"><?php _e('End Date (YYYY-MM-DD) (Optional)','calendar'); ?></label> <input type="text" name="event_end" id="event_end" class="calendar_input" size="12" value="<?php if ( !empty($data) ) {echo htmlspecialchars($data->event_end);} ?>" />
@@ -553,10 +593,10 @@ function jd_events_edit_form($mode='add', $event_id=false) {
553
if ($data->event_time == "00:00:00") {
554
echo '';
555
} else {
556
- echo date("H:i",strtotime(htmlspecialchars($data->event_time)));
557
}
558
} else {
559
- echo date("H:i",strtotime(current_time('mysql')));
560
}
561
?>" /> <?php _e('Optional, set blank if your event is an all-day event or does not happen at a specific time.','my-calendar'); ?> <?php _e('Current time difference from GMT is ','my-calendar'); echo get_option('gmt_offset'); _e(' hour(s)', 'my-calendar'); ?>
562
</p>
@@ -601,20 +641,42 @@ function jd_events_edit_form($mode='add', $event_id=false) {
601
<p>
602
<?php _e('All location fields are optional: <em>insufficient information may result in an inaccurate map</em>.','my-calendar'); ?>
603
</p>
604
<p>
605
- <label for="event_label"><?php _e('Name of Location (e.g. <em>Joe\'s Bar and Grill</em>)','my-calendar'); ?></label> <input type="text" id="event_label" name="event_label" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_label); ?>" />
606
</p>
607
<p>
608
- <label for="event_street"><?php _e('Street Address','my-calendar'); ?></label> <input type="text" id="event_street" name="event_street" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_street); ?>" />
609
</p>
610
<p>
611
- <label for="event_street2"><?php _e('Street Address (2)','my-calendar'); ?></label> <input type="text" id="event_street2" name="event_street2" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_street2); ?>" />
612
</p>
613
<p>
614
- <label for="event_city"><?php _e('City','my-calendar'); ?></label> <input type="text" id="event_city" name="event_city" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_city); ?>" /> <label for="event_state"><?php _e('State/Province','my-calendar'); ?></label> <input type="text" id="event_state" name="event_state" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_state); ?>" /> <label for="event_postcode"><?php _e('Postal Code','my-calendar'); ?></label> <input type="text" id="event_postcode" name="event_postcode" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_postcode); ?>" />
615
</p>
616
<p>
617
- <label for="event_country"><?php _e('Country','my-calendar'); ?></label> <input type="text" id="event_country" name="event_country" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_country); ?>" />
618
</p>
619
</fieldset>
620
<?php } ?>
@@ -630,25 +692,61 @@ function jd_events_edit_form($mode='add', $event_id=false) {
630
<?php
631
}
632
// Used on the manage events admin page to display a list of events
633
- function jd_events_display_list() {
634
global $wpdb;
635
-
636
- $events = $wpdb->get_results("SELECT * FROM " . MY_CALENDAR_TABLE . " ORDER BY event_begin DESC");
637
638
if ( !empty($events) ) {
639
?>
640
<table class="widefat page fixed" id="my-calendar-admin-table" summary="Table of Calendar Events">
641
<thead>
642
<tr>
643
- <th class="manage-column n4" scope="col"><?php _e('ID','my-calendar') ?></th>
644
- <th class="manage-column" scope="col"><?php _e('Title','my-calendar') ?></th>
645
- <th class="manage-column n8" scope="col"><?php _e('Description','my-calendar') ?></th>
646
- <th class="manage-column" scope="col"><?php _e('Start Date','my-calendar') ?></th>
647
<?php /* <th class="manage-column" scope="col"><?php _e('End Date','my-calendar') ?></th> */ ?>
648
<th class="manage-column n6" scope="col"><?php _e('Recurs','my-calendar') ?></th>
649
<th class="manage-column n6" scope="col"><?php _e('Repeats','my-calendar') ?></th>
650
- <th class="manage-column" scope="col"><?php _e('Author','my-calendar') ?></th>
651
- <th class="manage-column" scope="col"><?php _e('Category','my-calendar') ?></th>
652
<th class="manage-column n7" scope="col"><?php _e('Edit / Delete','my-calendar') ?></th>
653
</tr>
654
</thead>
@@ -660,8 +758,8 @@ function jd_events_display_list() {
660
?>
661
<tr class="<?php echo $class; ?>">
662
<th scope="row"><?php echo $event->event_id; ?></th>
663
- <td><?php echo $event->event_title; ?></td>
664
- <td><?php echo $event->event_desc; ?></td>
665
<td><?php echo $event->event_begin; ?></td>
666
<?php /* <td><?php echo $event->event_end; ?></td> */ ?>
667
<td>
@@ -688,7 +786,7 @@ function jd_events_display_list() {
688
$sql = "SELECT * FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".$event->event_category;
689
$this_cat = $wpdb->get_row($sql);
690
?>
691
- <td style="background-color:<?php echo $this_cat->category_color;?>;"><?php echo $this_cat->category_name; ?></td>
692
<?php unset($this_cat); ?>
693
<td>
694
<?php if ( mc_can_edit_event( $event->event_author ) ) { ?>
6
?>
7
8
<?php
9
if ( get_option('ko_calendar_imported') != 'true' ) {
10
if (function_exists('check_calendar')) {
11
echo "<div id='message' class='updated'>";
16
<form method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
17
<div>
18
<input type="hidden" name="import" value="true" />
19
+ <input type="submit" value="<?php _e('Import from Calendar','my-calendar'); ?>" name="import-calendar" class="button-primary" />
20
</div>
21
</form>
22
<?php
23
echo "<p>";
24
+ _e('Although it is possible that this import could fail to import your events correctly, it should not have any impact on your existing Calendar database. If you encounter any problems, <a href="http://www.joedolson.com/contact.php">please contact me</a>!','my-calendar');
25
echo "</p>";
26
echo "</div>";
27
}
76
$end = !empty($_POST['event_end']) ? $_POST['event_end'] : $begin;
77
$time = !empty($_POST['event_time']) ? $_POST['event_time'] : '';
78
$recur = !empty($_POST['event_recur']) ? $_POST['event_recur'] : '';
79
+ $repeats = !empty($_POST['event_repeats']) ? $_POST['event_repeats'] : 0;
80
$category = !empty($_POST['event_category']) ? $_POST['event_category'] : '';
81
$linky = !empty($_POST['event_link']) ? $_POST['event_link'] : '';
82
+ $event_preset = !empty($_POST['event_preset']) ? $_POST['event_preset'] : '';
83
+ if ($event_preset != 'none') {
84
+ $sql = "SELECT * FROM " . MY_CALENDAR_LOCATIONS_TABLE . " WHERE location_id = $event_preset";
85
+ $location = $wpdb->get_row($sql);
86
+ $event_label = $location->location_label;
87
+ $event_street = $location->location_street;
88
+ $event_street2 = $location->location_street2;
89
+ $event_city = $location->location_city;
90
+ $event_state = $location->location_state;
91
+ $event_postcode = $location->location_postcode;
92
+ $event_country = $location->location_country;
93
+ } else {
94
$event_label = !empty($_POST['event_label']) ? $_POST['event_label'] : '';
95
$event_street = !empty($_POST['event_street']) ? $_POST['event_street'] : '';
96
$event_street2 = !empty($_POST['event_street2']) ? $_POST['event_street2'] : '';
98
$event_state = !empty($_POST['event_state']) ? $_POST['event_state'] : '';
99
$event_postcode = !empty($_POST['event_postcode']) ? $_POST['event_postcode'] : '';
100
$event_country = !empty($_POST['event_country']) ? $_POST['event_country'] : '';
101
+ }
102
// Deal with the fools who have left magic quotes turned on
103
if ( ini_get('magic_quotes_gpc') ) {
104
$title = stripslashes($title);
195
event_end='" . mysql_real_escape_string($end) . "',
196
event_time='" . mysql_real_escape_string($time) . "',
197
event_recur='" . mysql_real_escape_string($recur) . "',
198
+ event_repeats=" . mysql_real_escape_string($repeats) . ",
199
event_author=".$current_user->ID.",
200
event_category=".mysql_real_escape_string($category).",
201
event_link='".mysql_real_escape_string($linky)."',
208
event_country='".mysql_real_escape_string($event_country)."'";
209
210
$wpdb->get_results($sql);
211
$sql = "SELECT event_id FROM " . MY_CALENDAR_TABLE . " WHERE event_title='" . mysql_real_escape_string($title) . "'"
212
+ . " AND event_desc='" . mysql_real_escape_string($desc) . "' AND event_begin='" . mysql_real_escape_string($begin) . "' AND event_end='" . mysql_real_escape_string($end) . "' AND event_recur='" . mysql_real_escape_string($recur) . "' AND event_repeats=" . mysql_real_escape_string($repeats) . " LIMIT 1";
213
$result = $wpdb->get_results($sql);
214
215
if ( empty($result) || empty($result[0]->event_id) ) {
248
$end = !empty($_POST['event_end']) ? $_POST['event_end'] : $begin;
249
$time = !empty($_POST['event_time']) ? $_POST['event_time'] : '';
250
$recur = !empty($_POST['event_recur']) ? $_POST['event_recur'] : '';
251
+ $repeats = !empty($_POST['event_repeats']) ? $_POST['event_repeats'] : 0;
252
$category = !empty($_POST['event_category']) ? $_POST['event_category'] : '';
253
$linky = !empty($_POST['event_link']) ? $_POST['event_link'] : '';
254
+ $event_preset = !empty($_POST['event_preset']) ? $_POST['event_preset'] : '';
255
+ if ($event_preset != 'none') {
256
+ $sql = "SELECT * FROM " . MY_CALENDAR_LOCATIONS_TABLE . " WHERE location_id = $event_preset";
257
+ $location = $wpdb->get_row($sql);
258
+ $event_label = $location->location_label;
259
+ $event_street = $location->location_street;
260
+ $event_street2 = $location->location_street2;
261
+ $event_city = $location->location_city;
262
+ $event_state = $location->location_state;
263
+ $event_postcode = $location->location_postcode;
264
+ $event_country = $location->location_country;
265
+ } else {
266
$event_label = !empty($_POST['event_label']) ? $_POST['event_label'] : '';
267
$event_street = !empty($_POST['event_street']) ? $_POST['event_street'] : '';
268
$event_street2 = !empty($_POST['event_street2']) ? $_POST['event_street2'] : '';
270
$event_state = !empty($_POST['event_state']) ? $_POST['event_state'] : '';
271
$event_postcode = !empty($_POST['event_postcode']) ? $_POST['event_postcode'] : '';
272
$event_country = !empty($_POST['event_country']) ? $_POST['event_country'] : '';
273
+ }
274
$event_author = !empty($_POST['event_author']) ? $_POST['event_author'] : '';
275
276
if ( mc_can_edit_event( $event_author ) ) {
378
event_end='" . mysql_real_escape_string($end) . "',
379
event_time='" . mysql_real_escape_string($time) . "',
380
event_recur='" . mysql_real_escape_string($recur) . "',
381
+ event_repeats=" . mysql_real_escape_string($repeats) . ",
382
event_category=".mysql_real_escape_string($category).",
383
event_link='".mysql_real_escape_string($linky)."',
384
event_label='".mysql_real_escape_string($event_label)."',
486
487
<h2><?php _e('Manage Events','my-calendar'); ?></h2>
488
489
+ <?php
490
+
491
+ if ( isset( $_GET['sort'] ) ) {
492
+ $sortby = (int) $_GET['sort'];
493
+ } else {
494
+ $sortby = 'default';
495
+ }
496
+
497
+ if ( isset( $_GET['order'] ) ) {
498
+ if ( $_GET['order'] == 'ASC' ) {
499
+ $sortdir = 'ASC';
500
+ } else {
501
+ $sortdir = 'default';
502
+ }
503
+ } else {
504
+ $sortdir = 'default';
505
+ }
506
+ jd_events_display_list($sortby,$sortdir);
507
}
508
?>
509
</div>
553
<fieldset>
554
<legend><?php _e('Enter your Event Information','my-calendar'); ?></legend>
555
<p>
556
+ <label for="event_title"><?php _e('Event Title','my-calendar'); ?></label> <input type="text" id="event_title" name="event_title" class="input" size="40" maxlength="60" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_title)); ?>" />
557
</p>
558
<p>
559
+ <label for="event_desc"><?php _e('Event Description (<abbr title="hypertext markup language">HTML</abbr> allowed)','my-calendar'); ?></label><br /><textarea id="event_desc" name="event_desc" class="input" rows="5" cols="50"><?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_desc)); ?></textarea>
560
</p>
561
<p>
562
<label for="event_category"><?php _e('Event Category','my-calendar'); ?></label>
581
<label for="event_link"><?php _e('Event Link (Optional)','my-calendar'); ?></label> <input type="text" id="event_link" name="event_link" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->event_link); ?>" />
582
</p>
583
<p>
584
+ <label for="event_begin"><?php _e('Start Date (YYYY-MM-DD)','my-calendar'); ?></label> <input type="text" id="event_begin" name="event_begin" class="calendar_input" size="12" value="<?php if ( !empty($data) ) { echo htmlspecialchars($data->event_begin);} else {echo date_i18n("Y-m-d");} ?>" />
585
</p>
586
<p>
587
<label for="event_end"><?php _e('End Date (YYYY-MM-DD) (Optional)','calendar'); ?></label> <input type="text" name="event_end" id="event_end" class="calendar_input" size="12" value="<?php if ( !empty($data) ) {echo htmlspecialchars($data->event_end);} ?>" />
593
if ($data->event_time == "00:00:00") {
594
echo '';
595
} else {
596
+ echo date_i18n("H:i",strtotime(htmlspecialchars($data->event_time)));
597
}
598
} else {
599
+ echo date_i18n("H:i",strtotime(current_time('mysql')));
600
}
601
?>" /> <?php _e('Optional, set blank if your event is an all-day event or does not happen at a specific time.','my-calendar'); ?> <?php _e('Current time difference from GMT is ','my-calendar'); echo get_option('gmt_offset'); _e(' hour(s)', 'my-calendar'); ?>
602
</p>
641
<p>
642
<?php _e('All location fields are optional: <em>insufficient information may result in an inaccurate map</em>.','my-calendar'); ?>
643
</p>
644
+ <?php $locations = $wpdb->get_results("SELECT location_id,location_label FROM " . MY_CALENDAR_LOCATIONS_TABLE . " ORDER BY location_id ASC");
645
+ if ( !empty($locations) ) {
646
+ ?>
647
+ <p>
648
+ <label for="event_preset"><?php _e('Choose a preset location:','my-calendar'); ?></label> <select name="event_preset" id="event_preset">
649
+ <option value="none"> -- </option>
650
+ <?php
651
+ foreach ( $locations as $location ) {
652
+ echo "<option value=\"".$location->location_id."\">".stripslashes($location->location_label)."</option>";
653
+ }
654
+ ?>
655
+
656
+ </select>
657
+ </p>
658
+ <?php
659
+ } else {
660
+ ?>
661
+ <input type="hidden" name="event_preset" value="none" />
662
+ <p><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-locations"><?php _e('Add recurring locations for later use.','my-calendar'); ?></a></p>
663
+ <?php
664
+ }
665
+ ?>
666
<p>
667
+ <label for="event_label"><?php _e('Name of Location (e.g. <em>Joe\'s Bar and Grill</em>)','my-calendar'); ?></label> <input type="text" id="event_label" name="event_label" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_label)); ?>" />
668
</p>
669
<p>
670
+ <label for="event_street"><?php _e('Street Address','my-calendar'); ?></label> <input type="text" id="event_street" name="event_street" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_street)); ?>" />
671
</p>
672
<p>
673
+ <label for="event_street2"><?php _e('Street Address (2)','my-calendar'); ?></label> <input type="text" id="event_street2" name="event_street2" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_street2)); ?>" />
674
</p>
675
<p>
676
+ <label for="event_city"><?php _e('City','my-calendar'); ?></label> <input type="text" id="event_city" name="event_city" class="input" size="40" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_city)); ?>" /> <label for="event_state"><?php _e('State/Province','my-calendar'); ?></label> <input type="text" id="event_state" name="event_state" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_state)); ?>" /> <label for="event_postcode"><?php _e('Postal Code','my-calendar'); ?></label> <input type="text" id="event_postcode" name="event_postcode" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_postcode)); ?>" />
677
</p>
678
<p>
679
+ <label for="event_country"><?php _e('Country','my-calendar'); ?></label> <input type="text" id="event_country" name="event_country" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars(stripslashes($data->event_country)); ?>" />
680
</p>
681
</fieldset>
682
<?php } ?>
692
<?php
693
}
694
// Used on the manage events admin page to display a list of events
695
+ function jd_events_display_list($sortby='default',$sortdir='default') {
696
global $wpdb;
697
+ if ($sortby == 'default') {
698
+ $sortbyvalue = 'event_begin';
699
+ } else {
700
+ switch ($sortby) {
701
+ case 1:
702
+ $sortbyvalue = 'event_ID';
703
+ break;
704
+ case 2:
705
+ $sortbyvalue = 'event_title';
706
+ break;
707
+ case 3:
708
+ $sortbyvalue = 'event_desc';
709
+ break;
710
+ case 4:
711
+ $sortbyvalue = 'event_begin';
712
+ break;
713
+ case 5 :
714
+ $sortbyvalue = 'event_author';
715
+ break;
716
+ case 6:
717
+ $sortbyvalue = 'event_category';
718
+ break;
719
+ default:
720
+ $sortbyvalue = 'event_begin';
721
+ }
722
+ }
723
+ if ($sortdir == 'default') {
724
+ $sortbydirection = 'DESC';
725
+ } else {
726
+ $sortbydirection = $sortdir;
727
+ }
728
+ $events = $wpdb->get_results("SELECT * FROM " . MY_CALENDAR_TABLE . " ORDER BY $sortbyvalue $sortbydirection");
729
+
730
+ if ($sortbydirection == 'DESC') {
731
+ $sorting = "&amp;order=ASC";
732
+ } else {
733
+ $sorting = '';
734
+ }
735
736
if ( !empty($events) ) {
737
?>
738
<table class="widefat page fixed" id="my-calendar-admin-table" summary="Table of Calendar Events">
739
<thead>
740
<tr>
741
+ <th class="manage-column n4" scope="col"><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;sort=1<?php echo $sorting; ?>"><?php _e('ID','my-calendar') ?></a></th>
742
+ <th class="manage-column" scope="col"><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;sort=2<?php echo $sorting; ?>"><?php _e('Title','my-calendar') ?></a></th>
743
+ <th class="manage-column n8" scope="col"><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;sort=3<?php echo $sorting; ?>"><?php _e('Description','my-calendar') ?></a></th>
744
+ <th class="manage-column" scope="col"><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;sort=4<?php echo $sorting; ?>"><?php _e('Start Date','my-calendar') ?></a></th>
745
<?php /* <th class="manage-column" scope="col"><?php _e('End Date','my-calendar') ?></th> */ ?>
746
<th class="manage-column n6" scope="col"><?php _e('Recurs','my-calendar') ?></th>
747
<th class="manage-column n6" scope="col"><?php _e('Repeats','my-calendar') ?></th>
748
+ <th class="manage-column" scope="col"><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;sort=5<?php echo $sorting; ?>"><?php _e('Author','my-calendar') ?></a></th>
749
+ <th class="manage-column" scope="col"><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar&amp;sort=6<?php echo $sorting; ?>"><?php _e('Category','my-calendar') ?></a></th>
750
<th class="manage-column n7" scope="col"><?php _e('Edit / Delete','my-calendar') ?></th>
751
</tr>
752
</thead>
758
?>
759
<tr class="<?php echo $class; ?>">
760
<th scope="row"><?php echo $event->event_id; ?></th>
761
+ <td><?php echo htmlentities(stripslashes($event->event_title)); ?></td>
762
+ <td><?php echo htmlentities(stripslashes($event->event_desc)); ?></td>
763
<td><?php echo $event->event_begin; ?></td>
764
<?php /* <td><?php echo $event->event_end; ?></td> */ ?>
765
<td>
786
$sql = "SELECT * FROM " . MY_CALENDAR_CATEGORIES_TABLE . " WHERE category_id=".$event->event_category;
787
$this_cat = $wpdb->get_row($sql);
788
?>
789
+ <td><div class="category-color" style="background-color:<?php echo $this_cat->category_color;?>;"> </div> <?php echo stripslashes($this_cat->category_name); ?></td>
790
<?php unset($this_cat); ?>
791
<td>
792
<?php if ( mc_can_edit_event( $event->event_author ) ) { ?>
my-calendar-fi.mo ADDED
Binary file
my-calendar-fi.po ADDED
@@ -0,0 +1,1071 @@
1
+ # Translation of the WordPress plugin My Calendar 1.3.0 by Joseph C Dolson.
2
+ # Copyright (C) 2010 Joseph C Dolson
3
+ # This file is distributed under the same license as the My Calendar package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: My Calendar 1.3.0\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/my-calendar\n"
10
+ "POT-Creation-Date: 2010-06-04 00:23+0000\n"
11
+ "PO-Revision-Date: 2010-06-28 21:29+0200\n"
12
+ "Last-Translator: Ilpo Puhakka <ilpo.puhakka@gmail.com>\n"
13
+ "Language-Team: Mediajalostamo <info@mediajalostamo.fi>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "X-Poedit-Language: Finnish\n"
19
+ "X-Poedit-Country: FINLAND\n"
20
+
21
+ #: my-calendar-categories.php:37
22
+ msgid "Category added successfully"
23
+ msgstr "Luokka lisätty onnistuneesti"
24
+
25
+ #: my-calendar-categories.php:43
26
+ msgid "Category deleted successfully"
27
+ msgstr "Luokka poistettu onnistuneesti"
28
+
29
+ #: my-calendar-categories.php:48
30
+ #: my-calendar-categories.php:60
31
+ msgid "Edit Category"
32
+ msgstr "Muokkaa luokkaa"
33
+
34
+ #: my-calendar-categories.php:52
35
+ msgid "Category Editor"
36
+ msgstr "Luokan muokkaustyökalu"
37
+
38
+ #: my-calendar-categories.php:61
39
+ #: my-calendar-categories.php:114
40
+ #: my-calendar-categories.php:152
41
+ msgid "Category Name"
42
+ msgstr "Luokan nimi"
43
+
44
+ #: my-calendar-categories.php:62
45
+ #: my-calendar-categories.php:115
46
+ msgid "Category Color (Hex format)"
47
+ msgstr "Luokan väri (Heksa-arvo)"
48
+
49
+ #: my-calendar-categories.php:63
50
+ #: my-calendar-categories.php:116
51
+ #: my-calendar-categories.php:154
52
+ msgid "Category Icon"
53
+ msgstr "Luokan ikoni"
54
+
55
+ #: my-calendar-categories.php:85
56
+ #: my-calendar-locations.php:60
57
+ msgid "Save Changes"
58
+ msgstr "Tallenna muutokset"
59
+
60
+ #: my-calendar-categories.php:95
61
+ msgid "Category edited successfully"
62
+ msgstr "Luokkaa muokattu onnistuneesti"
63
+
64
+ #: my-calendar-categories.php:101
65
+ #: my-calendar-categories.php:113
66
+ #: my-calendar-categories.php:133
67
+ msgid "Add Category"
68
+ msgstr "Lisää luokka"
69
+
70
+ #: my-calendar-categories.php:105
71
+ msgid "Add New Category"
72
+ msgstr "Lisää uusi luokka"
73
+
74
+ #: my-calendar-categories.php:139
75
+ #: my-calendar.php:131
76
+ msgid "Manage Categories"
77
+ msgstr "Hallitse luokkia"
78
+
79
+ #: my-calendar-categories.php:151
80
+ #: my-calendar-event-manager.php:740
81
+ #: my-calendar-locations.php:127
82
+ msgid "ID"
83
+ msgstr "ID"
84
+
85
+ #: my-calendar-categories.php:153
86
+ msgid "Category Color"
87
+ msgstr "Luokan väri"
88
+
89
+ #: my-calendar-categories.php:155
90
+ #: my-calendar-categories.php:169
91
+ #: my-calendar-event-manager.php:792
92
+ #: my-calendar-locations.php:129
93
+ #: my-calendar-locations.php:141
94
+ msgid "Edit"
95
+ msgstr "Muokkaa"
96
+
97
+ #: my-calendar-categories.php:156
98
+ #: my-calendar-categories.php:175
99
+ #: my-calendar-event-manager.php:57
100
+ #: my-calendar-event-manager.php:792
101
+ #: my-calendar-locations.php:130
102
+ #: my-calendar-locations.php:142
103
+ msgid "Delete"
104
+ msgstr "Poista"
105
+
106
+ #: my-calendar-categories.php:172
107
+ #: my-calendar-event-manager.php:778
108
+ #: my-calendar.php:972
109
+ msgid "N/A"
110
+ msgstr "N/A"
111
+
112
+ #: my-calendar-categories.php:175
113
+ #: my-calendar-locations.php:142
114
+ msgid "Are you sure you want to delete this category?"
115
+ msgstr "Haluatko varmasti poistaa tämän luokan?"
116
+
117
+ #: my-calendar-categories.php:186
118
+ msgid "There are no categories in the database - something has gone wrong!"
119
+ msgstr "Luokkia ei ole tietokannassa – jossain on tapahtunut virhe!"
120
+
121
+ #: my-calendar-event-manager.php:13
122
+ #: my-calendar-settings.php:195
123
+ msgid "My Calendar has identified that you have the Calendar plugin by Kieran O'Shea installed. You can import those events and categories into the My Calendar database. Would you like to import these events?"
124
+ msgstr "My Calendar on huomannut, että teillä on Kieran O'Shean kalenterilisäosa asennettuna. Voit tuoda nämä tapahtumat ja kategoriat tietokantaan. Haluatko tuoda näitä tapahtumia?"
125
+
126
+ #: my-calendar-event-manager.php:19
127
+ #: my-calendar-settings.php:201
128
+ msgid "Import from Calendar"
129
+ msgstr "Tuo kalenterista"
130
+
131
+ #: my-calendar-event-manager.php:24
132
+ msgid "Although it is possible that this import could fail to import your events correctly, it should not have any impact on your existing Calendar database. If you encounter any problems, <a href=\"http://www.joedolson.com/contact.php\">please contact me</a>!"
133
+ msgstr "On mahdollista, että tuontityökalu epäonnistuu tapahtumien oikeanlaisessa siirrossa. Tällä ei kuitenkaan ole mitään vaikutusta nykyiseen kalenteritietokantaan. Jos kohtaat ongelmia, <a href=\"http://www.joedolson.com/contact.php\">ota yhteyttä lisäosan kehittäjään</a>!"
134
+
135
+ #: my-calendar-event-manager.php:52
136
+ msgid "Delete Event"
137
+ msgstr "Poista tapahtuma"
138
+
139
+ #: my-calendar-event-manager.php:52
140
+ msgid "Are you sure you want to delete this event?"
141
+ msgstr "Haluatko varmasti poistaa tämän tapahtuman?"
142
+
143
+ #: my-calendar-event-manager.php:65
144
+ msgid "You do not have permission to delete that event."
145
+ msgstr "Sinulla ei ole riittäviä oikeuksia tapahtuman poistamiseen."
146
+
147
+ #: my-calendar-event-manager.php:142
148
+ #: my-calendar-event-manager.php:147
149
+ #: my-calendar-event-manager.php:152
150
+ #: my-calendar-event-manager.php:162
151
+ #: my-calendar-event-manager.php:170
152
+ #: my-calendar-event-manager.php:179
153
+ #: my-calendar-event-manager.php:187
154
+ #: my-calendar-event-manager.php:217
155
+ #: my-calendar-event-manager.php:325
156
+ #: my-calendar-event-manager.php:330
157
+ #: my-calendar-event-manager.php:335
158
+ #: my-calendar-event-manager.php:345
159
+ #: my-calendar-event-manager.php:353
160
+ #: my-calendar-event-manager.php:362
161
+ #: my-calendar-event-manager.php:370
162
+ #: my-calendar-event-manager.php:442
163
+ #: my-calendar-event-manager.php:457
164
+ msgid "Error"
165
+ msgstr "Virhe"
166
+
167
+ #: my-calendar-event-manager.php:142
168
+ #: my-calendar-event-manager.php:325
169
+ msgid "Your event end date must be either after or the same as your event begin date"
170
+ msgstr "Tapahtumasi loppumispäivän pitää olla joko jälkeen tai samaan aikaan kuin alkamisajankohdan"
171
+
172
+ #: my-calendar-event-manager.php:147
173
+ #: my-calendar-event-manager.php:330
174
+ msgid "Your date formatting is correct but one or more of your dates is invalid. Check for number of days in month and leap year related errors."
175
+ msgstr "Sinun päivämääräsi muotoilu on oikea, mutta yksi tai useampi päivämääristä on pätemätön. Tarkista montako päivää kuukaudessa on ja ettei ole karkausvuosi."
176
+
177
+ #: my-calendar-event-manager.php:152
178
+ #: my-calendar-event-manager.php:335
179
+ msgid "Both start and end dates must be entered and be in the format YYYY-MM-DD"
180
+ msgstr "Sekä alku- ja päättymisajankohta on merkittävä ja oltava muodossa VVVV-KK-PP"
181
+
182
+ #: my-calendar-event-manager.php:162
183
+ #: my-calendar-event-manager.php:345
184
+ msgid "The time field must either be blank or be entered in the format hh:mm"
185
+ msgstr "Aikakentän on joko oltava tyhjä tai merkittävä muodossa hh:mm"
186
+
187
+ #: my-calendar-event-manager.php:170
188
+ #: my-calendar-event-manager.php:353
189
+ msgid "The URL entered must either be prefixed with http:// or be completely blank"
190
+ msgstr "URL on syötettävä joko etuliitteellä http:// tai se voi olla täysin tyhjä"
191
+
192
+ #: my-calendar-event-manager.php:179
193
+ #: my-calendar-event-manager.php:362
194
+ msgid "The event title must be between 1 and 60 characters in length."
195
+ msgstr "Tapahtuman otsikon on oltava 1–60 merkkiä pitkä."
196
+
197
+ #: my-calendar-event-manager.php:187
198
+ #: my-calendar-event-manager.php:370
199
+ msgid "The repetition value must be 0 unless a type of recurrance is selected in which case the repetition value must be 0 or higher"
200
+ msgstr "Toisto-arvon on oltava 0, paitsi jos toiston tyyppi on valittu, jolloin sen on oltava 0 tai suurempi."
201
+
202
+ #: my-calendar-event-manager.php:217
203
+ msgid "An event with the details you submitted could not be found in the database. This may indicate a problem with your database or the way in which it is configured."
204
+ msgstr "Julkaisemillasi tiedoilla olevaa tapahtumaa ei löydy tietokannasta. Tämä voi johtua ongelmasta tietokannassa tai sen asetuksissa."
205
+
206
+ #: my-calendar-event-manager.php:221
207
+ msgid "Event added. It will now show in your calendar."
208
+ msgstr "Tapahtuma lisätty. Se näkyy nyt kalenterissa."
209
+
210
+ #: my-calendar-event-manager.php:302
211
+ #: my-calendar-event-manager.php:401
212
+ msgid "Failure"
213
+ msgstr "Virhe"
214
+
215
+ #: my-calendar-event-manager.php:302
216
+ msgid "You can't update an event if you haven't submitted an event id"
217
+ msgstr "Et voi päivittää tapahtumaa jos et ole syöttänyt tapahtuman id-tunnusta"
218
+
219
+ #: my-calendar-event-manager.php:401
220
+ msgid "The database failed to return data to indicate the event has been updated sucessfully. This may indicate a problem with your database or the way in which it is configured."
221
+ msgstr "Tietokanta ei onnistunut palauttamaan tietoja osoittaen että tapahtuma olisi päivitetty onnistuneesti. Tämä voi olla ongelma tietokannassa tai siinä, miten se on määritetty."
222
+
223
+ #: my-calendar-event-manager.php:405
224
+ msgid "Event updated successfully"
225
+ msgstr "Tapahtuma päivitetty onnistuneesti"
226
+
227
+ #: my-calendar-event-manager.php:433
228
+ msgid "You do not have sufficient permissions to edit that event."
229
+ msgstr "Sinulla ei ole riittäviä käyttäjäoikeuksia tapahtuman muokkaamiseen."
230
+
231
+ #: my-calendar-event-manager.php:442
232
+ msgid "You can't delete an event if you haven't submitted an event id"
233
+ msgstr "Et voi poistaa tapahtumaa jos et ole syöttänyt tapahtuman id-tunnusta."
234
+
235
+ #: my-calendar-event-manager.php:453
236
+ msgid "Event deleted successfully"
237
+ msgstr "Tapahtuma poistettu onnistuneesti"
238
+
239
+ #: my-calendar-event-manager.php:457
240
+ msgid "Despite issuing a request to delete, the event still remains in the database. Please investigate."
241
+ msgstr "Vaikka yritit poistaa tapahtuman, se näkyy edelleen tietokannassa. Ole hyvä ja tutki tietokantasi."
242
+
243
+ #: my-calendar-event-manager.php:472
244
+ #: my-calendar-event-manager.php:545
245
+ msgid "Edit Event"
246
+ msgstr "Muokkaa tapahtumaa"
247
+
248
+ #: my-calendar-event-manager.php:476
249
+ msgid "You must provide an event id in order to edit it"
250
+ msgstr "Sinun on syötettävä tapahtuman id-tunnus, jotta voit muokata sitä"
251
+
252
+ #: my-calendar-event-manager.php:482
253
+ msgid "Add Event"
254
+ msgstr "Lisää tapahtuma"
255
+
256
+ #: my-calendar-event-manager.php:487
257
+ msgid "Manage Events"
258
+ msgstr "Hallitse tapahtumia"
259
+
260
+ #: my-calendar-event-manager.php:521
261
+ msgid "Sorry! That's an invalid event key."
262
+ msgstr "Väärä tapahtuman avain."
263
+
264
+ #: my-calendar-event-manager.php:526
265
+ msgid "Sorry! We couldn't find an event with that ID."
266
+ msgstr "Tapahtumaa syöttämällä id-tunnuksella ei löydy."
267
+
268
+ #: my-calendar-event-manager.php:545
269
+ msgid "Add an Event"
270
+ msgstr "Lisää tapahtuma"
271
+
272
+ #: my-calendar-event-manager.php:554
273
+ msgid "Enter your Event Information"
274
+ msgstr "Syötä tapahtuman tiedot"
275
+
276
+ #: my-calendar-event-manager.php:556
277
+ msgid "Event Title"
278
+ msgstr "Tapahtuman nimi"
279
+
280
+ #: my-calendar-event-manager.php:559
281
+ msgid "Event Description (<abbr title=\"hypertext markup language\">HTML</abbr> allowed)"
282
+ msgstr "Tapahtuman kuvaus (<abbr title=\"hypertext markup language\">HTML</abbr> sallittu)"
283
+
284
+ #: my-calendar-event-manager.php:562
285
+ msgid "Event Category"
286
+ msgstr "Tapahtuman luokka"
287
+
288
+ #: my-calendar-event-manager.php:581
289
+ msgid "Event Link (Optional)"
290
+ msgstr "Tapahtuman linkki (valinnainen)"
291
+
292
+ #: my-calendar-event-manager.php:584
293
+ msgid "Start Date (YYYY-MM-DD)"
294
+ msgstr "Aloituspäivä (VVVV-KK-PP)"
295
+
296
+ #: my-calendar-event-manager.php:587
297
+ msgid "End Date (YYYY-MM-DD) (Optional)"
298
+ msgstr "Loppumispäivä (VVVV-KK-PP) (Valinnainen)"
299
+
300
+ #: my-calendar-event-manager.php:590
301
+ msgid "Time (hh:mm)"
302
+ msgstr "Aika (tt:mm)"
303
+
304
+ #: my-calendar-event-manager.php:601
305
+ msgid "Optional, set blank if your event is an all-day event or does not happen at a specific time."
306
+ msgstr "Valinnainen. Jätä tyhjäksi, jos tapahtuma on koko päivän kestävä tapahtuma tai ei tapahdu tiettyyn aikaan."
307
+
308
+ #: my-calendar-event-manager.php:601
309
+ msgid "Current time difference from GMT is "
310
+ msgstr "Nykyinen aikaero GMT:stä on "
311
+
312
+ #: my-calendar-event-manager.php:601
313
+ msgid " hour(s)"
314
+ msgstr " tunti(a)"
315
+
316
+ #: my-calendar-event-manager.php:605
317
+ msgid "Recurring Events"
318
+ msgstr "Toistuvat tapahtumat"
319
+
320
+ #: my-calendar-event-manager.php:626
321
+ msgid "Repeats for"
322
+ msgstr "Toistokerrat"
323
+
324
+ #: my-calendar-event-manager.php:627
325
+ msgid "Units"
326
+ msgstr "Toistoväli"
327
+
328
+ #: my-calendar-event-manager.php:628
329
+ msgid "Does not recur"
330
+ msgstr "Ei toistu"
331
+
332
+ #: my-calendar-event-manager.php:629
333
+ #: my-calendar-event-manager.php:768
334
+ msgid "Daily"
335
+ msgstr "Päivittäin"
336
+
337
+ #: my-calendar-event-manager.php:630
338
+ #: my-calendar-event-manager.php:769
339
+ msgid "Weekly"
340
+ msgstr "Viikottain"
341
+
342
+ #: my-calendar-event-manager.php:631
343
+ msgid "Bi-weekly"
344
+ msgstr "Joka toinen viikko"
345
+
346
+ #: my-calendar-event-manager.php:632
347
+ #: my-calendar-event-manager.php:771
348
+ msgid "Monthly"
349
+ msgstr "Kuukausittain"
350
+
351
+ #: my-calendar-event-manager.php:633
352
+ msgid "Annually"
353
+ msgstr "Vuosittain"
354
+
355
+ #: my-calendar-event-manager.php:635
356
+ msgid "Entering 0 means forever, if a unit is selected. If the recurrance unit is left at \"Does not recur,\" the event will not reoccur."
357
+ msgstr "Jos toistoväli on valittuna, 0 tarkoittaa ikuista toistoa. Jos toistoväli jätetään tilaan \"ei toistu \", tapahtuma ei toistu."
358
+
359
+ #: my-calendar-event-manager.php:642
360
+ #: my-calendar-locations.php:41
361
+ #: my-calendar-locations.php:90
362
+ msgid "All location fields are optional: <em>insufficient information may result in an inaccurate map</em>."
363
+ msgstr "Kaikki paikkaan liittyvät kentät ovat valinnaisia: <em>Puutteellisten tietojen antaminen saattaa johtaa epätarkkaan karttaan</em>."
364
+
365
+ #: my-calendar-event-manager.php:648
366
+ msgid "Choose a preset location:"
367
+ msgstr "Valitse aiemmin käytetty paikka:"
368
+
369
+ #: my-calendar-event-manager.php:661
370
+ msgid "Add recurring locations for later use."
371
+ msgstr "Lisää toistuva paikka myöhempää käyttöä varten."
372
+
373
+ #: my-calendar-event-manager.php:666
374
+ #: my-calendar-locations.php:44
375
+ #: my-calendar-locations.php:93
376
+ msgid "Name of Location (e.g. <em>Joe's Bar and Grill</em>)"
377
+ msgstr "Paikan nimi "
378
+
379
+ #: my-calendar-event-manager.php:669
380
+ #: my-calendar-locations.php:47
381
+ #: my-calendar-locations.php:96
382
+ msgid "Street Address"
383
+ msgstr "Katuosoite"
384
+
385
+ #: my-calendar-event-manager.php:672
386
+ #: my-calendar-locations.php:50
387
+ #: my-calendar-locations.php:99
388
+ msgid "Street Address (2)"
389
+ msgstr "Katuosoite (2)"
390
+
391
+ #: my-calendar-event-manager.php:675
392
+ #: my-calendar-locations.php:53
393
+ #: my-calendar-locations.php:102
394
+ msgid "City"
395
+ msgstr "Kaupunki"
396
+
397
+ #: my-calendar-event-manager.php:675
398
+ #: my-calendar-locations.php:53
399
+ #: my-calendar-locations.php:102
400
+ msgid "State/Province"
401
+ msgstr "Maakunta"
402
+
403
+ #: my-calendar-event-manager.php:675
404
+ #: my-calendar-locations.php:53
405
+ #: my-calendar-locations.php:102
406
+ msgid "Postal Code"
407
+ msgstr "Postinumero"
408
+
409
+ #: my-calendar-event-manager.php:678
410
+ #: my-calendar-locations.php:56
411
+ #: my-calendar-locations.php:105
412
+ msgid "Country"
413
+ msgstr "Maa"
414
+
415
+ #: my-calendar-event-manager.php:683
416
+ msgid "Save Event"
417
+ msgstr "Tallenna tapahtuma"
418
+
419
+ #: my-calendar-event-manager.php:741
420
+ #: my-calendar-widgets.php:32
421
+ #: my-calendar-widgets.php:113
422
+ msgid "Title"
423
+ msgstr "Nimi"
424
+
425
+ #: my-calendar-event-manager.php:742
426
+ msgid "Description"
427
+ msgstr "Kuvaus"
428
+
429
+ #: my-calendar-event-manager.php:743
430
+ msgid "Start Date"
431
+ msgstr "Alkamisajankohta"
432
+
433
+ #: my-calendar-event-manager.php:745
434
+ msgid "Recurs"
435
+ msgstr "Toistoväli"
436
+
437
+ #: my-calendar-event-manager.php:746
438
+ msgid "Repeats"
439
+ msgstr "Toistokerrat"
440
+
441
+ #: my-calendar-event-manager.php:747
442
+ #: my-calendar-settings.php:152
443
+ msgid "Author"
444
+ msgstr "Lisääjä"
445
+
446
+ #: my-calendar-event-manager.php:748
447
+ msgid "Category"
448
+ msgstr "Luokka"
449
+
450
+ #: my-calendar-event-manager.php:749
451
+ msgid "Edit / Delete"
452
+ msgstr "Muokkaa / Poista"
453
+
454
+ #: my-calendar-event-manager.php:767
455
+ msgid "Never"
456
+ msgstr "Ei koskaan"
457
+
458
+ #: my-calendar-event-manager.php:770
459
+ msgid "Bi-Weekly"
460
+ msgstr "Joka toinen viikko"
461
+
462
+ #: my-calendar-event-manager.php:772
463
+ msgid "Yearly"
464
+ msgstr "Vuosittain"
465
+
466
+ #: my-calendar-event-manager.php:779
467
+ msgid "Forever"
468
+ msgstr "Toistaiseksi"
469
+
470
+ #: my-calendar-event-manager.php:780
471
+ msgid "Times"
472
+ msgstr "kertaa"
473
+
474
+ #: my-calendar-event-manager.php:802
475
+ msgid "There are no events in the database!"
476
+ msgstr "Tietokannassa ei ole tapahtumia!"
477
+
478
+ #: my-calendar-help.php:6
479
+ msgid "How to use My Calendar"
480
+ msgstr "My Calendar käyttöohjeet"
481
+
482
+ #: my-calendar-help.php:11
483
+ msgid "Shortcode Syntax"
484
+ msgstr "Tagien merkkausohje"
485
+
486
+ #: my-calendar-help.php:16
487
+ msgid "This basic shortcode will show the calendar on a post or page including all categories and the category key, in a traditional month-by-month format."
488
+ msgstr "Tämä tagi näyttää kalenterin joko artikkelissa tai sivulla siten, että mukana on kaikki kategoriat perinteisessä kuukausittaisessa näkymässä."
489
+
490
+ #: my-calendar-help.php:19
491
+ msgid "The shortcode supports three attributes, <code>category</code>, <code>format</code> and <code>showkey</code>. There is currently only one alternate option for <code>format</code> &mdash; <code>list</code> &mdash; which will show the calendar in a list format, skipping dates without any events. The <code>category</code> attribute requires either the name of or ID number one of your event categories (the name is case-sensitive). This will show a calendar only including events in that category. Multiple categories can be specified by separating the category names or IDs using the pipe character: <code>|</code>. Setting <code>showkey</code> to <code>no</code> will prevent the category key from being displayed &mdash; this can be useful with single-category output."
492
+ msgstr "Tämä tagi tukee kolmea atribuuttia, <code>category</code>, <code>format</code> and <code>showkey</code>. Tällä hetkellä on vain yksi vaihtoehtoinen asetus, <code>format</code> &mdash; <code>list</code> &mdash; joka näyttää kalenterin listanäkymänä ja ohittaa päivämäärät ilman tapahtumia. <code>category</code> -atribuutti tarvitsee joko nimen tai id-tunnuksen jostain tapahtumaluokasta. Tällöin koodi näyttää tapahtumat vain valitusta luokasta. Voit valita useampia luokkia erottamalla id-tunnukset tai luokan nimet toisistaan pystyviivalla: <code>|</code>.Asettamalla <code>showkey</code> -tagin atribuutiksi <code>no</code> voit estää tapahtumaluokan avainta näkymästä. Tämä on käyttökelpoista etenkin yhden luokan kalentereissa."
493
+
494
+ #: my-calendar-help.php:22
495
+ msgid "This shortcode displays the output of the Upcoming Events widget. Without attributes, it will display using the settings in your widget; the attributes are used to override the widget settings. The <code>before</code> and <code>after</code> attributes should be numbers; the <code>type</code> attribute can be either \"event\" or \"date\", and the <code>category</code> attribute works the same way as the category attribute on the main calendar shortcode. Templates work using the template codes listed below."
496
+ msgstr "Tämä tagi näyttää samat tiedot kuin Tulevat tapahtumat vimpain. Ilman atribuutteja se käyttää samoja asetuksia kuin vimpain. Atribuutteja käytetään korvaamaan vimpaimen asetukset. <code>before</code> ja <code>after</code>-atribuuteille annetaan numeroarvoja. <code>type</code>-atribuutti voi olla joko \"event\" tai \"date\", ja <code>category</code>-atribuutti toimii samaan tapaan kuin category-atribuutti muissakin tageissa. <code>template</code>-atribuutti toimii alla listattuilla arvoilla."
497
+
498
+ #: my-calendar-help.php:25
499
+ msgid "Predictably enough, this shortcode displays the output of the Today's Events widget, with two configurable attributes: category and template."
500
+ msgstr "Tämä tagi näyttää Tapahtumat tänään -vimpaimen sisällön. Se toimii kuten yllä."
501
+
502
+ #: my-calendar-help.php:33
503
+ msgid "Category Icons"
504
+ msgstr "Luokkien ikonit"
505
+
506
+ #: my-calendar-help.php:36
507
+ msgid "My Calendar is designed to manage multiple calendars. The basis for these calendars are categories; you can easily setup a calendar page which includes all categories, or you can dedicate separate pages to calendars in each category. For an example, this might be useful for you in managing the tour calendars for multiple bands; event calendars for a variety of locations, etc."
508
+ msgstr "My Calendar on suunniteltu useiden kalentereiden hallintaan. Voit laittaa luokkien tapahtumat näkymään joko samalla sivulla tai sitten eri luokissa olevat tapahtumat eri sivuille. Tämä voi olla hyödyllistä, jos hallinnoit esimerkiksi kahdelle eri kohderyhmälle tarkoitettuja tapahtumia. "
509
+
510
+ #: my-calendar-help.php:39
511
+ msgid "The pre-installed category icons may not be especially useful for your needs or design. I'm assuming that you're going to upload your own icons -- all you need to do is upload them to the plugin's icons folder, and they'll be available for immediate use, or place them in a folder at \"my-calendar-custom\" to avoid having them overwritten by upgrades."
512
+ msgstr "Oletusikonit eivät välttämättä sovellu käyttöösi eikä sivustosi ulkoasuun. Voit lisätä omia tunnuskuvia lisäämällä ne lisäosan icons-kansioon. Kuitenkin välttyäksesi niiden katoamiselta lisäosaa päivitettäessä, sinun on luotava kansio \"my-calendar-custom\" wp-content/plugins -kansioon. "
513
+
514
+ #: my-calendar-help.php:39
515
+ msgid "Your icons folder is:"
516
+ msgstr "Sinun icons-kansio on:"
517
+
518
+ #: my-calendar-help.php:39
519
+ msgid "You can alternately place icons in:"
520
+ msgstr "Vaihtoehtoisesti voi ladata ikonit kansioon: "
521
+
522
+ #: my-calendar-help.php:47
523
+ msgid "Widget Templating"
524
+ msgstr "Vimpainten atribuutit"
525
+
526
+ #: my-calendar-help.php:50
527
+ msgid "These codes are available in calendar widgets to create your own custom calendar format."
528
+ msgstr "Voit käyttää näitä tageja vimpaimissa muotoillaksesi kalenterin haluamasi näköiseksi."
529
+
530
+ #: my-calendar-help.php:54
531
+ msgid "Displays the name of the category the event is in."
532
+ msgstr "Näyttää sen luokan nimen, jossa tapahtuma on."
533
+
534
+ #: my-calendar-help.php:57
535
+ msgid "Displays the title of the event."
536
+ msgstr "Näyttää tapahtuman otsikon."
537
+
538
+ #: my-calendar-help.php:60
539
+ msgid "Displays the start time for the event."
540
+ msgstr "Näyttää tapahtuman alkamisajankohdan."
541
+
542
+ #: my-calendar-help.php:63
543
+ msgid "Displays the date on which the event begins."
544
+ msgstr "Näyttää päivämäärän, jolloin tapahtuma alkaa. "
545
+
546
+ #: my-calendar-help.php:66
547
+ msgid "Displays the date on which the event ends."
548
+ msgstr "Näyttää päivämäärän, jolloin tapahtuma loppuu."
549
+
550
+ #: my-calendar-help.php:69
551
+ msgid "Displays the WordPress author who posted the event."
552
+ msgstr "Näyttää WordPress-käyttäjän, joka julkaisi tapahtuman."
553
+
554
+ #: my-calendar-help.php:72
555
+ msgid "Displays the URL provided for the event."
556
+ msgstr "Näyttää tapahtumaan liitetyn linkin polun."
557
+
558
+ #: my-calendar-help.php:75
559
+ msgid "Displays the description of the event."
560
+ msgstr "Näyttää tapahtuman kuvauksen."
561
+
562
+ #: my-calendar-help.php:78
563
+ msgid "Displays title of the event as a link if a URL is present, or the title alone if no URL is available."
564
+ msgstr "Näyttää tapahtuman otsikon linkkinä, jos tapahtumaan on liitetty linkki."
565
+
566
+ #: my-calendar-help.php:81
567
+ msgid "Displays the name of the location of the event."
568
+ msgstr "Näyttää tapahtumapaikan nimen."
569
+
570
+ #: my-calendar-help.php:84
571
+ msgid "Displays the first line of the site address."
572
+ msgstr "Näyttää tapahtumapaikan osoitteen ensimmäisen rivin."
573
+
574
+ #: my-calendar-help.php:87
575
+ msgid "Displays the second line of the site address."
576
+ msgstr "Näyttää tapahtumapaikan osoitteen toisen rivin."
577
+
578
+ #: my-calendar-help.php:90
579
+ msgid "Displays the city for the event."
580
+ msgstr "Näyttää kaupungin, jossa tapahtuma on."
581
+
582
+ #: my-calendar-help.php:93
583
+ msgid "Displays the state for the event."
584
+ msgstr "Näyttää tapahtuman maakunnan."
585
+
586
+ #: my-calendar-help.php:96
587
+ msgid "Displays the postcode for the event."
588
+ msgstr "Näyttää tapahtuman postinumeron."
589
+
590
+ #: my-calendar-help.php:99
591
+ msgid "Displays the country for the event location."
592
+ msgstr "Näyttää tapahtumapaikan sijaintimaan."
593
+
594
+ #: my-calendar-help.php:102
595
+ msgid "Displays the event address in <a href=\"http://microformats.org/wiki/hcard\">hcard</a> format."
596
+ msgstr "Näyttää tapahtuman osoitteen <a href=\"http://microformats.org/wiki/hcard\">hcard</a>-muodossa."
597
+
598
+ #: my-calendar-help.php:105
599
+ msgid "Displays a link to a Google Map of the event, if sufficient address information is available. If not, will be empty."
600
+ msgstr "Näyttää linkin tapahtuman Google Karttaan, jos osoitetiedot ovat olemassa."
601
+
602
+ #: my-calendar-locations.php:18
603
+ msgid "Location added successfully"
604
+ msgstr "Tapahtumapaikka lisätty onnistuneesti"
605
+
606
+ #: my-calendar-locations.php:22
607
+ msgid "Location deleted successfully"
608
+ msgstr "Tapahtumapaikka poistettu onnistuneesti"
609
+
610
+ #: my-calendar-locations.php:27
611
+ msgid "Edit Location"
612
+ msgstr "Muokkaa tapahtumapaikkaa"
613
+
614
+ #: my-calendar-locations.php:31
615
+ msgid "Location Editor"
616
+ msgstr "Tapahtumapaikkatyökalu"
617
+
618
+ #: my-calendar-locations.php:70
619
+ msgid "Location edited successfully"
620
+ msgstr "Tapahtumapaikkaa muokattu onnistuneesti"
621
+
622
+ #: my-calendar-locations.php:76
623
+ #: my-calendar-locations.php:109
624
+ msgid "Add Location"
625
+ msgstr "Lisää tapahtumapaikka"
626
+
627
+ #: my-calendar-locations.php:80
628
+ msgid "Add New Location"
629
+ msgstr "Lisää uusi tapahtumapaikka"
630
+
631
+ #: my-calendar-locations.php:115
632
+ #: my-calendar.php:132
633
+ msgid "Manage Locations"
634
+ msgstr "Hallitse tapahtumapaikkoja"
635
+
636
+ #: my-calendar-locations.php:128
637
+ msgid "Location"
638
+ msgstr "Tapahtumapaikka"
639
+
640
+ #: my-calendar-locations.php:150
641
+ msgid "There are no locations in the database yet!"
642
+ msgstr "Tietokannassa ei vielä ole tapahtumapaikkoja!"
643
+
644
+ #: my-calendar-locations.php:154
645
+ msgid "Please note: editing or deleting locations stored for re-use will have no effect on any event previously scheduled at that location. The location database exists purely as a shorthand method to enter frequently used locations into event records."
646
+ msgstr "Huomaathan: tapahtumapaikkojen muokkaaminen tai poistaminen ei vaikuta jo luotuihin tapahtumiin. Tapahtumapaikkatietokanta on olemassa vain, jotta tapahtumien lisääminen olisi vaivattomampaa."
647
+
648
+ #: my-calendar-settings.php:67
649
+ msgid "Categories imported successfully."
650
+ msgstr "Luokat tuotu onnistuneesti."
651
+
652
+ #: my-calendar-settings.php:69
653
+ msgid "Categories not imported."
654
+ msgstr "Luokkia ei tuotu."
655
+
656
+ #: my-calendar-settings.php:72
657
+ msgid "Events imported successfully."
658
+ msgstr "Tapahtumat tuotu onnistuneesti."
659
+
660
+ #: my-calendar-settings.php:74
661
+ msgid "Events not imported."
662
+ msgstr "Tapahtumia ei tuotu."
663
+
664
+ #: my-calendar-settings.php:116
665
+ msgid "Settings saved"
666
+ msgstr "Asetukset tallennettu"
667
+
668
+ #: my-calendar-settings.php:139
669
+ msgid "My Calendar Options"
670
+ msgstr "My Calendar asetukset"
671
+
672
+ #: my-calendar-settings.php:143
673
+ msgid "Calendar Settings"
674
+ msgstr "Kalenterin asetukset"
675
+
676
+ #: my-calendar-settings.php:147
677
+ msgid "Primary Calendar Options"
678
+ msgstr "Ensisijaiset kalenteriasetukset"
679
+
680
+ #: my-calendar-settings.php:149
681
+ msgid "Choose the lowest user group that may manage events"
682
+ msgstr "Valitse heikoin rooli, jolla on oikeudet muokata tapahtumia"
683
+
684
+ #: my-calendar-settings.php:150
685
+ msgid "Subscriber"
686
+ msgstr "Tilaaja"
687
+
688
+ #: my-calendar-settings.php:151
689
+ msgid "Contributor"
690
+ msgstr "Avustaja"
691
+
692
+ #: my-calendar-settings.php:153
693
+ msgid "Editor"
694
+ msgstr "Päätoimittaja"
695
+
696
+ #: my-calendar-settings.php:154
697
+ msgid "Administrator"
698
+ msgstr "Pääkäyttäjä"
699
+
700
+ #: my-calendar-settings.php:158
701
+ msgid "Do you want to display the author name on events?"
702
+ msgstr "Haluatko näyttää tapahtuman julkaisijan nimen tapahtumien yhteydessä?"
703
+
704
+ #: my-calendar-settings.php:159
705
+ #: my-calendar-settings.php:168
706
+ msgid "Yes"
707
+ msgstr "Kyllä"
708
+
709
+ #: my-calendar-settings.php:160
710
+ #: my-calendar-settings.php:169
711
+ msgid "No"
712
+ msgstr "Ei"
713
+
714
+ #: my-calendar-settings.php:164
715
+ msgid "Show Heading for Calendar"
716
+ msgstr "Näytä otsikko kalenterille"
717
+
718
+ #: my-calendar-settings.php:167
719
+ msgid "Display a jumpbox for changing month and year quickly?"
720
+ msgstr "Näytetäänkö hyppylaatikko, jolla voit muuttaa tapahtuman kuukauden ja vuoden nopeasti?"
721
+
722
+ #: my-calendar-settings.php:173
723
+ msgid "In list mode, show how many months of events at a time:"
724
+ msgstr "Kuinka monen kuukauden tapahtumat näytetään listanäkymässä?"
725
+
726
+ #: my-calendar-settings.php:176
727
+ msgid "Date format in list mode"
728
+ msgstr "Päivämäärän muoto listanäkymässä"
729
+
730
+ #: my-calendar-settings.php:177
731
+ msgid "Date format uses the same syntax as the <a href=\"http://php.net/date\">PHP <code>date()</code> function</a>. Save option to update sample output."
732
+ msgstr "Päivämäärän muoto käyttää samaa syntaksia kuin <a href=\"http://php.net/date\">PHP <code>date()</code> funktio</a>. Tallenne niin näet esimerkin oikeassa muodossa."
733
+
734
+ #: my-calendar-settings.php:180
735
+ msgid "Show Link to Google Map (when sufficient address information is available.)"
736
+ msgstr "Näytä linkki Google Karttoihin (vain kun osoitetiedot ovat saatavilla)"
737
+
738
+ #: my-calendar-settings.php:181
739
+ msgid "Show Event Address in Details"
740
+ msgstr "Näytä tapahtuman osoite yksityiskohtaisten tietojen joukossa"
741
+
742
+ #: my-calendar-settings.php:185
743
+ msgid "Save Settings"
744
+ msgstr "Tallenna asetukset"
745
+
746
+ #: my-calendar-styles.php:36
747
+ msgid "Style Settings saved"
748
+ msgstr "Tyyliasetukset tallennettu"
749
+
750
+ #: my-calendar-styles.php:54
751
+ msgid "My Calendar Styles"
752
+ msgstr "My Calendar tyylit"
753
+
754
+ #: my-calendar-styles.php:58
755
+ msgid "Calendar Style Settings"
756
+ msgstr "Kalenterin tyyliasetukset"
757
+
758
+ #: my-calendar-styles.php:62
759
+ msgid "CSS Style Options"
760
+ msgstr "CSS-tyyliasetukset"
761
+
762
+ #: my-calendar-styles.php:64
763
+ msgid "Reset the My Calendar stylesheet to the default"
764
+ msgstr "Palauta My Calendar oletusasetukset"
765
+
766
+ #: my-calendar-styles.php:64
767
+ msgid "Disable My Calendar Stylesheet"
768
+ msgstr "Älä käytä My Calendar tyylisivua"
769
+
770
+ #: my-calendar-styles.php:67
771
+ msgid "Edit the stylesheet for My Calendar"
772
+ msgstr "Muokkaa My Calendar tyylisivua"
773
+
774
+ #: my-calendar-styles.php:71
775
+ msgid "Calendar Behaviors: Calendar View"
776
+ msgstr "Kalenterin käyttäytyminen: kalenterinäkymä"
777
+
778
+ #: my-calendar-styles.php:73
779
+ msgid "Reset the My Calendar Calendar Javascript"
780
+ msgstr "Palauta kalenterinäkymän oletus Javascript"
781
+
782
+ #: my-calendar-styles.php:73
783
+ msgid "Disable Calendar Javascript Effects"
784
+ msgstr "Älä käytä kalenterinäkymän Javascript efektejä"
785
+
786
+ #: my-calendar-styles.php:76
787
+ msgid "Edit the jQuery scripts for My Calendar in Calendar format"
788
+ msgstr "Muokkaa kalenterinäkymän jQuery-skriptejä"
789
+
790
+ #: my-calendar-styles.php:80
791
+ msgid "Calendar Behaviors: List View"
792
+ msgstr "Kalenterin käyttäytyminen: listanäkymä"
793
+
794
+ #: my-calendar-styles.php:82
795
+ msgid "Reset the My Calendar List Javascript"
796
+ msgstr "Palauta listanäkymän oletus Javascript"
797
+
798
+ #: my-calendar-styles.php:82
799
+ msgid "Disable List Javascript Effects"
800
+ msgstr "Älä käytä listanäkymän Javascript efektejä"
801
+
802
+ #: my-calendar-styles.php:85
803
+ msgid "Edit the jQuery scripts for My Calendar in List format"
804
+ msgstr "Muokkaa listanäkymän jQuery-skriptejä"
805
+
806
+ #: my-calendar-styles.php:89
807
+ msgid "Save"
808
+ msgstr "Tallenna"
809
+
810
+ #: my-calendar-widgets.php:11
811
+ #: my-calendar-widgets.php:42
812
+ #: my-calendar-widgets.php:43
813
+ msgid "Today's Events"
814
+ msgstr "Tapahtumat tänään"
815
+
816
+ #: my-calendar-widgets.php:36
817
+ #: my-calendar-widgets.php:117
818
+ msgid "Template"
819
+ msgstr "Kaava"
820
+
821
+ #: my-calendar-widgets.php:56
822
+ #: my-calendar-widgets.php:143
823
+ #: my-calendar-widgets.php:144
824
+ msgid "Upcoming Events"
825
+ msgstr "Tulevat tapahtumat"
826
+
827
+ #: my-calendar-widgets.php:121
828
+ msgid "Widget Options"
829
+ msgstr "Vimpaimen asetukset"
830
+
831
+ #: my-calendar-widgets.php:123
832
+ msgid "Display upcoming events by:"
833
+ msgstr "Tapahtumien näyttölogiikka"
834
+
835
+ #: my-calendar-widgets.php:124
836
+ msgid "Events (e.g. 2 past, 3 future)"
837
+ msgstr "Tapahtumat (esim. 2 mennyttä, 3 tulevaa)"
838
+
839
+ #: my-calendar-widgets.php:125
840
+ msgid "Dates (e.g. 4 days past, 5 forward)"
841
+ msgstr "Päivät (esim. 4 viimeisintä, 5 tulevaa)"
842
+
843
+ #: my-calendar-widgets.php:129
844
+ msgid "events into the future;"
845
+ msgstr "tulevaa tapahtumaa, "
846
+
847
+ #: my-calendar-widgets.php:130
848
+ msgid "events from the past"
849
+ msgstr "mennyttä tapahtumaa"
850
+
851
+ #: my-calendar-widgets.php:133
852
+ msgid "days into the future;"
853
+ msgstr "tulevaa päivää"
854
+
855
+ #: my-calendar-widgets.php:134
856
+ msgid "days from the past"
857
+ msgstr "mennyttä päivää"
858
+
859
+ #: my-calendar-widgets.php:137
860
+ msgid "Show only this category:"
861
+ msgstr "näytä vain tästä luokasta (nimi tai id):"
862
+
863
+ #: my-calendar-widgets.php:250
864
+ msgid "There are no events currently scheduled."
865
+ msgstr "Tapahtumia ei juuri nyt ole."
866
+
867
+ #: my-calendar.php:48
868
+ #: my-calendar.php:133
869
+ msgid "Settings"
870
+ msgstr "Asetukset"
871
+
872
+ #: my-calendar.php:69
873
+ msgid "Get Support"
874
+ msgstr "Tuki"
875
+
876
+ #: my-calendar.php:70
877
+ msgid "Make a Donation"
878
+ msgstr "Tee lahjoitus"
879
+
880
+ #. #-#-#-#-# plugin.pot (My Calendar 1.3.0) #-#-#-#-#
881
+ #. Plugin Name of the plugin/theme
882
+ #: my-calendar.php:124
883
+ msgid "My Calendar"
884
+ msgstr "Kalenteri"
885
+
886
+ #: my-calendar.php:127
887
+ msgid "Add/Edit Events"
888
+ msgstr "Lisää/muokkaa tapahtumia"
889
+
890
+ #: my-calendar.php:134
891
+ msgid "Style Editor"
892
+ msgstr "Tyyliasetukset"
893
+
894
+ #: my-calendar.php:135
895
+ msgid "My Calendar Help"
896
+ msgstr "My Calendar opastus"
897
+
898
+ #: my-calendar.php:135
899
+ msgid "Help"
900
+ msgstr "Opastus"
901
+
902
+ #: my-calendar.php:833
903
+ #: my-calendar.php:837
904
+ #: my-calendar.php:847
905
+ #: my-calendar.php:849
906
+ msgid "Next Events"
907
+ msgstr "Seuraavat tapahtumat"
908
+
909
+ #: my-calendar.php:862
910
+ #: my-calendar.php:866
911
+ #: my-calendar.php:876
912
+ #: my-calendar.php:878
913
+ msgid "Previous Events"
914
+ msgstr "Edelliset tapahtumat"
915
+
916
+ #: my-calendar.php:966
917
+ msgid "Event Details"
918
+ msgstr "Tapahtuman tiedot"
919
+
920
+ #: my-calendar.php:972
921
+ msgid "Not Applicable"
922
+ msgstr "Ei saatavilla"
923
+
924
+ #: my-calendar.php:980
925
+ msgid "Posted by"
926
+ msgstr "Julkaisija: "
927
+
928
+ #: my-calendar.php:1659
929
+ msgid "Month"
930
+ msgstr "Kuukausi"
931
+
932
+ #: my-calendar.php:1660
933
+ #: my-calendar.php:1723
934
+ msgid "January"
935
+ msgstr "tammikuu"
936
+
937
+ #: my-calendar.php:1661
938
+ #: my-calendar.php:1723
939
+ msgid "February"
940
+ msgstr "helmikuu"
941
+
942
+ #: my-calendar.php:1662
943
+ #: my-calendar.php:1723
944
+ msgid "March"
945
+ msgstr "maaliskuu"
946
+
947
+ #: my-calendar.php:1663
948
+ #: my-calendar.php:1723
949
+ msgid "April"
950
+ msgstr "huhtikuu"
951
+
952
+ #: my-calendar.php:1664
953
+ #: my-calendar.php:1723
954
+ msgid "May"
955
+ msgstr "toukokuu"
956
+
957
+ #: my-calendar.php:1665
958
+ #: my-calendar.php:1723
959
+ msgid "June"
960
+ msgstr "kesäkuu"
961
+
962
+ #: my-calendar.php:1666
963
+ #: my-calendar.php:1723
964
+ msgid "July"
965
+ msgstr "heinäkuu"
966
+
967
+ #: my-calendar.php:1667
968
+ #: my-calendar.php:1723
969
+ msgid "August"
970
+ msgstr "elokuu"
971
+
972
+ #: my-calendar.php:1668
973
+ #: my-calendar.php:1723
974
+ msgid "September"
975
+ msgstr "syyskuu"
976
+
977
+ #: my-calendar.php:1669
978
+ #: my-calendar.php:1723
979
+ msgid "October"
980
+ msgstr "lokakuu"
981
+
982
+ #: my-calendar.php:1670
983
+ #: my-calendar.php:1723
984
+ msgid "November"
985
+ msgstr "marraskuu"
986
+
987
+ #: my-calendar.php:1671
988
+ #: my-calendar.php:1723
989
+ msgid "December"
990
+ msgstr "joulukuu"
991
+
992
+ #: my-calendar.php:1673
993
+ msgid "Year"
994
+ msgstr "Vuosi"
995
+
996
+ #: my-calendar.php:1698
997
+ msgid "Go"
998
+ msgstr "Mene"
999
+
1000
+ #: my-calendar.php:1716
1001
+ #: my-calendar.php:1719
1002
+ msgid "<abbr title=\"Sunday\">Sun</abbr>"
1003
+ msgstr "<abbr title=\"Sunnuntai\">Su</abbr>"
1004
+
1005
+ #: my-calendar.php:1716
1006
+ #: my-calendar.php:1719
1007
+ msgid "<abbr title=\"Monday\">Mon</abbr>"
1008
+ msgstr "<abbr title=\"Maanantai\">Ma</abbr>"
1009
+
1010
+ #: my-calendar.php:1716
1011
+ #: my-calendar.php:1719
1012
+ msgid "<abbr title=\"Tuesday\">Tues</abbr>"
1013
+ msgstr "<abbr title=\"Tiistai\">Ti</abbr>"
1014
+
1015
+ #: my-calendar.php:1716
1016
+ #: my-calendar.php:1719
1017
+ msgid "<abbr title=\"Wednesday\">Wed</abbr>"
1018
+ msgstr "<abbr title=\"Keskiviikko\">Ke</abbr>"
1019
+
1020
+ #: my-calendar.php:1716
1021
+ #: my-calendar.php:1719
1022
+ msgid "<abbr title=\"Thursday\">Thur</abbr>"
1023
+ msgstr "<abbr title=\"Torstai\">To</abbr>"
1024
+
1025
+ #: my-calendar.php:1716
1026
+ #: my-calendar.php:1719
1027
+ msgid "<abbr title=\"Friday\">Fri</abbr>"
1028
+ msgstr "<abbr title=\"Perjantai\">Pe</abbr>"
1029
+
1030
+ #: my-calendar.php:1716
1031
+ #: my-calendar.php:1719
1032
+ msgid "<abbr title=\"Saturday\">Sat</abbr>"
1033
+ msgstr "<abbr title=\"Lauantai\">La</abbr>"
1034
+
1035
+ #: my-calendar.php:1778
1036
+ msgid "and"
1037
+ msgstr "ja"
1038
+
1039
+ #: my-calendar.php:1806
1040
+ #: my-calendar.php:1810
1041
+ msgid "Calendar"
1042
+ msgstr "Kalenteri"
1043
+
1044
+ #: my-calendar.php:1814
1045
+ msgid "Events in"
1046
+ msgstr "Tapahtumat"
1047
+
1048
+ #: my-calendar.php:1923
1049
+ msgid "There are no events scheduled during this period."
1050
+ msgstr "Tällä aikavälillä ei ole tapahtumia."
1051
+
1052
+ #: my-calendar.php:1933
1053
+ msgid "Category Key"
1054
+ msgstr "Luokan avain"
1055
+
1056
+ #. Plugin URI of the plugin/theme
1057
+ msgid "http://www.joedolson.com/articles/my-calendar/"
1058
+ msgstr "http://www.joedolson.com/articles/my-calendar/"
1059
+
1060
+ #. Description of the plugin/theme
1061
+ msgid "Accessible WordPress event calendar plugin. Show events from multiple calendars on pages, in posts, or in widgets."
1062
+ msgstr "Tapahtumakalenteri Wordpressiin. Näytä tapahtumia useasta eri kalenterista sivuilla, artikkeleissa tai vimpaimissa."
1063
+
1064
+ #. Author of the plugin/theme
1065
+ msgid "Joseph C Dolson"
1066
+ msgstr "Joseph C Dolson"
1067
+
1068
+ #. Author URI of the plugin/theme
1069
+ msgid "http://www.joedolson.com"
1070
+ msgstr "http://www.joedolson.com"
1071
+
my-calendar-help.php CHANGED
@@ -15,14 +15,14 @@ function my_calendar_help() {
15
<li><code>[my_calendar]</code><br />
16
<?php _e('This basic shortcode will show the calendar on a post or page including all categories and the category key, in a traditional month-by-month format.','my-calendar'); ?>
17
</li>
18
- <li><code>[my_calendar category="General" format="list" showkey="no"]</code><br />
19
- <?php _e('The shortcode supports three attributes, <code>category</code>, <code>format</code> and <code>showkey</code>. There is currently only one alternate option for <code>format</code> &mdash; <code>list</code> &mdash; which will show the calendar in a list format, skipping dates without any events. The <code>category</code> attribute requires either the name of or ID number one of your event categories (the name is case-sensitive). This will show a calendar only including events in that category. Setting <code>showkey</code> to <code>no</code> will prevent the category key from being displayed &mdash; this can be useful with single-category output.','my-calendar'); ?>
20
</li>
21
- <li><code>[my_calendar_upcoming before="3" after="3" type="event" category="General"]</code><br />
22
- <?php _e('This shortcode displays the output of the Upcoming Events widget. Without attributes, it will display using the settings in your widget; the attributes are used to override the widget settings.The <code>before</code> and <code>after</code> attributes should be numbers; the <code>type</code> attribute can be either "event" or "date", and the <code>category</code> attribute works the same way as the category attribute on the main calendar shortcode.','my-calendar'); ?>
23
</li>
24
- <li><code>[my_calendar_today category="General"]</code><br />
25
- <?php _e('Predictably enough, this shortcode displays the output of the Today\'s Events widget, with one configurable category attribute.','my-calendar'); ?>
26
</li>
27
</ul>
28
</div>
15
<li><code>[my_calendar]</code><br />
16
<?php _e('This basic shortcode will show the calendar on a post or page including all categories and the category key, in a traditional month-by-month format.','my-calendar'); ?>
17
</li>
18
+ <li><code>[my_calendar category="General|Other" format="list" showkey="no"]</code><br />
19
+ <?php _e('The shortcode supports three attributes, <code>category</code>, <code>format</code> and <code>showkey</code>. There is currently only one alternate option for <code>format</code> &mdash; <code>list</code> &mdash; which will show the calendar in a list format, skipping dates without any events. The <code>category</code> attribute requires either the name of or ID number one of your event categories (the name is case-sensitive). This will show a calendar only including events in that category. Multiple categories can be specified by separating the category names or IDs using the pipe character: <code>|</code>. Setting <code>showkey</code> to <code>no</code> will prevent the category key from being displayed &mdash; this can be useful with single-category output.','my-calendar'); ?>
20
</li>
21
+ <li><code>[my_calendar_upcoming before="3" after="3" type="event" category="General" template="{title} {date}"]</code><br />
22
+ <?php _e('This shortcode displays the output of the Upcoming Events widget. Without attributes, it will display using the settings in your widget; the attributes are used to override the widget settings. The <code>before</code> and <code>after</code> attributes should be numbers; the <code>type</code> attribute can be either "event" or "days", and the <code>category</code> attribute works the same way as the category attribute on the main calendar shortcode. Templates work using the template codes listed below.','my-calendar'); ?>
23
</li>
24
+ <li><code>[my_calendar_today category="" template="{title} {date}"]</code><br />
25
+ <?php _e('Predictably enough, this shortcode displays the output of the Today\'s Events widget, with two configurable attributes: category and template.','my-calendar'); ?>
26
</li>
27
</ul>
28
</div>
my-calendar-locations.php ADDED
@@ -0,0 +1,164 @@
1
+ <?php
2
+ // Function to handle the management of locations
3
+
4
+ function my_calendar_manage_locations() {
5
+ global $wpdb;
6
+
7
+ // My Calendar must be installed and upgraded before this will work
8
+ check_my_calendar();
9
+
10
+
11
+ ?>
12
+ <div class="wrap">
13
+ <?php
14
+ // We do some checking to see what we're doing
15
+ if (isset($_POST['mode']) && $_POST['mode'] == 'add') {
16
+ $sql = "INSERT INTO " . MY_CALENDAR_LOCATIONS_TABLE . " SET location_label='".mysql_real_escape_string($_POST['location_label'])."', location_street='".mysql_real_escape_string($_POST['location_street'])."', location_street2='".mysql_real_escape_string($_POST['location_street2'])."', location_city='".mysql_real_escape_string($_POST['location_city'])."', location_state='".mysql_real_escape_string($_POST['location_state'])."', location_postcode='".mysql_real_escape_string($_POST['location_postcode'])."', location_country='".mysql_real_escape_string($_POST['location_country'])."'";
17
+ $wpdb->get_results($sql);
18
+ echo "<div class=\"updated\"><p><strong>".__('Location added successfully','my-calendar')."</strong></p></div>";
19
+ } else if (isset($_GET['mode']) && isset($_GET['location_id']) && $_GET['mode'] == 'delete') {
20
+ $sql = "DELETE FROM " . MY_CALENDAR_LOCATIONS_TABLE . " WHERE location_id=".mysql_real_escape_string($_GET['location_id']);
21
+ $wpdb->get_results($sql);
22
+ echo "<div class=\"updated\"><p><strong>".__('Location deleted successfully','my-calendar')."</strong></p></div>";
23
+ } else if (isset($_GET['mode']) && isset($_GET['location_id']) && $_GET['mode'] == 'edit' && !isset($_POST['mode'])) {
24
+ $sql = "SELECT * FROM " . MY_CALENDAR_LOCATIONS_TABLE . " WHERE location_id=".mysql_real_escape_string($_GET['location_id']);
25
+ $cur_loc = $wpdb->get_row($sql);
26
+ ?>
27
+ <h2><?php _e('Edit Location','my-calendar'); ?></h2>
28
+ <?php jd_show_support_box(); ?>
29
+ <div id="poststuff" class="jd-my-calendar">
30
+ <div class="postbox">
31
+ <h3><?php _e('Location Editor','my-calendar'); ?></h3>
32
+ <div class="inside">
33
+ <form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-locations">
34
+ <div>
35
+ <input type="hidden" name="mode" value="edit" />
36
+ <input type="hidden" name="location_id" value="<?php echo $cur_loc->location_id ?>" />
37
+ </div>
38
+ <fieldset>
39
+ <legend>Event Location</legend>
40
+ <p>
41
+ <?php _e('All location fields are optional: <em>insufficient information may result in an inaccurate map</em>.','my-calendar'); ?>
42
+ </p>
43
+ <p>
44
+ <label for="location_label"><?php _e('Name of Location (e.g. <em>Joe\'s Bar and Grill</em>)','my-calendar'); ?></label> <input type="text" id="location_label" name="location_label" class="input" size="40" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars(stripslashes($cur_loc->location_label)); ?>" />
45
+ </p>
46
+ <p>
47
+ <label for="location_street"><?php _e('Street Address','my-calendar'); ?></label> <input type="text" id="location_street" name="location_street" class="input" size="40" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars(stripslashes($cur_loc->location_street)); ?>" />
48
+ </p>
49
+ <p>
50
+ <label for="location_street2"><?php _e('Street Address (2)','my-calendar'); ?></label> <input type="text" id="location_street2" name="location_street2" class="input" size="40" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars(stripslashes($cur_loc->location_street2)); ?>" />
51
+ </p>
52
+ <p>
53
+ <label for="location_city"><?php _e('City','my-calendar'); ?></label> <input type="text" id="location_city" name="location_city" class="input" size="40" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars(stripslashes($cur_loc->location_city)); ?>" /> <label for="location_state"><?php _e('State/Province','my-calendar'); ?></label> <input type="text" id="location_state" name="location_state" class="input" size="10" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars($cur_loc->location_state); ?>" /> <label for="location_postcode"><?php _e('Postal Code','my-calendar'); ?></label> <input type="text" id="location_postcode" name="location_postcode" class="input" size="10" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars($cur_loc->location_postcode); ?>" />
54
+ </p>
55
+ <p>
56
+ <label for="location_country"><?php _e('Country','my-calendar'); ?></label> <input type="text" id="location_country" name="location_country" class="input" size="10" value="<?php if ( !empty($cur_loc) ) echo htmlspecialchars(stripslashes($cur_loc->location_country)); ?>" />
57
+ </p>
58
+ </fieldset>
59
+ <p>
60
+ <input type="submit" name="save" class="button-primary" value="<?php _e('Save Changes','my-calendar'); ?> &raquo;" />
61
+ </p>
62
+ </form>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ <?php
67
+ } else if (isset($_POST['mode']) && isset($_POST['location_id']) && isset($_POST['location_label']) && isset($_POST['location_street']) && $_POST['mode'] == 'edit') {
68
+ $sql = "UPDATE " . MY_CALENDAR_LOCATIONS_TABLE . " SET location_label='".mysql_real_escape_string($_POST['location_label'])."', location_street='".mysql_real_escape_string($_POST['location_street'])."', location_street2='".mysql_real_escape_string($_POST['location_street2'])."', location_city='".mysql_real_escape_string($_POST['location_city'])."', location_state='".mysql_real_escape_string($_POST['location_state'])."', location_postcode='".mysql_real_escape_string($_POST['location_postcode'])."', location_country='".mysql_real_escape_string($_POST['location_country'])."' WHERE location_id=".mysql_real_escape_string($_POST['location_id']);
69
+ $wpdb->get_results($sql);
70
+ echo "<div class=\"updated\"><p><strong>".__('Location edited successfully','my-calendar')."</strong></p></div>";
71
+ }
72
+
73
+ if ($_GET['mode'] != 'edit' || $_POST['mode'] == 'edit') {
74
+ ?>
75
+
76
+ <h2><?php _e('Add Location','my-calendar'); ?></h2>
77
+ <?php jd_show_support_box(); ?>
78
+ <div id="poststuff" class="jd-my-calendar">
79
+ <div class="postbox">
80
+ <h3><?php _e('Add New Location','my-calendar'); ?></h3>
81
+ <div class="inside">
82
+ <form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-locations">
83
+ <div>
84
+ <input type="hidden" name="mode" value="add" />
85
+ <input type="hidden" name="location_id" value="" />
86
+ </div>
87
+ <fieldset>
88
+ <legend>Event Location</legend>
89
+ <p>
90
+ <?php _e('All location fields are optional: <em>insufficient information may result in an inaccurate map</em>.','my-calendar'); ?>
91
+ </p>
92
+ <p>
93
+ <label for="location_label"><?php _e('Name of Location (e.g. <em>Joe\'s Bar and Grill</em>)','my-calendar'); ?></label> <input type="text" id="location_label" name="location_label" class="input" size="40" value="" />
94
+ </p>
95
+ <p>
96
+ <label for="location_street"><?php _e('Street Address','my-calendar'); ?></label> <input type="text" id="location_street" name="location_street" class="input" size="40" value="" />
97
+ </p>
98
+ <p>
99
+ <label for="location_street2"><?php _e('Street Address (2)','my-calendar'); ?></label> <input type="text" id="location_street2" name="location_street2" class="input" size="40" value="" />
100
+ </p>
101
+ <p>
102
+ <label for="location_city"><?php _e('City','my-calendar'); ?></label> <input type="text" id="location_city" name="location_city" class="input" size="40" value="" /> <label for="location_state"><?php _e('State/Province','my-calendar'); ?></label> <input type="text" id="location_state" name="location_state" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->location_state); ?>" /> <label for="location_postcode"><?php _e('Postal Code','my-calendar'); ?></label> <input type="text" id="location_postcode" name="location_postcode" class="input" size="10" value="<?php if ( !empty($data) ) echo htmlspecialchars($data->location_postcode); ?>" />
103
+ </p>
104
+ <p>
105
+ <label for="location_country"><?php _e('Country','my-calendar'); ?></label> <input type="text" id="location_country" name="location_country" class="input" size="10" value="" />
106
+ </p>
107
+ </fieldset>
108
+ <p>
109
+ <input type="submit" name="save" class="button-primary" value="<?php _e('Add Location','my-calendar'); ?> &raquo;" />
110
+ </p>
111
+ </form>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ <h2><?php _e('Manage Locations','my-calendar'); ?></h2>
116
+ <?php
117
+
118
+ // We pull the locations from the database
119
+ $locations = $wpdb->get_results("SELECT * FROM " . MY_CALENDAR_LOCATIONS_TABLE . " ORDER BY location_id ASC");
120
+
121
+ if ( !empty($locations) )
122
+ {
123
+ ?>
124
+ <table class="widefat page fixed" id="my-calendar-location-listing" summary="Manage Locations Listing">
125
+ <thead>
126
+ <tr>
127
+ <th class="manage-column" scope="col"><?php _e('ID','my-calendar') ?></th>
128
+ <th class="manage-column" scope="col"><?php _e('Location','my-calendar') ?></th>
129
+ <th class="manage-column" scope="col"><?php _e('Edit','my-calendar') ?></th>
130
+ <th class="manage-column" scope="col"><?php _e('Delete','my-calendar') ?></th>
131
+ </tr>
132
+ </thead>
133
+ <?php
134
+ $class = '';
135
+ foreach ( $locations as $location ) {
136
+ $class = ($class == 'alternate') ? '' : 'alternate';
137
+ ?>
138
+ <tr class="<?php echo $class; ?>">
139
+ <th scope="row"><?php echo $location->location_id; ?></th>
140
+ <td><?php echo stripslashes($location->location_label) . "<br />" . stripslashes($location->location_street) . "<br />" . stripslashes($location->location_street2) . "<br />" . stripslashes($location->location_city) . ", " . stripslashes($location->location_state) . " " . stripslashes($location->location_postcode); ?></td>
141
+ <td><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-locations&amp;mode=edit&amp;location_id=<?php echo $location->location_id;?>" class='edit'><?php echo __('Edit','my-calendar'); ?></a></td>
142
+ <td><a href="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-locations&amp;mode=delete&amp;location_id=<?php echo $category->location_id;?>" class="delete" onclick="return confirm('<?php echo __('Are you sure you want to delete this category?','my-calendar'); ?>')"><?php echo __('Delete','my-calendar'); ?></a></td>
143
+ </tr>
144
+ <?php
145
+ }
146
+ ?>
147
+ </table>
148
+ <?php
149
+ } else {
150
+ echo '<p>'.__('There are no locations in the database yet!','my-calendar').'</p>';
151
+ }
152
+ ?>
153
+ <p>
154
+ <em><?php _e('Please note: editing or deleting locations stored for re-use will have no effect on any event previously scheduled at that location. The location database exists purely as a shorthand method to enter frequently used locations into event records.','my-calendar'); ?>
155
+ </p>
156
+ </div>
157
+
158
+ <?php
159
+ }
160
+ ?>
161
+ </div>
162
+ <?php
163
+ }
164
+ ?>
my-calendar-settings.php CHANGED
@@ -1,16 +1,18 @@
1
<?php
2
// Display the admin configuration page
3
4
- if ($_POST['import'] == 'true') {
5
- my_calendar_import();
6
- }
7
-
8
function my_calendar_import() {
9
if ( get_option('ko_calendar_imported') != 'true' ) {
10
global $wpdb;
11
define('KO_CALENDAR_TABLE', $wpdb->prefix . 'calendar');
12
define('KO_CALENDAR_CATS', $wpdb->prefix . 'calendar_categories');
13
$events = $wpdb->get_results("SELECT * FROM " . KO_CALENDAR_TABLE, 'ARRAY_A');
14
$sql = "";
15
foreach ($events as $key) {
16
$title = mysql_real_escape_string($key['event_title']);
@@ -24,7 +26,7 @@ global $wpdb;
24
$category = mysql_real_escape_string($key['event_category']);
25
$linky = mysql_real_escape_string($key['event_link']);
26
27
- $sql .= "INSERT INTO " . MY_CALENDAR_TABLE . " SET
28
event_title='" . ($title) . "',
29
event_desc='" . ($desc) . "',
30
event_begin='" . ($begin) . "',
@@ -34,24 +36,33 @@ global $wpdb;
34
event_repeats='" . ($repeats) . "',
35
event_author=".($author).",
36
event_category=".($category).",
37
- event_link='".($linky)."';";
38
}
39
$cats = $wpdb->get_results("SELECT * FROM " . KO_CALENDAR_CATS, 'ARRAY_A');
40
$catsql = "";
41
foreach ($cats as $key) {
42
$name = mysql_real_escape_string($key['category_name']);
43
$color = mysql_real_escape_string($key['category_colour']);
44
$id = mysql_real_escape_string($key['category_id']);
45
46
- if ($id != '1') {
47
- $catsql .= "INSERT INTO " . MY_CALENDAR_CATEGORIES_TABLE . " SET
48
- category_id='".$id."',
49
- category_name='".$name."',
50
- category_color='".$color."';";
51
- }
52
- }
53
- $cats_results = $wpdb->query($catsql);
54
- $events_results = $wpdb->query($sql);
55
if ($cats_results !== false) {
56
$message = __('Categories imported successfully.','my-calendar');
57
} else {
@@ -62,19 +73,21 @@ global $wpdb;
62
} else {
63
$e_message = __('Events not imported.','my-calendar');
64
}
65
- $return_value = "<div id='message' class='updated fade'><p><strong>$message</strong><br /><strong>$e_message</strong></p></div>";
66
echo $return_value;
67
- add_option( 'ko_calendar_imported','true' );
68
}
69
}
70
71
function edit_my_calendar_config() {
72
- global $wpdb, $initial_style;
73
74
// We can't use this page unless My Calendar is installed/upgraded
75
check_my_calendar();
76
77
- if (isset($_POST['permissions']) && isset($_POST['style'])) {
78
79
if ($_POST['permissions'] == 'subscriber') { $new_perms = 'read'; }
80
else if ($_POST['permissions'] == 'contributor') { $new_perms = 'edit_posts'; }
@@ -83,45 +96,38 @@ function edit_my_calendar_config() {
83
else if ($_POST['permissions'] == 'admin') { $new_perms = 'manage_options'; }
84
else { $new_perms = 'manage_options'; }
85
86
- $my_calendar_style = $_POST['style'];
87
$my_calendar_show_months = (int) $_POST['my_calendar_show_months'];
88
$my_calendar_date_format = $_POST['my_calendar_date_format'];
89
90
$disp_author = ($_POST['display_author']=='on')?'true':'false';
91
$disp_jump = ($_POST['display_jump']=='on')?'true':'false';
92
- $use_styles = ($_POST['use_styles']=='on')?'true':'false';
93
$my_calendar_show_map = ($_POST['my_calendar_show_map']=='on')?'true':'false';
94
$my_calendar_show_address = ($_POST['my_calendar_show_address']=='on')?'true':'false';
95
96
update_option('can_manage_events',$new_perms);
97
- update_option('my_calendar_style',$my_calendar_style);
98
update_option('display_author',$disp_author);
99
update_option('display_jump',$disp_jump);
100
- update_option('my_calendar_use_styles',$use_styles);
101
update_option('my_calendar_show_months',$my_calendar_show_months);
102
update_option('my_calendar_date_format',$my_calendar_date_format);
103
update_option('my_calendar_show_map',$my_calendar_show_map);
104
update_option('my_calendar_show_address',$my_calendar_show_address);
105
- update_option('calendar_javascript', (int) $_POST['calendar_javascript']);
106
- update_option('list_javascript', (int) $_POST['list_javascript']);
107
- // Check to see if we are replacing the original style
108
-
109
- if ( $_POST['reset_styles'] == 'on') {
110
- update_option('my_calendar_style',$initial_style);
111
- }
112
echo "<div class=\"updated\"><p><strong>".__('Settings saved','my-calendar').".</strong></p></div>";
113
}
114
115
// Pull the values out of the database that we need for the form
116
$allowed_group = get_option('can_manage_events');
117
- $my_calendar_style = stripcslashes(get_option('my_calendar_style'));
118
- $my_calendar_use_styles = get_option('my_calendar_use_styles');
119
$my_calendar_show_months = get_option('my_calendar_show_months');
120
$my_calendar_show_map = get_option('my_calendar_show_map');
121
$my_calendar_show_address = get_option('my_calendar_show_address');
122
$disp_author = get_option('display_author');
123
- $calendar_javascript = get_option('calendar_javascript');
124
- $list_javascript = get_option('list_javascript');
125
// checkbox
126
$disp_jump = get_option('display_jump');
127
//checkbox
@@ -144,62 +150,66 @@ function edit_my_calendar_config() {
144
<div class="inside">
145
<form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
146
<fieldset>
147
- <legend><?php _e('Primary Calendar Options','my-calendar'); ?></legend>
148
<p>
149
<label for="permissions"><?php _e('Choose the lowest user group that may manage events','my-calendar'); ?></label> <select id="permissions" name="permissions">
150
- <option value="subscriber"<?php echo $subscriber_selected ?>><?php _e('Subscriber','my-calendar')?></option>
151
- <option value="contributor" <?php echo $contributor_selected ?>><?php _e('Contributor','my-calendar')?></option>
152
- <option value="author" <?php echo $author_selected ?>><?php _e('Author','my-calendar')?></option>
153
- <option value="editor" <?php echo $editor_selected ?>><?php _e('Editor','my-calendar')?></option>
154
- <option value="admin" <?php echo $admin_selected ?>><?php _e('Administrator','my-calendar')?></option>
155
- </select>
156
</p>
157
<p>
158
<label for="display_author"><?php _e('Do you want to display the author name on events?','my-calendar'); ?></label> <select id="display_author" name="display_author">
159
- <option value="on" <?php jd_cal_checkSelect('display_author','true'); ?>><?php _e('Yes','my-calendar') ?></option>
160
- <option value="off" <?php jd_cal_checkSelect('display_author','false'); ?>><?php _e('No','my-calendar') ?></option>
161
- </select>
162
</p>
163
<p>
164
<label for="display_jump"><?php _e('Display a jumpbox for changing month and year quickly?','my-calendar'); ?></label> <select id="display_jump" name="display_jump">
165
- <option value="on" <?php jd_cal_checkSelect('display_jump','true'); ?>><?php _e('Yes','my-calendar') ?></option>
166
- <option value="off" <?php jd_cal_checkSelect('display_jump','false'); ?>><?php _e('No','my-calendar') ?></option>
167
- </select>
168
</p>
169
<p>
170
<label for="my_calendar_show_months"><?php _e('In list mode, show how many months of events at a time:','my-calendar'); ?></label> <input type="text" size="3" id="my_calendar_show_months" name="my_calendar_show_months" value="<?php echo $my_calendar_show_months; ?>" />
171
</p>
172
<p>
173
- <label for="my_calendar_date_format"><?php _e('Date format in list mode','my-calendar'); ?></label> <input type="text" id="my_calendar_date_format" name="my_calendar_date_format" value="<?php if ( get_option('my_calendar_date_format') == "") { echo get_option('date_format'); } else { echo get_option( 'my_calendar_date_format'); } ?>" /> Current: <?php if ( get_option('my_calendar_date_format') == '') { echo date(get_option('date_format')); } else { echo date(get_option('my_calendar_date_format')); } ?><br />
174
<small><?php _e('Date format uses the same syntax as the <a href="http://php.net/date">PHP <code>date()</code> function</a>. Save option to update sample output.','my-calendar'); ?></small>
175
</p>
176
<p>
177
- <input type="checkbox" id="my_calendar_show_map" name="my_calendar_show_map" <?php jd_cal_checkCheckbox('my_calendar_show_map','true'); ?> /> <label for="my_calendar_show_map"><?php _e('Show Link to Google Map (when sufficient address information is available.)','my-calendar'); ?></label><br />
178
- <input type="checkbox" id="my_calendar_show_address" name="my_calendar_show_address" <?php jd_cal_checkCheckbox('my_calendar_show_address','true'); ?> /> <label for="my_calendar_show_address"><?php _e('Show Event Address in Details','my-calendar'); ?></label>
179
</p>
180
- </fieldset>
181
- <fieldset>
182
- <legend><?php _e('Calendar Styles','my-calendar'); ?></legend>
183
<p>
184
- <input type="checkbox" id="reset_styles" name="reset_styles" /> <label for="reset_styles"><?php _e('Reset the My Calendar style to default','my-calendar'); ?></label><br />
185
- <input type="checkbox" id="use_styles" name="use_styles" <?php jd_cal_checkCheckbox('my_calendar_use_styles','true'); ?> /> <label for="use_styles"><?php _e('Disable My Calendar Stylesheet','my-calendar'); ?></label>
186
- </p>
187
<p>
188
- <label for="style"><?php _e('Edit the stylesheet for My Calendar','my-calendar'); ?></label><br /><textarea id="style" name="style" rows="10" cols="60" tabindex="2"><?php echo $my_calendar_style; ?></textarea>
189
- </p>
190
- </fieldset>
191
- <fieldset>
192
- <legend><?php _e('Calendar Behaviors','my-calendar'); ?></legend>
193
<p>
194
- <input type="checkbox" id="list_javascript" name="list_javascript" value="1" <?php jd_cal_checkCheckbox('list_javascript',1); ?> /> <label for="list_javascript"><?php _e('Disable List Javascript Effects','my-calendar'); ?></label><br />
195
- <input type="checkbox" id="calendar_javascript" name="calendar_javascript" value="1" <?php jd_cal_checkCheckbox('calendar_javascript',1); ?>/> <label for="calendar_javascript"><?php _e('Disable Calendar Javascript Effects','my-calendar'); ?></label>
196
</p>
197
<p>
198
- <input type="submit" name="save" class="button-primary" value="<?php _e('Save','my-calendar'); ?> &raquo;" />
199
</p>
200
</form>
201
<?php
202
- if ( get_option('ko_calendar_imported') != 'true' ) {
203
if (function_exists('check_calendar')) {
204
echo "<div class='import'>";
205
echo "<p>";
@@ -209,7 +219,7 @@ if ( get_option('ko_calendar_imported') != 'true' ) {
209
<form method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
210
<div>
211
<input type="hidden" name="import" value="true" />
212
- <input type="submit" value="Import from Calendar" name="import-calendar" class="button-primary" />
213
</div>
214
</form>
215
<?php
1
<?php
2
// Display the admin configuration page
3
4
+ if ($_POST['import'] == 'true') {
5
+ my_calendar_import();
6
+ }
7
+
8
function my_calendar_import() {
9
if ( get_option('ko_calendar_imported') != 'true' ) {
10
global $wpdb;
11
+ $wpdb->hide_errors();
12
define('KO_CALENDAR_TABLE', $wpdb->prefix . 'calendar');
13
define('KO_CALENDAR_CATS', $wpdb->prefix . 'calendar_categories');
14
$events = $wpdb->get_results("SELECT * FROM " . KO_CALENDAR_TABLE, 'ARRAY_A');
15
+ $wpdb->print_error();
16
$sql = "";
17
foreach ($events as $key) {
18
$title = mysql_real_escape_string($key['event_title']);
26
$category = mysql_real_escape_string($key['event_category']);
27
$linky = mysql_real_escape_string($key['event_link']);
28
29
+ $sql = "INSERT INTO " . MY_CALENDAR_TABLE . " SET
30
event_title='" . ($title) . "',
31
event_desc='" . ($desc) . "',
32
event_begin='" . ($begin) . "',
36
event_repeats='" . ($repeats) . "',
37
event_author=".($author).",
38
event_category=".($category).",
39
+ event_link='".($linky)."';
40
+ ";
41
+ $events_results = $wpdb->query($sql);
42
+ $wpdb->print_error();
43
}
44
$cats = $wpdb->get_results("SELECT * FROM " . KO_CALENDAR_CATS, 'ARRAY_A');
45
+ $wpdb->print_error();
46
+
47
$catsql = "";
48
foreach ($cats as $key) {
49
$name = mysql_real_escape_string($key['category_name']);
50
$color = mysql_real_escape_string($key['category_colour']);
51
$id = mysql_real_escape_string($key['category_id']);
52
53
+ $catsql = "INSERT INTO " . MY_CALENDAR_CATEGORIES_TABLE . " SET
54
+ category_id='".$id."',
55
+ category_name='".$name."',
56
+ category_color='".$color."'
57
+ ON DUPLICATE KEY UPDATE
58
+ category_name='".$name."',
59
+ category_color='".$color."';
60
+ ";
61
+ $cats_results = $wpdb->query($catsql);
62
+ $wpdb->print_error();
63
+ }
64
+
65
+
66
if ($cats_results !== false) {
67
$message = __('Categories imported successfully.','my-calendar');
68
} else {
73
} else {
74
$e_message = __('Events not imported.','my-calendar');
75
}
76
+ $return_value = "<div id='message' class='updated fade'><ul><li>$message</li><li>$e_message</li></ul></div>";
77
echo $return_value;
78
+ if ( $cats_results !== false && $events_results !== false ) {
79
+ update_option( 'ko_calendar_imported','true' );
80
+ }
81
}
82
}
83
84
function edit_my_calendar_config() {
85
+ global $wpdb;
86
87
// We can't use this page unless My Calendar is installed/upgraded
88
check_my_calendar();
89
90
+ if (isset($_POST['permissions'])) {
91
92
if ($_POST['permissions'] == 'subscriber') { $new_perms = 'read'; }
93
else if ($_POST['permissions'] == 'contributor') { $new_perms = 'edit_posts'; }
96
else if ($_POST['permissions'] == 'admin') { $new_perms = 'manage_options'; }
97
else { $new_perms = 'manage_options'; }
98
99
$my_calendar_show_months = (int) $_POST['my_calendar_show_months'];
100
$my_calendar_date_format = $_POST['my_calendar_date_format'];
101
102
$disp_author = ($_POST['display_author']=='on')?'true':'false';
103
$disp_jump = ($_POST['display_jump']=='on')?'true':'false';
104
$my_calendar_show_map = ($_POST['my_calendar_show_map']=='on')?'true':'false';
105
$my_calendar_show_address = ($_POST['my_calendar_show_address']=='on')?'true':'false';
106
+ $my_calendar_show_heading = ($_POST['my_calendar_show_heading']=='on')?'true':'false';
107
+ $my_calendar_notime_text = $_POST['my_calendar_notime_text'];
108
+ $my_calendar_hide_icons = ($_POST['my_calendar_hide_icons']=='on')?'true':'false';
109
+ $my_calendar_caption = $_POST['my_calendar_caption'];
110
111
update_option('can_manage_events',$new_perms);
112
update_option('display_author',$disp_author);
113
update_option('display_jump',$disp_jump);
114
update_option('my_calendar_show_months',$my_calendar_show_months);
115
update_option('my_calendar_date_format',$my_calendar_date_format);
116
update_option('my_calendar_show_map',$my_calendar_show_map);
117
update_option('my_calendar_show_address',$my_calendar_show_address);
118
+ update_option('my_calendar_show_heading',$my_calendar_show_heading);
119
+ update_option('my_calendar_notime_text',$my_calendar_notime_text);
120
+ update_option('my_calendar_hide_icons',$my_calendar_hide_icons);
121
+ update_option('my_calendar_caption',$my_calendar_caption);
122
echo "<div class=\"updated\"><p><strong>".__('Settings saved','my-calendar').".</strong></p></div>";
123
}
124
125
// Pull the values out of the database that we need for the form
126
$allowed_group = get_option('can_manage_events');
127
$my_calendar_show_months = get_option('my_calendar_show_months');
128
$my_calendar_show_map = get_option('my_calendar_show_map');
129
$my_calendar_show_address = get_option('my_calendar_show_address');
130
$disp_author = get_option('display_author');
131
// checkbox
132
$disp_jump = get_option('display_jump');
133
//checkbox
150
<div class="inside">
151
<form name="my-calendar" id="my-calendar" method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
152
<fieldset>
153
+ <legend><?php _e('Calendar Options: Management','my-calendar'); ?></legend>
154
<p>
155
<label for="permissions"><?php _e('Choose the lowest user group that may manage events','my-calendar'); ?></label> <select id="permissions" name="permissions">
156
+ <option value="subscriber"<?php echo $subscriber_selected ?>><?php _e('Subscriber','my-calendar')?></option>
157
+ <option value="contributor" <?php echo $contributor_selected ?>><?php _e('Contributor','my-calendar')?></option>
158
+ <option value="author" <?php echo $author_selected ?>><?php _e('Author','my-calendar')?></option>
159
+ <option value="editor" <?php echo $editor_selected ?>><?php _e('Editor','my-calendar')?></option>
160
+ <option value="admin" <?php echo $admin_selected ?>><?php _e('Administrator','my-calendar')?></option>
161
+ </select>
162
</p>
163
+ </fieldset>
164
+ <fieldset>
165
+ <legend><?php _e('Calendar Options: Output','my-calendar'); ?></legend>
166
<p>
167
<label for="display_author"><?php _e('Do you want to display the author name on events?','my-calendar'); ?></label> <select id="display_author" name="display_author">
168
+ <option value="on" <?php jd_cal_checkSelect('display_author','true'); ?>><?php _e('Yes','my-calendar') ?></option>
169
+ <option value="off" <?php jd_cal_checkSelect('display_author','false'); ?>><?php _e('No','my-calendar') ?></option>
170
+ </select>
171
</p>
172
+
173
<p>
174
<label for="display_jump"><?php _e('Display a jumpbox for changing month and year quickly?','my-calendar'); ?></label> <select id="display_jump" name="display_jump">
175
+ <option value="on" <?php jd_cal_checkSelect('display_jump','true'); ?>><?php _e('Yes','my-calendar') ?></option>
176
+ <option value="off" <?php jd_cal_checkSelect('display_jump','false'); ?>><?php _e('No','my-calendar') ?></option>
177
+ </select>
178
</p>
179
<p>
180
<label for="my_calendar_show_months"><?php _e('In list mode, show how many months of events at a time:','my-calendar'); ?></label> <input type="text" size="3" id="my_calendar_show_months" name="my_calendar_show_months" value="<?php echo $my_calendar_show_months; ?>" />
181
</p>
182
<p>
183
+ <label for="my_calendar_date_format"><?php _e('Date format in list mode','my-calendar'); ?></label> <input type="text" id="my_calendar_date_format" name="my_calendar_date_format" value="<?php if ( get_option('my_calendar_date_format') == "") { echo get_option('date_format'); } else { echo get_option( 'my_calendar_date_format'); } ?>" /> Current: <?php if ( get_option('my_calendar_date_format') == '') { echo date_i18n(get_option('date_format')); } else { echo date_i18n(get_option('my_calendar_date_format')); } ?><br />
184
<small><?php _e('Date format uses the same syntax as the <a href="http://php.net/date">PHP <code>date()</code> function</a>. Save option to update sample output.','my-calendar'); ?></small>
185
</p>
186
<p>
187
+ <input type="checkbox" id="my_calendar_show_heading" name="my_calendar_show_heading" <?php jd_cal_checkCheckbox('my_calendar_show_heading','true'); ?> /> <label for="my_calendar_show_heading"><?php _e('Show Heading for Calendar','my-calendar'); ?></label>
188
+ </p>
189
+ <p>
190
+ <label for="my_calendar_notime_text"><?php _e('Label for events without a specific time'); ?></label> <input type="text" id="my_calendar_notime_text" name="my_calendar_notime_text" value="<?php if ( get_option('my_calendar_notime_text') == "") { _e('N/A','my-calendar'); } else { echo stripslashes( get_option('my_calendar_notime_text') ); } ?>" />
191
</p>
192
<p>
193
+ <label for="my_calendar_caption"><?php _e('Additional caption text','my-calendar'); ?></label> <input type="text" id="my_calendar_caption" name="my_calendar_caption" value="<?php echo stripslashes( get_option('my_calendar_caption') ); ?>" /><br /><small><?php _e('The calendar caption is the text containing the displayed month and year in either list or calendar format. This text will be displayed following that existing text.'); ?></small>
194
+ </p>
195
<p>
196
+ <input type="checkbox" id="my_calendar_hide_icons" name="my_calendar_hide_icons" <?php jd_cal_checkCheckbox('my_calendar_hide_icons','true'); ?> /> <label for="my_calendar_hide_icons"><?php _e('Hide category icons in output','my-calendar'); ?></label>
197
+ </p>
198
<p>
199
+ <input type="checkbox" id="my_calendar_show_map" name="my_calendar_show_map" <?php jd_cal_checkCheckbox('my_calendar_show_map','true'); ?> /> <label for="my_calendar_show_map"><?php _e('Show Link to Google Map (when sufficient address information is available.)','my-calendar'); ?></label>
200
</p>
201
<p>
202
+ <input type="checkbox" id="my_calendar_show_address" name="my_calendar_show_address" <?php jd_cal_checkCheckbox('my_calendar_show_address','true'); ?> /> <label for="my_calendar_show_address"><?php _e('Show Event Address in Details','my-calendar'); ?></label>
203
+ </p>
204
+ </fieldset>
205
+ <p>
206
+ <input type="submit" name="save" class="button-primary" value="<?php _e('Save Settings','my-calendar'); ?> &raquo;" />
207
</p>
208
</form>
209
<?php
210
+ //update_option( 'ko_calendar_imported','false' );
211
+
212
+ if ( get_option( 'ko_calendar_imported' ) != 'true' ) {
213
if (function_exists('check_calendar')) {
214
echo "<div class='import'>";
215
echo "<p>";
219
<form method="post" action="<?php bloginfo('wpurl'); ?>/wp-admin/admin.php?page=my-calendar-config">
220
<div>
221
<input type="hidden" name="import" value="true" />
222
+ <input type="submit" value="<?php _e('Import from Calendar','my-calendar'); ?>" name="import-calendar" class="button-primary" />
223
</div>
224
</form>
225
<?php
my-calendar-styles.php ADDED
@@ -0,0 +1,110 @@
1
+ <?php
2
+ // Display the admin configuration page
3
+
4
+ function edit_my_calendar_styles() {
5
+ global $wpdb, $initial_style, $initial_listjs, $initial_caljs;
6
+
7
+ // We can't use this page unless My Calendar is installed/upgraded
8
+ check_my_calendar();
9
+
10
+ if ( isset($_POST['style'] ) ) {
11
+
12
+ $my_calendar_style = $_POST['style'];
13
+ $my_calendar_caljs = $_POST['my_calendar_caljs'];
14
+ $my_calendar_listjs = $_POST['my_calendar_listjs'];
15
+
16
+
17
+ $use_styles = ($_POST['use_styles']=='on')?'true':'false';
18
+
19
+ update_option('my_calendar_style',$my_calendar_style);
20
+ update_option('my_calendar_use_styles',$use_styles);
21
+ update_option('calendar_javascript', (int) $_POST['calendar_javascript']);
22
+ update_option('list_javascript', (int) $_POST['list_javascript']);
23
+ update_option('my_calendar_listjs',$my_calendar_listjs);
24
+ update_option('my_calendar_caljs',$my_calendar_caljs);
25
+ $my_calendar_show_css = ($_POST['my_calendar_show_css']=='')?'':$_POST['my_calendar_show_css'];
26
+ update_option('my_calendar_show_css',$my_calendar_show_css);
27
+ // Check to see if we are replacing the original style
28
+
29
+ if ( $_POST['reset_styles'] == 'on') {
30
+ update_option('my_calendar_style',$initial_style);
31
+ }
32
+ if ( $_POST['reset_caljs'] == 'on') {
33
+ update_option('my_calendar_listjs',$initial_listjs);
34
+ }
35
+ if ( $_POST['reset_listjs'] == 'on') {
36
+ update_option('my_calendar_caljs',$initial_caljs);
37
+ }
38
+ echo "<div class=\"updated\"><p><strong>".__('Style Settings saved','my-calendar').".</strong></p></div>";
39
+ }
40
+
41
+ $my_calendar_style = stripcslashes(get_option('my_calendar_style'));
42
+ $my_calendar_use_styles = get_option('my_calendar_use_styles');
43
+
44
+ $my_calendar_listjs = stripcslashes(get_option('my_calendar_listjs'));
45
+ $list_javascript = get_option('list_javascript');
46
+
47
+ $my_calendar_caljs = stripcslashes(get_option('my_calendar_caljs'));
48
+ $calendar_javascript = get_option('calendar_javascript');