<commit_before><?php
/**
 * Plugin Name: CPT Bootstrap (Custom)
 * Plugin URI: https://github.com/catspajamastech/cpt-bootstrap-custom/
 * Description: A minimal bootstrap plugin for Wordpress. Forget that silly business of editing functions.php.
 * Version: 3.3.7.02152017
 * Author: Cat's Pajamas Technology
 * Author URI: https://catspajamas.tech/
 * License: MIT
 */
 
// register scripts and styles from CDN
wp_register_script('bootstrap-js','https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js','jquery','3.3.7','');
wp_register_style ('bootstrap','https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css','','3.3.7','');

// enqueue scripts and styles
wp_enqueue_script('jquery');
wp_enqueue_script('bootstrap-js');
wp_enqueue_style('bootstrap');<commit_msg>Uses wp_enqueue_scripts & add_action to hook bootstrap js & css to front end only.<commit_after><?php
/**
 * Plugin Name: CPT Bootstrap (Custom)
 * Plugin URI: https://github.com/catspajamastech/cpt-bootstrap-custom/
 * Description: A minimal bootstrap plugin for Wordpress that loads from CDN. Forget that silly business of editing functions.php.
 * Version: 3.3.7.09152017
 * Author: Cat's Pajamas Technology
 * Author URI: https://catspajamas.tech/
 * License: MIT
 */
 
if(!defined('ABSPATH')){exit;}//Exit if accessed directly

function load_bootstrap() {
    // register scripts and styles from CDN
    wp_register_script('bootstrap','https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js','jquery','3.3.7','');
    wp_register_style ('bootstrap','https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css','','3.3.7','');

    // enqueue scripts and styles
    //wp_enqueue_script('jquery');
    wp_enqueue_script('bootstrap');
    wp_enqueue_style('bootstrap');
};
add_action('wp_enqueue_scripts', 'load_bootstrap');
{'fraction_non_alphanumeric': 0.15826558265582655, 'fraction_numerical': 0.024932249322493227, 'mean_word_length': 4.95483870967742, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4976888', 'n_tokens_mistral': 614, 'n_tokens_neox': 581, 'n_words': 122}