[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 //images (gallery) 24 25 $image = @unserialize($crow["acontent_form"]); 26 27 if(is_array($image) && count($image)) { 28 29 // load special functions 30 require_once (PHPWCMS_ROOT.'/include/inc_front/img.func.inc.php'); 31 32 if(!isset($image['lightbox'])) { 33 34 $GLOBALS['cnt_image_lightbox'] = 0; 35 $cnt_image_lightbox = 0; 36 37 } elseif($image['lightbox']) { 38 39 $GLOBALS['cnt_image_lightbox'] = 1; 40 $cnt_image_lightbox = 1; 41 initializeLightbox(); 42 43 } 44 45 switch($image['pos']) { 46 //oben mitte 47 case 1: $CNT_TMP .= imagelisttable($image, "0:0:0:0", "center"); 48 $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 49 break; 50 //oben rechts 51 case 2: $CNT_TMP .= '<div class="phpwcmsImgListRight">'.LF; 52 $CNT_TMP .= imagelisttable($image, "0:0:0:0", "", $template_default["article"]); 53 $CNT_TMP .= '</div>'.LF; 54 $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 55 break; 56 //unten links 57 case 3: $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 58 $CNT_TMP .= imagelisttable($image, "0:0:0:0", ""); 59 break; 60 //unten mitte 61 case 4: $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 62 $CNT_TMP .= imagelisttable($image, "0:0:0:0", "center"); 63 break; 64 //unten rechts 65 case 5: $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 66 $CNT_TMP .= '<div class="phpwcmsImgListRight">'.LF; 67 $CNT_TMP .= imagelisttable($image, "0:0:0:0", ""); 68 $CNT_TMP .= '</div>'.LF; 69 break; 70 //im Text links 71 case 6: $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 72 $CNT_TMP .= imagelisttable($image, "0:0:0:0", "left"); 73 break; 74 //im Text rechts 75 case 7: $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 76 $CNT_TMP .= imagelisttable($image, "0:0:0:0", "right"); 77 break; 78 //oben links 79 default: 80 $CNT_TMP .= imagelisttable($image, "0:0:0:0", ""); 81 $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 82 } 83 84 $GLOBALS['cnt_image_lightbox'] = 0; 85 $cnt_image_lightbox = 0; 86 87 } else { 88 $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); 89 } 90 unset($image); 91 92 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |