12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class DefaultLayoutPlugin extends Plugin
- {
- public $prerender_replyforms = false;
- public function onEndShowThreadedNoticeTail(NoticeListItem $nli, Notice $notice, array $notices) {
- if ($this->prerender_replyforms) {
- $nli->out->elementStart('li', array('class'=>'notice-reply', 'style'=>'display: none;'));
- $replyForm = new NoticeForm($nli->out, array('inreplyto' => $notice->getID()));
- $replyForm->show();
- $nli->out->elementEnd('li');
- }
- return true;
- }
- public function onPluginVersion(array &$versions)
- {
- $versions[] = array('name' => 'Default Layout',
- 'version' => GNUSOCIAL_VERSION,
- 'author' => 'Mikael Nordfeldth',
- 'homepage' => 'https://www.gnu.org/software/social/',
- 'rawdescription' =>
-
- _m('Optional default layout elements.'));
- return true;
- }
- }
|