예제 #1
0
 /**
  * @inheritdoc
  */
 public function run()
 {
     if ($this->box) {
         self::boxBegin($this->box);
     }
     echo Html::beginTag('ul', ['class' => 'timeline', 'id' => $this->options['id']]);
     foreach ($this->data as $datum) {
         echo Html::beginTag('li', ['class' => 'time-label']);
         echo Html::tag('span', $datum['date']);
         echo Html::endTag('li');
         foreach ($datum['items'] as $item) {
             echo Html::beginTag('li');
             echo $item['icon'];
             echo Html::beginTag('div', ['class' => 'timeline-item']);
             echo Html::beginTag('span', ['class' => 'time']);
             echo Html::tag('i', null, ['class' => 'fa fa-clock-o']);
             echo ' ' . $item['time'];
             echo Html::endTag('span');
             if (isset($item['header'])) {
                 echo Html::tag('h3', $item['header'], ['class' => 'timeline-header']);
             }
             echo Html::tag('div', $item['body'], ['class' => 'timeline-body']);
             if (isset($item['footer'])) {
                 echo Html::tag('div', $item['footer'], ['class' => 'timeline-footer']);
             }
             echo Html::endTag('div');
             echo Html::endTag('li');
         }
     }
     echo Html::endTag('ul');
     if ($this->box) {
         self::boxEnd();
     }
 }
예제 #2
0
 public function run()
 {
     if ($this->box) {
         if ($this->responsive) {
             $this->box['body']['class'] = 'table-responsive';
         }
         self::boxBegin($this->box);
     } elseif ($this->responsive) {
         Html::beginTag('div', ['class' => 'table-responsive']);
     }
     parent::run();
     if ($this->box) {
         self::boxEnd();
     } elseif ($this->responsive) {
         Html::endTag('div');
     }
 }
예제 #3
0
 public function run()
 {
     echo Html::beginTag('div', ['class' => 'info-box ' . ($this->bgFill ? $this->bg : '')]);
     if (!$this->icon) {
         $this->icon = Html::fa('question', 'i');
     }
     echo Html::tag('span', $this->icon, ['class' => 'info-box-icon ' . ($this->bgFill ? '' : $this->bg)]);
     echo Html::beginTag('div', ['class' => 'info-box-content']);
     echo Html::tag('span', $this->text, ['class' => 'info-box-text']);
     echo Html::tag('span', $this->number, ['class' => 'info-box-number']);
     if ($this->progress !== null) {
         echo Html::tag('div', Html::tag('div', '', ['class' => 'progress-bar', 'style' => 'width: ' . $this->progress . '%;']), ['class' => 'progress']);
         if (!empty($this->progressText)) {
             echo Html::tag('div', $this->progressText, ['class' => 'progress-description']);
         }
     }
     echo Html::endTag('div');
     echo Html::endTag('div');
 }
예제 #4
0
 private static function boxTool($widget, $icon)
 {
     return Html::tag('a', Html::tag('i', null, ['class' => 'fa fa-' . $icon]), ['data-widget' => $widget, 'class' => 'btn btn-box-tool']);
 }
예제 #5
0
 public static function end()
 {
     echo Html::endTag('div');
 }