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,45 @@
compare = function ( country, arg ) {
arg = arg.toLowerCase();
return country.code.toLowerCase() == arg || country.name.toLowerCase() == arg || country.dial_code.toLowerCase() == arg
};
exports.getCountries = function () {
return require( './data/countries.json' );
};
exports.getCountry = function ( arg ) {
let countries = require( './data/countries.json' );
for ( let i = 0; i < countries.length; i ++ ) {
if ( compare( countries[ i ], arg ) ) {
return countries[ i ];
}
}
return null;
};
exports.getFilteredCountries = function ( args ) {
let countries = require( './data/countries.json' );
let filteredCountries = [];
for ( let arg of args ) {
for ( let i = 0; i < countries.length; i ++ ) {
if ( compare( countries[ i ], arg ) ) {
filteredCountries.push( countries[ i ] );
break;
}
}
}
return filteredCountries;
};
exports.getStates = function ( countryCode ) {
let states = require( './data/states.json' );
try {
return states[ countryCode ];
} catch ( error ) {
return 'Invalid country code';
}
};