Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMS-964: Add new Eventz api and remove old one. #471

Merged
merged 30 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9b9a64f
TMS-964: Add new Eventz api and remove old one.
aerkkilae Aug 24, 2023
37903d5
Allow multiple values.
aerkkilae Aug 25, 2023
c9b25b2
Check if event is recurring.
aerkkilae Aug 25, 2023
60bbb25
Checks for startdate.
aerkkilae Aug 25, 2023
d828d9a
UI fix.
aerkkilae Aug 25, 2023
5a71377
Return recurring dates.
aerkkilae Aug 25, 2023
3417620
Correct value for event id.
aerkkilae Aug 25, 2023
5407aef
Correct value for location.
aerkkilae Aug 25, 2023
35c082e
Set events limit.
aerkkilae Aug 25, 2023
3b33054
Get link list for dynamic events.
aerkkilae Aug 28, 2023
ec5e8c3
Filter by category field.
aerkkilae Aug 28, 2023
c925a6f
Revert get_event_location function.
aerkkilae Aug 28, 2023
af242c8
Search by category.
aerkkilae Aug 28, 2023
c7ad2f9
Fix location variable.
aerkkilae Aug 28, 2023
fbbaaa1
Use topics as keywords.
aerkkilae Aug 28, 2023
de04721
Allow multiple targets and tags.
aerkkilae Aug 29, 2023
140fef9
Fix callback params and pricing info.
aerkkilae Aug 29, 2023
02bd300
Fix layout query parameters.
aerkkilae Aug 29, 2023
ff45d1b
Fix location name parameter.
aerkkilae Aug 29, 2023
1b50079
Generate short description.
aerkkilae Aug 29, 2023
605aca7
Fix comment.
aerkkilae Aug 29, 2023
80c4bd1
Code cleaning.
aerkkilae Aug 29, 2023
4a15b42
Provider info for manual events.
aerkkilae Aug 29, 2023
bacd4c6
Combine manual events.
aerkkilae Aug 29, 2023
e90b505
Linter fixes.
aerkkilae Aug 29, 2023
13a7fd4
Linter fixes.
aerkkilae Aug 29, 2023
f9f6c66
Include raw dates for possible sorting.
aerkkilae Aug 30, 2023
811499e
Checks and comment block.
aerkkilae Aug 30, 2023
ab9e9d4
CR fixes.
aerkkilae Aug 30, 2023
bf6f829
Fix translations.
aerkkilae Aug 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- TMS-964: Add new Eventz api and remove old one.

## [1.45.0] - 2023-07-31

### Modified
Expand Down
9 changes: 5 additions & 4 deletions assets/scripts/admin-dynamic-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
*/
const filterFields = [
'text',
'location',
'keyword',
'publisher',
'area',
'category',
'target',
'tag',
];

