|
|
|
|
|
|
|
"> |
">" title="">.gif" alt="" width="12" height="13" border="0" />" title="" onclick="return confirm(' \n ');"> |
|
|
|
: |
|
|
: |
|
|
: |
|
|
: |
|
|
: |
|
$article['image']['ext'],
"image_name" => $article['image']['hash'] . '.' . $article['image']['ext'],
"thumb_name" => md5($article['image']['hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"])
)
);
}
$thumb_list_image = false;
if(!empty($article["image"]["list_hash"])) {
$thumb_list_image = get_cached_image(
array( "target_ext" => $article['image']['list_ext'],
"image_name" => $article['image']['list_hash'] . '.' . $article['image']['list_ext'],
"thumb_name" => md5($article['image']['list_hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"])
)
);
}
if($thumb_image != false || $thumb_list_image != false) {
?>
|
: |
';
}
if($thumb_list_image != false) {
echo '';
}
?> |
|
: |
|
: |
: |
: |
: |
: |
: |
: |
|
|
|
|
|
|
|
|
|
|
|
|
|
$value) {
if($key == 1) {
// if 1st content part in list
$sbutton[$key]["top"] = '';
} elseif(isset($sbutton[$key-1]["block"]) && $sbutton[$key-1]["block"] != $sbutton[$key]["block"]) {
// if this content part is selected for different block than previous
$sbutton[$key]["top"] = '';
} else {
$sbutton[$key]["top"] = "";
}
if($key == $sc) {
// if this is the last content part in list
$sbutton[$key]["bottom"] = "";
} elseif(isset($sbutton[$key+1]["block"]) && $sbutton[$key+1]["block"] != $sbutton[$key]["block"]) {
// if this is the last content part in current block and next is different
$sbutton[$key]["bottom"] = "";
} else {
$sbutton[$key]["bottom"] = "";
}
$sbutton_string[$sbutton[$key]["id"]] = $sbutton[$key]["top"].
"".
$sbutton[$key]["bottom"];
}
unset($sbutton);
}
//Listing zugehöriger Artikel Content Teile
$sql = "SELECT *, UNIX_TIMESTAMP(acontent_tstamp) as acontent_date FROM ".DB_PREPEND."phpwcms_articlecontent ".
"WHERE acontent_aid=".$article["article_id"]." AND acontent_trash=0 ".
"ORDER BY acontent_block, acontent_sorting, acontent_tab, acontent_id;";
if($result = mysql_query($sql, $db) or die("error while listing contents for this article")) {
$sortierwert = 1;
$contentpart_block = ' ';
$contentpart_block_name = '';
$contentpart_tab = '';
while($row = mysql_fetch_assoc($result)) {
// if type of content part not enabled available
if(!isset($wcs_content_type[ $row["acontent_type"] ]) || ($row["acontent_type"] == 30 && !isset($phpwcms['modules'][$row["acontent_module"]]))) {
continue;
}
// now show current block name
if($contentpart_block != $row['acontent_block']) {
$contentpart_block = $row['acontent_block'];
$contentpart_block_name = html_specialchars(' {'.$row['acontent_block'].'}');
$contentpart_block_color = ' bgcolor="#E0D6EB"';
switch($contentpart_block) {
case '' : $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name;
$contentpart_block_color = ' bgcolor="#F5CCCC"';
break;
case 'CONTENT' : $contentpart_block_name = $BL['be_main_content'].$contentpart_block_name;
if($article['article_paginate']) {
$contentpart_block_name .= ' / ';
$contentpart_block_name .= $BL['be_cnt_pagination'];
}
$contentpart_block_color = ' bgcolor="#F5CCCC"';
break;
case 'LEFT' : $contentpart_block_name = $BL['be_cnt_left'].$contentpart_block_name;
$contentpart_block_color = ' bgcolor="#E0EBD6"';
break;
case 'RIGHT' : $contentpart_block_name = $BL['be_cnt_right'].$contentpart_block_name;
$contentpart_block_color = ' bgcolor="#FFF5CC"';
break;
case 'HEADER' : $contentpart_block_name = $BL['be_admin_page_header'].$contentpart_block_name;
$contentpart_block_color = ' bgcolor="#EBEBD6"';
break;
case 'FOOTER' : $contentpart_block_name = $BL['be_admin_page_footer'].$contentpart_block_name;
$contentpart_block_color = ' bgcolor="#E1E8F7"';
break;
}
?>
>
|
|
|
|
>
|
|
|
|
> |
|
|
.gif" alt="" width="9" height="11" border="0" /> |
|
|
[ID:] |
';
echo $row["acontent_paginate_page"] == 0 ? 1 : $row["acontent_paginate_page"];
}
//Anzeigen der Space Before/After Info
if(intval($row["acontent_before"])) {
//echo " | | ";
//echo "".$row["acontent_before"]." | ";
echo ''.$row["acontent_before"];
}
if(intval($row["acontent_after"])) {
//echo " | ";
//echo "".$row["acontent_after"]." | ";
echo ''.$row["acontent_after"];
}
if($row["acontent_top"]) {
echo '';
}
if($row["acontent_anchor"]) {
echo '';
}
?>
|
" title="">';
echo '';
?>" title="">.gif" alt="" width="12" height="13" border="0" />" title="" onclick="return confirm(' \n[ID: ]\n ');"> |
it is always INT because coming from db INT field
// check default content parts (system internals
if($row['acontent_type'] != 30 && file_exists('include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php')) {
include(PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt'.$row['acontent_type'].'.list.inc.php');
} elseif($row['acontent_type'] == 30 && file_exists($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php')) {
// custom module
include($phpwcms['modules'][$row['acontent_module']]['path'].'inc/cnt.list.php');
} else {
// default fallback
include(PHPWCMS_ROOT.'/include/inc_tmpl/content/cnt0.list.inc.php');
}
// end list
?>
|
|
|