protected function setClasses()
    {
        $classes = array();

        if (isset($this->current_route['pattern'])) {
            $pattern = $this->current_route['pattern'] ? $this->current_route['pattern'] : 'front';
            foreach (explode('/', $pattern) as $part) {
                if (ctype_alpha($part)) {
                    $classes[] = "gc-$part";
                }
            }
        }

        if ($this->is_maintenance) {
            $classes[] = "gc-maintenance";
        }

        $this->data['_classes'] = $classes;
    }
protected function setClasses()
    {
        $classes = array();

        if (isset($this->current_route['pattern'])) {
            $pattern = $this->current_route['pattern'] ? $this->current_route['pattern'] : 'front';
            foreach (explode('/', $pattern) as $part) {
                if (ctype_alpha($part)) {
                    $classes[] = "gc-$part";
                }
            }
        }

        if ($this->is_maintenance) {
            $classes[] = "gc-maintenance";
        }

        $this->data['_classes'] = $classes;
    }
protected function setClasses ( ) { $ classes = array ( ) ; if ( isset ( $ this -> current_route [ 'pattern' ] ) ) { $ pattern = $ this -> current_route [ 'pattern' ] ? $ this -> current_route [ 'pattern' ] : 'front' ; foreach ( explode ( '/' , $ pattern ) as $ part ) { if ( ctype_alpha ( $ part ) ) { $ classes [ ] = "gc-$part" ; } } } if ( $ this -> is_maintenance ) { $ classes [ ] = "gc-maintenance" ; } $ this -> data [ '_classes' ] = $ classes ; }
Sets an array of body CSS classes
Sets an array of body CSS classes