37 0 => $LANG->getLL(
'depth_0'),
38 1 => $LANG->getLL(
'depth_1'),
39 2 => $LANG->getLL(
'depth_2'),
40 3 => $LANG->getLL(
'depth_3'),
41 999 => $LANG->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.depth_infi')
46 $menuArray[
'lang'] = array(
49 foreach ($lang as $langRec) {
50 $menuArray[
'lang'][$langRec[
'uid']] = $langRec[
'title'];
63 $theOutput = $this->pObj->doc->header($LANG->sL(
'LLL:EXT:cms/web_info/locallang.xlf:lang_title'));
64 if ($this->pObj->id) {
66 $h_func =
BackendUtility::getFuncMenu($this->pObj->id,
'SET[depth]', $this->pObj->MOD_SETTINGS[
'depth'], $this->pObj->MOD_MENU[
'depth']);
67 $h_func .=
BackendUtility::getFuncMenu($this->pObj->id,
'SET[lang]', $this->pObj->MOD_SETTINGS[
'lang'], $this->pObj->MOD_MENU[
'lang']);
68 $theOutput .= $h_func;
73 $treeStartingPoint = (int)$this->pObj->id;
75 $depth = $this->pObj->MOD_SETTINGS[
'depth'];
78 $tree->init(
'AND ' .
$GLOBALS[
'BE_USER']->getPagePermsClause(1));
79 $tree->addField(
'l18n_cfg');
82 $tree->tree[] = array(
83 'row' => $treeStartingRecord,
88 $tree->getTree($treeStartingPoint, $depth,
'');
108 $titleLen =
$GLOBALS[
'BE_USER']->uc[
'titleLen'];
112 $langRecUids = array();
113 foreach ($tree->tree as $data) {
115 $langRecUids[0][] = $data[
'row'][
'uid'];
117 $tCells[] =
'<td' . ($data[
'row'][
'_CSSCLASS'] ?
' class="' . $data[
'row'][
'_CSSCLASS'] .
'"' :
'') .
'>' . $data[
'HTML'] . htmlspecialchars(\
TYPO3\CMS\Core\Utility\
GeneralUtility::fixed_lgd_cs($data[
'row'][
'title'], $titleLen)) . ((
string)$data[
'row'][
'nav_title'] !==
'' ?
' [Nav: <em>' . htmlspecialchars(\
TYPO3\CMS\Core\Utility\
GeneralUtility::fixed_lgd_cs($data[
'row'][
'nav_title'], $titleLen)) .
'</em>]' :
'') .
'</td>';
121 $data[
'row'][
'uid'],
$GLOBALS[
'BACK_PATH'],
'',
'',
'',
'&L=###LANG_UID###')
122 ) .
'" title="' . $LANG->sL(
'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_viewPage') .
'">' .
127 $editUid = $data[
'row'][
'uid'];
128 $params =
'&edit[pages][' . $editUid .
']=edit';
131 ) .
'" title="' . $LANG->sL(
132 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_editDefaultLanguagePage' 134 $info .=
'<a href="#" onclick="' . htmlspecialchars(
135 'top.loadEditId(' . (
int)$data[
'row'][
'uid'] .
',"&SET[language]=0"); return false;' 136 ) .
'" title="' . $LANG->sL(
'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_editPage') .
'">' .
138 $info .= str_replace(
'###LANG_UID###',
'0', $viewPageLink);
143 $tCells[] =
'<td class="' . $status .
' c-leftLine">' . $info .
'</td>';
144 $tCells[] =
'<td class="' . $status .
'" title="' . $LANG->sL(
145 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_CEcount' 150 foreach ($languages as $langRow) {
151 if ($this->pObj->MOD_SETTINGS[
'lang'] == 0 || (
int)$this->pObj->MOD_SETTINGS[
'lang'] === (
int)$langRow[
'uid']) {
152 $row = $this->
getLangStatus($data[
'row'][
'uid'], $langRow[
'uid']);
154 if (is_array($row)) {
155 $langRecUids[$langRow[
'uid']][] = $row[
'uid'];
158 'pages_language_overlay',
160 array(
'class' =>
'c-recIcon')
162 $info = $icon . htmlspecialchars(
164 ) . ((string)$row[
'nav_title'] !==
'' ?
' [Nav: <em>' . htmlspecialchars(
166 ) .
'</em>]' :
'') . ($row[
'_COUNT'] > 1 ?
'<div>' . $LANG->sL(
167 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_badThingThereAre' 169 $tCells[] =
'<td class="' . $status .
' c-leftLine">' . $info .
'</td>';
172 $editUid = $row[
'uid'];
173 $params =
'&edit[pages_language_overlay][' . $editUid .
']=edit';
174 $info .=
'<a href="#" onclick="' . htmlspecialchars(
176 ) .
'" title="' . $LANG->sL(
177 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_editLanguageOverlayRecord' 179 $info .=
'<a href="#" onclick="' . htmlspecialchars(
180 'top.loadEditId(' . (
int)$data[
'row'][
'uid'] .
',"&SET[language]=' . $langRow[
'uid'] .
'"); return false;' 181 ) .
'" title="' . $LANG->sL(
182 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_editPageLang' 184 $info .= str_replace(
'###LANG_UID###', $langRow[
'uid'], $viewPageLink);
185 $tCells[] =
'<td class="' . $status .
'">' . $info .
'</td>';
186 $tCells[] =
'<td class="' . $status .
'" title="' . $LANG->sL(
187 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_CEcount' 190 if (in_array($langRow[
'uid'], $disableLanguages)) {
192 $status =
'c-blocked';
196 $info =
'<input type="checkbox" name="newOL[' . $langRow[
'uid'] .
'][' . $data[
'row'][
'uid'] .
']" value="1" />';
197 $newOL_js[$langRow[
'uid']] .=
' 198 +(document.webinfoForm[\'newOL[' . $langRow[
'uid'] .
'][' . $data[
'row'][
'uid'] .
']\'].checked ? \'&edit[pages_language_overlay][' . $data[
'row'][
'uid'] .
']=new\' : \'\') 201 $tCells[] =
'<td class="' . $status .
' c-leftLine"> </td>';
202 $tCells[] =
'<td class="' . $status .
'"> </td>';
203 $tCells[] =
'<td class="' . $status .
'">' . $info .
'</td>';
208 <tr class="bgColor4"> 215 $tCells[] =
'<td>' . $LANG->sL(
'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_page') .
':</td>';
216 if (is_array($langRecUids[0])) {
217 $params =
'&edit[pages][' . implode(
',', $langRecUids[0]) .
']=edit&columnsOnly=title,nav_title,l18n_cfg,hidden';
218 $editIco =
'<a href="#" onclick="' . htmlspecialchars(
220 ) .
'" title="' . $LANG->sL(
221 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_editPageProperties' 226 $tCells[] =
'<td class="c-leftLine" colspan="2">' . $LANG->sL(
227 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_default' 228 ) .
':' . $editIco .
'</td>';
229 foreach ($languages as $langRow) {
230 if ($this->pObj->MOD_SETTINGS[
'lang'] == 0 || (
int)$this->pObj->MOD_SETTINGS[
'lang'] === (
int)$langRow[
'uid']) {
232 $tCells[] =
'<td class="c-leftLine">' . htmlspecialchars($langRow[
'title']) .
'</td>';
234 if (is_array($langRecUids[$langRow[
'uid']])) {
235 $params =
'&edit[pages_language_overlay][' .
236 implode(
',', $langRecUids[$langRow[
'uid']]) .
237 ']=edit&columnsOnly=title,nav_title,hidden';
238 $tCells[] =
'<td><a href="#" onclick="' . htmlspecialchars(
240 ) .
'" title="' . $LANG->sL(
241 'LLL:EXT:cms/web_info/locallang.xlf:lang_renderl10n_editLangOverlays' 244 $tCells[] =
'<td> </td>';
248 $newOL_js[$langRow[
'uid']] .
249 '+\'&columnsOnly=title,hidden,sys_language_uid&defVals[pages_language_overlay][sys_language_uid]=' .
251 $tCells[] =
'<td><a href="#" onclick="' . htmlspecialchars(
253 ) .
'" title="' . $LANG->sL(
254 'LLL:EXT:cms/web_info/locallang.xlf:lang_getlangsta_createNewTranslationHeaders' 259 <tr class="t3-row-header"> 265 <table border="0" cellspacing="0" cellpadding="0" id="langTable" class="typo3-dblist">' . $output .
' 277 if (!
$GLOBALS[
'BE_USER']->user[
'admin'] && strlen(
$GLOBALS[
'BE_USER']->groupData[
'allowed_languages'])) {
278 $allowed_languages = array_flip(explode(
',',
$GLOBALS[
'BE_USER']->groupData[
'allowed_languages']));
281 $outputArray = array();
282 while ($row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res)) {
283 if (is_array($allowed_languages) && count($allowed_languages)) {
284 if (isset($allowed_languages[$row[
'uid']])) {
285 $outputArray[] = $row;
288 $outputArray[] = $row;
303 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery(
305 'pages_language_overlay',
306 'pid=' . (
int)$pageId .
307 ' AND sys_language_uid=' . (
int)$langId .
311 $row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res);
313 if (is_array($row)) {
314 $row[
'_COUNT'] =
$GLOBALS[
'TYPO3_DB']->sql_num_rows($res);
315 $row[
'_HIDDEN'] = $row[
'hidden'] || (int)$row[
'endtime'] > 0 && (
int)$row[
'endtime'] <
$GLOBALS[
'EXEC_TIME'] ||
$GLOBALS[
'EXEC_TIME'] < (int)$row[
'starttime'];
330 return $count ?:
'-';
static getRecordWSOL($table, $uid, $fields=' *', $where='', $useDeleteClause=TRUE, $unsetMovePointers=FALSE)
static getModTSconfig($id, $TSref)
static editOnClick($params, $backPath='', $requestUri='')
static workspaceOL($table, &$row, $wsid=-99, $unsetMovePointers=FALSE)
getLangStatus($pageId, $langId)
static cshItem($table, $field, $BACK_PATH, $wrap='', $onlyIconMode=FALSE, $styleAttrib='')
static makeInstance($className)
static hideIfDefaultLanguage($localizationConfiguration)
static trimExplode($delim, $string, $removeEmptyValues=FALSE, $limit=0)
static hideIfNotTranslated($l18n_cfg_fieldValue)
static viewOnClick($pageUid, $backPath='', $rootLine='', $anchorSection='', $alternativeUrl='', $additionalGetVars='', $switchFocus=TRUE)
static getSpriteIconForRecord($table, array $row, array $options=array())
static versioningPlaceholderClause($table)
static getSpriteIcon($iconName, array $options=array(), array $overlays=array())
static getFuncMenu($mainParams, $elementName, $currentValue, $menuItems, $script='', $addparams='')
static fixed_lgd_cs($string, $chars, $appendString='...')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
getContentElementCount($pageId, $sysLang)
static deleteClause($table, $tableAlias='')