Dashboard, Improves on Installer
This commit is contained in:
parent
0f00c2fd2e
commit
f14d3d69f7
|
@ -10,18 +10,54 @@
|
||||||
width: 80% !important;
|
width: 80% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* UIKIT HACKs tabs
|
||||||
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.uk-nav-dropdown > li > a:focus,
|
||||||
|
.uk-nav-dropdown > li > a:hover {
|
||||||
|
background-color: #007add !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* UIKIT HACKs buttons
|
/* UIKIT HACKs buttons
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.uk-button {
|
||||||
|
border-radius: 2px !important;
|
||||||
|
padding: 1px 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uk-button-primary {
|
||||||
|
background-color: #007add !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uk-button-primary:hover,
|
||||||
|
.uk-button-primary:focus {
|
||||||
|
background-color: #0069BE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* UIKIT HACKs forms
|
/* UIKIT HACKs forms
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.uk-form input:not([type]), .uk-form input[type="text"], .uk-form input[type="password"], .uk-form input[type="email"], .uk-form input[type="url"], .uk-form input[type="search"], .uk-form input[type="tel"], .uk-form input[type="number"], .uk-form input[type="datetime"], .uk-form input[type="datetime-local"], .uk-form input[type="date"], .uk-form input[type="month"], .uk-form input[type="time"], .uk-form input[type="week"], .uk-form input[type="color"], .uk-form select, .uk-form textarea {
|
||||||
|
border-radius: 2px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.uk-form-help-block {
|
||||||
|
color: #777 !important;
|
||||||
|
font-size: 0.9em !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* CSS defaults
|
/* CSS defaults
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
body {
|
body {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#bl-container {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
/* TOPBAR
|
/* TOPBAR
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
@ -66,6 +102,10 @@ body {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#bl-view .uk-width-2-10 {
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.plugin-incompatible,
|
.plugin-incompatible,
|
||||||
.theme-incompatible {
|
.theme-incompatible {
|
||||||
background: #ffdc7d;
|
background: #ffdc7d;
|
||||||
|
@ -77,6 +117,21 @@ body {
|
||||||
padding: 1px 10px;
|
padding: 1px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* DASHBOARD
|
||||||
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#dashboard-panel .uk-panel {
|
||||||
|
background-color: #fafafa !important;
|
||||||
|
border: 1px solid #f8f8f8;
|
||||||
|
box-shadow: 5px 1px 1px #fdfdfd;
|
||||||
|
padding: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-panel .uk-panel h4.panel-title {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 14px !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* OLD
|
/* OLD
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
@ -77,8 +77,7 @@ $(document).ready(function() {
|
||||||
<a href="" class="bl-brand">BLUDIT</a>
|
<a href="" class="bl-brand">BLUDIT</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- View -->
|
<div id="bl-container">
|
||||||
<div class="bl-container">
|
|
||||||
|
|
||||||
<div class="uk-grid uk-grid-small">
|
<div class="uk-grid uk-grid-small">
|
||||||
|
|
||||||
|
|
|
@ -59,12 +59,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="uk-grid" data-uk-grid-margin>
|
<div id="dashboard-panel" class="uk-grid">
|
||||||
|
|
||||||
<div class="uk-width-medium-1-3">
|
<div class="uk-width-1-3">
|
||||||
|
|
||||||
<div class="uk-panel uk-panel-box">
|
<div class="uk-panel">
|
||||||
<h4><?php $L->p('Statistics') ?></h4>
|
<h4 class="panel-title"><?php $L->p('Statistics') ?></h4>
|
||||||
<table class="uk-table statistics">
|
<table class="uk-table statistics">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -85,10 +85,10 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="uk-width-medium-1-3">
|
<div class="uk-width-1-3">
|
||||||
|
|
||||||
<div class="uk-panel uk-panel-box">
|
<div class="uk-panel">
|
||||||
<h4><?php $L->p('Drafts') ?></h4>
|
<h4 class="panel-title"><?php $L->p('Drafts') ?></h4>
|
||||||
<ul class="uk-list">
|
<ul class="uk-list">
|
||||||
<?php
|
<?php
|
||||||
if( empty($_draftPosts) && empty($_draftPages) ) {
|
if( empty($_draftPosts) && empty($_draftPages) ) {
|
||||||
|
@ -108,10 +108,10 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="uk-width-medium-1-3">
|
<div class="uk-width-1-3">
|
||||||
|
|
||||||
<div class="uk-panel uk-panel-box">
|
<div class="uk-panel">
|
||||||
<h4><?php $L->p('Scheduled posts') ?></h4>
|
<h4 class="panel-title"><?php $L->p('Scheduled posts') ?></h4>
|
||||||
<ul class="uk-list">
|
<ul class="uk-list">
|
||||||
<?php
|
<?php
|
||||||
if( empty($_scheduledPosts) ) {
|
if( empty($_scheduledPosts) ) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ HTML::formOpen(array('class'=>'uk-form-stacked'));
|
||||||
|
|
||||||
// ---- LEFT SIDE ----
|
// ---- LEFT SIDE ----
|
||||||
echo '<div class="uk-grid">';
|
echo '<div class="uk-grid">';
|
||||||
echo '<div class="uk-width-large-8-10">';
|
echo '<div class="uk-width-8-10">';
|
||||||
|
|
||||||
// Title input
|
// Title input
|
||||||
HTML::formInputText(array(
|
HTML::formInputText(array(
|
||||||
|
@ -39,7 +39,7 @@ echo '<div class="uk-width-large-8-10">';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
// ---- RIGHT SIDE ----
|
// ---- RIGHT SIDE ----
|
||||||
echo '<div class="sidebar uk-width-large-2-10">';
|
echo '<div class="uk-width-2-10">';
|
||||||
|
|
||||||
// Tabs, general and advanced mode
|
// Tabs, general and advanced mode
|
||||||
echo '<ul class="uk-tab" data-uk-tab="{connect:\'#tab-options\'}">';
|
echo '<ul class="uk-tab" data-uk-tab="{connect:\'#tab-options\'}">';
|
||||||
|
|
21
install.php
21
install.php
|
@ -190,14 +190,21 @@ function checkSystem()
|
||||||
$phpModules = get_loaded_extensions();
|
$phpModules = get_loaded_extensions();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!file_exists(PATH_ROOT.'.htaccess'))
|
// Check .htaccess file for different webservers
|
||||||
{
|
if( !file_exists(PATH_ROOT.'.htaccess') ) {
|
||||||
$errorText = 'Missing file, upload the file .htaccess (ERR_201)';
|
|
||||||
error_log($errorText, 0);
|
|
||||||
|
|
||||||
$tmp['title'] = 'File .htaccess';
|
if ( !isset($_SERVER['SERVER_SOFTWARE']) ||
|
||||||
$tmp['errorText'] = $errorText;
|
stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false ||
|
||||||
array_push($stdOut, $tmp);
|
stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false
|
||||||
|
) {
|
||||||
|
$errorText = 'Missing file, upload the file .htaccess (ERR_201)';
|
||||||
|
error_log($errorText, 0);
|
||||||
|
|
||||||
|
$tmp['title'] = 'File .htaccess';
|
||||||
|
$tmp['errorText'] = $errorText;
|
||||||
|
array_push($stdOut, $tmp);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!in_array('gd', $phpModules))
|
if(!in_array('gd', $phpModules))
|
||||||
|
|
Loading…
Reference in New Issue