diff --git a/docs b/docs index d99ffbf..2b93d03 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit d99ffbf9acd0da60003f3ee043afbb887b871554 +Subproject commit 2b93d032d2306cca5631e7f30f9665825b8eafb8 diff --git a/i18n/TouchPoint-WP-es_ES.po b/i18n/TouchPoint-WP-es_ES.po index abb41fe..9a201c6 100644 --- a/i18n/TouchPoint-WP-es_ES.po +++ b/i18n/TouchPoint-WP-es_ES.po @@ -314,38 +314,38 @@ msgstr "Contacta" msgid "RSVP" msgstr "RSVP" -#: src/TouchPoint-WP/TouchPointWP.php:2030 +#: src/TouchPoint-WP/TouchPointWP.php:2031 msgid "Unknown Type" msgstr "Tipo desconocido" -#: src/TouchPoint-WP/TouchPointWP.php:2087 +#: src/TouchPoint-WP/TouchPointWP.php:2088 msgid "Your Searches" msgstr "Tus búsquedas" -#: src/TouchPoint-WP/TouchPointWP.php:2090 +#: src/TouchPoint-WP/TouchPointWP.php:2091 msgid "Public Searches" msgstr "Búsquedas públicas" -#: src/TouchPoint-WP/TouchPointWP.php:2093 +#: src/TouchPoint-WP/TouchPointWP.php:2094 msgid "Status Flags" msgstr "Indicadores de Estado" -#: src/TouchPoint-WP/TouchPointWP.php:2098 #: src/TouchPoint-WP/TouchPointWP.php:2099 +#: src/TouchPoint-WP/TouchPointWP.php:2100 msgid "Current Value" msgstr "Valor actual" -#: src/TouchPoint-WP/TouchPointWP.php:2216 -#: src/TouchPoint-WP/TouchPointWP.php:2252 +#: src/TouchPoint-WP/TouchPointWP.php:2217 +#: src/TouchPoint-WP/TouchPointWP.php:2253 msgid "Invalid or incomplete API Settings." msgstr "Configuración de API no válida o incompleta." -#: src/TouchPoint-WP/TouchPointWP.php:2266 -#: src/TouchPoint-WP/TouchPointWP.php:2310 +#: src/TouchPoint-WP/TouchPointWP.php:2267 +#: src/TouchPoint-WP/TouchPointWP.php:2311 msgid "Host appears to be missing from TouchPoint-WP configuration." msgstr "Parece que falta el host en la configuración de TouchPoint-WP." -#: src/TouchPoint-WP/TouchPointWP.php:2442 +#: src/TouchPoint-WP/TouchPointWP.php:2443 msgid "People Query Failed" msgstr "Consulta de registros de personas fallida" @@ -809,7 +809,7 @@ msgid "Save Settings" msgstr "Guardar ajustes" #: src/TouchPoint-WP/Person.php:1451 -#: src/TouchPoint-WP/Utilities.php:285 +#: src/TouchPoint-WP/Utilities.php:286 #: assets/js/base-defer.js:18 msgid "and" msgstr "y" @@ -972,7 +972,7 @@ msgstr "Enviar" msgid "Nothing to submit." msgstr "Nada que enviar." -#: src/TouchPoint-WP/TouchPointWP.php:2383 +#: src/TouchPoint-WP/TouchPointWP.php:2384 msgid "The scripts on TouchPoint that interact with this plugin are out-of-date, and an automatic update failed." msgstr "Los scripts en TouchPoint que interactúan con este complemento están desactualizados y falló una actualización automática." @@ -1040,72 +1040,72 @@ msgstr "Años" msgid "Genders" msgstr "Géneros" -#: src/TouchPoint-WP/Utilities.php:135 +#: src/TouchPoint-WP/Utilities.php:136 msgctxt "e.g. event happens weekly on..." msgid "Sundays" msgstr "los domingos" -#: src/TouchPoint-WP/Utilities.php:136 +#: src/TouchPoint-WP/Utilities.php:137 msgctxt "e.g. event happens weekly on..." msgid "Mondays" msgstr "los lunes" -#: src/TouchPoint-WP/Utilities.php:137 +#: src/TouchPoint-WP/Utilities.php:138 msgctxt "e.g. event happens weekly on..." msgid "Tuesdays" msgstr "los martes" -#: src/TouchPoint-WP/Utilities.php:138 +#: src/TouchPoint-WP/Utilities.php:139 msgctxt "e.g. event happens weekly on..." msgid "Wednesdays" msgstr "los miércoles" -#: src/TouchPoint-WP/Utilities.php:139 +#: src/TouchPoint-WP/Utilities.php:140 msgctxt "e.g. event happens weekly on..." msgid "Thursdays" msgstr "los jueves" -#: src/TouchPoint-WP/Utilities.php:140 +#: src/TouchPoint-WP/Utilities.php:141 msgctxt "e.g. event happens weekly on..." msgid "Fridays" msgstr "los viernes" -#: src/TouchPoint-WP/Utilities.php:141 +#: src/TouchPoint-WP/Utilities.php:142 msgctxt "e.g. event happens weekly on..." msgid "Saturdays" msgstr "los sábados" -#: src/TouchPoint-WP/Utilities.php:187 +#: src/TouchPoint-WP/Utilities.php:188 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Sun" msgstr "Dom" -#: src/TouchPoint-WP/Utilities.php:188 +#: src/TouchPoint-WP/Utilities.php:189 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Mon" msgstr "Lun" -#: src/TouchPoint-WP/Utilities.php:189 +#: src/TouchPoint-WP/Utilities.php:190 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Tue" msgstr "Mar" -#: src/TouchPoint-WP/Utilities.php:190 +#: src/TouchPoint-WP/Utilities.php:191 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Wed" msgstr "Mié" -#: src/TouchPoint-WP/Utilities.php:191 +#: src/TouchPoint-WP/Utilities.php:192 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Thu" msgstr "Jue" -#: src/TouchPoint-WP/Utilities.php:192 +#: src/TouchPoint-WP/Utilities.php:193 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Fri" msgstr "Vie" -#: src/TouchPoint-WP/Utilities.php:193 +#: src/TouchPoint-WP/Utilities.php:194 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Sat" msgstr "Sáb" @@ -1163,37 +1163,37 @@ msgstr "Ubicaciones" msgid "Locations are physical places, probably campuses. None are required, but they can help present geographic information clearly." msgstr "Las ubicaciones son lugares físicos, probablemente campus. No se requiere ninguno, pero pueden ayudar a presentar la información geográfica con claridad." -#: src/TouchPoint-WP/Utilities.php:235 +#: src/TouchPoint-WP/Utilities.php:236 msgctxt "Time of Day" msgid "Late Night" msgstr "Tarde en la noche" -#: src/TouchPoint-WP/Utilities.php:237 +#: src/TouchPoint-WP/Utilities.php:238 msgctxt "Time of Day" msgid "Early Morning" msgstr "Madrugada" -#: src/TouchPoint-WP/Utilities.php:239 +#: src/TouchPoint-WP/Utilities.php:240 msgctxt "Time of Day" msgid "Morning" msgstr "Mañana" -#: src/TouchPoint-WP/Utilities.php:241 +#: src/TouchPoint-WP/Utilities.php:242 msgctxt "Time of Day" msgid "Midday" msgstr "Mediodía" -#: src/TouchPoint-WP/Utilities.php:243 +#: src/TouchPoint-WP/Utilities.php:244 msgctxt "Time of Day" msgid "Afternoon" msgstr "Tarde" -#: src/TouchPoint-WP/Utilities.php:245 +#: src/TouchPoint-WP/Utilities.php:246 msgctxt "Time of Day" msgid "Evening" msgstr "Tardecita" -#: src/TouchPoint-WP/Utilities.php:247 +#: src/TouchPoint-WP/Utilities.php:248 msgctxt "Time of Day" msgid "Night" msgstr "Noche" @@ -1225,7 +1225,7 @@ msgstr "restablecer el mapa" #: src/TouchPoint-WP/Involvement.php:1027 #: src/TouchPoint-WP/Involvement.php:1120 #: src/TouchPoint-WP/Involvement.php:1144 -#: src/TouchPoint-WP/TouchPointWP_Widget.php:67 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:71 #: src/TouchPoint-WP/Utilities/DateFormats.php:288 #: src/TouchPoint-WP/Utilities/DateFormats.php:352 msgid "%1$s at %2$s" @@ -1293,7 +1293,7 @@ msgid "Could not locate." msgstr "No se pudo localizar." #: src/TouchPoint-WP/Meeting.php:672 -#: src/TouchPoint-WP/TouchPointWP.php:1032 +#: src/TouchPoint-WP/TouchPointWP.php:1033 msgid "Only GET requests are allowed." msgstr "Solo se permiten solicitudes GET." @@ -1411,16 +1411,16 @@ msgstr "Agregar Nuevo %s" msgid "New %s" msgstr "Nuevo %s" -#: src/TouchPoint-WP/Report.php:176 +#: src/TouchPoint-WP/Report.php:177 msgid "TouchPoint Reports" msgstr "Informes de TouchPoint" -#: src/TouchPoint-WP/Report.php:177 +#: src/TouchPoint-WP/Report.php:178 msgid "TouchPoint Report" msgstr "Informe de TouchPoint" #. translators: Last updated date/time for a report. %1$s is the date. %2$s is the time. -#: src/TouchPoint-WP/Report.php:405 +#: src/TouchPoint-WP/Report.php:417 msgid "Updated on %1$s at %2$s" msgstr "Actualizada %1$s %2$s" @@ -1566,7 +1566,7 @@ msgstr "mañana" msgid "(named person)" msgstr "(persona nombrada)" -#: src/TouchPoint-WP/Utilities.php:496 +#: src/TouchPoint-WP/Utilities.php:497 msgid "Expand" msgstr "Ampliar" @@ -1814,7 +1814,7 @@ msgstr "Campus" msgid "All Day" msgstr "todo el dia" -#: src/TouchPoint-WP/Utilities.php:290 +#: src/TouchPoint-WP/Utilities.php:291 msgctxt "list of items, and *others*" msgid "others" msgstr "otros" @@ -1827,14 +1827,6 @@ msgstr "Clave API de ipapi.co" msgid "Optional. Allows for geolocation of user IP addresses. This generally will work without a key, but may be rate limited." msgstr "Opcional. Permite la geolocalización de las direcciones IP de los usuarios. Por lo general, esto funcionará sin una clave, pero puede tener una frecuencia limitada." -#: src/TouchPoint-WP/TouchPointWP_Settings.php:444 -msgid "Allow the TouchPoint-WP developers to publicly list your site/church as using TouchPoint-WP" -msgstr "Permitir que los desarrolladores de TouchPoint-WP incluyan públicamente su sitio/iglesia como usuarios de TouchPoint-WP" - -#: src/TouchPoint-WP/TouchPointWP_Settings.php:445 -msgid "Helps other prospective churches see what can be done by combining WordPress with the best ChMS on the planet. Only applies if this site is accessible on the public internet." -msgstr "Ayuda a otras iglesias potenciales a ver lo que se puede hacer combinando WordPress con el mejor ChMS del planeta. Solo se aplica si este sitio es accesible en Internet público." - #: src/templates/admin/invKoForm.php:60 msgid "Import Campuses" msgstr "Importar Campus" @@ -1847,15 +1839,15 @@ msgstr "Todos los campus" msgid "(No Campus)" msgstr "(Sin campus)" -#: src/TouchPoint-WP/TouchPointWP_Widget.php:37 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:39 msgid "TouchPoint-WP Status" msgstr "Estado de TouchPoint-WP" -#: src/TouchPoint-WP/TouchPointWP_Widget.php:92 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:96 msgid "Imported" msgstr "Importadas" -#: src/TouchPoint-WP/TouchPointWP_Widget.php:93 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:97 msgid "Last Updated" msgstr "Actualizada" @@ -1871,3 +1863,11 @@ msgstr "Las reuniones con más de esta cantidad de días en el pasado ya no se a #: src/TouchPoint-WP/TouchPointWP_Settings.php:919 msgid "Meetings will be kept on the calendar until the event is this many days in the past. Once an event is older than this, it'll be deleted." msgstr "Las reuniones se mantendrán en el calendario hasta que el evento tenga esta cantidad de días en el pasado. Una vez que un evento tenga más de esta cantidad de días, se eliminará." + +#: src/TouchPoint-WP/TouchPointWP_Settings.php:444 +msgid "List Site in Directory" +msgstr "Listar sitio en directorio" + +#: src/TouchPoint-WP/TouchPointWP_Settings.php:445 +msgid "Allow the TouchPoint-WP developers to publicly list your site/church as using TouchPoint-WP. Helps other prospective churches see what can be done by combining WordPress with the best ChMS on the planet. Only applies if this site is accessible on the public internet." +msgstr "Permita que los desarrolladores de TouchPoint-WP incluyan públicamente su sitio o iglesia como sitios que usan TouchPoint-WP. Esto ayuda a otras iglesias potenciales a ver lo que se puede hacer al combinar WordPress con el mejor ChMS del planeta. Solo se aplica si este sitio es accesible en Internet público." diff --git a/i18n/TouchPoint-WP.pot b/i18n/TouchPoint-WP.pot index 977622c..92ee09b 100644 --- a/i18n/TouchPoint-WP.pot +++ b/i18n/TouchPoint-WP.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-11-22T18:07:49+00:00\n" +"POT-Creation-Date: 2024-11-28T19:12:52+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.11.0\n" "X-Domain: TouchPoint-WP\n" @@ -361,7 +361,7 @@ msgstr "" #: src/TouchPoint-WP/Involvement.php:1027 #: src/TouchPoint-WP/Involvement.php:1120 #: src/TouchPoint-WP/Involvement.php:1144 -#: src/TouchPoint-WP/TouchPointWP_Widget.php:67 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:71 #: src/TouchPoint-WP/Utilities/DateFormats.php:288 #: src/TouchPoint-WP/Utilities/DateFormats.php:352 msgid "%1$s at %2$s" @@ -572,7 +572,7 @@ msgid "Unknown" msgstr "" #: src/TouchPoint-WP/Meeting.php:672 -#: src/TouchPoint-WP/TouchPointWP.php:1032 +#: src/TouchPoint-WP/TouchPointWP.php:1033 msgid "Only GET requests are allowed." msgstr "" @@ -619,7 +619,7 @@ msgid "Person in %s" msgstr "" #: src/TouchPoint-WP/Person.php:1451 -#: src/TouchPoint-WP/Utilities.php:285 +#: src/TouchPoint-WP/Utilities.php:286 #: assets/js/base-defer.js:18 msgid "and" msgstr "" @@ -637,16 +637,16 @@ msgstr "" msgid "You may need to sign in." msgstr "" -#: src/TouchPoint-WP/Report.php:176 +#: src/TouchPoint-WP/Report.php:177 msgid "TouchPoint Reports" msgstr "" -#: src/TouchPoint-WP/Report.php:177 +#: src/TouchPoint-WP/Report.php:178 msgid "TouchPoint Report" msgstr "" #. translators: Last updated date/time for a report. %1$s is the date. %2$s is the time. -#: src/TouchPoint-WP/Report.php:405 +#: src/TouchPoint-WP/Report.php:417 msgid "Updated on %1$s at %2$s" msgstr "" @@ -745,42 +745,42 @@ msgstr "" msgid "Every 15 minutes" msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2030 +#: src/TouchPoint-WP/TouchPointWP.php:2031 msgid "Unknown Type" msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2087 +#: src/TouchPoint-WP/TouchPointWP.php:2088 msgid "Your Searches" msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2090 +#: src/TouchPoint-WP/TouchPointWP.php:2091 msgid "Public Searches" msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2093 +#: src/TouchPoint-WP/TouchPointWP.php:2094 msgid "Status Flags" msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2098 #: src/TouchPoint-WP/TouchPointWP.php:2099 +#: src/TouchPoint-WP/TouchPointWP.php:2100 msgid "Current Value" msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2216 -#: src/TouchPoint-WP/TouchPointWP.php:2252 +#: src/TouchPoint-WP/TouchPointWP.php:2217 +#: src/TouchPoint-WP/TouchPointWP.php:2253 msgid "Invalid or incomplete API Settings." msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2266 -#: src/TouchPoint-WP/TouchPointWP.php:2310 +#: src/TouchPoint-WP/TouchPointWP.php:2267 +#: src/TouchPoint-WP/TouchPointWP.php:2311 msgid "Host appears to be missing from TouchPoint-WP configuration." msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2383 +#: src/TouchPoint-WP/TouchPointWP.php:2384 msgid "The scripts on TouchPoint that interact with this plugin are out-of-date, and an automatic update failed." msgstr "" -#: src/TouchPoint-WP/TouchPointWP.php:2442 +#: src/TouchPoint-WP/TouchPointWP.php:2443 msgid "People Query Failed" msgstr "" @@ -921,11 +921,11 @@ msgid "Optional. Allows for geolocation of user IP addresses. This generally wi msgstr "" #: src/TouchPoint-WP/TouchPointWP_Settings.php:444 -msgid "Allow the TouchPoint-WP developers to publicly list your site/church as using TouchPoint-WP" +msgid "List Site in Directory" msgstr "" #: src/TouchPoint-WP/TouchPointWP_Settings.php:445 -msgid "Helps other prospective churches see what can be done by combining WordPress with the best ChMS on the planet. Only applies if this site is accessible on the public internet." +msgid "Allow the TouchPoint-WP developers to publicly list your site/church as using TouchPoint-WP. Helps other prospective churches see what can be done by combining WordPress with the best ChMS on the planet. Only applies if this site is accessible on the public internet." msgstr "" #: src/TouchPoint-WP/TouchPointWP_Settings.php:463 @@ -1417,129 +1417,129 @@ msgstr "" msgid "Save Settings" msgstr "" -#: src/TouchPoint-WP/TouchPointWP_Widget.php:37 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:39 msgid "TouchPoint-WP Status" msgstr "" -#: src/TouchPoint-WP/TouchPointWP_Widget.php:92 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:96 msgid "Imported" msgstr "" -#: src/TouchPoint-WP/TouchPointWP_Widget.php:93 +#: src/TouchPoint-WP/TouchPointWP_Widget.php:97 msgid "Last Updated" msgstr "" -#: src/TouchPoint-WP/Utilities.php:135 +#: src/TouchPoint-WP/Utilities.php:136 msgctxt "e.g. event happens weekly on..." msgid "Sundays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:136 +#: src/TouchPoint-WP/Utilities.php:137 msgctxt "e.g. event happens weekly on..." msgid "Mondays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:137 +#: src/TouchPoint-WP/Utilities.php:138 msgctxt "e.g. event happens weekly on..." msgid "Tuesdays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:138 +#: src/TouchPoint-WP/Utilities.php:139 msgctxt "e.g. event happens weekly on..." msgid "Wednesdays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:139 +#: src/TouchPoint-WP/Utilities.php:140 msgctxt "e.g. event happens weekly on..." msgid "Thursdays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:140 +#: src/TouchPoint-WP/Utilities.php:141 msgctxt "e.g. event happens weekly on..." msgid "Fridays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:141 +#: src/TouchPoint-WP/Utilities.php:142 msgctxt "e.g. event happens weekly on..." msgid "Saturdays" msgstr "" -#: src/TouchPoint-WP/Utilities.php:187 +#: src/TouchPoint-WP/Utilities.php:188 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Sun" msgstr "" -#: src/TouchPoint-WP/Utilities.php:188 +#: src/TouchPoint-WP/Utilities.php:189 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Mon" msgstr "" -#: src/TouchPoint-WP/Utilities.php:189 +#: src/TouchPoint-WP/Utilities.php:190 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Tue" msgstr "" -#: src/TouchPoint-WP/Utilities.php:190 +#: src/TouchPoint-WP/Utilities.php:191 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Wed" msgstr "" -#: src/TouchPoint-WP/Utilities.php:191 +#: src/TouchPoint-WP/Utilities.php:192 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Thu" msgstr "" -#: src/TouchPoint-WP/Utilities.php:192 +#: src/TouchPoint-WP/Utilities.php:193 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Fri" msgstr "" -#: src/TouchPoint-WP/Utilities.php:193 +#: src/TouchPoint-WP/Utilities.php:194 msgctxt "e.g. \"Event happens weekly on...\" or \"This ...\"" msgid "Sat" msgstr "" -#: src/TouchPoint-WP/Utilities.php:235 +#: src/TouchPoint-WP/Utilities.php:236 msgctxt "Time of Day" msgid "Late Night" msgstr "" -#: src/TouchPoint-WP/Utilities.php:237 +#: src/TouchPoint-WP/Utilities.php:238 msgctxt "Time of Day" msgid "Early Morning" msgstr "" -#: src/TouchPoint-WP/Utilities.php:239 +#: src/TouchPoint-WP/Utilities.php:240 msgctxt "Time of Day" msgid "Morning" msgstr "" -#: src/TouchPoint-WP/Utilities.php:241 +#: src/TouchPoint-WP/Utilities.php:242 msgctxt "Time of Day" msgid "Midday" msgstr "" -#: src/TouchPoint-WP/Utilities.php:243 +#: src/TouchPoint-WP/Utilities.php:244 msgctxt "Time of Day" msgid "Afternoon" msgstr "" -#: src/TouchPoint-WP/Utilities.php:245 +#: src/TouchPoint-WP/Utilities.php:246 msgctxt "Time of Day" msgid "Evening" msgstr "" -#: src/TouchPoint-WP/Utilities.php:247 +#: src/TouchPoint-WP/Utilities.php:248 msgctxt "Time of Day" msgid "Night" msgstr "" -#: src/TouchPoint-WP/Utilities.php:290 +#: src/TouchPoint-WP/Utilities.php:291 msgctxt "list of items, and *others*" msgid "others" msgstr "" -#: src/TouchPoint-WP/Utilities.php:496 +#: src/TouchPoint-WP/Utilities.php:497 msgid "Expand" msgstr "" diff --git a/src/TouchPoint-WP/Stats.php b/src/TouchPoint-WP/Stats.php index 914f1fc..28d38f0 100644 --- a/src/TouchPoint-WP/Stats.php +++ b/src/TouchPoint-WP/Stats.php @@ -261,6 +261,7 @@ public function getStatsForSubmission(bool $updateQueried = false): array $data['wpTimezone'] = get_option('timezone_string'); $data['adminEmail'] = get_option('admin_email'); $data['siteName'] = get_bloginfo('name'); + $data['siteLogoUrl'] = esc_url( wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' )[0] ); $data['listPublicly'] = 1 * ($sets->enable_public_listing === 'on'); $data['installId'] = $this->installId; $data['privateKey'] = $this->privateKey; @@ -279,7 +280,25 @@ protected function submitStats(): void $data = $this->getStatsForSubmission(); - wp_remote_post(self::SUBMISSION_ENDPOINT, [ + /** + * This plugin is designed to be used by other churches, but to help troubleshoot and understand usage, some + * basic statistics are sent back to Tenth. This filter allows you to change the endpoint to which the data is + * sent, which may be necessary if you have a proxy system setup. It also allows you to disable the sending of + * all information back to Tenth by setting the value to an empty string. + * + * The URL must use https. + * + * @since 0.0.96 Added + * + * @param string $endpoint The endpoint value to use. + */ + $endpoint = (string)apply_filters('tp_stats_endpoint', self::SUBMISSION_ENDPOINT); + + if ( ! str_starts_with($endpoint, 'https://')) { + return; + } + + wp_remote_post($endpoint, [ 'body' => ['data' => $data], 'timeout' => 10, 'blocking' => false, diff --git a/src/TouchPoint-WP/TouchPointWP.php b/src/TouchPoint-WP/TouchPointWP.php index c89c99b..3f11495 100644 --- a/src/TouchPoint-WP/TouchPointWP.php +++ b/src/TouchPoint-WP/TouchPointWP.php @@ -672,6 +672,7 @@ protected function createTables(): void wpTimezone varchar(50) NOT NULL, adminEmail varchar(255) NOT NULL, siteName varchar(255) NOT NULL, + siteLogo varchar(512) NOT NULL, createdDT datetime DEFAULT NOW(), updatedDT datetime DEFAULT NOW() ON UPDATE NOW(), diff --git a/src/TouchPoint-WP/TouchPointWP_Settings.php b/src/TouchPoint-WP/TouchPointWP_Settings.php index 71162a7..c203c7a 100644 --- a/src/TouchPoint-WP/TouchPointWP_Settings.php +++ b/src/TouchPoint-WP/TouchPointWP_Settings.php @@ -441,9 +441,9 @@ private function settingsFields(bool|string $includeDetail = false): array ], [ 'id' => 'enable_public_listing', - 'label' => __('Allow the TouchPoint-WP developers to publicly list your site/church as using TouchPoint-WP', 'TouchPoint-WP'), + 'label' => __('List Site in Directory', 'TouchPoint-WP'), 'description' => __( - "Helps other prospective churches see what can be done by combining WordPress with the best ChMS on the planet. Only applies if this site is accessible on the public internet.", + "Allow the TouchPoint-WP developers to publicly list your site/church as using TouchPoint-WP. Helps other prospective churches see what can be done by combining WordPress with the best ChMS on the planet. Only applies if this site is accessible on the public internet.", 'TouchPoint-WP' ), 'type' => 'checkbox',