';
+ } else {
+ $_ = '
+
+ ';
+ }
+
+ return $_;
+ }
+}
diff --git a/Resources/Public/Css/backend/default/visual.css b/Resources/Public/Css/backend/default/visual.css
new file mode 100644
index 0000000..43435d3
--- /dev/null
+++ b/Resources/Public/Css/backend/default/visual.css
@@ -0,0 +1,4 @@
+.CodeMirror {
+ border: 1px solid #eee;
+ height: auto !important;
+}
diff --git a/build/patches/extension_builder-make-git-dir-configurable.diff b/build/patches/extension_builder-make-git-dir-configurable.diff
new file mode 100755
index 0000000..5361cbf
--- /dev/null
+++ b/build/patches/extension_builder-make-git-dir-configurable.diff
@@ -0,0 +1,26 @@
+--- webroot/typo3conf/ext/extension_builder/Classes/Service/FileGenerator.php 2020-06-08 22:07:03.000000000 +0200
++++ webroot/typo3conf/ext/extension_builder/Classes/Service/FileGenerator.php 2020-08-12 01:39:57.931302902 +0200
+@@ -202,10 +202,6 @@
+ GeneralUtility::mkdir($this->extensionDirectory);
+ }
+
+- $this->generateGitIgnore();
+-
+- $this->generateGitAttributes();
+-
+ $this->generateEditorConfig();
+
+ $this->generateComposerJson();
+@@ -240,7 +236,11 @@
+ $this->generateDocumentationFiles();
+ }
+
+- $this->generateEmptyGitRepository();
++ $extensionSettings = $extension->getSettings();
++ if ($extensionSettings['overwriteSettings']['.git'] ?? false) {
++ $this->generateEmptyGitRepository();
++ $this->generateGitIgnore();
++ }
+ }
+
+ protected function generateYamlSettingsFile()
diff --git a/ext_localconf.php b/ext_localconf.php
index fd18f63..32e1ddb 100644
--- a/ext_localconf.php
+++ b/ext_localconf.php
@@ -57,3 +57,36 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1549297828] = [
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['c'] = [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['c'][]
= 'Cjel\TemplatesAide\ViewHelpers';
+
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['n'] = [];
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['n'][]
+ = 'GeorgRinger\News\ViewHelpers';
+
+call_user_func(
+ function()
+ {
+ $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['script_enabled'] =
+ \Cjel\TemplatesAide\Controller\EIDController::class
+ . '::scriptEnabled';
+ if (isset($_SERVER['REQUEST_URI'])) {
+ $uriParts = explode('/', $_SERVER['REQUEST_URI']);
+ if ($uriParts[1] === 'script' && $uriParts[2] === 'enabled') {
+ $_GET['eID'] = 'script_enabled';
+ }
+ }
+ $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['script_disabled'] =
+ \Cjel\TemplatesAide\Controller\EIDController::class
+ . '::scriptDisabled';
+ if (isset($_SERVER['REQUEST_URI'])) {
+ $uriParts = explode('/', $_SERVER['REQUEST_URI']);
+ if ($uriParts[1] === 'script' && $uriParts[2] === 'disabled') {
+ $_GET['eID'] = 'script_disabled';
+ }
+ }
+ //$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['script_enable'] =
+ // \Cjel\TemplatesAide\Controller\EIDController::class
+ // . '::scriptEnable';
+
+
+ }
+);
diff --git a/ext_tables.php b/ext_tables.php
index 778d708..389b9e0 100644
--- a/ext_tables.php
+++ b/ext_tables.php
@@ -40,6 +40,9 @@ call_user_func(
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
}
+ $GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['default'] =
+ 'EXT:templates_aide/Resources/Public/Css/backend/default';
+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'templates_aide',
'Resources/Private/PageTSConfig/default.tsconfig',