<commit_before><?php
/* Modify the Bootstrap Classes being applied
 * based on the Genesis template chosen
 */

add_filter('bsg-classes-to-add', 'bsg_modify_classes_based_on_template', 10, 3);

function bsg_layout_options_modify_classes_to_add( $classes_to_add ) {

    $layout = genesis_site_layout();

    // content-sidebar          // default

    // full-width-content       // supported
    if ( 'full-width-content' === $layout ) {
        $classes_to_add['content'] = 'span12';
    }

    // sidebar-content          // not yet supported 
    // - same markup as content-sidebar with css modifications rather than markup

    // content-sidebar-sidebar  // not yet supported<commit_msg>remove unused layouts from genesis options<commit_after><?php
/* Modify the Bootstrap Classes being applied
 * based on the Genesis template chosen
 */

// remove unused layouts
add_action('genesis_setup', 'bsg_remove_unused_layout_options', 15);

// modify bootstrap classes based on genesis_site_layout
add_filter('bsg-classes-to-add', 'bsg_modify_classes_based_on_template', 10, 3);

function bsg_remove_unused_layout_options() {
    genesis_unregister_layout( 'sidebar-content' );
    genesis_unregister_layout( 'content-sidebar-sidebar' );
    genesis_unregister_layout( 'sidebar-sidebar-content' );
    genesis_unregister_layout( 'sidebar-content-sidebar' );
}

function bsg_layout_options_modify_classes_to_add( $classes_to_add ) {

    $layout = genesis_site_layout();

    // content-sidebar          // default

    // full-width-content       // supported
    if ( 'full-width-content' === $layout ) {
        $classes_to_add['content'] = 'span12';
    }

    // sidebar-content          // not yet supported 
    // - same markup as content-sidebar with css modifications rather than markup

    // content-sidebar-sidebar  // not yet supported
{'fraction_non_alphanumeric': 0.10918918918918918, 'fraction_numerical': 0.006486486486486486, 'mean_word_length': 3.3966745843230406, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7136052', 'n_tokens_mistral': 562, 'n_tokens_neox': 527, 'n_words': 124}