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,13 @@
<?php
/**
* The view to render the option.
*
* @var string $ad_blocker_notice_id Randomised ad blocker id.
*/
?>
<div id="<?php echo esc_attr( $ad_blocker_notice_id ); ?>" class="message error update-message notice notice-alt notice-error" style="display: none;">
<p>
<?php echo wp_kses_post( __( 'Please disable your <strong>AdBlocker</strong>. Otherwise, the features of Advanced Ads and the layout are broken.', 'advanced-ads' ) ); ?>
<a href="https://wpadvancedads.com/manual/ad-blockers/?utm_source=advanced-ads&utm_medium=link&utm_campaign=adblock-enabled#How_do_you_know_if_you_are_using_an_ad_blocker" target="_blank" class="advads-manual-link"><?php esc_html_e( 'Manual', 'advanced-ads' ); ?></a>
</p>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Error notice template.
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
* @since 1.x.x
*
* @var string $_notice Notice ID.
* @var string $text Notice text.
*/
?>
<div class="notice notice-error advads-notice advads-admin-notice is-dismissible" data-notice="<?php echo esc_attr( $_notice ); ?>">
<p>
<?php echo wp_kses_post( $text ); ?>
</p>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Info notice template
*
* @package AdvancedAds
*
* @var string $text notice text
* @var string $_notice notice id
*/
use AdvancedAds\Framework\Utilities\Params;
?>
<div class="notice notice-info advads-notice advads-admin-notice message is-dismissible" data-notice="<?php echo esc_attr( $_notice ); ?>">
<p><?php echo $text; // phpcs:ignore ?></p>
<a href="
<?php
add_query_arg(
[
'action' => 'advads-close-notice',
'notice' => $_notice,
'nonce' => wp_create_nonce( 'advanced-ads-admin-ajax-nonce' ),
'redirect' => Params::server( 'REQUEST_URI' ),
],
admin_url( 'admin-ajax.php' )
);
?>
" class="notice-dismiss"><span class="screen-reader-text"><?php esc_html__( 'Dismiss this notice.', 'advanced-ads' ); ?></span></a>
</div>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Inline notice template.
*
* @package AdvancedAds
*
* @var string $_notice notice ID.
* @var string $text notice text.
* @var array $notice notice data (optional).
* @var string $box_classes additional classes (optional).
*/
?>
<div class="notice notice-info advads-admin-notice is-dismissible inline advads-notice-box <?php echo esc_attr( $box_classes ?? '' ); ?>" data-notice="<?php echo esc_attr( $_notice ); ?>">
<div class="advads-notice-box_wrapper">
<p><?php echo $text; // phpcs:ignore ?></p>
<button type="button" class="button-primary advads-notices-button-subscribe with-icon" data-notice="<?php echo esc_attr( $_notice ); ?>">
<span class="dashicons dashicons-email-alt"></span>
<?php echo esc_html( $notice['confirm_text'] ?? __( 'Subscribe me now', 'advanced-ads' ) ); ?>
</button>
</div>
</div>

View File

@@ -0,0 +1 @@
<div class="notice notice-error advads-admin-notice inline"><p><?php echo wp_kses_post( $text ); ?></p></div>

View File

@@ -0,0 +1,46 @@
<?php
/**
* Template for a promotional banner
*
* @package AdvancedAds
*
* @var string $text content of the notice.
* @var string $_notice internal key of the notice.
*/
use AdvancedAds\Framework\Utilities\Params;
?>
<div class="notice notice-promo advads-notice advads-admin-notice message is-dismissible"
data-notice="<?php echo esc_attr( $_notice ); ?>">
<p>
<?php
echo wp_kses(
$text,
[
'a' => [
'href' => [],
'class' => [],
'target' => [],
],
'span' => [
'style' => [],
],
]
);
?>
</p>
<a href="
<?php
add_query_arg(
[
'action' => 'advads-close-notice',
'notice' => $_notice,
'nonce' => wp_create_nonce( 'advanced-ads-admin-ajax-nonce' ),
'redirect' => Params::server( 'REQUEST_URI' ),
],
admin_url( 'admin-ajax.php' )
);
?>
" class="notice-dismiss"><span class="screen-reader-text"><?php esc_html__( 'Dismiss this notice.', 'advanced-ads' ); ?></span></a>
</div>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Success notice for the starter setup.
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
* @since 1.x.x
*
* @var string $last_post_link URL to the last created post.
*/
?>
<div class="notice notice-success advads-admin-notice message">
<h2>
<?php esc_html_e( '2 Test Ads successfully added!', 'advanced-ads' ); ?>
</h2>
<p>
<?php esc_html_e( 'Look below for the list of created ads.', 'advanced-ads' ); ?>
</p>
<p>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=advanced-ads-placements' ) ); ?>"><?php esc_attr_e( 'Visit list of placements', 'advanced-ads' ); ?></a>
</p>
<?php if ( $last_post_link ) : ?>
<p>
<a href="<?php echo esc_url( $last_post_link ); ?>" target="_blank">
<?php esc_html_e( 'See them in action', 'advanced-ads' ); ?>
</a>
</p>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Subscribe notice template.
*
* @package AdvancedAds
*
* @var string $_notice notice ID.
* @var string $text notice text.
* @var array $notice notice data (optional).
*/
?>
<div class="notice notice-info advads-admin-notice is-dismissible" data-notice="<?php echo esc_attr( $_notice ); ?>">
<div class="advads-notice-box_wrapper">
<p><?php echo $text; // phpcs:ignore ?></p>
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo esc_attr( $_notice ); ?>">
<?php echo esc_html( $notice['confirm_text'] ?? __( 'Subscribe me now', 'advanced-ads' ) ); ?>
</button>
</div>
</div>