PluginProbe
Document Embedder – let visitors read files without downloading / 1.8.6
Document Embedder – let visitors read files without downloading v1.8.6
2.3.1 2.3.0 2.2.1 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.3 1.7.4 1.7.6 1.7.9 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 2.0.0 2.0.1 2.0.2 All 30 releases
document-emberdder / admin / framework / views / header.php

header.php in Document Embedder – let visitors read files without downloading 1.8.6, at admin/framework/views/header.php

51 lines 2.0 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 $demo = get_option( 'csf_demo_mode', false );
4 $text = ( ! empty( $demo ) ) ? 'Deactivate' : 'Activate';
5 $status = ( ! empty( $demo ) ) ? 'deactivate' : 'activate';
6 $class = ( ! empty( $demo ) ) ? ' csf-warning-primary' : '';
7 $section = ( ! empty( $_GET[ 'section' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'section' ] ) ) : 'about';
8 $links = array(
9 'about' => 'About',
10 'quickstart' => 'Quick Start',
11 'documentation' => 'Documentation',
12 'free-vs-premium' => 'Free vs Premium',
13 'support' => 'Support',
14 'relnotes' => 'Release Notes',
15 );
16
17 ?>
18 <div class="csf-welcome csf-welcome-wrap">
19
20 <h1>Welcome to Codestar Framework v<?php echo esc_attr( CSF::$version ); ?></h1>
21
22 <p class="csf-about-text">A Simple and Lightweight WordPress Option Framework for Themes and Plugins</p>
23
24 <p class="csf-demo-button"><a href="<?php echo esc_url( add_query_arg( array( 'csf-demo' => $status ) ) ); ?>" class="button button-primary<?php echo esc_attr( $class ); ?>"><?php echo esc_attr( $text ); ?> Demo</a></p>
25
26 <div class="csf-logo">
27 <div class="csf--effects"><i></i><i></i><i></i><i></i></div>
28 <div class="csf--wp-logos">
29 <div class="csf--wp-logo"></div>
30 <div class="csf--wp-plugin-logo"></div>
31 </div>
32 <div class="csf--text">Codestar Framework</div>
33 <div class="csf--text csf--version">v<?php echo esc_attr( CSF::$version ); ?></div>
34 </div>
35
36 <h2 class="nav-tab-wrapper wp-clearfix">
37 <?php
38
39 foreach ( $links as $key => $link ) {
40
41 if ( CSF::$premium && $key === 'free-vs-premium' ) { continue; }
42
43 $activate = ( $section === $key ) ? ' nav-tab-active' : '';
44
45 echo '<a href="'. esc_url( add_query_arg( array( 'page' => 'csf-welcome', 'section' => $key ), admin_url( 'tools.php' ) ) ) .'" class="nav-tab'. esc_attr( $activate ) .'">'. esc_attr( $link ) .'</a>';
46
47 }
48
49 ?>
50 </h2>
51