protected function getPath($path, $theme = true)
    {
        if ($theme) {
            $themes = SSViewer::get_themes();
            if (is_array($themes)) {
                $themePath = $themes[0];
            } else {
                $themePath = 'simple';
            }
            $path = '/themes/' . $themePath . "/$path";
        }

        return BASE_PATH . $path;
    }
protected function getPath($path, $theme = true)
    {
        if ($theme) {
            $themes = SSViewer::get_themes();
            if (is_array($themes)) {
                $themePath = $themes[0];
            } else {
                $themePath = 'simple';
            }
            $path = '/themes/' . $themePath . "/$path";
        }

        return BASE_PATH . $path;
    }
protected function getPath ( $ path , $ theme = true ) { if ( $ theme ) { $ themes = SSViewer :: get_themes ( ) ; if ( is_array ( $ themes ) ) { $ themePath = $ themes [ 0 ] ; } else { $ themePath = 'simple' ; } $ path = '/themes/' . $ themePath . "/$path" ; } return BASE_PATH . $ path ; }
Returns the absolute path to a file based on whether or not
the input is relative to the current theme
@param  string $path Relative or absolute path to file
@param  boolean $theme Whether or not to take current theme into account
@return string  The absolute path to the file
Returns the absolute path to a file based on whether or not the input is relative to the current theme