We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 418e6b0 commit 66d0280Copy full SHA for 66d0280
src/Template/Element/aside/user-panel.ctp
@@ -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
+?>
10
<div class="user-panel">
11
<div class="pull-left image">
12
<?php echo $this->Html->image('user2-160x160.jpg', array('class' => 'img-circle', 'alt' => 'User Image')); ?>
@@ -6,4 +15,5 @@
15
<p>Alexander Pierce</p>
16
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
17
</div>
-</div>
18
+</div>
19
+<?php } ?>
0 commit comments