Compare commits
No commits in common. "786c200609b6715b7775c000375a94121bd0f3a6" and "0e15cad446fd38958af19a0e6e0d71bf972639b5" have entirely different histories.
786c200609
...
0e15cad446
@ -170,6 +170,22 @@ class ActionController extends BaseController
|
|||||||
$this->environmentService = $environmentService;
|
$this->environmentService = $environmentService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* propertyMapper
|
||||||
|
*
|
||||||
|
* @var PropertyMapper
|
||||||
|
*/
|
||||||
|
protected $propertyMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param
|
||||||
|
*/
|
||||||
|
public function injectPropertyMapper(
|
||||||
|
PropertyMapper $propertyMapper
|
||||||
|
) {
|
||||||
|
$this->propertyMapper = $propertyMapper;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* propertyMappingConfigurationBuilder
|
* propertyMappingConfigurationBuilder
|
||||||
*
|
*
|
||||||
@ -760,37 +776,12 @@ class ActionController extends BaseController
|
|||||||
}
|
}
|
||||||
if ($this->pageType) {
|
if ($this->pageType) {
|
||||||
if (is_array($this->responseStatus)) {
|
if (is_array($this->responseStatus)) {
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
|
||||||
$response = $this
|
|
||||||
->responseFactory
|
|
||||||
->createResponse()
|
|
||||||
->withHeader(
|
|
||||||
'Content-Type',
|
|
||||||
'application/json; charset=utf-8'
|
|
||||||
)
|
|
||||||
->withStatus(
|
|
||||||
array_key_first($this->responseStatus),
|
|
||||||
''
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$this->response->setStatus(
|
$this->response->setStatus(
|
||||||
array_key_first($this->responseStatus)
|
array_key_first($this->responseStatus)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
|
||||||
$response = $this
|
|
||||||
->responseFactory
|
|
||||||
->createResponse()
|
|
||||||
->withHeader(
|
|
||||||
'Content-Type',
|
|
||||||
'application/json; charset=utf-8'
|
|
||||||
)
|
|
||||||
->withStatus($this->responseStatus, '');
|
|
||||||
} else {
|
} else {
|
||||||
$this->response->setStatus($this->responseStatus);
|
$this->response->setStatus($this->responseStatus);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($this->pageType == $this->ajaxPageType) {
|
if ($this->pageType == $this->ajaxPageType) {
|
||||||
if ($this->environmentService->isEnvironmentInBackendMode()) {
|
if ($this->environmentService->isEnvironmentInBackendMode()) {
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
@ -41,14 +41,9 @@ class TranslationController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionCont
|
|||||||
$languageFactory = GeneralUtility::makeInstance(
|
$languageFactory = GeneralUtility::makeInstance(
|
||||||
LocalizationFactory::class
|
LocalizationFactory::class
|
||||||
);
|
);
|
||||||
$language = $this->request->getAttribute('language');
|
|
||||||
$locale = $language->getLocale();
|
|
||||||
//\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(
|
|
||||||
// $locale, '$locale', 3, true, false
|
|
||||||
//);
|
|
||||||
$langfileContent = $languageFactory->getParsedData(
|
$langfileContent = $languageFactory->getParsedData(
|
||||||
$langfilePath,
|
$langfilePath,
|
||||||
$locale
|
$GLOBALS['LANG']->lang
|
||||||
);
|
);
|
||||||
$langfileResult = [];
|
$langfileResult = [];
|
||||||
foreach (reset($langfileContent) as $key => $row) {
|
foreach (reset($langfileContent) as $key => $row) {
|
||||||
|
@ -102,17 +102,11 @@ trait DependencyInjectionTrait
|
|||||||
$frameworkConfiguration['persistence']['storagePid']
|
$frameworkConfiguration['persistence']['storagePid']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
|
||||||
$this->reflectionService = GeneralUtility::makeInstance(
|
|
||||||
ReflectionService::class
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$this->reflectionService = GeneralUtility::makeInstance(
|
$this->reflectionService = GeneralUtility::makeInstance(
|
||||||
ReflectionService::class, GeneralUtility::makeInstance(
|
ReflectionService::class, GeneralUtility::makeInstance(
|
||||||
CacheManager::class
|
CacheManager::class
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
$classInfo = $this->reflectionService->getClassSchema(
|
$classInfo = $this->reflectionService->getClassSchema(
|
||||||
get_class($this)
|
get_class($this)
|
||||||
);
|
);
|
||||||
|
@ -66,7 +66,7 @@ class TranslationViewHelper extends AbstractViewHelper
|
|||||||
$translation = LocalizationUtility::translate(
|
$translation = LocalizationUtility::translate(
|
||||||
$arguments['key'],
|
$arguments['key'],
|
||||||
$arguments['extensionKey'],
|
$arguments['extensionKey'],
|
||||||
(array) $arguments['arguments']
|
$arguments['arguments']
|
||||||
);
|
);
|
||||||
if ($translation) {
|
if ($translation) {
|
||||||
return $translation;
|
return $translation;
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
defined('TYPO3') || die();
|
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
||||||
'TemplatesAide',
|
|
||||||
'Dummy',
|
|
||||||
'dummy'
|
|
||||||
);
|
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
||||||
'TemplatesAide',
|
|
||||||
'Translationplugin',
|
|
||||||
'translation'
|
|
||||||
);
|
|
@ -18,16 +18,6 @@
|
|||||||
<f:variable name="buttonBackgroundcolor" value="#8ABF6F" />
|
<f:variable name="buttonBackgroundcolor" value="#8ABF6F" />
|
||||||
</f:else>
|
</f:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
<f:if condition="{styleH1}">
|
|
||||||
<f:else>
|
|
||||||
<f:variable name="styleH1" value="" />
|
|
||||||
</f:else>
|
|
||||||
</f:if>
|
|
||||||
<f:if condition="{styleButton}">
|
|
||||||
<f:else>
|
|
||||||
<f:variable name="styleButton" value="padding: 10px 15px; border-radius: 3px;" />
|
|
||||||
</f:else>
|
|
||||||
</f:if>
|
|
||||||
<f:variable name="widthPadded" value="{width - padding - padding}" />
|
<f:variable name="widthPadded" value="{width - padding - padding}" />
|
||||||
<f:variable name="widthTableColumn" value="{widthPadded / 2}" />
|
<f:variable name="widthTableColumn" value="{widthPadded / 2}" />
|
||||||
|
|
||||||
@ -91,7 +81,7 @@
|
|||||||
<div style="font-family:Arial, sans-serif;font-size:16px;line-height:1.4;text-align:{align};color:#000000;">
|
<div style="font-family:Arial, sans-serif;font-size:16px;line-height:1.4;text-align:{align};color:#000000;">
|
||||||
<f:switch expression="{row.type}">
|
<f:switch expression="{row.type}">
|
||||||
<f:case value="headline">
|
<f:case value="headline">
|
||||||
<h1 style="{styleH1}">{row.data -> f:format.nl2br() -> f:format.raw()}</h1>
|
<h1>{row.data -> f:format.nl2br() -> f:format.raw()}</h1>
|
||||||
</f:case>
|
</f:case>
|
||||||
<f:case value="headline2">
|
<f:case value="headline2">
|
||||||
<h2>{row.data -> f:format.nl2br() -> f:format.raw()}</h2>
|
<h2>{row.data -> f:format.nl2br() -> f:format.raw()}</h2>
|
||||||
@ -113,7 +103,7 @@
|
|||||||
<span style="display: inline-block;" class="buttonwrapper">
|
<span style="display: inline-block;" class="buttonwrapper">
|
||||||
<f:variable name="rowData">{row.data -> v:format.json.decode()}</f:variable>
|
<f:variable name="rowData">{row.data -> v:format.json.decode()}</f:variable>
|
||||||
<a style="display: inline-block; color: {buttonColor}" target="_blank" href="{rowData.0}">
|
<a style="display: inline-block; color: {buttonColor}" target="_blank" href="{rowData.0}">
|
||||||
<span style="display: inline-block; background-color: {buttonBackgroundcolor}; {styleButton}">
|
<span style="display: inline-block; padding: 10px 15px; border-radius: 3px; background-color: {buttonBackgroundcolor};">
|
||||||
{rowData.1}
|
{rowData.1}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#options.pageTree.showPageIdWithTitle = 1
|
||||||
|
options.pageTree.showNavTitle = 1
|
||||||
|
|
||||||
options {
|
options {
|
||||||
folderTree {
|
folderTree {
|
||||||
uploadFieldsInLinkBrowser = 0
|
uploadFieldsInLinkBrowser = 0
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"typo3/cms-core": "8.7.0 - 11.99.99",
|
"typo3/cms-core": "8.7.0 - 10.99.99",
|
||||||
"sarhan/php-flatten": "^4.0"
|
"sarhan/php-flatten": "^4.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -23,6 +23,7 @@ $EM_CONF[$_EXTKEY] = [
|
|||||||
'version' => '0.0.1',
|
'version' => '0.0.1',
|
||||||
'constraints' => [
|
'constraints' => [
|
||||||
'depends' => [
|
'depends' => [
|
||||||
|
'typo3' => '8.7.0-10.99.99',
|
||||||
],
|
],
|
||||||
'conflicts' => [],
|
'conflicts' => [],
|
||||||
'suggests' => [],
|
'suggests' => [],
|
||||||
|
@ -1,30 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('TYPO3_MODE') || die('Access denied.');
|
defined('TYPO3_MODE') || die('Access denied.');
|
||||||
|
|
||||||
|
|
||||||
(static function() {
|
|
||||||
|
|
||||||
|
|
||||||
})();
|
|
||||||
|
|
||||||
call_user_func(
|
call_user_func(
|
||||||
function()
|
function()
|
||||||
{
|
{
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
||||||
'TemplatesAide',
|
|
||||||
'Translationplugin',
|
|
||||||
[
|
|
||||||
\Cjel\TemplatesAide\Controller\TranslationController::class => 'translations'
|
|
||||||
],
|
|
||||||
// non-cacheable actions
|
|
||||||
[
|
|
||||||
\Cjel\TemplatesAide\Controller\TranslationController::class => ''
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
||||||
'Cjel.TemplatesAide',
|
'Cjel.TemplatesAide',
|
||||||
@ -53,8 +32,6 @@ call_user_func(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// wizards
|
// wizards
|
||||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
|
||||||
'mod {
|
'mod {
|
||||||
|
@ -39,26 +39,15 @@ call_user_func(
|
|||||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'][] =
|
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'][] =
|
||||||
\Cjel\TemplatesAide\Hooks\WizardItems::class;
|
\Cjel\TemplatesAide\Hooks\WizardItems::class;
|
||||||
|
|
||||||
|
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->isDevelopment()) {
|
||||||
|
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||||
|
'EXT:templates_aide/Resources/Public/Css/backend/dev';
|
||||||
|
}
|
||||||
|
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
|
||||||
if (\TYPO3\CMS\Core\Core\Environment::getContext()->isDevelopment()) {
|
|
||||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
|
||||||
'EXT:templates_aide/Resources/Public/Css/backend/dev';
|
|
||||||
}
|
|
||||||
if(\TYPO3\CMS\Core\Core\Environment::getContext()->__toString() === 'Production/Stage') {
|
|
||||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
|
||||||
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->isDevelopment()) {
|
|
||||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
|
||||||
'EXT:templates_aide/Resources/Public/Css/backend/dev';
|
|
||||||
}
|
|
||||||
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->__toString() === 'Production/Stage') {
|
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->__toString() === 'Production/Stage') {
|
||||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||||
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
|
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['templates_aide_default'] =
|
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['templates_aide_default'] =
|
||||||
'EXT:templates_aide/Resources/Public/Css/backend/default';
|
'EXT:templates_aide/Resources/Public/Css/backend/default';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user