ads
3 months ago
groups
1 week ago
metaboxes
1 year ago
placements
2 months ago
screens
3 months ago
settings
1 year ago
support
2 months ago
tables
1 week ago
tools
1 week ago
upgrades
1 year ago
widgets
1 week ago
bulk-edit.php
3 months ago
feedback-disable.php
1 year ago
header-tabs.php
3 months ago
header.php
3 months ago
index.php
2 years ago
manual-link.php
1 year ago
page-bulk-edit.php
1 year ago
page-quick-edit.php
1 year ago
quick-edit.php
2 months ago
screen-options.php
3 months ago
table-views-list.php
3 months ago
welcome-box.php
1 year ago
header.php
47 lines
| 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 string $breadcrumb_title Breadcrumb title. |
| 10 | * @var string $manual_url Manual URL. |
| 11 | * @var bool $breadcrumb Whether to show breadcrumb or not. |
| 12 | * @var Screen $current_screen Current screen. |
| 13 | */ |
| 14 | |
| 15 | ?> |
| 16 | <div id="advads-header" class="relative z-10"> |
| 17 | <div class="inner-wrap flex items-center -ml-5 gap-x-4 p-5 bg-white shadow-md"> |
| 18 | <div class="flex items-center gap-x-4"> |
| 19 | <svg class="inline size-8" 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> |
| 20 | <h1 class="m-0 font-light"><?php echo esc_html( $title ); ?></h1> |
| 21 | <?php $current_screen->header_actions(); ?> |
| 22 | </div> |
| 23 | |
| 24 | <div class="flex items-center gap-x-4 justify-end ml-auto"> |
| 25 | <?php if ( ! defined( 'AAP_VERSION' ) ) : ?> |
| 26 | <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="button button-primary advads-button"> |
| 27 | <span><?php esc_html_e( 'See all Add-ons', 'advanced-ads' ); ?></span> |
| 28 | <span class="dashicons dashicons-star-filled"></span> |
| 29 | </a> |
| 30 | <?php endif; ?> |
| 31 | <a href="<?php echo esc_url( $manual_url ); ?>" target="_blank" class="advads-header-manual-link"> |
| 32 | <span class="dashicons dashicons-editor-help"></span> |
| 33 | </a> |
| 34 | </div> |
| 35 | </div> |
| 36 | |
| 37 | <?php if ( $breadcrumb ) : ?> |
| 38 | <div class="text-[11px] text-gray-500 mt-3 mb-6 flex items-center gap-x-2 uppercase font-medium"> |
| 39 | <a class="no-underline text-gray-500 hover:underline" href="<?php echo esc_url( admin_url( 'admin.php?page=advanced-ads' ) ); ?>"><?php esc_html_e( 'Dashboard', 'advanced-ads' ); ?></a> |
| 40 | <span>/</span> |
| 41 | <span><?php echo esc_html( $breadcrumb_title ); ?></span> |
| 42 | </div> |
| 43 | <?php else : ?> |
| 44 | <div class="mb-6"></div> |
| 45 | <?php endif; ?> |
| 46 | </div> |
| 47 |