PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.11.2
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.11.2
1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 1.8.0 All 210 releases
charitable / includes / admin / templates / header.php

header.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.11.2, at includes/admin/templates/header.php

44 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7
8 /**
9 * Outputs the Charitable admin header.
10 *
11 * @package Charitable
12 * @since 1.8.0
13 * @version 1.8.8.6
14 */
15
16 // if there are new notifications add the indicator to the menu title.
17 $charitable_notification_count = class_exists( 'Charitable_Notifications' ) ? Charitable_Notifications::get_instance()->get_new_notifications_count() : 0;
18 $charitable_display_text = $charitable_notification_count > 0 ? ( $charitable_notification_count > 9 ? '9+' : $charitable_notification_count ) : '';
19 $charitable_indictor_html = $charitable_notification_count > 0 ? '<span class="round number">' . $charitable_display_text . '</span>' : '';
20 ?>
21
22 <?php do_action( 'charitable_admin_before_header' ); ?>
23
24 <div id="charitable-admin-header" class="charitable-admin-header charitable-campaign-header">
25 <div class="charitable-admin-header-interior">
26
27 <h1 class="charitable-logo" id="charitable-logo">
28 <a href="<?php echo esc_url( admin_url( 'admin.php?page=charitable' ) ); ?>"><img src="<?php echo esc_url( charitable()->get_path( 'directory', false ) . 'assets/images/charitable-header-logo.png' ); ?>" alt="<?php esc_html_e( 'Charitable', 'charitable' ); ?>" width="200" height="38" /></a>
29 </h1>
30 <div class="charitable-header-logos">
31 <ul>
32 <li><a href="#" title="<?php echo esc_html__( 'Notifications', 'charitable' ); ?>" class="charitable-header-logo charitable-notification-inbox"><?php echo ( wp_kses( $charitable_indictor_html, array( 'span' => array( 'class' => array() ) ) ) ); ?>
33 <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="charitable-notifications-icon"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.8333 2.5H4.16667C3.25 2.5 2.5 3.25 2.5 4.16667V15.8333C2.5 16.75 3.24167 17.5 4.16667 17.5H15.8333C16.75 17.5 17.5 16.75 17.5 15.8333V4.16667C17.5 3.25 16.75 2.5 15.8333 2.5ZM15.8333 15.8333H4.16667V13.3333H7.13333C7.70833 14.325 8.775 15 10.0083 15C11.2417 15 12.3 14.325 12.8833 13.3333H15.8333V15.8333ZM11.675 11.6667H15.8333V4.16667H4.16667V11.6667H8.34167C8.34167 12.5833 9.09167 13.3333 10.0083 13.3333C10.925 13.3333 11.675 12.5833 11.675 11.6667Z" fill="currentColor"></path></svg></a></li><li><a href="<?php echo esc_url( charitable_help_link() ); ?>" target="_blank" title="<?php esc_html_e( 'Help', 'charitable' ); ?>" class="charitable-header-logo charitable-notification-help"><img src="<?php echo esc_url( charitable()->get_path( 'directory', false ) . 'assets/images/icons/help.png' ); ?>" alt="<?php esc_html_e( 'Help', 'charitable' ); ?>" width="25" height="25" /></a></li>
34 </ul>
35 </div>
36
37 <?php do_action( 'charitable_admin_in_header' ); ?>
38
39 </div>
40 </div>
41
42 <?php do_action( 'charitable_admin_after_header' ); ?>
43
44 <?php do_action( 'charitable_maybe_show_plugin_notifications' ); ?>