Allow editing of projects

This commit is contained in:
Alex Cabal 2024-12-18 14:20:28 -06:00
parent e21f411191
commit b2191d1219
16 changed files with 191 additions and 75 deletions

View file

@ -36,6 +36,7 @@ use function Safe\shell_exec;
* @property string $ReadingTime
* @property string $AuthorsHtml
* @property string $AuthorsUrl This is a single URL even if there are multiple authors; for example, `/ebooks/karl-marx_friedrich-engels/`.
* @property string $AuthorsString
* @property string $ContributorsHtml
* @property string $TitleWithCreditsHtml
* @property string $TextUrl
@ -115,6 +116,7 @@ class Ebook{
protected string $_ReadingTime;
protected string $_AuthorsHtml;
protected string $_AuthorsUrl;
protected string $_AuthorsString;
protected string $_ContributorsHtml;
protected string $_TitleWithCreditsHtml;
protected string $_TextUrl;
@ -538,6 +540,14 @@ class Ebook{
return $this->_AuthorsUrl;
}
protected function GetAuthorsString(): string{
if(!isset($this->_AuthorsString)){
$this->_AuthorsString = strip_tags(Ebook::GenerateContributorList($this->Authors, false));
}
return $this->_AuthorsString;
}
protected function GetContributorsHtml(): string{
if(!isset($this->_ContributorsHtml)){
$this->_ContributorsHtml = '';