public function map_comments_template_to_partials($path)
    {
        $tpl = \str_replace(
            [STYLESHEETPATH, TEMPLATEPATH, '.'],
            ['', '', '/'],
            $path
        );

        $locate = \locate_template(Theme_Utils::get_path_to_partial($tpl), false);

        if ($locate !== '') {
            return $locate;
        }

        $locate = \locate_template(Theme_Utils::get_path_to_partial('comments'), false);

        if ($locate !== '') {
            return $locate;
        }

        return $path;
    }
public function map_comments_template_to_partials($path)
    {
        $tpl = \str_replace(
            [STYLESHEETPATH, TEMPLATEPATH, '.'],
            ['', '', '/'],
            $path
        );

        $locate = \locate_template(Theme_Utils::get_path_to_partial($tpl), false);

        if ($locate !== '') {
            return $locate;
        }

        $locate = \locate_template(Theme_Utils::get_path_to_partial('comments'), false);

        if ($locate !== '') {
            return $locate;
        }

        return $path;
    }
public function map_comments_template_to_partials ( $ path ) { $ tpl = \ str_replace ( [ STYLESHEETPATH , TEMPLATEPATH , '.' ] , [ '' , '' , '/' ] , $ path ) ; $ locate = \ locate_template ( Theme_Utils :: get_path_to_partial ( $ tpl ) , false ) ; if ( $ locate !== '' ) { return $ locate ; } $ locate = \ locate_template ( Theme_Utils :: get_path_to_partial ( 'comments' ) , false ) ; if ( $ locate !== '' ) { return $ locate ; } return $ path ; }
Attempt to map the file passes into comments_template to a partial.

@param string $path
@return string
Attempt to map the file passes into comments_template to a partial .