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
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.8.0
*/
if ( ! defined( 'ABSPATH' ) || ! class_exists( 'FAMNESettingsPage', false ) ) {
exit;
}
?>
<div class="wrap">
<h2><?php _e( 'Manage the notification e-mails', 'manage-notification-emails' ); ?> <small><small><?php _e( 'version', 'manage-notification-emails' ); ?> <?php echo FA_MNE_VERSION; ?></small></small></h2>
<form method="post" action="edit.php?action=famnesavenetwork" enctype="multipart/form-data">
<?php
wp_nonce_field( 'famnenetwork_save', 'famnenetwork' );
_e( 'Manage your notification e-mail preferences below.', 'manage-notification-emails' );
?>
<br/>
<br/>
<div class="nav-tab-wrapper"></div>
<div class="spacer"></div>
<div class="sections-wrapper">
<?php
// This prints out all hidden setting fields.
settings_fields( 'famne_option_group' );
FAMNESettingsPage::print_sections();
?>
<?php submit_button(); ?>
</div>
<div class="clear"></div>
</form>
</div>
<?php
require_once dirname( __FILE__ ) . '/donatebox.php';

View File

@@ -0,0 +1,62 @@
<?php
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.3.0
*/
if ( ! defined( 'ABSPATH' ) || ! class_exists( 'FAMNESettingsPage', false ) ) {
exit;
}
$managed_by_network = ! empty( FAMNE::get_option( 'famne_network_managed' ) );
?>
<div class="wrap">
<h2><?php _e( 'Manage the notification e-mails', 'manage-notification-emails' ); ?> <small><small><?php _e( 'version', 'manage-notification-emails' ); ?> <?php echo FA_MNE_VERSION; ?></small></small></h2>
<?php
if ( $managed_by_network ) :
?>
<div class="spacer"></div>
<div class="section-part network" style="text-align:center">
<div style="text-align:center;height:60px;padding-top:20px;padding-right:50px"><span class="dashicons dashicons-admin-multisite" style="font-size:50px"></span></div>
<h3 class="title" style="color:#76d450"><?php _e( 'Site managed by network manager', 'manage-notification-emails' ); ?></h3>
<?php _e( 'Manage notification e-mails settings for this site are globally managed in the multisite network settings menu.', 'manage-notification-emails' ); ?>
<div class="spacer"></div>
</div>
<div class="spacer"></div>
<?php
else :
_e( 'Manage your notification e-mail preferences below.', 'manage-notification-emails' );
?>
<form method="post" action="options.php?" enctype="multipart/form-data">
<br/>
<br/>
<div class="nav-tab-wrapper"></div>
<div class="spacer"></div>
<div class="sections-wrapper">
<?php
// This prints out all hidden setting fields.
settings_fields( 'famne_option_group' );
FAMNESettingsPage::print_sections();
?>
<?php submit_button(); ?>
</div>
<div class="clear"></div>
</form>
<?php
endif;
?>
</div>
<?php
if ( ! $managed_by_network ) :
require_once dirname( __FILE__ ) . '/donatebox.php';
endif;

View File

@@ -0,0 +1,26 @@
<?php
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.3.0
*/
?>
<div class="donation-box">
<p class="description"><?php _e( 'If you find this plugin useful, you can show your appreciation here :-)', 'manage-notification-emails' ); ?></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="LTZWTLEDPULFE"/>
<input type="image" src="https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal"/>
<img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1"/>
</form>
</div>
<div class="clear"></div>

View File

@@ -0,0 +1,36 @@
<?php
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.3.0
*/
if ( ! defined( 'ABSPATH' ) || ! class_exists( 'FAMNE', false ) ) {
exit;
}
global $famne_options;
?>
<div class="wrap page-width">
<h3><?php _e( 'Information', 'manage-notification-emails' ); ?></h3>
<div class="section-part extra">
<h3><?php _e( 'Available Manage Notification E-mail Modules', 'manage-notification-emails' ); ?></h3>
<ul>
<?php
$modules = FAMNE::getModules();
foreach ( $modules as $module ) :
$icon = $module->licensed ? 'dashicons-products"' : 'dashicons-admin-plugins';
?>
<li><span class="dashicons-before <?php echo $icon; ?>"></span><?php echo esc_html( $module->name ); ?> (<?php echo esc_html( $module->version ); ?>)</li>
<?php endforeach; ?>
</ul>
</div>
</div>

