| | |
| | | <?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 (Features::forMembership()->has('notifications') && 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'); |