public function browserClass($before = '')
    {
        if (class_exists('Xiphe\THEMASTER\core\THEMASTER')) {
            $browser = str_replace(' ', '_', strtolower(\Xiphe\THETOOLS::get_browser()));
            $version = str_replace('.', '-', \Xiphe\THETOOLS::get_browserVersion());
            $engine = strtolower(\Xiphe\THETOOLS::get_layoutEngine());
            if (!empty($engine)) {
                $engine .=' ';
            }

            if (\Xiphe\THETOOLS::is_browser('mobile')) {
                $mobile = 'mobile no-desktop';
            } else {
                $mobile = 'desktop no-mobile';
            }

            return "$before$engine$browser $browser-$version $mobile";
        }

        return '';
    }
public function browserClass($before = '')
    {
        if (class_exists('Xiphe\THEMASTER\core\THEMASTER')) {
            $browser = str_replace(' ', '_', strtolower(\Xiphe\THETOOLS::get_browser()));
            $version = str_replace('.', '-', \Xiphe\THETOOLS::get_browserVersion());
            $engine = strtolower(\Xiphe\THETOOLS::get_layoutEngine());
            if (!empty($engine)) {
                $engine .=' ';
            }

            if (\Xiphe\THETOOLS::is_browser('mobile')) {
                $mobile = 'mobile no-desktop';
            } else {
                $mobile = 'desktop no-mobile';
            }

            return "$before$engine$browser $browser-$version $mobile";
        }

        return '';
    }
public function browserClass ( $ before = '' ) { if ( class_exists ( 'Xiphe\THEMASTER\core\THEMASTER' ) ) { $ browser = str_replace ( ' ' , '_' , strtolower ( \ Xiphe \ THETOOLS :: get_browser ( ) ) ) ; $ version = str_replace ( '.' , '-' , \ Xiphe \ THETOOLS :: get_browserVersion ( ) ) ; $ engine = strtolower ( \ Xiphe \ THETOOLS :: get_layoutEngine ( ) ) ; if ( ! empty ( $ engine ) ) { $ engine .= ' ' ; } if ( \ Xiphe \ THETOOLS :: is_browser ( 'mobile' ) ) { $ mobile = 'mobile no-desktop' ; } else { $ mobile = 'desktop no-mobile' ; } return "$before$engine$browser $browser-$version $mobile" ; } return '' ; }
Checks if \Xiphe\THETOOLS exists and appends browser classes.

@param string $before separator.

@return string
Checks if \ Xiphe \ THETOOLS exists and appends browser classes .