File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
resources/views/components/config Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ <p >Allows editing the frontend of your site. Amongst other things, this file allows customization of:<br >
2+ Home Page, links, titles, Google Analytics and meta tags.</p >
3+ <form action =" {{ route (' editAC' ) } }" method =" post" >
4+ @csrf
5+ <div class =" form-group" >
6+ <label >Advanced Configuration file.</label >
7+ <textarea style =" width :100% ;display :none ;" class =" form-control" name =" AdvancedConfig" rows =" 280" >{{ file_get_contents (' config/advanced-config.php' ) } } </textarea >
8+ <div id =" editor" style =" width :100% ; height :<?php echo count(file(' config/advanced-config.php' )) * 24 + 15;?>px ;" class =" form-control" name =" AdvancedConfig" rows =" 280" >{{ file_get_contents (' config/advanced-config.php' ) } } </div >
9+ </div >
10+ <button type =" submit" class =" mt-3 ml-3 btn btn-info" >Save</button >
11+ <a class =" mt-3 ml-3 btn btn-primary confirmation" href =" {{ url (' /panel/advanced-config?restore-defaults' )} }" >Restore defaults</a >
12+ <script type =" text/javascript" >
13+ var elems = document .getElementsByClassName (' confirmation' );
14+ var confirmIt = function (e ) {
15+ if (! confirm (' Are you sure?' )) e .preventDefault ();
16+ };
17+ for (var i = 0 , l = elems .length ; i < l; i++ ) {
18+ elems[i].addEventListener (' click' , confirmIt, false );
19+ }
20+ </script >
21+ </form >
22+
23+
24+ <script src =" https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.1/ace.js" type =" text/javascript" charset =" utf-8" ></script >
25+ <script >
26+ var editor = ace .edit (" editor" );
27+ editor .setTheme (" ace/theme/xcode" );
28+ editor .getSession ().setMode (" ace/mode/javascript" );
29+ </script >
You can’t perform that action at this time.
0 commit comments