Plugin Directory

Changeset 2472997


Ignore:
Timestamp:
02/11/2021 11:05:37 AM (5 years ago)
Author:
kerkenit
Message:

Added signup form for parishioners to participate in mass.

Location:
promissa/trunk
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • promissa/trunk/functions.php

    r2212820 r2472997  
    3030        {
    3131            $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;
    3436            $args = array(
    3537                'headers' => array(
     
    3739                )
    3840            );
    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 );
    4047            $body = wp_remote_retrieve_body( $response );
     48            if(is_user_logged_in()) :
    4149            //var_dump($body);
     50            //die();
     51            endif;
    4252
    4353            $manage = json_decode($body, true);
     
    7888        {
    7989            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)));
    80101        }
    81102    }
  • promissa/trunk/languages/promissa-nl_NL.po

    r2212778 r2472997  
    22msgstr ""
    33"Project-Id-Version: Pro Missa\n"
    4 "POT-Creation-Date: 2019-12-16 11:09+0100\n"
    5 "PO-Revision-Date: 2019-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"
    66"Last-Translator: Kerk en IT <info@kerkenit.nl>\n"
    77"Language-Team: Marco van 't Klooster <info@kerkenit.nl>\n"
     
    4949msgstr "Ongedaan maken"
    5050
    51 #: functions.php:212
     51#: functions.php:234
    5252msgid "monday"
    5353msgstr "maandag"
    5454
    55 #: functions.php:214
     55#: functions.php:236
    5656msgid "tuesday"
    5757msgstr "dinsdag"
    5858
    59 #: functions.php:216
     59#: functions.php:238
    6060msgid "wednesday"
    6161msgstr "woensdag"
    6262
    63 #: functions.php:218
     63#: functions.php:240
    6464msgid "thursday"
    6565msgstr "donderdag"
    6666
    67 #: functions.php:220
     67#: functions.php:242
    6868msgid "friday"
    6969msgstr "vrijdag"
    7070
    71 #: functions.php:222
     71#: functions.php:244
    7272msgid "saturday"
    7373msgstr "zaterdag"
    7474
    75 #: functions.php:224
     75#: functions.php:246
    7676msgid "sunday"
    7777msgstr "zondag"
     
    8282msgstr "Pro Missa"
    8383
    84 #: shortcodes/calendar.php:76
     84#: shortcodes/calendar.php:77
    8585msgid "Location"
    8686msgstr "Locatie"
    8787
    88 #: shortcodes/calendar.php:76
     88#: shortcodes/calendar.php:77
    8989msgid "Date"
    9090msgstr "Datum"
    9191
    92 #: shortcodes/calendar.php:76
     92#: shortcodes/calendar.php:77
    9393msgid "Time"
    9494msgstr "Aanvang"
    9595
    96 #: shortcodes/calendar.php:78
     96#: shortcodes/calendar.php:79
    9797msgid "Note"
    9898msgstr "Opmerking"
    9999
    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
     102msgid "at"
     103msgstr "om"
     104
     105#: shortcodes/corona.php:226 shortcodes/form.php:86 shortcodes/form.php:92
     106#: shortcodes/upcoming_mass.php:81
     107msgid "hour"
     108msgstr "uur"
     109
     110#: shortcodes/upcoming_mass.php:73
    101111msgid "Today"
    102112msgstr "Vandaag"
    103113
    104 #: shortcodes/upcoming_mass.php:69
     114#: shortcodes/upcoming_mass.php:73
    105115msgid "Tomorrow"
    106116msgstr "Morgen"
    107117
    108 #: shortcodes/upcoming_mass.php:69
     118#: shortcodes/upcoming_mass.php:73
    109119msgid "Upcoming"
    110120msgstr "Aanstaande"
    111121
    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
    121123msgid "in the"
    122124msgstr "in de"
    123125
    124 #: widgets/upcoming_mass.php:12
     126#: widgets/corona.php:13 widgets/upcoming_mass.php:12
    125127msgid ""
    126128"This widget will show the upcoming mass times. This is recommended if your "
     
    130132"primaire doelgroep de zoekers naar geloof."
    131133
    132 #: widgets/upcoming_mass.php:15
     134#: widgets/corona.php:16 widgets/upcoming_mass.php:15
    133135msgid "Upcoming Masses"
    134136msgstr "Komende vieringen"
    135137
    136 #: widgets/upcoming_mass.php:76
     138#: widgets/corona.php:77 widgets/upcoming_mass.php:76
    137139msgid "Next Masses"
    138140msgstr "Komende vieringen"
    139141
    140 #: widgets/upcoming_mass.php:85
     142#: widgets/corona.php:86 widgets/upcoming_mass.php:85
    141143msgid "Title:"
    142144msgstr "Titel:"
    143145
    144 #: widgets/upcoming_mass.php:89
     146#: widgets/corona.php:90 widgets/upcoming_mass.php:89
    145147msgid "Subtitle:"
    146148msgstr "Ondertitel:"
    147149
    148 #: widgets/upcoming_mass.php:93
     150#: widgets/corona.php:94 widgets/upcoming_mass.php:93
    149151msgid "Church:"
    150152msgstr "Kerk:"
    151153
    152 #: widgets/upcoming_mass.php:97
     154#: widgets/corona.php:98 widgets/upcoming_mass.php:97
    153155msgid "All churches:"
    154156msgstr "Alle Kerkgebouwen:"
    155157
    156 #: widgets/upcoming_mass.php:106
     158#: widgets/corona.php:107 widgets/upcoming_mass.php:106
    157159msgid "Count:"
    158160msgstr "Aantal:"
    159161
    160 #: widgets/upcoming_mass.php:117
     162#: widgets/corona.php:118 widgets/upcoming_mass.php:117
    161163msgid "Page:"
    162164msgstr "Pagina:"
    163165
    164 #: widgets/upcoming_mass.php:128
     166#: widgets/corona.php:129 widgets/upcoming_mass.php:128
    165167msgid "Show title:"
    166168msgstr "Toon titel:"
    167169
    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
    169172msgid "No"
    170173msgstr "Nee"
    171174
    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
    173177msgid "Yes"
    174178msgstr "Ja"
    175179
    176 #: widgets/upcoming_mass.php:139
     180#: widgets/corona.php:140 widgets/upcoming_mass.php:139
    177181msgid "Show attendees:"
    178182msgstr "Toon aanwezigen:"
  • promissa/trunk/languages/promissa.pot

    r2212778 r2472997  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    55"Project-Id-Version: Pro Missa\n"
    6 "POT-Creation-Date: 2019-12-16 11:09+0100\n"
     6"POT-Creation-Date: 2021-02-11 12:03+0100\n"
    77"PO-Revision-Date: 2019-07-29 16:31+0200\n"
    88"Last-Translator: Kerk en IT <info@kerkenit.nl>\n"
     
    4747msgstr ""
    4848
    49 #: functions.php:212
     49#: functions.php:234
    5050msgid "monday"
    5151msgstr ""
    5252
    53 #: functions.php:214
     53#: functions.php:236
    5454msgid "tuesday"
    5555msgstr ""
    5656
    57 #: functions.php:216
     57#: functions.php:238
    5858msgid "wednesday"
    5959msgstr ""
    6060
    61 #: functions.php:218
     61#: functions.php:240
    6262msgid "thursday"
    6363msgstr ""
    6464
    65 #: functions.php:220
     65#: functions.php:242
    6666msgid "friday"
    6767msgstr ""
    6868
    69 #: functions.php:222
     69#: functions.php:244
    7070msgid "saturday"
    7171msgstr ""
    7272
    73 #: functions.php:224
     73#: functions.php:246
    7474msgid "sunday"
    7575msgstr ""
     
    8080msgstr ""
    8181
    82 #: shortcodes/calendar.php:76
     82#: shortcodes/calendar.php:77
    8383msgid "Location"
    8484msgstr ""
    8585
    86 #: shortcodes/calendar.php:76
     86#: shortcodes/calendar.php:77
    8787msgid "Date"
    8888msgstr ""
    8989
    90 #: shortcodes/calendar.php:76
     90#: shortcodes/calendar.php:77
    9191msgid "Time"
    9292msgstr ""
    9393
    94 #: shortcodes/calendar.php:78
     94#: shortcodes/calendar.php:79
    9595msgid "Note"
    9696msgstr ""
    9797
    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
     100msgid "at"
     101msgstr ""
     102
     103#: shortcodes/corona.php:226 shortcodes/form.php:86 shortcodes/form.php:92
     104#: shortcodes/upcoming_mass.php:81
     105msgid "hour"
     106msgstr ""
     107
     108#: shortcodes/upcoming_mass.php:73
    99109msgid "Today"
    100110msgstr ""
    101111
    102 #: shortcodes/upcoming_mass.php:69
     112#: shortcodes/upcoming_mass.php:73
    103113msgid "Tomorrow"
    104114msgstr ""
    105115
    106 #: shortcodes/upcoming_mass.php:69
     116#: shortcodes/upcoming_mass.php:73
    107117msgid "Upcoming"
    108118msgstr ""
    109119
    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
    119121msgid "in the"
    120122msgstr ""
    121123
    122 #: widgets/upcoming_mass.php:12
     124#: widgets/corona.php:13 widgets/upcoming_mass.php:12
    123125msgid ""
    124126"This widget will show the upcoming mass times. This is recommended if your "
     
    126128msgstr ""
    127129
    128 #: widgets/upcoming_mass.php:15
     130#: widgets/corona.php:16 widgets/upcoming_mass.php:15
    129131msgid "Upcoming Masses"
    130132msgstr ""
    131133
    132 #: widgets/upcoming_mass.php:76
     134#: widgets/corona.php:77 widgets/upcoming_mass.php:76
    133135msgid "Next Masses"
    134136msgstr ""
    135137
    136 #: widgets/upcoming_mass.php:85
     138#: widgets/corona.php:86 widgets/upcoming_mass.php:85
    137139msgid "Title:"
    138140msgstr ""
    139141
    140 #: widgets/upcoming_mass.php:89
     142#: widgets/corona.php:90 widgets/upcoming_mass.php:89
    141143msgid "Subtitle:"
    142144msgstr ""
    143145
    144 #: widgets/upcoming_mass.php:93
     146#: widgets/corona.php:94 widgets/upcoming_mass.php:93
    145147msgid "Church:"
    146148msgstr ""
    147149
    148 #: widgets/upcoming_mass.php:97
     150#: widgets/corona.php:98 widgets/upcoming_mass.php:97
    149151msgid "All churches:"
    150152msgstr ""
    151153
    152 #: widgets/upcoming_mass.php:106
     154#: widgets/corona.php:107 widgets/upcoming_mass.php:106
    153155msgid "Count:"
    154156msgstr ""
    155157
    156 #: widgets/upcoming_mass.php:117
     158#: widgets/corona.php:118 widgets/upcoming_mass.php:117
    157159msgid "Page:"
    158160msgstr ""
    159161
    160 #: widgets/upcoming_mass.php:128
     162#: widgets/corona.php:129 widgets/upcoming_mass.php:128
    161163msgid "Show title:"
    162164msgstr ""
    163165
    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
    165168msgid "No"
    166169msgstr ""
    167170
    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
    169173msgid "Yes"
    170174msgstr ""
    171175
    172 #: widgets/upcoming_mass.php:139
     176#: widgets/corona.php:140 widgets/upcoming_mass.php:139
    173177msgid "Show attendees:"
    174178msgstr ""
  • promissa/trunk/promissa.php

    r2278559 r2472997  
    44    Plugin URI: https://www.promissa.nl/plugins/wordpress
    55    Description: This plugin will give you shortcodes and widgets with the latest masses and events of Pro Missa.
    6     Version: 1.2.8
     6    Version: 1.3.0
    77    Author: Kerk en IT
    88    Author URI: https://www.kerkenit.nl
  • promissa/trunk/readme.txt

    r2278559 r2472997  
    88Tags: kerk, vieringen, mistijden, kerkgebouwen, ledenadministratie, roosters
    99Requires at least: 5.2.1
    10 Tested up to: 5.4
    11 Stable tag: 1.2.8
     10Tested up to: 5.6.1
     11Stable tag: 1.3.0
    1212Requires PHP: 5.2.4
    1313Requires at least: 4.6
     
    8181== Changelog ==
    8282
     83= 1.3.0 =
     84
     85* Added signup form for parishioners to participate in mass.
     86
    8387= 1.2.8 =
    8488
  • promissa/trunk/shortcodes/upcoming_mass.php

    r2212820 r2472997  
    7676
    7777
    78                 //
    7978                (!$single_church ? $mass['church'] : ''), //1
    8079                __('at', 'promissa'), //2
Note: See TracChangeset for help on using the changeset viewer.