Skip to content

Commit

Permalink
doc/style: add style guide, rename webfont
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Gelf committed Nov 17, 2014
1 parent 2d94c78 commit add0667
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
24 changes: 20 additions & 4 deletions modules/doc/application/controllers/StyleController.php
Expand Up @@ -6,16 +6,32 @@

class Doc_StyleController extends Controller
{
public function guideAction()
{
$this->view->tabs = $this->tabs()->activate('guide');
}

public function fontAction()
{
$this->view->tabs = Widget::create('tabs')->add(
$this->view->tabs = $this->tabs()->activate('font');
$confFile = Icinga::app()->getApplicationDir('fonts/fontello-ifont/config.json');
$this->view->font = json_decode(file_get_contents($confFile));
}

protected function tabs()
{
return Widget::create('tabs')->add(
'guide',
array(
'title' => $this->translate('Style Guide'),
'url' => 'doc/style/guide'
)
)->add(
'fonts',
array(
'title' => $this->translate('Icons'),
'url' => 'doc/style/font'
)
)->activate('fonts');
$confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json');
$this->view->font = json_decode(file_get_contents($confFile));
);
}
}
13 changes: 13 additions & 0 deletions modules/doc/application/views/scripts/style/guide.phtml
@@ -0,0 +1,13 @@
<div class="controls">
<?= $this->tabs ?>
<h1>Style Guide</h1>
</div>

<div class="content">
<h1>H1 - header</h1>
<h2>H2 - header</h2>
<h3>H3 - header</h3>
<h4>H4 - header</h4>
<h5>H5 - header</h5>
<h6>H6 - header</h6>
</div>

0 comments on commit add0667

Please sign in to comment.