Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add phpcs config and do automatic fixups. | Harald Eilertsen | 2022-06-18 | 16 | -594/+561 |
| | |||||
* | Bump versionv0.2.2 | Harald Eilertsen | 2022-04-07 | 1 | -1/+1 |
| | |||||
* | Remove unused code, and fix some type annotation. | Harald Eilertsen | 2022-04-07 | 1 | -16/+1 |
| | |||||
* | Fix query for concerts with filter. | Harald Eilertsen | 2022-04-07 | 1 | -1/+1 |
| | |||||
* | Update plugin metadata and version 0.2.1v0.2.1 | Harald Eilertsen | 2022-04-04 | 1 | -7/+9 |
| | |||||
* | composer: Fix version constraint for icalcreator. | Harald Eilertsen | 2022-04-04 | 2 | -22/+10 |
| | | | | Make sure we use a version that is compatible with php 7.4. | ||||
* | Bump version to 0.2.0v0.2.0 | Harald Eilertsen | 2022-04-04 | 1 | -1/+1 |
| | |||||
* | Prepare for release build using composer. | Harald Eilertsen | 2022-04-04 | 2 | -2353/+30 |
| | |||||
* | use correct file name variable when saving file | AndreaChirulescu | 2022-03-28 | 1 | -1/+1 |
| | |||||
* | added function to clean file name before ical export | AndreaChirulescu | 2022-03-28 | 1 | -0/+8 |
| | |||||
* | ics file gets first 20 characters from concert name | AndreaChirulescu | 2022-03-27 | 1 | -0/+2 |
| | |||||
* | Filtered out concerts older than today | AndreaChirulescu | 2022-03-27 | 2 | -3/+3 |
| | | | | Concerts should show with upper case | ||||
* | Move update new venue form to class. | Harald Eilertsen | 2022-03-12 | 2 | -18/+20 |
| | | | | Also fix nonce checking. | ||||
* | Move update edit concert form code to class. | Harald Eilertsen | 2022-03-12 | 2 | -57/+73 |
| | | | | | | Also ensure that nonce checking is performed before both adding and editing concerts, and escape concert data before outputing it in the form. | ||||
* | Security: Escape event and link urls before using. | Harald Eilertsen | 2022-03-12 | 1 | -2/+2 |
| | |||||
* | ConcertsTable: Initialize more properties in constructor. | Harald Eilertsen | 2022-03-12 | 1 | -0/+5 |
| | |||||
* | Security: Escape band and venue name in concerts table. | Harald Eilertsen | 2022-03-12 | 1 | -2/+2 |
| | |||||
* | ConcertsTable: Initialize page_no on construct. | Harald Eilertsen | 2022-03-12 | 1 | -1/+1 |
| | | | | | Just to make sure it has a default value and is guaranteed initialized befor it is being used. | ||||
* | Security: Add CSRF checks when updating concerts table. | Harald Eilertsen | 2022-03-12 | 1 | -1/+17 |
| | |||||
* | Move code to update concert table to concert table class. | Harald Eilertsen | 2022-03-10 | 2 | -108/+107 |
| | | | | | | Puts everything that belongs together into the same place. This means the concerts table is getting a tad large, but let's refactor that later. | ||||
* | Drop some unused variables from the admin page update. | Harald Eilertsen | 2022-03-10 | 1 | -7/+0 |
| | |||||
* | Refactor gig import code. | Harald Eilertsen | 2022-03-10 | 1 | -63/+64 |
| | | | | | | | | | Split into two functions, and drop the nesting of the ifs. Technically the ifs didn't need to be nested in the first place, since each error case would break the execution flow using `continue` anyways. Throw parsing errors instead of having to keep pass all the state into the function that only need to parse one line. | ||||
* | Fix misc errors detected by psalm. | Harald Eilertsen | 2022-03-10 | 2 | -18/+35 |
| | | | | | - Lacking type info in venue.php - Potentially dereference null-objects in giglog_admin_page.php | ||||
* | Security: Escape imported dates before outputing in error messages. | Harald Eilertsen | 2022-03-10 | 1 | -3/+2 |
| | |||||
* | Fix more psalm issues | Harald Eilertsen | 2022-03-09 | 4 | -1/+8 |
| | |||||
* | Reindent includes/ical_export.php | Harald Eilertsen | 2022-03-09 | 1 | -46/+45 |
| | |||||
* | Fix typo in concert class, eventling -> eventlink | Harald Eilertsen | 2022-03-09 | 1 | -1/+1 |
| | |||||
* | Merge remote-tracking branch 'andrea/andreaschanges' into dev | Harald Eilertsen | 2022-03-09 | 9 | -262/+2256 |
|\ | | | | | | | And fixup most whitespace issues while at it. | ||||
| * | import giglog checks for empty values and ivnalid date | AndreaChirulescu | 2022-03-01 | 1 | -32/+53 |
| | | |||||
| * | iCal file download fixes to generate one file per concert | AndreaChirulescu | 2022-02-27 | 6 | -476/+263 |
| | | | | | | | | giglog import fixes to catch errors and ignore old concerts | ||||
| * | Merge branch 'ical' of ↵ | AndreaChirulescu | 2022-02-21 | 4 | -238/+567 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges # Conflicts: # composer.json # composer.lock # giglogadmin.php | ||||
| | * | Add sample ical export module. | Harald Eilertsen | 2022-02-21 | 4 | -225/+645 |
| | | | | | | | | | | | | | | | Currently just uses sample from iCalcreator docs, but shows how it can be done, and how to hook it into WordPress. | ||||
| * | | beginning of ical setup with kigkonsults calendar | AndreaChirulescu | 2022-02-21 | 5 | -20/+1887 |
| | | | |||||
| * | | Pagination fix to resest page if out of range | AndreaChirulescu | 2022-02-13 | 1 | -1/+6 |
| |/ | |||||
* | | Fix various psalm errors. | Harald Eilertsen | 2022-03-09 | 6 | -6/+7 |
| | | |||||
* | | Some cleanup in render_concerts_table | Harald Eilertsen | 2022-02-22 | 1 | -33/+23 |
|/ | |||||
* | Fix so pagination remembers filters in shortcode too. | Harald Eilertsen | 2022-02-13 | 1 | -4/+4 |
| | |||||
* | Remember filter settings when paginating. | Harald Eilertsen | 2022-02-13 | 1 | -33/+60 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does changes quite a bit of how things work under the hood. It changes the filter settings from using POST to using query args in a GET request instead. This has some challenges: 1. The query args from the form will overwrite any query args in the original URL, so we have to keep the query args that was passed in as hidden fields in the form. 2. Since we try to keep the passed in query args, we need to filter out the query args that we expect to set in the form, otherwise query args that are dropped by the form will still be present as hidden args. Not too happy about how this works tbh, but at least it seems to work reasonably well for now. I've also renamed the args set by the form to make the URL a bit nicer, i.e "city" instead of "selectcity" etc for the query arg keys. I've also refactored quite a bit to make the code more manageable. Like using the view helper to create the month selector, so it's consistent with the others, and remembers it's selection. (I also simplified it to simply list the months from jan to dec, instead of starting at the current month. If it's important to keep the old behaviour I'll change it back.) There's a few problems still with this implementation. 1. It only works in the admin-section for now. Not sure why. Probably because shortcodes... 2. In the admin section it gains the `cid` and `pid` query args that should not be there. Not sure why. 3. If we change the filters while being on a page larger than the total number of pages after the filter change, we stay on the page even if it's not a valid page after the filter change. This should be trivial to fix. | ||||
* | Refactor rendering of the concerts table. | Harald Eilertsen | 2022-02-12 | 1 | -58/+79 |
| | | | | | | | | The main render function was getting too large and difficult to work with. Splitting it up a little to make it more manageable. Also fix styling to make the pagination links fall on one line a bit nicer. | ||||
* | Make a count method for concerts. | Harald Eilertsen | 2022-02-12 | 1 | -27/+54 |
| | | | | | | This allows querying the database for the count of concerts that will match a given filter. Useful to find the total number of pages in a pagination setting, for instance. | ||||
* | Fix pagination of concert table. | Harald Eilertsen | 2022-02-12 | 1 | -6/+7 |
| | | | | | | | There's potential vulnerabilities here still, and I'm unsure if get_permalink() is entirely safe to use in this context. Seems to do the right thing, but the docs for the function indicates it has some edge cases. | ||||
* | More indentation and format if statements. | Harald Eilertsen | 2022-02-12 | 1 | -124/+134 |
| | |||||
* | Fix indentation and add license info. | Harald Eilertsen | 2022-02-12 | 2 | -101/+104 |
| | |||||
* | more pagination details fixes | AndreaChirulescu | 2022-02-11 | 2 | -26/+61 |
| | |||||
* | css small fixed for table display | AndreaChirulescu | 2022-02-09 | 4 | -86/+133 |
| | | | | added pagination to concert list | ||||
* | Made giglog visible for admins only | AndreaChirulescu | 2022-02-07 | 1 | -92/+98 |
| | |||||
* | Added a div to make table scrollable on mobiles | AndreaChirulescu | 2021-09-24 | 1 | -2/+2 |
| | |||||
* | Changed order of date column in concerts table | AndreaChirulescu | 2021-09-19 | 1 | -4/+3 |
| | |||||
* | Padding in table so text doesn't connect between cells | AndreaChirulescu | 2021-09-19 | 2 | -2/+7 |
| | | | | Added a paragraph to have a bit of space under filters | ||||
* | Add CSRF checks to new venue form | Harald Eilertsen | 2021-09-17 | 2 | -0/+8 |
| |