Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Update main.php #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 26 additions & 22 deletions views/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
<?php $this->widget('YiiDebugToolbarResourceUsage'); ?>
<ul data-ydtb-menu>
<?php foreach ($panels as $panel): ?>
<li><a href="javascript:;//" data-ydtb-expand-panel="<?php echo $panel->id ?>">
<i data-ydtb-icon="<?php echo $panel->i ?>"></i>
<?php if (null !== $panel->menuSubTitle): ?> <small><?php echo $panel->menuSubTitle; ?></small> <?php endif; ?>
<span><?php echo CHtml::encode($panel->menuTitle); ?></span>
<span class="clear clearfix"></span>
</a></li>
<?php if(is_object($panel)){ ?>
<li><a href="javascript:;//" data-ydtb-expand-panel="<?php echo $panel->id ?>">
<i data-ydtb-icon="<?php echo $panel->i ?>"></i>
<?php if (null !== $panel->menuSubTitle): ?> <small><?php echo $panel->menuSubTitle; ?></small> <?php endif; ?>
<span><?php echo CHtml::encode($panel->menuTitle); ?></span>
<span class="clear clearfix"></span>
</a></li>
<?php } ?>
<?php endforeach; ?>
</ul>
<div data-ydtb-options>
Expand All @@ -20,21 +22,23 @@
</div>

<?php foreach ($panels as $panel) : ?>
<div data-ydtb-panel="<?php echo $panel->id ?>" class="ydtb-collapse">
<div data-ydtb-panel-header="<?php echo $panel->id ?>">
<i data-ydtb-icon="<?php echo $panel->i ?>"></i>
<?php echo CHtml::encode($panel->title); ?>
<?php if ($panel->subTitle) : ?>
<small><?php echo CHtml::encode($panel->subTitle); ?> </small>
<?php endif; ?>
<ul>
<li><i data-ydtb-icon="h" data-ydtb-collapse="[data-ydtb-panel]"></i></li>
<li><i data-ydtb-icon="z" data-ydtb-panel-lock="<?php echo $panel->id ?>"></i></li>
</ul>
</div>
<div data-ydtb-panel-content="<?php echo $panel->id ?>">
<?php $panel->run(); ?>
</div>
</div>
<?php if(is_object($panel)){ ?>
<div data-ydtb-panel="<?php echo $panel->id ?>" class="ydtb-collapse">
<div data-ydtb-panel-header="<?php echo $panel->id ?>">
<i data-ydtb-icon="<?php echo $panel->i ?>"></i>
<?php echo CHtml::encode($panel->title); ?>
<?php if ($panel->subTitle) : ?>
<small><?php echo CHtml::encode($panel->subTitle); ?> </small>
<?php endif; ?>
<ul>
<li><i data-ydtb-icon="h" data-ydtb-collapse="[data-ydtb-panel]"></i></li>
<li><i data-ydtb-icon="z" data-ydtb-panel-lock="<?php echo $panel->id ?>"></i></li>
</ul>
</div>
<div data-ydtb-panel-content="<?php echo $panel->id ?>">
<?php $panel->run(); ?>
</div>
</div>
<?php } ?>
<?php endforeach; ?>
</div>