Changeset 2472997
- Timestamp:
- 02/11/2021 11:05:37 AM (5 years ago)
- Location:
- promissa/trunk
- Files:
-
- 3 added
- 7 edited
-
functions.php (modified) (3 diffs)
-
languages/promissa-nl_NL.mo (modified) (previous)
-
languages/promissa-nl_NL.po (modified) (4 diffs)
-
languages/promissa.pot (modified) (4 diffs)
-
promissa.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
shortcodes/corona.php (added)
-
shortcodes/form.php (added)
-
shortcodes/upcoming_mass.php (modified) (1 diff)
-
widgets/corona.php (added)
Legend:
- Unmodified
- Added
- Removed
-
promissa/trunk/functions.php
r2212820 r2472997 30 30 { 31 31 $promissa = get_option('promissa'); 32 $url = 'https://api.promissa.nl/v1.1/records/' . $page . $filter; 33 32 $url = 'https://api.promissa.nl/v1.2/records/' . $page . $filter; 33 if(is_user_logged_in()) : 34 $url = 'https://api.promissa.nl/latest/records/' . $page . $filter; 35 endif; 34 36 $args = array( 35 37 'headers' => array( … … 37 39 ) 38 40 ); 39 $response = wp_remote_get( $url, $args ); 41 if(empty($filter)) : 42 $url .= '?'; 43 else : 44 $url .= '&'; 45 endif; 46 $response = wp_remote_get( $url . 'exclude=api_private,domain', $args ); 40 47 $body = wp_remote_retrieve_body( $response ); 48 if(is_user_logged_in()) : 41 49 //var_dump($body); 50 //die(); 51 endif; 42 52 43 53 $manage = json_decode($body, true); … … 78 88 { 79 89 ob_end_flush(); 90 } 91 } 92 if (!function_exists('guid')) 93 { 94 function guid() 95 { 96 if (function_exists('com_create_guid') === true) : 97 return strtolower(trim(com_create_guid(), '{}')); 98 endif; 99 100 return strtolower(sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535))); 80 101 } 81 102 } -
promissa/trunk/languages/promissa-nl_NL.po
r2212778 r2472997 2 2 msgstr "" 3 3 "Project-Id-Version: Pro Missa\n" 4 "POT-Creation-Date: 20 19-12-16 11:09+0100\n"5 "PO-Revision-Date: 20 19-12-16 11:09+0100\n"4 "POT-Creation-Date: 2021-02-11 12:03+0100\n" 5 "PO-Revision-Date: 2021-02-11 12:03+0100\n" 6 6 "Last-Translator: Kerk en IT <info@kerkenit.nl>\n" 7 7 "Language-Team: Marco van 't Klooster <info@kerkenit.nl>\n" … … 49 49 msgstr "Ongedaan maken" 50 50 51 #: functions.php:2 1251 #: functions.php:234 52 52 msgid "monday" 53 53 msgstr "maandag" 54 54 55 #: functions.php:2 1455 #: functions.php:236 56 56 msgid "tuesday" 57 57 msgstr "dinsdag" 58 58 59 #: functions.php:2 1659 #: functions.php:238 60 60 msgid "wednesday" 61 61 msgstr "woensdag" 62 62 63 #: functions.php:2 1863 #: functions.php:240 64 64 msgid "thursday" 65 65 msgstr "donderdag" 66 66 67 #: functions.php:2 2067 #: functions.php:242 68 68 msgid "friday" 69 69 msgstr "vrijdag" 70 70 71 #: functions.php:2 2271 #: functions.php:244 72 72 msgid "saturday" 73 73 msgstr "zaterdag" 74 74 75 #: functions.php:2 2475 #: functions.php:246 76 76 msgid "sunday" 77 77 msgstr "zondag" … … 82 82 msgstr "Pro Missa" 83 83 84 #: shortcodes/calendar.php:7 684 #: shortcodes/calendar.php:77 85 85 msgid "Location" 86 86 msgstr "Locatie" 87 87 88 #: shortcodes/calendar.php:7 688 #: shortcodes/calendar.php:77 89 89 msgid "Date" 90 90 msgstr "Datum" 91 91 92 #: shortcodes/calendar.php:7 692 #: shortcodes/calendar.php:77 93 93 msgid "Time" 94 94 msgstr "Aanvang" 95 95 96 #: shortcodes/calendar.php:7 896 #: shortcodes/calendar.php:79 97 97 msgid "Note" 98 98 msgstr "Opmerking" 99 99 100 #: shortcodes/upcoming_mass.php:69 100 #: shortcodes/corona.php:226 shortcodes/form.php:29 shortcodes/form.php:30 101 #: shortcodes/form.php:86 shortcodes/upcoming_mass.php:79 102 msgid "at" 103 msgstr "om" 104 105 #: shortcodes/corona.php:226 shortcodes/form.php:86 shortcodes/form.php:92 106 #: shortcodes/upcoming_mass.php:81 107 msgid "hour" 108 msgstr "uur" 109 110 #: shortcodes/upcoming_mass.php:73 101 111 msgid "Today" 102 112 msgstr "Vandaag" 103 113 104 #: shortcodes/upcoming_mass.php: 69114 #: shortcodes/upcoming_mass.php:73 105 115 msgid "Tomorrow" 106 116 msgstr "Morgen" 107 117 108 #: shortcodes/upcoming_mass.php: 69118 #: shortcodes/upcoming_mass.php:73 109 119 msgid "Upcoming" 110 120 msgstr "Aanstaande" 111 121 112 #: shortcodes/upcoming_mass.php:76 113 msgid "at" 114 msgstr "om" 115 116 #: shortcodes/upcoming_mass.php:78 117 msgid "hour" 118 msgstr "uur" 119 120 #: shortcodes/upcoming_mass.php:87 shortcodes/upcoming_mass.php:89 122 #: shortcodes/upcoming_mass.php:90 shortcodes/upcoming_mass.php:92 121 123 msgid "in the" 122 124 msgstr "in de" 123 125 124 #: widgets/ upcoming_mass.php:12126 #: widgets/corona.php:13 widgets/upcoming_mass.php:12 125 127 msgid "" 126 128 "This widget will show the upcoming mass times. This is recommended if your " … … 130 132 "primaire doelgroep de zoekers naar geloof." 131 133 132 #: widgets/ upcoming_mass.php:15134 #: widgets/corona.php:16 widgets/upcoming_mass.php:15 133 135 msgid "Upcoming Masses" 134 136 msgstr "Komende vieringen" 135 137 136 #: widgets/ upcoming_mass.php:76138 #: widgets/corona.php:77 widgets/upcoming_mass.php:76 137 139 msgid "Next Masses" 138 140 msgstr "Komende vieringen" 139 141 140 #: widgets/ upcoming_mass.php:85142 #: widgets/corona.php:86 widgets/upcoming_mass.php:85 141 143 msgid "Title:" 142 144 msgstr "Titel:" 143 145 144 #: widgets/ upcoming_mass.php:89146 #: widgets/corona.php:90 widgets/upcoming_mass.php:89 145 147 msgid "Subtitle:" 146 148 msgstr "Ondertitel:" 147 149 148 #: widgets/ upcoming_mass.php:93150 #: widgets/corona.php:94 widgets/upcoming_mass.php:93 149 151 msgid "Church:" 150 152 msgstr "Kerk:" 151 153 152 #: widgets/ upcoming_mass.php:97154 #: widgets/corona.php:98 widgets/upcoming_mass.php:97 153 155 msgid "All churches:" 154 156 msgstr "Alle Kerkgebouwen:" 155 157 156 #: widgets/ upcoming_mass.php:106158 #: widgets/corona.php:107 widgets/upcoming_mass.php:106 157 159 msgid "Count:" 158 160 msgstr "Aantal:" 159 161 160 #: widgets/ upcoming_mass.php:117162 #: widgets/corona.php:118 widgets/upcoming_mass.php:117 161 163 msgid "Page:" 162 164 msgstr "Pagina:" 163 165 164 #: widgets/ upcoming_mass.php:128166 #: widgets/corona.php:129 widgets/upcoming_mass.php:128 165 167 msgid "Show title:" 166 168 msgstr "Toon titel:" 167 169 168 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 170 #: widgets/corona.php:134 widgets/corona.php:145 widgets/upcoming_mass.php:133 171 #: widgets/upcoming_mass.php:144 169 172 msgid "No" 170 173 msgstr "Nee" 171 174 172 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 175 #: widgets/corona.php:134 widgets/corona.php:145 widgets/upcoming_mass.php:133 176 #: widgets/upcoming_mass.php:144 173 177 msgid "Yes" 174 178 msgstr "Ja" 175 179 176 #: widgets/ upcoming_mass.php:139180 #: widgets/corona.php:140 widgets/upcoming_mass.php:139 177 181 msgid "Show attendees:" 178 182 msgstr "Toon aanwezigen:" -
promissa/trunk/languages/promissa.pot
r2212778 r2472997 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: Pro Missa\n" 6 "POT-Creation-Date: 20 19-12-16 11:09+0100\n"6 "POT-Creation-Date: 2021-02-11 12:03+0100\n" 7 7 "PO-Revision-Date: 2019-07-29 16:31+0200\n" 8 8 "Last-Translator: Kerk en IT <info@kerkenit.nl>\n" … … 47 47 msgstr "" 48 48 49 #: functions.php:2 1249 #: functions.php:234 50 50 msgid "monday" 51 51 msgstr "" 52 52 53 #: functions.php:2 1453 #: functions.php:236 54 54 msgid "tuesday" 55 55 msgstr "" 56 56 57 #: functions.php:2 1657 #: functions.php:238 58 58 msgid "wednesday" 59 59 msgstr "" 60 60 61 #: functions.php:2 1861 #: functions.php:240 62 62 msgid "thursday" 63 63 msgstr "" 64 64 65 #: functions.php:2 2065 #: functions.php:242 66 66 msgid "friday" 67 67 msgstr "" 68 68 69 #: functions.php:2 2269 #: functions.php:244 70 70 msgid "saturday" 71 71 msgstr "" 72 72 73 #: functions.php:2 2473 #: functions.php:246 74 74 msgid "sunday" 75 75 msgstr "" … … 80 80 msgstr "" 81 81 82 #: shortcodes/calendar.php:7 682 #: shortcodes/calendar.php:77 83 83 msgid "Location" 84 84 msgstr "" 85 85 86 #: shortcodes/calendar.php:7 686 #: shortcodes/calendar.php:77 87 87 msgid "Date" 88 88 msgstr "" 89 89 90 #: shortcodes/calendar.php:7 690 #: shortcodes/calendar.php:77 91 91 msgid "Time" 92 92 msgstr "" 93 93 94 #: shortcodes/calendar.php:7 894 #: shortcodes/calendar.php:79 95 95 msgid "Note" 96 96 msgstr "" 97 97 98 #: shortcodes/upcoming_mass.php:69 98 #: shortcodes/corona.php:226 shortcodes/form.php:29 shortcodes/form.php:30 99 #: shortcodes/form.php:86 shortcodes/upcoming_mass.php:79 100 msgid "at" 101 msgstr "" 102 103 #: shortcodes/corona.php:226 shortcodes/form.php:86 shortcodes/form.php:92 104 #: shortcodes/upcoming_mass.php:81 105 msgid "hour" 106 msgstr "" 107 108 #: shortcodes/upcoming_mass.php:73 99 109 msgid "Today" 100 110 msgstr "" 101 111 102 #: shortcodes/upcoming_mass.php: 69112 #: shortcodes/upcoming_mass.php:73 103 113 msgid "Tomorrow" 104 114 msgstr "" 105 115 106 #: shortcodes/upcoming_mass.php: 69116 #: shortcodes/upcoming_mass.php:73 107 117 msgid "Upcoming" 108 118 msgstr "" 109 119 110 #: shortcodes/upcoming_mass.php:76 111 msgid "at" 112 msgstr "" 113 114 #: shortcodes/upcoming_mass.php:78 115 msgid "hour" 116 msgstr "" 117 118 #: shortcodes/upcoming_mass.php:87 shortcodes/upcoming_mass.php:89 120 #: shortcodes/upcoming_mass.php:90 shortcodes/upcoming_mass.php:92 119 121 msgid "in the" 120 122 msgstr "" 121 123 122 #: widgets/ upcoming_mass.php:12124 #: widgets/corona.php:13 widgets/upcoming_mass.php:12 123 125 msgid "" 124 126 "This widget will show the upcoming mass times. This is recommended if your " … … 126 128 msgstr "" 127 129 128 #: widgets/ upcoming_mass.php:15130 #: widgets/corona.php:16 widgets/upcoming_mass.php:15 129 131 msgid "Upcoming Masses" 130 132 msgstr "" 131 133 132 #: widgets/ upcoming_mass.php:76134 #: widgets/corona.php:77 widgets/upcoming_mass.php:76 133 135 msgid "Next Masses" 134 136 msgstr "" 135 137 136 #: widgets/ upcoming_mass.php:85138 #: widgets/corona.php:86 widgets/upcoming_mass.php:85 137 139 msgid "Title:" 138 140 msgstr "" 139 141 140 #: widgets/ upcoming_mass.php:89142 #: widgets/corona.php:90 widgets/upcoming_mass.php:89 141 143 msgid "Subtitle:" 142 144 msgstr "" 143 145 144 #: widgets/ upcoming_mass.php:93146 #: widgets/corona.php:94 widgets/upcoming_mass.php:93 145 147 msgid "Church:" 146 148 msgstr "" 147 149 148 #: widgets/ upcoming_mass.php:97150 #: widgets/corona.php:98 widgets/upcoming_mass.php:97 149 151 msgid "All churches:" 150 152 msgstr "" 151 153 152 #: widgets/ upcoming_mass.php:106154 #: widgets/corona.php:107 widgets/upcoming_mass.php:106 153 155 msgid "Count:" 154 156 msgstr "" 155 157 156 #: widgets/ upcoming_mass.php:117158 #: widgets/corona.php:118 widgets/upcoming_mass.php:117 157 159 msgid "Page:" 158 160 msgstr "" 159 161 160 #: widgets/ upcoming_mass.php:128162 #: widgets/corona.php:129 widgets/upcoming_mass.php:128 161 163 msgid "Show title:" 162 164 msgstr "" 163 165 164 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 166 #: widgets/corona.php:134 widgets/corona.php:145 widgets/upcoming_mass.php:133 167 #: widgets/upcoming_mass.php:144 165 168 msgid "No" 166 169 msgstr "" 167 170 168 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 171 #: widgets/corona.php:134 widgets/corona.php:145 widgets/upcoming_mass.php:133 172 #: widgets/upcoming_mass.php:144 169 173 msgid "Yes" 170 174 msgstr "" 171 175 172 #: widgets/ upcoming_mass.php:139176 #: widgets/corona.php:140 widgets/upcoming_mass.php:139 173 177 msgid "Show attendees:" 174 178 msgstr "" -
promissa/trunk/promissa.php
r2278559 r2472997 4 4 Plugin URI: https://www.promissa.nl/plugins/wordpress 5 5 Description: This plugin will give you shortcodes and widgets with the latest masses and events of Pro Missa. 6 Version: 1. 2.86 Version: 1.3.0 7 7 Author: Kerk en IT 8 8 Author URI: https://www.kerkenit.nl -
promissa/trunk/readme.txt
r2278559 r2472997 8 8 Tags: kerk, vieringen, mistijden, kerkgebouwen, ledenadministratie, roosters 9 9 Requires at least: 5.2.1 10 Tested up to: 5. 411 Stable tag: 1. 2.810 Tested up to: 5.6.1 11 Stable tag: 1.3.0 12 12 Requires PHP: 5.2.4 13 13 Requires at least: 4.6 … … 81 81 == Changelog == 82 82 83 = 1.3.0 = 84 85 * Added signup form for parishioners to participate in mass. 86 83 87 = 1.2.8 = 84 88 -
promissa/trunk/shortcodes/upcoming_mass.php
r2212820 r2472997 76 76 77 77 78 //79 78 (!$single_church ? $mass['church'] : ''), //1 80 79 __('at', 'promissa'), //2
Note: See TracChangeset
for help on using the changeset viewer.