<commit_before><?php

if ( ! class_exists( 'SS_Framework_Bootstrap' ) ) {

	/**
	* The Bootstrap Framework module
	*/
	class SS_Framework_Bootstrap extends SS_Framework_Core {

		var $defines = array(
			// Generic framework definitions
			'shortname' => 'bootstrap',
			'name'      => 'Bootstrap',
			'classname' => 'SS_Framework_Bootstrap',
			'compiler'  => 'less_php',

			// Layout
			'container'  => 'container',
			'row'        => 'row',
			'col-mobile' => 'col-xs',
			'col-tablet' => 'col-sm',
			'col-medium' => 'col-md',
			'col-large'  => 'col-lg',

			// Buttons
			'button'         => 'btn',
			'button-default' => 'btn-default',
			'button-primary' => 'btn-primary',
			'button-success' => 'btn-success',
			'button-info'    => 'btn-info',
			'button-warning' => 'btn-warning',
			'button-danger'  => 'btn-danger',
			'button-link'    => 'btn-link',

			'button-extra-small' => 'btn-xs',
			'button-small'       => 'btn-sm',
			'button-medium'      => null,
			'button-large'       => 'btn-lg',
			'button-extra-large' => 'btn-lg',

			'button-block'    => 'btn-block',
			'button-radius'   => null,
			'button-round'    => null,

			// Button-Groups
			'button-group'             => 'btn-group',
			'button-group-extra-small' => 'btn-group-xs',
			'button-group-small'       => 'btn-group-sm',
			'button-group-default'     => null,
			'button-group-large'       => 'btn-group-lg',
			'button-group-extra-large' => 'btn-group-lg',

			// Alerts
			'alert'         => 'alert',
			'alert-success' => 'alert-success',
			'alert-info'    => 'alert-info',
			'alert-warning' => 'alert-warning',
			'alert-danger'  => 'alert-danger',

			// Miscelaneous
			'clearfix' => '<div class="clearfix"></div>',

			// Forms
			'form-input' => 'form-control',
		);

		/**
		 * Class constructor
		 */
		public function __construct() {
			global $ss_settings;

			parent::__construct();

			if ( ! defined( 'SS_FRAMEWORK_PATH' ) ) {
				define( 'SS_FRAMEWORK_PATH', dirname( __FILE__ ) );
			}

			if ( class_exists( 'ReduxFrameworkPlugin' ) ) {

				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Options.php' );         // Redux Options
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Advanced.php' );        // Advanced
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Background.php' );      // Background
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Branding.php' );        // Branding
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Blog.php' );            // Blog
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Breadcrumbs.php' );     // Breadcrumbs
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Header.php' );          // Header
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Typography.php' );      // Typography
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Footer.php' );          // Footer
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Social.php' );          // Social
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Layout.php' );          // layout
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Jumbotron.php' );       // Jumbotron
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Menus.php' );           // Menus
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Nav_Walker.php' );      // NavWalker
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Nav_Menu_Widget.php' ); // NavMenus
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Navlist_Walker.php' );  // NavLists

				include_once( SS_FRAMEWORK_PATH . '/includes/widgets.php' );                         // Widgets
				include_once( SS_FRAMEWORK_PATH . '/includes/gallery.php' );                         // Custom [gallery]

				// instantiate the classes
				global $ss_layout;
				$ss_layout      = new Shoestrap_Layout();

				global $ss_background;
				$ss_background  = new Shoestrap_Background();

				global $ss_advanced;
				$ss_advanced    = new Shoestrap_Advanced();

				global $ss_branding;
				$ss_branding    = new Shoestrap_Branding();

				global $ss_blog;
				$ss_blog        = new Shoestrap_Blog();

				global $ss_footer;
				$ss_footer      = new Shoestrap_Footer();

				global $ss_headers;
				$ss_headers     = new Shoestrap_Header();

				global $ss_jumbotron;
				$ss_jumbotron   = new Shoestrap_Jumbotron();

				global $ss_menus;
				$ss_menus       = new Shoestrap_Menus();

				global $ss_typography;
				$ss_typography  = new Shoestrap_Typography();

				global $ss_breadcrumbs;
				$ss_breadcrumbs = new Shoestrap_Breadcrumbs();

				global $ss_social;
				$ss_social      = new Shoestrap_Social();

				add_filter( 'shoestrap_compiler', array( $this, 'styles_filter' ) );

				if ( isset( $ss_settings['navbar_social'] ) && $ss_settings['navbar_social'] == 1 ) {
					if ( $ss_settings['navbar_social_style'] == 1 ) {
						add_action( 'shoestrap_inside_nav_end', array( $this, 'navbar_social_bar' ) );
					} else {
						add_action( 'shoestrap_inside_nav_end', array( $this, 'navbar_social_links' ) );
					}
				}

				if ( isset( $ss_settings['retina_toggle'] ) && $ss_settings['retina_toggle'] ) {
					add_theme_support( 'retina' );
				}

				add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 110 );
				add_action( 'widgets_init',       array( $this, 'navlist_widget_init' ), 1 );
				add_filter( 'nav_menu_css_class', array( $this, 'nav_menu_css_class' ), 10, 2 );
				add_filter( 'nav_menu_item_id',   '__return_null' );
			}
			add_action( 'shoestrap_pre_wrap', array( $this, 'breadcrumbs' ), 99 );
			add_filter( 'wp_nav_menu_args',   array( $this, 'nav_menu_args' ) );
		}

		/*
		 * Replace the default menus widget with our custom one
		 */
		function navlist_widget_init() {
			unregister_widget( 'WP_Nav_Menu_Widget' );
			register_widget( 'Shoestrap_Nav_Menu_Widget' );
		}

		/**<commit_msg>remove breadcrumbs if Woo Child is activated<commit_after><?php

if ( ! class_exists( 'SS_Framework_Bootstrap' ) ) {

	/**
	* The Bootstrap Framework module
	*/
	class SS_Framework_Bootstrap extends SS_Framework_Core {

		var $defines = array(
			// Generic framework definitions
			'shortname' => 'bootstrap',
			'name'      => 'Bootstrap',
			'classname' => 'SS_Framework_Bootstrap',
			'compiler'  => 'less_php',

			// Layout
			'container'  => 'container',
			'row'        => 'row',
			'col-mobile' => 'col-xs',
			'col-tablet' => 'col-sm',
			'col-medium' => 'col-md',
			'col-large'  => 'col-lg',

			// Buttons
			'button'         => 'btn',
			'button-default' => 'btn-default',
			'button-primary' => 'btn-primary',
			'button-success' => 'btn-success',
			'button-info'    => 'btn-info',
			'button-warning' => 'btn-warning',
			'button-danger'  => 'btn-danger',
			'button-link'    => 'btn-link',

			'button-extra-small' => 'btn-xs',
			'button-small'       => 'btn-sm',
			'button-medium'      => null,
			'button-large'       => 'btn-lg',
			'button-extra-large' => 'btn-lg',

			'button-block'    => 'btn-block',
			'button-radius'   => null,
			'button-round'    => null,

			// Button-Groups
			'button-group'             => 'btn-group',
			'button-group-extra-small' => 'btn-group-xs',
			'button-group-small'       => 'btn-group-sm',
			'button-group-default'     => null,
			'button-group-large'       => 'btn-group-lg',
			'button-group-extra-large' => 'btn-group-lg',

			// Alerts
			'alert'         => 'alert',
			'alert-success' => 'alert-success',
			'alert-info'    => 'alert-info',
			'alert-warning' => 'alert-warning',
			'alert-danger'  => 'alert-danger',

			// Miscelaneous
			'clearfix' => '<div class="clearfix"></div>',

			// Forms
			'form-input' => 'form-control',
		);

		/**
		 * Class constructor
		 */
		public function __construct() {
			global $ss_settings;

			parent::__construct();

			if ( ! defined( 'SS_FRAMEWORK_PATH' ) ) {
				define( 'SS_FRAMEWORK_PATH', dirname( __FILE__ ) );
			}

			if ( class_exists( 'ReduxFrameworkPlugin' ) ) {

				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Options.php' );         // Redux Options
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Advanced.php' );        // Advanced
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Background.php' );      // Background
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Branding.php' );        // Branding
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Blog.php' );            // Blog
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Breadcrumbs.php' );     // Breadcrumbs
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Header.php' );          // Header
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Typography.php' );      // Typography
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Footer.php' );          // Footer
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Social.php' );          // Social
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Layout.php' );          // layout
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Jumbotron.php' );       // Jumbotron
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Menus.php' );           // Menus
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Nav_Walker.php' );      // NavWalker
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Nav_Menu_Widget.php' ); // NavMenus
				include_once( SS_FRAMEWORK_PATH . '/includes/class-Shoestrap_Navlist_Walker.php' );  // NavLists

				include_once( SS_FRAMEWORK_PATH . '/includes/widgets.php' );                         // Widgets
				include_once( SS_FRAMEWORK_PATH . '/includes/gallery.php' );                         // Custom [gallery]

				// instantiate the classes
				global $ss_layout;
				$ss_layout      = new Shoestrap_Layout();

				global $ss_background;
				$ss_background  = new Shoestrap_Background();

				global $ss_advanced;
				$ss_advanced    = new Shoestrap_Advanced();

				global $ss_branding;
				$ss_branding    = new Shoestrap_Branding();

				global $ss_blog;
				$ss_blog        = new Shoestrap_Blog();

				global $ss_footer;
				$ss_footer      = new Shoestrap_Footer();

				global $ss_headers;
				$ss_headers     = new Shoestrap_Header();

				global $ss_jumbotron;
				$ss_jumbotron   = new Shoestrap_Jumbotron();

				global $ss_menus;
				$ss_menus       = new Shoestrap_Menus();

				global $ss_typography;
				$ss_typography  = new Shoestrap_Typography();

				global $ss_breadcrumbs;
				$ss_breadcrumbs = new Shoestrap_Breadcrumbs();

				global $ss_social;
				$ss_social      = new Shoestrap_Social();

				add_filter( 'shoestrap_compiler', array( $this, 'styles_filter' ) );

				if ( isset( $ss_settings['navbar_social'] ) && $ss_settings['navbar_social'] == 1 ) {
					if ( $ss_settings['navbar_social_style'] == 1 ) {
						add_action( 'shoestrap_inside_nav_end', array( $this, 'navbar_social_bar' ) );
					} else {
						add_action( 'shoestrap_inside_nav_end', array( $this, 'navbar_social_links' ) );
					}
				}

				if ( isset( $ss_settings['retina_toggle'] ) && $ss_settings['retina_toggle'] ) {
					add_theme_support( 'retina' );
				}

				add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 110 );
				add_action( 'widgets_init',       array( $this, 'navlist_widget_init' ), 1 );
				add_filter( 'nav_menu_css_class', array( $this, 'nav_menu_css_class' ), 10, 2 );
				add_filter( 'nav_menu_item_id',   '__return_null' );
			}

			if ( ! class_exists( 'WooCommerce' ) && ! function_exists( 'shoestrap_woo_include_files' ) && ! is_woocommerce() ) {
				add_action( 'shoestrap_pre_wrap', array( $this, 'breadcrumbs' ), 99 );
			}
			add_filter( 'wp_nav_menu_args',   array( $this, 'nav_menu_args' ) );
		}

		/*
		 * Replace the default menus widget with our custom one
		 */
		function navlist_widget_init() {
			unregister_widget( 'WP_Nav_Menu_Widget' );
			register_widget( 'Shoestrap_Nav_Menu_Widget' );
		}

		/**
{'fraction_non_alphanumeric': 0.15169185282522996, 'fraction_numerical': 0.0018068331143232589, 'mean_word_length': 2.9587126137841353, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 85, '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': '4038278', 'n_tokens_mistral': 4987, 'n_tokens_neox': 4157, 'n_words': 684}