PluginProbe
StreamCast – bring live radio to your site with a sleek player / 2.4.0
StreamCast – bring live radio to your site with a sleek player v2.4.0
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
← All changes | frameworks/codestar-framework/views/header.php +50 -50 2.3.42.4.0 View file →
@@ -1,50 +1,50 @@
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>
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'; // 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="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( wp_nonce_url( add_query_arg( array( 'csf-demo' => $status ) ), 'csf-demo-nonce' ) ); ?>" 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>