Project

General

Profile

« Previous | Next » 

Revision 1849

Added by Dietmar almost 12 years ago

  1. typofix page_extended in admin/settings and admin/pages/
    ! Fill empty option modules dropdown in admin/pages/sections.php

View differences:

settings.php
137 137
	$oTpl->set_block('page', 'main_block', 'main');
138 138
	$oTpl->set_var('FTAN', $admin->getFTAN());
139 139
//    $sShowIconDirText = $TEXT['EXPAND'].' ';
140
	$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name` = \'page_exented\'';
141
	if($page_extend = $database->get_one($sql)) {}
140
	$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name` = \'page_extendet\'';
141
//	if($page_extend = $database->get_one($sql)) {}
142
	$page_extend = (defined('PAGE_EXTENDET') ? filter_var(PAGE_EXTENDET, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) : false);
143
	$sShowIconDirText = ($page_extend==true) ? $TEXT['HIDE_ADVANCED'] : $TEXT['SHOW_ADVANCED'];
142 144

  
143
	$sShowIconDirText = ($page_extend=='1') ? $TEXT['HIDE_ADVANCED'] : $TEXT['SHOW_ADVANCED'];
144

  
145 145
	$oTpl->set_var(array(
146 146
			'PAGE_ID'              => $aCurrentPage['page_id'],
147 147
			'PAGE_IDKEY'           => $admin->getIDKEY($aCurrentPage['page_id']),
......
207 207
	$sTemplate = ($aCurrentPage['template'] == '' ? DEFAULT_TEMPLATE : $aCurrentPage['template']);
208 208
	$sIconDir = str_replace('\\', '/', ((defined('PAGE_ICON_DIR') && PAGE_ICON_DIR != '') ? PAGE_ICON_DIR : MEDIA_DIRECTORY));
209 209
	$sIconDir = str_replace('/*', '/'.$sTemplate, $sIconDir);
210
	$bIconDirHide = ($page_extend=='1') ? '' : 'hide';
210
	$bIconDirHide = ($page_extend==true) ? '' : 'hide';
211 211
//	$oTpl->set_var('ICON_DIR', WB_REL.$sIconDir);
212 212
	$sHelp = replaceVars($mLang->HELP_PAGE_IMAGE_DIR, array('icon_dir'=>WB_REL.$sIconDir ) );
213 213

  
......
216 216
	$sAccesFile = (($database->get_one($sql)));
217 217
	$sFilename = replaceVars($mLang->HELP_SEO_TITLE, array('filename'=>PAGES_DIRECTORY.$sAccesFile.PAGE_EXTENSION ) );
218 218

  
219
	$oTpl->set_var('PAGE_EXTENDED_HIDE',  $bIconDirHide);
219
	$oTpl->set_var('PAGE_EXTENDET_HIDE',  $bIconDirHide);
220 220
	$oTpl->set_var('p_page_icon_dir',  p($sHelp,$mLang->TEXT_PAGE_ICON_DIR));
221 221
	$oTpl->set_var('p_menu_icon0_dir', p($sHelp,$mLang->TEXT_MENU_ICON_0_DIR));
222 222
	$oTpl->set_var('p_menu_icon1_dir', p($sHelp,$mLang->TEXT_MENU_ICON_1_DIR));

Also available in: Unified diff