View File

@@ -0,0 +1,45 @@
<?php
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.3.0
*/
if ( ! defined( 'ABSPATH' ) || ! class_exists( 'FAMNESettingsPage', false ) ) {
exit;
}
global $famne_options;
?>
<div class="wrap">
<h3><?php _e( 'Extra modules', 'manage-notification-emails' ); ?></h3>
<p><?php _e( 'The modules below are options which are not available in WordPress by default.', 'manage-notification-emails' ); ?></p>
<div class="spacer"></div>
<div class="modules">
<?php
foreach ( FAMNE::getModules() as $mod ) :
if ( ! in_array( $mod->slug, array( 'pluggable', 'settings_page' ), true ) && ! empty( $mod->card ) ) {
call_user_func( $mod->card, $famne_options );
}
endforeach;
if ( current_user_can( 'manage_network_options' ) ) :
?>
<div class="card" style="text-align:center">
<div style="text-align:center;height:60px;padding-top:20px;padding-right:50px"><span class="dashicons dashicons-admin-multisite" style="font-size:50px"></span></div>
<h3 class="title" style="color:#76d450"><?php _e( 'Multisite managed settings available', 'manage-notification-emails' ); ?></h3>
<?php _e( 'For this environment, it is possible for you to manage all settings globally in the network settings menu.', 'manage-notification-emails' ); ?>
<div class="spacer"></div>
</div>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<?php
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.8.0
*/
if ( ! defined( 'ABSPATH' ) || ! class_exists( 'FAMNESettingsPage', false ) ) {
exit;
}
$famne_options = FAMNE::get_option( 'famne_options' );
if ( is_array( $famne_options ) ) :
$famne_options = array();
endif;
$famne_options['network_managed'] = FAMNE::get_option( 'famne_network_managed' );
?>
<div class="wrap page-width">
<h3><?php _e( 'Manage multisite options', 'manage-notification-emails' ); ?></h3>
<p><?php _e( 'Here you can choose to manage all options for this plugin in one location. No hassle with toggling options on and off for each subsite individually.', 'manage-notification-emails' ); ?></p>
<div class="section-part">
<?php
print_checkbox( $famne_options, 'network_managed', __( 'Use the network settings.', 'manage-notification-emails' ), __( 'Checking this option will disable per site management. All sites will use these global network settings.', 'manage-notification-emails' ) );
?>
</div>
</div>

View File

