-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathe_header.php
69 lines (61 loc) · 2.05 KB
/
e_header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2013 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* e107 LGSL Plugin credits: Richard Perry (www.greycube.com) + tltneon (https://github.com/tltneon)
*
* #######################################
* # e107 website system plugin #
* # by Jimako #
* # https://www.e107sk.com #
* #######################################
*/
if (defined('e_CURRENT_PLUGIN') && e_CURRENT_PLUGIN == 'lgsl')
{
// e107::css('lgsl', 'lgsl_files/styles/darken_style.css');
// original css files have conflicts with e107 admin styles
$e107_prefs = e107::pref('lgsl');
if (ADMIN_AREA)
{
/* v 5.8 */
$inline_script = "";
$css .= "
table input.form-control, table textarea.form-control, table select.form-control {
width: 100%;
max-width: 245px;
}
table input.form-control.input-block-level {
max-width: 100%;
}
.table-responsive {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table {
width: 100%;
margin-bottom: 1rem;
}";
$start = "$(document).ready(function() {";
$end = "}); ";
$inline_script .= "
$('.lgsl form div table:nth-child(1)').addClass('table adminlist table-striped table-1');
$('.lgsl form div table:nth-child(3)').addClass('table table-2');
$('.lgsl div ').addClass('div-1');
$('.lgsl>div>table ').addClass('table table-striped table-5');
$('.lgsl>form>div>table td input:submit ').addClass('btn btn-primary');";
if (e107::getPref('admincss') == "css/kadmin.css")
{
$inline_script .= "
$('.lgsl table td ').addClass('tbox');
$('.lgsl table td input ').addClass('form-control');";
}
e107::css('inline', $css);
e107::js('inline', $start . $inline_script . $end);
}
}