| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function start($title) |
||
| 17 | { |
||
| 18 | $script = <<<SCRIPT |
||
| 19 | $('.{$this->name}-title').click(function () { |
||
| 20 | $("i", this).toggleClass("fa-angle-double-down fa-angle-double-up"); |
||
| 21 | }); |
||
| 22 | SCRIPT; |
||
| 23 | |||
| 24 | Admin::script($script); |
||
| 25 | |||
| 26 | return <<<HTML |
||
| 27 | <div> |
||
| 28 | <div style="height: 20px; border-bottom: 1px solid #eee; text-align: center;margin-top: 20px;margin-bottom: 20px;"> |
||
| 29 | <span style="font-size: 16px; background-color: #ffffff; padding: 0 10px;"> |
||
| 30 | <a data-toggle="collapse" href="#{$this->name}" class="{$this->name}-title"> |
||
| 31 | <i class="fa fa-angle-double-up"></i> {$title} |
||
| 32 | </a> |
||
| 33 | </span> |
||
| 34 | </div> |
||
| 35 | <div class="collapse in" id="{$this->name}"> |
||
| 36 | HTML; |
||
| 37 | } |
||
| 38 | |||
| 55 | } |