Permalink
Browse files

smartified entries_overview.inc

  • Loading branch information...
1 parent 1e648e2 commit 60f2535597895bd13ba8a249e07b9bb94652ca41 @ophian ophian committed Feb 28, 2012
Showing with 15 additions and 5 deletions.
  1. +12 −5 include/admin/entries_overview.inc.php
  2. +3 −0 include/admin/tpl/entries_overview.inc.tpl
@@ -1,12 +1,19 @@
<?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!');
}
-echo WELCOME_BACK . ' ' . htmlspecialchars($_SESSION['serendipityUser']);
+if (!is_object($serendipity['smarty'])) {
+ serendipity_smarty_init();
+}
+
+$serendipity['smarty']->assign($data);
+
+$tfile = dirname(__FILE__) . "/tpl/entries_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 : */
@@ -0,0 +1,3 @@
+
+{$CONST.WELCOME_BACK} {$smarty.session.serendipityUser|escape}
+

0 comments on commit 60f2535

Please sign in to comment.