Commit Graph

64 Commits

Author SHA1 Message Date
Mataniko 4013dd2502 WEB: Simplify credits data 2020-10-03 09:10:00 -04:00
Mataniko 6c973b34b7 WEB: Move Subprojects to Downloads page 2020-10-01 00:48:59 -04:00
Mataniko db6cb726e8 WEB: Add a new SimpleModel class
The SimpleModel is used to to read simple data models from YAML that require no further processing

This allows us to delete several models that re-use the same code.
2020-09-27 22:08:07 -04:00
Mataniko 08ea2cfcde WEB: Lint and static analysis cleanup 2020-09-27 22:08:07 -04:00
Mataniko 4471b291a1 WEB: Convert all models to not be static objects
This is a first step towards moving to a dependency injection model.
2020-09-27 22:08:07 -04:00
Mataniko f8ca4c046a WEB: Update screenshots data & model 2020-09-27 22:08:07 -04:00
Mataniko 3525617bbe WEB: Update Compatibility pages to drop the Legacy model 2020-09-27 22:08:07 -04:00
Mataniko 4d78399ea2 WEB: Add error handling about missing required fields
In the new data model, some field operate as keys for other parts of the model.
This now performs some validations and will throw an error if fields are missing.

For example: a Game must have an Engine, but does not require datafiles
2020-09-27 22:08:07 -04:00
Mataniko 5b3c0e82d5 WEB: Refactor the compatibility model and pages
Update the compatibility page to use the new data models.
- Notes are now generated based on game ids, platforms and support level
- We no longer need multiple compatibilty files, only the deltas in one file
- Support level text is now localizable
- Keep support for the old model for versions < 2.0.0
2020-09-27 22:08:07 -04:00
Mataniko 7f9ae97e6c DATA: Rename GamesModel to GameDownloadsModel 2020-09-27 22:08:07 -04:00
mataniko 4e4ab142dd WEB: Add Sponsors template, data and images 2020-08-04 07:35:46 -04:00
Matan Bareket a5722c8ca0 WEB: Move the Recommended Download logic to the DownloadsModel 2019-05-09 00:28:27 -04:00
Matan Bareket 2015d340b3 WEB: Add new recommended download UAs 2019-05-08 23:52:36 -04:00
Matan Bareket f48d95e174 WEB: Lint PHP files 2019-05-08 23:28:05 -04:00
Matan Bareket 6769084e98 WEB: Move recommended download detection to PHP 2019-05-08 23:26:05 -04:00
Lothar Serra Mari 5f09bdb0c0 WEB: Rename release variable in DownloadsPage.php 2019-04-28 09:49:06 +02:00
Matan Bareket 95aaec5f3e WEB: Use AltoRouter instead of apache rewrites
This makes debugging and using other web servers much easier, and scales better when adding functionality and pages
2019-04-24 20:57:03 -04:00
Matan Bareket b17e27cc80 WEB: Additional static analysis fixes on pages 2019-01-22 19:49:58 -05:00
Matan Bareket 2eff11cbb3 WEB: Clean up most PSR2 style warnings 2019-01-22 19:49:58 -05:00
Matan Bareket df825b7878 WEB: Fix phpstan static errors 2019-01-22 19:49:58 -05:00
Matan Bareket 97262c4b2f WEB: Convert require statements to psr-4 style use statements 2019-01-22 19:49:58 -05:00
Matan Bareket 85328f2997 WEB: Use PSR-4 autoloading 2019-01-22 19:49:58 -05:00
Matan Bareket cfbeebb8dc WEB: Add namespaces to all PHP files 2019-01-22 19:49:58 -05:00
Matan Bareket 851bb41bb7 WEB: Auto-fix to PSR-2 standard 2019-01-22 19:49:58 -05:00
Matan Bareket 018c78010a NEWS: Add support for news filenames in either yyyyMMdd or yyyyMMddHHmm format
This also changes the behavior that when a user clicks on a news
article, he will get all news articles from the same day. The reasoning
is a) we barely have more than 1 article a day. b) if a user wanted a
hotlink to a particular news article, he might get two different ones
which is odd.
2018-11-18 07:46:22 -05:00
Matan Bareket a6e8ff5f17 WEB: Fix reference to the compatibility detail page 2018-07-26 20:43:55 -04:00
Matan Bareket 7809a83d56 WEB: Fix the snowberry PR page 2018-07-26 07:17:40 -04:00
Matan Bareket 157f71a271 WEB: Move templates to subfolders 2018-07-26 07:17:40 -04:00
Matan Bareket ab1ded4bba WEB: Upgrade to Smarty 3 2018-07-26 07:17:40 -04:00
Matan Bareket e8247c95e7 WEB: Programmatically generate compatibility CSS colors 2018-07-07 11:45:48 -04:00
Matan Bareket 307e195d65 WEB: Remove page specific CSS imports 2018-07-07 11:45:48 -04:00
Matan Bareket ea7287fd04 WEB: Add the screenshot back to the intro
The random screenshot is back in the front page, but I didn't re-do the gallery.
2018-07-01 15:43:49 +02:00
Matan Bareket cafe09a2f9 WEB: Remove openhub iframes from documentation page 2018-07-01 15:43:49 +02:00
Matan Bareket 1e43b3518b WEB: Fix screenshots page not loading its CSS file 2018-07-01 15:43:49 +02:00
Matan Bareket cd816a34ca WEB: Add CSS for the documentation page
This cleans up the openhub IFrames a little to fit in the smaller max-width
2018-07-01 15:43:49 +02:00
Matan Bareket 35f2c06864 WEB: Remove unused CSS files and their references 2018-07-01 15:43:49 +02:00
Matan Bareket 4ab4000135 WEB: Update the screenshots page to use baguetteBox 2018-07-01 15:43:49 +02:00
Matan Bareket d278388e75 WEB: Removed unused screenshot viewer
This template is never used since the move to lightbox
2018-07-01 15:43:49 +02:00
Thierry Crozat 0de80e5bf3 WEB: Fix text for recommended download on Windows 2016-03-28 22:28:44 +01:00
Eugene Sandulenko 51c6d597c2 WEB: Fix description for the recommended binary download 2016-03-05 22:43:34 +01:00
Eugene Sandulenko 794b6ab40a WEB: Fix extracting recommended download metadata 2016-03-05 20:28:25 +01:00
Eugene Sandulenko 64bfa6e644 WEB: Really fix referring to non-existent compatibility versions 2016-03-01 23:10:29 +01:00
Eugene Sandulenko c9ca27d399 WEB: Moved strings from NewsPage.de.php to lang.de.ini 2016-01-16 23:43:58 +01:00
Eugene Sandulenko 441e2f9140 WEB: Put all strings into lang.ini 2016-01-16 23:43:58 +01:00
Eugene Sandulenko d77625dfe0 WEB: Implemented variable substitution in lang.ini and use in Compatibility and Screenshots 2016-01-16 23:43:58 +01:00
Eugene Sandulenko 46eed0ba3e WEB: Added lang.ini support 2016-01-16 23:43:58 +01:00
Eugene Sandulenko 4325671e2e WEB: More German translations 2016-01-16 23:43:58 +01:00
Thierry Crozat bd472f8d19 WEB: Fix test to decide which compatibility layout to use 2014-07-22 00:25:31 +01:00
Eugene Sandulenko e0f634a837 Merge pull request #4 from lordhoto/compat-levels
WEB: Use descriptive support levels in compat page.
2014-01-08 11:35:21 -08:00
Johannes Schickel b4685dc298 WEB: Introduce "bugged" support level.
This is currently used for BluesTreasureHunt and pjgames.
2014-01-07 02:58:34 +01:00