123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- class StaticPlugin extends Plugin
- {
- protected function __construct()
- {
- parent::__construct('1.1', 'Laurent Opprecht', ['block_title' => 'text', 'content' => 'wysiwyg']);
- }
-
- public static function create()
- {
- static $result = null;
- return $result ? $result : $result = new self();
- }
- public function get_block_title()
- {
- return $this->get('block_title');
- }
- public function get_content()
- {
- return $this->get('content');
- }
- }
|