1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-18 10:51:25 +02:00

3 Commits

Author SHA1 Message Date
Sergey Romanenko
4b4b78e554 Update plugins/box/snippets/js/snippets.js 2013-01-16 09:20:47 +02:00
Sergey Romanenko
3f420f2406 Update plugins/box/snippets/views/backend/index.view.php 2013-01-14 16:38:36 +02:00
Sergey Romanenko
b499f2a1da Update plugins/box/snippets/js/snippets.js 2013-01-14 16:37:40 +02:00
243 changed files with 2377 additions and 10693 deletions

View File

@@ -19,7 +19,7 @@ Options -Indexes
# Setting rewrite rules. # Setting rewrite rules.
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine on RewriteEngine on
RewriteBase /%siteurlhere%/ RewriteBase /projects/monstra-cms/
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L] RewriteRule ^(.*)$ index.php [QSA,L]

View File

@@ -1,13 +1,16 @@
# Monstra CMS # Monstra CMS
Fast and small content management system written in PHP! Fast and small content management system written in PHP!
## System Requirements ## System Requirements
- UNIX/Linux host - UNIX/Linux host
- PHP 5.2.3 or higher - PHP 5.2.0 or higher
- SimpleXML Module - SimpleXML Module
- Apache Mod Rewrite - Apache Mod Rewrite
- Multibyte String - Multibyte String
## Steps to Install ## Steps to Install
1. [Download the latest version.](http://monstra.org/download) 1. [Download the latest version.](http://monstra.org/download)
2. Unzip the contents to a new folder on your local computer. 2. Unzip the contents to a new folder on your local computer.
@@ -16,18 +19,21 @@ Fast and small content management system written in PHP!
5. Also you may also need to recursively CHMOD the /install.php, /.htaccess and /sitemap.xml to 755(or 777) if your host doesn't set it implicitly. 5. Also you may also need to recursively CHMOD the /install.php, /.htaccess and /sitemap.xml to 755(or 777) if your host doesn't set it implicitly.
6. Type http://example.org/install.php in the browser. 6. Type http://example.org/install.php in the browser.
## Contributing ## Contributing
1. Help on the [Forum.](http://forum.monstra.org) 1. Help on the [Forum.](http://forum.monstra.org)
2. Donate to keep Monstra free. We will add you to Monstra [Sponsors Page.](http://monstra.org/contribute/sponsors) 2. Donate to keep Monstra free. We will add you to Monstra [Sponsors Page.](http://monstra.org/about/sponsors)
3. Develop a new plugin. 3. Develop a new plugin.
4. Create a new theme. 4. Create a new theme.
5. Find and [report issues.](https://github.com/MonstraLab/monstra-cms/issues) 5. Find and [report issues.](https://github.com/Monstra/monstra-cms/issues)
6. Link back to [Monstra](http://monstra.org). 6. Link back to [Monstra](http://monstra.org).
## Links ## Links
- [Site](http://monstra.org) - [Site](http://monstra.org)
- [Forum](http://forum.monstra.org) - [Forum](http://forum.monstra.org)
- [Documentation](http://monstra.org/documentation) - [Documentation](http://monstra.org/documentation)
- [Github Repository](https://github.com/MonstraLab/monstra-cms) - [Github Repository](https://github.com/Monstra/monstra-cms)
Copyright (C) 2012-2013 Romanenko Sergey / Awilum [awilum@msn.com] Copyright (C) 2012-2013 Romanenko Sergey / Awilum [awilum@msn.com]

View File

@@ -79,22 +79,17 @@ if (Request::post('reset_password_submit')) {
// Update user hash // Update user hash
$users->updateWhere("[login='" . $user_login . "']", array('hash' => $new_hash)); $users->updateWhere("[login='" . $user_login . "']", array('hash' => $new_hash));
$mail = new PHPMailer(); // Message
$mail->CharSet = 'utf-8'; $message = View::factory('box/users/views/frontend/reset_password_email')
$mail->ContentType = 'text/html';
$mail->SetFrom(Option::get('system_email'));
$mail->AddReplyTo(Option::get('system_email'));
$mail->AddAddress($user['email'], $user['login']);
$mail->Subject = __('Your login details for :site_name', 'users', array(':site_name' => $site_name));
$mail->MsgHTML(View::factory('box/users/views/emails/layout_email')
->assign('site_url', $site_url) ->assign('site_url', $site_url)
->assign('site_name', $site_name) ->assign('site_name', $site_name)
->assign('user_id', $user['id']) ->assign('user_id', $user['id'])
->assign('user_login', $user['login']) ->assign('user_login', $user['login'])
->assign('new_hash', $new_hash) ->assign('new_hash', $new_hash)
->assign('view', 'reset_password_email') ->render();
->render());
$mail->Send(); // Send
@mail($user['email'], __('Your login details for :site_name', 'users', array(':site_name' => $site_name)), $message);
// Set notification // Set notification
Notification::set('success', __('Your login details for :site_name has been sent', 'users', array(':site_name' => $site_name))); Notification::set('success', __('Your login details for :site_name has been sent', 'users', array(':site_name' => $site_name)));

View File

@@ -3,17 +3,18 @@
styles.css styles.css
************************************* *************************************
CONTENTS CONTENTS
1. GENERAL 1. GENERAL
2. HEADER 2. HEADER
3. CONTENT 3. CONTENT
4. LEFT MENU 4. LEFT MENU
5. AUTHORIZATION 5. AUTHORIZATION
6. MEDIA QUERIES 6. MISC
************************************* *************************************
1. GENERAL 1. GENERAL
*************************************/ *************************************/
body { body {
padding-top: 60px; padding-top: 60px;
margin: 0; margin: 0;
@@ -268,46 +269,11 @@ td, th {
padding: 20px 10px 10px; padding: 20px 10px 10px;
} }
.small-grey-text {
color:#333;
font-size: 10px;
}
.small-grey-text:hover {
color:#000;
}
.small-white-text {
color:#fff;
font-size: 10px;
}
.small-white-text:hover {
color:#fdfdfd;
}
.error-none {display:none;}
.error-field {border:1px solid red!important;}
.container-fluid {padding-left:0px;}
img {max-width:none;}
a.btn-expand{
color: #333;
font-weight:bold;
font-size:14px;
text-decoration: none;
padding-left:4px;
padding-right:4px;
}
footer a , footer{
color:#333;
font-size:10px;
}
/************************************** /**************************************
2. HEADER 2. HEADER
*************************************/ *************************************/
.monstra-header { .monstra-header {
top: 0; top: 0;
left: 0; left: 0;
@@ -353,13 +319,16 @@ footer a , footer{
/************************************* /*************************************
3. CONTENT 3. CONTENT
*************************************/ *************************************/
.monstra-content { .monstra-content {
padding-top:20px; padding-top:20px;
} }
/************************************* /*************************************
4. LEFT MENU 4. LEFT MENU
*************************************/ *************************************/
.monstra-menu-category-separator { .monstra-menu-category-separator {
border: 0; border: 0;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
@@ -445,6 +414,8 @@ footer a , footer{
background-color: #0088cc; background-color: #0088cc;
} }
/************************************* /*************************************
5. AUTHORIZATION 5. AUTHORIZATION
*************************************/ *************************************/
@@ -466,65 +437,45 @@ footer a , footer{
} }
/************************************* /*************************************
6. MEDIA QUERIES 6. MISC
*************************************/ *************************************/
/* iPhone 4, iPhone5, Small Tablet, Tablet */ .small-grey-text {
@media (max-width: 800px) { color:#333;
font-size: 10px;
.monstra-header .btn-small {
padding: 0px 7px;
}
.monstra-menu-sidebar {
background: url('@theme_admin_url/img/noisy_grid.png');
background-color:#ccc;
max-width: 100%!important;
min-width: 100%!important;
margin-bottom: 20px;
padding: 19px;
border:2px solid #ccc;
}
.container-fluid {
padding: 0px;
}
} }
/* Small Tablet(Landscape), Tablet(Portrait) */ .small-grey-text:hover {
@media (min-width: 768px) and (max-width: 800px) { color:#000;
.row-fluid .span10 {
-moz-box-sizing: border-box;
display: block;
width: 94%;
}
footer a, footer {
color: #333333;
font-size: 10px;
margin-right: 10px;
}
} }
/* iPhone 4 */ .small-white-text {
@media (max-width: 320px) { color:#fff;
.markItUpButton11, font-size: 10px;
.markItUpButton12, }
.markItUpButton13,
.markItUpButton14, .small-white-text:hover {
.markItUpButton15, color:#fdfdfd;
.markItUpButton16, }
.markItUpButton17,
.markItUpButton18 { .error-none {display:none;}
display: none; .error-field {border:1px solid red!important;}
} .container-fluid {padding-left:0px;}
.markItUpSeparator{ img {max-width:none;}
display: none;
} a.btn-expand{
color: #333;
font-weight:bold;
font-size:14px;
text-decoration: none;
padding-left:4px;
padding-right:4px;
}
footer a , footer{
color:#333;
font-size:10px;
}
#showImage {
min-width: 298px!important;
}
}

View File

@@ -10,16 +10,14 @@
<!-- Styles --> <!-- Styles -->
<?php Stylesheet::add('public/assets/css/bootstrap.css', 'backend', 1); ?> <?php Stylesheet::add('public/assets/css/bootstrap.css', 'backend', 1); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-lightbox.css', 'backend', 2); ?> <?php Stylesheet::add('public/assets/css/bootstrap-responsive.css', 'backend', 2); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-responsive.css', 'backend', 3); ?> <?php Stylesheet::add('admin/themes/default/css/default.css', 'backend', 3); ?>
<?php Stylesheet::add('admin/themes/default/css/default.css', 'backend', 4); ?>
<?php Stylesheet::load(); ?> <?php Stylesheet::load(); ?>
<!-- JavaScripts --> <!-- JavaScripts -->
<?php Javascript::add('public/assets/js/jquery.js', 'backend', 1); ?> <?php Javascript::add('public/assets/js/jquery.js', 'backend', 1); ?>
<?php Javascript::add('public/assets/js/bootstrap.js', 'backend', 2); ?> <?php Javascript::add('public/assets/js/bootstrap.js', 'backend', 2); ?>
<?php Javascript::add('public/assets/js/bootstrap-lightbox.js', 'backend', 3); ?> <?php Javascript::add('admin/themes/default/js/default.js', 'backend', 3); ?>
<?php Javascript::add('admin/themes/default/js/default.js', 'backend', 4); ?>
<?php Javascript::load(); ?> <?php Javascript::load(); ?>
<?php Action::run('admin_header'); ?> <?php Action::run('admin_header'); ?>
@@ -51,40 +49,23 @@
<div class="row-fluid"> <div class="row-fluid">
<!-- Block_sidebar --> <!-- Block_sidebar -->
<div class="span2 monstra-menu-sidebar hidden-phone">
<div class="span2 monstra-menu-sidebar"> <h3><?php echo __('Content', 'pages'); ?></h3>
<ul>
<div class="hidden-desktop"> <?php Navigation::draw('content'); ?>
<select class="input-block-level" name="sections" id="sections"> </ul>
<?php <div class="monstra-menu-category-separator"></div>
Navigation::getDropdown('content'); <?php if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) { ?>
Navigation::getDropdown('extends'); <h3><?php echo __('Extends', 'system'); ?></h3>
Navigation::getDropdown('system'); <ul>
?> <?php Navigation::draw('extends'); ?>
</select> </ul>
</div> <div class="monstra-menu-category-separator"></div>
<?php } ?>
<div class="hidden-phone hidden-tablet"> <h3><?php echo __('System', 'system'); ?></h3>
<ul>
<h3><?php echo __('Content', 'pages'); ?></h3> <?php Navigation::draw('system'); ?>
<ul> </ul>
<?php Navigation::draw('content'); ?>
</ul>
<div class="monstra-menu-category-separator"></div>
<?php if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) { ?>
<h3><?php echo __('Extends', 'system'); ?></h3>
<ul>
<?php Navigation::draw('extends'); ?>
</ul>
<div class="monstra-menu-category-separator"></div>
<?php } ?>
<h3><?php echo __('System', 'system'); ?></h3>
<ul>
<?php Navigation::draw('system'); ?>
</ul>
</div>
</div> </div>
<!-- /Block_sidebar --> <!-- /Block_sidebar -->
@@ -115,12 +96,10 @@
<!-- Block_footer --> <!-- Block_footer -->
<footer> <footer>
<p class="pull-right"> <p align="right">
<span style="border-top:1px solid #E0E0E0; padding-top:10px;"> <span style="border-top:1px solid #E0E0E0; padding-top:10px;">
<span class="hidden-phone">
<a href="http://forum.monstra.org" target="_blank"><?php echo __('Official Support Forum', 'system'); ?></a> / <a href="http://forum.monstra.org" target="_blank"><?php echo __('Official Support Forum', 'system'); ?></a> /
<a href="http://monstra.org/documentation" target="_blank"><?php echo __('Documentation', 'system'); ?></a> / <a href="http://monstra.org/documentation" target="_blank"><?php echo __('Documentation', 'system'); ?></a> /
</span>
© 2012 - 2013 <a href="http://monstra.org" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?> © 2012 - 2013 <a href="http://monstra.org" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?>
</span> </span>
</p> </p>

View File

@@ -17,10 +17,3 @@
/* Confirm delete */ /* Confirm delete */
function confirmDelete(msg){var data=confirm(msg+" ?"); return data;} function confirmDelete(msg){var data=confirm(msg+" ?"); return data;}
$(document).ready(function() {
/* DropDown Menu for Mobile Devices */
$("#sections").change(function(){
window.location = $('#sections option:selected').attr('rel');
});
});

View File

@@ -10,16 +10,14 @@
<!-- Styles --> <!-- Styles -->
<?php Stylesheet::add('public/assets/css/bootstrap.css', 'backend', 1); ?> <?php Stylesheet::add('public/assets/css/bootstrap.css', 'backend', 1); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-lightbox.css', 'backend', 2); ?> <?php Stylesheet::add('public/assets/css/bootstrap-responsive.css', 'backend', 2); ?>
<?php Stylesheet::add('public/assets/css/bootstrap-responsive.css', 'backend', 3); ?> <?php Stylesheet::add('admin/themes/default/css/default.css', 'backend', 3); ?>
<?php Stylesheet::add('admin/themes/default/css/default.css', 'backend', 4); ?>
<?php Stylesheet::load(); ?> <?php Stylesheet::load(); ?>
<!-- JavaScripts --> <!-- JavaScripts -->
<?php Javascript::add('public/assets/js/jquery.js', 'backend', 1); ?> <?php Javascript::add('public/assets/js/jquery.js', 'backend', 1); ?>
<?php Javascript::add('public/assets/js/bootstrap.js', 'backend', 2); ?> <?php Javascript::add('public/assets/js/bootstrap.js', 'backend', 2); ?>
<?php Javascript::add('public/assets/js/bootstrap-lightbox.js', 'backend', 3); ?> <?php Javascript::add('admin/themes/default/js/default.js', 'backend', 3); ?>
<?php Javascript::add('admin/themes/default/js/default.js', 'backend', 4); ?>
<?php Javascript::load(); ?> <?php Javascript::load(); ?>
<script type="text/javascript"> <script type="text/javascript">
$().ready(function () { $().ready(function () {
@@ -68,7 +66,7 @@
<input class="input-xlarge" name="password" type="password" /> <input class="input-xlarge" name="password" type="password" />
<br /> <br />
<?php if (isset($login_error) && $login_error !== '') { ?><div class="alert alert-error"><?php echo $login_error; ?></div><?php } ?> <?php if (isset($login_error) && $login_error !== '') { ?><div class="alert alert-error"><?php echo $login_error; ?></div><?php } ?>
<input type="submit" name="login_submit" class="btn" value="<?php echo __('Log In', 'users'); ?>" /> <input type="submit" name="login_submit" class="btn" value="<?php echo __('Enter', 'users'); ?>" />
</form> </form>
</div> </div>
</div> </div>

View File

@@ -1,33 +1,3 @@
Monstra 2.2.0, xxxx-xx-xx
------------------------
- Mobile Ready! Monstra fully responsive for mobile devices, tablets, and normal computer screens.
- Improved Monstra Architecture!
- New Stand-alone Monstra Library (Gelato) was created! Totally improved old classes and added new classes!
- Monstra Library with new useful classes - ClassLoader, ErrorHandler, Log, MinifyJS, MinifyCSS, MinifyHTML, Token, Registry.
- Adopted PSR-0 PSR-1 PSR-2
- Localization: Farsi(fa), Magyar(hu), Français(fr), Spanish(es), Serbian(sr-yu), Slovakian(sk) translations added. Thanks to Abdulhalim, Lez, Neri, Mapadesign, Hugomano and Nakome.
- Idiorm Updated to 1.3.0
- jQuery Updated to 1.9.1
- Twitter Bootstrap Updated to 2.3.0
- Default Theme: Social Meta Tags - added.
- Default Theme: Hook "theme_meta" - added.
- Admin Default Theme: Added missing meta tags.
- Improve Installer Usability. Flags Added.
- Default Site Email added.
- PHPMailer added.
- Pages Manager: added ability to quickly update page status and page access.
- Intstaller Layout: Added missing meta tags.
- Filesmanager plugin: added ability to view images.
- Filesmanager Plugin: forbidden types array - updated.
- CSRF detection text - updated.
- Engine Uri: code improvements.
- XMLDB: Table Class - fixed select method. Thanks to DmitriyMX
- Bootstrap CSS: Icons url - fixed.
- Plugins Manager: buttons confirm dialog message - fixed.
- Pages Manager: page cloning problem - fixed.
- Localizations: translations fixes.
Monstra 2.1.3, 2012-12-09 Monstra 2.1.3, 2012-12-09
------------------------ ------------------------
- Pages Plugin: New shortcodes added - page_author, page_slug, page_url page_available, page_breadcrumbs, page_date, page_content. - Pages Plugin: New shortcodes added - page_author, page_slug, page_url page_available, page_breadcrumbs, page_date, page_content.
@@ -241,4 +211,4 @@ Monstra 1.0.1, 2012-04-26
Monstra 1.0.0, 2012-04-24 Monstra 1.0.0, 2012-04-24
------------------------ ------------------------
- Initial release - Initial release

View File

@@ -39,7 +39,7 @@ class Monstra
/** /**
* The version of Monstra * The version of Monstra
*/ */
const VERSION = '2.2.0'; const VERSION = '2.1.3';
/** /**
* Monstra environment * Monstra environment
@@ -113,14 +113,9 @@ class Monstra
* Set Gelato Display Errors to False for Production environment. * Set Gelato Display Errors to False for Production environment.
*/ */
if (Monstra::$environment == Monstra::PRODUCTION) { if (Monstra::$environment == Monstra::PRODUCTION) {
define('GELATO_DEVELOPMENT', false); define('GELATO_DISPLAY_ERRORS', false);
} }
/**
* Define Monstra Folder for Gelato Logs
*/
define ('GELATO_LOGS_PATH', LOGS);
/** /**
* Include Gelato Library * Include Gelato Library
*/ */
@@ -162,9 +157,6 @@ class Monstra
// Idiorm // Idiorm
'ORM' => ROOT . DS .'libraries'. DS . 'Idiorm'. DS .'ORM.php', 'ORM' => ROOT . DS .'libraries'. DS . 'Idiorm'. DS .'ORM.php',
// PHPMailer
'PHPMailer' => ROOT . DS .'libraries'. DS . 'PHPMailer'. DS .'PHPMailer.php',
)); ));
/** /**
@@ -185,7 +177,12 @@ class Monstra
* Auto cleanup if MONSTRA_DEBUG is TRUE * Auto cleanup if MONSTRA_DEBUG is TRUE
*/ */
if (Monstra::$environment == Monstra::DEVELOPMENT) { if (Monstra::$environment == Monstra::DEVELOPMENT) {
Monstra::cleanTmp();
// Cleanup minify
if (count($files = File::scan(MINIFY, array('css', 'js', 'php'))) > 0) foreach ($files as $file) File::delete(MINIFY . DS . $file);
// Cleanup cache
if (count($namespaces = Dir::scan(CACHE)) > 0) foreach ($namespaces as $namespace) Dir::delete(CACHE . DS . $namespace);
} }
/** /**
@@ -296,18 +293,6 @@ class Monstra
} }
/**
* Clean Monstra TMP folder.
*/
public static function cleanTmp()
{
// Cleanup minify
if (count($files = File::scan(MINIFY, array('css', 'js', 'php'))) > 0) foreach ($files as $file) File::delete(MINIFY . DS . $file);
// Cleanup cache
if (count($namespaces = Dir::scan(CACHE)) > 0) foreach ($namespaces as $namespace) Dir::delete(CACHE . DS . $namespace);
}
/** /**
* Initialize Monstra Engine * Initialize Monstra Engine
* *

View File

@@ -32,7 +32,6 @@ class I18n
'el' => 'Ελληνικά', 'el' => 'Ελληνικά',
'en' => 'English', 'en' => 'English',
'es' => 'Español', 'es' => 'Español',
'fa' => 'Farsi',
'fi' => 'Suomi', 'fi' => 'Suomi',
'fr' => 'Français', 'fr' => 'Français',
'gl' => 'Galego', 'gl' => 'Galego',

View File

@@ -110,86 +110,4 @@ class Navigation
} }
} }
/**
* Draw items
*
* <code>
* Navigation::draw('content');
* Navigation::draw('top', Navigation::TOP);
* <code>
*
* @param string $category Category
* @param integer $type Type. Default is LEFT
*/
public static function get($category, $type = Navigation::LEFT)
{
// Sort items by priority
$items = Arr::subvalSort(Navigation::$items, 'priority');
// Draw left navigation
if ($type == Navigation::LEFT) {
// Loop trough the items
foreach ($items as $item) {
// If current plugin id == selected item id then set class to current
if (Request::get('id') == $item['id'] && $item['external'] == false) $class = 'class = "current" '; else $class = '';
// If current category == item category and navigation type is left them draw this item
if ($item['category'] == $category && $item['type'] == Navigation::LEFT) {
// Is external item id or not ?
if ($item['external'] == false) {
echo '<li><a '.$class.'href="index.php?id='.$item['id'].'">'.$item['name'].'</a></li>';
} else {
echo '<li><a target="_blank" href="'.$item['id'].'">'.$item['name'].'</a></li>';
}
}
}
} elseif ($type == Navigation::TOP) {
// Draw top navigation
foreach ($items as $item) {
if ($item['category'] == $category && $item['type'] == Navigation::TOP) {
if ($item['external'] == false) {
echo '<a class="btn btn-small btn-inverse" href="index.php?id='.$item['id'].'">'.$item['name'].'</a>'.Html::nbsp(2);
} else {
echo '<a target="_blank" class="btn btn-small btn-inverse" href="'.$item['id'].'">'.$item['name'].'</a>'.Html::nbsp(2);
}
}
}
}
}
/**
* Draw dropdown items
*
* <code>
* Navigation::getDropdown('content');
* <code>
*
* @param string $category Category
*/
public static function getDropdown($category)
{
// Sort items by priority
$items = Arr::subvalSort(Navigation::$items, 'priority');
// Loop trough the items
foreach ($items as $item) {
// If current plugin id == selected item id then set class to current
if (Request::get('id') == $item['id'] && $item['external'] == false) $class = 'selected = "selected" '; else $class = '';
// If current category == item category and navigation type is left them draw this item
if ($item['category'] == $category && $item['type'] == Navigation::LEFT) {
// Is external item id or not ?
if ($item['external'] == false) {
echo '<option '.$class.'rel="index.php?id='.$item['id'].'">'.$item['name'].'</option>';
}
}
}
}
} }

View File

@@ -68,7 +68,7 @@ class Plugin
$plugins = new Table('plugins'); $plugins = new Table('plugins');
// Select all plugins // Select all plugins
$records = $plugins->select(null, 'all', null, array('location', 'status', 'priority'), 'priority', 'ASC'); $records = $plugins->select(null, 'all', null, array('location', 'frontend', 'backend', 'status', 'priority'), 'priority', 'ASC');
// Now include plugins from $records plugins array // Now include plugins from $records plugins array
// If plugin is active then load it to the system. // If plugin is active then load it to the system.

View File

@@ -96,7 +96,7 @@ class Stylesheet
} }
} }
$backend_buffer = Stylesheet::parseVariables($backend_buffer); $backend_buffer = Stylesheet::parseVariables($backend_buffer);
file_put_contents($backend_site_css_path, MinifyCSS::process($backend_buffer)); file_put_contents($backend_site_css_path, Minify::css($backend_buffer));
$backend_regenerate = false; $backend_regenerate = false;
} }
@@ -120,7 +120,7 @@ class Stylesheet
} }
} }
$frontend_buffer = Stylesheet::parseVariables($frontend_buffer); $frontend_buffer = Stylesheet::parseVariables($frontend_buffer);
file_put_contents($frontend_site_css_path, MinifyCSS::process($frontend_buffer)); file_put_contents($frontend_site_css_path, Minify::css($frontend_buffer));
$frontend_regenerate = false; $frontend_regenerate = false;
} }

