diff options
| author | Andreas Brachold <vdr07@deltab.de> | 2011-02-19 16:52:23 +0000 |
|---|---|---|
| committer | Andreas Brachold <vdr07@deltab.de> | 2011-02-19 16:52:23 +0000 |
| commit | 5c75d0d889c5016eebfef7462552a9604d345732 (patch) | |
| tree | 055823ff0d0240c09658e613ccf763baff07b632 | |
| parent | 0688845d7e65abcd2ca1af1734a39a3fc4a341b3 (diff) | |
| download | xxv-5c75d0d889c5016eebfef7462552a9604d345732.tar.gz xxv-5c75d0d889c5016eebfef7462552a9604d345732.tar.bz2 | |
Report epg search to browser via opensearch
| l--------- | skins/blue/opensearch.tmpl | 1 | ||||
| l--------- | skins/blue_flat/opensearch.tmpl | 1 | ||||
| -rw-r--r-- | skins/deltab/opensearch.tmpl | 12 | ||||
| -rw-r--r-- | skins/deltab/widgets/start.tmpl | 3 | ||||
| l--------- | skins/lcars/opensearch.tmpl | 1 | ||||
| l--------- | skins/lcars_flat/opensearch.tmpl | 1 | ||||
| l--------- | skins/snow/opensearch.tmpl | 1 | ||||
| l--------- | skins/snow_flat/opensearch.tmpl | 1 | ||||
| -rw-r--r-- | skins/stone/opensearch.tmpl | 13 | ||||
| -rw-r--r-- | skins/stone/widgets/start.tmpl | 3 | ||||
| -rw-r--r-- | skins/xstyle/opensearch.tmpl | 12 | ||||
| -rw-r--r-- | skins/xstyle/widgets/start.tmpl | 6 |
12 files changed, 50 insertions, 5 deletions
diff --git a/skins/blue/opensearch.tmpl b/skins/blue/opensearch.tmpl new file mode 120000 index 0000000..289f220 --- /dev/null +++ b/skins/blue/opensearch.tmpl @@ -0,0 +1 @@ +../stone/opensearch.tmpl
\ No newline at end of file diff --git a/skins/blue_flat/opensearch.tmpl b/skins/blue_flat/opensearch.tmpl new file mode 120000 index 0000000..289f220 --- /dev/null +++ b/skins/blue_flat/opensearch.tmpl @@ -0,0 +1 @@ +../stone/opensearch.tmpl
\ No newline at end of file diff --git a/skins/deltab/opensearch.tmpl b/skins/deltab/opensearch.tmpl new file mode 100644 index 0000000..47ff3ae --- /dev/null +++ b/skins/deltab/opensearch.tmpl @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="<?% charset %?>"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName><?% gettext("Search with XXV") %?></ShortName> + <Description><?% gettext("Search for TV shows") %?></Description> + <InputEncoding><?% charset %?></InputEncoding> + <OutputEncoding><?% charset %?></OutputEncoding> + <Image width="16" height="16" type="image/vnd.microsoft.icon">http://<?% info.HOST %?>/favicon.ico</Image> + <Url type="text/html" rel="results" template="http://<?% info.HOST %?>/?cmd=search&data={searchTerms}" /> + <Url type="application/json" rel="suggestions" template="http://<?% info.HOST %?>/?cmd=esuggest&ajax=json&data={searchTerms}" /> + <Url type="application/opensearchdescription+xml" rel="self" template="http://<?% info.HOST %?>/?cmd=opensearch" /> +</OpenSearchDescription> + diff --git a/skins/deltab/widgets/start.tmpl b/skins/deltab/widgets/start.tmpl index c46697c..89b5bdb 100644 --- a/skins/deltab/widgets/start.tmpl +++ b/skins/deltab/widgets/start.tmpl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="<?% charset %?>"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?% INCLUDE skin.cfg %?> <?% lang = locale.split('_') %?> <html xmlns="http://www.w3.org/1999/xhtml" <?% IF lang.1 %?>xml:lang="<?% lang.0 %?>" lang="<?% lang.0 %?>"<?% ELSE %?>xml:lang="en" lang="en"<?% END %?>> @@ -23,6 +23,7 @@ <?% IF allow("request") %?> <link rel="alternate" type="application/rss+xml" title="RSS-News" href="?cmd=request&data=rss" /> <?% END %?> + <link rel="search" type="application/opensearchdescription+xml" href="?cmd=opensearch" title="<?% gettext("Search with XXV") %?>" /> </head> <?% IF info.http_useragent.match('.*MSIE.*') && !info.http_useragent.match('.*Opera.*'); global.imagetyp = "gif"; diff --git a/skins/lcars/opensearch.tmpl b/skins/lcars/opensearch.tmpl new file mode 120000 index 0000000..289f220 --- /dev/null +++ b/skins/lcars/opensearch.tmpl @@ -0,0 +1 @@ +../stone/opensearch.tmpl
\ No newline at end of file diff --git a/skins/lcars_flat/opensearch.tmpl b/skins/lcars_flat/opensearch.tmpl new file mode 120000 index 0000000..289f220 --- /dev/null +++ b/skins/lcars_flat/opensearch.tmpl @@ -0,0 +1 @@ +../stone/opensearch.tmpl
\ No newline at end of file diff --git a/skins/snow/opensearch.tmpl b/skins/snow/opensearch.tmpl new file mode 120000 index 0000000..289f220 --- /dev/null +++ b/skins/snow/opensearch.tmpl @@ -0,0 +1 @@ +../stone/opensearch.tmpl
\ No newline at end of file diff --git a/skins/snow_flat/opensearch.tmpl b/skins/snow_flat/opensearch.tmpl new file mode 120000 index 0000000..289f220 --- /dev/null +++ b/skins/snow_flat/opensearch.tmpl @@ -0,0 +1 @@ +../stone/opensearch.tmpl
\ No newline at end of file diff --git a/skins/stone/opensearch.tmpl b/skins/stone/opensearch.tmpl new file mode 100644 index 0000000..ecc7beb --- /dev/null +++ b/skins/stone/opensearch.tmpl @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="<?% charset %?>"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName><?% gettext("Search with XXV") %?></ShortName> + <Description><?% gettext("Search for TV shows") %?></Description> + <InputEncoding><?% charset %?></InputEncoding> + <OutputEncoding><?% charset %?></OutputEncoding> + <Image height="75" width="75" type="image/png">http://<?% info.HOST %?>/images/logo.png</Image> + <Image width="16" height="16" type="image/vnd.microsoft.icon">http://<?% info.HOST %?>/favicon.ico</Image> + <Url type="text/html" rel="results" template="http://<?% info.HOST %?>/?cmd=search&data={searchTerms}" /> + <Url type="application/json" rel="suggestions" template="http://<?% info.HOST %?>/?cmd=esuggest&ajax=json&data={searchTerms}" /> + <Url type="application/opensearchdescription+xml" rel="self" template="http://<?% info.HOST %?>/?cmd=opensearch" /> +</OpenSearchDescription> + diff --git a/skins/stone/widgets/start.tmpl b/skins/stone/widgets/start.tmpl index 19d27cf..3498889 100644 --- a/skins/stone/widgets/start.tmpl +++ b/skins/stone/widgets/start.tmpl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="<?% charset %?>"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?% INCLUDE skin.cfg %?> <?% lang = locale.split('_') %?> <html xmlns="http://www.w3.org/1999/xhtml" <?% IF lang.1 %?>xml:lang="<?% lang.0 %?>" lang="<?% lang.0 %?>"<?% ELSE %?>xml:lang="en" lang="en"<?% END %?>> @@ -24,6 +24,7 @@ <?% IF allow("request") %?> <link rel="alternate" type="application/rss+xml" title="RSS-News" href="?cmd=request&data=rss" /> <?% END %?> + <link rel="search" type="application/opensearchdescription+xml" href="?cmd=opensearch" title="<?% gettext("Search with XXV") %?>" /> </head> <?% IF info.http_useragent.match('.*MSIE.*') && !info.http_useragent.match('.*Opera.*'); global.imagetyp = "gif"; diff --git a/skins/xstyle/opensearch.tmpl b/skins/xstyle/opensearch.tmpl new file mode 100644 index 0000000..47ff3ae --- /dev/null +++ b/skins/xstyle/opensearch.tmpl @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="<?% charset %?>"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName><?% gettext("Search with XXV") %?></ShortName> + <Description><?% gettext("Search for TV shows") %?></Description> + <InputEncoding><?% charset %?></InputEncoding> + <OutputEncoding><?% charset %?></OutputEncoding> + <Image width="16" height="16" type="image/vnd.microsoft.icon">http://<?% info.HOST %?>/favicon.ico</Image> + <Url type="text/html" rel="results" template="http://<?% info.HOST %?>/?cmd=search&data={searchTerms}" /> + <Url type="application/json" rel="suggestions" template="http://<?% info.HOST %?>/?cmd=esuggest&ajax=json&data={searchTerms}" /> + <Url type="application/opensearchdescription+xml" rel="self" template="http://<?% info.HOST %?>/?cmd=opensearch" /> +</OpenSearchDescription> + diff --git a/skins/xstyle/widgets/start.tmpl b/skins/xstyle/widgets/start.tmpl index 53a9a08..886efb5 100644 --- a/skins/xstyle/widgets/start.tmpl +++ b/skins/xstyle/widgets/start.tmpl @@ -5,12 +5,12 @@ <head> <title><?% IF param.title.defined;param.title;ELSE %?>XXV - <?% user %?><?% END %?></title> <?% IF allow('request') %?> - <link rel="alternate" type="application/rss+xml" title="RSS-News 1.0" href="http://<?% info.HOST %?>/?cmd=request&data=rss&__version=1"> - <link rel="alternate" type="application/rss+xml" title="RSS-News 2.0" href="http://<?% info.HOST %?>/?cmd=request&data=rss&__version=2"> + <link rel="alternate" type="application/rss+xml" title="RSS-News 1.0" href="?cmd=request&data=rss&__version=1"> + <link rel="alternate" type="application/rss+xml" title="RSS-News 2.0" href="?cmd=request&data=rss&__version=2"> <?% END %?> + <link rel="search" type="application/opensearchdescription+xml" href="?cmd=opensearch" title="<?% gettext("Search with XXV") %?>" /> <meta name="generator" content="XXV System - Version: <?% version %?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?% charset %?>"> - <meta name="copyright" content="copyright 2004 Xpix"> <!-- Styles --> <link href="style/style.css" type="text/css" rel="stylesheet" /> <link href="style/xmenu.css" type="text/css" rel="stylesheet"> |
