-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added free games ranking in lieu of "Free to Play" tag.
- Loading branch information
Showing
7 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl; | ||
|
||
use Doctrine\DBAL\Query\QueryBuilder; | ||
use ScriptFUSION\Steam250\SiteGenerator\Ranking\RankingDependencies; | ||
|
||
class FreeRanking extends DefaultRanking | ||
{ | ||
public function __construct(RankingDependencies $dependencies) | ||
{ | ||
parent::__construct($dependencies, 'price/free'); | ||
|
||
$this->setTitle('Free Games'); | ||
$this->setDescription('Top 250 best free of charge games on Steam, according to gamer reviews.'); | ||
} | ||
|
||
public function customizeQuery(QueryBuilder $builder): void | ||
{ | ||
$builder->andWhere('app.free = 1'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends 'layout/ranking.twig' %} | ||
|
||
{% block title %}Top 250 best Free Steam Games{% endblock %} | ||
{% block heading %}Free 250{% endblock %} | ||
|
||
{% block content %} | ||
<p>{{ ranking.description }}</p> | ||
{% endblock %} |