Changeset 2212778
- Timestamp:
- 12/16/2019 10:10:27 AM (6 years ago)
- Location:
- promissa/trunk
- Files:
-
- 8 edited
-
functions.php (modified) (1 diff)
-
languages/promissa-nl_NL.mo (modified) (previous)
-
languages/promissa-nl_NL.po (modified) (3 diffs)
-
languages/promissa.pot (modified) (3 diffs)
-
promissa.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
shortcodes/upcoming_mass.php (modified) (3 diffs)
-
widgets/upcoming_mass.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
promissa/trunk/functions.php
r2188087 r2212778 228 228 } 229 229 } 230 231 if (!function_exists('getDayOfWeekPlural'))232 {233 function getDayOfWeekPlural($i)234 {235 switch($i) {236 case 1:237 return __('mondays', 'promissa');238 case 2:239 return __('tuesdays', 'promissa');240 case 3:241 return __('wednesdays', 'promissa');242 case 4:243 return __('thursdays', 'promissa');244 case 5:245 return __('fridays', 'promissa');246 case 6:247 return __('saturdays', 'promissa');248 case 7:249 return __('sundays', 'promissa');250 default:251 return '';252 }253 }254 }255 256 if (!function_exists('getTimeOfDayOfWeek'))257 {258 function getTimeOfDayOfWeek($hour, $minutes)259 {260 return sprintf('%02d:%02d', $hour, $minutes);261 }262 }263 230 ?> -
promissa/trunk/languages/promissa-nl_NL.po
r2207376 r2212778 2 2 msgstr "" 3 3 "Project-Id-Version: Pro Missa\n" 4 "POT-Creation-Date: 2019-12- 06 19:22+0100\n"5 "PO-Revision-Date: 2019-12- 06 19:22+0100\n"4 "POT-Creation-Date: 2019-12-16 11:09+0100\n" 5 "PO-Revision-Date: 2019-12-16 11:09+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" … … 77 77 msgstr "zondag" 78 78 79 #: functions.php:237 80 msgid "mondays" 81 msgstr "maandags" 82 83 #: functions.php:239 84 msgid "tuesdays" 85 msgstr "dinsdags" 86 87 #: functions.php:241 88 msgid "wednesdays" 89 msgstr "woensdags" 90 91 #: functions.php:243 92 msgid "thursdays" 93 msgstr "donderdags" 94 95 #: functions.php:245 96 msgid "fridays" 97 msgstr "vrijdags" 98 99 #: functions.php:247 100 msgid "saturdays" 101 msgstr "zaterdags" 102 103 #: functions.php:249 104 msgid "sundays" 105 msgstr "zondags" 106 107 #: promissa.php:86 promissa.php:87 79 #. Plugin Name of the plugin/theme 80 #: promissa.php:42 promissa.php:43 108 81 msgid "Pro Missa" 109 82 msgstr "Pro Missa" 110 83 111 #: shortcodes/calendar.php:7 984 #: shortcodes/calendar.php:76 112 85 msgid "Location" 113 86 msgstr "Locatie" 114 87 115 #: shortcodes/calendar.php:7 988 #: shortcodes/calendar.php:76 116 89 msgid "Date" 117 90 msgstr "Datum" 118 91 119 #: shortcodes/calendar.php:7 992 #: shortcodes/calendar.php:76 120 93 msgid "Time" 121 94 msgstr "Aanvang" 122 95 123 #: shortcodes/upcoming_mass.php:67 96 #: shortcodes/calendar.php:78 97 msgid "Note" 98 msgstr "Opmerking" 99 100 #: shortcodes/upcoming_mass.php:69 124 101 msgid "Today" 125 102 msgstr "Vandaag" 126 103 127 #: shortcodes/upcoming_mass.php:6 7104 #: shortcodes/upcoming_mass.php:69 128 105 msgid "Tomorrow" 129 106 msgstr "Morgen" 130 107 131 #: shortcodes/upcoming_mass.php:6 7108 #: shortcodes/upcoming_mass.php:69 132 109 msgid "Upcoming" 133 110 msgstr "Aanstaande" 134 111 135 #: shortcodes/upcoming_mass.php: 69112 #: shortcodes/upcoming_mass.php:76 136 113 msgid "at" 137 114 msgstr "om" 138 115 139 #: shortcodes/upcoming_mass.php: 69116 #: shortcodes/upcoming_mass.php:78 140 117 msgid "hour" 141 118 msgstr "uur" 142 119 143 #: shortcodes/upcoming_mass.php: 77 shortcodes/upcoming_mass.php:79120 #: shortcodes/upcoming_mass.php:87 shortcodes/upcoming_mass.php:89 144 121 msgid "in the" 145 122 msgstr "in de" 146 123 147 #: widgets/upcoming_mass.php:1 3124 #: widgets/upcoming_mass.php:12 148 125 msgid "" 149 126 "This widget will show the upcoming mass times. This is recommended if your " … … 153 130 "primaire doelgroep de zoekers naar geloof." 154 131 155 #: widgets/upcoming_mass.php:1 6132 #: widgets/upcoming_mass.php:15 156 133 msgid "Upcoming Masses" 157 134 msgstr "Komende vieringen" 158 135 159 #: widgets/upcoming_mass.php:7 3136 #: widgets/upcoming_mass.php:76 160 137 msgid "Next Masses" 161 138 msgstr "Komende vieringen" 162 139 163 #: widgets/upcoming_mass.php:8 1140 #: widgets/upcoming_mass.php:85 164 141 msgid "Title:" 165 142 msgstr "Titel:" 166 143 167 #: widgets/upcoming_mass.php:8 5144 #: widgets/upcoming_mass.php:89 168 145 msgid "Subtitle:" 169 146 msgstr "Ondertitel:" 170 147 171 #: widgets/upcoming_mass.php: 89148 #: widgets/upcoming_mass.php:93 172 149 msgid "Church:" 173 150 msgstr "Kerk:" 174 151 175 #: widgets/upcoming_mass.php:9 3152 #: widgets/upcoming_mass.php:97 176 153 msgid "All churches:" 177 154 msgstr "Alle Kerkgebouwen:" 178 155 179 #: widgets/upcoming_mass.php:10 2156 #: widgets/upcoming_mass.php:106 180 157 msgid "Count:" 181 158 msgstr "Aantal:" 182 159 183 #: widgets/upcoming_mass.php:113 160 #: widgets/upcoming_mass.php:117 161 msgid "Page:" 162 msgstr "Pagina:" 163 164 #: widgets/upcoming_mass.php:128 184 165 msgid "Show title:" 185 166 msgstr "Toon titel:" 186 167 187 #: widgets/upcoming_mass.php:1 18 widgets/upcoming_mass.php:129168 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 188 169 msgid "No" 189 170 msgstr "Nee" 190 171 191 #: widgets/upcoming_mass.php:1 18 widgets/upcoming_mass.php:129172 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 192 173 msgid "Yes" 193 174 msgstr "Ja" 194 175 195 #: widgets/upcoming_mass.php:1 24176 #: widgets/upcoming_mass.php:139 196 177 msgid "Show attendees:" 197 178 msgstr "Toon aanwezigen:" 198 179 199 #~ msgid "https://www.promissa.nl/plugins/wordpress" 200 #~ msgstr "https://www.promissa.nl/plugins/wordpress" 201 202 #~ msgid "" 203 #~ "This plugin will give you shortcodes and widgets with the latest masses " 204 #~ "and events of Pro Missa." 205 #~ msgstr "" 206 #~ "Deze plug-in geeft je shortcodes en widgets met de nieuwste missen en " 207 #~ "evenementen van Pro Missa." 208 209 #~ msgid "Kerk en IT" 210 #~ msgstr "Kerk en IT" 211 212 #~ msgid "https://www.kerkenit.nl" 213 #~ msgstr "https://www.kerkenit.nl" 180 #. Plugin URI of the plugin/theme 181 msgid "https://www.promissa.nl/plugins/wordpress" 182 msgstr "https://www.promissa.nl/plugins/wordpress" 183 184 #. Description of the plugin/theme 185 msgid "" 186 "This plugin will give you shortcodes and widgets with the latest masses and " 187 "events of Pro Missa." 188 msgstr "" 189 "Deze plug-in geeft je shortcodes en widgets met de nieuwste missen en " 190 "evenementen van Pro Missa." 191 192 #. Author of the plugin/theme 193 msgid "Kerk en IT" 194 msgstr "Kerk en IT" 195 196 #. Author URI of the plugin/theme 197 msgid "https://www.kerkenit.nl" 198 msgstr "https://www.kerkenit.nl" 199 200 #~ msgid "mondays" 201 #~ msgstr "maandags" 202 203 #~ msgid "tuesdays" 204 #~ msgstr "dinsdags" 205 206 #~ msgid "wednesdays" 207 #~ msgstr "woensdags" 208 209 #~ msgid "thursdays" 210 #~ msgstr "donderdags" 211 212 #~ msgid "fridays" 213 #~ msgstr "vrijdags" 214 215 #~ msgid "saturdays" 216 #~ msgstr "zaterdags" 217 218 #~ msgid "sundays" 219 #~ msgstr "zondags" 214 220 215 221 #~ msgid "Every" -
promissa/trunk/languages/promissa.pot
r2207376 r2212778 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: Pro Missa\n" 6 "POT-Creation-Date: 2019-12- 06 19:22+0100\n"6 "POT-Creation-Date: 2019-12-16 11:09+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" … … 75 75 msgstr "" 76 76 77 #: functions.php:23778 msgid "mondays"79 msgstr ""80 81 #: functions.php:23982 msgid "tuesdays"83 msgstr ""84 85 #: functions.php:24186 msgid "wednesdays"87 msgstr ""88 89 #: functions.php:24390 msgid "thursdays"91 msgstr ""92 93 #: functions.php:24594 msgid "fridays"95 msgstr ""96 97 #: functions.php:24798 msgid "saturdays"99 msgstr ""100 101 #: functions.php:249102 msgid "sundays"103 msgstr ""104 105 77 #. Plugin Name of the plugin/theme 106 #: promissa.php: 86 promissa.php:8778 #: promissa.php:42 promissa.php:43 107 79 msgid "Pro Missa" 108 80 msgstr "" 109 81 110 #: shortcodes/calendar.php:7 982 #: shortcodes/calendar.php:76 111 83 msgid "Location" 112 84 msgstr "" 113 85 114 #: shortcodes/calendar.php:7 986 #: shortcodes/calendar.php:76 115 87 msgid "Date" 116 88 msgstr "" 117 89 118 #: shortcodes/calendar.php:7 990 #: shortcodes/calendar.php:76 119 91 msgid "Time" 120 92 msgstr "" 121 93 122 #: shortcodes/upcoming_mass.php:67 94 #: shortcodes/calendar.php:78 95 msgid "Note" 96 msgstr "" 97 98 #: shortcodes/upcoming_mass.php:69 123 99 msgid "Today" 124 100 msgstr "" 125 101 126 #: shortcodes/upcoming_mass.php:6 7102 #: shortcodes/upcoming_mass.php:69 127 103 msgid "Tomorrow" 128 104 msgstr "" 129 105 130 #: shortcodes/upcoming_mass.php:6 7106 #: shortcodes/upcoming_mass.php:69 131 107 msgid "Upcoming" 132 108 msgstr "" 133 109 134 #: shortcodes/upcoming_mass.php: 69110 #: shortcodes/upcoming_mass.php:76 135 111 msgid "at" 136 112 msgstr "" 137 113 138 #: shortcodes/upcoming_mass.php: 69114 #: shortcodes/upcoming_mass.php:78 139 115 msgid "hour" 140 116 msgstr "" 141 117 142 #: shortcodes/upcoming_mass.php: 77 shortcodes/upcoming_mass.php:79118 #: shortcodes/upcoming_mass.php:87 shortcodes/upcoming_mass.php:89 143 119 msgid "in the" 144 120 msgstr "" 145 121 146 #: widgets/upcoming_mass.php:1 3122 #: widgets/upcoming_mass.php:12 147 123 msgid "" 148 124 "This widget will show the upcoming mass times. This is recommended if your " … … 150 126 msgstr "" 151 127 152 #: widgets/upcoming_mass.php:1 6128 #: widgets/upcoming_mass.php:15 153 129 msgid "Upcoming Masses" 154 130 msgstr "" 155 131 156 #: widgets/upcoming_mass.php:7 3132 #: widgets/upcoming_mass.php:76 157 133 msgid "Next Masses" 158 134 msgstr "" 159 135 160 #: widgets/upcoming_mass.php:8 1136 #: widgets/upcoming_mass.php:85 161 137 msgid "Title:" 162 138 msgstr "" 163 139 164 #: widgets/upcoming_mass.php:8 5140 #: widgets/upcoming_mass.php:89 165 141 msgid "Subtitle:" 166 142 msgstr "" 167 143 168 #: widgets/upcoming_mass.php: 89144 #: widgets/upcoming_mass.php:93 169 145 msgid "Church:" 170 146 msgstr "" 171 147 172 #: widgets/upcoming_mass.php:9 3148 #: widgets/upcoming_mass.php:97 173 149 msgid "All churches:" 174 150 msgstr "" 175 151 176 #: widgets/upcoming_mass.php:10 2152 #: widgets/upcoming_mass.php:106 177 153 msgid "Count:" 178 154 msgstr "" 179 155 180 #: widgets/upcoming_mass.php:113 156 #: widgets/upcoming_mass.php:117 157 msgid "Page:" 158 msgstr "" 159 160 #: widgets/upcoming_mass.php:128 181 161 msgid "Show title:" 182 162 msgstr "" 183 163 184 #: widgets/upcoming_mass.php:1 18 widgets/upcoming_mass.php:129164 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 185 165 msgid "No" 186 166 msgstr "" 187 167 188 #: widgets/upcoming_mass.php:1 18 widgets/upcoming_mass.php:129168 #: widgets/upcoming_mass.php:133 widgets/upcoming_mass.php:144 189 169 msgid "Yes" 190 170 msgstr "" 191 171 192 #: widgets/upcoming_mass.php:1 24172 #: widgets/upcoming_mass.php:139 193 173 msgid "Show attendees:" 194 174 msgstr "" -
promissa/trunk/promissa.php
r2207376 r2212778 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. 56 Version: 1.2.6 7 7 Author: Kerk en IT 8 8 Author URI: https://www.kerkenit.nl … … 43 43 __('Pro Missa', 'promissa'), 44 44 'manage_options', 45 PROMISSA_BASENAME,45 'promissa', 46 46 'promissa_settings_render_list_page' ); 47 47 -
promissa/trunk/readme.txt
r2207376 r2212778 8 8 Tags: kerk, vieringen, mistijden, kerkgebouwen, ledenadministratie, roosters 9 9 Requires at least: 5.2.1 10 Tested up to: 5.3 11 Stable tag: 1.2. 510 Tested up to: 5.3.1 11 Stable tag: 1.2.6 12 12 Requires PHP: 5.2.4 13 13 Requires at least: 4.6 … … 81 81 == Changelog == 82 82 83 = 1.2.6 = 84 85 * Added paging in upcomming masses widget 86 * Bugfixes 87 83 88 = 1.2.5 = 84 89 -
promissa/trunk/shortcodes/upcoming_mass.php
r2207376 r2212778 8 8 'subtitle' => '', 9 9 'limit' => 10, 10 'page' => 0, 10 11 'show_title' => 'false', 11 12 'show_attendees' => 'false', … … 15 16 $single_church = (isset($church_id) && !empty($church_id)); 16 17 $masses = NULL; 17 18 $offset = ''; 19 if($page != NULL && !empty($page) && is_numeric($page) && (int)$page > 0) : 20 $offset = '&page=' . (string)$page . '%2C' . (string)$limit; 21 endif; 18 22 if($single_church) : 19 $masses = ProMissaREST('Schedule', '?size=' . $limit . '&filter=church_ID,eq,' . $church_id);23 $masses = ProMissaREST('Schedule', '?size=' . $limit . $offset . '&filter=church_ID,eq,' . $church_id); 20 24 else : 21 $masses = ProMissaREST('Schedule', '?size=' . $limit );25 $masses = ProMissaREST('Schedule', '?size=' . $limit . $offset); 22 26 endif; 23 27 $output = ''; … … 65 69 $output .= sprintf('<strong>%s</strong><br />', ($date->format('Y-m-d') == date('Y-m-d') ? __('Today', 'promissa') : (IsTomorrow($mass['start']) ? __('Tomorrow', 'promissa') : (WithinNextWeek($mass['start']) ? __('Upcoming', 'promissa') . ' ' . getDayOfWeek($date->format('N')) : ucfirst($dateFormatter->format($date)))))); 66 70 endif; 67 $day .= sprintf('%s<em> %s %s%s</em><br />', (!$single_church ? $mass['church'] : ''), __('at', 'promissa'), getTimeOfDayOfWeek($date->format('H'), $date->format('i')), Locale::getDefault() == 'nl_NL' ? ' ' . __('hour', 'promissa') : ''); 71 $day .= sprintf('%1$s<em> %2$s %3$02d:%4$02d%5$s</em><br />', 72 73 74 // 75 (!$single_church ? $mass['church'] : ''), //1 76 __('at', 'promissa'), //2 77 $date->format('H'), $date->format('i'), //3 //4 78 Locale::getDefault() == 'nl_NL' ? ' ' . __('hour', 'promissa') : '' //5 79 ); 68 80 $dayOfWeek = $date->format('N'); 69 81 -
promissa/trunk/widgets/upcoming_mass.php
r2207376 r2212778 22 22 $subtitle = ''; 23 23 $limit = ''; 24 $page = ''; 24 25 $show_title = ''; 25 26 $show_attendees = ''; … … 30 31 $limit = sprintf(' limit="%s"', $instance['limit']); 31 32 endif; 33 if ( ! empty( $instance['page'] ) ) : 34 $page = sprintf(' page="%s"', $instance['page']); 35 endif; 32 36 if ( ! empty( $instance['show_title'] ) ) : 33 37 $show_title = sprintf(' show_title="%s"', (((int)$instance['show_title']) == 1 ? 'true' : 'false')); … … 37 41 endif; 38 42 if(isset($instance['church_ID']) && !empty($instance['church_ID'])) : 39 return '[promissa-upcoming-masses church_id="' . $instance['church_ID'] . '"' . $subtitle . $limit . $ show_title . $show_attendees . ']';43 return '[promissa-upcoming-masses church_id="' . $instance['church_ID'] . '"' . $subtitle . $limit . $page . $show_title . $show_attendees . ']'; 40 44 else : 41 return '[promissa-upcoming-masses' . $subtitle. $limit . $ show_title . $show_attendees . ']';45 return '[promissa-upcoming-masses' . $subtitle. $limit . $page . $show_title . $show_attendees . ']'; 42 46 endif; 43 47 return ''; … … 74 78 $church_ID = ! empty( $instance['church_ID'] ) ? $instance['church_ID'] : '0'; 75 79 $limit = ! empty( $instance['limit'] ) ? $instance['limit'] : 10; 80 $page = ! empty( $instance['page'] ) ? $instance['page'] : 0; 76 81 $show_title = ! empty( $instance['show_title'] ) ? $instance['show_title'] : 0; 77 82 $show_attendees = ! empty( $instance['show_attendees'] ) ? $instance['show_attendees'] : 0; … … 105 110 for($i = 1; $i <=15; $i++) { 106 111 echo '<option value="' . $i . '"' . ((int)esc_attr( $limit ) == $i ? ' selected="selected"' : '') . '>' . $i . '</option>'; 112 } 113 echo '</select>'; 114 ?> 115 </p> 116 <p> 117 <label for="<?php echo $this->get_field_id( 'page' ); ?>"><?php _e( 'Page:', 'promissa' ); ?></label> 118 <?php 119 echo '<select class="widefat" id="' . $this->get_field_id( 'page' ) . '" name="' . $this->get_field_name( 'page' ) . '">'; 120 121 for($i = 1; $i <=15; $i++) { 122 echo '<option value="' . $i . '"' . ((int)esc_attr( $page ) == $i ? ' selected="selected"' : '') . '>' . $i . '</option>'; 107 123 } 108 124 echo '</select>'; … … 155 171 $instance['church_ID'] = ( ! empty( $new_instance['church_ID'] ) ) ? strip_tags( $new_instance['church_ID'] ) : ''; 156 172 $instance['limit'] = ( ! empty( $new_instance['limit'] ) ) ? strip_tags( $new_instance['limit'] ) : 10; 173 $instance['page'] = ( ! empty( $new_instance['page'] ) ) ? strip_tags( $new_instance['page'] ) : 0; 157 174 $instance['show_title'] = ( ! empty( $new_instance['show_title'] ) ) ? strip_tags( $new_instance['show_title'] ) : 0; 158 175 $instance['show_attendees'] = ( ! empty( $new_instance['show_attendees'] ) ) ? strip_tags( $new_instance['show_attendees'] ) : 0;
Note: See TracChangeset
for help on using the changeset viewer.