Project

General

Profile

« Previous | Next » 

Revision 1971

Added by Dietmar about 11 years ago

! Finished Pages settings output page_code treelist

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12
===============================================================================
13 13

  
14
01 Oct-2013 Build 1971 Dietmar Woellbrink (Luisehahne)
15
! Finished Pages settings output page_code treelist
14 16
01 Oct-2013 Build 1970 Dietmar Woellbrink (Luisehahne)
15 17
! MultiLingual set svn properties to all files
16 18
# MultiLingual typofix in methode updateDefaultPagesCode
branches/2.8.x/wb/admin/pages/settings.php
48 48
			// if parent = 0 set flag_icon
49 49
			$oTpl->set_var('FLAG_ROOT_ICON',' none ');
50 50
			if( $page['parent'] == 0  && $field_set) {
51
				$oTpl->set_var('FLAG_ROOT_ICON','url('.THEME_URL.'/images/flags/'.strtolower($page['language']).'.png)');
51
				$oTpl->set_var('FLAG_ROOT_ICON','url('.WB_REL.'/'.str_replace(WB_URL, '', THEME_URL).'/images/flags/'.strtolower($page['language']).'.png)');
52 52
			}
53 53
			// If the current page cannot be parent, then its children neither
54 54
			$list_next_level = true;
......
456 456
	// add 'no selection' option at top
457 457
		if($admin->get_permission('pages_add_l0') OR !$aCurrentPage['level'])
458 458
		{
459
			$aTplItemData['PAGE_CODE_VALUE']      = 0;
460
			$aTplItemData['PAGE_CODE_PAGE_TITLE'] = $mLang->TEXT_NONE;
459
			$sThemeRel = WB_REL.'/'.str_replace(WB_URL, '', THEME_URL).'/images/flags/'.strtolower($sLangKey).'.png';
460
			$aTplItemData['PAGE_CODE_ICON_URL'] = 'url('.$sThemeRel.')';
461
			$aTplItemData['PAGE_CODE_VALUE']      = $iLangStartPageId;
462
			$aTplItemData['PAGE_CODE_PAGE_TITLE'] = $sLangKey;
461 463
			$bPageCodeIsSelected = ($aCurrentPage['page_code'] == 0);
462 464
			$aTplItemData['PAGE_CODE_SELECTED'] = ($bPageCodeIsSelected ? $sSelected : '');
463 465
			$oTpl->set_var($aTplItemData);
......
476 478
		//skip entry if it's not visible
477 479
			if(($admin->page_is_visible($aPage)==false) && ($aPage['visibility'] <> 'none') ) { continue; }
478 480
		// insert language flag on level 0
479
			$sThemeRel = WB_REL.'/'.str_replace(WB_URL, '', THEME_URL).'/images/flags/'.strtolower($aPage['language']).'.png)';
480
			$aTplItemData['PAGE_CODE_ICON_URL'] = ($aPage['level'] ? 'url('.$sThemeRel.')' : 'none');
481
			$sThemeRel = WB_REL.'/'.str_replace(WB_URL, '', THEME_URL).'/images/flags/'.strtolower($sLangKey).'.png';
482
			$aTplItemData['PAGE_CODE_ICON_URL'] = ($aPage['level'] ? 'none' : 'url('.$sThemeRel.')');
481 483
		// create indent chars
482 484
			$sTitlePrefix = str_repeat('--&nbsp;', $aPage['level']).'&nbsp;';
483 485
			$aTplItemData['PAGE_CODE_PAGE_TITLE'] = $sTitlePrefix . $aPage['menu_title'];
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1970');
54
if(!defined('REVISION')) define('REVISION', '1971');
55 55
if(!defined('SP')) define('SP', '');

Also available in: Unified diff