@@ -0,0 +1,79 @@
<?php
/**
* Custom view
*
* This file is part of the Manage Notification Emails plugin
* You can find out more about this plugin at https://www.freeamigos.nl
* Copyright (c) 2006-2015 Virgial Berveling
*
* @package WordPress
* @author Virgial Berveling
* @copyright 2006-2015
*
* since: 1.3.0
* version: 1.3.1
*/
if ( ! defined( 'ABSPATH' ) || ! class_exists( 'FAMNESettingsPage', false ) ) {
exit;
}
global $famne_options;
?>
<div class="wrap page-width">
<h3><?php _e( 'Options for e-mails to users', 'manage-notification-emails' ); ?></h3>
<div class="section-part">
<?php
print_checkbox( $famne_options, 'wp_new_user_notification_to_user', __( 'New user notification to user', 'manage-notification-emails' ), __( 'Send e-mail with login credentials to a newly-registered user.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'wp_notify_postauthor', __( 'Notify post author', 'manage-notification-emails' ), __( 'Send e-mail to an author (and/or others) of a comment/trackback/pingback on a post.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'wp_notify_moderator', __( 'Notify moderator', 'manage-notification-emails' ), __( 'Send e-mail to the moderator of the blog about a new comment that is awaiting approval.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'send_password_change_email', __( 'Password change notification to user', 'manage-notification-emails' ), __( 'Send e-mail to registered user about changing his or her password. Be careful with this option, because when unchecked, the forgotten password request e-mails will be blocked too.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'send_email_change_email', __( 'E-mail address change notification to user', 'manage-notification-emails' ), __( 'Send e-mail to registered user about changing his or her E-mail address.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'send_password_forgotten_email', __( 'Password forgotten e-mail to user', 'manage-notification-emails' ), __( 'Send the forgotten password e-mail to registered user.<br/>(To prevent locking yourself out, sending of the forgotten password e-mail for administrators will still work)', 'manage-notification-emails' ) );
?>
</div>
<br/>
<h2><?php _e( 'Options for e-mails to administrators', 'manage-notification-emails' ); ?></h2>
<div class="section-part">
<?php
print_start_table_form();
$user_noti_title = __( 'New user notification to site admin', 'manage-notification-emails' );
$user_noti_label = __( 'Sends an e-mail to the site admin after a new user is registered.', 'manage-notification-emails' );
if ( is_multisite() && ! FAMNE::network_managed() ) {
$user_noti = get_site_option( 'registrationnotification' ) === 'yes' ? true : false;
print '<div class="option-container">';
print '<label><input type="checkbox" disabled ' . ( $user_noti ? 'checked="checked"' : '' ) . ' />';
// translators: Adding network settings link.
print '<strong>' . $user_noti_title . '</strong><br/><em>' . sprintf( __( 'Globally managed in the multisite %1$snetwork settings menu%2$s.', 'manage-notification-emails' ), '<a href="' . network_admin_url( 'settings.php' ) . '">', '</a>' ) . '</em><br/>' . $user_noti_label;
print '</label>';
print '</div>';
} else {
print_checkbox( $famne_options, 'wp_new_user_notification_to_admin', $user_noti_title, $user_noti_label );
}
print_checkbox( $famne_options, 'wp_password_change_notification', __( 'Password change notification to admin', 'manage-notification-emails' ), __( 'Send e-mail to the blog admin of a user changing his or her password.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'auto_core_update_send_email', __( 'Automatic WordPress core update e-mail', 'manage-notification-emails' ), __( 'Sends an e-mail after a successful automatic WordPress core update to administrators. E-mails about failed updates will always be sent to the administrators and cannot be disabled.', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'auto_plugin_update_send_email', __( 'Automatic WordPress plugin update e-mail', 'manage-notification-emails' ), __( 'Sends an e-mail after a successful automatic plugin update to administrators. E-mails about failed plugin updates will always be sent to the administrators', 'manage-notification-emails' ) );
print_checkbox( $famne_options, 'auto_theme_update_send_email', __( 'Automatic WordPress theme update e-mail', 'manage-notification-emails' ), __( 'Sends an e-mail after a successful automatic theme update to administrators. E-mails about failed theme updates will always be sent to the administrators', 'manage-notification-emails' ) );
print_end_table_form();
?>
</div>
<div class="section-part border-warning">
<?php
print_start_table_form();
print_checkbox( $famne_options, 'send_password_admin_forgotten_email', __( 'Password forgotten e-mail to administrator', 'manage-notification-emails' ), __( 'Send the forgotten password e-mail to administrators.', 'manage-notification-emails' ), __( 'Okay, this is a <strong style="color:#900">DANGEROUS OPTION !</strong><br/> So be warned, because unchecking this option prevents sending out the forgotten password e-mail to all administrators. So hold on to your own password and uncheck this one at your own risk ;-)', 'manage-notification-emails' ) );
print_end_table_form();
?>
</div>
<p style="float:right"><a href="#" onclick="resetToDefaults();return false" class="button"><?php _e( 'Reset settings', 'manage-notification-emails' ); ?></a></p>
</div>
<?php
$admin_page = FAMNESettingsPage::is_famne_network_settings_page() ? 'network/settings.php?page=famne-network-admin&famne_reset=1' : 'options-general.php?page=famne-admin&famne_reset=1';
$reset_url = str_replace( '&amp;', '&', wp_nonce_url( admin_url( $admin_page ), 'famne_reset', 'nonce' ) ) . '#settings';
?>
<script>
function resetToDefaults(){
var r = confirm('reset to default settings?');
if (r == true) document.location='<?php echo $reset_url; ?>';
}
</script>