OSAS / strapping-mediawiki

base skin for MediaWiki, based on Bootstrap — layer your own style (fonts, graphics, color) on top
Other
146 stars 35 forks source link

Wont display plugins which use SkinTemplateToolboxEnd (notibly PDFExport) Fix included #40

Open mudgw2 opened 10 years ago

mudgw2 commented 10 years ago

Change Strapping.skin.php TOOLBOX case to:

case 'TOOLBOX':

      $theMsg = 'toolbox';
      $theData = array_reverse($this->getToolbox());
      ?>

      <ul class="nav" role="navigation">

        <li class="dropdown" id="p-<?php echo $theMsg; ?>" class="vectorMenu<?php if ( count($theData) == 0 ) echo ' emptyPortlet'; ?>">

          <a data-toggle="dropdown" class="dropdown-toggle" role="button"><?php $this->msg($theMsg) ?> <b class="caret"></b></a>

          <ul aria-labelledby="<?php echo $this->msg($theMsg); ?>" role="menu" class="dropdown-menu" <?php $this->html( 'userlangattributes' ) ?>>

            <?php
              foreach( $theData as $key => $item ) {
                if (preg_match('/specialpages|whatlinkshere/', $key)) {
                  echo '<li class="divider"></li>';
                }

                echo $this->makeListItem( $key, $item );
              }
              wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this, true ) );
            ?>

          </ul>

        </li>

      </ul>
      <?php
    break;