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,87 @@
<?php
/**
* File: Extension_AlwaysCached_Page_View_BoxCron.php
*
* Render the AlwaysCached settings page - cron box.
*
* @since 2.8.0
*
* @package W3TC
*/
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$c = Dispatcher::config();
$pgcache_disabled = ! $c->get_boolean( 'pgcache.enabled' );
$wp_cron_disabled = ! $c->get_boolean( array( 'alwayscached', 'wp_cron' ) );
?>
<div class="metabox-holder">
<?php Util_Ui::postbox_header( esc_html__( 'Cron', 'w3-total-cache' ), '', 'cron' ); ?>
<table class="form-table">
<?php
Util_Ui::config_item(
array(
'key' => array(
'alwayscached',
'wp_cron',
),
'label' => esc_html__( 'Enable WP-Cron Event', 'w3-total-cache' ),
'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ),
'control' => 'checkbox',
'description' => esc_html__( 'Enabling this will schedule a WP-Cron event that will process the queue and regenerate cache files. If you prefer to use a system cron job instead of WP-Cron, you can schedule the following command to run at your desired interval: "wp w3tc alwayscached_process".', 'w3-total-cache' ),
'disabled' => $pgcache_disabled,
)
);
$time_options = array();
for ( $hour = 0; $hour < 24; $hour++ ) {
foreach ( array( '00', '30' ) as $minute ) {
$time_value = $hour * 60 + intval( $minute );
$scheduled_time = new \DateTime( "{$hour}:{$minute}", wp_timezone() );
$time_label = $scheduled_time->format( 'g:i a' );
$time_options[ $time_value ] = $time_label;
}
}
Util_Ui::config_item(
array(
'key' => array(
'alwayscached',
'wp_cron_time',
),
'label' => esc_html__( 'Start Time', 'w3-total-cache' ),
'control' => 'selectbox',
'selectbox_values' => $time_options,
'description' => esc_html__( 'This setting controls the initial start time of the cron job. If the selected time has already passed, it will schedule the job for the following day at the selected time.', 'w3-total-cache' ),
'disabled' => $pgcache_disabled || $wp_cron_disabled,
)
);
Util_Ui::config_item(
array(
'key' => array(
'alwayscached',
'wp_cron_interval',
),
'label' => esc_html__( 'Interval', 'w3-total-cache' ),
'control' => 'selectbox',
'selectbox_values' => array(
'hourly' => esc_html__( 'Hourly', 'w3-total-cache' ),
'twicedaily' => esc_html__( 'Twice Daily', 'w3-total-cache' ),
'daily' => esc_html__( 'Daily', 'w3-total-cache' ),
'weekly' => esc_html__( 'Weekly', 'w3-total-cache' ),
),
'description' => esc_html__( 'This setting controls the interval that the cron job should occur.', 'w3-total-cache' ),
'disabled' => $pgcache_disabled || $wp_cron_disabled,
)
);
?>
</table>
<?php Util_Ui::postbox_footer(); ?>
</div>