Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 2023)
+++ branches/2.8.x/CHANGELOG	(revision 2024)
@@ -11,6 +11,8 @@
 ! = Update/Change
 ===============================================================================
 
+07 Dec-2013 Build 2024 Manuela v.d.Decken(DarkViper)
+! some new or fixed Droplets added
 07 Dec-2013 Build 2023 Manuela v.d.Decken(DarkViper)
 # mod-MultiLingual misconfiguration of language switches solved
 06 Dec-2013 Build 2022 Manuela v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 2023)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 2024)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '2023');
+if(!defined('REVISION')) define('REVISION', '2024');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/modules/droplets/example/iParentPageIcon.php
===================================================================
--- branches/2.8.x/wb/modules/droplets/example/iParentPageIcon.php	(revision 2023)
+++ branches/2.8.x/wb/modules/droplets/example/iParentPageIcon.php	(revision 2024)
@@ -7,12 +7,13 @@
 //
 
 $oDb = WbDatabase::getInstance();
+$oReg = WbAdaptor::getInstance();
 $type = !isset($type) ? 0 : (intval($type) % 3);
 $icontypes = array( 0=>'page_icon', 1=>'menu_icon_0', 2=>'menu_icon_1');
 $icon_url = '';
-if( isset($icon) && is_readable(WB_PATH.'/templates/'.TEMPLATE.'/'.$icon) )
+if( isset($icon) && is_readable($oReg->AppPath.'templates/'.TEMPLATE.'/'.$icon) )
 {
-	$icon_url = WB_REL.'/templates/'.TEMPLATE.'/'.$icon;
+	$icon_url = $oReg->AppUrl.'templates/'.TEMPLATE.'/'.$icon;
 }
 $tmp_trail = array_reverse($GLOBALS['wb']->page_trail);
 foreach($tmp_trail as $pid)
@@ -22,9 +23,10 @@
 	$sql .= 'WHERE `page_id`='.(int)$pid;
 	if( ($icon = $oDb->get_one($sql)) != false )
 	{
-		if( file_exists(WB_PATH.$icon) )
+		$icon = ltrim(str_replace('\\', '/', $icon), '/');
+		if( file_exists($oReg->AppPath.$icon) )
 		{
-			$icon_url = WB_REL.$icon;
+			$icon_url = $oReg->AppUrl.$icon;
 			break;
 		}
 	}
Index: branches/2.8.x/wb/modules/droplets/example/iParentBlock.php
===================================================================
--- branches/2.8.x/wb/modules/droplets/example/iParentBlock.php	(nonexistent)
+++ branches/2.8.x/wb/modules/droplets/example/iParentBlock.php	(revision 2024)
@@ -0,0 +1,34 @@
+//:search for blockcontent in current page and parent pages if not found
+//:Use: [[iParentBlock?block=2]] Display the content of a defined block
+// Select all WYSIWYG-sections from a defined block on this page or it's parent pages
+// @author: Werner von der Decken
+global $wb, $database;
+	$oDb = WbDatabase::getInstance();
+	$rt_content = '';
+	$block = !isset($block) ? 1 : intval($block);
+	$tmp_trail = $wb->page_trail;
+	while( ($pid = array_pop($tmp_trail)) != null )
+	{
+		$sql  = 'SELECT `w`.`content`, `s`.`section_id`, `p`.`page_id`, `p`.`visibility`, ';
+		$sql .=        '`p`.`viewing_groups`, `p`.`viewing_users` ';
+		$sql .= 'FROM `'.$oDb->TablePrefix.'mod_wysiwyg` `w` ';
+		$sql .=   'LEFT JOIN `'.$oDb->TablePrefix.'sections` `s` ON `w`.`section_id`= `s`.`section_id` ';
+		$sql .=   'LEFT JOIN `'.$oDb->TablePrefix.'pages` `p` ON `s`.`page_id`=`p`.`page_id` ';
+		$sql .= 'WHERE `s`.`block`='.$block.' AND `s`.`page_id`='.$pid.' ';
+		$sql .= 'ORDER BY `s`.`position` ASC';
+		if( $rs_pages = $oDb->doQuery($sql) )
+		{
+			while( $rec_page = $rs_pages->fetchRow(MYSQL_ASSOC) )
+			{
+				if( $wb->page_is_visible($rec_page) )
+				{
+					if( $wb->section_is_active($rec_page['section_id']) )
+					{
+						$rt_content .= trim($rec_page['content']);
+					}
+				}
+			}
+		}
+		if($rt_content != '') { break; }
+	}
+return $rt_content;
Index: branches/2.8.x/wb/modules/droplets/example/iMultiLingual.php
===================================================================
--- branches/2.8.x/wb/modules/droplets/example/iMultiLingual.php	(revision 2023)
+++ branches/2.8.x/wb/modules/droplets/example/iMultiLingual.php	(revision 2024)
@@ -20,10 +20,10 @@
  * @return: a valid image-URL or empty string
  */
 
-$ext = !isset($ext) ? 'auto' : strtolower($ext);
+$sExt = !isset($ext) ? 'auto' : strtolower($ext);
 $sRetval = '';
 if(function_exists('language_menu')){
-	switch($ext)
+	switch($sExt)
 	{
 		case 'png':
 		case 'svg':