View File

@@ -22,7 +22,7 @@ class Security
* *
* @var string * @var string
*/ */
protected static $token_name = 'security_token'; public static $token_name = 'security_token';
/** /**
* Protected constructor since this is a static class. * Protected constructor since this is a static class.

View File

@@ -176,7 +176,7 @@ class Site
if ( ! file_exists(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php') or if ( ! file_exists(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php') or
filemtime(THEMES_SITE . DS . $current_theme . DS . $template .'.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php')) { filemtime(THEMES_SITE . DS . $current_theme . DS . $template .'.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php')) {
$buffer = file_get_contents(THEMES_SITE. DS . $current_theme . DS . $template .'.template.php'); $buffer = file_get_contents(THEMES_SITE. DS . $current_theme . DS . $template .'.template.php');
$buffer = MinifyHTML::process($buffer); $buffer = Minify::html($buffer);
file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php', $buffer); file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.minify.' . $template . '.template.php', $buffer);
} }
@@ -185,7 +185,7 @@ class Site
if ( ! File::exists(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php') or if ( ! File::exists(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php') or
filemtime(THEMES_SITE . DS . $current_theme . DS . 'index.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php')) { filemtime(THEMES_SITE . DS . $current_theme . DS . 'index.template.php') > filemtime(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php')) {
$buffer = file_get_contents(THEMES_SITE . DS . $current_theme . DS . 'index.template.php'); $buffer = file_get_contents(THEMES_SITE . DS . $current_theme . DS . 'index.template.php');
$buffer = MinifyHTML::process($buffer); $buffer = Minify::html($buffer);
file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php', $buffer); file_put_contents(MINIFY . DS . 'theme.' . $current_theme . '.' . 'minify.index.template.php', $buffer);
} }

View File

@@ -137,11 +137,14 @@ class Uri
// param1/param2 // param1/param2
if ($uri[0] !== Uri::$default_component) { if ($uri[0] !== Uri::$default_component) {
if (isset($uri[1])) { if (isset($uri[1])) {
$data[0] = $uri[0];
foreach ($uri as $part) { $data[1] = $uri[1];
$data[] = $part; // Some more uri parts :)
} // site.ru/part1/part2/part3/part4/part5/part6/
if (isset($uri[2])) $data[2] = $uri[2];
if (isset($uri[3])) $data[3] = $uri[3];
if (isset($uri[4])) $data[4] = $uri[4];
if (isset($uri[5])) $data[5] = $uri[5];
} else { // default } else { // default
$data[0] = $uri[0]; $data[0] = $uri[0];
} }

View File

@@ -546,7 +546,7 @@ class Table
if ($order_by == 'id') { if ($order_by == 'id') {
$records[$count]['sort'] = (int) $vars['id']; $records[$count]['sort'] = (int) $vars['id'];
} else { } else {
$records[$count]['sort'] = (string) $vars[$order_by]; $records[$count]['sort'] = (string) $value;
} }
} }
@@ -853,7 +853,7 @@ class Table
*/ */
protected static function _save($table) protected static function _save($table)
{ {
$dom = new DOMDocument('1.0', 'utf-8'); $dom = new DOMDocument('1.0');
$dom->preserveWhiteSpace = false; $dom->preserveWhiteSpace = false;
// Save new xml data to xml file only if loadXML successful. // Save new xml data to xml file only if loadXML successful.

View File

@@ -10,10 +10,10 @@
error_reporting(-1); error_reporting(-1);
/** /**
* Monstra requires PHP 5.2.3 or greater * Monstra requires PHP 5.2.0 or greater
*/ */
if (version_compare(PHP_VERSION, "5.2.3", "<")) { if (version_compare(PHP_VERSION, "5.2.0", "<")) {
exit("Monstra requires PHP 5.2.3 or greater."); exit("Monstra requires PHP 5.2.0 or greater.");
} }
/** /**
@@ -30,7 +30,7 @@ include ROOT . DS .'engine'. DS .'Monstra.php';
* Monstra::STAGING - The staging environment. * Monstra::STAGING - The staging environment.
* Monstra::PRODUCTION - The production environment. * Monstra::PRODUCTION - The production environment.
*/ */
Monstra::$environment = Monstra::PRODUCTION; Monstra::$environment = Monstra::DEVELOPMENT;
/** /**
* Initialize Monstra * Initialize Monstra

View File

@@ -21,6 +21,16 @@ define('ROOT', rtrim(dirname(__FILE__), '\\/'));
define('BACKEND', false); define('BACKEND', false);
define('MONSTRA_ACCESS', true); define('MONSTRA_ACCESS', true);
/* TEMP CODE BEGIN */
function byteFormat($size)
{
$unit = array('b', 'kb', 'mb', 'gb', 'tb', 'pb');
return @round($size/pow(1024, ($i=floor(log($size, 1024)))), 2).' '.$unit[$i];
}
$_start = memory_get_usage();
/* TEMP CODE END */
// First check for installer then go // First check for installer then go
if (file_exists('install.php')) { if (file_exists('install.php')) {
if (isset($_GET['install'])) { if (isset($_GET['install'])) {
@@ -61,3 +71,7 @@ if (file_exists('install.php')) {
// Flush (send) the output buffer and turn off output buffering // Flush (send) the output buffer and turn off output buffering
ob_end_flush(); ob_end_flush();
} }
/* TEMP CODE BEGIN */
echo byteFormat(memory_get_usage() - $_start);
/* TEMP CODE END */

View File

@@ -10,6 +10,9 @@
if ( ! defined('BACKEND')) define('BACKEND', false); if ( ! defined('BACKEND')) define('BACKEND', false);
if ( ! defined('MONSTRA_ACCESS')) define('MONSTRA_ACCESS', true); if ( ! defined('MONSTRA_ACCESS')) define('MONSTRA_ACCESS', true);
// Set default timezone
$system_timezone = date_default_timezone_get();
// Load bootstrap file // Load bootstrap file
require_once(ROOT . DS . 'engine' . DS . '_init.php'); require_once(ROOT . DS . 'engine' . DS . '_init.php');
@@ -29,7 +32,7 @@
$dir_array = array('public', 'storage', 'backups', 'tmp'); $dir_array = array('public', 'storage', 'backups', 'tmp');
// Languages array // Languages array
$languages_array = array('en', 'fr', 'de', 'it', 'es', 'lt', 'pt-br', 'ru', 'uk', 'hu', 'fa' , 'sk', 'sr-yu'); $languages_array = array('en', 'ru', 'lt', 'it', 'de', 'pt-br', 'uk');
// Select Monstra language // Select Monstra language
if (Request::get('language')) { if (Request::get('language')) {
@@ -74,7 +77,6 @@
'slogan' => __('Site slogan', 'system'), 'slogan' => __('Site slogan', 'system'),
'defaultpage' => 'home', 'defaultpage' => 'home',
'timezone' => Request::post('timezone'), 'timezone' => Request::post('timezone'),
'system_email' => Request::post('email'),
'theme_site_name' => 'default', 'theme_site_name' => 'default',
'theme_admin_name' => 'default')); 'theme_admin_name' => 'default'));
@@ -121,9 +123,11 @@
} }
.install-languages { .install-languages {
margin: 0 auto 15px; margin: 0 auto;
text-align: center; float: none!important;
width: 390px; margin-bottom:5px;
padding-right:20px;
max-width: 300px;
} }
.install-block { .install-block {
@@ -165,54 +169,26 @@
color: #F74C18; color: #F74C18;
} }
.install-languages a { .language-link {
padding-left: 3px; color:#7A7A7C;
padding-right: 3px;
} }
.language-link img { .language-link+.language-link:before {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; color: #ccc;
filter: alpha(opacity=30); content: ' | ';
-moz-opacity:0.3;
-khtml-opacity: 0.3;
opacity: 0.3;
} }
.language-link-current img{ .language-link:hover {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; color:#000;
filter: alpha(opacity=100); text-decoration: none;
-moz-opacity:1.0;
-khtml-opacity: 1.0;
opacity: 1.0;
} }
.install-languages a img:hover { .language-link-current {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; color:#000;
filter: alpha(opacity=100); font-weight: 700;
-moz-opacity:1.0;
-khtml-opacity: 1.0;
opacity: 1.0;
} }
@media (max-width: 480px) {
.input-xlarge {
width: 100%;
}
.install-languages {
text-align: left;
}
.install-languages a {
padding: 0;
}
}
</style> </style>
<script type="text/javascript" src="<?php echo $site_url; ?>public/assets/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $site_url; ?>public/assets/js/bootstrap.js"></script>
</head> </head>
<body class="install-body"> <body class="install-body">
@@ -268,8 +244,8 @@
?> ?>
<div class="install-languages"> <div class="install-languages">
<?php foreach ($languages_array as $lang_code) { ?> <?php foreach ($languages_array as $lang_code) {?>
<a data-placement="top" class="language-link<?php if (Option::get('language') == $lang_code) echo ' language-link-current';?>" title="<?php echo I18n::$locales[$lang_code]; ?>" href="<?php echo $site_url.'?language=' . $lang_code; ?>"><img src="<?php echo $site_url; ?>public/assets/img/flags/<?php echo $lang_code?>.png" alt="<?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 class="install-block"> <div class="install-block">
@@ -288,10 +264,10 @@
<input type="hidden" name="backups" value="<?php echo $errors['backups']; ?>" /> <input type="hidden" name="backups" value="<?php echo $errors['backups']; ?>" />
<input type="hidden" name="tmp" value="<?php echo $errors['tmp']; ?>" /> <input type="hidden" name="tmp" value="<?php echo $errors['tmp']; ?>" />
<label><?php echo __('Site Name', 'system'); ?></label> <label><?php echo __('Site name', 'system'); ?></label>
<input class="input-xlarge" name="sitename" type="text" value="<?php if (Request::post('sitename')) echo Html::toText(Request::post('sitename')); ?>" /> <input class="input-xlarge" name="sitename" type="text" value="<?php if (Request::post('sitename')) echo Html::toText(Request::post('sitename')); ?>" />
<br /> <br />
<label><?php echo __('Site Url', 'system'); ?></label> <label><?php echo __('Site url', 'system'); ?></label>
<input class="input-xlarge" name="siteurl" type="text" value="<?php echo Html::toText($site_url); ?>" /> <input class="input-xlarge" name="siteurl" type="text" value="<?php echo Html::toText($site_url); ?>" />
<br /> <br />
<label><?php echo __('Username', 'users'); ?></label> <label><?php echo __('Username', 'users'); ?></label>
@@ -467,13 +443,9 @@
</div> </div>
</div> </div>
<div class="install-block-footer"> <div class="install-block-footer">
<div style="text-align:center;"> <div style="text-align:center">
<span class="small-grey-text">© 2012 - 2013 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span> <span class="small-grey-text">© 2012 - 2013 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span>
</div> </div>
</div> </div>
<script type="text/javascript">
$('.language-link').tooltip();
</script>
</body> </body>
</html> </html>

View File

@@ -22,14 +22,14 @@ class Cache
* *
* @var string * @var string
*/ */
protected static $cache_dir = ''; public static $cache_dir = '';
/** /**
* Cache file ext * Cache file ext
* *
* @var string * @var string
*/ */
protected static $cache_file_ext = 'txt'; public static $cache_file_ext = 'txt';
/** /**
* Cache life time (in seconds) * Cache life time (in seconds)

View File

@@ -58,7 +58,7 @@ class ClassLoader
/** /**
* Add class to mapping. * Add class to mapping.
* *
* <code> * <code>
* ClassLoader::mapClass('ClassName', 'path/to/class'); * ClassLoader::mapClass('ClassName', 'path/to/class');
* </code> * </code>
@@ -74,7 +74,7 @@ class ClassLoader
/** /**
* Add multiple classes to mapping. * Add multiple classes to mapping.
* *
* <code> * <code>
* ClassLoader::mapClasses(array('ClassName' => 'path/to/class','ClassName' => 'path/to/class')); * ClassLoader::mapClasses(array('ClassName' => 'path/to/class','ClassName' => 'path/to/class'));
* </code> * </code>
@@ -91,7 +91,7 @@ class ClassLoader
/** /**
* Adds a PSR-0 directory path. * Adds a PSR-0 directory path.
* *
* <code> * <code>
* ClassLoader::directory('path/to/classes'); * ClassLoader::directory('path/to/classes');
* </code> * </code>
@@ -106,7 +106,7 @@ class ClassLoader
/** /**
* Registers a namespace. * Registers a namespace.
* *
* <code> * <code>
* ClassLoader::registerNamespace('Namespace', '/path/to/namespace/'); * ClassLoader::registerNamespace('Namespace', '/path/to/namespace/');
* </code> * </code>
@@ -122,9 +122,9 @@ class ClassLoader
/** /**
* Set an alias for a class. * Set an alias for a class.
* *
* <code> * <code>
* ClassLoader::alias('ClassNameAlias', 'ClassName'); * ClassLoader::registerNamespace('ClassNameAlias', 'ClassName');
* </code> * </code>
* *
* @access public * @access public
@@ -171,7 +171,7 @@ class ClassLoader
/** /**
* Autoloader. * Autoloader.
* *
* <code> * <code>
* ClassLoader::load(); * ClassLoader::load();
* </code> * </code>
@@ -222,15 +222,4 @@ class ClassLoader
return false; return false;
} }
/**
* Register the Gelato ClassLoader to the SPL autoload stack.
*
* @return void
*/
public static function register()
{
spl_autoload_register('ClassLoader::load', true);
}
} }

View File

@@ -18,25 +18,6 @@
class ErrorHandler class ErrorHandler
{ {
/**
* Error Levels
*/
public static $levels = array (
E_ERROR => 'Fatal Error',
E_PARSE => 'Parse Error',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_STRICT => 'Strict Mode Error',
E_NOTICE => 'Notice',
E_WARNING => 'Warning',
E_RECOVERABLE_ERROR => 'Recoverable Error',
E_USER_NOTICE => 'Notice',
E_USER_WARNING => 'Warning',
E_USER_ERROR => 'Error',
/*E_DEPRECATED => 'Deprecated',*/ /* PHP 5.3 only */
/*E_USER_DEPRECATED => 'Deprecated'*/ /* PHP 5.3 only */
);
/** /**
* Protected constructor since this is a static class. * Protected constructor since this is a static class.
* *
@@ -99,35 +80,11 @@ class ErrorHandler
* @param integer $line The line number where the error occurred * @param integer $line The line number where the error occurred
* @return boolean * @return boolean
*/ */
public static function error($code, $message, $file, $line) public static function errorHandler($code, $message, $file, $line)
{ {
// If isset error_reporting and $code then throw new error exception // If isset error_reporting and $code then throw new error exception
if ((error_reporting() & $code) !== 0) { if ((error_reporting() & $code) !== 0) {
throw new ErrorException($message, $code, 0, $file, $line);
/**
* Dont thow NOTICE exception for PRODUCTION Environment. Just write to log.
*/
if (GELATO_DEVELOPMENT == false && $code == 8) {
// Get exception info
$error['code'] = $code;
$error['message'] = $message;
$error['file'] = $file;
$error['line'] = $line;
$error['type'] = 'ErrorException: ';
$codes = array (
E_USER_NOTICE => 'Notice',
);
$error['type'] .= in_array($error['code'], array_keys($codes)) ? $codes[$error['code']] : 'Unknown Error';
// Write to log
Log::write("{$error['type']}: {$error['message']} in {$error['file']} at line {$error['line']}");
} else {
throw new ErrorException($message, $code, 0, $file, $line);
}
} }
// Don't execute PHP internal error handler // Don't execute PHP internal error handler
@@ -213,7 +170,7 @@ class ErrorHandler
if (isset($entry['file'])) { if (isset($entry['file'])) {
$location['file'] = $entry['file']; $location['file'] = $entry['file'];
$location['line'] = $entry['line']; $location['line'] = $entry['line'];
$location['code'] = self::highlightCode($entry['file'], $entry['line']); $location['code'] = static::highlightCode($entry['file'], $entry['line']);
} }
/** /**
@@ -231,9 +188,9 @@ class ErrorHandler
} }
/** /**
* Convert errors not caught by the error handler to ErrorExceptions. * Convert errors not caught by the errorHandler to ErrorExceptions.
*/ */
public static function fatal() public static function fatalErrorHandler()
{ {
$e = error_get_last(); $e = error_get_last();
@@ -253,54 +210,70 @@ class ErrorHandler
public static function exception($exception) public static function exception($exception)
{ {
try { try {
// Empty output buffers // Empty output buffers
while(ob_get_level() > 0) ob_end_clean(); while(ob_get_level() > 0) ob_end_clean();
// Get exception info // Get exception info
$error['code'] = $exception->getCode(); $error['code'] = $exception->getCode();
$error['message'] = $exception->getMessage(); $error['message'] = $exception->getMessage();
$error['file'] = $exception->getFile(); $error['file'] = $exception->getFile();
$error['line'] = $exception->getLine(); $error['line'] = $exception->getLine();
// Determine error type // Determine error type
if ($exception instanceof ErrorException) { if ($exception instanceof ErrorException) {
$error['type'] = 'ErrorException: '; $error['type'] = 'ErrorException: ';
$error['type'] .= in_array($error['code'], array_keys(ErrorHandler::$levels)) ? ErrorHandler::$levels[$error['code']] : 'Unknown Error';
$codes = array
(
E_ERROR => 'Fatal Error',
E_PARSE => 'Parse Error',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_STRICT => 'Strict Mode Error',
E_NOTICE => 'Notice',
E_WARNING => 'Warning',
E_RECOVERABLE_ERROR => 'Recoverable Error',
/*E_DEPRECATED => 'Deprecated',*/
E_USER_NOTICE => 'Notice',
E_USER_WARNING => 'Warning',
E_USER_ERROR => 'Error',
/*E_USER_DEPRECATED => 'Deprecated'*/
);
$error['type'] .= in_array($error['code'], array_keys($codes)) ? $codes[$error['code']] : 'Unknown Error';
} else { } else {
$error['type'] = get_class($exception); $error['type'] = get_class($exception);
} }
// Write to log // @todo Write to error log
Log::write("{$error['type']}: {$error['message']} in {$error['file']} at line {$error['line']}");
/*if () {
Write here
}*/
// Send headers and output // Send headers and output
@header('Content-Type: text/html; charset=UTF-8'); @header('Content-Type: text/html; charset=UTF-8');
if (GELATO_DEVELOPMENT) { if (GELATO_DISPLAY_ERRORS) {
$error['backtrace'] = $exception->getTrace(); $error['backtrace'] = $exception->getTrace();
if ($exception instanceof ErrorException) { if ($exception instanceof ErrorException) {
$error['backtrace'] = array_slice($error['backtrace'], 1); //Remove call to error handler from backtrace $error['backtrace'] = array_slice($error['backtrace'], 1); //Remove call to error handler from backtrace
} }
$error['backtrace'] = self::formatBacktrace($error['backtrace']); $error['backtrace'] = static::formatBacktrace($error['backtrace']);
$error['highlighted'] = self::highlightCode($error['file'], $error['line']); $error['highlighted'] = static::highlightCode($error['file'], $error['line']);
@header('HTTP/1.1 500 Internal Server Error'); Response::status(500);
include 'Resources/Views/Errors/exception.php'; include 'Resources/Views/Errors/exception.php';
} else { } else {
Response::status(500);
@header('HTTP/1.1 500 Internal Server Error');
include 'Resources/Views/Errors/production.php'; include 'Resources/Views/Errors/production.php';
} }
} catch (Exception $e) { } catch (Exception $e) {
// Empty output buffers
while(ob_get_level() > 0) ob_end_clean(); while(ob_get_level() > 0) ob_end_clean();
echo $e->getMessage() . ' in ' . $e->getFile() . ' (line ' . $e->getLine() . ').'; echo $e->getMessage() . ' in ' . $e->getFile() . ' (line ' . $e->getLine() . ').';

View File

@@ -11,16 +11,6 @@
font-size:14px; font-size:14px;
font-family:Verdana, Arial, Helvetica, "Nimbus Sans", FreeSans, Malayalam, sans-serif; font-family:Verdana, Arial, Helvetica, "Nimbus Sans", FreeSans, Malayalam, sans-serif;
margin:20px auto; margin:20px auto;
-webkit-box-shadow: 1px 1px 18px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 1px 1px 18px rgba(50, 50, 50, 0.75);
box-shadow: 1px 1px 18px rgba(50, 50, 50, 0.75);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
} }
#gelato-error pre { #gelato-error pre {
@@ -41,13 +31,6 @@
font-size:24px; font-size:24px;
font-weight:700; font-weight:700;
padding:10px; padding:10px;
-moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius: 5px;
border-top-left-radius: 5px;
-moz-border-radius-topright: 5px;
-webkit-border-top-right-radius: 5px;
border-top-right-radius: 5px;
} }
#gelato-error .body { #gelato-error .body {

View File

@@ -18,46 +18,22 @@
/** /**
* The version of Gelato * The version of Gelato
*/ */
define('GELATO_VERSION', '1.0.2'); define('GELATO_VERSION', '1.0.0');
/**
* Define __DIR__ constant for PHP 5.2.x
*/
if ( ! defined('__DIR__')) {
define('__DIR__', dirname(__FILE__));
}
/** /**
* Display Gelato Errors or not ? * Display Gelato Errors or not ?
*/ */
if ( ! defined('GELATO_DEVELOPMENT')) { if ( ! defined('GELATO_DISPLAY_ERRORS')) {
define('GELATO_DEVELOPMENT', true); define('GELATO_DISPLAY_ERRORS', true);
} }
/** /**
* Use Gelato Class Loader or not ? * Display Gelato Autoloader or not ?
*/ */
if ( ! defined('GELATO_CLASS_LOADER')) { if ( ! defined('GELATO_AUTOLOADER')) {
define('GELATO_CLASS_LOADER', true); define('GELATO_AUTOLOADER', true);
} }
/**
* Load Gelato Logger
*/
require_once __DIR__ . '/Log/Log.php';
/**
* Use Gelato Logger default path or not ?
*/
if ( ! defined('GELATO_LOGS_PATH')) {
define('GELATO_LOGS_PATH', __DIR__. '/_logs');
}
/**
* Configure Gelato Logger
*/
Log::configure('path', GELATO_LOGS_PATH);
/** /**
* Load Gelato Error Handler * Load Gelato Error Handler
*/ */
@@ -66,12 +42,12 @@ require_once __DIR__ . '/ErrorHandler/ErrorHandler.php';
/** /**
* Set Error Handler * Set Error Handler
*/ */
set_error_handler('ErrorHandler::error'); set_error_handler('ErrorHandler::errorHandler');
/** /**
* Set Fatal Error Handler * Set Fatal Error Handler
*/ */
register_shutdown_function('ErrorHandler::fatal'); register_shutdown_function('ErrorHandler::fatalErrorHandler');
/** /**
* Set Exception Handler * Set Exception Handler
@@ -100,9 +76,7 @@ ClassLoader::mapClasses(array(
'Html' => __DIR__.'/Html/Html.php', 'Html' => __DIR__.'/Html/Html.php',
'Image' => __DIR__.'/Image/Image.php', 'Image' => __DIR__.'/Image/Image.php',
'Inflector' => __DIR__.'/Inflector/Inflector.php', 'Inflector' => __DIR__.'/Inflector/Inflector.php',
'MinifyCSS' => __DIR__.'/Minify/MinifyCSS.php', 'Minify' => __DIR__.'/Minify/Minify.php',
'MinifyHTML' => __DIR__.'/Minify/MinifyHTML.php',
'MinifyJS' => __DIR__.'/Minify/MinifyJS.php',
'Notification' => __DIR__.'/Notification/Notification.php', 'Notification' => __DIR__.'/Notification/Notification.php',
'Number' => __DIR__.'/Number/Number.php', 'Number' => __DIR__.'/Number/Number.php',
'Registry' => __DIR__.'/Registry/Registry.php', 'Registry' => __DIR__.'/Registry/Registry.php',
@@ -117,8 +91,8 @@ ClassLoader::mapClasses(array(
)); ));
/** /**
* Register Gelato Class Loader * Register Gelato Autoloader
*/ */
if (GELATO_CLASS_LOADER) { if (GELATO_AUTOLOADER) {
ClassLoader::register(); spl_autoload_register('ClassLoader::load');
} }

View File

@@ -1,63 +0,0 @@
<?php
/**
* Gelato Library
*
* This source file is part of the Gelato Library. More information,
* documentation and tutorials can be found at http://gelato.monstra.org
*
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Log
{
/**
* Path to the logs.
*
* @var string
*/
protected static $path = '';
/**
* Protected constructor since this is a static class.
*
* @access protected
*/
protected function __construct()
{
// Nothing here
}
/**
* Configure Log
*
* @access public
* @param string $setting The setting
* @param string $value The value
*/
public static function configure($setting, $value)
{
if (property_exists("log", $setting)) Log::$$setting = $value;
}
/**
* Writes message to log.
*
* @access public
* @param string $message The message to write to the log
* @return boolean
*/
public static function write($message)
{
return (bool) file_put_contents(rtrim(Log::$path, '/') . '/' . gmdate('Y_m_d') . '.log',
'[' . gmdate('d-M-Y H:i:s') . '] ' . $message . PHP_EOL,
FILE_APPEND);
}
}

View File

@@ -0,0 +1,93 @@
<?php
/**
* Gelato Library
*
* This source file is part of the Gelato Library. More information,
* documentation and tutorials can be found at http://gelato.monstra.org
*
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Minify
{
/**
* Protected constructor since this is a static class.
*
* @access protected
*/
protected function __construct()
{
// Nothing here
}
/**
* Minify html
*
* <code>
* echo Minify::html($buffer);
* </code>
*
* @param string $buffer html
* @return string
*/
public static function html($buffer)
{
return preg_replace('/^\\s+|\\s+$/m', '', $buffer);
}
/**
* Minify css
*
* <code>
* echo Minify::css($buffer);
* </code>
*
* @param string $buffer css
* @return string
*/
public static function css($buffer)
{
// Remove comments
$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
// Remove tabs, spaces, newlines, etc.
$buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer);
// Preserve empty comment after '>' http://www.webdevout.net/css-hacks#in_css-selectors
$buffer = preg_replace('@>/\\*\\s*\\*/@', '>/*keep*/', $buffer);
// Preserve empty comment between property and value
// http://css-discuss.incutio.com/?page=BoxModelHack
$buffer = preg_replace('@/\\*\\s*\\*/\\s*:@', '/*keep*/:', $buffer);
$buffer = preg_replace('@:\\s*/\\*\\s*\\*/@', ':/*keep*/', $buffer);
// Remove ws around { } and last semicolon in declaration block
$buffer = preg_replace('/\\s*{\\s*/', '{', $buffer);
$buffer = preg_replace('/;?\\s*}\\s*/', '}', $buffer);
// Remove ws surrounding semicolons
$buffer = preg_replace('/\\s*;\\s*/', ';', $buffer);
// Remove ws around urls
$buffer = preg_replace('/url\\(\\s*([^\\)]+?)\\s*\\)/x', 'url($1)', $buffer);
// Remove ws between rules and colons
$buffer = preg_replace('/\\s*([{;])\\s*([\\*_]?[\\w\\-]+)\\s*:\\s*(\\b|[#\'"])/x', '$1$2:$3', $buffer);
// Minimize hex colors
$buffer = preg_replace('/([^=])#([a-f\\d])\\2([a-f\\d])\\3([a-f\\d])\\4([\\s;\\}])/i', '$1#$2$3$4$5', $buffer);
// Replace any ws involving newlines with a single newline
$buffer = preg_replace('/[ \\t]*\\n+\\s*/', "\n", $buffer);
return $buffer;
}
}

View File

@@ -1,255 +0,0 @@
<?php
/**
* Gelato Library
*
* This source file is part of the Gelato Library. More information,
* documentation and tutorials can be found at http://gelato.monstra.org
*
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @author Stephen Clay <steve@mrclay.org>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class MinifyCSS
{
/**
* @var array
*/
protected $_options = null;
/**
* Are we "in" a hack? I.e. are some browsers targetted until the next comment?
*
* @var bool
*/
protected $_inHack = false;
/**
* Constructor
*
* @param array $options (currently ignored)
*/
private function __construct($options)
{
$this->_options = $options;
}
/**
* Minify a CSS string
*
* @param string $css
*
* @param array $options (currently ignored)
*
* @return string
*/
public static function process($css, $options = array())
{
$obj = new MinifyCSS($options);
return $obj->_process($css);
}
/**
* Minify a CSS string
*
* @param string $css
*
* @return string
*/
protected function _process($css)
{
$css = str_replace("\r\n", "\n", $css);
// preserve empty comment after '>'
// http://www.webdevout.net/css-hacks#in_css-selectors
$css = preg_replace('@>/\\*\\s*\\*/@', '>/*keep*/', $css);
// preserve empty comment between property and value
// http://css-discuss.incutio.com/?page=BoxModelHack
$css = preg_replace('@/\\*\\s*\\*/\\s*:@', '/*keep*/:', $css);
$css = preg_replace('@:\\s*/\\*\\s*\\*/@', ':/*keep*/', $css);
// apply callback to all valid comments (and strip out surrounding ws
$css = preg_replace_callback('@\\s*/\\*([\\s\\S]*?)\\*/\\s*@'
,array($this, '_commentCB'), $css);
// remove ws around { } and last semicolon in declaration block
$css = preg_replace('/\\s*{\\s*/', '{', $css);
$css = preg_replace('/;?\\s*}\\s*/', '}', $css);
// remove ws surrounding semicolons
$css = preg_replace('/\\s*;\\s*/', ';', $css);
// remove ws around urls
$css = preg_replace('/
url\\( # url(
\\s*
([^\\)]+?) # 1 = the URL (really just a bunch of non right parenthesis)
\\s*
\\) # )
/x', 'url($1)', $css);
// remove ws between rules and colons
$css = preg_replace('/
\\s*
([{;]) # 1 = beginning of block or rule separator
\\s*
([\\*_]?[\\w\\-]+) # 2 = property (and maybe IE filter)
\\s*
:
\\s*
(\\b|[#\'"-]) # 3 = first character of a value
/x', '$1$2:$3', $css);
// remove ws in selectors
$css = preg_replace_callback('/
(?: # non-capture
\\s*
[^~>+,\\s]+ # selector part
\\s*
[,>+~] # combinators
)+
\\s*
[^~>+,\\s]+ # selector part
{ # open declaration block
/x'
,array($this, '_selectorsCB'), $css);
// minimize hex colors
$css = preg_replace('/([^=])#([a-f\\d])\\2([a-f\\d])\\3([a-f\\d])\\4([\\s;\\}])/i'
, '$1#$2$3$4$5', $css);
// remove spaces between font families
$css = preg_replace_callback('/font-family:([^;}]+)([;}])/'
,array($this, '_fontFamilyCB'), $css);
$css = preg_replace('/@import\\s+url/', '@import url', $css);
// replace any ws involving newlines with a single newline
$css = preg_replace('/[ \\t]*\\n+\\s*/', "\n", $css);
// separate common descendent selectors w/ newlines (to limit line lengths)
$css = preg_replace('/([\\w#\\.\\*]+)\\s+([\\w#\\.\\*]+){/', "$1\n$2{", $css);
// Use newline after 1st numeric value (to limit line lengths).
$css = preg_replace('/
((?:padding|margin|border|outline):\\d+(?:px|em)?) # 1 = prop : 1st numeric value
\\s+
/x'
,"$1\n", $css);
// prevent triggering IE6 bug: http://www.crankygeek.com/ie6pebug/
$css = preg_replace('/:first-l(etter|ine)\\{/', ':first-l$1 {', $css);
return trim($css);
}
/**
* Replace what looks like a set of selectors
*
* @param array $m regex matches
*
* @return string
*/
protected function _selectorsCB($m)
{
// remove ws around the combinators
return preg_replace('/\\s*([,>+~])\\s*/', '$1', $m[0]);
}
/**
* Process a comment and return a replacement
*
* @param array $m regex matches
*
* @return string
*/
protected function _commentCB($m)
{
$hasSurroundingWs = (trim($m[0]) !== $m[1]);
$m = $m[1];
// $m is the comment content w/o the surrounding tokens,
// but the return value will replace the entire comment.
if ($m === 'keep') {
return '/**/';
}
if ($m === '" "') {
// component of http://tantek.com/CSS/Examples/midpass.html
return '/*" "*/';
}
if (preg_match('@";\\}\\s*\\}/\\*\\s+@', $m)) {
// component of http://tantek.com/CSS/Examples/midpass.html
return '/*";}}/* */';
}
if ($this->_inHack) {
// inversion: feeding only to one browser
if (preg_match('@
^/ # comment started like /*/
\\s*
(\\S[\\s\\S]+?) # has at least some non-ws content
\\s*
/\\* # ends like /*/ or /**/
@x', $m, $n)) {
// end hack mode after this comment, but preserve the hack and comment content
$this->_inHack = false;
return "/*/{$n[1]}/**/";
}
}
if (substr($m, -1) === '\\') { // comment ends like \*/
// begin hack mode and preserve hack
$this->_inHack = true;
return '/*\\*/';
}
if ($m !== '' && $m[0] === '/') { // comment looks like /*/ foo */
// begin hack mode and preserve hack
$this->_inHack = true;
return '/*/*/';
}
if ($this->_inHack) {
// a regular comment ends hack mode but should be preserved
$this->_inHack = false;
return '/**/';
}
// Issue 107: if there's any surrounding whitespace, it may be important, so
// replace the comment with a single space
return $hasSurroundingWs // remove all other comments
? ' '
: '';
}
/**
* Process a font-family listing and return a replacement
*
* @param array $m regex matches
*
* @return string
*/
protected function _fontFamilyCB($m)
{
// Issue 210: must not eliminate WS between words in unquoted families
$pieces = preg_split('/(\'[^\']+\'|"[^"]+")/', $m[1], null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$out = 'font-family:';
while (null !== ($piece = array_shift($pieces))) {
if ($piece[0] !== '"' && $piece[0] !== "'") {
$piece = preg_replace('/\\s+/', ' ', $piece);
$piece = preg_replace('/\\s?,\\s?/', ',', $piece);
}
$out .= $piece;
}
return $out . $m[2];
}
}

View File

@@ -1,47 +0,0 @@
<?php
/**
* Gelato Library
*
* This source file is part of the Gelato Library. More information,
* documentation and tutorials can be found at http://gelato.monstra.org
*
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class MinifyHTML
{
/**
* Minify html
*
* <code>
* echo MinifyHTML::process($html);
* </code>
*
* @param string $buffer html
* @return string
*/
public static function process($html)
{
// Remove HTML comments (not containing IE conditional comments).
$html = preg_replace_callback('/<!--([\\s\\S]*?)-->/', 'MinifyHTML::_comments', $html);
// Trim each line.
$html = preg_replace('/^\\s+|\\s+$/m', '', $html);
// Return HTML
return $html;
}
protected static function _comments($m)
{
return (0 === strpos($m[1], '[') || false !== strpos($m[1], '<![')) ? $m[0] : '';
}
}

View File

@@ -1,50 +0,0 @@
<?php
/**
* Gelato Library
*
* This source file is part of the Gelato Library. More information,
* documentation and tutorials can be found at http://gelato.monstra.org
*
* @package Gelato
*
* @author Romanenko Sergey / Awilum <awilum@msn.com>
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class MinifyJS
{
/**
* Minify js
*
* <code>
* echo MinifyJS::process($js);
* </code>
*
* @param string $buffer html
* @return string
*/
public static function process($js)
{
// newlines > linefeed
$js = str_replace(array("\r\n", "\r", "\n"), "\n", $js);
// empty lines > collapse
$js = preg_replace('/^[ \t]*|[ \t]*$/m', '', $js);
$js = preg_replace('/\n+/m', "\n", $js);
$js = trim($js);
// redundant whitespace > remove
$js = preg_replace('/(?<=[{}\[\]\(\)=><&\|;:,\?!\+-])[ \t]*|[ \t]*(?=[{}\[\]\(\)=><&\|;:,\?!\+-])/i', '', $js);
$js = preg_replace('/[ \t]+/', ' ', $js);
// redundant semicolons (followed by another semicolon or closing curly bracket) > remove
$js = preg_replace('/;\s*(?=[;}])/s', '', $js);
// Return JS
return $js;
}
}

View File

@@ -4,6 +4,6 @@ Gelato is a PHP5 library for kickass Web Applications.
## Links ## Links
- [Site](http://gelato.monstra.org) - [Site](http://gelato.monstra.org)
- [Github Repository](https://github.com/Monstra/gelato) - [Github Repository](https://github.com/Monstra/gelato-library)
Copyright (C) 2013 Romanenko Sergey / Awilum [awilum@msn.com] Copyright (C) 2012-2013 Romanenko Sergey / Awilum [awilum@msn.com]

View File

@@ -27,7 +27,7 @@ class Registry
/** /**
* Checks if an object with this name is in the registry. * Checks if an object with this name is in the registry.
* *
* <code> * <code>
* if (Registry::exists('var')) { * if (Registry::exists('var')) {
* // Do something... * // Do something...
@@ -44,7 +44,7 @@ class Registry
/** /**
* Registers a given value under a given name. * Registers a given value under a given name.
* *
* <code> * <code>
* Registry::set('var', 'value'); * Registry::set('var', 'value');
* </code> * </code>
@@ -69,7 +69,7 @@ class Registry
/** /**
* Fetch an item from the registry. * Fetch an item from the registry.
* *
* <code> * <code>
* $var = Registry::get('var', 'value'); * $var = Registry::get('var', 'value');
* </code> * </code>

View File

@@ -22,7 +22,7 @@ class Token
* *
* @var string * @var string
*/ */
protected static $token_name = 'security_token'; public static $token_name = 'security_token';
/** /**
* Protected constructor since this is a static class. * Protected constructor since this is a static class.

View File

@@ -1,11 +1,3 @@
Gelato 1.0.1, 2013-03-05 Gelato 1.0.0, XXXX-XX-XX
------------------------ ------------------------
- New constant GELATO_CLASS_LOADER instead of GELATO_AUTOLOADER - Initial release
- ErrorHanler Class Improvements.
- Log Class Improvements.
- ClassLoader: new method register() added.
- Define __DIR__ constant for PHP 5.2.x
Gelato 1.0.0, 2013-02-26
------------------------
- Initial release

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Backups', 'Backups' => 'Backups',
'Backup' => 'Backup', 'Backup date' => 'Backup Datum',
'Create Backup' => 'Erstelle Backup', 'Create backup' => 'Erstelle Backup',
'Delete' => 'Löschen', 'Delete' => 'Löschen',
'storage' => 'Speicher', 'storage' => 'Speicher',
'public' => 'Öffentliche', 'public' => 'Öffentliche',

View File

@@ -2,10 +2,10 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Backups', 'Backups' => 'Backups',
'Backup Date' => 'Backup Date', 'Backup date' => 'Backup date',
'Create Backup' => 'Create Backup', 'Create backup' => 'Create backup',
'Delete' => 'Delete', 'Delete' => 'Delete',
'storage' => 'storage', 'storage' => 'storage',
'public' => 'public', 'public' => 'public',
'plugins' => 'plugins', 'plugins' => 'plugins',
@@ -14,4 +14,4 @@
'Delete backup: :backup' => 'Delete backup: :backup', 'Delete backup: :backup' => 'Delete backup: :backup',
'Creating...' => 'Creating...', 'Creating...' => 'Creating...',
) )
); );

View File

@@ -1,17 +0,0 @@
<?php
return array(
'backup' => array(
'Backups' => 'Backup',
'Backup date' => 'Backup dia',
'Create Backup' => 'Crear Backup',
'Delete' => 'Borrar',
'storage' => 'Almacen',
'public' => 'publico',
'plugins' => 'plugins',
'Size' => 'Tamaño',
'Actions' => 'Acciones',
'Delete backup: :backup' => 'Borrar Backup: :backup',
'Creating...' => 'Creando...',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'backup' => array(
'Backups' => 'پشتیبان گیری',
'Backup Date' => 'تاریخ پشتیبان گیری',
'Create Backup' => 'ایجاد نسخه پشتیبان',
'Delete' => 'حذف',
'storage' => 'ذخیره سازی',
'public' => 'عمومی',
'plugins' => 'افزونه ها',
'Size' => 'اندازه',
'Actions' => 'عملیات',
'Delete backup: :backup' => 'حذف پشتیبان: نسخه پشتیبان',
'Creating...' => 'درحال ایجاد ...',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'backup' => array(
'Backups' => 'Sauvegardes',
'Backup date' => 'Date de la sauvegarde',
'Create backup' => 'Créer une sauvegarde',
'Delete' => 'Supprimer',
'storage' => 'stockage',
'public' => 'public',
'plugins' => 'plugins',
'Size' => 'Taille',
'Actions' => 'Actions',
'Delete backup: :backup' => 'Supprimer la sauvegarde: :backup',
'Creating...' => 'Création...',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'backup' => array(
'Backups' => 'Biztonsági mentések',
'Backup date' => 'Biztonsági mentés dátuma',
'Create Backup' => 'Biztonsági mentés készítése',
'Delete' => 'Töröl',
'storage' => 'tárol',
'public' => 'nyilvános',
'plugins' => 'pluginok',
'Size' => 'Méret',
'Actions' => 'Műveletek',
'Delete backup: :backup' => 'Biztonsági mentés törlése: :backup',
'Creating...' => 'Készítés...',
)
);

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Backup', 'Backups' => 'Backup',
'Backup' => 'Backup', 'Backup date' => 'Backup',
'Create Backup' => 'Crea Backup', 'Create backup' => 'Crea backup',
'Delete' => 'Elimina', 'Delete' => 'Elimina',
'storage' => 'dati', 'storage' => 'dati',
'public' => 'pubblica', 'public' => 'pubblica',

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Atsarginės kopijos', 'Backups' => 'Atsarginės kopijos',
'Backup' => 'Atsarginės kopijos data', 'Backup date' => 'Atsarginės kopijos data',
'Create Backup' => 'Sukurti atsarginę kopiją', 'Create backup' => 'Sukurti atsarginę kopiją',
'Delete' => 'Ištrinti', 'Delete' => 'Ištrinti',
'storage' => 'storage', 'storage' => 'storage',
'public' => 'public', 'public' => 'public',

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Backups', 'Backups' => 'Backups',
'Backup' => 'Backup', 'Backup date' => 'Data do backup',
'Create Backup' => 'Criar Backup', 'Create backup' => 'Criar',
'Delete' => 'Deletar', 'Delete' => 'Deletar',
'storage' => 'storage', 'storage' => 'storage',
'public' => 'public', 'public' => 'public',

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Бекапы', 'Backups' => 'Бекапы',
'Backup' => 'Бекап', 'Backup date' => 'Бекап',
'Create Backup' => 'Сделать бекап', 'Create backup' => 'Сделать бекап',
'Delete' => 'Удалить', 'Delete' => 'Удалить',
'storage' => 'данные', 'storage' => 'данные',
'public' => 'публичная', 'public' => 'публичная',

View File

@@ -1,17 +0,0 @@
<?php
return array(
'backup' => array(
'Backups' => 'Zálohy',
'Backup' => 'Zálohy',
'Create Backup' => 'Vytvoriť Zálohu',
'Delete' => 'Vymazať',
'storage' => 'Storage/Obsah diskového miesta',
'public' => 'Verejné',
'plugins' => 'Pluginy',
'Size' => 'Veľkosť',
'Actions' => 'Akcie',
'Delete backup: :backup' => 'Vymazať zálohu: :backup',
'Creating...' => 'Vytváram...',
)
);

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Bekapovi', 'Backups' => 'Bekapovi',
'Backup' => 'Backup', 'Backup date' => 'Backup datum',
'Create Backup' => 'Kreiraj Bekap', 'Create backup' => 'Kreiraj Bekap',
'Delete' => 'Obriši', 'Delete' => 'Obriši',
'storage' => 'lokacija arhive', 'storage' => 'lokacija arhive',
'public' => 'Javno', 'public' => 'Javno',

View File

@@ -3,8 +3,8 @@
return array( return array(
'backup' => array( 'backup' => array(
'Backups' => 'Бекапи', 'Backups' => 'Бекапи',
'Backup' => 'Бекап', 'Backup date' => 'Бекап',
'Create Backup' => 'Зробити бекап', 'Create backup' => 'Зробити бекап',
'Delete' => 'Видалити', 'Delete' => 'Видалити',
'storage' => 'дані', 'storage' => 'дані',
'public' => 'публічна', 'public' => 'публічна',

View File

@@ -14,7 +14,7 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
Form::checkbox('add_storage_folder', null, true, array('disabled' => 'disabled')) . ' ' . __('storage', 'backup') . ' ' . Html::nbsp(2) . Form::checkbox('add_storage_folder', null, true, array('disabled' => 'disabled')) . ' ' . __('storage', 'backup') . ' ' . Html::nbsp(2) .
Form::checkbox('add_public_folder') . ' ' . __('public', 'backup') . ' ' . Html::nbsp(2) . Form::checkbox('add_public_folder') . ' ' . __('public', 'backup') . ' ' . Html::nbsp(2) .
Form::checkbox('add_plugins_folder') . ' ' . __('plugins', 'backup') . ' ' . Html::nbsp(2) . Form::checkbox('add_plugins_folder') . ' ' . __('plugins', 'backup') . ' ' . Html::nbsp(2) .
Form::submit('create_backup', __('Create Backup', 'backup'), array('class' => 'btn', 'data-loading-text' => __('Creating...', 'backup'))). Form::submit('create_backup', __('Create backup', 'backup'), array('class' => 'btn', 'data-loading-text' => __('Creating...', 'backup'))).
Form::close() Form::close()
); );
?> ?>
@@ -23,7 +23,7 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
<th><?php echo __('Backup', 'backup'); ?></th> <th><?php echo __('Backup date', 'backup'); ?></th>
<th><?php echo __('Size', 'backup'); ?></th> <th><?php echo __('Size', 'backup'); ?></th>
<th></th> <th></th>
</tr> </tr>

View File

@@ -66,7 +66,7 @@ class BlocksAdmin extends Backend
->display(); ->display();
break; break;
// Edit Block // Edit block
// ------------------------------------- // -------------------------------------
case "edit_block": case "edit_block":
// Save current block action // Save current block action

View File

@@ -7,11 +7,11 @@
'Delete' => 'Löschen', 'Delete' => 'Löschen',
'Edit' => 'Bearbeiten', 'Edit' => 'Bearbeiten',
'Name' => 'Name', 'Name' => 'Name',
'Create New Block' => 'Erstelle einen neuen Block', 'Create new block' => 'Erstelle einen neuen Block',
'New Block' => 'Neuer Block', 'New block' => 'Neuer Block',
'Edit Block' => 'Bearbeite Block', 'Edit block' => 'Bearbeite Block',
'Save' => 'Save', 'Save' => 'Save',
'Save and Exit' => 'Speichern und Schließen', 'Save and exit' => 'Speichern und Schließen',
'Actions' => 'Aktionen', 'Actions' => 'Aktionen',
'Required field' => 'Erforderliches Feld', 'Required field' => 'Erforderliches Feld',
'This block already exists' => 'Dieser Block existiert bereits', 'This block already exists' => 'Dieser Block existiert bereits',

View File

@@ -7,11 +7,11 @@
'Delete' => 'Delete', 'Delete' => 'Delete',
'Edit' => 'Edit', 'Edit' => 'Edit',
'Name' => 'Name', 'Name' => 'Name',
'Create New Block' => 'Create New Block', 'Create new block' => 'Create new block',
'New Block' => 'New Block', 'New block' => 'New block',
'Edit Block' => 'Edit Block', 'Edit block' => 'Edit block',
'Save' => 'Save', 'Save' => 'Save',
'Save and Exit' => 'Save and Exit', 'Save and exit' => 'Save and exit',
'Actions' => 'Actions', 'Actions' => 'Actions',
'Required field' => 'Required field', 'Required field' => 'Required field',
'This block already exists' => 'This block already exists', 'This block already exists' => 'This block already exists',

View File

@@ -1,29 +0,0 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'Bloques',
'Blocks manager' => 'Administrar bloques',
'Delete' => 'Borrar',
'Edit' => 'Editar',
'Name' => 'Nombre',
'Create New Block' => 'Crear nuevo bloque',
'New block' => 'Nuevo bloque',
'Edit block' => 'Editar bloque',
'Save' => 'Guardar',
'Save and Exit' => 'Guardar y salir',
'Actions' => 'Acciones',
'Required field' => 'Dato requerido',
'This block already exists' => 'Este bloque ya esiste',
'This block does not exist' => 'Este bloque no esiste',
'Delete block: :block' => 'Borrar bloque: :block',
'Block content' => 'Contenido del bloque',
'Block <i>:name</i> deleted' => 'bloque <i>:name</i> borrdo',
'Your changes to the block <i>:name</i> have been saved.' => 'Tus cambios en el bloque <i>:name</i> han sido guardados.',
'Delete block: :block' => 'Borrar bloque: :block',
'View Embed Code' => 'Ver codigo para incrustar',
'Embed Code' => 'Codigo para incrustar',
'Shortcode' => 'Codigo corto',
'PHP Code' => 'Codigo PHP',
)
);

View File

@@ -1,29 +0,0 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'بلوک',
'Blocks manager' => 'مدیریت بلوک',
'Delete' => 'حذف',
'Edit' => 'ویرایش',
'Name' => 'نام',
'Create New Block' => 'ایجاد بلوک جدید',
'New Block' => 'بلوک جدید',
'Edit Block' => 'ویرایش بلوک',
'Save' => 'ذخیره',
'Save and Exit' => 'ذخیره و خروج',
'Actions' => 'عملیات',
'Required field' => 'کادر اجباری',
'This block already exists' => 'این بلوک در حال حاضر وجود دارد',
'This block does not exist' => 'این بلوک وجود ندارد',
'Delete block: :block' => 'حذف بلوک: :block',
'Block content' => 'محتوی بلوک',
'Block <i>:name</i> deleted' => 'بلوک <i>:name</i> حذف شد',
'Your changes to the block <i>:name</i> have been saved.' => 'تغییرات روی بلوک <i>:name</i> ذخیره شد.',
'Delete block: :block' => 'حذف بلوک: :block',
'View Embed Code' => 'نمایش کد درج شده',
'Embed Code' => 'کد درج شده',
'Shortcode' => 'کدکوتاه',
'PHP Code' => 'کد PHP',
)
);

View File

@@ -1,29 +0,0 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'Blocs',
'Blocks manager' => 'Gestionnaire des blocs',
'Delete' => 'Supprimer',
'Edit' => 'Editer',
'Name' => 'Nom',
'Create new block' => 'Créer un nouveau bloc',
'New block' => 'Nouveau bloc',
'Edit block' => 'Editer le bloc',
'Save' => 'Enregistrer',
'Save and exit' => 'Enregistrer et sortir',
'Actions' => 'Actions',
'Required field' => 'Champ requis',
'This block already exists' => 'Ce bloc existe déjà',
'This block does not exist' => 'Ce bloc n\'existe pas',
'Delete block: :block' => 'Supprimer le bloc: :block',
'Block content' => 'Contenu du bloc',
'Block <i>:name</i> deleted' => 'Bloc <i>:name</i> supprimé',
'Your changes to the block <i>:name</i> have been saved.' => 'Vos changements pour le bloc <i>:name</i> ont été sauvegardés.',
'Delete block: :block' => 'Supprimer le bloc: :block',
'View Embed Code' => 'Voir le code intégré',
'Embed Code' => 'Code intégré',
'Shortcode' => 'Code court',
'PHP Code' => 'Code PHP',
)
);

View File

@@ -1,29 +0,0 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'Blokkok',
'Blocks manager' => 'Blokk-kezelő',
'Delete' => 'Törlés',
'Edit' => 'Szerkesztés',
'Name' => 'Név',
'Create New Block' => 'Új blokk készítése',
'New Block' => 'Új blokk',
'Edit Block' => 'Blokk szerkesztése',
'Save' => 'Mentés',
'Save and Exit' => 'Mentés és Kilépés',
'Actions' => 'Műveletek',
'Required field' => 'Kötelező mező',
'This block already exists' => 'Ez a blokk már létezik',
'This block does not exist' => 'Ez a blokk nem létezik',
'Delete block: :block' => 'Blokk törlése: :block',
'Block content' => 'Blokk tartalma',
'Block <i>:name</i> deleted' => 'A <i>:name</i> blokk törölve',
'Your changes to the block <i>:name</i> have been saved.' => 'A <i>:name</i> blokk változtatásai elmentve.',
'Delete block: :block' => 'Blokk törlése: :block',
'View Embed Code' => 'Beágyazott kód mutatása',
'Embed Code' => 'Beágyazott kód',
'Shortcode' => 'Shortcode',
'PHP Code' => 'PHP Code',
)
);

View File

@@ -6,13 +6,13 @@
'Blocks manager' => 'Gestione blocchi', 'Blocks manager' => 'Gestione blocchi',
'Delete' => 'Elimina', 'Delete' => 'Elimina',
'Edit' => 'Modifica', 'Edit' => 'Modifica',
'New Block' => 'Nuovo blocco', 'New block' => 'Nuovo blocco',
'Create New Block' => 'Crea nuovo blocco', 'Create new block' => 'Crea nuovo blocco',
'Name' => 'Nome', 'Name' => 'Nome',
'Edit Block' => 'Modifica blocco', 'Edit block' => 'Modifica blocco',
'Save' => 'Salva', 'Save' => 'Salva',
'Actions' => 'Azioni', 'Actions' => 'Azioni',
'Save and Exit' => 'Salva ed esci', 'Save and exit' => 'Salva ed esci',
'Required field' => 'Campo obbligatorio', 'Required field' => 'Campo obbligatorio',
'This block already exists' => 'Tale blocco già esistente', 'This block already exists' => 'Tale blocco già esistente',
'This block does not exist' => 'Tale blocco non esiste', 'This block does not exist' => 'Tale blocco non esiste',

View File

@@ -7,11 +7,11 @@
'Delete' => 'Ištrinti', 'Delete' => 'Ištrinti',
'Edit' => 'Redaguoti', 'Edit' => 'Redaguoti',
'Name' => 'Pavadinimas', 'Name' => 'Pavadinimas',
'Create New Block' => 'Sukurti naują bloką', 'Create new block' => 'Sukurti naują bloką',
'New Block' => 'Naujas blokas', 'New block' => 'Naujas blokas',
'Edit Block' => 'Redaguoti bloką', 'Edit block' => 'Redaguoti bloką',
'Save' => 'Išsaugoti', 'Save' => 'Išsaugoti',
'Save and Exit' => 'Išsaugoti ir išeiti', 'Save and exit' => 'Išsaugoti ir išeiti',
'Actions' => 'Veiksmai', 'Actions' => 'Veiksmai',
'Required field' => 'Privalomas laukas', 'Required field' => 'Privalomas laukas',
'This block already exists' => 'Toks blokas jau yra', 'This block already exists' => 'Toks blokas jau yra',

View File

@@ -7,11 +7,11 @@
'Delete' => 'Deletar', 'Delete' => 'Deletar',
'Edit' => 'Editar', 'Edit' => 'Editar',
'Name' => 'Nome', 'Name' => 'Nome',
'Create New Block' => 'Criar novo bloco', 'Create new block' => 'Criar novo bloco',
'New Block' => 'Novo bloco', 'New block' => 'Novo bloco',
'Edit Block' => 'Editar bloco', 'Edit block' => 'Editar bloco',
'Save' => 'Salvar', 'Save' => 'Salvar',
'Save and Exit' => 'Salvar e sair', 'Save and exit' => 'Salvar e sair',
'Actions' => 'Ações', 'Actions' => 'Ações',
'Required field' => 'Campo requerido', 'Required field' => 'Campo requerido',
'This block already exists' => 'Este bloco já existe', 'This block already exists' => 'Este bloco já existe',

View File

@@ -6,13 +6,13 @@
'Blocks manager' => 'Менеджер блоков', 'Blocks manager' => 'Менеджер блоков',
'Delete' => 'Удалить', 'Delete' => 'Удалить',
'Edit' => 'Редактировать', 'Edit' => 'Редактировать',
'New Block' => 'Новый блок', 'New block' => 'Новый блок',
'Create New Block' => 'Создать новый блок', 'Create new block' => 'Создать новый блок',
'Name' => 'Название', 'Name' => 'Название',
'Edit Block' => 'Редактирование блока', 'Edit block' => 'Редактирование блока',
'Save' => 'Сохранить', 'Save' => 'Сохранить',
'Actions' => 'Действия', 'Actions' => 'Действия',
'Save and Exit' => 'Сохранить и выйти', 'Save and exit' => 'Сохранить и выйти',
'Required field' => 'Обязательное поле', 'Required field' => 'Обязательное поле',
'This block already exists' => 'Такой блок уже существует', 'This block already exists' => 'Такой блок уже существует',
'This block does not exist' => 'Такого блока не существует', 'This block does not exist' => 'Такого блока не существует',

View File

@@ -1,29 +0,0 @@
<?php
return array(
'blocks' => array(
'Blocks' => 'Bloky',
'Blocks manager' => 'Manažér blokov',
'Delete' => 'Vymazať',
'Edit' => 'Editovať',
'Name' => 'Názov',
'Create New Block' => 'Vytvoriť nový blok',
'New Block' => 'Nový blok',
'Edit Block' => 'Editovať blok',
'Save' => 'Uložiť',
'Save and Exit' => 'Uložiť a ukončiť',
'Actions' => 'Akcie',
'Required field' => 'Povinné políčko',
'This block already exists' => 'Tento blok už existuje',
'This block does not exist' => 'Tento blok neexistuje',
'Delete block: :block' => 'Vymazať blok: :block',
'Block content' => 'Obsah bloku',
'Block <i>:name</i> deleted' => 'Blok <i>:name</i> bol vymazaný',
'Your changes to the block <i>:name</i> have been saved.' => 'Vaše zmeny v bloku <i>:name</i> boli uložené.',
'Delete block: :block' => 'Vymazať blok: :block',
'View Embed Code' => 'Pozrieť vložený kód',
'Embed Code' => 'Vložený kód',
'Shortcode' => 'Skrátený kód',
'PHP Code' => 'PHP kód',
)
);

View File

@@ -3,16 +3,16 @@
return array( return array(
'blocks' => array( 'blocks' => array(
'Blocks' => 'Blokovi', 'Blocks' => 'Blokovi',
'Blocks manager' => 'Menadžer blokova', 'Blocks manager' => 'Menadžer blokova',
'Delete' => 'Obriši', 'Delete' => 'Obriši',
'Edit' => 'Izmeni', 'Edit' => 'Izmeni',
'Name' => 'Ime', 'Name' => 'Ime',
'Create new block' => 'Kreiraj novi blok', 'Create new block' => 'Kreiraj novi blok',
'New block' => 'Novi blok', 'New block' => 'Novi blok',
'Edit block' => 'Izmeni blok', 'Edit block' => 'Izmeni blok',
'Save' => 'Sačuvaj', 'Save' => 'Sačuvaj',
'Save and exit' => 'Sačuvaj i izađi', 'Save and exit' => 'Sačuvaj i izađi',
'Actions' => 'Akcije', 'Actions' => 'Akcije',
'Required field' => 'Potrebno polje', 'Required field' => 'Potrebno polje',
'This block already exists' => 'Ovaj Blok već postoji', 'This block already exists' => 'Ovaj Blok već postoji',
'This block does not exist' => 'Ovaj blok ne postoji', 'This block does not exist' => 'Ovaj blok ne postoji',
@@ -22,8 +22,8 @@
'Your changes to the block <i>:name</i> have been saved.' => 'Tvoje promene na bloku <i>:name</i> su sačuvane.', 'Your changes to the block <i>:name</i> have been saved.' => 'Tvoje promene na bloku <i>:name</i> su sačuvane.',
'Delete block: :block' => 'Obriši blok: :block', 'Delete block: :block' => 'Obriši blok: :block',
'View Embed Code' => 'Vidi embed kod', 'View Embed Code' => 'Vidi embed kod',
'Embed Code' => 'Embed Kod', 'Embed Code' => 'Embed Kod',
'Shortcode' => 'Kratak kod', 'Shortcode' => 'Kratak kod',
'PHP Code' => 'PHP kod', 'PHP Code' => 'PHP kod',
) )
); );

View File

@@ -6,13 +6,13 @@
'Blocks manager' => 'Менеджер блоків', 'Blocks manager' => 'Менеджер блоків',
'Delete' => 'Видалити', 'Delete' => 'Видалити',
'Edit' => 'Редагувати', 'Edit' => 'Редагувати',
'New Block' => 'Новий блок', 'New block' => 'Новий блок',
'Create New Block' => 'Створити новий блок', 'Create new block' => 'Створити новий блок',
'Name' => 'Назва', 'Name' => 'Назва',
'Edit Block' => 'Редагування блоку', 'Edit block' => 'Редагування блоку',
'Save' => 'Зберегти', 'Save' => 'Зберегти',
'Actions' => 'Дії', 'Actions' => 'Дії',
'Save and Exit' => 'Зберегти та вийти', 'Save and exit' => 'Зберегти та вийти',
'Required field' => 'Обов&prime;язкове поле', 'Required field' => 'Обов&prime;язкове поле',
'This block already exists' => 'Такий блок вже існує', 'This block already exists' => 'Такий блок вже існує',
'This block does not exist' => 'Такого блоку не існує', 'This block does not exist' => 'Такого блоку не існує',

View File

@@ -5,7 +5,7 @@
<?php <?php
echo ( echo (
Html::anchor(__('Create New Block', 'blocks'), 'index.php?id=blocks&action=add_block', array('title' => __('Create New Block', 'blocks'), 'class' => 'btn default btn-small')). Html::nbsp(3) Html::anchor(__('Create New Block', 'blocks'), 'index.php?id=blocks&action=add_block', array('title' => __('Create new block', 'blocks'), 'class' => 'btn default btn-small')). Html::nbsp(3)
); );
?> ?>

View File

@@ -1,8 +0,0 @@
<?php
return array(
'Editor' => array(
'Editor' => 'Editor',
'Editor plugin' => 'Plugin editor',
)
);

View File

@@ -1,8 +0,0 @@
<?php
return array(
'Editor' => array(
'Editor' => 'ویرایشگر',
'Editor plugin' => 'افزونه ویرایشگر',
)
);

View File

@@ -1,8 +0,0 @@
<?php
return array(
'Editor' => array(
'Editor' => 'Editeur',
'Editor plugin' => 'Plugin éditeur',
)
);

View File

@@ -1,8 +0,0 @@
<?php
return array(
'Editor' => array(
'Editor' => 'Szerkesztő',
'Editor plugin' => 'Szerkesztő bővítmény',
)
);

View File

@@ -1,8 +0,0 @@
<?php
return array(
'Editor' => array(
'Editor' => 'Editor',
'Editor plugin' => 'Editor plugin',
)
);

View File

@@ -4,6 +4,6 @@
return array( return array(
'Editor' => array( 'Editor' => array(
'Editor' => 'Editor', 'Editor' => 'Editor',
'Editor plugin' => 'Editor dodatak', 'Editor plugin' => 'Editor dodatak',
) )
); );

View File

@@ -8,7 +8,21 @@ $.monstra.filesmanager = {
showImage: function() { showImage: function() {
$('.image').find('a').on('click', function() { $('.image').find('a').on('click', function() {
$('#previewLightbox').lightbox('show').find('img').attr('src', $(this).attr('rel')); var src = $(this).attr('href');
var file = $(src.split('/')).last();
var image = new Image();
image.src = src;
$(image).load(function() {
$('#showImage')
.modal('show')
.css({"min-width": 632})
.find('img')
.attr('src', src);
$('#showImage').find('h3 span').text(file[0]);
$('#showImage').find('img').css({"max-width": 600});
$('#showImage').find('img').attr('alt', file[0]);
});
return false;
}); });
} }
}; };

View File

@@ -1,17 +0,0 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'Archivos',
'Files manager' => 'Administrar archivos',
'Name' => 'Nombre',
'Actions' => 'Acciones',
'Delete' => 'Borrar',
'Upload' => 'Subir',
'directory' => 'directorio',
'Delete directory: :dir' => 'Borrar directorio: :dir',
'Delete file: :file' => 'Borrar archivo :file',
'Extension' => 'Extension',
'Size' => 'Tamaño',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'فایلها',
'Files manager' => 'مدیریت فایلها',
'Name' => 'نام',
'Actions' => 'عملیات',
'Delete' => 'حذف',
'Upload' => 'آپلود',
'directory' => 'شاخه',
'Delete directory: :dir' => 'حذف شاخه: :dir',
'Delete file: :file' => 'حذف فایل :file',
'Extension' => 'پسوند',
'Size' => 'اندازه',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'Fichiers',
'Files manager' => 'Gestionnaire de fichiers',
'Name' => 'Nom',
'Actions' => 'Actions',
'Delete' => 'Supprimer',
'Upload' => 'Upload',
'directory' => 'Répertoire',
'Delete directory: :dir' => 'Supprimer le répertoire: :dir',
'Delete file: :file' => 'Supprimer le fichier :file',
'Extension' => 'Extension',
'Size' => 'Taille',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'Fájlok',
'Files manager' => 'Fájlkezelő',
'Name' => 'Név',
'Actions' => 'Műveletek',
'Delete' => 'Törlés',
'Upload' => 'Feltöltés',
'directory' => 'directory',
'Delete directory: :dir' => 'Directory törlése: :dir',
'Delete file: :file' => 'Fájl törlése :file',
'Extension' => 'Bővítmény',
'Size' => 'Méret',
)
);

View File

@@ -1,17 +0,0 @@
<?php
return array(
'filesmanager' => array(
'Files' => 'Súbory',
'Files manager' => 'Manažér súborov',
'Name' => 'Názov',
'Actions' => 'Akcie',
'Delete' => 'Vymazať',
'Upload' => 'Nahrať',
'directory' => 'priečinok',
'Delete directory: :dir' => 'Vymazať priečinok: :dir',
'Delete file: :file' => 'Vymazať súbor :file',
'Extension' => 'Rozšírenie',
'Size' => 'Veľkosť',
)
);

View File

@@ -4,14 +4,14 @@
'filesmanager' => array( 'filesmanager' => array(
'Files' => 'Fajlovi', 'Files' => 'Fajlovi',
'Files manager' => 'Menadžer fajlova', 'Files manager' => 'Menadžer fajlova',
'Name' => 'Ime', 'Name' => 'Ime',
'Actions' => 'Akcije', 'Actions' => 'Akcije',
'Delete' => 'Obriši', 'Delete' => 'Obriši',
'Upload' => 'Dodaj', 'Upload' => 'Dodaj',
'directory' => 'Direktorijum', 'directory' => 'Direktorijum',
'Delete directory: :dir' => 'Obriši direktorijum: :dir', 'Delete directory: :dir' => 'Obriši direktorijum: :dir',
'Delete file: :file' => 'Obriši fajl :file', 'Delete file: :file' => 'Obriši fajl :file',
'Extension' => 'Extenzija', 'Extension' => 'Extenzija',
'Size' => 'Veličina', 'Size' => 'Veličina',
) )
); );

View File

@@ -40,8 +40,8 @@
<thead> <thead>
<tr> <tr>
<th><?php echo __('Name', 'filesmanager'); ?></th> <th><?php echo __('Name', 'filesmanager'); ?></th>
<th class="hidden-phone"><?php echo __('Extension', 'filesmanager'); ?></th> <th><?php echo __('Extension', 'filesmanager'); ?></th>
<th class="hidden-phone"><?php echo __('Size', 'filesmanager'); ?></th> <th><?php echo __('Size', 'filesmanager'); ?></th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@@ -55,7 +55,7 @@
</td> </td>
<td> <td>
<!-- Dir Size --> <?php echo Number::byteFormat(Dir::size(UPLOADS . DS . $dir)); ?>
</td> </td>
<td> <td>
<div class="pull-right"> <div class="pull-right">
@@ -71,16 +71,12 @@
<?php if ( ! in_array($ext, $forbidden_types)) { ?> <?php if ( ! in_array($ext, $forbidden_types)) { ?>
<tr> <tr>
<td<?php if (isset(File::$mime_types[$ext]) && preg_match('/image/', File::$mime_types[$ext])) echo ' class="image"'?>> <td<?php if (isset(File::$mime_types[$ext]) && preg_match('/image/', File::$mime_types[$ext])) echo ' class="image"'?>>
<?php if (isset(File::$mime_types[$ext]) && preg_match('/image/', File::$mime_types[$ext])) { ?> <?php echo Html::anchor(File::name($file), $site_url.'public/' . $path.$file, array('target'=>'_blank'));?>
<?php echo Html::anchor(File::name($file), '#', array('rel' => $site_url.'public/' . $path.$file));?>
<?php } else { ?>
<?php echo Html::anchor(File::name($file), $site_url.'public/' . $path.$file, array('target'=>'_blank'));?>
<?php } ?>
</td> </td>
<td class="hidden-phone"> <td>
<?php echo $ext; ?> <?php echo $ext; ?>
</td> </td>
<td class="hidden-phone"> <td>
<?php echo Number::byteFormat(filesize($files_path. DS .$file)); ?> <?php echo Number::byteFormat(filesize($files_path. DS .$file)); ?>
</td> </td>
<td> <td>
@@ -96,11 +92,12 @@
</tbody> </tbody>
</table> </table>
<div id="previewLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true"> <div id="showImage" class="modal hide fade">
<div class='lightbox-header'> <div class="modal-header">
<button type="button" class="close" data-dismiss="lightbox" aria-hidden="true">&times;</button> <a class="close" data-dismiss="modal">×</a>
<h3><?php echo __('Image:', 'filesmanager')?> <span></span></h3>
</div> </div>
<div class='lightbox-content'> <div class="modal-body">
<img /> <p align="center"><img /></p>
</div> </div>
</div> </div>

View File

@@ -19,6 +19,7 @@
'Security check results' => 'Sicherheits-Check Ergebnisse', 'Security check results' => 'Sicherheits-Check Ergebnisse',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' => 'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'Die Konfigurationsdatei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte für defines.php auf Produktionssystemen zu entfernen.', 'Die Konfigurationsdatei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte für defines.php auf Produktionssystemen zu entfernen.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' => 'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Die Monstra .htaccess Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.', 'Die Monstra .htaccess Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' => 'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>

View File

@@ -1,40 +0,0 @@
<?php
return array(
'information' => array(
'Information' => 'Información',
'Debugging' => 'Depuración',
'Name' => 'Nombre',
'Value' => 'Valor',
'Security' => 'Seguridad',
'System' => 'Sistema',
'on' => 'Encendido',
'off'=> 'Apagado',
'Server' => 'Servidor',
'PHP version' => 'Version PHP',
'SimpleXML module' => 'SimpleXML modulo',
'DOM module' => 'DOM modulo',
'Installed' => 'Instalado',
'Not Installed' => 'No instalado',
'Security check results' => 'Resultados de control de seguridad',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'El archivo de configuración se ha encontrado ser de escritura. Les recomendamos quitar todos los permisos de escritura en defines.php en los sistemas de producción.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'El directorio núcleo Monstra (":path") y / o los archivos por debajo de ella se ha encontrado para tener permisos de escritura. Les recomendamos quitar todos los permisos de escritura. <br/> Usted puede hacer esto en sistemas Unix con: <code> chmod-R aw: path </code>',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'El Monstra. Htaccess se ha encontrado para tener permisos de escritura. Les recomendamos quitar todos los permisos de escritura. <br/> Usted puede hacer esto en sistemas Unix con: <code>chmod a-w :path</code>',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'El archivo index.php Monstra se ha encontrado ser de escritura. Les recomendamos quitar todos los permisos de escritura. <br/> Usted puede hacer esto en sistemas Unix con: <code>chmod a-w :path</code>',
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
'Debido al tipo y cantidad de información que un error podría dar a los intrusos cuando Core::$environment = Core::DEVELOPMENT,le recomendamos ajuste Core::PRODUCTION en sistemas de producción.',
'Monstra version' => 'Monstra version',
'Directory Permissions' => 'Permisos de directorios',
'Directory' => 'Directorio',
'Writable' => 'Adcesible',
'Unwritable' => 'No adcesible',
'Status' => 'Estado',
'PHP Built On' => 'PHP Construido En',
'Web Server' => 'Servidor Web',
'WebServer to PHP Interface' => 'Servidor web en PHP Interface',
)
);

View File

@@ -1,40 +0,0 @@
<?php
return array(
'information' => array(
'Information' => 'اطلاعات',
'Debugging' => 'اشکال زدایی',
'Name' => 'نام',
'Value' => 'مقدار',
'Security' => 'امنیت',
'System' => 'سیستم',
'on' => 'روشن',
'off'=> 'خاموش',
'Server' => 'سرور',
'PHP version' => 'نسخه PHP',
'SimpleXML module' => 'ماژول SimpleXML',
'DOM module' => 'ماژول DOM',
'Installed' => 'نصب شده',
'Not Installed' => 'نصب نشده',
'Security check results' => 'نتایج بررسیهای امنیتی',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'فایل پیکربندی قابل نوشتن میباشد . توصیه میکنیم همه مجوزهای نوشتن را در define.php سیستمهای تولیدی حذف کنید.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'شاخه هسته مونسترا (":path") و/ یا فایلهایی درون آن قابل نوشتن میباشند . توصیه میکنیم همه مجوزهای نوشتن را حذف کنید. <br/>در سیستمهای یونیکس میتوانید با دستور : <code>chmod -R a-w :path</code> انجام دهید',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'فایل .htaccess مونسترا قابل نوشتن میباشند . توصیه میکنیم همه مجوزهای نوشتن را حذف کنید. <br/>در سیستمهای یونیکس میتوانید با دستور : <code>chmod -R a-w :path</code> انجام دهید',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'فایل index.php مونسترا قابل نوشتن میباشند . توصیه میکنیم همه مجوزهای نوشتن را حذف کنید. <br/>در سیستمهای یونیکس میتوانید با دستور : <code>chmod -R a-w :path</code> انجام دهید',
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
'با توجه به نوع و مقدار اطلاعات ممکن است هنگام Core::$environment = Core::DEVELOPMENT خطایی رخ بدهد ، ما شدیداً Core::PRODUCTION را د رسیستم تولید توصیه میکنیم ',
'Monstra version' => 'نسخه Monstra',
'Directory Permissions' => 'مجوزهای شاخه',
'Directory' => 'شاخه',
'Writable' => 'قابل نوشتن',
'Unwritable' => 'غیرقابل نوشتن',
'Status' => 'وضعیت',
'PHP Built On' => 'ساخته شده باPHP',
'Web Server' => 'وب سرور',
'WebServer to PHP Interface' => 'وب سرور به رابط PHP',
)
);

View File

@@ -1,40 +0,0 @@
<?php
return array(
'information' => array(
'Information' => 'Information',
'Debugging' => 'Débogage',
'Name' => 'Nom',
'Value' => 'Valeur',
'Security' => 'Sécurité',
'System' => 'Système',
'on' => 'on',
'off'=> 'off',
'Server' => 'Serveur',
'PHP version' => 'Version PHP',
'SimpleXML module' => 'Module SimpleXML',
'DOM module' => 'Module DOM',
'Installed' => 'Installé',
'Not Installed' => 'Non installé',
'Security check results' => 'Résultats du contrôle de sécurité',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'Le fichier de configuration a été trouvé pour être accessible en écriture. Nous vous conseillons de supprimer toutes les autorisations d\'écriture sur defines.php lors de la mise en production.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'Le répertoire de base Monstra (":path") et/ou les fichiers inclus, ont été trouvés accessible en écriture. Nous vous conseillons de supprimer toutes les permissions d\'écriture. <br/> Vous pouvez le faire sur les systèmes Unix avec: <code> chmod-R a-w :chemin </code>',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Le fichier ". Htaccess" a été trouvé accessible en écriture. Nous vous conseillons de supprimer toutes les permissions d\'écriture. <br/> Vous pouvez le faire sur les systèmes Unix avec: <code>chmod a-w :chemin</ code>',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Le fichier index.php de Monstra a été trouvé pour être accessible en écriture. Nous vous conseillons de supprimer toutes les permissions d\'écriture. <br/> Vous pouvez le faire sur les systèmes Unix avec: <code>chmod a-w :chemin </code>',
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
'En raison du type et de la quantité d\'informations se peut qu\'une erreur peut être des intrusions lorsque Core::$environment = Core::DEVELOPMENT, nous vous conseillons vivement la mise de Core::PRODUCTION dans les systèmes de production.',
'Monstra version' => 'Monstra version',
'Directory Permissions' => 'Directory Permissions',
'Directory' => 'Répertoire',
'Writable' => 'Accessible en écriture',
'Unwritable' => 'Pas accessible en écriture',
'Status' => 'Statut',
'PHP Built On' => 'PHP construit sur',
'Web Server' => 'Serveur Web',
'WebServer to PHP Interface' => 'Interface PHP du serveur web',
)
);

View File

@@ -1,40 +0,0 @@
<?php
return array(
'information' => array(
'Information' => 'Információk',
'Debugging' => 'Hibakeresés',
'Name' => 'Név',
'Value' => 'Érték',
'Security' => 'Biztonság',
'System' => 'Rendszer',
'on' => 'be',
'off'=> 'ki',
'Server' => 'Szerver',
'PHP version' => 'PHP verzió',
'SimpleXML module' => 'SimpleXML modul',
'DOM module' => 'DOM modul',
'Installed' => 'Telepítve',
'Not Installed' => 'Nincs Telepítve',
'Security check results' => 'Biztonsági ellenőrzés eredményei',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'A konfigurációs fájl írható. Azt javasoljuk, hogy távolítsa el az összes írási jogosultságot itt: defines.php.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'A Monstra core directory (":path") és/vagy fájlok írhatók. Azt javasoljuk, hogy távolítsa el az összes írási jogosultságot. <br/>Unix rendszeren: <code>chmod -R a-w :path</code>',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'A Monstra .htaccess fájl írható. Azt javasoljuk, hogy távolítsa el az összes írási jogosultságot. <br/>Unix rendszeren: <code>chmod a-w :path</code>',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'A Monstra index.php fájl írható. Azt javasoljuk, hogy távolítsa el az összes írási jogosultságot. <br/>Unix rendszeren: <code>chmod a-w :path</code>',
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.',
'Monstra version' => 'Monstra verzió',
'Directory Permissions' => 'Kategória Jogosultságok',
'Directory' => 'Kategória',
'Writable' => 'Írható',
'Unwritable' => 'Nem Írható',
'Status' => 'Státusz',
'PHP Built On' => 'PHP Built On',
'Web Server' => 'Web Szerver',
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
)
);

View File

@@ -1,40 +0,0 @@
<?php
return array(
'information' => array(
'Information' => 'Informácie',
'Debugging' => 'Ladenie',
'Name' => 'Názov',
'Value' => 'Hodnota',
'Security' => 'Bezpečnosť',
'System' => 'System',
'on' => 'zapnuté',
'off'=> 'vypnuté',
'Server' => 'Server',
'PHP version' => 'Verzia PHP',
'SimpleXML module' => 'Modul SimpleXML',
'DOM module' => 'Modul DOM',
'Installed' => 'Nainštalované',
'Not Installed' => 'Nenainštalované',
'Security check results' => 'Výsledky bezpečnostnej kontroly',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'Konfiguračný súbor je zapisovateľný. Odporúčame Vám odstrániť oprávnenie akéhokoľvek zápisu pre defines.php na produkčných systémoch.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'Základný Monstra priečinok (":path") a/alebo súbory sú zapisovateľné. Odporúčame Vám odstrániť oprávnenie akéhokoľvek zápisu. <br/>Na Unix systémoch prevediete opravu príkazom: <code>chmod -R a-w :path</code>',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Monstra .htaccess súbor je zapisovateľný. Odporúčame Vám odstrániť oprávnenie akéhokoľvek zápisu. <br/>Na Unix systémoch prevediete opravu príkazom: <code>chmod a-w :path</code>',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
'Monstra index.php súbor je zapisovateľný. Odporúčame Vám odstrániť oprávnenie akéhokoľvek zápisu. <br/>Na Unix systémoch prevediete opravu príkazom: <code>chmod a-w :path</code>',
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
'Vzhľadom na druh a množstvo informácií, chyby možno odhaliť nastavením: Core::$environment = Core::DEVELOPMENT, na produkčných systémoch dôrazne odporúčame nastaviť Core::PRODUCTION.',
'Monstra version' => 'Verzia Monstra',
'Directory Permissions' => 'Práva priečinkov',
'Directory' => 'Priečinok',
'Writable' => 'Zapisovateľný',
'Unwritable' => 'Nezapisovateľný',
'Status' => 'Status',
'PHP Built On' => 'PHP Built On',
'Web Server' => 'Web Server',
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
)
);

View File

@@ -9,7 +9,7 @@
'Security' => 'Sigurnost', 'Security' => 'Sigurnost',
'System' => 'Sistem', 'System' => 'Sistem',
'on' => 'uključeno', 'on' => 'uključeno',
'off'=> 'isključeno', 'off'=> 'isključeno',
'Server' => 'Server', 'Server' => 'Server',
'PHP version' => 'PHP Verzija', 'PHP version' => 'PHP Verzija',
'SimpleXML module' => 'SimpleXML modul', 'SimpleXML module' => 'SimpleXML modul',
@@ -17,9 +17,9 @@
'Installed' => 'Instalirano', 'Installed' => 'Instalirano',
'Not Installed' => 'Nije instalirano', 'Not Installed' => 'Nije instalirano',
'Security check results' => 'Sigurnosna provera rezultata', 'Security check results' => 'Sigurnosna provera rezultata',
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' => 'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
'Konfiguracioni fajl je nadjen da može biti upisan. Mi vas savetujemo da uklonite dozvole na fajlu defines.php ukoliko vam je svanični sajt.', 'Konfiguracioni fajl je nadjen da može biti upisan. Mi vas savetujemo da uklonite dozvole na fajlu defines.php ukoliko vam je svanični sajt.',
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' => 'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
'Monstra direktorijum je (":path") i/ili fajlovi unutar toga su nadjeni da mogu biti zapisani. Mi vas savetujemo da uklonite te dozvole zapisivanja. <br/>Na unix sistemima možete to uraditi sa: <code>chmod -R a-w :path</code>', 'Monstra direktorijum je (":path") i/ili fajlovi unutar toga su nadjeni da mogu biti zapisani. Mi vas savetujemo da uklonite te dozvole zapisivanja. <br/>Na unix sistemima možete to uraditi sa: <code>chmod -R a-w :path</code>',
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' => 'Monstra je .htaccess fajlu našla mogućnost upisivanja. Mi vas savetujemo da promenite te dozvole. <br/>Na unix sistemima možete to uraditi sa: <code>chmod a-w :path</code>', 'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' => 'Monstra je .htaccess fajlu našla mogućnost upisivanja. Mi vas savetujemo da promenite te dozvole. <br/>Na unix sistemima možete to uraditi sa: <code>chmod a-w :path</code>',
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' => 'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
@@ -36,4 +36,4 @@
'Web Server' => 'Web Server', 'Web Server' => 'Web Server',
'WebServer to PHP Interface' => 'WebServer to PHP Interface', 'WebServer to PHP Interface' => 'WebServer to PHP Interface',
) )
); );

View File

@@ -9,7 +9,7 @@
'Delete' => 'Löschen', 'Delete' => 'Löschen',
'Order' => 'Reihenfolge', 'Order' => 'Reihenfolge',
'Actions' => 'Aktionen', 'Actions' => 'Aktionen',
'Create New Item' => 'Erstellen neuen Eintrag', 'Create new item' => 'Erstellen neuen Eintrag',
'New item' => 'Neuer Eintrag', 'New item' => 'Neuer Eintrag',
'Item name' => 'Eintrags Name', 'Item name' => 'Eintrags Name',
'Item order' => 'Eintrags Reihenfolge', 'Item order' => 'Eintrags Reihenfolge',

View File

@@ -9,7 +9,7 @@
'Delete' => 'Delete', 'Delete' => 'Delete',
'Order' => 'Order', 'Order' => 'Order',
'Actions' => 'Actions', 'Actions' => 'Actions',
'Create New Item' => 'Create new item', 'Create new item' => 'Create new item',
'New item' => 'New item', 'New item' => 'New item',
'Item name' => 'Item name', 'Item name' => 'Item name',
'Item order' => 'Item order', 'Item order' => 'Item order',

View File

@@ -1,27 +0,0 @@
<?php
return array(
'menu' => array(
'Menu' => 'Menu',
'Menu Manager' => 'Administrar menu',
'Edit' => 'Editar',
'Name' => 'Nombre',
'Delete' => 'Borrar',
'Order' => 'Orden',
'Actions' => 'Acciones',
'Create New Item' => 'Crear nuevo item',
'New Item' => 'Nuevo item',
'Item name' => 'Nombre item',
'Item order' => 'Orden item',
'Item target' => 'target de item',
'Item link' => 'Enlace item',
'Item category' => 'categoría del item',
'Save' => 'Guardar',
'Edit Item' => 'Editar item',
'Delete Item :name' => 'Borrar item :name',
'Select page' => 'Seleccionar pagina',
'Category' => 'Categoria',
'Select category' => 'Seleccionar categoria',
'Required Field' => 'Dato requerido',
)
);

View File

@@ -1,27 +0,0 @@
<?php
return array(
'menu' => array(
'Menu' => 'منو',
'Menu manager' => 'مدیریت منو',
'Edit' => 'ویرایش',
'Name' => 'نام',
'Delete' => 'حذف',
'Order' => 'ترتیب',
'Actions' => 'عملیات',
'Create New Item' => 'ایجاد آیتم جدید',
'New item' => 'آیتم جدید',
'Item name' => 'نام آیتم',
'Item order' => 'ترتیب آیتم',
'Item target' => 'هدف آیتم',
'Item link' => 'لینک آیتم',
'Item category' => 'مجموعه آیتم',
'Save' => 'ذخیره',
'Edit item' => 'ویرایش آیتم',
'Delete item :name' => 'حذف آیتم :name',
'Select page' => 'انتخاب صفحه',
'Category' => 'مجموعه',
'Select category' => 'انتخاب مجموعه',
'Required field' => 'کادر الزامی',
)
);

View File

@@ -1,27 +0,0 @@
<?php
return array(
'menu' => array(
'Menu' => 'Menu',
'Menu manager' => 'Gestionnaire du menu',
'Edit' => 'Editer',
'Name' => 'Nom',
'Delete' => 'Supprimer',
'Order' => 'Ordre',
'Actions' => 'Actions',
'Create new item' => 'Créer un nouvel item',
'New item' => 'Nouveau item',
'Item name' => 'Nom de l\'item',
'Item order' => 'Ordre de l\'item',
'Item target' => 'Cible de l\'item',
'Item link' => 'Lien de l\'item',
'Item category' => 'Catégorie de l\'item',
'Save' => 'Enregistrer',
'Edit item' => 'Editer l\'item',
'Delete item :name' => 'Supprimer l\'item :name',
'Select page' => 'Sélectionner la page',
'Category' => 'Catégorie',
'Select category' => 'Sélectionner une catégorie',
'Required field' => 'Champ requis',
)
);

View File

@@ -1,27 +0,0 @@
<?php
return array(
'menu' => array(
'Menu' => 'Menü',
'Menu manager' => 'Menükezelő',
'Edit' => 'Szerkeszt',
'Name' => 'Név',
'Delete' => 'Töröl',
'Order' => 'Rendezés',
'Actions' => 'Műveletek',
'Create New Item' => 'Új menü készítése',
'New item' => 'Új menü',
'Item name' => 'Menü neve',
'Item order' => 'Menü rendezés',
'Item target' => 'Menü célpont',
'Item link' => 'Menü link',
'Item category' => 'Menü kategória',
'Save' => 'Mentés',
'Edit item' => 'Menü szerkesztése',
'Delete item :name' => 'Menü törlése :name',
'Select page' => 'Válassza ki az oldalt',
'Category' => 'Kategória',
'Select category' => 'Válassza ki a kategóriát',
'Required field' => 'Kötelező mező',
)
);

View File

@@ -9,7 +9,7 @@
'Delete' => 'Elimina', 'Delete' => 'Elimina',
'Order' => 'Ordine', 'Order' => 'Ordine',
'Actions' => 'Azioni', 'Actions' => 'Azioni',
'Create New Item' => 'Crea nuova voce', 'Create new item' => 'Crea nuova voce',
'New item' => 'Nuova voce', 'New item' => 'Nuova voce',
'Item name' => 'Nome', 'Item name' => 'Nome',
'Item order' => 'Ordine', 'Item order' => 'Ordine',

View File

@@ -9,7 +9,7 @@
'Delete' => 'Trinti', 'Delete' => 'Trinti',
'Order' => 'Eiliškumas', 'Order' => 'Eiliškumas',
'Actions' => 'Veiksmai', 'Actions' => 'Veiksmai',
'Create New Item' => 'Sukurti naują nuorodą', 'Create new item' => 'Sukurti naują nuorodą',
'New item' => 'Nauja nuoroda', 'New item' => 'Nauja nuoroda',
'Item name' => 'Pavadinimas', 'Item name' => 'Pavadinimas',
'Item order' => 'Eiliškumas', 'Item order' => 'Eiliškumas',

View File

@@ -9,7 +9,7 @@
'Delete' => 'Deletar', 'Delete' => 'Deletar',
'Order' => 'Ordem', 'Order' => 'Ordem',
'Actions' => 'Ações', 'Actions' => 'Ações',
'Create New Item' => 'Criar novo item', 'Create new item' => 'Criar novo item',
'New item' => 'Novo item', 'New item' => 'Novo item',
'Item name' => 'Nome do item', 'Item name' => 'Nome do item',
'Item order' => 'ordem do item', 'Item order' => 'ordem do item',

View File

@@ -9,7 +9,7 @@
'Delete' => 'Удалить', 'Delete' => 'Удалить',
'Order' => 'Порядок', 'Order' => 'Порядок',
'Actions' => 'Действия', 'Actions' => 'Действия',
'Create New Item' => 'Создать новый пункт меню', 'Create new item' => 'Создать новый пункт меню',
'New item' => 'Новый пункт меню', 'New item' => 'Новый пункт меню',
'Item name' => 'Название', 'Item name' => 'Название',
'Item order' => 'Порядок', 'Item order' => 'Порядок',

View File

@@ -1,27 +0,0 @@
<?php
return array(
'menu' => array(
'Menu' => 'Menu',
'Menu manager' => 'Manažér menu',
'Edit' => 'Editovať',
'Name' => 'Názov',
'Delete' => 'Vymazať',
'Order' => 'Poradie',
'Actions' => 'Akcie',
'Create New Item' => 'Vytvoriť novú položku',
'New item' => 'Nová položka',
'Item name' => 'Názov položky',
'Item order' => 'Poradie položky',
'Item target' => 'Cieľ položky',
'Item link' => 'Odkaz položky',
'Item category' => 'Kategória položky',
'Save' => 'Uložiť',
'Edit item' => 'Editovať položku',
'Delete item :name' => 'Vymazať položku :name',
'Select page' => 'Vybrať stránku',
'Category' => 'Kategória',
'Select category' => 'Vybrať kategóriu',
'Required field' => 'Povinné políčko',
)
);

View File

@@ -2,7 +2,7 @@
return array( return array(
'menu' => array( 'menu' => array(
'Menu' => 'Menu', 'Menu' => 'Menu',
'Menu manager' => 'Menu menadžer', 'Menu manager' => 'Menu menadžer',
'Edit' => 'Izmeni', 'Edit' => 'Izmeni',
'Name' => 'Ime', 'Name' => 'Ime',
@@ -24,4 +24,4 @@
'Select category' => 'Odaberi kategoriju', 'Select category' => 'Odaberi kategoriju',
'Required field' => 'Polje je potrebno', 'Required field' => 'Polje je potrebno',
) )
); );

View File

@@ -9,7 +9,7 @@
'Delete' => 'Видалити', 'Delete' => 'Видалити',
'Order' => 'Порядок', 'Order' => 'Порядок',
'Actions' => 'Дії', 'Actions' => 'Дії',
'Create New Item' => 'Створити новий пункт меню', 'Create new item' => 'Створити новий пункт меню',
'New item' => 'Новий пункт меню', 'New item' => 'Новий пункт меню',
'Item name' => 'Назва', 'Item name' => 'Назва',
'Item order' => 'Порядок', 'Item order' => 'Порядок',

Some files were not shown because too many files have changed in this diff Show More