123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- class InfoAction extends ManagedAction
- {
- var $message = null;
- function __construct($title, $message, $output='php://output', $indent=null)
- {
- parent::__construct($output, $indent);
- $this->message = $message;
- $this->title = $title;
-
-
-
- $this->prepare($_REQUEST);
- }
-
-
- function title()
- {
- return empty($this->title) ? '' : $this->title;
- }
- function isReadOnly($args)
- {
- return true;
- }
-
- function showBody()
- {
- $this->elementStart('body', ['id' => 'error']);
- $this->elementStart('div', ['id' => 'wrap']);
- $this->showHeader();
- $this->showCore();
- $this->showFooter();
- $this->elementEnd('div');
- $this->elementEnd('body');
- }
- function showCore()
- {
- $this->elementStart('div', ['id' => 'core']);
- $this->elementStart('div', ['id' => 'aside_primary_wrapper']);
- $this->elementStart('div', ['id' => 'content_wrapper']);
- $this->elementStart('div', ['id' => 'site_nav_local_views_wrapper']);
- $this->showContentBlock();
- $this->elementEnd('div');
- $this->elementEnd('div');
- $this->elementEnd('div');
- $this->elementEnd('div');
- }
- function showHeader()
- {
- $this->elementStart('div', ['id' => 'header']);
- $this->showLogo();
- $this->showPrimaryNav();
- $this->elementEnd('div');
- }
-
- function showContent()
- {
- $this->element('div', ['class' => 'info'], $this->message);
- }
- }
|