TYPO3 CMS  TYPO3_7-6
ContentLayoutPagePositionMap.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
20 
25 {
30 
34  public $l_insertNewRecordHere = 'newContentElement';
35 
43  public function wrapRecordTitle($str, $row)
44  {
45  $aOnClick = 'jumpToUrl(' . GeneralUtility::quoteJSvalue($GLOBALS['SOBE']->local_linkThisScript(['edit_record' => ('tt_content:' . $row['uid'])])) . ');return false;';
46  return '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">' . $str . '</a>';
47  }
48 
57  public function wrapColumnHeader($str, $vv)
58  {
59  $aOnClick = 'jumpToUrl(' . GeneralUtility::quoteJSvalue($GLOBALS['SOBE']->local_linkThisScript(['edit_record' => ('_EDIT_COL:' . $vv)])) . ');return false;';
60  return '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">' . $str . '</a>';
61  }
62 
73  public function onClickInsertRecord($row, $vv, $moveUid, $pid, $sys_lang = 0)
74  {
75  if (is_array($row)) {
76  $location = $GLOBALS['SOBE']->local_linkThisScript(['edit_record' => 'tt_content:new/-' . $row['uid'] . '/' . $row['colPos']]);
77  } else {
78  $location = $GLOBALS['SOBE']->local_linkThisScript(['edit_record' => 'tt_content:new/' . $pid . '/' . $vv]);
79  }
80  return 'jumpToUrl(' . GeneralUtility::quoteJSvalue($location) . ');return false;';
81  }
82 
90  public function wrapRecordHeader($str, $row)
91  {
92  if ($row['uid'] == $this->moveUid) {
94  $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
95  return $iconFactory->getIcon('status-status-current', Icon::SIZE_SMALL)->render() . $str;
96  } else {
97  return $str;
98  }
99  }
100 }
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']