Skip to content
Permalink
Browse files

Migrate crumbs to a function

  • Loading branch information...
Quy committed Feb 22, 2019
1 parent 77a8926 commit 0d5f068eefa3ddaa5766dc5a416b1f83d4699cd7
Showing with 8 additions and 10 deletions.
  1. +8 −10 admin_bans.php
@@ -416,18 +416,20 @@
// Generate paging links
$paging_links = '<span class="pages-label">'.$lang_common['Pages'].' </span>'.paginate($num_pages, $p, 'admin_bans.php?find_ban=&amp;'.implode('&amp;', $query_str));
$crumbs = generate_crumbs(array(
array($lang_admin_common['Admin'].' '.$lang_admin_common['Index'], 'admin_index.php'),
array($lang_admin_common['Bans'], 'admin_bans.php'),
$lang_admin_bans['Results head'],
));
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Bans'], $lang_admin_bans['Results head']);
define('PUN_ACTIVE_PAGE', 'admin');
require PUN_ROOT.'header.php';
?>
<div class="linkst">
<div class="inbox crumbsplus">
<ul class="crumbs">
<li><a href="admin_index.php"><?php echo $lang_admin_common['Admin'].' '.$lang_admin_common['Index'] ?></a></li>
<li><span&#160;</span><a href="admin_bans.php"><?php echo $lang_admin_common['Bans'] ?></a></li>
<li><span&#160;</span><strong><?php echo $lang_admin_bans['Results head'] ?></strong></li>
</ul>
<?php echo $crumbs ?>
<div class="pagepost">
<p class="pagelink"><?php echo $paging_links ?></p>
</div>
@@ -493,11 +495,7 @@
<div class="pagepost">
<p class="pagelink"><?php echo $paging_links ?></p>
</div>
<ul class="crumbs">
<li><a href="admin_index.php"><?php echo $lang_admin_common['Admin'].' '.$lang_admin_common['Index'] ?></a></li>
<li><span&#160;</span><a href="admin_bans.php"><?php echo $lang_admin_common['Bans'] ?></a></li>
<li><span&#160;</span><strong><?php echo $lang_admin_bans['Results head'] ?></strong></li>
</ul>
<?php echo $crumbs ?>
<div class="clearer"></div>
</div>
</div>

0 comments on commit 0d5f068

Please sign in to comment.
You can’t perform that action at this time.