improves in User interface responsive and dictionary updates

This commit is contained in:
Diego Najar 2018-08-19 17:45:49 +02:00
parent 49dc45a90b
commit a3df822c65
43 changed files with 221 additions and 148 deletions

View File

@ -19,6 +19,16 @@ body {
} }
} }
/* for small devices */
@media (max-width: 575.98px) {
#jsmediaManagerButton,
#jscategoryButton,
#jsdescriptionButton {
width: 100%;
text-align: left;
}
}
a { a {
color: #4a90e2; color: #4a90e2;
} }

View File

@ -22,14 +22,14 @@ $numberOfPages = count($listOfFilesByPage);
<!-- <!--
UPLOAD INPUT UPLOAD INPUT
--> -->
<h3 class="mt-2 mb-3">Upload</h3> <h3 class="mt-2 mb-3"><?php $L->p('Upload'); ?></h3>
<!-- Form and Input file --> <!-- Form and Input file -->
<form name="bluditFormUpload" id="jsbluditFormUpload" enctype="multipart/form-data"> <form name="bluditFormUpload" id="jsbluditFormUpload" enctype="multipart/form-data">
<input type="hidden" name="tokenCSRF" value="<?php echo $security->getTokenCSRF() ?>"> <input type="hidden" name="tokenCSRF" value="<?php echo $security->getTokenCSRF() ?>">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" id="jsbluditInputFiles" name="bluditInputFiles[]" multiple> <input type="file" class="custom-file-input" id="jsbluditInputFiles" name="bluditInputFiles[]" multiple>
<label class="custom-file-label" for="jsbluditInputFiles">Choose images</label> <label class="custom-file-label" for="jsbluditInputFiles"><?php $L->p('Choose images to upload'); ?></label>
</div> </div>
</form> </form>
@ -41,12 +41,12 @@ $numberOfPages = count($listOfFilesByPage);
<!-- <!--
MANAGER MANAGER
--> -->
<h3 class="mt-4 mb-3">Manage</h3> <h3 class="mt-4 mb-3"><?php $L->p('Manage'); ?></h3>
<!-- Table for list files --> <!-- Table for list files -->
<table id="jsbluditMediaTable" class="table"> <table id="jsbluditMediaTable" class="table">
<tr> <tr>
<td>There are not images.</td> <td><?php $L->p('There are no images'); ?></td>
</tr> </tr>
</table> </table>
@ -96,9 +96,9 @@ function displayFiles(files) {
'<td class="information">'+ '<td class="information">'+
'<div class="pb-2">'+filename+'<\/div>'+ '<div class="pb-2">'+filename+'<\/div>'+
'<div>'+ '<div>'+
'<button onClick="editorInsertMedia(\''+filename+'\'); closeMediaManager();" type="button" class="btn btn-primary btn-sm mr-2">Insert<\/button>'+ '<button type="button" class="btn btn-primary btn-sm mr-2" onClick="editorInsertMedia(\''+filename+'\'); closeMediaManager();"><?php $L->p('Insert') ?><\/button>'+
'<button onClick="setCoverImage(\''+filename+'\'); closeMediaManager();" type="button" class="btn btn-primary btn-sm mr-2">Set as cover image<\/button>'+ '<button type="button" class="btn btn-primary btn-sm" onClick="setCoverImage(\''+filename+'\'); closeMediaManager();"><?php $L->p('Set as cover image') ?><\/button>'+
'<button onClick="deleteMedia(\''+filename+'\')" type="button" class="btn btn-sm float-right">Delete<\/button>'+ '<button type="button" class="btn btn-secondary btn-sm float-right" onClick="deleteMedia(\''+filename+'\')"><?php $L->p('Delete') ?><\/button>'+
'<\/div>'+ '<\/div>'+
'<\/td>'+ '<\/td>'+
'<\/tr>'; '<\/tr>';

View File

@ -1,34 +1,54 @@
<nav class="navbar navbar-light bg-light d-block d-lg-none"> <nav class="navbar navbar-expand-md navbar-dark bg-dark text-uppercase d-block d-md-none">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <div class="container">
<span class="navbar-brand">
<?php echo (defined('BLUDIT_PRO'))?'BLUDIT PRO':'BLUDIT' ?></span>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<a class="navbar-brand" href="#"><?php echo (defined('BLUDIT_PRO'))?'BLUDIT PRO':'BLUDIT' ?></a>
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>"><?php $L->p('Dashboard') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>">
<?php $L->p('Dashboard') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>"><?php $L->p('New content') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ROOT ?>">
<?php $L->p('Website') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><?php $L->p('Content') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>">
<?php $L->p('New content') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Categories') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>">
<?php $L->p('Content') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>">
<?php $L->p('Categories') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'settings' ?>"><?php $L->p('Settings') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>">
<?php $L->p('Users') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>"><?php $L->p('Plugins') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'settings' ?>">
<?php $L->p('Site') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>"><?php $L->p('Themes') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>">
<?php $L->p('Plugins') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>">
<?php $L->p('Themes') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>">
<?php $L->p('About') ?></a>
</li> </li>
</ul> </ul>
</div> </div>
</div>
</nav> </nav>

View File

@ -67,7 +67,7 @@
</div> </div>
<!-- RIGHT MAIN --> <!-- RIGHT MAIN -->
<div class="col-lg-10 pt-4"> <div class="col-lg-10 pt-3">
<?php <?php
if (Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php')) { if (Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php')) {
include(PATH_ADMIN_VIEWS.$layout['view'].'.php'); include(PATH_ADMIN_VIEWS.$layout['view'].'.php');

View File

@ -1,6 +1,6 @@
<div id="dashboard" class="container mt-3"> <div id="dashboard" class="container">
<div class="row"> <div class="row">
<div class="col-md-7"> <div class="col-md-7 d-none d-sm-block">
<!-- Quick Links --> <!-- Quick Links -->
<div class="container border-bottom pb-4"> <div class="container border-bottom pb-4">

View File

@ -28,7 +28,7 @@ echo Bootstrap::formOpen(array());
</div> </div>
<div class="form-group mt-4"> <div class="form-group mt-4">
<button type="submit" class="btn btn-primary mr-2 w-100 text-" name="save">'.$L->g('Login').'</button> <button type="submit" class="btn btn-primary btn-lg mr-2 w-100" name="save">'.$L->g('Login').'</button>
</div> </div>
'; ';

View File

@ -62,10 +62,10 @@
<input value="" class="form-control form-control-lg rounded-0 " id="jstitle" name="title" placeholder="<?php $L->p('Enter title') ?>" type="text"> <input value="" class="form-control form-control-lg rounded-0 " id="jstitle" name="title" placeholder="<?php $L->p('Enter title') ?>" type="text">
</div> </div>
<div class="form-group m-0 mt-1"> <div class="form-group m-0">
<button id="jsmediaManagerButton" type="button" class="btn btn-form btn-sm" data-toggle="modal" data-target="#jsbluditMediaModal"><span class="oi oi-image"></span> <?php $L->p('Media Manager') ?></button> <button id="jsmediaManagerButton" type="button" class="mt-1 btn btn-form btn-sm d-block d-sm-inline d-sm-none" data-toggle="modal" data-target="#jsbluditMediaModal"><span class="oi oi-image"></span> <?php $L->p('Media Manager') ?></button>
<button id="jscategoryButton" type="button" class="btn btn-form btn-sm" data-toggle="modal" data-target="#jscategoryModal"><span class="oi oi-tag"></span> <?php $L->p('Category') ?>: <span class="option">-</span></button> <button id="jscategoryButton" type="button" class="mt-1 btn btn-form btn-sm" data-toggle="modal" data-target="#jscategoryModal"><span class="oi oi-tag"></span> <?php $L->p('Category') ?>: <span class="option">-</span></button>
<button id="jsdescriptionButton" type="button" class="btn btn-form btn-sm" data-toggle="modal" data-target="#jsdescriptionModal"><span class="oi oi-tag"></span> <?php $L->p('Description') ?>: <span class="option">-</span></button> <button id="jsdescriptionButton" type="button" class="mt-1 btn btn-form btn-sm" data-toggle="modal" data-target="#jsdescriptionModal"><span class="oi oi-tag"></span> <?php $L->p('Description') ?>: <span class="option">-</span></button>
</div> </div>
<div class="form-group mt-1"> <div class="form-group mt-1">
@ -176,8 +176,6 @@
'tip'=>$L->g('Write a template name to filter the page in the theme and change the style of the page.') 'tip'=>$L->g('Write a template name to filter the page in the theme and change the style of the page.')
)); ));
echo Bootstrap::formTitle(array('title'=>$L->g('SEO')));
// Tags // Tags
echo Bootstrap::formInputText(array( echo Bootstrap::formInputText(array(
'name'=>'tags', 'name'=>'tags',
@ -186,6 +184,8 @@
'tip'=>$L->g('Write the tags separated by comma') 'tip'=>$L->g('Write the tags separated by comma')
)); ));
echo Bootstrap::formTitle(array('title'=>$L->g('SEO')));
// Friendly URL // Friendly URL
echo Bootstrap::formInputText(array( echo Bootstrap::formInputText(array(
'name'=>'slug', 'name'=>'slug',

View File

@ -7,7 +7,7 @@ echo Bootstrap::pageTitle(array('title'=>$L->g('Settings'), 'icon'=>'cog'));
<!-- TABS --> <!-- TABS -->
<ul class="nav nav-tabs" id="dynamicTab" role="tablist"> <ul class="nav nav-tabs" id="dynamicTab" role="tablist">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" id="general-tab" data-toggle="tab" href="#general" role="tab" aria-controls="general" aria-selected="true"><?php $L->p('General') ?></a> <a class="nav-link active" id="general-tab" data-toggle="tab" href="#general" role="tab" aria-controls="general" aria-selected="true"><?php $L->p('Site') ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link " id="advanced-tab" data-toggle="tab" href="#advanced" role="tab" aria-controls="advanced" aria-selected="false"><?php $L->p('Advanced') ?></a> <a class="nav-link " id="advanced-tab" data-toggle="tab" href="#advanced" role="tab" aria-controls="advanced" aria-selected="false"><?php $L->p('Advanced') ?></a>

View File

@ -47,7 +47,7 @@ echo Bootstrap::formOpen(array());
echo ' echo '
<div class="form-group mt-4"> <div class="form-group mt-4">
<button type="submit" class="btn btn-primary mr-2" name="save">'.$L->g('Save').'</button> <button type="submit" class="btn btn-primary mr-2" name="save">'.$L->g('Save').'</button>
<a class="btn btn-secondary" href="'.HTML_PATH_ADMIN_ROOT.'users" role="button">'.$L->g('Cancel').'</a> <a class="btn btn-secondary" href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$user->username().'" role="button">'.$L->g('Cancel').'</a>
</div> </div>
'; ';

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -350,5 +350,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -351,5 +351,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,8 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert",
"upload": "Upload"
} }

View File

@ -338,11 +338,13 @@
"tag": "Etiqueta", "tag": "Etiqueta",
"drag-and-drop-to-sort-the-plugins": "Arrastrar y soltar para ordenar los plugins.", "drag-and-drop-to-sort-the-plugins": "Arrastrar y soltar para ordenar los plugins.",
"seo": "SEO", "seo": "SEO",
"documentation": "Documentation", "documentation": "Documentación",
"forum-support": "Forum support", "forum-support": "Foro",
"chat-support": "Chat support", "chat-support": "Chat",
"quick-links": "Enlaces rápidos", "quick-links": "Enlaces rápidos",
"leave-empty-for-autocomplete-by-bludit": "Deje vacío para ser autocompletado por Bludit.", "leave-empty-for-autocomplete-by-bludit": "Deje vacío para ser autocompletado por Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Elija una contraseña para el usuario <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Acceso denegado",
"choose-images-to-upload": "Elige imágenes para subir",
"insert": "Insertar"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Na skróty", "quick-links": "Na skróty",
"leave-empty-for-autocomplete-by-bludit": "Bludit automatycznie uzupełni to pole, jeśli pozostawisz je puste.", "leave-empty-for-autocomplete-by-bludit": "Bludit automatycznie uzupełni to pole, jeśli pozostawisz je puste.",
"choose-a-password-for-the-user-admin": "Wybierz hasło dla użytkownika <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Wybierz hasło dla użytkownika <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -341,5 +341,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -345,5 +345,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -344,5 +344,7 @@
"quick-links": "Quick links", "quick-links": "Quick links",
"leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.", "leave-empty-for-autocomplete-by-bludit": "Leave empty for autocomplete by Bludit.",
"choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>", "choose-a-password-for-the-user-admin": "Choose a password for the user <code>admin<\/code>",
"access-denied": "Access denied" "access-denied": "Access denied",
"choose-images-to-upload": "Choose images to upload",
"insert": "Insert"
} }

