diff options
Diffstat (limited to 'views/layout.php')
-rw-r--r-- | views/layout.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/views/layout.php b/views/layout.php index 0850537..450d982 100644 --- a/views/layout.php +++ b/views/layout.php @@ -77,10 +77,18 @@ <ul class="nav navbar-nav"> <?php if(session('me')) { ?> - <li><a href="/editor">📄 Editor</a></li> - <li><a href="/new">✏️ Note</a></li> - <li><a href="/bookmark">🔖 Bookmark</a></li> - <li><a href="/favorite">👍 Favorite</a></li> + <?php if(supports_post_type($this->user, 'article')): ?> + <li><a href="/editor">📄 Editor</a></li> + <?php endif; ?> + <?php if(supports_post_type($this->user, 'note')): ?> + <li><a href="/new">✏️ Note</a></li> + <?php endif; ?> + <?php if(supports_post_type($this->user, 'bookmark')): ?> + <li><a href="/bookmark">🔖 Bookmark</a></li> + <?php endif; ?> + <?php if(supports_post_type($this->user, 'like')): ?> + <li><a href="/favorite">👍 Favorite</a></li> + <?php endif; ?> <?php } ?> <li><a href="/docs">Docs</a></li> |