| | |
| | | function jvbHelpMenu():string |
| | | { |
| | | $out = get_option(BASE.'help_menu'); |
| | | |
| | | if ($out === false) { |
| | | $open = '<li><a href="'; |
| | | $mid = '">'; |
| | |
| | | $i = 0; |
| | | |
| | | foreach ($tabs as $slug => $config) { |
| | | if (!array_key_exists('content', $config) || empty($config['content'])) { |
| | | error_log('No content for tab: '.$slug); |
| | | continue; |
| | | } |
| | | //Header |
| | | $active = ($i === 0) ? ' active' : ''; |
| | | $selected = ($i === 0) ? 'true' : 'false'; |
| | |
| | | <?php |
| | | } |
| | | |
| | | function jvbFormStatus(string $message = '') { |
| | | return '<div class="restore-form col" hidden> |
| | | <h3>Looks like we left things hanging...</h3> |
| | | <p>We\'ve filled in the fields with what you put last time.</p> |
| | | <div class="actions"> |
| | | <button type="button" data-action="clear-form"> |
| | | '.jvbIcon('arrows-clockwise').' |
| | | <span>Start Over</span> |
| | | </button> |
| | | <button type="button" data-action="dismiss-restore"> |
| | | '.jvbIcon('close').' |
| | | <span>Dismiss</span> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="fstatus row" hidden> |
| | | <div class="spinner"></div> |
| | | <p class="message">'.$message.'</p> |
| | | </div>'; |
| | | } |