diff options
author | 2015-08-14 21:20:23 +0200 | |
---|---|---|
committer | 2015-08-14 21:20:23 +0200 | |
commit | c9ae68fab928225cf80ebdcef32b78cb4f0cf873 (patch) | |
tree | 0926f9e9799352024d4e6c5ec048cff1bcfeb3da /TyrianTemplate.php | |
parent | Add GPLv2 (diff) | |
download | skin-tyrian-c9ae68fab928225cf80ebdcef32b78cb4f0cf873.tar.gz skin-tyrian-c9ae68fab928225cf80ebdcef32b78cb4f0cf873.tar.bz2 skin-tyrian-c9ae68fab928225cf80ebdcef32b78cb4f0cf873.zip |
Clean up indenting, licenses, various other bits
Diffstat (limited to 'TyrianTemplate.php')
-rw-r--r-- | TyrianTemplate.php | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php index f198fcc..a068f1c 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -1,6 +1,9 @@ <?php /** - * @ingroup Skins + * Tyrian -- the new look of gentoo.org + * MediaWiki implementation based on MonoBook nouveau. + * + * Copyright (C) 2014-2015 Alex Legler <a3li@gentoo.org> */ class TyrianTemplate extends BaseTemplate { function execute() { @@ -11,9 +14,9 @@ class TyrianTemplate extends BaseTemplate { $this->header(); ?> - <div class="container"> - <div class="row"> - <div class="col-md-12"> + <div class="container"> + <div class="row"> + <div class="col-md-12"> <div id="content" class="mw-body" role="main"> <a id="top"></a> <?php if ( $this->data['sitenotice'] ) { ?> @@ -212,10 +215,10 @@ class TyrianTemplate extends BaseTemplate { <form action="<?php $this->text( 'wgScript' ) ?>" id="searchform" class="navbar-form navbar-right" role="search"> <input type='hidden' name="title" value="<?php $this->text( 'searchtitle' ) ?>"/> - <div class="input-group"> - <?php echo $this->makeSearchInput( array( "id" => "searchInput", "class" => "form-control", "placeholder" => $this->getMsg( 'search' )->escaped() ) ); ?> - <div class="input-group-btn"><?php - echo $this->makeSearchButton( + <div class="input-group"> + <?php echo $this->makeSearchInput( array( "id" => "searchInput", "class" => "form-control", "placeholder" => $this->getMsg( 'search' )->escaped() ) ); ?> + <div class="input-group-btn"><?php + echo $this->makeSearchButton( "go", array( "id" => "searchGoButton", "class" => "searchButton btn btn-default" ) ); @@ -225,7 +228,7 @@ class TyrianTemplate extends BaseTemplate { array( "id" => "mw-searchButton", "class" => "searchButton btn btn-default" ) ); ?></div> - </div> + </div> </form> <?php } @@ -262,47 +265,44 @@ class TyrianTemplate extends BaseTemplate { ?> <nav class="navbar navbar-grey navbar-stick" id="wiki-actions" role="navigation"> - <div class="container"><div class="row"> - <!-- Brand and toggle get grouped for better mobile display --> - <div class="navbar-header"> - <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#gw-toolbar"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - </div> - - <!-- Collect the nav links, forms, and other content for toggling --> - <div class="collapse navbar-collapse" id="gw-toolbar"> - <ul class="nav navbar-nav"> - <?php - foreach ( $context_actions as $key => $tab ) { - echo $this->makeListItem( $key, $tab ); - } - ?> - </ul> - <?php - $this->searchBox(); - ?> - <ul class="nav navbar-nav navbar-right hidden-xs"> - <?php - foreach ( $primary_actions as $key => $tab ) { - echo $this->makeListItem( $key, $tab ); - } - ?> <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">more <span class="caret"></span></a> - <ul class="dropdown-menu" role="menu"> - <?php - foreach ( $secondary_actions as $key => $tab ) { - echo $this->makeListItem( $key, $tab ); - } - ?> - </ul> - </li> - </ul> - </div><!-- /.navbar-collapse --> - </div></div><!-- /.container-fluid --> + <div class="container"><div class="row"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#gw-toolbar"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + </div> + <div class="collapse navbar-collapse" id="gw-toolbar"> + <ul class="nav navbar-nav"> + <?php + foreach ( $context_actions as $key => $tab ) { + echo $this->makeListItem( $key, $tab ); + } + ?> + </ul> + <?php + $this->searchBox(); + ?> + <ul class="nav navbar-nav navbar-right hidden-xs"> + <?php + foreach ( $primary_actions as $key => $tab ) { + echo $this->makeListItem( $key, $tab ); + } + ?><li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">more <span class="caret"></span></a> + <ul class="dropdown-menu" role="menu"> + <?php + foreach ( $secondary_actions as $key => $tab ) { + echo $this->makeListItem( $key, $tab ); + } + ?> + </ul> + </li> + </ul> + </div> + </div></div> </nav> <?php } @@ -330,9 +330,9 @@ class TyrianTemplate extends BaseTemplate { function personaltools() { ?> <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> - <span class="glyphicon glyphicon-user" aria-label="<?php $this->msg( 'personaltools' ) ?>"></span> - <?php $this->msg( 'listfiles_user' ) ?> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> + <span class="glyphicon glyphicon-user" aria-label="<?php $this->msg( 'personaltools' ) ?>"></span> + <?php $this->msg( 'listfiles_user' ) ?> <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu"> @@ -394,7 +394,7 @@ class TyrianTemplate extends BaseTemplate { } } } else { - echo "<!-- This would have been a box, but it contains custom html which is not supported. -->"; + echo "<!-- This would have been a box, but it contains custom HTML which is not supported. -->"; } if ( $bar !== 'navigation' ) { ?> @@ -402,4 +402,4 @@ class TyrianTemplate extends BaseTemplate { </li> <?php } } -} // end of class +}
\ No newline at end of file |