Little changes on Dashboard

This commit is contained in:
dignajar 2016-01-17 18:11:20 -03:00
parent 49cea3f152
commit abd470242f
7 changed files with 51 additions and 18 deletions

View File

@ -32,15 +32,34 @@ define('PATH_KERNEL', PATH_ROOT.'kernel'.DS);
define('PATH_HELPERS', PATH_KERNEL.'helpers'.DS); define('PATH_HELPERS', PATH_KERNEL.'helpers'.DS);
define('PATH_LANGUAGES', PATH_ROOT.'languages'.DS); define('PATH_LANGUAGES', PATH_ROOT.'languages'.DS);
define('PATH_ABSTRACT', PATH_KERNEL.'abstract'.DS); define('PATH_ABSTRACT', PATH_KERNEL.'abstract'.DS);
// Domain and protocol
define('DOMAIN', $_SERVER['HTTP_HOST']); define('DOMAIN', $_SERVER['HTTP_HOST']);
// HTML PATHs if(!empty($_SERVER['HTTPS'])) {
//$base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; define('PROTOCOL', 'https://');
//$base = dirname($base); }
$base = empty($_SERVER['REQUEST_URI']) ? dirname($_SERVER['SCRIPT_NAME']) : dirname($_SERVER['REQUEST_URI']); else {
define('PROTOCOL', 'http://');
}
// BASE URL
// The user can define the base URL.
// Left empty if you want to Bludit try to detect the base URL.
$base = '';
if( !empty($_SERVER['DOCUMENT_ROOT']) && !empty($_SERVER['SCRIPT_NAME']) && empty($base) ) {
$base = str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_NAME']);
$base = dirname($base);
}
elseif( empty($base) ) {
$base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$base = dirname($base);
}
if($base!=DS) { if($base!=DS) {
$base = $base.'/'; $base = trim($base, '/');
$base = '/'.$base.'/';
} }
else { else {
// Workaround for Windows Web Servers // Workaround for Windows Web Servers
@ -340,7 +359,7 @@ function install($adminPassword, $email, $timezoneOffset)
'uriPost'=>'/post/', 'uriPost'=>'/post/',
'uriPage'=>'/', 'uriPage'=>'/',
'uriTag'=>'/tag/', 'uriTag'=>'/tag/',
'url'=>'http://'.DOMAIN.HTML_PATH_ROOT, 'url'=>PROTOCOL.DOMAIN.HTML_PATH_ROOT,
'cliMode'=>'true', 'cliMode'=>'true',
'emailFrom'=>'no-reply@'.DOMAIN 'emailFrom'=>'no-reply@'.DOMAIN
); );
@ -465,11 +484,18 @@ Content:
file_put_contents(PATH_PAGES.'about'.DS.'index.txt', $data, LOCK_EX); file_put_contents(PATH_PAGES.'about'.DS.'index.txt', $data, LOCK_EX);
// File index.txt for welcome post // File index.txt for welcome post
$text1 = Text::replaceAssoc(
array(
'{{ADMIN_AREA_LINK}}'=>PROTOCOL.DOMAIN.HTML_PATH_ROOT.'admin'
),
$Language->get('Manage your Bludit from the admin panel')
);
$data = 'Title: '.$Language->get('First post').' $data = 'Title: '.$Language->get('First post').'
Content: Content:
## '.$Language->get('Whats next').' ## '.$Language->get('Whats next').'
- '.$Language->get('Manage your Bludit from the admin panel').' - '.$text1.'
- '.$Language->get('Follow Bludit on').' [Twitter](https://twitter.com/bludit) / [Facebook](https://www.facebook.com/bluditcms) / [Google+](https://plus.google.com/+Bluditcms) - '.$Language->get('Follow Bludit on').' [Twitter](https://twitter.com/bludit) / [Facebook](https://www.facebook.com/bluditcms) / [Google+](https://plus.google.com/+Bluditcms)
- '.$Language->get('Chat with developers and users on Gitter').' - '.$Language->get('Chat with developers and users on Gitter').'
- '.$Language->get('Visit the support forum').' - '.$Language->get('Visit the support forum').'

View File

@ -353,6 +353,11 @@ h3.titleOptions {
/* ----------- PLUGIN LIST / THEME LIST ----------- */ /* ----------- PLUGIN LIST / THEME LIST ----------- */
tr.plugin-installed,
tr.theme-installed {
background: #F2F7FF !important;
}
div.plugin-links > a { div.plugin-links > a {
display: inline-block; display: inline-block;
margin-top: 5px; margin-top: 5px;

View File

@ -269,7 +269,7 @@ $html .= '
'; ';
if(empty($thumbnailList)) { if(empty($thumbnailList)) {
$html .= '<div class="empty-images uk-block uk-text-center uk-block-muted">There are no images, upload someone to make your site more cheerful.</div>'; $html .= '<div class="empty-images uk-block uk-text-center uk-block-muted">'.$L->g('There are no images').'</div>';
} }
$html .= ' $html .= '
@ -442,7 +442,7 @@ $html .= '
'; ';
if(empty($thumbnailList)) { if(empty($thumbnailList)) {
$html .= '<div class="empty-images uk-block uk-text-center uk-block-muted">There are no images, upload someone to make your site more cheerful.</div>'; $html .= '<div class="empty-images uk-block uk-text-center uk-block-muted">'.$L->g('There are no images').'</div>';
} }
$html .= ' $html .= '

View File

@ -3,7 +3,7 @@
HTML::title(array('title'=>$L->g('Plugins'), 'icon'=>'puzzle-piece')); HTML::title(array('title'=>$L->g('Plugins'), 'icon'=>'puzzle-piece'));
echo ' echo '
<table class="uk-table uk-table-striped"> <table class="uk-table">
<thead> <thead>
<tr> <tr>
<th class="uk-width-1-5">'.$L->g('Name').'</th> <th class="uk-width-1-5">'.$L->g('Name').'</th>
@ -18,7 +18,7 @@ echo '
foreach($plugins['all'] as $Plugin) foreach($plugins['all'] as $Plugin)
{ {
echo ' echo '
<tr> <tr '.($Plugin->installed()?'class="plugin-installed"':'class="plugin-notInstalled"').'>
<td> <td>
<div class="plugin-name">'.$Plugin->name().'</div> <div class="plugin-name">'.$Plugin->name().'</div>
<div class="plugin-links"> <div class="plugin-links">
@ -26,7 +26,7 @@ foreach($plugins['all'] as $Plugin)
if($Plugin->installed()) { if($Plugin->installed()) {
if(method_exists($Plugin, 'form')) { if(method_exists($Plugin, 'form')) {
echo '<a class="configure" href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'">'.$L->g('Configure').'</a>'; echo '<a class="configure" href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'">'.$L->g('Settings').'</a>';
echo '<span class="separator"> | </span>'; echo '<span class="separator"> | </span>';
} }
echo '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'">'.$L->g('Deactivate').'</a>'; echo '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'">'.$L->g('Deactivate').'</a>';

View File

@ -3,7 +3,7 @@
HTML::title(array('title'=>$L->g('Themes'), 'icon'=>'paint-brush')); HTML::title(array('title'=>$L->g('Themes'), 'icon'=>'paint-brush'));
echo ' echo '
<table class="uk-table uk-table-striped"> <table class="uk-table">
<thead> <thead>
<tr> <tr>
<th class="uk-width-1-5">'.$L->g('Name').'</th> <th class="uk-width-1-5">'.$L->g('Name').'</th>
@ -18,7 +18,7 @@ echo '
foreach($themes as $theme) foreach($themes as $theme)
{ {
echo ' echo '
<tr> <tr '.($theme['dirname']==$Site->theme()?'class="theme-installed"':'class="theme-notInstalled"').'>
<td> <td>
<div class="plugin-name">'.$theme['name'].'</div> <div class="plugin-name">'.$theme['name'].'</div>
<div class="plugin-links"> <div class="plugin-links">

View File

@ -138,7 +138,7 @@
"first-post": "First post", "first-post": "First post",
"congratulations-you-have-successfully-installed-your-bludit": "Congratulations you have successfully installed your **Bludit**", "congratulations-you-have-successfully-installed-your-bludit": "Congratulations you have successfully installed your **Bludit**",
"whats-next": "What's Next", "whats-next": "What's Next",
"manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area](./admin/)",
"follow-bludit-on": "Follow Bludit on", "follow-bludit-on": "Follow Bludit on",
"visit-the-support-forum": "Visit the [forum](http://forum.bludit.com) for support", "visit-the-support-forum": "Visit the [forum](http://forum.bludit.com) for support",
"read-the-documentation-for-more-information": "Read the [documentation](http://docs.bludit.com) for more information", "read-the-documentation-for-more-information": "Read the [documentation](http://docs.bludit.com) for more information",
@ -225,5 +225,7 @@
"more-images": "More images", "more-images": "More images",
"double-click-on-the-image-to-add-it": "Double click on the image to add it.", "double-click-on-the-image-to-add-it": "Double click on the image to add it.",
"click-here-to-cancel": "Click here to cancel.", "click-here-to-cancel": "Click here to cancel.",
"type-the-tag-and-press-enter": "Type the tag and press enter." "type-the-tag-and-press-enter": "Type the tag and press enter.",
"manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})",
"there-are-no-images":"There are no images"
} }