Little changes on Dashboard
This commit is contained in:
parent
49cea3f152
commit
abd470242f
42
install.php
42
install.php
|
@ -32,15 +32,34 @@ define('PATH_KERNEL', PATH_ROOT.'kernel'.DS);
|
|||
define('PATH_HELPERS', PATH_KERNEL.'helpers'.DS);
|
||||
define('PATH_LANGUAGES', PATH_ROOT.'languages'.DS);
|
||||
define('PATH_ABSTRACT', PATH_KERNEL.'abstract'.DS);
|
||||
define('DOMAIN', $_SERVER['HTTP_HOST']);
|
||||
|
||||
// HTML PATHs
|
||||
//$base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
|
||||
//$base = dirname($base);
|
||||
$base = empty($_SERVER['REQUEST_URI']) ? dirname($_SERVER['SCRIPT_NAME']) : dirname($_SERVER['REQUEST_URI']);
|
||||
// Domain and protocol
|
||||
define('DOMAIN', $_SERVER['HTTP_HOST']);
|
||||
|
||||
if(!empty($_SERVER['HTTPS'])) {
|
||||
define('PROTOCOL', 'https://');
|
||||
}
|
||||
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) {
|
||||
$base = $base.'/';
|
||||
$base = trim($base, '/');
|
||||
$base = '/'.$base.'/';
|
||||
}
|
||||
else {
|
||||
// Workaround for Windows Web Servers
|
||||
|
@ -340,7 +359,7 @@ function install($adminPassword, $email, $timezoneOffset)
|
|||
'uriPost'=>'/post/',
|
||||
'uriPage'=>'/',
|
||||
'uriTag'=>'/tag/',
|
||||
'url'=>'http://'.DOMAIN.HTML_PATH_ROOT,
|
||||
'url'=>PROTOCOL.DOMAIN.HTML_PATH_ROOT,
|
||||
'cliMode'=>'true',
|
||||
'emailFrom'=>'no-reply@'.DOMAIN
|
||||
);
|
||||
|
@ -465,11 +484,18 @@ Content:
|
|||
file_put_contents(PATH_PAGES.'about'.DS.'index.txt', $data, LOCK_EX);
|
||||
|
||||
// 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').'
|
||||
Content:
|
||||
|
||||
## '.$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('Chat with developers and users on Gitter').'
|
||||
- '.$Language->get('Visit the support forum').'
|
||||
|
|
|
@ -353,6 +353,11 @@ h3.titleOptions {
|
|||
|
||||
/* ----------- PLUGIN LIST / THEME LIST ----------- */
|
||||
|
||||
tr.plugin-installed,
|
||||
tr.theme-installed {
|
||||
background: #F2F7FF !important;
|
||||
}
|
||||
|
||||
div.plugin-links > a {
|
||||
display: inline-block;
|
||||
margin-top: 5px;
|
||||
|
|
|
@ -269,7 +269,7 @@ $html .= '
|
|||
';
|
||||
|
||||
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 .= '
|
||||
|
@ -442,7 +442,7 @@ $html .= '
|
|||
';
|
||||
|
||||
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 .= '
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
HTML::title(array('title'=>$L->g('Plugins'), 'icon'=>'puzzle-piece'));
|
||||
|
||||
echo '
|
||||
<table class="uk-table uk-table-striped">
|
||||
<table class="uk-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="uk-width-1-5">'.$L->g('Name').'</th>
|
||||
|
@ -18,7 +18,7 @@ echo '
|
|||
foreach($plugins['all'] as $Plugin)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<tr '.($Plugin->installed()?'class="plugin-installed"':'class="plugin-notInstalled"').'>
|
||||
<td>
|
||||
<div class="plugin-name">'.$Plugin->name().'</div>
|
||||
<div class="plugin-links">
|
||||
|
@ -26,7 +26,7 @@ foreach($plugins['all'] as $Plugin)
|
|||
|
||||
if($Plugin->installed()) {
|
||||
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 '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'">'.$L->g('Deactivate').'</a>';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
HTML::title(array('title'=>$L->g('Themes'), 'icon'=>'paint-brush'));
|
||||
|
||||
echo '
|
||||
<table class="uk-table uk-table-striped">
|
||||
<table class="uk-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="uk-width-1-5">'.$L->g('Name').'</th>
|
||||
|
@ -18,7 +18,7 @@ echo '
|
|||
foreach($themes as $theme)
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<tr '.($theme['dirname']==$Site->theme()?'class="theme-installed"':'class="theme-notInstalled"').'>
|
||||
<td>
|
||||
<div class="plugin-name">'.$theme['name'].'</div>
|
||||
<div class="plugin-links">
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
"first-post": "First post",
|
||||
"congratulations-you-have-successfully-installed-your-bludit": "Congratulations you have successfully installed your **Bludit**",
|
||||
"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",
|
||||
"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",
|
||||
|
@ -225,5 +225,7 @@
|
|||
"more-images": "More images",
|
||||
"double-click-on-the-image-to-add-it": "Double click on the image to add it.",
|
||||
"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"
|
||||
}
|
Loading…
Reference in New Issue