Files
roi-theme/wp-content/plugins/advanced-ads/modules/gadsense/admin/views/external-ads-links.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

61 lines
2.0 KiB
PHP
Executable File

<?php
/**
* WARNING: be careful when modifying the DOM of this document!
* there are some jquery calls that rely on this structure!
*
* @package AdvancedAds
*/
$is_account_connected = $network->is_account_connected();
?>
<p>
<span class="mapi-insert-code">
<a href="#">
<?php
printf(
/* translators: 1: The name of an ad network. */
esc_html__( 'Insert new %1$s code', 'advanced-ads' ),
esc_html( $network->get_display_name() )
);
?>
</a>
</span>
<?php if ( Advanced_Ads_Checks::php_version_minimum() ) : ?>
<?php if ( $is_account_connected ) : ?>
<span class="mapi-open-selector">
<span class="mapi-optional-or"><?php esc_html_e( 'or', 'advanced-ads' ); ?></span>
<a href="#" class="prevent-default"><?php esc_html_e( 'Get ad code from your linked account', 'advanced-ads' ); ?></a>
</span>
<?php if ( $network->supports_manual_ad_setup() ) : ?>
<span class="mapi-close-selector-link">
<?php esc_html_e( 'or', 'advanced-ads' ); ?><a href="#" class="prevent-default">
<?php
printf(
/* translators: 1: The name of an ad network. */
esc_html__( 'Set up %1$s code manually', 'advanced-ads' ),
esc_html( $network->get_display_name() )
);
?>
</a>
</span>
<?php endif; ?>
<?php else : ?>
<?php
esc_html_e( 'or', 'advanced-ads' );
$connect_link_label = sprintf(
/* translators: 1: The name of an ad network. */
esc_html__( 'Connect to %1$s', 'advanced-ads' ),
esc_html( $network->get_display_name() )
);
?>
<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>
<?php endif; ?>
<?php endif; ?>
</p>
<?php if ( $is_account_connected && ! Advanced_Ads_Checks::php_version_minimum() ) : ?>
<p class="advads-notice-inline advads-error"><?php esc_html_e( 'Can not connect AdSense account. PHP version is too low.', 'advanced-ads' ); ?></p>
<?php
endif;