Erster Checkin für die neue Version 2.0
This commit is contained in:
37
editor.js.php
Normal file
37
editor.js.php
Normal 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');
|
||||
Reference in New Issue
Block a user