mirror of
https://github.com/GetSimpleCMS-CE/GetSimpleCMS-CE.git
synced 2026-01-14 03:20:01 +00:00
MA v6.0.2 beta
This commit is contained in:
@ -22,7 +22,7 @@ if (isset($_GET['snippet'])) {
|
||||
register_plugin(
|
||||
$thisfile, //Plugin id
|
||||
'Massive Admin Theme', //Plugin name
|
||||
'6.0.1', //Plugin version
|
||||
'6.0.2 beta', //Plugin version
|
||||
'Multicolor', //Plugin author
|
||||
'https://ko-fi.com/multicolorplugins', //author website
|
||||
'Admin theme with new function', //Plugin description
|
||||
|
||||
@ -652,6 +652,7 @@ class MassiveAdminClass{
|
||||
|
||||
// codemirror components
|
||||
public function ComponentsCodeMirror(){
|
||||
$CMTHEME = defined('GSCMTHEME') ? constant('GSCMTHEME') : 'blackboard';
|
||||
global $SITEURL;
|
||||
echo '
|
||||
<script src="' . $SITEURL . 'plugins/massiveAdmin/js/codemirror.min.js"></script>
|
||||
@ -664,14 +665,14 @@ class MassiveAdminClass{
|
||||
<script src="' . $SITEURL . 'plugins/massiveAdmin/js/htmlmixed.min.js"></script>
|
||||
<script src="' . $SITEURL . 'plugins/massiveAdmin/js/clike.min.js"></script>
|
||||
|
||||
<style type="text/css">.CodeMirror {font-size: 15px; width: 100%; height: 200px;}</style>
|
||||
<style type="text/css">.CodeMirror {font-size: 15px; width: 100%; height: 200px;border:solid 1px #ccc;}</style>
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",()=>{
|
||||
if(document.querySelector("#components")) {
|
||||
document.querySelectorAll(".compdiv textarea").forEach(x=>{
|
||||
var editor = CodeMirror.fromTextArea(x, {
|
||||
theme: "blackboard",
|
||||
theme: "' . $CMTHEME . '",
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentUnit: 4,
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
font-size: 15px;
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
border:solid 1px #ccc;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -32,6 +33,8 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php $CMTHEME = defined('GSCMTHEME') ? constant('GSCMTHEME') : 'blackboard'; ?>
|
||||
|
||||
<script>
|
||||
var editor = null; // Globalna zmienna dla edytora
|
||||
|
||||
@ -47,7 +50,7 @@
|
||||
if (!editor) {
|
||||
// Pierwsza inicjalizacja
|
||||
editor = CodeMirror.fromTextArea(document.getElementById('myTextarea'), {
|
||||
theme: "blackboard",
|
||||
theme: "<?php echo $CMTHEME; ?>",
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentUnit: 4,
|
||||
|
||||
@ -28,6 +28,7 @@ echo $SITEURL; ?>plugins/massiveAdmin/css/w3-custom.css">
|
||||
font-size: 15px;
|
||||
width: 100%;
|
||||
margin-top: 5px;
|
||||
border:solid 1px #ccc;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -155,6 +156,8 @@ echo $SITEURL; ?>plugins/massiveAdmin/css/w3-custom.css">
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php $CMTHEME = defined('GSCMTHEME') ? constant('GSCMTHEME') : 'blackboard'; ?>
|
||||
|
||||
<script>
|
||||
function myFunctionWithCodemirror(tabName) {
|
||||
var x = document.getElementById(tabName);
|
||||
@ -165,7 +168,7 @@ echo $SITEURL; ?>plugins/massiveAdmin/css/w3-custom.css">
|
||||
if (!x.dataset.codemirrorInitialized) {
|
||||
// Inicjalizacja dla ownheader
|
||||
CodeMirror.fromTextArea(document.getElementById("ownheader"), {
|
||||
theme: "blackboard",
|
||||
theme: "<?php echo $CMTHEME; ?>",
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentUnit: 4,
|
||||
@ -179,7 +182,7 @@ echo $SITEURL; ?>plugins/massiveAdmin/css/w3-custom.css">
|
||||
|
||||
// Inicjalizacja dla ownfooter
|
||||
CodeMirror.fromTextArea(document.getElementById("ownfooter"), {
|
||||
theme: "blackboard",
|
||||
theme: "<?php echo $CMTHEME; ?>",
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentUnit: 4,
|
||||
|
||||
Reference in New Issue
Block a user