smartfied overview.inc
This commit is contained in:
parent
19fa553138
commit
5986c9ce7e
@ -1,7 +1,4 @@
|
||||
<?php # $Id$
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||
# All rights reserved. See LICENSE file for licensing details
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
||||
if (IN_serendipity !== true) {
|
||||
die ("Don't hack!");
|
||||
@ -28,7 +25,7 @@ $output = array(
|
||||
'<a href="http://www.s9y.org/33.html">' . FURTHER_LINKS_S9Y_DOCS . '</a>',
|
||||
'<a href="http://blog.s9y.org/">' . FURTHER_LINKS_S9Y_BLOG . '</a>',
|
||||
'<a href="http://www.s9y.org/forums/">' . FURTHER_LINKS_S9Y_FORUMS . '</a>',
|
||||
'<a href="http://php-blog.sf.net/">' . FURTHER_LINKS_S9Y_SPARTACUS . '</a>',
|
||||
'<a href="http://spartacus.s9y.org/">' . FURTHER_LINKS_S9Y_SPARTACUS . '</a>',
|
||||
'<a href="' . $bookmarklet . '" onclick="alert(\'' . FURTHER_LINKS_S9Y_BOOKMARKLET_DESC . '\'); return false;" title="' . FURTHER_LINKS_S9Y_BOOKMARKLET_DESC . '">' . FURTHER_LINKS_S9Y_BOOKMARKLET . '</a>'
|
||||
),
|
||||
'links_css' => 'further_links',
|
||||
@ -37,16 +34,18 @@ $output = array(
|
||||
|
||||
serendipity_plugin_api::hook_event('backend_frontpage_display', $output);
|
||||
|
||||
if ($output['show_links']) {
|
||||
echo '<div class="' . $output['links_css'] . '">' . "\n";
|
||||
echo '<p class="further_links_head">' . $output['links_title'] . '</p>' . "\n";
|
||||
echo '<ul>' . "\n";
|
||||
foreach($output['links'] AS $link) {
|
||||
echo '<li>' . $link . '</li>' . "\n";
|
||||
}
|
||||
echo '</ul>' . "\n";
|
||||
echo '<p class="further_links_foot" style="display: none"></p>' . "\n";
|
||||
echo '</div>' . "\n";
|
||||
$data['output'] = $output;
|
||||
|
||||
if (!is_object($serendipity['smarty'])) {
|
||||
serendipity_smarty_init();
|
||||
}
|
||||
echo '<h3 class="serendipityWelcomeBack">' . $output['welcome'] . '</h3>';
|
||||
echo $output['more'];
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
|
||||
$tfile = dirname(__FILE__) . "/tpl/overview.inc.tpl";
|
||||
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
|
||||
echo $content;
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
13
include/admin/tpl/overview.inc.tpl
Normal file
13
include/admin/tpl/overview.inc.tpl
Normal file
@ -0,0 +1,13 @@
|
||||
{if $output.show_links}
|
||||
<div class="{$output.links_css}">
|
||||
<p class="further_links_head">{$output.links_title}</p>
|
||||
<ul>
|
||||
{foreach $output.links AS $link}
|
||||
<li>{$link}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<p class="further_links_foot" style="display: none"></p>
|
||||
</div>
|
||||
{/if}
|
||||
<h3 class="serendipityWelcomeBack">{$output.welcome}</h3>
|
||||
{$output.more}
|
Loading…
x
Reference in New Issue
Block a user