summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-07-01 17:38:00 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-07-01 17:38:00 +0000
commit2392cea082831bbc68262ceeefcabc12d1378bbd (patch)
treea0a4cc7096bedfb61be04c591bebf73308dd0d19
parentaf14a04826d68d09e0ab11344eaf97b32cfd7717 (diff)
downloadsearch-2392cea082831bbc68262ceeefcabc12d1378bbd.tar.gz
search-2392cea082831bbc68262ceeefcabc12d1378bbd.tar.bz2
search-2392cea082831bbc68262ceeefcabc12d1378bbd.zip
add menu
-rw-r--r--bit_setup_inc.php2
-rw-r--r--templates/menu_search.tpl3
2 files changed, 4 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 6133f11..5efdf16 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -12,6 +12,7 @@ if( $gBitSystem->isPackageActive( 'search' ) ) {
$menuHash = array(
'package_name' => SEARCH_PKG_NAME,
'index_url' => SEARCH_PKG_URL.'index.php',
+ 'menu_template' => 'bitpackage:search/menu_search.tpl',
);
$gBitSystem->registerAppMenu( $menuHash );
@@ -26,5 +27,4 @@ if( $gBitSystem->isPackageActive( 'search' ) ) {
$gLibertySystem->registerService( LIBERTY_SERVICE_SEARCH, SEARCH_PKG_NAME,
array('content_store_function' => 'refresh_index'));
}
-
?>
diff --git a/templates/menu_search.tpl b/templates/menu_search.tpl
new file mode 100644
index 0000000..3a83d7c
--- /dev/null
+++ b/templates/menu_search.tpl
@@ -0,0 +1,3 @@
+{strip}
+<ul><li><a class="item" href="{$smarty.const.SEARCH_PKG_URL}index.php">{biticon iexplain=Search iname=system-search ilocation=menu}</a></li></ul>
+{/strip}