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('-- ', $aPage['level']).' ';
|
483 |
485 |
$aTplItemData['PAGE_CODE_PAGE_TITLE'] = $sTitlePrefix . $aPage['menu_title'];
|
! Finished Pages settings output page_code treelist