mirror of
https://github.com/e107inc/e107.git
synced 2025-07-15 12:06:19 +02:00
Issue #1138 - Dark style re-created from scratch.
This commit is contained in:
@ -1650,14 +1650,14 @@ $text .= "
|
|||||||
<tr>
|
<tr>
|
||||||
<td><label for='signup-text'>".PRFLAN_126."</label></td>
|
<td><label for='signup-text'>".PRFLAN_126."</label></td>
|
||||||
<td>
|
<td>
|
||||||
".$frm->textarea('signup_text', $pref['signup_text'], 2, 1)."
|
".$frm->textarea('signup_text', $pref['signup_text'], 3, 80)."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><label for='signup-text-after'>".PRFLAN_140."</label></td>
|
<td><label for='signup-text-after'>".PRFLAN_140."</label></td>
|
||||||
<td>
|
<td>
|
||||||
".$frm->textarea('signup_text_after', $pref['signup_text_after'], 2, 1)."
|
".$frm->textarea('signup_text_after', $pref['signup_text_after'], 3, 80)."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class bbcode_shortcodes extends e_shortcode
|
|||||||
// $data = "[table]\n[tr]\n\t[td]Cell 1[/td]\n\t[td]Cell 2[/td]\n[/tr]\n[/table]"; // works with jquery, but not onclick.
|
// $data = "[table]\n[tr]\n\t[td]Cell 1[/td]\n\t[td]Cell 2[/td]\n[/tr]\n[/table]"; // works with jquery, but not onclick.
|
||||||
$data = "[table][tr][td]Cell 1[/td][td]Cell 2[/td][/tr][/table]";
|
$data = "[table][tr][td]Cell 1[/td][td]Cell 2[/td][/tr][/table]";
|
||||||
$event = $this->getEvent('addtext',$data,'Insert a table',1);
|
$event = $this->getEvent('addtext',$data,'Insert a table',1);
|
||||||
$text = "<a {$event} class='btn' id='{$id}' data-function='insert' href='#{$this->var['tagid']}' title='Insert a table' data-bbcode='{$data}'>";
|
$text = "<a {$event} class='btn btn-default' id='{$id}' data-function='insert' href='#{$this->var['tagid']}' title='Insert a table' data-bbcode='{$data}'>";
|
||||||
// $text .= "<img class='btn btn-small bbcode bbcode_buttons e-pointer' src='".e_IMAGE_ABS."bbcode/table.png' alt='' title='Insert a table' />";
|
// $text .= "<img class='btn btn-small bbcode bbcode_buttons e-pointer' src='".e_IMAGE_ABS."bbcode/table.png' alt='' title='Insert a table' />";
|
||||||
$text .= $this->button(e_IMAGE_ABS."bbcode/table.png", 'table' );
|
$text .= $this->button(e_IMAGE_ABS."bbcode/table.png", 'table' );
|
||||||
$text .= "</a>";
|
$text .= "</a>";
|
||||||
@ -111,7 +111,7 @@ class bbcode_shortcodes extends e_shortcode
|
|||||||
// $data = "[list]\n[*]Item 1\n[*]Item 2\n[/list]"; // works with jquery, but not onclick.
|
// $data = "[list]\n[*]Item 1\n[*]Item 2\n[/list]"; // works with jquery, but not onclick.
|
||||||
// $event = $this->getEvent($this->var['trigger'],$data,LANHELP_36);
|
// $event = $this->getEvent($this->var['trigger'],$data,LANHELP_36);
|
||||||
$event = $this->getEvent('addtext',$data,LANHELP_36);
|
$event = $this->getEvent('addtext',$data,LANHELP_36);
|
||||||
$text = "<a {$event} class='btn' id='{$id}' data-function='insert' href='#{$this->var['tagid']}' data-bbcode='{$data}' title='".$this->br2nl(LANHELP_36)."'>";
|
$text = "<a {$event} class='btn btn-default' id='{$id}' data-function='insert' href='#{$this->var['tagid']}' data-bbcode='{$data}' title='".$this->br2nl(LANHELP_36)."'>";
|
||||||
|
|
||||||
$text .= $this->button(e_IMAGE_ABS."bbcode/list.png", 'list', LANHELP_36);
|
$text .= $this->button(e_IMAGE_ABS."bbcode/list.png", 'list', LANHELP_36);
|
||||||
|
|
||||||
|
@ -1504,7 +1504,7 @@ class e_form
|
|||||||
$selector = 'jstarget:'.$selector;
|
$selector = 'jstarget:'.$selector;
|
||||||
if($id) $id = $this->name2id($id);
|
if($id) $id = $this->name2id($id);
|
||||||
|
|
||||||
return $this->checkbox($name, $selector, false, array('id' => $id,'class' => 'checkbox toggle-all','label'=>$label));
|
return $this->checkbox($name, $selector, false, array('id' => $id,'class' => 'checkbox checkbox-inline toggle-all','label'=>$label));
|
||||||
}
|
}
|
||||||
|
|
||||||
function uc_checkbox($name, $current_value, $uc_options, $field_options = array())
|
function uc_checkbox($name, $current_value, $uc_options, $field_options = array())
|
||||||
@ -1586,8 +1586,9 @@ class e_form
|
|||||||
// return print_a($options,true);
|
// return print_a($options,true);
|
||||||
if($labelFound) // Bootstrap compatible markup
|
if($labelFound) // Bootstrap compatible markup
|
||||||
{
|
{
|
||||||
|
$defaultClass = (deftrue('BOOTSTRAP') === 3) ? 'radio-inline' : 'radio inline';
|
||||||
$dis = (!empty($options['disabled'])) ? " disabled" : "";
|
$dis = (!empty($options['disabled'])) ? " disabled" : "";
|
||||||
$text .= "<label class='radio inline{$dis}'>";
|
$text .= "<label class='{$defaultClass}{$dis}'>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4502,7 +4503,7 @@ class e_form
|
|||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<form method='post' action='".$url."' id='{$form['id']}-form' enctype='multipart/form-data' autocomplete='off' >
|
<form method='post' action='".$url."' id='{$form['id']}-form' enctype='multipart/form-data' autocomplete='off' >
|
||||||
<div>
|
<div id='admin-ui-edit'>
|
||||||
".vartrue($form['header'])."
|
".vartrue($form['header'])."
|
||||||
".$this->token()."
|
".$this->token()."
|
||||||
";
|
";
|
||||||
|
@ -59,11 +59,16 @@ a.core-mainpanel-link-icon:hover { text-decoration: none; filter: none; }
|
|||||||
#admin-ui-list-db-language { padding-top:20px ; padding-right:30px }
|
#admin-ui-list-db-language { padding-top:20px ; padding-right:30px }
|
||||||
#admin-ui-list-total-records { padding-top:5px }
|
#admin-ui-list-total-records { padding-top:5px }
|
||||||
#admin-ui-list-filter .row-fluid { margin-left: -15px; margin-right: -15px }
|
#admin-ui-list-filter .row-fluid { margin-left: -15px; margin-right: -15px }
|
||||||
|
|
||||||
|
#admin-ui-edit { }
|
||||||
#admin-ui-edit-db-language { margin-bottom: -30px; margin-top:-10px; padding-bottom:5px; padding-right:5px }
|
#admin-ui-edit-db-language { margin-bottom: -30px; margin-top:-10px; padding-bottom:5px; padding-right:5px }
|
||||||
|
|
||||||
|
.table .nav-tabs a, .table th a, .table td a { text-decoration: none }
|
||||||
|
|
||||||
|
.label, .badge {
|
||||||
|
text-shadow: 1px 1px 0px #000;
|
||||||
|
box-shadow: 1px 1px 0px #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -712,6 +717,8 @@ ul.scroll-menu { max-height:350px; overflow:auto; }
|
|||||||
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
|
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-brand { padding: 10px 15px; }
|
||||||
|
|
||||||
ul.recent-comments {padding: 0px;
|
ul.recent-comments {padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
list-style: none outside none;
|
list-style: none outside none;
|
||||||
@ -889,7 +896,7 @@ span.tag button.close {
|
|||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4.caption { margin-bottom:20px; }
|
h4.caption { margin-bottom:30px; }
|
||||||
|
|
||||||
.plupload_container {
|
.plupload_container {
|
||||||
padding:0px;
|
padding:0px;
|
||||||
|
@ -191,7 +191,7 @@ $ADMIN_HEADER = '<div class="navbar '.$inverse.' navbar-nav navbar-fixed-top">
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$ADMIN_HEADER = '<div class="navbar navbar-fixed-top" role="navigation">
|
$ADMIN_HEADER = '<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
<div class="container" >
|
<div class="container" >
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
|
@ -9,21 +9,18 @@ e107::js("url", "http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.m
|
|||||||
// e107::css('url', 'http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css');
|
// e107::css('url', 'http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css');
|
||||||
e107::css('url', "http://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
|
e107::css('url', "http://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
|
||||||
|
|
||||||
// be107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/slate/bootstrap.min.css");
|
|
||||||
|
|
||||||
|
|
||||||
e107::css('url', "http://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css");
|
e107::css('url', "http://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css");
|
||||||
e107::js('url', "http://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js");
|
e107::js('url', "http://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js");
|
||||||
|
|
||||||
|
|
||||||
e107::css('url', 'http://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/slate/bootstrap.min.css');
|
// e107::css('url', 'http://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/slate/bootstrap.min.css');
|
||||||
|
// e107::css('url', 'http://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cyborg/bootstrap.min.css');
|
||||||
|
// e107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cosmo/bootstrap.min.css");
|
||||||
|
// e107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/darkly/bootstrap.min.css");
|
||||||
|
|
||||||
//e107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cosmo/bootstrap.min.css");
|
e107::css('theme','css/bootstrap_dark.css');
|
||||||
// e107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/darkly/bootstrap.min.css");
|
e107::css('theme','admin_style.css');
|
||||||
|
|
||||||
// e107::css('core', 'bootstrap/css/darkstrap.css');
|
|
||||||
e107::css('theme','admin_style.css');
|
|
||||||
// e107::css('theme','admin_dark.css');
|
|
||||||
e107::css('theme','ie_all.css',null,'all',"<!--[if IE]>","<![endif]-->");
|
e107::css('theme','ie_all.css',null,'all',"<!--[if IE]>","<![endif]-->");
|
||||||
|
|
||||||
|
|
||||||
@ -68,9 +65,6 @@ class bootstrap3_admintheme
|
|||||||
|
|
||||||
$class = '';
|
$class = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(is_string($mode) && $mode == 'admin_help') $class = ' '.str_replace('_', '-', $mode);
|
if(is_string($mode) && $mode == 'admin_help') $class = ' '.str_replace('_', '-', $mode);
|
||||||
|
|
||||||
if($mode == 'e_help')
|
if($mode == 'e_help')
|
||||||
@ -100,7 +94,7 @@ class bootstrap3_admintheme
|
|||||||
|
|
||||||
if($mode == 'personalize')
|
if($mode == 'personalize')
|
||||||
{
|
{
|
||||||
echo '
|
/*echo '
|
||||||
<!-- Mode: '.$mode.' -->
|
<!-- Mode: '.$mode.' -->
|
||||||
<div class="well" style="padding:10px">
|
<div class="well" style="padding:10px">
|
||||||
<div class="nav-header">'.$caption.'</div>
|
<div class="nav-header">'.$caption.'</div>
|
||||||
@ -109,13 +103,13 @@ class bootstrap3_admintheme
|
|||||||
<!-- Content End -->
|
<!-- Content End -->
|
||||||
</div>
|
</div>
|
||||||
<!-- End Mode: '.$mode.' -->
|
<!-- End Mode: '.$mode.' -->
|
||||||
';
|
';*/
|
||||||
|
$style = 'admin_menu';
|
||||||
return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
if($style == 'core-infopanel')
|
if($style == 'core-infopanel')
|
||||||
{
|
{
|
||||||
@ -136,7 +130,7 @@ class bootstrap3_admintheme
|
|||||||
';
|
';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if(deftrue('e_IFRAME'))
|
if(deftrue('e_IFRAME'))
|
||||||
{
|
{
|
||||||
@ -156,12 +150,18 @@ class bootstrap3_admintheme
|
|||||||
$style = 'no_caption';
|
$style = 'no_caption';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$panelType = array('core-infopanel'=>'panel-default','admin_menu'=>'panel-primary', 'site_info'=>'panel-default');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
switch(varset($style, 'admin_content'))
|
switch(varset($style, 'admin_content'))
|
||||||
{
|
{
|
||||||
|
case 'core-infopanel' :
|
||||||
case 'admin_menu' :
|
case 'admin_menu' :
|
||||||
echo '<div class="panel panel-default">
|
case 'site_info' :
|
||||||
|
echo '<div class="panel '.$panelType[$style].'">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">'.$caption.'</h3>
|
<h3 class="panel-title">'.$caption.'</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -180,16 +180,16 @@ class bootstrap3_admintheme
|
|||||||
**/
|
**/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'site_info' :
|
/*case 'site_info' :
|
||||||
echo '
|
echo '
|
||||||
<div class="well sidebar-nav" >
|
<div class="panel panel-primary" >
|
||||||
<div class="nav-header">'.$caption.'</div>
|
<div class="panel-heading">'.$caption.'</div>
|
||||||
<p style="padding:10px">
|
<p style="padding:10px">
|
||||||
'.$text.'
|
'.$text.'
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
break;
|
break;*/
|
||||||
/*
|
/*
|
||||||
case 'admin_content':
|
case 'admin_content':
|
||||||
echo '
|
echo '
|
||||||
|
7206
e107_themes/bootstrap3/css/bootstrap_dark.css
vendored
Normal file
7206
e107_themes/bootstrap3/css/bootstrap_dark.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user