mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Add support for tag browsing and collection browsing
This commit is contained in:
parent
f5d7d4e02a
commit
cfa54122d6
8 changed files with 181 additions and 14 deletions
11
lib/Tag.php
Normal file
11
lib/Tag.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?
|
||||
class Tag{
|
||||
public $Name;
|
||||
public $Url;
|
||||
|
||||
public function __construct(string $name){
|
||||
$this->Name = $name;
|
||||
$this->Url = '/tags/' . strtolower(str_replace(' ', '-', Formatter::ToPlainText($this->Name))) . '/';
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue