1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 20:27:40 +02:00

Install script: updates

This commit is contained in:
Martynas Barzda
2012-10-29 19:51:01 +02:00
parent 029e8be634
commit 823d712a1b

View File

@@ -1,10 +1,10 @@
<?php <?php
/** /**
* Monstra :: Installator * Monstra :: Installator
*/ */
// Main engine defines // Main engine defines
if ( ! defined('DS')) define('DS', DIRECTORY_SEPARATOR); if ( ! defined('DS')) define('DS', DIRECTORY_SEPARATOR);
if ( ! defined('ROOT')) define('ROOT', rtrim(dirname(__FILE__), '\\/')); if ( ! defined('ROOT')) define('ROOT', rtrim(dirname(__FILE__), '\\/'));
if ( ! defined('BACKEND')) define('BACKEND', false); if ( ! defined('BACKEND')) define('BACKEND', false);
@@ -161,12 +161,13 @@
} }
.language-link+.language-link:before { .language-link+.language-link:before {
color: #ccc; color: #ccc;
content: ' | '; content: ' | ';
} }
.language-link:hover { .language-link:hover {
color:#000; color:#000;
text-decoration: none;
} }
.language-link-current { .language-link-current {
@@ -232,9 +233,9 @@
<!-- Block_wrapper --> <!-- Block_wrapper -->
<div class="row"> <div class="row">
<div class="span4 install-languages"> <div class="span4 install-languages">
<?php foreach($languages_array as $lang_code){?> <?php foreach($languages_array as $lang_code){?>
<a class="language-link<?php if (Option::get('language') == $lang_code) echo ' language-link-current';?>" href="<?php echo $site_url.'?language=<?php echo $lang_code?>'; ?>"><?php echo $lang_code?></a> <a class="language-link<?php if (Option::get('language') == $lang_code) echo ' language-link-current';?>" href="<?php echo $site_url.'?language=' . $lang_code; ?>"><?php echo $lang_code?></a>
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
@@ -405,9 +406,9 @@
} }
if (is_writable(__FILE__)){ if (is_writable(__FILE__)){
echo '<span class="ok"><li>'.__('Install script writable', 'system').'</li></span>'; echo '<span class="ok"><li>'.__('Install script writable', 'system').'</li></span>';
} else { } else {
echo '<span class="error"><li>'.__('Install script not writable', 'system').'</li></span>'; echo '<span class="error"><li>'.__('Install script not writable', 'system').'</li></span>';
} }
if (is_writable('sitemap.xml')){ if (is_writable('sitemap.xml')){
@@ -446,4 +447,4 @@
<!-- /Block_wrapper --> <!-- /Block_wrapper -->
</body> </body>
</html> </html>