<commit_before><?php
if (!defined('ABSPATH')) exit;

/*
 * @const WPBASE_GOOGLEMAPS_API_KEY string
 */
function registrarLibreriasFrontend() {
    // Fuentes
    wp_register_style('google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400,600,700', array(), null);

    // Estilo principal del frontend. Incluye foundation.
    wp_register_style('app', ASSETS_URI_CSS . 'app.min.css', array('google-fonts'), VERSION_THEME);

    // Foundation custom
    wp_register_script('foundation', ASSETS_URI_JS . 'vendor/foundation.min.js', array('jquery'), '6.2.3', true);

    // Script principal del frontend
    wp_register_script('app', ASSETS_URI_JS.'app.min.js', array('foundation'), VERSION_THEME, true);
    
    // Slick - https://github.com/kenwheeler/slick/
    wp_register_script('slick', ASSETS_URI_JS . 'vendor/slick.min.js', array('jquery'), '1.7.1', true);
    wp_register_script('slick-cdn', '//cdn.jsdelivr.net/gh/kenwheeler/slick@1.7.1/slick/slick.min.js', array('jquery'), '1.7.1', true);

    // Lightbox - https://github.com/lokesh/lightbox2/
    wp_register_script('lightbox', ASSETS_URI_JS . 'vendor/lightbox.min.js', array('jquery'), '2.8.2', true);

    // Google Maps - https://developers.google.com/maps/?hl=es-419
    // Llamar a 'gmaps' en el enqueue.
    $args = array(
        'key' => WPBASE_GOOGLEMAPS_API_KEY,
        'callback' => 'initMap',
    );
    wp_register_script('mapa', ASSETS_URI_JS . 'mapa.js', array(), VERSION_THEME, true);
    wp_register_script('gmaps', 'https://maps.googleapis.com/maps/api/js?' . http_build_query($args), array('jquery', 'mapa'), null, true);
    wp_localize_script('gmaps', 'WPURLS', array(<commit_msg>Foundation se compila junto con app.min.js<commit_after><?php
if (!defined('ABSPATH')) exit;

/*
 * @const WPBASE_GOOGLEMAPS_API_KEY string
 */
function registrarLibreriasFrontend() {
    // Fuentes
    wp_register_style('google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400,600,700', array(), null);

    // Estilo principal del frontend. Incluye foundation.
    wp_register_style('app', ASSETS_URI_CSS . 'app.min.css', array('google-fonts'), VERSION_THEME);

    // Script principal del frontend
    wp_register_script('app', ASSETS_URI_JS.'app.min.js', array(), VERSION_THEME, true);
    
    // Slick - https://github.com/kenwheeler/slick/
    wp_register_script('slick', ASSETS_URI_JS . 'vendor/slick.min.js', array('jquery'), '1.7.1', true);
    wp_register_script('slick-cdn', '//cdn.jsdelivr.net/gh/kenwheeler/slick@1.7.1/slick/slick.min.js', array('jquery'), '1.7.1', true);

    // Lightbox - https://github.com/lokesh/lightbox2/
    wp_register_script('lightbox', ASSETS_URI_JS . 'vendor/lightbox.min.js', array('jquery'), '2.8.2', true);

    // Google Maps - https://developers.google.com/maps/?hl=es-419
    // Llamar a 'gmaps' en el enqueue.
    $args = array(
        'key' => WPBASE_GOOGLEMAPS_API_KEY,
        'callback' => 'initMap',
    );
    wp_register_script('mapa', ASSETS_URI_JS . 'mapa.js', array(), VERSION_THEME, true);
    wp_register_script('gmaps', 'https://maps.googleapis.com/maps/api/js?' . http_build_query($args), array('jquery', 'mapa'), null, true);
    wp_localize_script('gmaps', 'WPURLS', array(
{'fraction_non_alphanumeric': 0.1811706410653453, 'fraction_numerical': 0.016413750387116753, 'mean_word_length': 4.086614173228346, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7449482', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1169, 'n_words': 184}