Skip to content

Commit 66d0280

Browse files
committed
Add Elements customizable
1 parent 418e6b0 commit 66d0280

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<?php
2+
$file = ROOT . DS . 'src' . DS . 'Template' . DS . 'Element' . DS . 'aside' . DS . 'user-panel.ctp';
3+
4+
if (file_exists($file)) {
5+
ob_start();
6+
include_once $file;
7+
echo ob_get_clean();
8+
} else {
9+
?>
110
<div class="user-panel">
211
<div class="pull-left image">
312
<?php echo $this->Html->image('user2-160x160.jpg', array('class' => 'img-circle', 'alt' => 'User Image')); ?>
@@ -6,4 +15,5 @@
615
<p>Alexander Pierce</p>
716
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
817
</div>
9-
</div>
18+
</div>
19+
<?php } ?>

0 commit comments

Comments
 (0)