Пример #1
0
 function format()
 {
     return WikiPlugin::makeBox($this->title, $this->body);
 }
Пример #2
0
 function getArgs($argstr, $request, $defaults = false)
 {
     if (!$defaults) {
         $defaults = $this->getDefaultArguments();
     }
     $args = WikiPlugin::getArgs($argstr, $request, $defaults);
     $action = $request->getArg('action');
     if ($action != 'browse' && !isActionPage($action)) {
         $args['format'] = false;
     }
     // default -> HTML
     if ($args['format'] == 'rss' && empty($args['limit'])) {
         $args['limit'] = 15;
     }
     // Fix default value for RSS.
     if ($args['format'] == 'rss2' && empty($args['limit'])) {
         $args['limit'] = 15;
     }
     // Fix default value for RSS2.
     if ($args['format'] == 'sidebar' && empty($args['limit'])) {
         $args['limit'] = 10;
     }
     // Fix default value for sidebar.
     return $args;
 }
function smarty_modifier_wiki($text)
{
    return WikiPlugin::ModifyText($text);
}