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

function theme_registrarLibrerias() {
    // https://github.com/kenwheeler/slick/
    wp_register_script('slick', ASSETS_URI_JS . 'vendor/slick.min.js', array('jquery'), '1.6.0', true);

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

    // https://developers.google.com/maps/?hl=es-419
    // wp_register_script('google-maps', 'https://maps.googleapis.com/maps/api/js?key=' . GMAPS_APP_KEY);
    // wp_localize_script('google-maps', 'WPURLS', array(
    //     'siteurl'    => HOME_URL,
    //     'stylesheet' => THEME_URI,
    //     )
    // );
}
add_action('wp_enqueue_scripts', 'theme_registrarLibrerias');

function theme_enqueue() {
    // wp_enqueue_style('google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400,600,700', array(), null);
    wp_enqueue_style('app', ASSETS_URI_CSS . 'app.min.css', array(), VERSION_THEME);

    wp_enqueue_script('jquery');
    wp_enqueue_script('foundation', ASSETS_URI_JS . 'vendor/foundation.min.js', array('jquery'), '6.2.3', true);
    wp_enqueue_script('extend-nav', ASSETS_URI_JS . 'extend/navegacion-responsive.js', array('jquery'), VERSION_THEME, true);
    wp_enqueue_script('nav', ASSETS_URI_JS.'vendor/superfish.min.js', array('jquery'), '1.7.9', true);
    wp_enqueue_script('app', ASSETS_URI_JS.'app.js', array('foundation'), VERSION_THEME, true);
}
add_action('wp_enqueue_scripts', 'theme_enqueue');

function theme_enqueueBackend() {
    wp_enqueue_style('backend', ASSETS_URI_CSS . 'backend.min.css', array(), VERSION_THEME);
}
add_action('admin_enqueue_scripts', 'theme_enqueueBackend');

function theme_enqueueSlick() {
    wp_enqueue_script('slick');
}

function theme_enqueueLightbox() {
    wp_enqueue_script('lightbox');
}

function theme_enqueueWidgetGaleria() {
    wp_enqueue_style('widget-galeria', ASSETS_URI_CSS . 'backend-widget-galeria.min.css', array(), VERSION_THEME);

    wp_enqueue_script('jquery');
    wp_enqueue_media();
    wp_enqueue_script('widget-galeria', ASSETS_URI_JS . 'widget-galeria.js', array('jquery'), VERSION_THEME);
}

function theme_login() {
    wp_enqueue_style('custom-login', ASSETS_URI_CSS . 'login.min.css' );
}
add_action('login_enqueue_scripts', 'theme_login');
<commit_msg>Modifica enqueues<commit_after><?php
if (!defined('ABSPATH')) exit;

function theme_registrarLibrerias() {
    # @url https://github.com/kenwheeler/slick/
    wp_register_script('slick', ASSETS_URI_JS . 'vendor/slick.min.js', array('jquery'), '1.6.0', true);
    // wp_register_script('slick-cdn', '//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js', array('jquery'), '1.6.0', true);

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

    // https://developers.google.com/maps/?hl=es-419
    $args = array(
        'key' => '',
        'callback' => 'initMap',
    );
    wp_register_script('google-maps', 'https://maps.googleapis.com/maps/api/js?' . http_build_query($args));
    wp_localize_script('google-maps', 'WPURLS', array(
        'home_url'    => HOME_URL,
        'theme_uri' => THEME_URI,
    ));
}
add_action('wp_enqueue_scripts', 'theme_registrarLibrerias');

function theme_enqueueFrontend() {
    // wp_enqueue_style('google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400,600,700', array(), null);
    wp_enqueue_style('app', ASSETS_URI_CSS . 'app.min.css', array(), VERSION_THEME);

    wp_enqueue_script('jquery');
    wp_enqueue_script('foundation', ASSETS_URI_JS . 'vendor/foundation.min.js', array('jquery'), '6.2.3', true);
    wp_enqueue_script('extend-nav', ASSETS_URI_JS . 'extend/navegacion-responsive.js', array('jquery'), VERSION_THEME, true);
    wp_enqueue_script('nav', ASSETS_URI_JS.'vendor/superfish.min.js', array('jquery'), '1.7.9', true);
    wp_enqueue_script('app', ASSETS_URI_JS.'app.js', array('foundation'), VERSION_THEME, true);

    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
add_action('wp_enqueue_scripts', 'theme_enqueueFrontend');

function theme_enqueueBackend() {
    wp_enqueue_style('backend', ASSETS_URI_CSS . 'backend.min.css', array(), VERSION_THEME);
}
add_action('admin_enqueue_scripts', 'theme_enqueueBackend');

function theme_enqueueSlick() {
    wp_enqueue_script('slick');
}

function theme_enqueueLightbox() {
    wp_enqueue_script('lightbox');
}

function theme_login() {
    wp_enqueue_style('custom-login', ASSETS_URI_CSS . 'login.min.css' );
}
add_action('login_enqueue_scripts', 'theme_login');

{'fraction_non_alphanumeric': 0.17888935989826196, 'fraction_numerical': 0.011869436201780416, 'mean_word_length': 5.096899224806202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '893162', 'n_tokens_mistral': 1768, 'n_tokens_neox': 1721, 'n_words': 213}