PluginProbe
StreamCast – bring live radio to your site with a sleek player / trunk
StreamCast – bring live radio to your site with a sleek player vtrunk
2.4.5 2.4.4 trunk 1.0 1.1 2.0.0 2.1.10 2.1.2 2.1.4 2.1.5 2.1.8 2.2.1 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 All 29 releases
streamcast / vendor / codestar-framework / views / header.php

header.php in StreamCast – bring live radio to your site with a sleek player trunk, at vendor/codestar-framework/views/header.php

51 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 $demo = get_option( 'streamcast_csf_demo_mode', false );
4 $text = ( ! empty( $demo ) ) ? 'Deactivate' : 'Activate';
5 $status = ( ! empty( $demo ) ) ? 'deactivate' : 'activate';
6 $class = ( ! empty( $demo ) ) ? ' streamcast-csf-warning-primary' : '';
7 $section = ( ! empty( $_GET[ 'section' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'section' ] ) ) : 'about'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
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="streamcast-csf-welcome streamcast-csf-welcome-wrap">
19
20 <h1>Welcome to Codestar Framework v<?php echo esc_attr( STREAMCAST_STREAMCAST_CSF::$version ); ?></h1>
21
22 <p class="streamcast-csf-about-text">A Simple and Lightweight WordPress Option Framework for Themes and Plugins</p>
23
24 <p class="streamcast-csf-demo-button"><a href="<?php echo esc_url( wp_nonce_url( add_query_arg( array( 'streamcast-csf-demo' => $status ) ), 'streamcast-csf-demo-nonce' ) ); ?>" class="button button-primary<?php echo esc_attr( $class ); ?>"><?php echo esc_attr( $text ); ?> Demo</a></p>
25
26 <div class="streamcast-csf-logo">
27 <div class="streamcast-csf--effects"><i></i><i></i><i></i><i></i></div>
28 <div class="streamcast-csf--wp-logos">
29 <div class="streamcast-csf--wp-logo"></div>
30 <div class="streamcast-csf--wp-plugin-logo"></div>
31 </div>
32 <div class="streamcast-csf--text">Codestar Framework</div>
33 <div class="streamcast-csf--text streamcast-csf--version">v<?php echo esc_attr( STREAMCAST_STREAMCAST_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 ( STREAMCAST_STREAMCAST_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' => 'streamcast-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