let $el = '';
Expand Down Expand Up @@ -103,7 +104,7 @@
response.forEach( ( item ) => {
select.append(
$( '<option /> ' )
.attr( 'value', item.id )
.attr( 'value', item._id )
.text( item.select_name )
.prop( 'selected', item.selected )
);
Expand Down
Binary file modified lang/fi.mo
Binary file not shown.
189 changes: 119 additions & 70 deletions lang/fi.po
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
msgid ""
msgstr ""
"Project-Id-Version: TMS Theme Base\n"
"POT-Creation-Date: 2023-05-19 14:56+0300\n"
"PO-Revision-Date: 2023-05-19 14:56+0300\n"
"POT-Creation-Date: 2023-08-30 12:27+0300\n"
"PO-Revision-Date: 2023-08-30 12:28+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.2.2\n"
"X-Generator: Poedit 3.3.2\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
"X-Poedit-WPHeader: style.css\n"
Expand Down Expand Up @@ -65,7 +65,7 @@ msgctxt "theme ACF"
msgid "Blogikirjoittaja"
msgstr ""

#: lib/ACF/DynamicEventGroup.php:55
#: lib/ACF/DynamicEventGroup.php:60
msgctxt "theme ACF"
msgid "Tiedot"
msgstr ""
Expand Down Expand Up @@ -265,60 +265,64 @@ msgctxt "pagination"
msgid "Previous"
msgstr "Edellinen"

#: lib/Formatters/CountdownFormatter.php:80 models/strings.php:224
msgctxt "theme-frontend"
msgid "Days"
msgstr "Päivää"

#: lib/Formatters/CountdownFormatter.php:81 models/strings.php:225
msgctxt "theme-frontend"
msgid "Hours"
msgstr "Tuntia"

#: lib/Formatters/CountdownFormatter.php:82 models/strings.php:226
msgctxt "theme-frontend"
msgid "Minutes"
msgstr "Minuuttia"

#: lib/Formatters/GridFormatter.php:151
msgid "Read more"
msgstr "Lue lisää"

#: lib/LinkedEvents.php:98
#: lib/Eventz.php:103
msgid "Dates"
msgstr "Päivät"

#: lib/LinkedEvents.php:100
#: lib/Eventz.php:107
msgid "Time"
msgstr "Aika"

#: lib/LinkedEvents.php:102
#: lib/Eventz.php:112
msgid "Location"
msgstr "Sijainti"

#: lib/LinkedEvents.php:104
#: lib/Eventz.php:114
msgid "Price"
msgstr "Hinta"

#: lib/LinkedEvents.php:106
msgid "Organizer"
msgstr "Järjestäjä"
#: lib/Eventz.php:116
msgid "Area"
msgstr ""

#: lib/LinkedEvents.php:216 lib/LinkedEvents.php:268
msgid "Additional information"
msgstr "Lisätiedot"
#: lib/Eventz.php:118
msgid "Target"
msgstr ""

#: lib/Eventz.php:120
msgid "Tags"
msgstr ""

#: lib/Eventz.php:124
msgid "Links"
msgstr "Linkit"

#: lib/LinkedEvents.php:261
#: lib/Eventz.php:263
msgid "Free"
msgstr "Maksuton"

#: lib/LinkedEvents.php:291
msgid "Additional info"
#: lib/Eventz.php:285
msgid "Additional information"
msgstr "Lisätiedot"

#: lib/LinkedEvents.php:343
msgid "Virtual event"
msgstr "Verkkotapahtuma"
#: lib/Formatters/CountdownFormatter.php:80 models/strings.php:224
msgctxt "theme-frontend"
msgid "Days"
msgstr "Päivää"

#: lib/Formatters/CountdownFormatter.php:81 models/strings.php:225
msgctxt "theme-frontend"
msgid "Hours"
msgstr "Tuntia"

#: lib/Formatters/CountdownFormatter.php:82 models/strings.php:226
msgctxt "theme-frontend"
msgid "Minutes"
msgstr "Minuuttia"

#: lib/Formatters/GridFormatter.php:151
msgid "Read more"
msgstr "Lue lisää"

#: lib/NavigationController.php:39
msgid "Primary Navigation"
Expand Down Expand Up @@ -358,20 +362,6 @@ msgctxt "theme CPT"
msgid "Blog authors"
msgstr ""

#: lib/PostType/BlogAuthor.php:96
#, fuzzy
#| msgid "Blog author"
msgctxt "theme CPT"
msgid "Blog Authors"
msgstr "Blogin kirjoittaja"

#: lib/PostType/BlogAuthor.php:97
#, fuzzy
#| msgid "Blog author"
msgctxt "theme CPT"
msgid "Blog Author"
msgstr "Blogin kirjoittaja"

#: lib/PostType/Contact.php:55
msgctxt "theme CPT slugs"
msgid "contact"
Expand All @@ -397,32 +387,32 @@ msgctxt "theme CPT"
msgid "Site settings"
msgstr "Sivuston asetukset"

#: lib/Roles.php:340
#: lib/Roles.php:373
msgctxt "wp-geniem-roles"
msgid "Super Administrator"
msgstr ""

#: lib/Roles.php:433
#: lib/Roles.php:470
msgctxt "wp-geniem-roles"
msgid "Administrator"
msgstr ""

#: lib/Roles.php:486
#: lib/Roles.php:525
msgctxt "wp-geniem-roles"
msgid "Site Manager"
msgstr ""

#: lib/Roles.php:532
#: lib/Roles.php:577
msgctxt "wp-geniem-roles"
msgid "Author"
msgstr ""

#: lib/Roles.php:600
#: lib/Roles.php:645
msgctxt "wp-geniem-roles"
msgid "Contributor"
msgstr ""

#: lib/Roles.php:620
#: lib/Roles.php:665
msgctxt "wp-geniem-roles"
msgid "Subscriber"
msgstr ""
Expand Down Expand Up @@ -568,31 +558,31 @@ msgctxt "theme-frontend"
msgid "Return to home"
msgstr "Palaa etusivulle"

#: models/page-events-calendar.php:39 models/page-events-search.php:118
#: models/page-events-calendar.php:39 models/page-events-search.php:119
msgid "No results"
msgstr "Ei tuloksia"

#: models/page-events-search.php:51
#: models/page-events-search.php:52
msgid "Search term"
msgstr "Hakusana"

#: models/page-events-search.php:52
#: models/page-events-search.php:53
msgid "Events from"
msgstr "Tapahtumat ajalta"

#: models/page-events-search.php:53 models/search.php:83
#: models/page-events-search.php:54 models/search.php:83
msgid "Start date"
msgstr "Alkamispäivä"

#: models/page-events-search.php:54 models/search.php:84
#: models/page-events-search.php:55 models/search.php:84
msgid "End date"
msgstr "Päättymispäivä"

#: models/page-events-search.php:117
#: models/page-events-search.php:118
msgid "No search term given"
msgstr "Hakusanaa ei annettu"

#: models/page-events-search.php:190 models/search.php:236
#: models/page-events-search.php:203 models/search.php:228
#, php-format
msgctxt "search results summary"
msgid "%1$1s result found for \"%2$2s\""
Expand Down Expand Up @@ -620,7 +610,7 @@ msgstr "Rajaa hakua"
msgid "Looking for events? Use the event search!"
msgstr "Etsitkö tapahtumia? Käytä tapahtumahakua!"

#: models/search.php:247
#: models/search.php:239
msgid "No search results"
msgstr "Ei hakutuloksia"

Expand Down Expand Up @@ -1117,6 +1107,49 @@ msgstr "Sulje (Sulje painamalla Esc -näppäintä)"
msgid "Pagination"
msgstr "Sivutus"

#: wp-content/mu-plugins/acf-codifier/src/Field/FlexibleContent.php:67
#: wp-content/mu-plugins/acf-codifier/src/Field/Repeater.php:60
msgid "Add Row"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/MultisitePostObject.php:24
msgid "Multisite Post Object"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/MultisiteRelationship.php:24
msgid "Multisite Relationship"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/MultisiteTaxonomy.php:23
msgid "Multisite taxonomy"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/Multitaxonomy.php:23
msgid "Multitaxonomy"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/Multitaxonomy.php:516
#, php-format
msgctxt "No terms"
msgid "No %s"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/PHP.php:18
msgid "PHP"
msgstr ""

#: wp-content/mu-plugins/acf-codifier/src/Fields/PHP.php:48
#, fuzzy
#| msgid "Induction loop"
msgid "Instructions"
msgstr "Induktio-silmukka"

#: wp-content/mu-plugins/acf-codifier/src/Fields/PHP.php:50
msgid ""
"This field can only be used with ACF Codifier. Doesn't do anything if "
"defined in the admin side."
msgstr ""

#. Theme Name of the plugin/theme
msgid "TMS Theme Base"
msgstr ""
Expand All @@ -1133,10 +1166,26 @@ msgstr ""
msgid "https://geniem.fi"
msgstr ""

#~ msgid "Organizer"
#~ msgstr "Järjestäjä"

#~ msgid "Additional info"
#~ msgstr "Lisätiedot"

#~ msgid "Virtual event"
#~ msgstr "Verkkotapahtuma"

#, fuzzy
#~| msgid "Blog author"
#~ msgctxt "theme CPT"
#~ msgid "Blog Authors"
#~ msgstr "Blogin kirjoittaja"

#, fuzzy
#~| msgid "Induction loop"
#~ msgid "Instructions"
#~ msgstr "Induktio-silmukka"
#~| msgid "Blog author"
#~ msgctxt "theme CPT"
#~ msgid "Blog Author"
#~ msgstr "Blogin kirjoittaja"

#, fuzzy
#~| msgctxt "theme-frontend"
Expand Down
Loading
Loading