mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -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/Collection.php
Normal file
11
lib/Collection.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?
|
||||
class Collection{
|
||||
public $Name;
|
||||
public $Url;
|
||||
|
||||
public function __construct(string $name){
|
||||
$this->Name = $name;
|
||||
$this->Url = '/collections/' . strtolower(str_replace(' ', '-', Formatter::ToPlainText($this->Name))) . '/';
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue