diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-12 01:21:03 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-12 01:21:03 +0100 |
commit | 0842a9b17c0b25e2f1f5eca9f15e79cfb293b4a1 (patch) | |
tree | b64c446627a3ec93a0cf2ce28841fc0cdd7a107e | |
parent | f3756d0b076a81442e9512b2d3e39de47082cd22 (diff) | |
download | wcms-0842a9b17c0b25e2f1f5eca9f15e79cfb293b4a1.tar.gz wcms-0842a9b17c0b25e2f1f5eca9f15e79cfb293b4a1.zip |
art add new vars
-rw-r--r-- | app/class/art2.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app/class/art2.php b/app/class/art2.php index 2029895..4e81532 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -19,10 +19,13 @@ class Art2 protected $nav; protected $aside; protected $footer; + protected $externalcss; + protected $externalscript; protected $renderhead; protected $renderbody; protected $secure; protected $invitepassword; + protected $readpassword; protected $interface; protected $linkfrom; protected $linkto; @@ -31,6 +34,7 @@ class Art2 protected $templatejavascript; protected $templateoptions; protected $favicon; + protected $thumbnail; protected $affcount; protected $editcount; @@ -87,10 +91,13 @@ class Art2 $this->setnav(''); $this->setaside(''); $this->setfooter(''); + $this->setexternalcss([]); + $this->setexternalscript([]); $this->setrenderhead(''); $this->setrenderbody(''); $this->setsecure(3); $this->setinvitepassword('invitepassword'); + $this->setinvitepassword('readpassword'); $this->setinterface('section'); $this->setlinkfrom([]); $this->setlinkto([]); @@ -99,6 +106,7 @@ class Art2 $this->settemplatejavascript(''); $this->settemplateoptions(['externalcss', 'externaljavascript', 'favicon', 'reccursive', 'quickcss']); $this->setfavicon(''); + $this->setthumbnail(''); $this->setaffcount(0); $this->seteditcount(0); } @@ -257,6 +265,16 @@ class Art2 return $this->aside; } + public function externalcss($type = "array") + { + return $this->externalcss; + } + + public function externalscript($type = "array") + { + return $this->externalscript; + } + public function footer($type = "string") { return $this->footer; @@ -293,6 +311,11 @@ class Art2 return $this->invitepassword; } + public function readpassword($type = 'string') + { + return $this->readpassword; + } + public function interface($type = 'string') { return $this->interface; @@ -376,6 +399,11 @@ class Art2 return $this->favicon; } + public function thumbnail($type = 'string') + { + return $this->thumbnail; + } + public function affcount($type = 'int') { return $this->affcount; @@ -529,6 +557,16 @@ class Art2 } } + public function setexternalcss(array $externalcss) + { + $this->externalcss = $externalcss; + } + + public function setexternalscript(array $externalscript) + { + $this->externalscript = $externalscript; + } + public function setfooter($footer) { if (strlen($footer) < self::LENTEXT and is_string($footer)) { @@ -560,6 +598,13 @@ class Art2 } } + public function setreadpassword($readpassword) + { + if (is_string($readpassword) && strlen($readpassword) < self::LEN) { + $this->readpassword = $readpassword; + } + } + public function setinterface($interface) { if (in_array($interface, self::TABS)) { @@ -630,6 +675,13 @@ class Art2 } } + public function setthumbnail($thumbnail) + { + if (is_string($thumbnail)) { + $this->thumbnail = $thumbnail; + } + } + public function setaffcount($affcount) { if (is_int($affcount)) { |