Erster Checkin für die neue Version 2.0

This commit is contained in:
2017-05-08 14:20:20 +00:00
parent e2dd330449
commit 37cba1c059
21 changed files with 2679 additions and 1643 deletions

37
editor.js.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 30.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Content-Type: text/javascript');
if (file_exists(__DIR__ . '/lang/lang-' . $_GET['lang'] . '.php'))
{
$includeFile = __DIR__ . '/lang/lang-' . $_GET['lang'] . '.php';
}
else
{
$includeFile = __DIR__ . '/lang/lang-de.php';
}
include_once($includeFile);
?>
var csEditorLang = <?php echo json_encode($lang, JSON_UNESCAPED_UNICODE); ?>;
var csEditorTemplate = '<?php echo str_replace(array("\n", "\r", "\t"), '', file_get_contents('./templates/editorTemplate.html')); ?>';
var csEditorPageElements = '<?php echo str_replace(array("\n", "\r", "\t"), '', file_get_contents('./templates/editorPageElements.html')); ?>';
<?php
echo file_get_contents(__DIR__ . '/js/csEditor.js');
echo file_get_contents(__DIR__ . '/js/navigationEditor.js');
echo file_get_contents(__DIR__ . '/js/headlineEditor.js');
echo file_get_contents(__DIR__ . '/js/sublineEditor.js');
echo file_get_contents(__DIR__ . '/js/textEditor.js');
echo file_get_contents(__DIR__ . '/js/imageTextEditor.js');
echo file_get_contents(__DIR__ . '/js/keyVisualEditor.js');