PluginProbe
Cool Timeline (Horizontal & Vertical Timeline) / trunk
Cool Timeline (Horizontal & Vertical Timeline) vtrunk
3.4.0 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 2.2.3 2.3.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.6.1 2.7.1 2.8.3 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 2.9.9 3.0.0 All 79 releases
cool-timeline / admin / codestar-framework / views / header.php

header.php in Cool Timeline (Horizontal & Vertical Timeline) trunk, at admin/codestar-framework/views/header.php

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