remove categories
This commit is contained in:
parent
817f249ba5
commit
6fec239937
|
@ -25,7 +25,7 @@ function editPage($args)
|
||||||
$dbPages->regenerateCli();
|
$dbPages->regenerateCli();
|
||||||
|
|
||||||
// Re index categories
|
// Re index categories
|
||||||
reIndexCategoriesPages();
|
//reIndexCategoriesPages();
|
||||||
|
|
||||||
// Call the plugins after page created.
|
// Call the plugins after page created.
|
||||||
Theme::plugins('afterPageModify');
|
Theme::plugins('afterPageModify');
|
||||||
|
|
|
@ -22,7 +22,7 @@ function editPost($args)
|
||||||
reIndexTagsPosts();
|
reIndexTagsPosts();
|
||||||
|
|
||||||
// Re index categories
|
// Re index categories
|
||||||
reIndexCategoriesPosts();
|
//reIndexCategoriesPosts();
|
||||||
|
|
||||||
// Call the plugins after post created.
|
// Call the plugins after post created.
|
||||||
Theme::plugins('afterPostModify');
|
Theme::plugins('afterPostModify');
|
||||||
|
|
|
@ -20,7 +20,7 @@ function addPost($args)
|
||||||
reIndexTagsPosts();
|
reIndexTagsPosts();
|
||||||
|
|
||||||
// Re index categories
|
// Re index categories
|
||||||
reIndexCategoriesPosts();
|
//reIndexCategoriesPosts();
|
||||||
|
|
||||||
// Call the plugins after post creation
|
// Call the plugins after post creation
|
||||||
Theme::plugins('afterPostCreate');
|
Theme::plugins('afterPostCreate');
|
||||||
|
|
|
@ -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>
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'manage-pages' ?>"><?php $L->p('Manage pages') ?></a></li>
|
||||||
<?php if($Login->role() == 'admin') { ?>
|
<?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.'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-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-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>
|
<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"':'' ?>>
|
<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>
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'manage-pages' ?>"><?php $L->p('Pages') ?></a>
|
||||||
</li>
|
</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>
|
<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"':'' ?>>
|
<li <?php echo ($layout['view']=='users')?'class="uk-active"':'' ?>>
|
||||||
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a>
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -66,6 +66,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
|
/*
|
||||||
HTML::formSelect(array(
|
HTML::formSelect(array(
|
||||||
'name'=>'category',
|
'name'=>'category',
|
||||||
'label'=>$L->g('Category'),
|
'label'=>$L->g('Category'),
|
||||||
|
@ -75,7 +76,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
'tip'=>'',
|
'tip'=>'',
|
||||||
'addEmptySpace'=>true
|
'addEmptySpace'=>true
|
||||||
));
|
));
|
||||||
|
*/
|
||||||
// Description input
|
// Description input
|
||||||
HTML::formTextarea(array(
|
HTML::formTextarea(array(
|
||||||
'name'=>'description',
|
'name'=>'description',
|
||||||
|
@ -239,7 +240,7 @@ $(document).ready(function()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(".sidebar-view").hide();
|
$(".sidebar-view").hide();
|
||||||
$(view).show();
|
$(view).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
|
/*
|
||||||
HTML::formSelect(array(
|
HTML::formSelect(array(
|
||||||
'name'=>'category',
|
'name'=>'category',
|
||||||
'label'=>$L->g('Category'),
|
'label'=>$L->g('Category'),
|
||||||
|
@ -67,7 +68,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
'selected'=>$_Post->category(),
|
'selected'=>$_Post->category(),
|
||||||
'tip'=>'',
|
'tip'=>'',
|
||||||
'addEmptySpace'=>true
|
'addEmptySpace'=>true
|
||||||
));
|
));*/
|
||||||
|
|
||||||
// Description input
|
// Description input
|
||||||
HTML::formTextarea(array(
|
HTML::formTextarea(array(
|
||||||
|
@ -197,7 +198,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(".sidebar-view").hide();
|
$(".sidebar-view").hide();
|
||||||
$(view).show();
|
$(view).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
|
/*
|
||||||
HTML::formSelect(array(
|
HTML::formSelect(array(
|
||||||
'name'=>'category',
|
'name'=>'category',
|
||||||
'label'=>$L->g('Category'),
|
'label'=>$L->g('Category'),
|
||||||
|
@ -60,7 +61,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
'selected'=>'',
|
'selected'=>'',
|
||||||
'tip'=>'',
|
'tip'=>'',
|
||||||
'addEmptySpace'=>true
|
'addEmptySpace'=>true
|
||||||
));
|
));*/
|
||||||
|
|
||||||
// Description input
|
// Description input
|
||||||
HTML::formTextarea(array(
|
HTML::formTextarea(array(
|
||||||
|
@ -212,7 +213,7 @@ $(document).ready(function()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(".sidebar-view").hide();
|
$(".sidebar-view").hide();
|
||||||
$(view).show();
|
$(view).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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><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">';
|
echo '<li id="sidebar-general-view" class="sidebar-view">';
|
||||||
|
|
||||||
// Category
|
/*
|
||||||
HTML::formSelect(array(
|
HTML::formSelect(array(
|
||||||
'name'=>'category',
|
'name'=>'category',
|
||||||
'label'=>$L->g('Category'),
|
'label'=>$L->g('Category'),
|
||||||
|
@ -60,7 +60,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
'selected'=>'',
|
'selected'=>'',
|
||||||
'tip'=>'',
|
'tip'=>'',
|
||||||
'addEmptySpace'=>true
|
'addEmptySpace'=>true
|
||||||
));
|
));*/
|
||||||
|
|
||||||
// Description input
|
// Description input
|
||||||
HTML::formTextarea(array(
|
HTML::formTextarea(array(
|
||||||
|
@ -73,7 +73,7 @@ echo '<div class="bl-publish-sidebar uk-width-2-10">';
|
||||||
));
|
));
|
||||||
|
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
|
|
||||||
// IMAGES TAB
|
// 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>';
|
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 {
|
else {
|
||||||
$(".sidebar-view").hide();
|
$(".sidebar-view").hide();
|
||||||
$(view).show();
|
$(view).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ HTML::formOpen(array('class'=>'uk-form-horizontal'));
|
||||||
'tip'=>''
|
'tip'=>''
|
||||||
));
|
));
|
||||||
|
|
||||||
|
/*
|
||||||
HTML::formInputText(array(
|
HTML::formInputText(array(
|
||||||
'name'=>'uriCategory',
|
'name'=>'uriCategory',
|
||||||
'label'=>$L->g('Category'),
|
'label'=>$L->g('Category'),
|
||||||
|
@ -88,7 +89,7 @@ HTML::formOpen(array('class'=>'uk-form-horizontal'));
|
||||||
'class'=>'uk-width-1-2 uk-form-medium',
|
'class'=>'uk-width-1-2 uk-form-medium',
|
||||||
'tip'=>''
|
'tip'=>''
|
||||||
));
|
));
|
||||||
|
*/
|
||||||
echo '<div class="uk-form-row">
|
echo '<div class="uk-form-row">
|
||||||
<div class="uk-form-controls">
|
<div class="uk-form-controls">
|
||||||
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
|
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
|
||||||
|
|
Loading…
Reference in New Issue