From 14e27282a3e1e65c4e21c04af0754dddee6d4144 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Mon, 24 Nov 2014 19:23:13 +0100 Subject: [PATCH] Updates --- .../plugins/google-calendar-events/README.txt | 17 + .../class-google-calendar-events-admin.php | 8 +- .../class-google-calendar-events.php | 15 +- .../google-calendar-events.php | 2 +- .../includes/admin/upgrade.php | 12 + .../includes/class-gce-display.php | 121 +-- .../includes/class-gce-event.php | 10 +- .../includes/class-gce-feed.php | 84 +- .../includes/gce-feed-cpt.php | 6 +- .../includes/misc-functions.php | 16 +- .../includes/shortcodes.php | 2 + .../google-calendar-events/js/gce-script.js | 2 +- .../languages/gce-nl_NL.mo | Bin 0 -> 15862 bytes .../languages/gce-nl_NL.po | 815 ++++++++++++++++++ .../google-calendar-events/languages/gce.pot | 46 +- .../google-calendar-events/views/widgets.php | 6 +- .../user-role-editor/lang/ure-fr_FR.mo | Bin 17719 -> 18149 bytes .../user-role-editor/lang/ure-fr_FR.po | 14 +- .../user-role-editor/lang/ure-tr_TR.mo | Bin 15434 -> 17137 bytes .../user-role-editor/lang/ure-tr_TR.po | 57 +- .../plugins/user-role-editor/readme.txt | 10 +- .../user-role-editor/user-role-editor.php | 4 +- 22 files changed, 1077 insertions(+), 170 deletions(-) create mode 100644 wp-content/plugins/google-calendar-events/languages/gce-nl_NL.mo create mode 100644 wp-content/plugins/google-calendar-events/languages/gce-nl_NL.po diff --git a/wp-content/plugins/google-calendar-events/README.txt b/wp-content/plugins/google-calendar-events/README.txt index b8e2b31..8ef8f78 100644 --- a/wp-content/plugins/google-calendar-events/README.txt +++ b/wp-content/plugins/google-calendar-events/README.txt @@ -42,6 +42,7 @@ This plugin was originally created by [Ross Hanney](http://www.rhanney.co.uk), a * Norwegian - Provided by Tore Hjartland of [aliom.no](http://www.aliom.no/). * Polish - Provided by Michał Pasternak of [iplweb.pl](http://iplweb.pl/). * Lithuanian - Provided by Andrius Mazeika of [mazeika.info](http://mazeika.info/). +* Dutch - Provided by Henri van Werkhoven. == Installation == @@ -87,6 +88,22 @@ There are three ways to install this plugin. == Changelog == += 2.1.3 = + +* Only load plugin scripts and stylesheets when the viewable page is rendering output from this plugin. +* Fixed bugs with simple display options. +* Added better error checking and output options to help in debugging GCal feeds. +* Added Dutch translation - Provided by Henri van Werkhoven. + += 2.1.2 = + +* Fixed bug with quick edit clearing out feed settings. +* Fix bug with pagination creating extra DOM elements. +* Localization string fixes - Pull Request by @Jojaba +* Added HTML to group events of the same day semantically - Pull Request by @martinburchell +* Fixed bug with [cal-id] event builder code. +* Add in post data resets. + = 2.1.1 = * Fixed bug with all day events not displaying. diff --git a/wp-content/plugins/google-calendar-events/class-google-calendar-events-admin.php b/wp-content/plugins/google-calendar-events/class-google-calendar-events-admin.php index f828173..96b2739 100644 --- a/wp-content/plugins/google-calendar-events/class-google-calendar-events-admin.php +++ b/wp-content/plugins/google-calendar-events/class-google-calendar-events-admin.php @@ -105,7 +105,7 @@ class Google_Calendar_Events_Admin { $screen = get_current_screen(); - if ( $screen->id == 'edit-gce_feed' || $screen->id == 'gce_feed' ) { + if ( $screen->id == 'edit-gce_feed' || $screen->id == 'gce_feed' || in_array( $screen->id, $this->plugin_screen_hook_suffix ) ) { return true; } else { return false; @@ -144,9 +144,11 @@ class Google_Calendar_Events_Admin { */ public function enqueue_admin_styles() { - wp_enqueue_style( 'jquery-ui-datepicker-css', plugins_url( 'css/jquery-ui-1.10.4.custom.min.css', __FILE__ ), array(), $this->version ); + //wp_enqueue_style( 'jquery-ui-datepicker-css', plugins_url( 'css/jquery-ui-1.10.4.custom.min.css', __FILE__ ), array(), $this->version ); - wp_enqueue_style( 'gce-admin', plugins_url( 'css/admin.css', __FILE__ ), array(), $this->version, 'all' ); + if( $this->viewing_this_plugin() ) { + wp_enqueue_style( 'gce-admin', plugins_url( 'css/admin.css', __FILE__ ), array(), $this->version, 'all' ); + } } /** diff --git a/wp-content/plugins/google-calendar-events/class-google-calendar-events.php b/wp-content/plugins/google-calendar-events/class-google-calendar-events.php index aab32bd..d10b40f 100644 --- a/wp-content/plugins/google-calendar-events/class-google-calendar-events.php +++ b/wp-content/plugins/google-calendar-events/class-google-calendar-events.php @@ -18,7 +18,7 @@ class Google_Calendar_Events { * * @var string */ - protected $version = '2.1.1'; + protected $version = '2.1.3'; /** * Unique identifier for the plugin. @@ -132,15 +132,10 @@ class Google_Calendar_Events { */ public function enqueue_public_scripts() { - wp_enqueue_script( $this->plugin_slug . '-qtip', plugins_url( 'js/jquery-qtip.js', __FILE__ ), array( 'jquery' ), $this->version, true ); - wp_enqueue_script( $this->plugin_slug . '-public', plugins_url( 'js/gce-script.js', __FILE__ ), array( 'jquery', $this->plugin_slug . '-qtip' ), $this->version, true ); + wp_register_script( $this->plugin_slug . '-qtip', plugins_url( 'js/jquery-qtip.js', __FILE__ ), array( 'jquery' ), $this->version, true ); + wp_register_script( $this->plugin_slug . '-public', plugins_url( 'js/gce-script.js', __FILE__ ), array( 'jquery', $this->plugin_slug . '-qtip' ), $this->version, true ); + - wp_localize_script( $this->plugin_slug . '-public', 'gce', - array( - 'ajaxurl' => admin_url( 'admin-ajax.php' ), - 'ajaxnonce' => wp_create_nonce( 'gce_ajax_nonce' ), - 'loadingText' => __( 'Loading...', 'gce' ) - ) ); } /* @@ -149,7 +144,7 @@ class Google_Calendar_Events { * @since 2.0.0 */ public function enqueue_public_styles() { - wp_enqueue_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array(), $this->version ); + wp_register_style( $this->plugin_slug . '-public', plugins_url( 'css/gce-style.css', __FILE__ ), array(), $this->version ); } /** diff --git a/wp-content/plugins/google-calendar-events/google-calendar-events.php b/wp-content/plugins/google-calendar-events/google-calendar-events.php index 9643aab..86ca266 100644 --- a/wp-content/plugins/google-calendar-events/google-calendar-events.php +++ b/wp-content/plugins/google-calendar-events/google-calendar-events.php @@ -12,7 +12,7 @@ * Plugin Name: Google Calendar Events * Plugin URI: https://github.com/pderksen/WP-Google-Calendar-Events * Description: Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget. - * Version: 2.1.1 + * Version: 2.1.3 * Author: Phil Derksen * Author URI: http://philderksen.com * License: GPL-2.0+ diff --git a/wp-content/plugins/google-calendar-events/includes/admin/upgrade.php b/wp-content/plugins/google-calendar-events/includes/admin/upgrade.php index 41b5873..95555f3 100644 --- a/wp-content/plugins/google-calendar-events/includes/admin/upgrade.php +++ b/wp-content/plugins/google-calendar-events/includes/admin/upgrade.php @@ -74,6 +74,8 @@ function gce_v210_upgrade() { update_post_meta( get_the_ID(), 'gce_feed_url', $url ); } } + + wp_reset_postdata(); } /* @@ -96,6 +98,8 @@ function gce_v206_upgrade() { update_post_meta( get_the_ID(), 'gce_feed_end_interval', 'years' ); } } + + wp_reset_postdata(); } /* @@ -120,6 +124,8 @@ function gce_v204_upgrade() { } } + wp_reset_postdata(); + // Update widgets $widget = get_option( 'widget_gce_widget' ); @@ -348,6 +354,8 @@ function update_widget_feed_ids() { } } + wp_reset_postdata(); + $widget[$a][$k] = substr( $new_ids, 0, -1 ); } else { @@ -359,6 +367,8 @@ function update_widget_feed_ids() { // Set our ID to the old ID if found $id = get_the_ID(); } + + wp_reset_postdata(); $widget[$a][$k] = $id; } @@ -387,4 +397,6 @@ function gce_upgrade_clear_cache() { delete_transient( 'gce_feed_' . get_the_ID() ); } } + + wp_reset_postdata(); } \ No newline at end of file diff --git a/wp-content/plugins/google-calendar-events/includes/class-gce-display.php b/wp-content/plugins/google-calendar-events/includes/class-gce-display.php index 76077f5..35b63c0 100644 --- a/wp-content/plugins/google-calendar-events/includes/class-gce-display.php +++ b/wp-content/plugins/google-calendar-events/includes/class-gce-display.php @@ -10,26 +10,26 @@ */ class GCE_Display { - + private $feeds, $merged_feeds; - + public function __construct( $ids, $title_text = null, $sort_order = 'asc' ) { - + $this->id = $ids; $this->title = $title_text; $this->sort = $sort_order; - + foreach( $ids as $id ) { $this->feeds[$id] = new GCE_Feed( $id ); } - + $this->merged_feeds = array(); //Merge the feeds together into one array of events foreach ( $this->feeds as $feed_id => $feed ) { $this->merged_feeds = array_merge( $this->merged_feeds, $feed->events ); } - + // Sort the items into date order if ( ! empty( $this->merged_feeds ) ) { usort( $this->merged_feeds, array( $this, 'compare' ) ); @@ -38,7 +38,7 @@ class GCE_Display { /** * Comparison function for use when sorting merged feed data (with usort) - * + * * @since 2.0.0 */ function compare( $event1, $event2 ) { @@ -51,24 +51,24 @@ class GCE_Display { /** * Returns array of days with events, with sub-arrays of events for that day - * + * * @since 2.0.0 */ private function get_event_days() { $event_days = array(); - + foreach ( $this->merged_feeds as $event ) { foreach ( $event->get_days() as $day ) { $event_days[$day][] = $event; } } - + return $event_days; } - + /** * Return the markup for the 'Grid' display - * + * * @since 2.0.0 */ public function get_grid ( $year = null, $month = null, $widget = false, $paging = null ) { @@ -101,7 +101,7 @@ class GCE_Display { //Get events data $event_days = $this->get_event_days(); - + //Array of previous and next link stuff for use in gce_generate_calendar (below) foreach( $event_days as $key => $event_day ) { if( $paging === null ) { @@ -170,9 +170,9 @@ class GCE_Display { //Ensures that gce-today CSS class is added even if there are no events for 'today'. A bit messy :( if ( ! isset( $event_days[$start] ) ) $event_days[$start] = array( null, 'gce-today gce-today-no-events', null ); - + $pn = array(); - + if( $paging ) { // Add previous / next functionality //If there are events to display in a previous month, add previous month link @@ -182,44 +182,44 @@ class GCE_Display { //If there are events to display in a future month, add next month link $next_key = __( 'Next', 'gce' ); $next = date( 'm-Y', mktime( 0, 0, 0, $month + 1, 1, $year ) ); - + //Array of previous and next link stuff for use in gce_generate_calendar (below) $pn = array( $prev_key => $prev, $next_key => $next ); } - + $start_day = get_option( 'start_of_week' ); - + //Generate the calendar markup and return it return gce_generate_calendar( $year, $month, $event_days, 1, null, $start_day, $pn, $widget ); } - + /** * Return the markup for the 'List' display - * + * * @since 2.0.0 */ public function get_list( $grouped = false, $start = null, $paging = null, $paging_interval = null, $start_offset = null, $max_events = null, $paging_type = null ) { $paging_type = $paging_type; - + $max_length = null; - + if( $paging_type == 'events' ) { $max_length = 'events'; } - + if( $start == null ) { $start = mktime( 0, 0, 0, date( 'm', current_time( 'timestamp' ) ), 1, date( 'Y', current_time( 'timestamp' ) ) ); - } - + } + // Get all the event days $event_days = $this->get_event_days(); - + $an_event_feed_id = current( $event_days ); $an_event_feed_id = $an_event_feed_id[0]->feed->id; - + if( $paging_interval == null ) { $max_num = get_post_meta( $an_event_feed_id, 'gce_list_max_num', true ); - + if( $paging_type == null ) { $max_length = get_post_meta( $an_event_feed_id, 'gce_list_max_length', true ); $paging_type = $max_length; @@ -229,20 +229,20 @@ class GCE_Display { if( $paging === null ) { $paging = get_post_meta( $an_event_feed_id, 'gce_paging', true ); } - + if( $start_offset === null ) { $start_offset_num = get_post_meta( $an_event_feed_id, 'gce_list_start_offset_num', true ); $start_offset_direction = get_post_meta( $an_event_feed_id, 'gce_list_start_offset_direction', true ); } - + if( empty( $max_num ) || $max_num == 0 ) { $max_num = 7; } - + if( $max_length == 'days' ) { $paging_interval = $max_num * 86400; } - + if( $start_offset === null ) { if( $start_offset_direction == 'back' ) { $start_offset_direction = -1; @@ -251,31 +251,31 @@ class GCE_Display { } $start_offset = $start_offset_num * 86400 * $start_offset_direction; - + $start = $start + $start_offset; } $start = mktime( 0, 0, 0, date( 'm', $start ), date( 'd', $start ), date( 'Y', $start ) ); - + $end_time = $start + $paging_interval; - + $i = 1; - + $feeds = implode( $this->id, '-' ); - + $markup = '
' . "\n"; if( ( $paging != 0 ) && $max_length != 'events' ) { - + $prev_text = __( 'Back', 'gce' ); $next_text = __( 'Next', 'gce' ); - + $prev_text = apply_filters( 'gce_prev_text', $prev_text ); $next_text = apply_filters( 'gce_next_text', $next_text ); - + $p = ''; $n = ''; - + $markup .= '' . '
' . $p . @@ -287,42 +287,43 @@ class GCE_Display { $max_count = 1; $has_events = false; $event_counter = 0; - + if( $max_length == 'events' ) { if( $start_offset === null ) { $time_now = current_time( 'timestamp' ); } else { - + $time_now = current_time( 'timestamp' ); - + $time_now = mktime( 0, 0, 0, date( 'm', $time_now ), date( 'j', $time_now ), date( 'Y', $time_now ) ) + $start_offset; - + } - - + + if( $max_events == null ) { $max_events = $max_num; } } - + if ( $grouped ) { $markup .= '
' ; } - + if( $max_length != 'events' ) { $max_events = INF; } else { $end_time = INF; } - + foreach ( $event_days as $key => $event_day ) { - + + $day_markup = ''; // If this is a grouped list, generate a per-date group title with date. if( $grouped && $key >= $start && $key < $end_time && $event_counter < $max_events ) { - $markup .= '
' . stripslashes( $this->title ) . ' ' . date_i18n( $event_day[0]->feed->date_format, $key ) . '
'; + $day_markup .= '
' . stripslashes( $this->title ) . ' ' . date_i18n( $event_day[0]->feed->date_format, $key ) . '
'; } foreach ( $event_day as $num_in_day => $event ) { @@ -333,13 +334,13 @@ class GCE_Display { $event->start_time > $start && $event->start_time < $end_time ) ) - ) || + ) || ( $max_length == 'events' && ( $event->end_time >= $time_now && // Condition for limited by events $event_counter < $max_events ) ) ) { - - $markup .= + + $day_markup .= '
' . //If this isn't a grouped list, generate a per-event title with date. ( ( ! $grouped ) ? ( ( isset( $this->title ) && $this->title !== '' ) ) @@ -354,14 +355,18 @@ class GCE_Display { $event_counter++; } } - + + if ( $day_markup != '' ) { + $markup .= '
' . $day_markup . '
'; + } + $max_count++; } - + if ( $grouped ) { $markup .= '
'; } - + if( ! $has_events ) { $markup .= __( 'No events to display.', 'gce' ); } diff --git a/wp-content/plugins/google-calendar-events/includes/class-gce-event.php b/wp-content/plugins/google-calendar-events/includes/class-gce-event.php index 7e0edef..a5df425 100644 --- a/wp-content/plugins/google-calendar-events/includes/class-gce-event.php +++ b/wp-content/plugins/google-calendar-events/includes/class-gce-event.php @@ -166,14 +166,14 @@ class GCE_Event { } //If location should be displayed (and is not empty) add to $markup - if ( isset( $display_options['display_location'] ) ) { + if ( ! empty( $display_options['display_location'] ) ) { $event_location = $this->location; if ( '' != $event_location ) $markup .= '

' . esc_html( $display_options['display_location_text'] ) . ' ' . esc_html( $event_location ) . '

'; } //If description should be displayed (and is not empty) add to $markup - if ( isset($display_options['display_desc'] ) ) { + if ( ! empty( $display_options['display_desc'] ) ) { $event_desc = $this->description; if ( '' != $event_desc ) { @@ -188,7 +188,7 @@ class GCE_Event { } //If link should be displayed add to $markup - if ( isset($display_options['display_link'] ) ) { + if ( ! empty( $display_options['display_link'] ) ) { $target = ( ! empty( $display_options['display_link_target'] ) ? 'target="blank"' : '' ); $ctz = get_option( 'timezone_string' ); @@ -391,8 +391,8 @@ class GCE_Event { return $m[1] . esc_html( $this->id ) . $m[6]; case 'cal-id': - $cal_id = explode( '/', $this->feed->feed_url ); - return $m[1] . esc_html( $cal_id[5] ) . $m[6]; + //$cal_id = explode( '/', $this->feed->feed_url ); + return $m[1] . $this->feed->calendar_id . $m[6]; case 'if-all-day': if ( 'SWD' == $this->day_type || 'MWD' == $this->day_type ) diff --git a/wp-content/plugins/google-calendar-events/includes/class-gce-feed.php b/wp-content/plugins/google-calendar-events/includes/class-gce-feed.php index e270e38..ced83d9 100644 --- a/wp-content/plugins/google-calendar-events/includes/class-gce-feed.php +++ b/wp-content/plugins/google-calendar-events/includes/class-gce-feed.php @@ -105,7 +105,6 @@ class GCE_Feed { // Set API key $query .= '?key=' . $api_key; - $args['orderBy'] = 'startTime'; $args['timeMin'] = urlencode( $this->get_feed_start() ); @@ -123,10 +122,18 @@ class GCE_Feed { $args['q'] = rawurlencode( $this->search_query ); } - $args['singleEvents'] = 'true'; + if( ! empty( $this->expand_recurring ) ) { + $args['singleEvents'] = 'true'; + } $query = add_query_arg( $args, $query ); + $this->display_url = $query; + + if( isset( $_GET['gce_debug'] ) && $_GET['gce_debug'] == true ) { + echo '
' . $this->display_url . '

'; + } + $this->get_feed_data( $query ); } @@ -136,7 +143,7 @@ class GCE_Feed { * @since 2.0.0 */ private function get_feed_data( $url ) { - + // First check for transient data to use if( false !== get_transient( 'gce_feed_' . $this->id ) ) { $this->events = get_transient( 'gce_feed_' . $this->id ); @@ -150,44 +157,49 @@ class GCE_Feed { //Attempt to convert the returned JSON into an array $raw_data = json_decode( $raw_data['body'], true ); - //If decoding was successful - if ( ! empty( $raw_data ) ) { - //If there are some entries (events) to process - //if ( isset( $raw_data['feed']['entry'] ) ) { - //Loop through each event, extracting the relevant information - foreach ( $raw_data['items'] as $event ) { - $id = ( isset( $event['id'] ) ? esc_html( $event['id'] ) : '' ); - $title = ( isset( $event['summary'] ) ? esc_html( $event['summary'] ) : '' ); - $description = ( isset( $event['description'] ) ? esc_html( $event['description'] ) : '' ); - $link = ( isset( $event['htmlLink'] ) ? esc_url( $event['htmlLink'] ) : '' ); - $location = ( isset( $event['location'] ) ? esc_html( $event['location'] ) : '' ); - - if( isset( $event['start']['dateTime'] ) ) { - $start_time = $this->iso_to_ts( $event['start']['dateTime'] ); - } else if( isset( $event['start']['date'] ) ) { - $start_time = $this->iso_to_ts( $event['start']['date'] ); - } else { - $start_time = null; + if( ! isset( $raw_data['error'] ) ) { + //If decoding was successful + if ( ! empty( $raw_data ) ) { + //If there are some entries (events) to process + //if ( isset( $raw_data['feed']['entry'] ) ) { + //Loop through each event, extracting the relevant information + foreach ( $raw_data['items'] as $event ) { + $id = ( isset( $event['id'] ) ? esc_html( $event['id'] ) : '' ); + $title = ( isset( $event['summary'] ) ? esc_html( $event['summary'] ) : '' ); + $description = ( isset( $event['description'] ) ? esc_html( $event['description'] ) : '' ); + $link = ( isset( $event['htmlLink'] ) ? esc_url( $event['htmlLink'] ) : '' ); + $location = ( isset( $event['location'] ) ? esc_html( $event['location'] ) : '' ); + + if( isset( $event['start']['dateTime'] ) ) { + $start_time = $this->iso_to_ts( $event['start']['dateTime'] ); + } else if( isset( $event['start']['date'] ) ) { + $start_time = $this->iso_to_ts( $event['start']['date'] ); + } else { + $start_time = null; + } + + if( isset( $event['end']['dateTime'] ) ) { + $end_time = $this->iso_to_ts( $event['end']['dateTime'] ); + } else if( isset( $event['end']['date'] ) ) { + $end_time = $this->iso_to_ts( $event['end']['date'] ); + } else { + $end_time = null; + } + + //Create a GCE_Event using the above data. Add it to the array of events + $this->events[] = new GCE_Event( $this, $id, $title, $description, $location, $start_time, $end_time, $link ); } - - if( isset( $event['end']['dateTime'] ) ) { - $end_time = $this->iso_to_ts( $event['end']['dateTime'] ); - } else if( isset( $event['end']['date'] ) ) { - $end_time = $this->iso_to_ts( $event['end']['date'] ); - } else { - $end_time = null; - } - - //Create a GCE_Event using the above data. Add it to the array of events - $this->events[] = new GCE_Event( $this, $id, $title, $description, $location, $start_time, $end_time, $link ); - } + } else { + //json_decode failed + $this->error = __( 'Some data was retrieved, but could not be parsed successfully. Please ensure your feed settings are correct.', 'gce' ); + } } else { - //json_decode failed - $this->error = __( 'Some data was retrieved, but could not be parsed successfully. Please ensure your feed settings are correct.', 'gce' ); + $this->error = __( 'An error has occured.', 'gce' ); + $this->error .= '
' . $raw_data['error']['message'] . '
'; } } else{ //Generate an error message from the returned WP_Error - $this->error = $raw_data->get_error_message() . __( ' Please ensure your feed URL is correct.', 'gce' ); + $this->error = $raw_data->get_error_message() . __( ' Please ensure your calendar ID is correct.', 'gce' ); } } diff --git a/wp-content/plugins/google-calendar-events/includes/gce-feed-cpt.php b/wp-content/plugins/google-calendar-events/includes/gce-feed-cpt.php index 63b4c09..0dd4378 100644 --- a/wp-content/plugins/google-calendar-events/includes/gce-feed-cpt.php +++ b/wp-content/plugins/google-calendar-events/includes/gce-feed-cpt.php @@ -91,12 +91,12 @@ add_filter( 'post_updated_messages', 'gce_feed_messages' ); * @since 2.0.0 */ function gce_cpt_meta() { - add_meta_box( 'gce_feed_meta', 'Feed Settings', 'gce_display_meta', 'gce_feed', 'advanced', 'core' ); + add_meta_box( 'gce_feed_meta', __( 'Feed Settings', 'gce' ), 'gce_display_meta', 'gce_feed', 'advanced', 'core' ); // Sidebar meta box below publish section. add_meta_box( 'gce_feed_sidebar_help', __( 'Helpful Links', 'gce' ), 'gce_feed_sidebar_help', 'gce_feed', 'side', 'core' ); - add_meta_box( 'gce_display_options_meta', 'Display Options', 'gce_display_options_meta', 'gce_feed', 'side', 'core' ); + add_meta_box( 'gce_display_options_meta', __( 'Display Options', 'gce' ), 'gce_display_options_meta', 'gce_feed', 'side', 'core' ); } add_action( 'add_meta_boxes', 'gce_cpt_meta' ); @@ -133,7 +133,7 @@ function gce_display_options_meta() { * @since 2.0.0 */ function gce_save_meta( $post_id ) { - if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { + if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { return $post_id; } diff --git a/wp-content/plugins/google-calendar-events/includes/misc-functions.php b/wp-content/plugins/google-calendar-events/includes/misc-functions.php index c6867c2..c248229 100644 --- a/wp-content/plugins/google-calendar-events/includes/misc-functions.php +++ b/wp-content/plugins/google-calendar-events/includes/misc-functions.php @@ -6,7 +6,21 @@ * @since 2.0.0 */ function gce_print_calendar( $feed_ids, $display = 'grid', $args = array(), $widget = false ) { - + + // Load style + wp_enqueue_style( GCE_PLUGIN_SLUG . '-public' ); + + // Load scripts + wp_enqueue_script( GCE_PLUGIN_SLUG . '-qtip' ); + wp_enqueue_script( GCE_PLUGIN_SLUG . '-public' ); + + wp_localize_script( GCE_PLUGIN_SLUG . '-public', 'gce', + array( + 'ajaxurl' => admin_url( 'admin-ajax.php' ), + 'ajaxnonce' => wp_create_nonce( 'gce_ajax_nonce' ), + 'loadingText' => __( 'Loading...', 'gce' ) + ) ); + $defaults = array( 'title_text' => '', 'sort' => 'asc', diff --git a/wp-content/plugins/google-calendar-events/includes/shortcodes.php b/wp-content/plugins/google-calendar-events/includes/shortcodes.php index e739478..9fdb1a2 100644 --- a/wp-content/plugins/google-calendar-events/includes/shortcodes.php +++ b/wp-content/plugins/google-calendar-events/includes/shortcodes.php @@ -51,6 +51,8 @@ function gce_gcal_shortcode( $attr ) { $feed_ids[$k] = get_the_ID(); $v = get_the_ID(); } + + wp_reset_postdata(); if( empty( $display ) ) { $display = get_post_meta( $v, 'gce_display_mode', true ); diff --git a/wp-content/plugins/google-calendar-events/js/gce-script.js b/wp-content/plugins/google-calendar-events/js/gce-script.js index a25a408..2ca9ef0 100644 --- a/wp-content/plugins/google-calendar-events/js/gce-script.js +++ b/wp-content/plugins/google-calendar-events/js/gce-script.js @@ -86,7 +86,7 @@ gce_paging_type: paging_type, gce_nonce: gce.ajaxnonce }, function(data){ - element.parent().parent().parent().html(data); + element.parents('.gce-list').replaceWith(data); }); }); diff --git a/wp-content/plugins/google-calendar-events/languages/gce-nl_NL.mo b/wp-content/plugins/google-calendar-events/languages/gce-nl_NL.mo new file mode 100644 index 0000000000000000000000000000000000000000..aaff530483c5993b8b4c583d7a0c4bbf26a59729 GIT binary patch literal 15862 zcmc(ldyHIHea8t-F$98pcjnIQ-JO{` zxp!vQYhFnc9!a4DC~bH(G)1i{K~aGUR48ph&JjZe+9gd=f4473VsJ<>F)a=f9{8TX}q6-=Yi)x*SY(_3qjp~FR1-|415Fl zRWJcx{ygVy0v`gmgMSV_8~ic&BG5hGxf8(U;631dpzePQ)I3juBHj1G_3wjP=a0dQ z!Kd-1{-xmM;1%Gj!5v^1Y=`@Q2cD$=FQDkU=Mul41yFSCfDGw|q5rPXe-wNH*Pj4I zk1v8+&sRY4<*z{T<=de4^CYNs|3|p~6HxT|Z&2@F1aWtOmw+|!2&nzOHS`|_@1*|) z5E8jfOfETk38;PD0BXD@co|rL{JBT?Vr%XbpyvM^D7t(RM5Nr;LGkZ9;C0~lK*`-D z3?e#R2Ywj*9Z>Yy`9gpHUQpw`9n`)b0!6R)fg0~IkfGcY;2q!>LH^u%5JU8NDX4Y4 z5=1223PExh5nmB$xjYm4W0(C1fK}_7vNR&{|yvf zFL}9hw}Y<+wcZu*QSjR!e=df3;@|yz4Z%-W_zY9u^Z`thJFM<0&F1g!5@uw5;K2ZBw0sr7>&b1PX;CDm+r=aBL3NA`cra<*)1Kt2?ox4EM^8je_6#Dmqntw4|?}z?czz0C_ z@nH~Ea~}aEcb^I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Vx5FxA*Z-UGQq(5f88-wsu*DsAwPz&cd*iw_9`C;@$5f*sdHeo>5T@4H(?;zWgA>O zEO1RJ|C%>;uq8Rfn3~OBS2FWKPKyD8RU>~yVw=(UxfjJZa%Kgaqv{&RT}g-23X%|c z23myGgmR(gZb&7@!SLJhjkvz4YAj)U>JLeqLkiMeJqdHZa&3YL$V0e2iNYFmmE~;?r)-;L+YnI26Z-FEDTdZ&&Jqu0Z!Az$bSJ#vd#@F; zZEB&^cNxLQIXZXqF0eEgdYXE4*Xoj^(>Kn6^Ej%K?jZjxE5vtf%?EE82Lc>&>{rS+ m)PY;#i>ahSx3f~d++94$-F4bB3d8Fz#6?beclick here for " +"instructions on how to generate and use your own Google API key." +msgstr "" +"Als u deze beperking wilt voorkomen, kunt u hier instructies vinden over hoe u uw eigen Google API sleutel kunt " +"aanmaken en gebruiken." + +#: google-calendar-events/includes/register-settings.php:39 +msgid "Save Settings" +msgstr "Instellingen Opslaan" + +#: google-calendar-events/includes/register-settings.php:40 +msgid "" +"Save your settings when uninstalling this plugin. Useful when upgrading or " +"re-installing." +msgstr "" +"Sla uw instellingen op wanneer de plugin wordt gedeïnstalleerd. Nuttig " +"bij het bijwerken of herinstalleren van de plugin." + +#: google-calendar-events/includes/register-settings.php:169 +#, php-format +msgid "" +"The callback function used for the %s setting is missing." +msgstr "" +"De callback-functie die wordt gebruikt voor de %s " +"instelling ontbreekt." + +#: google-calendar-events/views/admin/api-settings-notice.php:27 +msgid "GCal Events Important Update (Nov. 19, 2014):" +msgstr "Belangrijke update van GCal Evenementen (19 Nov 2014):" + +#: google-calendar-events/views/admin/api-settings-notice.php:28 +msgid "" +"GCal Events now uses the Google API version 3, which requires use of a " +"public key." +msgstr "" +"GCal Evenementen gebruikt nu Google API versie 3, waarvoor een publieke " +"sleutel nodig is." + +#: google-calendar-events/views/admin/api-settings-notice.php:29 +msgid "" +"By default a shared key is used across all plugin users, which is limited to " +"500,000 requests per day and 5 requests per second." +msgstr "" +"Standaard wordt de gedeelde sleutel gebruikt door alle plugin gebruikers. " +"Deze is beperkt tot 500.000 aanvragen per dag en 5 aanvragen per seconde." + +#: google-calendar-events/views/admin/api-settings-notice.php:30 +msgid "To avoid these limits you can use your own Google API key." +msgstr "" +"Om deze beperkingen te voorkomen kun je je eigen Google API sleutel " +"gebruiken." + +#: google-calendar-events/views/admin/api-settings-notice.php:33 +msgid "Update your API settings now" +msgstr "Pas je API instellingen nu aan" + +#: google-calendar-events/views/admin/api-settings-notice.php:34 +msgid "Hide this" +msgstr "Verbergen" + +#: google-calendar-events/views/admin/display-options-meta.php:39 +msgid "" +"Check this box to use the simple display options below instead of the Event " +"Builder code on the left." +msgstr "" +"Vink deze optie aan om de eenvoudige weergaveopties hieronder te gebruiken " +"in plaats van de Evenement Weergavecode aan de linkerkant." + +#: google-calendar-events/views/admin/display-options-meta.php:44 +msgid "Start date / time display" +msgstr "Aanvangsdatum / -tijdsweergave" + +#: google-calendar-events/views/admin/display-options-meta.php:45 +msgid "Select how to display the start date / time." +msgstr "Selecteer hoe de aanvangsdatum / -tijd moet worden weergegeven." + +#: google-calendar-events/views/admin/display-options-meta.php:47 +#: google-calendar-events/views/admin/display-options-meta.php:61 +msgid "None" +msgstr "Geen" + +#: google-calendar-events/views/admin/display-options-meta.php:48 +msgid "Start time" +msgstr "Aanvangstijd" + +#: google-calendar-events/views/admin/display-options-meta.php:49 +msgid "Start date" +msgstr "Aanvangsdatum" + +#: google-calendar-events/views/admin/display-options-meta.php:50 +msgid "Start time and date" +msgstr "Aanvangstijd en -datum" + +#: google-calendar-events/views/admin/display-options-meta.php:51 +msgid "Start date and time" +msgstr "Aanvangsdatum en -tijd" + +#: google-calendar-events/views/admin/display-options-meta.php:53 +msgid "Text to display before the start time." +msgstr "Tekst om voor de aanvangstijd weer te geven." + +#: google-calendar-events/views/admin/display-options-meta.php:58 +msgid "End time/date display" +msgstr "Eindtijd/-datum weergave" + +#: google-calendar-events/views/admin/display-options-meta.php:59 +msgid "Select how to display the end date / time." +msgstr "Selecteer hoe de einddatum / -tijd weergegeven moet worden." + +#: google-calendar-events/views/admin/display-options-meta.php:62 +msgid "End time" +msgstr "Eindtijd" + +#: google-calendar-events/views/admin/display-options-meta.php:63 +msgid "End date" +msgstr "Einddatum" + +#: google-calendar-events/views/admin/display-options-meta.php:64 +msgid "End time and date" +msgstr "Eindtijd en -datum" + +#: google-calendar-events/views/admin/display-options-meta.php:65 +msgid "End date and time" +msgstr "Einddatum en -tijd" + +#: google-calendar-events/views/admin/display-options-meta.php:67 +msgid "Text to display before the end time." +msgstr "Tekst om voor de eindtijd weer te geven." + +#: google-calendar-events/views/admin/display-options-meta.php:72 +msgid "Separator" +msgstr "Scheidingsteken" + +#: google-calendar-events/views/admin/display-options-meta.php:74 +msgid "" +"If you have chosen to display both the time and date above, enter the text / " +"characters to display between the time and date here (including any spaces)." +msgstr "" +"Als je hierboven hebt gekozen om zowel tijd als datum weer te geven, voer " +"dan hier de tekst / leestekens in om weer te geven tussen de tijd en de " +"datum (inclusief evt. spaties)." + +#: google-calendar-events/views/admin/display-options-meta.php:80 +msgid "Location" +msgstr "Locatie" + +#: google-calendar-events/views/admin/display-options-meta.php:82 +msgid "Show the location of events?" +msgstr "Locatie van evenementen weergeven?" + +#: google-calendar-events/views/admin/display-options-meta.php:83 +msgid "Text to display before the location." +msgstr "Tekst om voor de locatie weer te geven." + +#: google-calendar-events/views/admin/display-options-meta.php:88 +msgid "Description" +msgstr "Omschrijving" + +#: google-calendar-events/views/admin/display-options-meta.php:91 +msgid "" +"Show the description of events? (URLs in the description will be made into " +"links)." +msgstr "" +"Omschrijving van evenementen weergeven? (URL's in de omschrijving worden " +"omgezet in links)." + +#: google-calendar-events/views/admin/display-options-meta.php:93 +msgid "Text to display before the description." +msgstr "Tekst om voor de omschrijving weer te geven." + +#: google-calendar-events/views/admin/display-options-meta.php:95 +msgid "" +"Maximum number of words to show from description. Leave blank for no limit." +msgstr "" +"Maximum aantal woorden van de omschrijving om weer te geven. Leeglaten om " +"volledige omschrijving weer te geven." + +#: google-calendar-events/views/admin/display-options-meta.php:100 +msgid "Event Link" +msgstr "Link naar evenement" + +#: google-calendar-events/views/admin/display-options-meta.php:103 +msgid "Show a link to the Google Calendar page for an event?" +msgstr "Link weergeven naar de Google Agenda pagina voor een evenement?" + +#: google-calendar-events/views/admin/display-options-meta.php:107 +msgid "Links open in a new window / tab?" +msgstr "Link in een nieuw venster of tab openen?" + +#: google-calendar-events/views/admin/display-options-meta.php:109 +msgid "The link text to be displayed." +msgstr "De weer te geven tekst voor de link." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:54 +msgid "" +"We're smack dab in the middle of building additional " +"features for this plugin. Have ideas?" +msgstr "" +"We zijn op dit moment extra functies voor deze plugin aan " +"het bouwen. Hebt u ideeën?" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:57 +msgid "Visit our roadmap and tell us what you're looking for" +msgstr "Bezoek onze \"roadmap\" en vertel ons waar je naar op zoek bent" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:63 +msgid "Want to be in the know?" +msgstr "Wilt u op de hoogte gehouden worden?" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:66 +msgid "Get notified when new features are released" +msgstr "Ontvang een melding wanneer nieuwe functies zijn vrijgegeven" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:77 +msgid "" +"Copy and paste this shortcode to display this Google Calendar feed on any " +"post or page." +msgstr "" +"Kopiëer en plak deze shortcode om deze Google Agenda feed in een " +"bericht of op een pagina weer te geven." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:78 +msgid "" +"To avoid display issues, make sure to paste the shortcode in the Text tab of " +"the post editor." +msgstr "" +"Om weergaveproblemen te voorkomen kunt u de shortcode het beste in het Tekst-" +"tab van het bericht plakken." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:83 +msgid "Google Calendar ID" +msgstr "Google Agenda ID" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:87 +msgid "The Google Calendar ID." +msgstr "De Google Agenda ID." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:87 +msgid "Example" +msgstr "Voorbeeld" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:89 +msgid "How to find your GCal calendar ID" +msgstr "Hoe vindt u uw Google Agenda ID" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:95 +msgid "Search Query" +msgstr "Zoekopdracht" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:98 +msgid "Find and show events based on a search query." +msgstr "Evenementen zoeken en weergeven op basis van een zoekopdracht." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:103 +msgid "Expand Recurring Events?" +msgstr "Terugkerende evenementen herhalen?" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:105 +msgid "Yes" +msgstr "Ja" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:106 +msgid "" +"This will show recurring events each time they occur, otherwise it will only " +"show the event the first time it occurs." +msgstr "" +"Hiermee worden terugkerende evenementen bij elke herhaling weergegeven, " +"anders worden ze alleen de eerste keer weergegeven." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:111 +msgid "Date Format" +msgstr "Datumnotatie" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:115 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:126 +#, php-format +msgid "Use %sPHP date formatting%s." +msgstr "Gebruik %sPHP datumnotatie%s." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:116 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:127 +msgid "Leave blank to use the default." +msgstr "Leeglaten om de standaardinstelling te gebruiken." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:122 +msgid "Time Format" +msgstr "Tijdsnotatie" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:133 +msgid "Cache Duration" +msgstr "Tijdsduur cachegeheugen" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:136 +msgid "" +"The length of time, in seconds, to cache the feed (43200 = 12 hours). If " +"this feed changes regularly, you may want to reduce the cache duration." +msgstr "" +"De tijdsperiode, in seconden, dat het cachegeheugen van de feed wordt " +"bewaard (43200 = 12 uur). Als deze feed regelmatig wijzigt, wilt u de " +"tijdsduur van het cachegeheugen wellicht verlagen." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:141 +msgid "Multiple Day Events" +msgstr "Evenementen op meerdere dagen" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:143 +msgid "Show on each day" +msgstr "Op elke dag weergeven" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:144 +msgid "" +"Show events that span multiple days on each day that they span, rather than " +"just the first day." +msgstr "" +"Geef evenementen die over meerdere dagen verspreid zijn weer op elke dag, in " +"plaats van alleen op de eerste dag." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:149 +msgid "Display Mode" +msgstr "Weergavemodus" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:156 +msgid "Choose how you want your calendar to be displayed." +msgstr "Kies hoe u uw agenda wilt weergeven." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:161 +msgid "Show Paging Links" +msgstr "Links tonen om te bladeren" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:163 +#: google-calendar-events/views/widgets.php:227 +msgid "Check this option to display Next and Back navigation links." +msgstr "Vink deze optie aan om Vorige en Volgende links weer te geven." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:168 +msgid "Number of Events per Page" +msgstr "Aantal evenementen per pagina" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:172 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:183 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:197 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:211 +#: google-calendar-events/views/widgets.php:242 +#: google-calendar-events/views/widgets.php:250 +msgid "Days" +msgstr "Dagen" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:173 +#: google-calendar-events/views/widgets.php:243 +msgid "Events" +msgstr "Evenementen" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:175 +msgid "How many events to display per page (List View only)." +msgstr "" +"Hoeveel evenementen per pagina er worden weergeven (alleen voor " +"Lijstweergave)." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:180 +msgid "Display Start Date Offset" +msgstr "" +"Geef weer op welke dag - ten opzichte van de huidige datum - de lijst " +"standaard moet starten (alleen voor Lijstweergave):" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:186 +#: google-calendar-events/views/widgets.php:253 +msgid "Ahead" +msgstr "Vooruit" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:188 +msgid "" +"Change if you need to initially display events on a date other than today " +"(List View only)." +msgstr "" +"Pas dit aan als u standaard evenementen wilt weergeven op een andere dan de " +"huidige dag (alleen voor Lijstweergave)." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:193 +msgid "Minimum Feed Start Date" +msgstr "Minimale startdatum van de feed" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:198 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:212 +msgid "Months" +msgstr "Maanden" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:199 +#: google-calendar-events/views/admin/gce-feed-meta-display.php:213 +msgid "Years" +msgstr "Jaar" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:201 +msgid "back" +msgstr "geleden" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:202 +msgid "" +"Set how far back to retrieve events regardless of month or page being " +"displayed." +msgstr "" +"Stel in van hoe lang geleden u evenementen wilt ophalen, onafhankelijk van " +"de maand of pagina die wordt weergegeven." + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:207 +msgid "Maximum Feed End Date" +msgstr "Maximale feed einddatum" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:215 +msgid "forward" +msgstr "vooruit" + +#: google-calendar-events/views/admin/gce-feed-meta-display.php:216 +msgid "" +"Set how far in the future to retrieve events regardless of month or page " +"being displayed." +msgstr "" +"Stel in hoe ver in de toekomst u evenenementen wilt ophalen, onafhankelijk " +"van de maand of pagina die wordt weergegeven." + +#: google-calendar-events/views/admin/gce-feed-sidebar-help.php:6 +msgid "Documentation & getting started" +msgstr "Documentatie & aan de slag" + +#: google-calendar-events/views/admin/gce-feed-sidebar-help.php:12 +msgid "Community support forums" +msgstr "Community support forums" + +#: google-calendar-events/views/admin/gce-feed-sidebar-help.php:18 +msgid "Get notified of new features" +msgstr "Blijf op de hoogte van nieuwe functies" + +#: google-calendar-events/views/admin/gce-feed-sidebar-help.php:24 +msgid "Rate this plugin" +msgstr "Beoordeel deze plugin" + +#: google-calendar-events/views/widgets.php:28 +msgid "" +"Display a list or calendar grid of events from one or more Google Calendar " +"feeds you have added" +msgstr "" +"Geef een lijst of agendaraster van evenementen weer van een of meer Google " +"Agenda feeds die u heeft toegevoegd" + +#: google-calendar-events/views/widgets.php:111 +msgid "" +"No valid Feed IDs have been entered for this widget. Please check that you " +"have entered the IDs correctly in the widget settings (Appearance > " +"Widgets), and that the Feeds have not been deleted." +msgstr "" +"Er zijn geen geldige Feed ID's toegevoegd voor deze widget. Controleer a.u." +"b. of u de ID's op de juiste wijze hebt ingevoerd in de widget instellingen " +"(Weergave > Widgets), en of de Feeds niet zijn verwijderd." + +#: google-calendar-events/views/widgets.php:144 +msgid "You have not added any feeds yet." +msgstr "U hebt nog geen feeds toegevoegd." + +#: google-calendar-events/views/widgets.php:186 +msgid "There are no feeds created yet." +msgstr "Er zijn nog geen feeds aangemaakt." + +#: google-calendar-events/views/widgets.php:187 +msgid "Add your first feed!" +msgstr "Voeg uw eerste feed toe!" + +#: google-calendar-events/views/widgets.php:211 +msgid "Feeds to Display (comma separated list - i.e. 101,102,103):" +msgstr "Weer te geven feeds (kommagescheiden lijst, bijv. 101,102,103):" + +#: google-calendar-events/views/widgets.php:216 +msgid "Display Events as:" +msgstr "Evenementen weergeven als:" + +#: google-calendar-events/views/widgets.php:225 +msgid "Show Paging Links:" +msgstr "Links tonen om te bladeren:" + +#: google-calendar-events/views/widgets.php:231 +msgid "Sort Order (List View only):" +msgstr "Sorteervolgorde (alleen voor Lijstweergave):" + +#: google-calendar-events/views/widgets.php:233 +msgid "Ascending" +msgstr "Oplopend" + +#: google-calendar-events/views/widgets.php:234 +msgid "Descending" +msgstr "Aflopend" + +#: google-calendar-events/views/widgets.php:239 +msgid "Number of Events per Page (List View only):" +msgstr "Aantal evenementen per pagina (alleen voor Lijstweergave):" + +#: google-calendar-events/views/widgets.php:248 +msgid "Display Start Date Offset (List View only):" +msgstr "" +"Geef weer op welke dag - ten opzichte van de huidige datum - de lijst " +"standaard moet starten (alleen voor Lijstweergave):" + +#: google-calendar-events/views/widgets.php:258 +msgid "" +"Display Title on Tooltip/List Item (e.g. 'Events on 7th March'). Grouped " +"lists always have a title displayed." +msgstr "" +"Geef de titel weer op de knopinfo / lijstonderdeel (bijv. 'Evenementen op 7 " +"maart'). Bij gegroepeerde lijsten wordt altijd een titel weergegeven." diff --git a/wp-content/plugins/google-calendar-events/languages/gce.pot b/wp-content/plugins/google-calendar-events/languages/gce.pot index 5cd1427..16f82e8 100644 --- a/wp-content/plugins/google-calendar-events/languages/gce.pot +++ b/wp-content/plugins/google-calendar-events/languages/gce.pot @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Google Calendar Events\n" -"POT-Creation-Date: 2014-11-19 00:09-0700\n" -"PO-Revision-Date: 2014-11-19 00:10-0700\n" +"POT-Creation-Date: 2014-11-22 16:21-0700\n" +"PO-Revision-Date: 2014-11-22 16:21-0700\n" "Last-Translator: \n" "Language-Team: \n" "Language: en\n" @@ -17,24 +17,20 @@ msgstr "" #: google-calendar-events/class-google-calendar-events-admin.php:128 #: google-calendar-events/class-google-calendar-events-admin.php:129 -#: google-calendar-events/class-google-calendar-events-admin.php:198 +#: google-calendar-events/class-google-calendar-events-admin.php:200 #: google-calendar-events/includes/register-settings.php:54 msgid "General Settings" msgstr "" -#: google-calendar-events/class-google-calendar-events-admin.php:186 +#: google-calendar-events/class-google-calendar-events-admin.php:188 #: google-calendar-events/views/widgets.php:27 msgid "Google Calendar Events" msgstr "" -#: google-calendar-events/class-google-calendar-events-admin.php:199 +#: google-calendar-events/class-google-calendar-events-admin.php:201 msgid "Feeds" msgstr "" -#: google-calendar-events/class-google-calendar-events.php:142 -msgid "Loading..." -msgstr "" - #: google-calendar-events/includes/admin/admin-functions.php:20 msgid "Cache has been cleared for this feed." msgstr "" @@ -84,7 +80,7 @@ msgstr "" msgid "Next" msgstr "" -#: google-calendar-events/includes/class-gce-display.php:366 +#: google-calendar-events/includes/class-gce-display.php:371 msgid "No events to display." msgstr "" @@ -154,14 +150,18 @@ msgid "" "Feed settings." msgstr "" -#: google-calendar-events/includes/class-gce-feed.php:165 +#: google-calendar-events/includes/class-gce-feed.php:194 msgid "" "Some data was retrieved, but could not be parsed successfully. Please ensure " "your feed settings are correct." msgstr "" -#: google-calendar-events/includes/class-gce-feed.php:169 -msgid " Please ensure your feed URL is correct." +#: google-calendar-events/includes/class-gce-feed.php:197 +msgid "An error has occured." +msgstr "" + +#: google-calendar-events/includes/class-gce-feed.php:202 +msgid " Please ensure your calendar ID is correct." msgstr "" #: google-calendar-events/includes/gce-feed-cpt.php:21 @@ -244,10 +244,18 @@ msgstr "" msgid "%4$s draft updated. %1$sView %2$s%3$s" msgstr "" +#: google-calendar-events/includes/gce-feed-cpt.php:94 +msgid "Feed Settings" +msgstr "" + #: google-calendar-events/includes/gce-feed-cpt.php:97 msgid "Helpful Links" msgstr "" +#: google-calendar-events/includes/gce-feed-cpt.php:99 +msgid "Display Options" +msgstr "" + #: google-calendar-events/includes/gce-feed-cpt.php:217 msgid "Feed ID" msgstr "" @@ -279,6 +287,10 @@ msgstr "" msgid "Grouped List" msgstr "" +#: google-calendar-events/includes/misc-functions.php:21 +msgid "Loading..." +msgstr "" + #: google-calendar-events/includes/register-settings.php:29 msgid "Google API Key" msgstr "" @@ -714,6 +726,14 @@ msgstr "" msgid "Add your first feed!" msgstr "" +#: google-calendar-events/views/widgets.php:197 +msgid "Events on" +msgstr "" + +#: google-calendar-events/views/widgets.php:206 +msgid "Title:" +msgstr "" + #: google-calendar-events/views/widgets.php:211 msgid "Feeds to Display (comma separated list - i.e. 101,102,103):" msgstr "" diff --git a/wp-content/plugins/google-calendar-events/views/widgets.php b/wp-content/plugins/google-calendar-events/views/widgets.php index 5538388..79be71a 100644 --- a/wp-content/plugins/google-calendar-events/views/widgets.php +++ b/wp-content/plugins/google-calendar-events/views/widgets.php @@ -194,7 +194,7 @@ class GCE_Widget extends WP_Widget { $display_type = ( isset( $instance['display_type'] ) ) ? $instance['display_type'] : 'grid'; $order = ( isset( $instance['order'] ) ) ? $instance['order'] : 'asc'; $display_title = ( isset( $instance['display_title'] ) ) ? $instance['display_title'] : true; - $title_text = ( isset( $instance['display_title_text'] ) ) ? $instance['display_title_text'] : 'Events on'; + $title_text = ( isset( $instance['display_title_text'] ) ) ? $instance['display_title_text'] : __( 'Events on', 'gce' ); $paging = ( isset( $instance['paging'] ) ? $instance['paging'] : 1 ); $list_max_num = ( isset( $instance['list_max_num'] ) ? $instance['list_max_num'] : 7 ); $list_max_length = ( isset( $instance['list_max_length'] ) ? $instance['list_max_length'] : 'days' ); @@ -203,7 +203,7 @@ class GCE_Widget extends WP_Widget { ?>

- +

@@ -228,7 +228,7 @@ class GCE_Widget extends WP_Widget {

- +