View File

@ -164,7 +164,7 @@ EOF;
if (empty($lines)) { if (empty($lines)) {
return 0; return 0;
} }
$login = new Login();
$tmp = array(); $tmp = array();
foreach ($lines as $line) { foreach ($lines as $line) {
$data = json_decode($line); $data = json_decode($line);

View File

@ -2,7 +2,7 @@
"author": "TinyMCE", "author": "TinyMCE",
"email": "", "email": "",
"website": "https://www.tinymce.com", "website": "https://www.tinymce.com",
"version": "4.8.0", "version": "4.8.2",
"releaseDate": "2018-07-11", "releaseDate": "2018-07-11",
"license": "GPL v2", "license": "GPL v2",
"compatible": "3.0", "compatible": "3.0",

View File

@ -12,6 +12,7 @@ class pluginTinymce extends Plugin {
$this->dbFields = array( $this->dbFields = array(
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code', 'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code',
'toolbar2'=>'', 'toolbar2'=>'',
'mobileToolbar'=>'bold italic bullist formatselect',
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern' 'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
); );
} }
@ -30,6 +31,11 @@ class pluginTinymce extends Plugin {
$html .= '<input name="toolbar2" id="jstoolbar2" type="text" value="'.$this->getValue('toolbar2').'">'; $html .= '<input name="toolbar2" id="jstoolbar2" type="text" value="'.$this->getValue('toolbar2').'">';
$html .= '</div>'; $html .= '</div>';
$html .= '<div>';
$html .= '<label>'.$L->get('Mobile toolbar').'</label>';
$html .= '<input name="mobileToolbar" id="jsmobileToolbar" type="text" value="'.$this->getValue('mobileToolbar').'">';
$html .= '</div>';
$html .= '<div>'; $html .= '<div>';
$html .= '<label>'.$L->get('Plugins').'</label>'; $html .= '<label>'.$L->get('Plugins').'</label>';
$html .= '<input name="plugins" id="jsplugins" type="text" value="'.$this->getValue('plugins').'">'; $html .= '<input name="plugins" id="jsplugins" type="text" value="'.$this->getValue('plugins').'">';
@ -49,14 +55,23 @@ class pluginTinymce extends Plugin {
public function adminBodyEnd() public function adminBodyEnd()
{ {
global $L;
if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) { if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) {
return false; return false;
} }
global $L; // Detect if the user is browsing in a mobile
if ($this->isMobile()) {
$toolbar1 = $this->getValue('mobileToolbar');
$toolbar2 = '';
$min_height = '320';
} else {
$toolbar1 = $this->getValue('toolbar1'); $toolbar1 = $this->getValue('toolbar1');
$toolbar2 = $this->getValue('toolbar2'); $toolbar2 = $this->getValue('toolbar2');
$min_height = '500';
}
$plugins = $this->getValue('plugins'); $plugins = $this->getValue('plugins');
$lang = 'en'; $lang = 'en';
@ -87,7 +102,7 @@ tinymce.init({
selector: "#jseditor", selector: "#jseditor",
theme: "modern", theme: "modern",
skin: "bludit", skin: "bludit",
min_height: 500, min_height: $min_height,
max_height: 1000, max_height: 1000,
element_format : "html", element_format : "html",
entity_encoding : "raw", entity_encoding : "raw",
@ -112,4 +127,8 @@ tinymce.init({
EOF; EOF;
return $script; return $script;
} }
private function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,61 +17,29 @@
<?php endforeach ?> <?php endforeach ?>
<!-- Social Networks --> <!-- Social Networks -->
<?php if ($site->github()): ?> <?php
<li class="nav-item"> $socialNetworks = array(
<a class="nav-link" href="<?php echo $site->github(); ?>" target="_blank"> // Key => Label
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/github.svg' ?>" alt="github icon" /> 'github'=>'Github',
</a> 'twitter'=>'Twitter',
</li> 'facebook'=>'Facebook',
<?php endif ?> 'googleplus'=>'Google Plus',
'instagram'=>'Instagram',
'codepen'=>'Codepen',
'linkedin'=>'Linkedin'
);
?>
<?php if ($site->twitter()): ?> <?php foreach ($socialNetworks as $key=>$label): ?>
<?php if ($site->{$key}()): ?>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $site->twitter(); ?>" target="_blank"> <a class="nav-link" href="<?php echo $site->{$key}(); ?>" target="_blank">
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/twitter.svg' ?>" alt="twitter icon" /> <img class="d-none d-sm-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="icon" />
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
</a> </a>
</li> </li>
<?php endif ?> <?php endif; ?>
<?php endforeach; ?>
<?php if ($site->facebook()): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $site->facebook(); ?>" target="_blank">
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/facebook.svg' ?>" alt="facebook icon" />
</a>
</li>
<?php endif ?>
<?php if ($site->googleplus()): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $site->googleplus(); ?>" target="_blank">
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/googleplus.svg' ?>" alt="googleplus icon" />
</a>
</li>
<?php endif ?>
<?php if ($site->instagram()): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $site->instagram(); ?>" target="_blank">
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/instagram.svg' ?>" alt="instgram icon" />
</a>
</li>
<?php endif ?>
<?php if ($site->codepen()): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $site->codepen(); ?>" target="_blank">
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/codepen.svg' ?>" alt="codepen icon" />
</a>
</li>
<?php endif ?>
<?php if ($site->linkedin()): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $site->linkedin(); ?>" target="_blank">
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/linkedin.svg' ?>" alt="linkedin icon" />
</a>
</li>
<?php endif ?>
</ul> </ul>
</div> </div>

View File

@ -499,6 +499,7 @@ function install($adminPassword, $timezone)
'position'=>1, 'position'=>1,
'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code', 'toolbar1'=>'formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link pagebreak image removeformat code',
'toolbar2'=>'', 'toolbar2'=>'',
'mobileToolbar'=>'bold italic bullist formatselect',
'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern' 'plugins'=>'code autolink image link pagebreak advlist lists textcolor colorpicker textpattern'
), ),
JSON_PRETTY_PRINT), JSON_PRETTY_PRINT),
@ -605,7 +606,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
<div id="jsshowPassword" style="cursor: pointer;" class="text-center pt-0 text-muted"><?php $L->p('Show password') ?></div> <div id="jsshowPassword" style="cursor: pointer;" class="text-center pt-0 text-muted"><?php $L->p('Show password') ?></div>
<div class="form-group mt-4"> <div class="form-group mt-4">
<button type="submit" class="btn btn-primary mr-2 w-100" name="install"><?php $L->p('Install') ?></button> <button type="submit" class="btn btn-primary btn-lg mr-2 w-100" name="install"><?php $L->p('Install') ?></button>
</div> </div>
</form> </form>
<?php <?php
@ -625,7 +626,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
</select> </select>
<div class="form-group mt-4"> <div class="form-group mt-4">
<button type="submit" class="btn btn-primary mr-2 w-100"><?php $L->p('Next') ?></button> <button type="submit" class="btn btn-primary btn-lg mr-2 w-100"><?php $L->p('Next') ?></button>
</div> </div>
</form> </form>
<?php <?php