Signed-off-by: Stéphane Jacob <sj@m4x.org>
}
}
+ /** Get links for nl pages.
+ */
+ public function adminLinks()
+ {
+ return array(
+ 'index' => array('link' => $this->prefix(), 'title' => 'Archives'),
+ 'admin' => array('link' => $this->adminPrefix(), 'title' => 'Administrer')
+ );
+ }
+
/** Hack used to remove "admin" links on X.org page on X.net
* The 'admin' links are enabled for all pages, except for X.org when accessing NL through X.net
*/
{* *}
{**************************************************************************}
-
-<h1>
- {$nl->name}
-</h1>
+{include file="newsletter/header.tpl" current="admin"}
<h3>
<a href="{$nl->adminPrefix()}/categories">Gérer les catégories d'articles</a>
{* *}
{**************************************************************************}
-
-<h1>
- {$nl->name}
-{if $nl->mayEdit() && $nl->adminLinksEnabled()}
- [<a href="{$nl->adminPrefix()}">Administrer</a>]
-{/if}
-</h1>
+{include file="newsletter/header.tpl" current="index"}
{if $nl->maySubmit()}
<p class="center">