admin.php
1 year ago
clean.php
1 year ago
full_modal.php
1 year ago
mailer.php
1 year ago
print.php
1 year ago
pure.php
1 year ago
wizard.php
1 year ago
admin.php
77 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <div class="latepoint-all-wrapper <?php echo esc_attr(implode(' ', $extra_css_classes)); ?>"> |
| 7 | <?php do_action('latepoint_all_wrapper_open'); ?> |
| 8 | <div class="latepoint-content-and-menu-w"> |
| 9 | <?php include(LATEPOINT_VIEWS_PARTIALS_ABSPATH . '_side_menu.php'); ?> |
| 10 | <div class="latepoint-content-w"> |
| 11 | <?php include(LATEPOINT_VIEWS_PARTIALS_ABSPATH . '_top_bar.php'); ?> |
| 12 | <?php if(isset($pre_page_back_link) && !empty($pre_page_back_link)){ ?> |
| 13 | <div class="pre-page-back-link-w"> |
| 14 | <a href="<?php echo esc_url($pre_page_back_link); ?>" class="pre-page-back-link"> |
| 15 | <i class="latepoint-icon latepoint-icon-arrow-left"></i> |
| 16 | <span><?php esc_html_e('Back to agent profile', 'latepoint');?></span> |
| 17 | </a> |
| 18 | </div> |
| 19 | <?php } ?> |
| 20 | <?php if(isset($pre_page_header) && !empty($pre_page_header)){ ?> |
| 21 | <h1 class="pre-page-header"><?php echo esc_html($pre_page_header); ?></h1> |
| 22 | <?php } ?> |
| 23 | <?php if(isset($page_header) && !empty($page_header)){ ?> |
| 24 | <div class="page-header-w"> |
| 25 | <?php if(isset($page_header) && !empty($page_header)){ |
| 26 | if(is_array($page_header)){ |
| 27 | if(count($page_header) > 1){ |
| 28 | $condensed = count($page_header) > 5 ? 'condensed' : ''; |
| 29 | echo '<div class="os-page-tabs-w '.esc_attr($condensed).'">'; |
| 30 | echo '<ul class="os-page-tabs">'; |
| 31 | foreach($page_header as $tab){ |
| 32 | $is_active_class = OsRouterHelper::link_has_route($route_name, $tab['link']) ? 'os-page-tab-active' : ''; |
| 33 | $highlight_class = (isset($tab['show_notice']) && $tab['show_notice']) ? 'latepoint-show-notice' : ''; |
| 34 | echo '<li class="'.esc_attr($is_active_class).' '.esc_attr($highlight_class).'"><a href="'.esc_url($tab['link']).'">'.esc_html($tab['label']).'</a></li>'; |
| 35 | } |
| 36 | echo '</div>'; |
| 37 | }else{ |
| 38 | echo '<h1 class="page-header-main">'.esc_html($page_header[0]['label']).'</h1>'; |
| 39 | } |
| 40 | }else{ |
| 41 | echo '<h1 class="page-header-main">'.esc_html($page_header).'</h1>'; |
| 42 | } |
| 43 | } ?> |
| 44 | <?php |
| 45 | if(isset($breadcrumbs) && (count($breadcrumbs) > 1)){ |
| 46 | echo '<div class="breadcrumbs-w"><ul class="breadcrumbs">'; |
| 47 | foreach($breadcrumbs as $crumb){ |
| 48 | if($crumb['link']){ |
| 49 | echo '<li><a href="'.esc_url($crumb['link']).'">'.esc_html($crumb['label']).'</a></li>'; |
| 50 | }else{ |
| 51 | echo '<li><span>'.esc_html($crumb['label']).'</span></li>'; |
| 52 | } |
| 53 | } |
| 54 | echo '</ul></div>'; |
| 55 | }?> |
| 56 | </div><?php |
| 57 | } ?> |
| 58 | <div class="latepoint-content <?php echo empty($content_no_padding) ? '' : 'no-padding'; ?>"> |
| 59 | <?php include($view); ?> |
| 60 | </div> |
| 61 | <div class="latepoint-template-variables"> |
| 62 | <div class="close-template-variables-panel"><i class="latepoint-icon latepoint-icon-x"></i></div> |
| 63 | <h3><?php esc_html_e('Available Smart Variables', 'latepoint'); ?></h3> |
| 64 | <div class="latepoint-template-variables-i"> |
| 65 | <?php include(LATEPOINT_ABSPATH.'lib/views/shared/_template_variables.php'); ?> |
| 66 | </div> |
| 67 | </div> |
| 68 | <div class="latepoint-layout-template-variables"> |
| 69 | <div class="close-layout-template-variables-panel"><i class="latepoint-icon latepoint-icon-x"></i></div> |
| 70 | <h3><?php esc_html_e('Available Layout Variables', 'latepoint'); ?></h3> |
| 71 | <div class="latepoint-template-variables-i"> |
| 72 | <?php include(LATEPOINT_ABSPATH.'lib/views/shared/_business_variables.php'); ?> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |