public function getBasename(Smarty_Template_Source $source)
    {
        $_file = $source->name;
        if (($_pos = strpos($_file, ']')) !== false) {
            $_file = substr($_file, $_pos + 1);
        }

        return basename($_file);
    }
public function getBasename(Smarty_Template_Source $source)
    {
        $_file = $source->name;
        if (($_pos = strpos($_file, ']')) !== false) {
            $_file = substr($_file, $_pos + 1);
        }

        return basename($_file);
    }
public function getBasename ( Smarty_Template_Source $ source ) { $ _file = $ source -> name ; if ( ( $ _pos = strpos ( $ _file , ']' ) ) !== false ) { $ _file = substr ( $ _file , $ _pos + 1 ) ; } return basename ( $ _file ) ; }
Determine basename for compiled filename

@param  Smarty_Template_Source $source source object
@return string                 resource's basename
Determine basename for compiled filename