Bug fixes, and dictionary updated
This commit is contained in:
parent
91782166fb
commit
7df5ee322e
|
@ -19,21 +19,25 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
unset($_POST['role']);
|
unset($_POST['role']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST['deleteUserAndDeleteContent'])) {
|
if (isset($_POST['deleteUserAndDeleteContent']) && ($login->role()==='admin')) {
|
||||||
$_POST['deleteContent'] = true;
|
$_POST['deleteContent'] = true;
|
||||||
deleteUser($_POST);
|
deleteUser($_POST);
|
||||||
} elseif (isset($_POST['deleteUserAndKeepContent'])) {
|
} elseif (isset($_POST['deleteUserAndKeepContent']) && ($login->role()==='admin')) {
|
||||||
$_POST['deleteContent'] = false;
|
$_POST['deleteContent'] = false;
|
||||||
deleteUser($_POST);
|
deleteUser($_POST);
|
||||||
} elseif (isset($_POST['disableUser'])) {
|
} elseif (isset($_POST['disableUser']) && ($login->role()==='admin')) {
|
||||||
disableUser(array('username'=>$_POST['username']));
|
disableUser(array('username'=>$_POST['username']));
|
||||||
} else {
|
} else {
|
||||||
editUser($_POST);
|
editUser($_POST);
|
||||||
}
|
}
|
||||||
|
|
||||||
Alert::set($L->g('The changes have been saved'));
|
Alert::set($L->g('The changes have been saved'));
|
||||||
|
|
||||||
|
if ($login->role()==='admin') {
|
||||||
Redirect::page('users');
|
Redirect::page('users');
|
||||||
}
|
}
|
||||||
|
Redirect::page('edit-user/'.$login->username());
|
||||||
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// Main after POST
|
// Main after POST
|
||||||
|
|
|
@ -21,20 +21,10 @@ checkRole(array('admin'));
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// Main after POST
|
// Main after POST
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
$themeDirname = $layout['parameters'];
|
$themeDirectory = $layout['parameters'];
|
||||||
|
|
||||||
if (Sanitize::pathFile(PATH_THEMES.$themeDirname)) {
|
// Activate theme
|
||||||
$site->set(array('theme'=>$themeDirname));
|
activateTheme($themeDirectory);
|
||||||
|
|
||||||
// Add to syslog
|
|
||||||
$syslog->add(array(
|
|
||||||
'dictionaryKey'=>'new-theme-configured',
|
|
||||||
'notes'=>$themeDirname
|
|
||||||
));
|
|
||||||
|
|
||||||
// Create an alert
|
|
||||||
Alert::set( $L->g('The changes have been saved') );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Redirect
|
// Redirect
|
||||||
Redirect::page('themes');
|
Redirect::page('themes');
|
||||||
|
|
|
@ -20,8 +20,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
'newPassword'=>$_POST['newPassword'],
|
'newPassword'=>$_POST['newPassword'],
|
||||||
'confirmPassword'=>$_POST['confirmPassword']
|
'confirmPassword'=>$_POST['confirmPassword']
|
||||||
))) {
|
))) {
|
||||||
|
if ($login->role()==='admin') {
|
||||||
Redirect::page('users');
|
Redirect::page('users');
|
||||||
}
|
}
|
||||||
|
Redirect::page('edit-user/'.$login->username());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
|
@ -319,3 +319,9 @@ td.child {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img.profilePicture {
|
||||||
|
width: 30px;
|
||||||
|
border-radius: 30px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
|
@ -17,10 +17,13 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php if (checkRole(array('editor'),false)): ?>
|
<?php if (checkRole(array('editor'),false)): ?>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><span class="oi oi-layers"></span><?php $L->p('Content') ?></a>
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><span class="oi oi-layers"></span><?php $L->p('Content') ?></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$login->username() ?>"><span class="oi oi-person"></span><?php $L->p('Profile') ?></a>
|
||||||
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if (checkRole(array('admin'),false)): ?>
|
<?php if (checkRole(array('admin'),false)): ?>
|
||||||
|
|
|
@ -1,9 +1,19 @@
|
||||||
<?php defined('BLUDIT') or die('Bludit CMS.');
|
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
|
||||||
|
|
||||||
echo Bootstrap::pageTitle(array('title'=>$plugin->name(), 'icon'=>'wrench'));
|
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'plugin-form')); ?>
|
||||||
|
|
||||||
echo Bootstrap::formOpen(array('class'=>'plugin-form'));
|
<div class="align-middle">
|
||||||
|
<?php if ($plugin->formButtons()): ?>
|
||||||
|
<div class="float-right mt-1">
|
||||||
|
<button type="submit" class="btn btn-primary btn-sm" name="save"><?php $L->p('Save') ?></button>
|
||||||
|
<a class="btn btn-secondary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>" role="button"><?php $L->p('Cancel') ?></a>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo Bootstrap::pageTitle(array('title'=>$plugin->name(), 'icon'=>'cog')); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// Token CSRF
|
||||||
echo Bootstrap::formInputHidden(array(
|
echo Bootstrap::formInputHidden(array(
|
||||||
'name'=>'tokenCSRF',
|
'name'=>'tokenCSRF',
|
||||||
'value'=>$security->getTokenCSRF()
|
'value'=>$security->getTokenCSRF()
|
||||||
|
@ -11,14 +21,6 @@ echo Bootstrap::formOpen(array('class'=>'plugin-form'));
|
||||||
|
|
||||||
// Print the plugin form
|
// Print the plugin form
|
||||||
echo $plugin->form();
|
echo $plugin->form();
|
||||||
|
?>
|
||||||
|
|
||||||
if ($plugin->formButtons()) {
|
<?php echo Bootstrap::formClose(); ?>
|
||||||
echo '
|
|
||||||
<div class="form-group mt-4">
|
|
||||||
<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.'plugins" role="button">'.$L->g('Cancel').'</a>
|
|
||||||
</div>
|
|
||||||
';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo Bootstrap::formClose();
|
|
|
@ -239,7 +239,7 @@ function table($type) {
|
||||||
<?php
|
<?php
|
||||||
echo Bootstrap::modal(array(
|
echo Bootstrap::modal(array(
|
||||||
'buttonPrimary'=>$L->g('Delete'),
|
'buttonPrimary'=>$L->g('Delete'),
|
||||||
'buttonPrimaryClass'=>'btn-danger jsbuttonDeleteAccept',
|
'buttonPrimaryClass'=>'btn-danger deletePageModalAcceptButton',
|
||||||
'buttonSecondary'=>$L->g('Cancel'),
|
'buttonSecondary'=>$L->g('Cancel'),
|
||||||
'buttonSecondaryClass'=>'btn-secondary',
|
'buttonSecondaryClass'=>'btn-secondary',
|
||||||
'modalTitle'=>$L->g('Delete content'),
|
'modalTitle'=>$L->g('Delete content'),
|
||||||
|
|
|
@ -238,7 +238,7 @@ echo Bootstrap::formOpen(array(
|
||||||
'name'=>'',
|
'name'=>'',
|
||||||
'label'=>$L->g('Author'),
|
'label'=>$L->g('Author'),
|
||||||
'placeholder'=>'',
|
'placeholder'=>'',
|
||||||
'value'=>$login->username(),
|
'value'=>$page->username(),
|
||||||
'tip'=>'',
|
'tip'=>'',
|
||||||
'disabled'=>true
|
'disabled'=>true
|
||||||
));
|
));
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
<!-- TABS -->
|
<!-- TABS -->
|
||||||
<nav class="mb-3">
|
<nav class="mb-3">
|
||||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||||
<a class="nav-item nav-link active" id="nav-profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
|
<a class="nav-item nav-link active" id="nav-profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="nav-profile" aria-selected="false"><?php $L->p('Profile') ?></a>
|
||||||
<a class="nav-item nav-link" id="nav-picture-tab" data-toggle="tab" href="#picture" role="tab" aria-controls="nav-picture" aria-selected="false">Profile picture</a>
|
<a class="nav-item nav-link" id="nav-picture-tab" data-toggle="tab" href="#picture" role="tab" aria-controls="nav-picture" aria-selected="false"><?php $L->p('Profile picture') ?></a>
|
||||||
<a class="nav-item nav-link" id="nav-security-tab" data-toggle="tab" href="#security" role="tab" aria-controls="nav-security" aria-selected="false">Security</a>
|
<a class="nav-item nav-link" id="nav-security-tab" data-toggle="tab" href="#security" role="tab" aria-controls="nav-security" aria-selected="false"><?php $L->p('Security') ?></a>
|
||||||
<a class="nav-item nav-link" id="nav-social-tab" data-toggle="tab" href="#social" role="tab" aria-controls="nav-social" aria-selected="false">Social Networks</a>
|
<a class="nav-item nav-link" id="nav-social-tab" data-toggle="tab" href="#social" role="tab" aria-controls="nav-social" aria-selected="false"><?php $L->p('Social Networks') ?></a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
@ -149,6 +149,7 @@
|
||||||
'tip'=>$L->g('this-token-is-similar-to-a-password-it-should-not-be-shared')
|
'tip'=>$L->g('this-token-is-similar-to-a-password-it-should-not-be-shared')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if (checkRole(array('admin'),false)) {
|
||||||
echo Bootstrap::formTitle(array('title'=>$L->g('Status')));
|
echo Bootstrap::formTitle(array('title'=>$L->g('Status')));
|
||||||
|
|
||||||
echo Bootstrap::formInputText(array(
|
echo Bootstrap::formInputText(array(
|
||||||
|
@ -172,6 +173,7 @@
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,7 @@ echo '
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="border-bottom-0" scope="col">'.$L->g('Username').'</th>
|
<th class="border-bottom-0" scope="col">'.$L->g('Username').'</th>
|
||||||
<th class="border-bottom-0 d-none d-lg-table-cell" scope="col">'.$L->g('First name').'</th>
|
<th class="border-bottom-0 d-none d-lg-table-cell" scope="col">'.$L->g('Nickname').'</th>
|
||||||
<th class="border-bottom-0 d-none d-lg-table-cell" scope="col">'.$L->g('Last name').'</th>
|
|
||||||
<th class="border-bottom-0" scope="col">'.$L->g('Email').'</th>
|
<th class="border-bottom-0" scope="col">'.$L->g('Email').'</th>
|
||||||
<th class="border-bottom-0" scope="col">'.$L->g('Status').'</th>
|
<th class="border-bottom-0" scope="col">'.$L->g('Status').'</th>
|
||||||
<th class="border-bottom-0" scope="col">'.$L->g('Role').'</th>
|
<th class="border-bottom-0" scope="col">'.$L->g('Role').'</th>
|
||||||
|
@ -31,9 +30,8 @@ foreach ($list as $username) {
|
||||||
try {
|
try {
|
||||||
$user = new User($username);
|
$user = new User($username);
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$username.'">'.$username.'</a></td>';
|
echo '<td><img class="profilePicture mr-1" alt="" src="'.(Sanitize::pathFile(PATH_UPLOADS_PROFILES.$user->username().'.png')?DOMAIN_UPLOADS_PROFILES.$user->username().'.png':HTML_PATH_ADMIN_THEME_IMG.'default.svg').'" /><a href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$username.'">'.$username.'</a></td>';
|
||||||
echo '<td class="d-none d-lg-table-cell">'.$user->firstName().'</td>';
|
echo '<td class="d-none d-lg-table-cell">'.$user->nickname().'</td>';
|
||||||
echo '<td class="d-none d-lg-table-cell">'.$user->lastName().'</td>';
|
|
||||||
echo '<td>'.$user->email().'</td>';
|
echo '<td>'.$user->email().'</td>';
|
||||||
echo '<td>'.($user->enabled()?'<b>'.$L->g('Enabled').'</b>':$L->g('Disabled')).'</td>';
|
echo '<td>'.($user->enabled()?'<b>'.$L->g('Enabled').'</b>':$L->g('Disabled')).'</td>';
|
||||||
if ($user->role()=='admin') {
|
if ($user->role()=='admin') {
|
||||||
|
|
|
@ -790,16 +790,18 @@ function getTag($key) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Activate a theme
|
||||||
function activateTheme($themeDirectory) {
|
function activateTheme($themeDirectory) {
|
||||||
global $site;
|
global $site;
|
||||||
global $syslog;
|
global $syslog;
|
||||||
|
global $L;
|
||||||
|
|
||||||
if (Sanitize::pathFile(PATH_THEMES.$themeDirectory)) {
|
if (Sanitize::pathFile(PATH_THEMES.$themeDirectory)) {
|
||||||
$site->set(array('theme'=>$themeDirname));
|
$site->set(array('theme'=>$themeDirectory));
|
||||||
|
|
||||||
$syslog->add(array(
|
$syslog->add(array(
|
||||||
'dictionaryKey'=>'new-theme-configured',
|
'dictionaryKey'=>'new-theme-configured',
|
||||||
'notes'=>$themeDirname
|
'notes'=>$themeDirectory
|
||||||
));
|
));
|
||||||
|
|
||||||
Alert::set( $L->g('The changes have been saved') );
|
Alert::set( $L->g('The changes have been saved') );
|
||||||
|
|
|
@ -2,6 +2,26 @@
|
||||||
|
|
||||||
class Theme {
|
class Theme {
|
||||||
|
|
||||||
|
public static function socialNetworks()
|
||||||
|
{
|
||||||
|
global $site;
|
||||||
|
$socialNetworks = array(
|
||||||
|
'github'=>'Github',
|
||||||
|
'twitter'=>'Twitter',
|
||||||
|
'facebook'=>'Facebook',
|
||||||
|
'instagram'=>'Instagram',
|
||||||
|
'codepen'=>'Codepen',
|
||||||
|
'linkedin'=>'Linkedin'
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach ($socialNetworks as $key=>$label) {
|
||||||
|
if (!$site->{$key}()) {
|
||||||
|
unset($socialNetworks[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $socialNetworks;
|
||||||
|
}
|
||||||
|
|
||||||
public static function title()
|
public static function title()
|
||||||
{
|
{
|
||||||
global $site;
|
global $site;
|
||||||
|
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found.",
|
"no-pages-found": "No pages found.",
|
||||||
"system-updated": "System updated."
|
"system-updated": "System updated.",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Seleccionar imagen de portada",
|
"select-cover-image": "Seleccionar imagen de portada",
|
||||||
"this-plugin-depends-on-the-following-plugins": "Este plugin depende de los siguientes plugins.",
|
"this-plugin-depends-on-the-following-plugins": "Este plugin depende de los siguientes plugins.",
|
||||||
"no-pages-found": "No se han encontrado páginas.",
|
"no-pages-found": "No se han encontrado páginas.",
|
||||||
"system-updated": "Sistema actualizado."
|
"system-updated": "Sistema actualizado.",
|
||||||
|
"security": "Seguridad"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Sélectionnez une image d’accroche.",
|
"select-cover-image": "Sélectionnez une image d’accroche.",
|
||||||
"this-plugin-depends-on-the-following-plugins": "Ce plugin dépend des plugins suivants.",
|
"this-plugin-depends-on-the-following-plugins": "Ce plugin dépend des plugins suivants.",
|
||||||
"no-pages-found": "Aucune page trouvée",
|
"no-pages-found": "Aucune page trouvée",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Wybierz okładkę wpisu",
|
"select-cover-image": "Wybierz okładkę wpisu",
|
||||||
"this-plugin-depends-on-the-following-plugins": "Ta wtyczka zależna jest od innych rozszerzeń",
|
"this-plugin-depends-on-the-following-plugins": "Ta wtyczka zależna jest od innych rozszerzeń",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -362,5 +362,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Выбрать изображение обложки",
|
"select-cover-image": "Выбрать изображение обложки",
|
||||||
"this-plugin-depends-on-the-following-plugins": "Этот плагин зависит от следующих плагинов.",
|
"this-plugin-depends-on-the-following-plugins": "Этот плагин зависит от следующих плагинов.",
|
||||||
"no-pages-found": "Страниц не найдено",
|
"no-pages-found": "Страниц не найдено",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -367,5 +367,6 @@
|
||||||
"select-cover-image": "Kapak resmini seç",
|
"select-cover-image": "Kapak resmini seç",
|
||||||
"this-plugin-depends-on-the-following-plugins": "Bu eklenti aşağıdaki eklentilere bağlıdır.",
|
"this-plugin-depends-on-the-following-plugins": "Bu eklenti aşağıdaki eklentilere bağlıdır.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -366,5 +366,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -365,5 +365,6 @@
|
||||||
"select-cover-image": "Select cover image",
|
"select-cover-image": "Select cover image",
|
||||||
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
"this-plugin-depends-on-the-following-plugins": "This plugin depends on the following plugins.",
|
||||||
"no-pages-found": "No pages found",
|
"no-pages-found": "No pages found",
|
||||||
"system-updated": "System updated"
|
"system-updated": "System updated",
|
||||||
|
"security": "Security"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="<?php echo Theme::lang() ?>">
|
||||||
<head>
|
<head>
|
||||||
<?php include(THEME_DIR_PHP.'head.php'); ?>
|
<?php include(THEME_DIR_PHP.'head.php'); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -18,28 +18,13 @@
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
||||||
<!-- Social Networks -->
|
<!-- Social Networks -->
|
||||||
<?php
|
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
|
||||||
$socialNetworks = array(
|
|
||||||
// Key => Label
|
|
||||||
'github'=>'Github',
|
|
||||||
'twitter'=>'Twitter',
|
|
||||||
'facebook'=>'Facebook',
|
|
||||||
'googleplus'=>'Google Plus',
|
|
||||||
'instagram'=>'Instagram',
|
|
||||||
'codepen'=>'Codepen',
|
|
||||||
'linkedin'=>'Linkedin'
|
|
||||||
);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?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->{$key}(); ?>" target="_blank">
|
<a class="nav-link" href="<?php echo $site->{$key}(); ?>" target="_blank">
|
||||||
<img class="d-none d-sm-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="icon" />
|
<img class="d-none d-sm-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="<?php echo $label ?>" />
|
||||||
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
|
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="<?php echo Theme::lang() ?>">
|
||||||
<head>
|
<head>
|
||||||
<?php include(THEME_DIR_PHP.'head.php'); ?>
|
<?php include(THEME_DIR_PHP.'head.php'); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php foreach ($content as $page): ?>
|
<?php foreach ($content as $page): ?>
|
||||||
|
|
||||||
<!-- Post -->
|
<!-- Post -->
|
||||||
<div class="card my-5 border-0">
|
<div class="card my-5 border-0">
|
||||||
|
|
||||||
|
@ -34,9 +33,7 @@
|
||||||
<?php Theme::plugins('pageEnd'); ?>
|
<?php Theme::plugins('pageEnd'); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
||||||
<!-- Pagination -->
|
<!-- Pagination -->
|
||||||
|
|
|
@ -17,61 +17,14 @@
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
||||||
<!-- Social Networks -->
|
<!-- Social Networks -->
|
||||||
<?php if ($site->github()): ?>
|
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="<?php echo $site->github() ?>" target="_blank">
|
<a class="nav-link" href="<?php echo $site->{$key}(); ?>" target="_blank">
|
||||||
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/github.svg' ?>" alt="github icon" />
|
<img class="d-none d-sm-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="<?php echo $label ?>" />
|
||||||
|
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<?php if ($site->twitter()): ?>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="<?php echo $site->twitter() ?>" target="_blank">
|
|
||||||
<img class="nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/twitter.svg' ?>" alt="twitter icon" />
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?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>
|
||||||
|
|
Loading…
Reference in New Issue