Skip to content
Snippets Groups Projects
Commit 8f2c971a authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

Merge branch 'master' of gitlab.sgalinski.de:typo3/sg_mail

parents ada5a695 08a06f7f
No related branches found
Tags 9.0.5
No related merge requests found
...@@ -32,6 +32,17 @@ use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper; ...@@ -32,6 +32,17 @@ use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper;
* Abstract view helper * Abstract view helper
*/ */
class AbstractViewHelper extends AbstractBackendViewHelper { class AbstractViewHelper extends AbstractBackendViewHelper {
/**
* @var boolean
*/
protected $escapeOutput = FALSE;
/**
* @var boolean
*/
protected $escapeChildren = FALSE;
/** /**
* Returns the base url of the site * Returns the base url of the site
* *
......
...@@ -26,9 +26,9 @@ namespace SGalinski\SgMail\ViewHelpers\Backend; ...@@ -26,9 +26,9 @@ namespace SGalinski\SgMail\ViewHelpers\Backend;
* This copyright notice MUST APPEAR in all copies of the script! * This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/ ***************************************************************/
use SGalinski\SgMail\ViewHelpers\AbstractViewHelper;
use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList; use TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList;
/** /**
......
...@@ -26,8 +26,8 @@ namespace SGalinski\SgMail\ViewHelpers\Backend; ...@@ -26,8 +26,8 @@ namespace SGalinski\SgMail\ViewHelpers\Backend;
* This copyright notice MUST APPEAR in all copies of the script! * This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/ ***************************************************************/
use SGalinski\SgMail\ViewHelpers\AbstractViewHelper;
use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/** /**
* Class EditOnClickViewHelper * Class EditOnClickViewHelper
......
...@@ -26,11 +26,11 @@ namespace SGalinski\SgMail\ViewHelpers\Backend; ...@@ -26,11 +26,11 @@ namespace SGalinski\SgMail\ViewHelpers\Backend;
* This copyright notice MUST APPEAR in all copies of the script! * This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/ ***************************************************************/
use SGalinski\SgMail\ViewHelpers\AbstractViewHelper;
use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/** /**
* Class IconViewHelper * Class IconViewHelper
...@@ -54,8 +54,8 @@ class IconViewHelper extends AbstractViewHelper { ...@@ -54,8 +54,8 @@ class IconViewHelper extends AbstractViewHelper {
. '</span>'; . '</span>';
if ($clickMenu) { if ($clickMenu) {
return BackendUtility::wrapClickMenuOnIcon($iconImg, $table, $row['uid']); return BackendUtility::wrapClickMenuOnIcon($iconImg, $table, $row['uid']);
} else {
return $iconImg;
} }
return $iconImg;
} }
} }
...@@ -33,6 +33,16 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; ...@@ -33,6 +33,16 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
*/ */
class UriViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper { class UriViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Widget\UriViewHelper {
/**
* @var boolean
*/
protected $escapeOutput = FALSE;
/**
* @var boolean
*/
protected $escapeChildren = FALSE;
/** /**
* Get the URI for a non-AJAX Request. * Get the URI for a non-AJAX Request.
* *
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<tr data-uid="{page.pid}"> <tr data-uid="{page.pid}">
<td nowrap="nowrap" class="col-title"> <td nowrap="nowrap" class="col-title">
<a href="#" onclick="sgMailGoToPage({page.uid}, '{page.path}'); return false;"> <a href="#" onclick="sgMailGoToPage({page.uid}, '{page.path}'); return false;">
<f:format.raw><sgm:backend.icon table="pages" row="{page}" clickMenu="0" /> {page._thePathFull}</f:format.raw> <sgm:backend.icon table="pages" row="{page}" clickMenu="0" /> {page._thePathFull}
</a> </a>
</td> </td>
</tr> </tr>
......
...@@ -29,12 +29,10 @@ ...@@ -29,12 +29,10 @@
</thead> </thead>
<tbody> <tbody>
<f:for each="{paginatedMails}" as="mail"> <f:for each="{paginatedMails}" as="mail">
{sgm:backend.editOnClick(table: 'tx_sgmail_domain_model_mail', uid: mail.uid) -> sgm:set(name: 'editOnClick') -> f:format.raw()} {sgm:backend.editOnClick(table: 'tx_sgmail_domain_model_mail', uid: mail.uid) -> sgm:set(name: 'editOnClick')}
<tr data-uid="{mail.uid}"> <tr data-uid="{mail.uid}">
<td nowrap="nowrap" class="col-icon"> <td nowrap="nowrap" class="col-icon">
<f:format.raw> <sgm:backend.icon table="tx_sgmail_domain_model_mail" row="{mail}" />
<sgm:backend.icon table="tx_sgmail_domain_model_mail" row="{mail}" />
</f:format.raw>
</td> </td>
<td> <td>
<span>{mail.from_address}</span> <span>{mail.from_address}</span>
...@@ -67,9 +65,7 @@ ...@@ -67,9 +65,7 @@
</f:if> </f:if>
</td> </td>
<td nowrap="nowrap" class="col-control"> <td nowrap="nowrap" class="col-control">
<f:format.raw> <sgm:backend.control table="tx_sgmail_domain_model_mail" row="{mail}" />
<sgm:backend.control table="tx_sgmail_domain_model_mail" row="{mail}" />
</f:format.raw>
</td> </td>
<td> <td>
<f:link.action class="btn btn-default btn-send-now" controller="Queue" action="sendMail" arguments="{uid: mail.uid, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}"> <f:link.action class="btn btn-default btn-send-now" controller="Queue" action="sendMail" arguments="{uid: mail.uid, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}">
...@@ -125,7 +121,7 @@ ...@@ -125,7 +121,7 @@
<tr data-uid="{page.pid}"> <tr data-uid="{page.pid}">
<td nowrap="nowrap" class="col-title"> <td nowrap="nowrap" class="col-title">
<a href="#" onclick="sgMailGoToPage({page.uid}, '{page.path}'); return false;"> <a href="#" onclick="sgMailGoToPage({page.uid}, '{page.path}'); return false;">
<f:format.raw><sgm:backend.icon table="pages" row="{page}" clickMenu="0" /> {page._thePathFull}</f:format.raw> <sgm:backend.icon table="pages" row="{page}" clickMenu="0" /> {page._thePathFull}
</a> </a>
</td> </td>
</tr> </tr>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<form id="paginator-form-{position}" onsubmit="goToPage{position}(this); return false;" style="display:inline;"> <form id="paginator-form-{position}" onsubmit="goToPage{position}(this); return false;" style="display:inline;">
<script type="text/javascript"> <script type="text/javascript">
function goToPage{position}(formObject) { function goToPage{position}(formObject) {
var url = '{sg:widget.uri(arguments:{currentPage: 987654321}) -> f:format.raw()}'; var url = '{sg:widget.uri(arguments:{currentPage: 987654321})}';
var page = formObject.elements['paginator-target-page'].value; var page = formObject.elements['paginator-target-page'].value;
if (page > {pagination.numberOfPages}) { if (page > {pagination.numberOfPages}) {
page = {pagination.numberOfPages}; page = {pagination.numberOfPages};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment