| | |
| | | <?php |
| | | |
| | | use JVBase\meta\Form; |
| | | use JVBase\utility\Features; |
| | | use JVBase\base\Site; |
| | | use JVBase\utility\Image; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | |
| | | |
| | | function jvbClientQueue():void |
| | | { |
| | | if (!Features::forSite()->has('dashboard') || !is_user_logged_in()) { |
| | | if (!Site::has('dashboard') || !is_user_logged_in()) { |
| | | return; |
| | | } |
| | | |
| | |
| | | */ |
| | | function jvbNotificationMenu():string |
| | | { |
| | | if (jvbSiteHasNotifications() && is_user_logged_in()) { |
| | | $membership = Site::membership(); |
| | | if ($membership && $membership->has('notifications') && is_user_logged_in()) { |
| | | |
| | | ob_start(); |
| | | ?> |
| | |
| | | */ |
| | | function jvbHelpMenu():string |
| | | { |
| | | if (!Features::forSite()->has('helpMenu')) { |
| | | if (!Site::has('helpMenu')) { |
| | | return ''; |
| | | } |
| | | $out = get_option(BASE.'help_menu'); |
| | |
| | | |
| | | ?> |
| | | <nav id="<?=$id?>" class="on-this-page index"> |
| | | <label>Jump to: |
| | | <button type="button" aria-label="Show Index" title="Show Index" class="toggle" aria-expanded="false"> |
| | | <?= jvbIcon('plus-square') ?> |
| | | </button> |
| | | </label> |
| | | <button type="button" aria-label="Show Index" title="Show Index" class="toggle main" aria-expanded="false"> |
| | | <span>Jump To:</span><?= jvbIcon('plus-square') ?> |
| | | </button> |
| | | <ul> |
| | | <li> |
| | | <li id="back-to-top"> |
| | | <a href="#top" title="Back to Top"> |
| | | <?= jvbIcon('caret-circle-up') ?> |
| | | <?= jvbIcon('caret-circle-up') ?><span>Back to Top</span> |
| | | </a> |
| | | </li> |
| | | <?php |