1 |
<?php |
<?php |
2 |
include_once("inc/Smarty.class.php"); |
include_once("inc/Smarty.class.php"); |
3 |
include_once("inc/Smarty.local.php"); |
include_once("inc/Smarty.local.php"); |
4 |
function GetLinks($read, $more, $id, $cat, $name) { |
function GetLinks($read, $more, $id, $cat, $name, $edit, $updown = false, $up = false, $down = false) { |
5 |
$t = new Smarty(); |
$t = new Smarty(); |
6 |
global $section; |
global $section, $section_menu; |
7 |
$t->assign("section", $section); |
$t->assign("section", $section); |
8 |
|
$t->assign("section_menu", $section_menu); |
9 |
$t->assign("id", $id); |
$t->assign("id", $id); |
10 |
$t->assign("cat", $cat); |
$t->assign("cat", $cat); |
11 |
$t->assign("name", $name); |
$t->assign("name", $name); |
12 |
$t->assign("read", $read); |
$t->assign("read", $read); |
13 |
$t->assign("more", $more); |
$t->assign("more", $more); |
14 |
|
$t->assign("edit", $edit); |
15 |
|
$t->assign("updown", $updown); |
16 |
|
$t->assign("up", $up); |
17 |
|
$t->assign("down", $down); |
18 |
return $t->fetch("links.tpl"); |
return $t->fetch("links.tpl"); |
19 |
} |
} |
20 |
?> |
?> |