HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbJumbotron.php
Go to the documentation of this file.
1 <?php
17 class TbJumbotron extends CWidget {
21  public $heading;
22 
26  public $encodeHeading = true;
27 
31  public $htmlOptions = array();
32 
37  public $headingOptions = array();
38 
44  public function init()
45  {
46  if (isset($this->htmlOptions['class'])) {
47  $this->htmlOptions['class'] .= ' jumbotron';
48  } else {
49  $this->htmlOptions['class'] = 'jumbotron';
50  }
51 
52  echo CHtml::openTag('div', $this->htmlOptions);
53 
54  if ($this->encodeHeading) {
55  $this->heading = CHtml::encode($this->heading);
56  }
57 
58  if (isset($this->heading)) {
59  echo CHtml::tag('h1', $this->headingOptions, $this->heading);
60  }
61  }
62 
68  public function run()
69  {
70  echo CHtml::closeTag('div');
71  }
72 }