diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index 48223a72..575dbac7 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -61,8 +61,13 @@ function table($type) { '.$L->g('Title').' - '.$L->g('URL').' - '.$L->g('Actions').' + '; + + if ($type=='published' || $type=='static' || $type=='sticky') { + echo ''.$L->g('URL').''; + } + + echo ' '.$L->g('Actions').' @@ -85,11 +90,14 @@ function table($type) { '; + if ($type=='published' || $type=='static' || $type=='sticky') { $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key(); echo ''.$friendlyURL.''; + } - echo ''.PHP_EOL; - echo ''.$L->g('Edit').''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.$L->g('View').''.PHP_EOL; + echo ''.$L->g('Edit').''.PHP_EOL; if (count($page->children())==0) { echo ''.$L->g('Delete').''.PHP_EOL; } @@ -111,11 +119,14 @@ function table($type) { '; + if ($type=='published' || $type=='static' || $type=='sticky') { $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$child->key() : '/'.$url->filters('page').'/'.$child->key(); echo ''.$friendlyURL.''; + } - echo ''.PHP_EOL; - echo ''.$L->g('Edit').''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.$L->g('View').''.PHP_EOL; + echo ''.$L->g('Edit').''.PHP_EOL; echo ''.$L->g('Delete').''.PHP_EOL; echo ''; @@ -143,11 +154,14 @@ function table($type) { '; + if ($type=='published' || $type=='static' || $type=='sticky') { $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key(); echo ''.$friendlyURL.''; + } - echo ''.PHP_EOL; - echo ''.$L->g('Edit').''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.$L->g('View').''.PHP_EOL; + echo ''.$L->g('Edit').''.PHP_EOL; if (count($page->children())==0) { echo ''.$L->g('Delete').''.PHP_EOL; } @@ -256,7 +270,7 @@ function table($type) { var title = searchArray[item]['title']; html = '
'; html += '
'+title+'
'; - html += '
Edit Visit
'; + html += '
p('View') ?>p('Edit') ?>
'; html += '
'; return html; }