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,37 @@
<?php
/**
* Render additional content below the ad edit page.
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
* @since 1.7.3
*
* @var WP_Post $post The ad WP post object.
*/
use AdvancedAds\Utilities\Conditional;
?>
<div id="advads-wizard-controls" class="hidden">
<button type="button" id="advads-wizard-controls-prev" class="button button-secondary button-large"><span class="dashicons dashicons-controls-back"></span>&nbsp;<?php echo esc_attr_x( 'previous', 'wizard navigation', 'advanced-ads' ); ?></button>
<button id="advads-wizard-controls-save" class="button button-primary button-large">
<?php echo esc_attr_x( 'save', 'wizard navigation', 'advanced-ads' ); ?>
<span class="dashicons dashicons-controls-forward"></span>
</button>
<button type="button" id="advads-wizard-controls-next" class="button button-primary button-large"><?php echo esc_attr_x( 'next', 'wizard navigation', 'advanced-ads' ); ?>&nbsp;<span class="dashicons dashicons-controls-forward"></span></button>
<p><a href="javascript:void(0)" class="advads-stop-wizard"><?php esc_attr_e( 'Stop Wizard and show all options', 'advanced-ads' ); ?></a></p>
</div>
<?php if ( $this->start_wizard_automatically() ) : ?>
<script>jQuery( document ).ready(function ($) { advads_wizard.start() });</script>
<?php
endif;
/**
* Support and review box
*/
if ( ! Conditional::is_any_addon_activated() ) :
include ADVADS_ABSPATH . 'admin/views/support-callout.php';
?>
<script>jQuery( document ).ready(function () { jQuery( '#advads-support-callout').insertAfter( '#ad-types-box' ); });</script>
<?php
endif;

View File

@@ -0,0 +1,45 @@
<?php
/**
* Display ad wizard controls.
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
* @since 1.7.3
*/
use AdvancedAds\Utilities\WordPress;
?>
<button id="advads-start-wizard" type="button" class="header-action button advads-button-secondary">
<span class="dashicons dashicons-controls-play"></span><?php esc_html_e( 'Start Wizard', 'advanced-ads' ); ?>
</button>
<button id="advads-stop-wizard" type="button" class="header-action button advads-button-secondary advads-stop-wizard hidden">
<span class="dashicons dashicons-no"></span><?php esc_html_e( 'Stop Wizard', 'advanced-ads' ); ?>
</button>
<script>
// Move wizard button to head.
jQuery('#advads-start-wizard').appendTo('#advads-header-actions');
jQuery('.advads-stop-wizard').appendTo('#advads-header-actions');
</script>
<?php if ( $this->show_wizard_welcome() || ! WordPress::get_count_ads() ) : ?>
<div class="advads-ad-metabox postbox">
<?php
if ( ! WordPress::get_count_ads() ) {
include ADVADS_ABSPATH . 'admin/views/ad-list-no-ads.php';
} if ( $this->show_wizard_welcome() ) :
?>
<div id="advads-wizard-welcome">
<br/>
<a class="advads-stop-wizard dashicons-before dashicons-no" style="line-height: 1.6em; cursor: pointer;"><?php esc_html_e( 'Stop Wizard and show all options', 'advanced-ads' ); ?></a>
</div>
<script>
// Move wizard button to head
jQuery('#advads-hide-wizard-welcome').click( function(){ jQuery( '#advads-wizard-welcome' ).remove(); });
jQuery('#advads-end-wizard').insertBefore('h1');
</script>
<?php
endif;
?>
</div>
<?php
endif;

View File

@@ -0,0 +1,63 @@
<?php
/**
* Render schedule options in the publish meta box on the ad edit screen
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
* @since 1.48.2
*
* @var int $curr_year Current year.
* @var int $curr_month Current month index.
* @var int $curr_day Current day.
* @var int $curr_hour Current hour.
* @var int $curr_minute Current minute.
* @var int $enabled Whether expiry date is enabled (1) or not (0).
* @var WP_Locale $wp_locale WordPress locale object for month names.
*/
?>
<div id="advanced-ads-expiry-date" class="misc-pub-section curtime misc-pub-curtime">
<label onclick="advads_toggle_box('#advanced-ads-expiry-date-enable', '#advanced-ads-expiry-date .inner')">
<input type="checkbox" id="advanced-ads-expiry-date-enable" name="advanced_ad[expiry_date][enabled]" value="1" <?php checked( $enabled, 1 ); ?>/>
<?php esc_html_e( 'Set expiry date', 'advanced-ads' ); ?>
</label>
<br/>
<div class="inner"<?php echo ( ! $enabled ) ? ' style="display:none;"' : ''; ?>>
<?php
$month_field = '<label><span class="screen-reader-text">' . __( 'Month', 'advanced-ads' ) . '</span><select class="advads-mm" name="advanced_ad[expiry_date][month]"' . ">\n";
for ( $i = 1; $i < 13; $i = ++$i ) {
$month_num = zeroise( $i, 2 );
$month_field .= "\t\t\t" . '<option value="' . $month_num . '" ' . selected( $curr_month, $month_num, false ) . '>';
$month_field .= sprintf(
/* translators: %1$s is the month number, %2$s is the month shortname. */
_x( '%1$s-%2$s', '1: month number (01, 02, etc.), 2: month abbreviation', 'advanced-ads' ),
$month_num,
$wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) )
) . "</option>\n";
}
$month_field .= '</select></label>';
$day_field = '<label><span class="screen-reader-text">' . __( 'Day', 'advanced-ads' ) . '</span><input type="text" class="advads-jj" name="advanced_ad[expiry_date][day]" value="' . $curr_day . '" size="2" maxlength="2" autocomplete="off" /></label>';
$year_field = '<label><span class="screen-reader-text">' . __( 'Year', 'advanced-ads' ) . '</span><input type="text" class="advads-aa" name="advanced_ad[expiry_date][year]" value="' . $curr_year . '" size="4" maxlength="4" autocomplete="off" /></label>';
$hour_field = '<label><span class="screen-reader-text">' . __( 'Hour', 'advanced-ads' ) . '</span><input type="text" class="advads-hh" name="advanced_ad[expiry_date][hour]" value="' . $curr_hour . '" size="2" maxlength="2" autocomplete="off" /></label>';
$minute_field = '<label><span class="screen-reader-text">' . __( 'Minute', 'advanced-ads' ) . '</span><input type="text" class="advads-mn" name="advanced_ad[expiry_date][minute]" value="' . $curr_minute . '" size="2" maxlength="2" autocomplete="off" /></label>';
?>
<fieldset class="advads-timestamp">
<?php
// phpcs:disable
printf(
/* translators: %1$s month, %2$s day, %3$s year, %4$s hour, %5$s minute. */
_x( '%1$s %2$s, %3$s @ %4$s %5$s', 'order of expiry date fields 1: month, 2: day, 3: year, 4: hour, 5: minute', 'advanced-ads' ),
$month_field,
$day_field,
$year_field,
$hour_field,
$minute_field
);
// phpcs:enable
?>
</fieldset>
(<?php echo esc_html( Advanced_Ads_Utils::get_timezone_name() ); ?>)
</div>
</div>