roundcubemail/program/include/rcmail_output_html.php
public function template_exists($name)
    {
        foreach ($this->skin_paths as $skin_path) {
            $filename = RCUBE_INSTALL_PATH . $skin_path . '/templates/' . $name . '.html';
            if ((is_file($filename) && is_readable($filename))
                || ($this->deprecated_templates[$name] && $this->template_exists($this->deprecated_templates[$name]))
            ) {
                return true;
            }
        }

        return false;
    }
public function template_exists($name)
    {
        foreach ($this->skin_paths as $skin_path) {
            $filename = RCUBE_INSTALL_PATH . $skin_path . '/templates/' . $name . '.html';
            if ((is_file($filename) && is_readable($filename))
                || ($this->deprecated_templates[$name] && $this->template_exists($this->deprecated_templates[$name]))
            ) {
                return true;
            }
        }

        return false;
    }
public function template_exists ( $ name ) { foreach ( $ this -> skin_paths as $ skin_path ) { $ filename = RCUBE_INSTALL_PATH . $ skin_path . '/templates/' . $ name . '.html' ; if ( ( is_file ( $ filename ) && is_readable ( $ filename ) ) || ( $ this -> deprecated_templates [ $ name ] && $ this -> template_exists ( $ this -> deprecated_templates [ $ name ] ) ) ) { return true ; } } return false ; }
Check if a specific template exists

@param string $name Template name

@return boolean True if template exists
Check if a specific template exists