28 |
$tpl->assign("top_id", $art["id"]); |
$tpl->assign("top_id", $art["id"]); |
29 |
$tpl->assign("top_title", MyEscape($art["title"])); |
$tpl->assign("top_title", MyEscape($art["title"])); |
30 |
$tpl->assign("top_lead", MyEscape($art["lead"])); |
$tpl->assign("top_lead", MyEscape($art["lead"])); |
31 |
|
$tpl->assign("top_pgfs", (count($art["text"]) > 0) ? true : false); |
32 |
$tpl->assign("top_titlepic_url", MyEscape($art["pic_url"])); |
$tpl->assign("top_titlepic_url", MyEscape($art["pic_url"])); |
33 |
$tpl->assign("top_titlepic_alt", MyEscape($art["pic_alt"])); |
$tpl->assign("top_titlepic_alt", MyEscape($art["pic_alt"])); |
34 |
$tpl->assign("top_titlepic_type", $art["pic_pos"]); |
$tpl->assign("top_titlepic_type", $art["pic_pos"]); |
45 |
/* MyEscape($art["more"]) */ (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "", |
/* MyEscape($art["more"]) */ (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "", |
46 |
MyEscape($art["more_title"]), $art["id"], $empty["category"], |
MyEscape($art["more_title"]), $art["id"], $empty["category"], |
47 |
"top", $isEdit, false, false, false)); |
"top", $isEdit, false, false, false)); |
48 |
|
$tpl->assign("top_read", $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false); |
49 |
} |
} |
50 |
$menu2 = array(); |
$menu2 = array(); |
51 |
$empty = array("category" => "w", "limit" => ($wn_edit && !$ed_id ? 4 : 5), "offset" => 0, "npar" => 0); |
$empty = array("category" => "w", "limit" => $isEdit ? 0 : ($wn_edit && !$ed_id ? 9 : 10), "offset" => 0, "npar" => 0); |
52 |
$ed = ""; |
$ed = ""; |
53 |
if ($wn_edit && $ed_id <= 0 && $isEdit) { |
if ($wn_edit && $ed_id <= 0 && $isEdit) { |
54 |
include_once("inc/newsEdit.php"); |
include_once("inc/newsEdit.php"); |
77 |
"id" => $art["id"], |
"id" => $art["id"], |
78 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"]), |
79 |
"lead" => MyEscape($art["lead"]), |
"lead" => MyEscape($art["lead"]), |
80 |
|
"pgfs" => (count($art["text"]) > 0) ? true : false, |
81 |
"pic" => MyEscape($art["pic_url"]), |
"pic" => MyEscape($art["pic_url"]), |
82 |
"alt" => MyEscape($art["pic_alt"]), |
"alt" => MyEscape($art["pic_alt"]), |
83 |
"pos" => MyEscape($art["pic_pos"]), |
"pos" => MyEscape($art["pic_pos"]), |
87 |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
88 |
$art["id"], $empty["category"], "wn", $isEdit, true, |
$art["id"], $empty["category"], "wn", $isEdit, true, |
89 |
($i > 0), ($i < count($arts) - 1)), |
($i > 0), ($i < count($arts) - 1)), |
90 |
|
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false, |
91 |
"text" => $art["text"] |
"text" => $art["text"] |
92 |
)); |
)); |
93 |
array_push($tmp2, array( |
array_push($tmp2, array( |
105 |
"pre" => "wn-", |
"pre" => "wn-", |
106 |
"items" => $tmp2 |
"items" => $tmp2 |
107 |
)); |
)); |
108 |
$empty = array("category" => "p", "limit" => ($pn_edit && !$ed_id ? 4 : 5), "offset" => 0, "npar" => 0); |
$empty = array("category" => "p", $isEdit ? 0 : "limit" => ($pn_edit && !$ed_id ? 9 : 10), "offset" => 0, "npar" => 0); |
109 |
$ed = ""; |
$ed = ""; |
110 |
if ($pn_edit && $ed_id <= 0 && $isEdit) { |
if ($pn_edit && $ed_id <= 0 && $isEdit) { |
111 |
include_once("inc/newsEdit.php"); |
include_once("inc/newsEdit.php"); |
134 |
"id" => $art["id"], |
"id" => $art["id"], |
135 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"]), |
136 |
"lead" => MyEscape($art["lead"]), |
"lead" => MyEscape($art["lead"]), |
137 |
|
"pgfs" => (count($art["text"]) > 0) ? true : false, |
138 |
"pic" => MyEscape($art["pic_url"]), |
"pic" => MyEscape($art["pic_url"]), |
139 |
"alt" => MyEscape($art["pic_alt"]), |
"alt" => MyEscape($art["pic_alt"]), |
140 |
"pos" => MyEscape($art["pic_pos"]), |
"pos" => MyEscape($art["pic_pos"]), |
144 |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
145 |
$art["id"], $empty["category"], "pn", $isEdit, true, |
$art["id"], $empty["category"], "pn", $isEdit, true, |
146 |
($i > 0), ($i < count($arts) - 1)), |
($i > 0), ($i < count($arts) - 1)), |
147 |
|
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false, |
148 |
"text" => MyEscape($art["text"]) |
"text" => MyEscape($art["text"]) |
149 |
)); |
)); |
150 |
array_push($tmp2, array( |
array_push($tmp2, array( |