remove categories

This commit is contained in:
Diego 2017-05-04 22:36:49 +02:00
parent 817f249ba5
commit 6fec239937
9 changed files with 21 additions and 17 deletions

View File

@ -25,7 +25,7 @@ function editPage($args)
$dbPages->regenerateCli();
// Re index categories
reIndexCategoriesPages();
//reIndexCategoriesPages();
// Call the plugins after page created.
Theme::plugins('afterPageModify');

View File

@ -22,7 +22,7 @@ function editPost($args)
reIndexTagsPosts();
// Re index categories
reIndexCategoriesPosts();
//reIndexCategoriesPosts();
// Call the plugins after post created.
Theme::plugins('afterPostModify');

View File

@ -20,7 +20,7 @@ function addPost($args)
reIndexTagsPosts();
// Re index categories
reIndexCategoriesPosts();
//reIndexCategoriesPosts();
// Call the plugins after post creation
Theme::plugins('afterPostCreate');

View File

@ -63,7 +63,7 @@ $(document).ready(function() {
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'manage-pages' ?>"><?php $L->p('Manage pages') ?></a></li>
<?php if($Login->role() == 'admin') { ?>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Manage users') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Manage categories') ?></a></li>
<!-- <li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Manage categories') ?></a></li> -->
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-general' ?>"><?php $L->p('General settings') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-advanced' ?>"><?php $L->p('Advanced settings') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-regional' ?>"><?php $L->p('Language and timezone') ?></a></li>
@ -116,9 +116,9 @@ $(document).ready(function() {
<li <?php echo ($layout['view']=='manage-pages')?'class="uk-active"':'' ?>>
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'manage-pages' ?>"><?php $L->p('Pages') ?></a>
</li>
<li <?php echo ($layout['view']=='categories')?'class="uk-active"':'' ?>>
<!--<li <?php echo ($layout['view']=='categories')?'class="uk-active"':'' ?>>
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Categories') ?></a>
</li>
</li>-->
<li <?php echo ($layout['view']=='users')?'class="uk-active"':'' ?>>
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a>
</li>

View File

@ -66,6 +66,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
echo '<li id="sidebar-general-view" class="sidebar-view">';
// Category
/*
HTML::formSelect(array(
'name'=>'category',
'label'=>$L->g('Category'),
@ -75,7 +76,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
'tip'=>'',
'addEmptySpace'=>true
));
*/
// Description input
HTML::formTextarea(array(
'name'=>'description',
@ -239,7 +240,7 @@ $(document).ready(function()
}
else {
$(".sidebar-view").hide();
$(view).show();
$(view).show();
}
});

View File

@ -59,6 +59,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
echo '<li id="sidebar-general-view" class="sidebar-view">';
// Category
/*
HTML::formSelect(array(
'name'=>'category',
'label'=>$L->g('Category'),
@ -67,7 +68,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
'selected'=>$_Post->category(),
'tip'=>'',
'addEmptySpace'=>true
));
));*/
// Description input
HTML::formTextarea(array(
@ -197,7 +198,7 @@ $(document).ready(function() {
}
else {
$(".sidebar-view").hide();
$(view).show();
$(view).show();
}
});

View File

@ -52,6 +52,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
echo '<li id="sidebar-general-view" class="sidebar-view">';
// Category
/*
HTML::formSelect(array(
'name'=>'category',
'label'=>$L->g('Category'),
@ -60,7 +61,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
'selected'=>'',
'tip'=>'',
'addEmptySpace'=>true
));
));*/
// Description input
HTML::formTextarea(array(
@ -212,7 +213,7 @@ $(document).ready(function()
}
else {
$(".sidebar-view").hide();
$(view).show();
$(view).show();
}
});

View File

@ -51,7 +51,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
echo '<li><h2 class="sidebar-button" data-view="sidebar-general-view"><i class="uk-icon-angle-down"></i> '.$L->g('General').'</h2></li>';
echo '<li id="sidebar-general-view" class="sidebar-view">';
// Category
/*
HTML::formSelect(array(
'name'=>'category',
'label'=>$L->g('Category'),
@ -60,7 +60,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
'selected'=>'',
'tip'=>'',
'addEmptySpace'=>true
));
));*/
// Description input
HTML::formTextarea(array(
@ -73,7 +73,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
));
echo '</li>';
// IMAGES TAB
// --------------------------------------------------------------------
echo '<li><h2 class="sidebar-button" data-view="sidebar-images-view"><i class="uk-icon-angle-down"></i> '.$L->g('Images').'</h2></li>';
@ -182,7 +182,7 @@ $(document).ready(function() {
}
else {
$(".sidebar-view").hide();
$(view).show();
$(view).show();
}
});

View File

@ -81,6 +81,7 @@ HTML::formOpen(array('class'=>'uk-form-horizontal'));
'tip'=>''
));
/*
HTML::formInputText(array(
'name'=>'uriCategory',
'label'=>$L->g('Category'),
@ -88,7 +89,7 @@ HTML::formOpen(array('class'=>'uk-form-horizontal'));
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
*/
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>