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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
/**
* View to show the additional content setting for ads.txt.
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
*/
if ( $adsense_line ) : ?>
<p>
<?php
echo wp_kses(
sprintf(
/* translators: %s: The adsense line added automically by Advanced Ads. */
__( 'The following line will be added automatically because you connected your AdSense account with Advanced Ads: %s', 'advanced-ads' ),
'<br><code>' . $adsense_line . '</code>'
),
[
'br' => [],
'code' => [],
]
);
?>
</p>
<?php endif; ?>
<br />
<textarea cols="50" rows="5" id="advads-ads-txt-additional-content" name="advads-ads-txt-additional-content"><?php echo esc_textarea( $content ); ?></textarea>
<p class="description"><?php esc_html_e( 'Additional records to add to the file, one record per line. AdSense is added automatically.', 'advanced-ads' ); ?></p>
<div id="advads-ads-txt-notice-wrapper">
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $notices;
?>
</div>
<p class="advads-notice-inline advads-error hidden" id="advads-ads-txt-notice-error">
<?php
/* translators: %s is replaced with an error message. */
esc_html_e( 'An error occured: %s.', 'advanced-ads' );
?>
</p>
<button class="button advads-ads-txt-action" type="button" id="advads-ads-txt-notice-refresh"><?php esc_html_e( 'Check for problems', 'advanced-ads' ); ?></button>
<a href="<?php echo esc_url( $link ); ?>" class="button" target="_blank"><?php esc_html_e( 'Preview', 'advanced-ads' ); ?></button>

View File

@@ -0,0 +1,41 @@
<?php
/**
* View for the ads.txt creation setting.
*
* @package AdvancedAds
*
* @var bool $is_enabled
* @var bool $is_all_network
* @var bool $can_process_all_network
* @var string $domain
*/
?>
<div id="advads-ads-txt">
<label title="<?php esc_html_e( 'enabled', 'advanced-ads' ); ?>">
<input type="radio" name="advads-ads-txt-create" value="1" <?php checked( $is_enabled, true ); ?> />
<?php esc_html_e( 'enabled', 'advanced-ads' ); ?>
</label>
<label title="<?php esc_html_e( 'disabled', 'advanced-ads' ); ?>">
<input type="radio" name="advads-ads-txt-create" value="0" <?php checked( $is_enabled, false ); ?> />
<?php esc_html_e( 'disabled', 'advanced-ads' ); ?>
</label>
<span class="description">
<a target="_blank" href="https://wpadvancedads.com/manual/ads-txt/?utm_source=advanced-ads&utm_medium=link&utm_campaign=settings-ads-txt" class="advads-manual-link">
<?php esc_html_e( 'Manual', 'advanced-ads' ); ?>
</a>
</span>
<?php if ( $can_process_all_network ) : ?>
<p>
<label>
<input name="advads-ads-txt-all-network" type="checkbox"<?php checked( $is_all_network, true ); ?> />
<?php esc_html_e( 'Generate a single ads.txt file for all sites in the multisite network.', 'advanced-ads' ); ?>
</label>
</p>
<p class="description">
<?php esc_html_e( 'Usually, this should be enabled on the main site of the network - often the one without a subdomain or subdirectory.', 'advanced-ads' ); ?>
</p>
<?php endif; ?>
</div>