move ?aside? to Agent ?Seminarybar? (Issue #55)
This commit is contained in:
parent
90b7d1bb1d
commit
4f5beb534f
5 changed files with 151 additions and 55 deletions
35
agents/bottomlevel/SeminarybarAgent.inc
Normal file
35
agents/bottomlevel/SeminarybarAgent.inc
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Legend of Z
|
||||||
|
*
|
||||||
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
||||||
|
* @copyright 2014 Heinrich-Heine-Universität Düsseldorf
|
||||||
|
* @license http://www.gnu.org/licenses/gpl.html
|
||||||
|
* @link https://bitbucket.org/coderkun/the-legend-of-z
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace hhu\z\agents\bottomlevel;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Agent to display a sidebar with Seminary related information.
|
||||||
|
*
|
||||||
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
||||||
|
*/
|
||||||
|
class SeminarybarAgent extends \nre\agents\BottomlevelAgent
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Action: index.
|
||||||
|
*/
|
||||||
|
public function index(\nre\core\Request $request, \nre\core\Response $response)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
@ -39,6 +39,9 @@
|
||||||
{
|
{
|
||||||
// Add menu
|
// Add menu
|
||||||
$this->addSubAgent('Menu');
|
$this->addSubAgent('Menu');
|
||||||
|
|
||||||
|
// Add Seminary sidebar
|
||||||
|
$this->addSubAgent('Seminarybar');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
53
controllers/SeminarybarController.inc
Normal file
53
controllers/SeminarybarController.inc
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Legend of Z
|
||||||
|
*
|
||||||
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
||||||
|
* @copyright 2014 Heinrich-Heine-Universität Düsseldorf
|
||||||
|
* @license http://www.gnu.org/licenses/gpl.html
|
||||||
|
* @link https://bitbucket.org/coderkun/the-legend-of-z
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace hhu\z\controllers;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Controller of the Agent to display a sidebar with Seminary related
|
||||||
|
* information.
|
||||||
|
*
|
||||||
|
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
||||||
|
*/
|
||||||
|
class SeminarybarController extends \hhu\z\Controller
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prefilter.
|
||||||
|
*
|
||||||
|
* @param Request $request Current request
|
||||||
|
* @param Response $response Current response
|
||||||
|
*/
|
||||||
|
public function preFilter(\nre\core\Request $request, \nre\core\Response $response)
|
||||||
|
{
|
||||||
|
parent::preFilter($request, $response);
|
||||||
|
|
||||||
|
// Set userdata
|
||||||
|
$this->set('loggedUser', IntermediateController::$user);
|
||||||
|
$this->set('loggedSeminary', IntermediateController::$seminary);
|
||||||
|
$this->set('loggedCharacter', IntermediateController::$character);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Action: index.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
@ -47,61 +47,11 @@
|
||||||
<?=$intermediate?>
|
<?=$intermediate?>
|
||||||
</article>
|
</article>
|
||||||
<aside>
|
<aside>
|
||||||
<section class="cf">
|
<?php if(!is_null($loggedUser)) : ?>
|
||||||
<h1>Zyrendaniel</h1>
|
<?php if(!is_null($loggedCharacter)) : ?>
|
||||||
<img src="http://legende-von-zyren.de/img/avatars/Goblin7.png" class="char">
|
<?=$seminarybar?>
|
||||||
<ul class="charstats">
|
<?php endif ?>
|
||||||
<li><i class="fa fa-caret-right fa-fw"></i>Level 1</li>
|
<?php endif ?>
|
||||||
<li><i class="fa fa-caret-right fa-fw"></i>1500 XP</li>
|
|
||||||
<li><i class="fa fa-caret-right fa-fw"></i>11. Platz</li>
|
|
||||||
<li><i class="fa fa-caret-right fa-fw"></i><a href="#">Zum Profil</a></li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
<section>
|
|
||||||
<h1>Letzter Speicherpunkt</h1>
|
|
||||||
<p><i class="fa fa-pencil-square-o fa-fw"></i><a href="#">Die verwunschene Stadt</a></p>
|
|
||||||
</section>
|
|
||||||
<section>
|
|
||||||
<h1>Letzte Errungenschaft</h1>
|
|
||||||
<ul class="cranks">
|
|
||||||
<li>
|
|
||||||
<a href="#" title="Achievement-Titel"><img src="http://legende-von-zyren.de/img/achieve/1b.jpg"></a>
|
|
||||||
<p><a href="#">Des Königs neue Quests</a></p>
|
|
||||||
<p><small>erreicht am: 14.07.2014</small></p>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
<section>
|
|
||||||
<h1>Wille und die Majas</h1>
|
|
||||||
<ul class="cranks">
|
|
||||||
<li>
|
|
||||||
<a href="#" title="Achievement-Titel"><img src="http://s7.directupload.net/images/140325/e2wdqhqa.png"></a>
|
|
||||||
<p><a href="#">Anduin</a></p>
|
|
||||||
<p><small>Level 27 (1500 XP)</small></p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#" title="Achievement-Titel"><img src="http://s1.directupload.net/images/140325/upv2dg2r.png"></a>
|
|
||||||
<p><a href="#">Jaina</a></p>
|
|
||||||
<p><small>Level 26 (1400 XP)</small></p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#" title="Achievement-Titel"><img src="http://s14.directupload.net/images/140325/x9ny5kgu.png"></a>
|
|
||||||
<p><a href="#">Uther</a></p>
|
|
||||||
<p><small>Level 25 (1300 XP)</small></p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#" title="Achievement-Titel"><img src="http://s7.directupload.net/images/140325/e2wdqhqa.png"></a>
|
|
||||||
<p><a href="#">Lothar</a></p>
|
|
||||||
<p><small>Level 24 (1200 XP)</small></p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#" title="Achievement-Titel"><img src="http://s1.directupload.net/images/140325/whre34td.png"></a>
|
|
||||||
<p><a href="#">Morris</a></p>
|
|
||||||
<p><small>Level 23 (1100 XP)</small></p>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<p><i class="fa fa-users fa-fw"></i><a href="#">Gildenprofil ansehen</a></p>
|
|
||||||
</section>
|
|
||||||
</aside>
|
</aside>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
||||||
55
views/html/seminarybar/index.tpl
Normal file
55
views/html/seminarybar/index.tpl
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
<section class="cf">
|
||||||
|
<h1>Zyrendaniel</h1>
|
||||||
|
<img src="http://legende-von-zyren.de/img/avatars/Goblin7.png" class="char">
|
||||||
|
<ul class="charstats">
|
||||||
|
<li><i class="fa fa-caret-right fa-fw"></i>Level 1</li>
|
||||||
|
<li><i class="fa fa-caret-right fa-fw"></i>1500 XP</li>
|
||||||
|
<li><i class="fa fa-caret-right fa-fw"></i>11. Platz</li>
|
||||||
|
<li><i class="fa fa-caret-right fa-fw"></i><a href="#">Zum Profil</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h1>Letzter Speicherpunkt</h1>
|
||||||
|
<p><i class="fa fa-pencil-square-o fa-fw"></i><a href="#">Die verwunschene Stadt</a></p>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h1>Letzte Errungenschaft</h1>
|
||||||
|
<ul class="cranks">
|
||||||
|
<li>
|
||||||
|
<a href="#" title="Achievement-Titel"><img src="http://legende-von-zyren.de/img/achieve/1b.jpg"></a>
|
||||||
|
<p><a href="#">Des Königs neue Quests</a></p>
|
||||||
|
<p><small>erreicht am: 14.07.2014</small></p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h1>Wille und die Majas</h1>
|
||||||
|
<ul class="cranks">
|
||||||
|
<li>
|
||||||
|
<a href="#" title="Achievement-Titel"><img src="http://s7.directupload.net/images/140325/e2wdqhqa.png"></a>
|
||||||
|
<p><a href="#">Anduin</a></p>
|
||||||
|
<p><small>Level 27 (1500 XP)</small></p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#" title="Achievement-Titel"><img src="http://s1.directupload.net/images/140325/upv2dg2r.png"></a>
|
||||||
|
<p><a href="#">Jaina</a></p>
|
||||||
|
<p><small>Level 26 (1400 XP)</small></p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#" title="Achievement-Titel"><img src="http://s14.directupload.net/images/140325/x9ny5kgu.png"></a>
|
||||||
|
<p><a href="#">Uther</a></p>
|
||||||
|
<p><small>Level 25 (1300 XP)</small></p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#" title="Achievement-Titel"><img src="http://s7.directupload.net/images/140325/e2wdqhqa.png"></a>
|
||||||
|
<p><a href="#">Lothar</a></p>
|
||||||
|
<p><small>Level 24 (1200 XP)</small></p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#" title="Achievement-Titel"><img src="http://s1.directupload.net/images/140325/whre34td.png"></a>
|
||||||
|
<p><a href="#">Morris</a></p>
|
||||||
|
<p><small>Level 23 (1100 XP)</small></p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p><i class="fa fa-users fa-fw"></i><a href="#">Gildenprofil ansehen</a></p>
|
||||||
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue