64 |
$art["au_alt"], $art["au_info"], |
$art["au_alt"], $art["au_info"], |
65 |
$art["au_w"], $art["au_h"])); |
$art["au_w"], $art["au_h"])); |
66 |
$tpl->assign("kol_links", GetLinks( |
$tpl->assign("kol_links", GetLinks( |
67 |
(($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"]) ? $art["read"] : "", |
(($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"] && (!$art["more"] || ($art["more"] && !strpos($art["more"], "?")))) ? $art["read"] : "", |
68 |
/* MyEscape($art["more"]) */ /* (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "", */ "", |
/* MyEscape($art["more"]) */ /* (count($art["text"]) > 0 && $art["id"]) ? $art["more"] : "", */ "", |
69 |
MyEscape($art["more_title"]), $art["id"], $empty["category"], |
MyEscape($art["more_title"]), $art["id"], $empty["category"], |
70 |
"kol", false, false, false, $art["show"])); |
"kol", false, false, false, $art["show"])); |
72 |
} |
} |
73 |
} |
} |
74 |
if (!$offset) $offset = 0; |
if (!$offset) $offset = 0; |
75 |
$empty = array("category" => $cat, "limit" => 11, "offset" => $offset, "npar" => 0); |
$empty = array("category" => $cat, "limit" => 10, "offset" => $offset, "npar" => 0); |
76 |
$arts = newsLoad(-1, $empty["category"], $empty["limit"], 0, $empty["npar"]); |
$arts = newsLoad(-1, $empty["category"], $empty["limit"], 0, $empty["npar"]); |
77 |
$a2 = array(); |
$a2 = array(); |
78 |
for ($i = 0; $i < count($arts); $i++) { |
for ($i = 0; $i < count($arts); $i++) { |
92 |
if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed); |
if ($ed && is_string($ed)) $tpl->assign("EDIT", $ed); |
93 |
else $top_edit = false; |
else $top_edit = false; |
94 |
} |
} |
95 |
$arts = newsLoad(-1, $empty["category"], $empty["limit"], $empty["offset"], $empty["npar"]); |
$arts = newsLoad(-1, $empty["category"], $empty["limit"] + 1, $empty["offset"], $empty["npar"]); |
96 |
$a2 = array(); |
$a2 = array(); |
97 |
$lm = count($arts); |
$lm = count($arts); |
98 |
if ($lm > $empty["limit"]) $lm = $empty["limit"]; |
if ($lm > $empty["limit"]) $lm = $empty["limit"]; |
119 |
"titlepic_width" => $art["pic_w"], |
"titlepic_width" => $art["pic_w"], |
120 |
"titlepic_height" => $art["pic_h"], |
"titlepic_height" => $art["pic_h"], |
121 |
"text" => $art["text"], |
"text" => $art["text"], |
122 |
"links" => GetLinks((($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"]) ? $art["read"] : "", |
"links" => GetLinks((($art["read"] || $art["au_pic"] || $art["au_info"]) && $art["id"] && (!$art["more"] || ($art["more"] && !strpos($art["more"], "?")))) ? $art["read"] : "", |
123 |
/* MyEscape($art["more"]) */ /* ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", */ "", |
/* MyEscape($art["more"]) */ (strstr("?", $art["more"]) == 0 && $art["id"]) ? $art["more"] : "", |
124 |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
125 |
true, ($i > 0), ($i < count($arts) - 1), $art["show"]), |
true, ($i > 0), ($i < count($arts) - 1), $art["show"]), |
126 |
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : "" |
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : "" |