PluginProbe
Easy Hotel – Powerful Hotel Booking / trunk
Easy Hotel – Powerful Hotel Booking vtrunk
2.0.8 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.9.9 1.9.8 1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 All 110 releases
easy-hotel / admin / includes / framework / views / header.php

header.php in Easy Hotel – Powerful Hotel Booking trunk, at admin/includes/framework/views/header.php

57 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
2
3
4 // Verify nonce for security
5 if (isset($_POST['eshb_save_meta'])) {
6 wp_verify_nonce( sanitize_text_field(wp_unslash($_POST['eshb_save_meta'])), 'eshb_save_meta_box_nonce');
7 }
8
9 $eshb_demo = get_option( 'eshb_demo_mode', false );
10 $eshb_text = ( ! empty( $eshb_demo ) ) ? 'Deactivate' : 'Activate';
11 $eshb_status = ( ! empty( $eshb_demo ) ) ? 'deactivate' : 'activate';
12 $eshb_class = ( ! empty( $eshb_demo ) ) ? ' csf-warning-primary' : '';
13 $eshb_section = ( ! empty( $_GET[ 'section' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'section' ] ) ) : 'about';
14 $eshb_links = array(
15 'about' => 'About',
16 'quickstart' => 'Quick Start',
17 'documentation' => 'Documentation',
18 'free-vs-premium' => 'Free vs Premium',
19 'support' => 'Support',
20 'relnotes' => 'Release Notes',
21 );
22
23 ?>
24 <div class="eshb-welcome eshb-welcome-wrap">
25
26 <h1>Welcome to Codestar Framework v<?php echo esc_attr( ESHB::$version ); ?></h1>
27
28 <p class="csf-about-text">A Simple and Lightweight WordPress Option Framework for Themes and Plugins</p>
29
30 <p class="csf-demo-button"><a href="<?php echo esc_url( add_query_arg( array( 'csf-demo' => $eshb_status ) ) ); ?>" class="button button-primary<?php echo esc_attr( $eshb_class ); ?>"><?php echo esc_attr( $eshb_text ); ?> Demo</a></p>
31
32 <div class="csf-logo">
33 <div class="csf--effects"><i></i><i></i><i></i><i></i></div>
34 <div class="csf--wp-logos">
35 <div class="csf--wp-logo"></div>
36 <div class="csf--wp-plugin-logo"></div>
37 </div>
38 <div class="csf--text">Codestar Framework</div>
39 <div class="csf--text csf--version">v<?php echo esc_attr( ESHB::$version ); ?></div>
40 </div>
41
42 <h2 class="nav-tab-wrapper wp-clearfix">
43 <?php
44
45 foreach ( $eshb_links as $eshb_key => $eshb_link ) {
46
47 if ( ESHB::$premium && $eshb_key === 'free-vs-premium' ) { continue; }
48
49 $eshb_activate = ( $eshb_section === $eshb_key ) ? ' nav-tab-active' : '';
50
51 echo '<a href="'. esc_url( add_query_arg( array( 'page' => 'eshb-welcome', 'section' => $eshb_key ), admin_url( 'tools.php' ) ) ) .'" class="nav-tab'. esc_attr( $eshb_activate ) .'">'. esc_attr( $eshb_link ) .'</a>';
52
53 }
54
55 ?>
56 </h2>
57