settings
5 years ago
adsense-account.php
1 year ago
adsense-ad-parameters.php
5 months ago
adsense-report.php
3 years ago
auto-ads-video.php
6 years ago
borlabs-cookie-auto-ads-warning.php
3 years ago
connect-adsense.php
1 year ago
external-ads-adsense.php
6 years ago
external-ads-links.php
1 year ago
external-ads-list.php
1 year ago
external-ads-links.php
61 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WARNING: be careful when modifying the DOM of this document! |
| 4 | * there are some jquery calls that rely on this structure! |
| 5 | * |
| 6 | * @package AdvancedAds |
| 7 | */ |
| 8 | |
| 9 | $is_account_connected = $network->is_account_connected(); |
| 10 | ?> |
| 11 | <p> |
| 12 | <span class="mapi-insert-code"> |
| 13 | |
| 14 | <a href="#"> |
| 15 | <?php |
| 16 | printf( |
| 17 | /* translators: 1: The name of an ad network. */ |
| 18 | esc_html__( 'Insert new %1$s code', 'advanced-ads' ), |
| 19 | esc_html( $network->get_display_name() ) |
| 20 | ); |
| 21 | ?> |
| 22 | </a> |
| 23 | </span> |
| 24 | <?php if ( Advanced_Ads_Checks::php_version_minimum() ) : ?> |
| 25 | <?php if ( $is_account_connected ) : ?> |
| 26 | <span class="mapi-open-selector"> |
| 27 | <span class="mapi-optional-or"><?php esc_html_e( 'or', 'advanced-ads' ); ?></span> |
| 28 | <a href="#" class="prevent-default"><?php esc_html_e( 'Get ad code from your linked account', 'advanced-ads' ); ?></a> |
| 29 | </span> |
| 30 | <?php if ( $network->supports_manual_ad_setup() ) : ?> |
| 31 | <span class="mapi-close-selector-link"> |
| 32 | <?php esc_html_e( 'or', 'advanced-ads' ); ?><a href="#" class="prevent-default"> |
| 33 | <?php |
| 34 | printf( |
| 35 | /* translators: 1: The name of an ad network. */ |
| 36 | esc_html__( 'Set up %1$s code manually', 'advanced-ads' ), |
| 37 | esc_html( $network->get_display_name() ) |
| 38 | ); |
| 39 | ?> |
| 40 | </a> |
| 41 | </span> |
| 42 | <?php endif; ?> |
| 43 | <?php else : ?> |
| 44 | <?php |
| 45 | esc_html_e( 'or', 'advanced-ads' ); |
| 46 | $connect_link_label = sprintf( |
| 47 | /* translators: 1: The name of an ad network. */ |
| 48 | esc_html__( 'Connect to %1$s', 'advanced-ads' ), |
| 49 | esc_html( $network->get_display_name() ) |
| 50 | ); |
| 51 | ?> |
| 52 | <a href="<?php echo esc_url( $network->get_settings_href() ); ?>" style="padding:0 10px;font-weight:bold;"><?php echo esc_html( $connect_link_label ); ?></a> |
| 53 | <?php endif; ?> |
| 54 | <?php endif; ?> |
| 55 | </p> |
| 56 | <?php if ( $is_account_connected && ! Advanced_Ads_Checks::php_version_minimum() ) : ?> |
| 57 | <p class="advads-notice-inline advads-error"><?php esc_html_e( 'Can not connect AdSense account. PHP version is too low.', 'advanced-ads' ); ?></p> |
| 58 | <?php |
| 59 | endif; |
| 60 | |
| 61 |