[ Index ]

PHP Cross Reference of MyBB 1.8.30

title

Body

[close]

/admin/styles/default/ -> style.php (source)

   1  <?php
   2  /**
   3   * This is an example style file for Admin CP styles.
   4   *
   5   * It allows you to override our existing layout generation
   6   * classes with your own to further customise the Admin CP
   7   * layout beyond CSS.
   8   *
   9   * Your class name      Should extend
  10   * ---------------      -------------
  11   * Page                 DefaultPage
  12   * SidebarItem          DefaultSidebarItem
  13   * PopupMenu            DefaultPopupMenu
  14   * Table                DefaultTable
  15   * Form                 DefaultForm
  16   * FormContainer        DefaultFormContainer
  17   *
  18   * For example, to output your own custom header:
  19   *
  20   * class Page extends DefaultPage
  21   * {
  22   *   function output_header($title)
  23   *   {
  24   *      echo "<h1>{$title}</h1>";
  25   *   }
  26   * }
  27   *
  28   */
  29  
  30  // Disallow direct access to this file for security reasons
  31  if(!defined("IN_MYBB"))
  32  {
  33      die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
  34  }
  35  
  36  class Page extends DefaultPage
  37  {
  38  	function _generate_breadcrumb()
  39      {
  40          if(!is_array($this->_breadcrumb_trail))
  41          {
  42              return false;
  43          }
  44          $trail = "";
  45          foreach($this->_breadcrumb_trail as $key => $crumb)
  46          {
  47              if(!empty($this->_breadcrumb_trail[$key+1]))
  48              {
  49                  $trail .= "<a href=\"".$crumb['url']."\">".$crumb['name']."</a>";
  50                  if(!empty($this->_breadcrumb_trail[$key+2]))
  51                  {
  52                      $trail .= " &raquo; ";
  53                  }
  54              }
  55              else
  56              {
  57                  $trail .= " &raquo; <span class=\"active\">".$crumb['name']."</span>";
  58              }
  59          }
  60          return $trail;
  61      }
  62  }
  63  
  64  class SidebarItem extends DefaultSidebarItem
  65  {
  66  }
  67  
  68  class PopupMenu extends DefaultPopupMenu
  69  {
  70  }
  71  
  72  class Table extends DefaultTable
  73  {
  74  }
  75  
  76  class Form extends DefaultForm
  77  {
  78  }
  79  
  80  class FormContainer extends DefaultFormContainer
  81  {
  82  }


2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref