はじまりの大地

This commit is contained in:
miteruzo
2024-07-08 03:32:47 +09:00
commit c616a96f53
7749 changed files with 478270 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace dokuwiki\Menu\Item;
/**
* Class Feed
*/
class Feed extends AbstractItem
{
/** @inheritdoc */
public function __construct()
{
parent::__construct();
global $lang;
if (!in_array('feed', explode(',', tpl_getConf('pageIcons')))) {
throw new \RuntimeException("feed is not available");
}
unset($this->params['do']);
$this->label = $lang['btn_recent'];
$this->svg = tpl_incdir() . 'images/menu/rss.svg';
}
public function getLinkAttributes($classprefix = 'menuitem ')
{
$attr = parent::getLinkAttributes($classprefix);
$attr['href'] = DOKU_URL . 'feed.php?ns=' . getNS($this->id);
return $attr;
}
}