mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Update layout.html.php
This commit is contained in:
parent
1e967869a3
commit
295ea2dcea
1 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,11 @@
|
|||
$user = $_SESSION[site_url()]['user'];
|
||||
$role = user('role', $user);
|
||||
$author = get_author($user);
|
||||
if (isset($author[0])) {
|
||||
$author = $author[0];
|
||||
} else {
|
||||
$author = default_profile($user);
|
||||
}
|
||||
if (isset($_GET['search'])) {
|
||||
$search = _h($_GET['search']);
|
||||
$url = site_url() . 'search/' . remove_accent($search);
|
||||
|
|
@ -55,7 +60,7 @@ if (isset($_GET['search'])) {
|
|||
<!-- Sidebar user panel (optional) -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img src="<?php echo $author[0]->avatar; ?>" class="img-circle elevation-2" alt="HTMLy logo">
|
||||
<img src="<?php echo $author->avatar; ?>" class="img-circle elevation-2" alt="HTMLy logo">
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="<?php echo site_url();?>admin" class="d-block"><?php echo i18n('Dashboard')?></a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue