PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 3.11.0
Image Source Control Lite – Show Image Credits and Captions v3.11.0
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
image-source-control-isc / admin / templates / header.php

header.php in Image Source Control Lite – Show Image Credits and Captions 3.11.0, at admin/templates/header.php

48 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Header on admin pages
4 *
5 * @var string $title page title.
6 * @var string $screen_id ID of the current screen.
7 */
8 ?>
9 <div id="isc-header">
10 <div id="isc-header-wrapper">
11 <img src="<?php echo esc_url( ISCBASEURL ) . 'admin/assets/images/image_source_control_logo_positive_512px.png'; ?>" width="256" height="28" alt="<?php esc_html_e( 'Image Source Control', 'image-source-control-isc' ); ?>"/>
12 <h1><?php echo esc_html( $title ); ?></h1>
13 </div>
14 <div id="isc-header-links">
15 <?php
16 if ( ! \ISC\Plugin::is_pro() ) :
17 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
18 echo ISC\Admin_Utils::get_pro_link( 'header-pro' );
19 endif;
20 ?>
21 <?php
22 switch ( $screen_id ) :
23 case 'settings_page_isc-settings':
24 if ( \ISC\Plugin::is_module_enabled( 'image_sources' ) ) :
25 ?>
26 <a href="<?php echo esc_url( admin_url( 'upload.php?page=isc-sources' ) ); ?>"><?php esc_html_e( 'Tools', 'image-source-control-isc' ); ?></a>
27 <?php
28 endif;
29 break;
30 case 'media_page_isc-sources':
31 ?>
32 <a href="<?php echo esc_url( admin_url( 'options-general.php?page=isc-settings' ) ); ?>"><?php esc_html_e( 'Settings', 'image-source-control-isc' ); ?></a>
33 <?php
34 break;
35 default:
36 if ( \ISC\Plugin::is_module_enabled( 'image_sources' ) ) :
37 ?>
38 <a href="<?php echo esc_url( admin_url( 'upload.php?page=isc-sources' ) ); ?>"><?php esc_html_e( 'Tools', 'image-source-control-isc' ); ?></a>
39 <?php endif; ?>
40 <a href="<?php echo esc_url( admin_url( 'options-general.php?page=isc-settings' ) ); ?>"><?php esc_html_e( 'Settings', 'image-source-control-isc' ); ?></a>
41 <?php endswitch; ?>
42 <a href="<?php echo esc_url( ISC\Admin_Utils::get_manual_url( 'header-manual' ) ); ?>" target="_blank"><?php esc_html_e( 'Manual', 'image-source-control-isc' ); ?></a>
43 </div>
44 </div>
45 <div class="wrap">
46 <!-- the empty h2 is intentional since WordPress admin moves admin notifications toward the first h2 -->
47 <h2 style="display: none;"></h2>
48 </div>