ad-list
3 years ago
conditions
3 years ago
notices
3 years ago
settings
3 years ago
upgrades
3 years ago
ad-conditions-string-operators.php
6 years ago
ad-group-edit.php
6 years ago
ad-group-list-ads.php
6 years ago
ad-group-list-form-row.php
3 years ago
ad-group-list-header.php
6 years ago
ad-group-list-row.php
3 years ago
ad-group.php
3 years ago
ad-info-after-textarea.php
4 years ago
ad-info-bottom.php
4 years ago
ad-info-top.php
3 years ago
ad-list-filters.php
4 years ago
ad-list-no-ads.php
5 years ago
ad-main-metabox.php
4 years ago
ad-output-metabox.php
3 years ago
ad-parameters-metabox.php
5 years ago
ad-parameters-size.php
6 years ago
ad-submitbox-meta.php
4 years ago
ad-usage-metabox.php
3 years ago
ad-usage-notes.php
3 years ago
ad-usage.php
3 years ago
checks.php
5 years ago
feedback-disable.php
6 years ago
frontend-picker-script.php
5 years ago
gadsense-dashboard.php
4 years ago
group-hints.php
3 years ago
header.php
3 years ago
index.php
7 years ago
modal.php
3 years ago
overview-addons-line.php
6 years ago
overview-notice-row.php
4 years ago
overview-notices.php
6 years ago
overview-widget.php
6 years ago
overview.php
4 years ago
placement-form.php
3 years ago
placement-injection-top.php
4 years ago
placement-types.php
3 years ago
placements-ad-label-position.php
3 years ago
placements-ad-label.php
6 years ago
placements-content-index.php
5 years ago
placements-inline-css.php
5 years ago
placements-item.php
4 years ago
placements.php
3 years ago
post-ad-settings-metabox.php
4 years ago
setting-license.php
4 years ago
settings.php
3 years ago
support-callout.php
4 years ago
support.php
4 years ago
header.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Header on admin pages |
| 4 | * |
| 5 | * @var string $title page title. |
| 6 | * @var WP_Screen $screen Current screen |
| 7 | * @var string $reset_href href attribute for the reset button |
| 8 | * @var bool $show_filter_button if the filter button is visible |
| 9 | * @var string $filter_disabled if the visible filter button is disabled |
| 10 | * @var string $new_button_label text displayed on the New button |
| 11 | * @var string $new_button_href href of the New button |
| 12 | * @var string $new_button_id id of the New button |
| 13 | * @var string $show_screen_options if to show the Screen Options button |
| 14 | * @var string $manual_url target of the manual link |
| 15 | */ |
| 16 | ?> |
| 17 | <div id="advads-header"> |
| 18 | <div id="advads-header-wrapper"> |
| 19 | <div> |
| 20 | <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> |
| 21 | <h1><?php echo esc_html( $title ); ?></h1> |
| 22 | </div> |
| 23 | <div id="advads-header-actions"> |
| 24 | <?php if ( $new_button_label ) : ?> |
| 25 | <a href="<?php echo esc_url( $new_button_href ); ?>" class="header-action button advads-button-primary" id="<?php echo esc_attr( $new_button_id ); ?>"> |
| 26 | <span class="dashicons dashicons-plus"></span><?php echo esc_html( $new_button_label ); ?> |
| 27 | </a> |
| 28 | <?php endif; ?> |
| 29 | </div> |
| 30 | <div id="advads-header-links"> |
| 31 | <?php if ( $reset_href ) : ?> |
| 32 | <a href="<?php echo esc_url( $reset_href ); ?>" class="button advads-button-secondary advads-button-icon-right"> |
| 33 | <?php esc_html_e( 'Reset', 'advanced-ads' ); ?><span class="dashicons dashicons-undo"></span> |
| 34 | </a> |
| 35 | <?php endif; ?> |
| 36 | <?php if ( $show_filter_button ) : ?> |
| 37 | <a id="advads-show-filters" class="button advads-button-secondary advads-button-icon-right <?php echo esc_attr( $filter_disabled ); ?>"> |
| 38 | <?php esc_html_e( 'Filters', 'advanced-ads' ); ?><span class="dashicons dashicons-filter"></span> |
| 39 | </a> |
| 40 | <?php endif; ?> |
| 41 | <?php if ( $show_screen_options ) : ?> |
| 42 | <a id="advads-show-screen-options" class="button advads-button-secondary"><?php esc_html_e( 'Screen Options', 'advanced-ads' ); ?></a> |
| 43 | <?php endif; ?> |
| 44 | <?php if ( ! defined( 'AAP_VERSION' ) ) : ?> |
| 45 | <a href="<?php echo esc_url( ADVADS_URL ); ?>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"> |
| 46 | <?php esc_html_e( 'See all Add-ons', 'advanced-ads' ); ?><span class="dashicons dashicons-star-filled"></span> |
| 47 | </a> |
| 48 | <?php endif; ?> |
| 49 | <a href="<?php echo esc_url( ADVADS_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"> |
| 50 | <?php esc_html_e( 'Manual', 'advanced-ads' ); ?><span class="dashicons dashicons-welcome-learn-more"></span> |
| 51 | </a> |
| 52 | </div> |
| 53 | </div> |
| 54 | </div> |
| 55 |