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,19 @@
<?php
/**
* Render footer in widget
*
* @package AdvancedAds
*/
?>
<footer>
<a href="https://wpadvancedads.com/category/tutorials/?utm_source=advanced-ads&utm_medium=link&utm_campaign=dashboard" target="_blank">
<?php esc_html_e( 'Visit our blog', 'advanced-ads' ); ?> <span class="screen-reader-text"> (opens in a new tab)</span><span aria-hidden="true" class="dashicons dashicons-external"></span>
</a>
<a href="https://wpadvancedads.com/manual/?utm_source=advanced-ads&utm_medium=link&utm_campaign=dashboard" target="_blank">
<?php esc_html_e( 'See the manual', 'advanced-ads' ); ?> <span class="screen-reader-text"> (opens in a new tab)</span><span aria-hidden="true" class="dashicons dashicons-external"></span>
</a>
<a class="go-pro" href="https://wpadvancedads.com/pricing/?utm_source=advanced-ads&utm_medium=link&utm_campaign=dashboard" target="_blank">
<?php esc_html_e( 'Get All Access', 'advanced-ads' ); ?> <span class="screen-reader-text"> (opens in a new tab)</span><span aria-hidden="true" class="dashicons dashicons-external"></span>
</a>
</footer>

View File

@@ -0,0 +1,31 @@
<?php
/**
* Render header in widget
*
* @package AdvancedAds
*/
use AdvancedAds\Constants;
use AdvancedAds\Utilities\WordPress;
$ads_count = WordPress::get_count_ads();
?>
<div class="advads-widget-wrapper">
<p class="advads-widget-header m-0">
<?php
printf(
/* translators: %1$d is the number of ads. */
esc_html__( '%1$d Ads', 'advanced-ads' ),
absint( $ads_count )
);
?>
|
<a href="<?php echo esc_url( admin_url( 'edit.php?post_type=' . Constants::POST_TYPE_AD ) ); ?>">
<?php esc_html_e( 'Manage Ads', 'advanced-ads' ); ?>
</a>
|
<a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=' . Constants::POST_TYPE_AD ) ); ?>">
<?php esc_html_e( 'Create Ad', 'advanced-ads' ); ?>
</a>
</p>
</div>

View File

@@ -0,0 +1,51 @@
<?php
/**
* Render newsletter section
*
* @package AdvancedAds
*/
use AdvancedAds\Utilities\Conditional;
?>
<div class="advads-widget-wrapper">
<div class="section-title">
<h3><?php esc_attr_e( 'Newsletter & Email Courses', 'advanced-ads' ); ?></h3>
</div>
<p>
<?php
printf(
/* translators: %1$s 'free' (in bold), %2$s '2 free add-ons' (in bold) */
esc_html__(
'Join our newsletter and take our %1$s ad monetization email courses. Get tutorials, optimization tips, and %2$s!',
'advanced-ads'
),
'<strong>' . esc_html__( 'free', 'advanced-ads' ) . '</strong>',
'<strong>' . esc_html__( '2 free add-ons', 'advanced-ads' ) . '</strong>'
);
?>
</p>
<div class="advads-widget-buttons space-y-4">
<?php if ( Conditional::user_can_subscribe( 'nl_first_steps' ) ) : ?>
<div class="advads-admin-notice" data-notice="nl_first_steps">
<p class="m-0">
<button type="button" class="button-primary advads-notices-button-subscribe with-icon" data-notice="nl_first_steps">
<span class="dashicons dashicons-email-alt"></span>
<?php esc_html_e( '5-part First Steps series', 'advanced-ads' ); ?>
</button>
</p>
</div>
<?php endif; ?>
<?php if ( Conditional::user_can_subscribe( 'nl_adsense' ) ) : ?>
<div class="advads-admin-notice" data-notice="nl_adsense">
<p class="m-0">
<button type="button" class="button-primary advads-notices-button-subscribe with-icon" data-notice="nl_adsense">
<span class="dashicons dashicons-email-alt"></span>
<?php esc_html_e( '8-part Google AdSense series', 'advanced-ads' ); ?>
</button>
</p>
</div>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,59 @@
<?php
/**
* Render performing ads section
*
* @package AdvancedAds
*/
$periods = [
'today' => __( 'today', 'advanced-ads' ),
'yesterday' => __( 'yesterday', 'advanced-ads' ),
'last7days' => __( 'last 7 days', 'advanced-ads' ),
'thismonth' => __( 'this month', 'advanced-ads' ),
'lastmonth' => __( 'last month', 'advanced-ads' ),
'thisyear' => __( 'this year', 'advanced-ads' ),
'lastyear' => __( 'last year', 'advanced-ads' ),
'custom' => __( 'custom', 'advanced-ads' ),
];
?>
<div class="advads-widget-wrapper">
<div class="section-title flex flex-row items-center flex-wrap gap-y-2 gap-x-2" style="padding-top: 0.3rem; padding-bottom: 0.3rem;">
<h3 class="!mt-0">
<?php esc_html_e( 'Best-performing Ads for', 'advanced-ads' ); ?>
</h3>
<select name="advads-performing-ads-period" disabled>
<?php foreach ( $periods as $key => $period ) : ?>
<option value="<?php echo esc_attr( $key ); ?>" <?php echo 'last7days' === $key ? 'selected' : ''; ?>><?php echo esc_html( $period ); ?></option>
<?php endforeach; ?>
</select>
<div class="advads-custom-period">
<div class="advads-custom-period-wrapper">
<fieldset class="flex gap-x-2">
<input type="text" name="advads-custom-from" autocomplete="off" size="10" maxlength="10" placeholder="<?php esc_html_e( 'from', 'advanced-ads' ); ?>"/>
<input type="text" name="advads-custom-to" autocomplete="off" size="10" maxlength="10" placeholder="<?php esc_html_e( 'to', 'advanced-ads' ); ?>"/>
</fieldset>
</div>
</div>
</div>
<div class="advads-performing-ads-track disabled">
<ul>
<li class="active" data-tab="clicks">Clicks</li>
<li data-tab="impressions">Impressions</li>
<li data-tab="ctr">CTR</li>
</ul>
<a href="<?php echo esc_attr( admin_url( 'admin.php?page=advanced-ads-stats' ) ); ?>"><?php esc_html_e( 'See full statistics', 'advanced-ads' ); ?></a>
</div>
<?php if ( ! defined( 'AAT_FILE' ) ) : ?>
<p>
<?php esc_html_e( 'No tracking add-on installed.', 'advanced-ads' ); ?>
</p>
<p>
<a class="go-pro" href="https://wpadvancedads.com/pricing/?utm_source=advanced-ads&utm_medium=link&utm_campaign=dashboard" target="_blank">
<?php esc_html_e( 'Advanced Ads All Access includes the Tracking add-on', 'advanced-ads' ); ?><span aria-hidden="true" class="dashicons dashicons-external"></span>
</a>
</p>
<?php endif; ?>
<?php do_action( 'advanced-ads-dashboard-performing-ads' ); ?>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Render RSS section
*
* @package AdvancedAds
*/
use AdvancedAds\Utilities\Data;
?>
<div class="advads-widget-wrapper">
<div class="section-title">
<h3><?php esc_html_e( 'Latest Tutorials from Advanced Ads', 'advanced-ads' ); ?></h3>
</div>
<?php Data::display_rss_feed(); ?>
</div>