PluginProbe
Advanced Ads – Ad Manager & AdSense / 2.0.9
Advanced Ads – Ad Manager & AdSense v2.0.9
2.0.26 2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 All 348 releases
advanced-ads / views / admin / header.php
header.php
63 lines 3.6 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 * @package AdvancedAds
6 * @author Advanced Ads <info@wpadvancedads.com>
7 *
8 * @var string $title page title.
9 * @var WP_Screen $screen Current screen
10 * @var string $reset_href href attribute for the reset button
11 * @var bool $show_filter_button if the filter button is visible
12 * @var string $filter_disabled if the visible filter button is disabled
13 * @var string $new_button_label text displayed on the New button
14 * @var string $new_button_href href of the New button
15 * @var string $new_button_id id of the New button
16 * @var string $show_screen_options if to show the Screen Options button
17 * @var string $manual_url target of the manual link
18 * @var string $tooltip description that will show in a tooltip
19 */
20
21 ?>
22 <div id="advads-header">
23 <div id="advads-header-wrapper">
24 <div>
25 <svg class="advads-header-logo" xmlns="http://www.w3.org/2000/svg" x="0" y="0" height="30" width="30" viewBox="0 0 351.7 352" xml:space="preserve"><path d="M252.2 149.6v125.1h-174.9v-174.9H202.4c-5.2-11.8-8-24.7-8-38.5s3-26.7 8-38.5h-37.7H0v267.9l8.8 8.8 -8.8-8.8C0 324.5 27.5 352 61.3 352l0 0h103.4 164.5V149.3c-11.8 5.2-25 8.3-38.8 8.3C276.9 157.6 264 154.6 252.2 149.6z" fill="#1C1B3A"/><circle cx="290.4" cy="61.3" r="61.3" fill="#0E75A4"/></svg>
26 <h1><?php echo esc_html( $title ); ?></h1>
27 </div>
28 <div id="advads-header-actions">
29 <?php if ( '' !== $new_button_label ) : ?>
30 <a href="<?php echo esc_url( $new_button_href ); ?>" class="header-action button advads-button-primary" id="<?php echo esc_attr( $new_button_id ); ?>">
31 <span class="dashicons dashicons-plus"></span><?php echo esc_html( $new_button_label ); ?>
32 </a>
33 <?php endif; ?>
34 <?php if ( '' !== $tooltip ) : ?>
35 <span class="advads-help"><span class="advads-tooltip"><?php echo esc_html( $tooltip ); ?></span></span>
36 <?php endif; ?>
37 </div>
38 <div id="advads-header-links">
39 <?php if ( '' !== $reset_href ) : ?>
40 <a id="advads-reset-filters" href="<?php echo esc_url( $reset_href ); ?>" class="button advads-button-secondary advads-button-icon-right">
41 <?php esc_html_e( 'Reset', 'advanced-ads' ); ?><span class="dashicons dashicons-undo"></span>
42 </a>
43 <?php endif; ?>
44 <?php if ( $show_filter_button ) : ?>
45 <button id="advads-show-filters" class="button advads-button-secondary advads-button-icon-right <?php echo esc_attr( $filter_disabled ); ?>" <?php disabled( $filter_disabled, 'disabled' ); ?>>
46 <?php esc_html_e( 'Filters', 'advanced-ads' ); ?><span class="dashicons dashicons-filter"></span>
47 </button>
48 <?php endif; ?>
49 <?php if ( $show_screen_options ) : ?>
50 <button id="advads-show-screen-options" class="button advads-button-secondary"><?php esc_html_e( 'Screen Options', 'advanced-ads' ); ?></button>
51 <?php endif; ?>
52 <?php if ( ! defined( 'AAP_VERSION' ) ) : ?>
53 <a href="https://wpadvancedads.com/add-ons/?utm_source=advanced-ads&utm_medium=link&utm_campaign=header-upgrade-<?php echo esc_attr( $screen->id ); ?>" target="_blank" class="advads-upgrade button advads-button-secondary advads-button-icon-right">
54 <?php esc_html_e( 'See all Add-ons', 'advanced-ads' ); ?><span class="dashicons dashicons-star-filled"></span>
55 </a>
56 <?php endif; ?>
57 <a href="<?php echo esc_url( $manual_url ); ?>?utm_source=advanced-ads&utm_medium=link&utm_campaign=header-manual-<?php echo esc_attr( $screen->id ); ?>" target="_blank" class="button advads-button-secondary advads-button-icon-right">
58 <?php esc_html_e( 'Manual', 'advanced-ads' ); ?><span class="dashicons dashicons-welcome-learn-more"></span>
59 </a>
60 </div>
61 </div>
62 </div>
63