mirror of
https://github.com/GetSimpleCMS-CE/GetSimpleCMS-CE.git
synced 2026-01-14 03:20:01 +00:00
50 lines
1.9 KiB
PHP
50 lines
1.9 KiB
PHP
<?php
|
|
$checkTurnOn = @file_get_contents(GSDATAOTHERPATH . 'massiveToperSettings/turnon.txt');
|
|
$styleFile = @file_get_contents(GSDATAOTHERPATH . 'massiveToperSettings/style.txt');
|
|
?>
|
|
|
|
<button onclick="myFunction('Tab4')" class="w3-button w3-xlarge w3-round w3-block w3-gray w3-text-white w3-left-align w3-margin-bottom">FrontEnd Settings<span class="w3-right"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="m5 8l7 8l7-8z"/></svg></span></button>
|
|
<div id="Tab4" class="w3-hide w3-container">
|
|
|
|
<hr>
|
|
|
|
<form action="#" method="POST" style="margin-bottom:20px;display:block;">
|
|
|
|
<div class="w3-margin-bottom w3-padding-large w3-center w3-panel w3-gs-main w3-round">
|
|
<label class="w3-text-white" style="font-weight:600; padding-right:20px"><?php echo i18n_r("massiveAdmin/TURNONMTOPER"); ?></label>
|
|
<input class="w3-check" style="margin-right:10px;" type="checkbox" name="turnon" <?php echo ($checkTurnOn == 'on' ? 'checked' : ''); ?> value="on">
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<label for=""><?php echo i18n_r("massiveAdmin/STYLEINFO"); ?></label>
|
|
<select class="w3-select w3-border style" style="padding:10px; width:98%" name="style" id="">
|
|
<?php
|
|
foreach (glob(GSPLUGINPATH . 'massiveAdmin/toper-theme/*.css') as $style) {
|
|
$name = pathinfo($style)['filename'];
|
|
echo '<option value="' . $name . '" >' . $name . '</option>';
|
|
};
|
|
?>
|
|
</select>
|
|
|
|
<div class="w3-margin-top w3-center">
|
|
<button class="w3-btn w3-large w3-round w3-green" type="submit" value="<?php echo i18n_r('massiveAdmin/SAVEOPTION'); ?>" name="savesettings"><?php echo i18n_r('massiveAdmin/SAVEOPTION'); ?></button>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php if (file_exists(GSDATAOTHERPATH . 'massiveToperSettings/style.txt')) : ?>
|
|
|
|
<script>
|
|
document.querySelector('.style').value = '<?php echo $styleFile; ?>';
|
|
</script>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
if (isset($_POST['savesettings'])) {
|
|
global $MA;
|
|
$MA->mtoperSetting();
|
|
};
|
|
?>
|