opensearch support
[phinde.git] / www / opensearchdescription.php
diff --git a/www/opensearchdescription.php b/www/opensearchdescription.php
new file mode 100644 (file)
index 0000000..443546e
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+namespace phinde;
+/**
+ * OpenSearch XML description element
+ *
+ * @link http://www.opensearch.org/
+ */
+require 'www-header.php';
+
+header('Content-type: application/opensearchdescription+xml');
+render(
+    'opensearchdescription',
+    array(
+        'absBaseUrl' => Helper::fullUrl('/'),
+    )
+);
+?>
\ No newline at end of file