| Server IP : 130.225.57.55 / Your IP : 216.73.216.60 Web Server : Apache System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /srv/www/reco2st.eu/https/wp-content/themes/erc04961/library/helpers/ |
Upload File : |
<?php
/**
* BEM class name convention
* helper
*
* @author Max G J Panas <http://maxpanas.com>
*/
/**
* Class MOZ_BEM
*
*/
class MOZ_BEM {
/**
* Get the BEM className
* string given a list of
* element/modifier names
* and a block name
*
* @param $block
* @param $sub_classes
*
* @return string
*/
public static function get_bem( $block, $sub_classes = array() ) {
return $block . implode( " $block", (array) $sub_classes );
}
/**
* Print the BEM className
* string given a list of
* element/modifier names
* and a block name
*
* @param $block
* @param $sub_classes
*
* @return string
*/
public static function bem( $block, $sub_classes = array() ) {
echo self::get_bem( $block, $sub_classes );
}
}