Descripción
El plugin sirve para crear un shortcode para mostrar la vista de lista de los calendarios públicos de Google.
Documento
Please see the documentation in detail. Japanese documentation
Capturas de pantalla
Instalación
- Sube la carpeta del plugin al directorio /wp-content/plugins/.
- Activa el plugin en tu panel de administrador de WordPress.
FAQ
-
Cómo utilizar la notación hora de inicio – hora de finalización
-
Si quieres utilizar la notación “hora de inicio – hora de finalización”, prueba configurar la siguiente opción del shortcode.
Ej. MM.DD.YY H:M – H:M(mismo día) o MM.DD.YY H:M – MM.DD.YY H:M (2 o más días)
date_format=”m.d.y H:i” view_end_date=” – “ -
¿Qué puedes hacer con un gancho?
-
Puedes personalizar la visualización de los eventos.
Los estilos proporcionados por el plugin están disponibles en la carpeta library/tags del plugin. Para más detalles, consulta la documentación en detalle. Documentación en japonés -
Cómo obtener eventos pasados
-
Configura “TODOS” o la fecha pasada como “fecha de inicio” en el menú de ajustes.
Los ajustes por defecto es ir de los eventos actuales a los futuros. -
¿No puedes obtener el evento de Google Calendar?
-
Por favor, comprueba la “clave API de Google Calendar” o el “ID de Google Calendar”. Si los ajustes son correctos, espera un día porque es posible que se superen los límites de consultas de la API. (Referencia: https://developers.google.com/google-apps/calendar/pricing)
-
¿Puedo obtener eventos en varios Google Calendar?
-
Sí. Puedes establecer el ID y la clave API de Google Calendar en el shortcode.
-
Cómo eliminar los ajustes
-
Desactivar el plugin.
-
Cómo ocultar un evento específico
-
Estableciendo una etiqueta (#display none o #display off) en la descripción de un evento, para que no se muestre.
-
Cómo cambiar el mensaje cuando no hay eventos
-
You input the message to “No Event Message” item in the general setting of the plugin setting or “no_event_message” shortcode option.
If the value is empty, “There are no events.” is set. Else if the value is “none”, the message is hidden. If “no_event_message” shortcode option is set, the message is overwritten by the shortcode message -
Establece el cambio de las horas, minutos y segundos estableciendo el valor de “fijar cambio de zona horaria” en el menú de ajustes de este plugin.
Reseñas
Colaboradores & Desarrolladores
“Google Calendar List View” es software de código abierto. Las siguientes personas han contribuido a este plugin.
Colaboradores“Google Calendar List View” ha sido traducido en 3 idiomas. Gracias a los traductores por sus contribuciones.
Traduce “Google Calendar List View” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .
Historial de cambios
7.2.1
- Se agregó un archivo de plantilla (olvidé agregarlo) para li-title, que se agregó recientemente a las opciones de acceso directo de html_tag.
7.2.0
- Se ha agregado “li-title” a la opción sortcode “html_tag”. Esta plantilla muestra el título (en negrita) en la primera línea y otros elementos, como la fecha y la hora, en la segunda y siguientes líneas.
- Al ajusrar las opciones de shortcode de date_format=”m.d.y H:i” view_end_date=”- ” para permitir que se muestren las horas de inicio y finalización.
- Opción de shortcode ‘no_event_link’, CSS para {$html_tag_class}_title se puede especificar para el título.
- Parte del procesamiento al comienzo del archivo de plantilla de visualización para cada evento se ha trasladado al cuerpo principal.
7.1.2
- Added the values of three selections; “yes|link”, “yes|map”, and “yes|link|map”, to the “view_location” shortcode option. When setting up ‘view_location=“yes|link”’, the link is added for URL (http:// or https://) the location value of Google Calendar. Then, when setting up ‘view_location=“yes|map”, the link to Google Maps is added to the location value of Google Calendar. Moreover, when setting up ‘view_location=“yes|link|map”, the link is added for URL (http:// or https://) the location value of Google Calendar and if there is not URL in the location value, the link of Google Maps is added to it.
7.1.1
- Corregida la función k_getAPIDataCurl en “includes/getAPIDataCurl.php” por el problema que podía suponer un fallo al obtener contenido sin la cabecera referer.
- Probado con WordPress 6.6.1 y PHP 8.3.6
7.1.0
- Probado con WordPress 6.1 y PHP 8.2.
- Probado con WordPress 6.5.2 y PHP 8.3.6.
7.0.0
- La función para recuperar de la API de Google Calendar se ha cambiado de file_get_contents a curl para mejorar el problema de tiempo de espera de conexión en caso de que la API no responda.
6.9.2
- Cambiado para no mostrar la fecha final si view_end_date está establecido y el período del evento es solo de un día.
- Probado WordPress 6.0.
- Probado en WordPerss 6.1.
- Se cambió la versión compatible de WordPress de 4.0 a 5.4 o superior.
6.9.1
- Corregido el modo de depuración.
6.9
- Se corrigió la fecha de finalización de los eventos de todo el día porque el valor de la fecha de finalización que obtiene la API de Google Calendar es el día siguiente en el caso de los eventos de todo el día.
6.8
- Added the “view_end_date” shortcode option. If the view_end_date value isn’t empty, the end date is displayed, using the value of view_end_date as the delimiter string after the start date, except “html_tag” shortcode option is “li2” or customized by the hook.
6.7.2
- Added hook-specific variables “translate_month_values”(array) for using WordPress Core’s translation feature to store the month name.
- Changed “li-month” in the shortcut option “html_tag” to use WordPress Core’s translation feature to display the month name.
6.7.1
- Implemented the hook ‘lvgc_each_output_data’ to customize the month-by-month display. Added hook-specific variables “start_date_month_value”, “pre_start_date_month_value”, and “month_value”.
6.7
- Added “li-month” to the shortcut option “html_tag”. “li-month” display style is that events that take place on the same month will be shown together. See the documentation in details. For technical detals, see the plugin library/tags/li-month.php.
6.6
- Agrega la función de cambiar las horas, minutos y segundos estableciendo el valor de “fijar desfase horario” en el menú de ajustes de este plugin si no puede resolver el problema de la zona horaria.
- Cambia la función datetime en lugar de strtotime para ser compatible con el problema del año 2038 en relación con el procesamiento de algunas fechas.
6.5.2
- Fixed an issue when template “p” in “html_tag” shortcode option is used.
- Probado WordPress 5.8 y php 8.0.0.
6.5.1
- Fixed an issue where template “li2” in “html_tag” shortcode option cannot be used.
6.5
- Fixed an error that occurred when “html_tag” shortcode option contained an unexpected value.
- Added “no_event_link” shortcode option. If the “no_event_link” option is enabled and the value isn’t empty, the event link is removed.
6.4.1
- Se corrigió la traducción del nombre de ubicación para que sea válida. Como resultado, el valor por defecto de la opción de acceso directo view_location_name ahora está vacío. Si se establece como vacío, se utilizará ubicación.
6.4
- Si la opción view_location está activada, el nombre de la localización cambia de “lugar:” a “localización:”.
- Added the “view_location_name” shortcode option. If you change the location name that is displayed when the view_location option is enabled , set the option.
6.3
- Allowed the html tag on “$gc_description” value for the hook.
- Se ha agregado el atributo “título” a los enlaces de eventos y se ha agregado la posibilidad de mostrar un extracto de la descripción del evento (máximo: 1024 byes) en la información emergente.
- Added “li2″ to the shortcut option “html_tag”. “li2” display style is that events that take place on the same day will be shown together. See the plugin library/tags/li2.php for technical details.
6.2
- Se corrigió el problema por el que la clasificación desde el menú de ajustes no estaba disponible.
6.1
- Added the change of the message to the setting menu and shortcode option when there are no events. If the value is empty, “There are no events.” is set. Else if the value is “none”, the message is hidden. If “no_event_message” shortcode option is set, the message is overwritten by the shortcode message
6.0
- Agrega la etiqueta hash (#display) estableciendo la etiqueta hash (#display none o #display off) en la descripción de un evento, para que no se muestre.
- Add the elements of “hash_tags_display_value”, “element_count” for “lvgc_each_output_data” hook.
- Si no hay eventos, aparece el mensaje “no hay eventos”.
- Probado con WordPress 5.7 y php 8.0.0.
5.9.1
- Fixed the warnings when “WP_DEBUG” is true.
- Probado con WordPress 5.6.2 y php 8.0.0.
5.9
- Agregados los valores originales de Google Calendar al gancho “lvgc_each_output_data”. Los valores están referenciados en https://developers.google.com/calendar/v3/reference/events#resource.
- Probado con WordPress 5.6 y php 7.4.2.
5.8
- Agregada la respuesta de la vulnerabilidad CSRF (Cross-Site Request Forgery) para los ajustes de este plugin.
- Probado con WordPress 5.3.2 y php 7.4.2.
5.7
- Added “view_location” shortcode option. If the value is not empty, location data is displayed with the title.
- Agregada la variable “$gc_location” en el gancho.
5.6
- Probado con WordPress 5.3.2 y php 7.4.1.
- Fixed warning messages in case that “start_date” and “end_date” shortcode options are not set.
- Se corrigió el problema por el que se remitía a Google Calendar aunque no se hubieran establecido por defecto el “ID de Google Calendar” o la “Clave API”.
5.5
- Fixed the issue that “orderbysort” setting in the admin setting menu isn’t applied.
- Se han corregido las advertencias cuando algunos valores del calendario de Google, como una descripción, están vacíos.
5.4
- Fixed the hook “lvgc_each_output_data” issue.
- Added “$end_date_num” variable in the hook.
5.3
- Probado con WordPress 5.3 y php 7.3.
- Fixed the sort issue for the multi-calendar.
5.2
- Probado con WordPress 5.2.4 y php 7.3.
- Solucionado un problema de clasificación descendente.
- Mejora el argumento de la función load_plugin_textdomain para WordPress 3.7 o posterior.
5.1
- Tested up WordPress 5.2.2 and php 7.3.
- Fixed the array check issue in get_google_calendar_contents function.
- Corregido el problema del mensaje de error en caso de que no haya ninguna opción de shortcode.
- Corregido el problema del mensaje de advertencia de la función file_get_contents.
5.0
- Supported the strtotime date format for shortcut option “start_date” and “end_date”. Various date formats for strtotime function, such as “now”, “+1 days”, “-2 days”, “yesterday”, “-1 week”, and so on can be used.
- Added new shortcode option “max_display”. “max_view” is for getting the number of items from Google Calendars. “max_display” is for displaying the number of items. If “max_display” isn’t set, “max_display” is automatically set the value of “max_view” value. If there are mixed events (1.2.3. events in Japanese, 5.6.7. events in English) and set “max_view=5″, lang=”en”, 5. and 6. events are only displayed. Therefore, you need to set “max_view” is 6 or more and “max_display” is 5. By these shortcut options, the plugin gets 6 ore more events and picks up 5 events in English among 6 or more events.
- Fixed the issue which could not get a date if the WordPress timezone setting is “Offset” time (+9, -1, etc.).
- Fixed the processing issue regarding max_view (maxResults) value in case of multi Google calendars.
4.6
- Allowed the html tag on “description” of Google Calendar.
4.5.1
- Fixed help message for “start_date”, “end_date” shortcode’s date format on the setting menu.
4.5
- Fixed the processing of “start_date”, “end_date” shortcode’s options.
- Fixed the default value of “orderbysort” shortcode’s option (default: descending)
4.4
- Added the value of “gc_description” on the hook.
4.3
- Fixed current_time function error.
- Tested up WordPress 5.0 and php 7.2.
4.2
- Tested up WordPress 4.9.
4.1
- Added target=”_blank” in a link tag.
4.0
- Support of Multi Google Calendars.
- Fixed getting local timestamp in case of not set “start_date” option.
- Fixed the processing for #organizer hash tag in case of including a space in the value.
- Changed the default for orderbysort is descending.
3.1
- re-uploaded library/tags/lip.php template.
3.0
- Added the hash tag “#organizer”. If you set the hash tag, you can use $hash_tags_organizer_value or $hash_tags[‘organizer’][‘value’] on the hook.
- Added shortcode option “enable_view_category”. If you want to display the category (#type and #organizer), please set this value to “true” or not empty value (default is “”)
- Deleted “html_tag_date_class” and “html_tag_title_class” for migrating “html_tag_class”.
- Reduced the code of the template tag files (library/tags/) for more easily use.
2.2
- Moved get_select_lang_data function to the extended class.
- Create gclv_hash_tags class for getting the hash tags in the description field on Google Calendar
- Added the template html_tag “lip”.
- Nombre CSS fijo.
- Added the attribution “hash_tags” and “hash_tags_type_title” for the hook.
2.11
- Fixed to display a debug message in case of using lang shortcode.
2.1
- Added shortcode option “lang”.
2.0
- Removed “lvgc_output_data” and “lvgc_gc_data” hooks for the security reason.
- Fixed the setting name.
- Added the secure option “hook_secret_key” on the shortcode for “lvgc_each_output_data” hook.
1.51
- Added the translation for the documentation link.
1.5
- Fixed the translation issue.
- Fixed the documentation.
1.43
- Tested up WordPress 4.8 and PHP 7.1.
1.42
- fixed. “lvgc_each_output_data” hook.
1.41
- fixed. “lvgc_each_output_data” hook.
1.4
- added “lvgc_each_output_data” hook for handling each output data.
1.3
- fixed default html_tag setting and added shortcode option “id”.
1.2
-
added two hooks of “lvgc_output_data” and “lvgc_gc_data”.
“lvgc_output_data” hook can handle for the output data. “lvgc_gc_data” hook can handled for getting Google Calendar data. -
Fixed timezone issue by using current_time and get_date_from_gmt function instead of date function.
-
Added to a class “list-view-google-calendar-holding” to html tag for a holding event.
1.1
- added 4 shortcode options (max_view, html_tag_class, html_tag_date_class, html_tag_title_class)
1.0
- Primera versión.