library/Theme/General.php
public function bemItClassDefinition()
    {
        //Classes
        $classes = array();

        //Theme specific class
        $themeObject = wp_get_theme();
        $classes[] = "t-" . sanitize_title($themeObject->get("Name"));

        //Child theme specific class
        if (is_child_theme()) {
            $childThemeObject = wp_get_theme(get_template());
            $classes[] = "t-" . sanitize_title($childThemeObject->get("Name"));
        }

        //Define const for later use
        define("MUNICIPIO_BEM_THEME_NAME", implode(" ", $classes));
    }
public function bemItClassDefinition()
    {
        //Classes
        $classes = array();

        //Theme specific class
        $themeObject = wp_get_theme();
        $classes[] = "t-" . sanitize_title($themeObject->get("Name"));

        //Child theme specific class
        if (is_child_theme()) {
            $childThemeObject = wp_get_theme(get_template());
            $classes[] = "t-" . sanitize_title($childThemeObject->get("Name"));
        }

        //Define const for later use
        define("MUNICIPIO_BEM_THEME_NAME", implode(" ", $classes));
    }
public function bemItClassDefinition ( ) { //Classes $ classes = array ( ) ; //Theme specific class $ themeObject = wp_get_theme ( ) ; $ classes [ ] = "t-" . sanitize_title ( $ themeObject -> get ( "Name" ) ) ; //Child theme specific class if ( is_child_theme ( ) ) { $ childThemeObject = wp_get_theme ( get_template ( ) ) ; $ classes [ ] = "t-" . sanitize_title ( $ childThemeObject -> get ( "Name" ) ) ; } //Define const for later use define ( "MUNICIPIO_BEM_THEME_NAME" , implode ( " " , $ classes ) ) ; }
Defines global BEM class for theme

@return void
Defines global BEM class for theme