From c1dbe8744137901a9f492ee6dbf515d676a2ee46 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 31 Oct 2010 15:19:06 +0000 Subject: [PATCH] Added search block; --- .../en/mods/portal/portal_search_module.php | 43 +++++++++ root/portal/modules/portal_search.php | 86 ++++++++++++++++++ .../template/portal/modules/search_side.html | 77 ++++++++++++++++ .../theme/images/portal/portal_search.png | Bin 0 -> 813 bytes 4 files changed, 206 insertions(+) create mode 100644 root/language/en/mods/portal/portal_search_module.php create mode 100644 root/portal/modules/portal_search.php create mode 100644 root/styles/prosilver/template/portal/modules/search_side.html create mode 100644 root/styles/prosilver/theme/images/portal/portal_search.png diff --git a/root/language/en/mods/portal/portal_search_module.php b/root/language/en/mods/portal/portal_search_module.php new file mode 100644 index 00000000..c655a1e9 --- /dev/null +++ b/root/language/en/mods/portal/portal_search_module.php @@ -0,0 +1,43 @@ + 'Search', + 'PORTAL_SEARCH_GO' => 'Go', + 'PORTAL_SEARCH_SITE' => 'Forums', + 'PORTAL_SEARCH_POSTS' => 'Posts', + 'PORTAL_SEARCH_AUTHOR' => 'Author', + 'PORTAL_SEARCH_ENGINE' => 'Search engines', + 'PORTAL_SEARCH_ADV' => 'Advanced search', +)); + +?> \ No newline at end of file diff --git a/root/portal/modules/portal_search.php b/root/portal/modules/portal_search.php new file mode 100644 index 00000000..b839dcaf --- /dev/null +++ b/root/portal/modules/portal_search.php @@ -0,0 +1,86 @@ +lang}/mods/portal/" + */ + var $language = 'portal_search_module'; + + /** + * custom acp template + * file must be in "adm/style/portal/" + */ + var $custom_acp_tpl = ''; + + function get_template_side($module_id) + { + global $template, $phpbb_root_path, $phpEx; + + $template->assign_var('S_SEARCH_ACTION', append_sid("{$phpbb_root_path}search.$phpEx")); + + return 'search_side.html'; + } + + function get_template_acp($module_id) + { + return array( + 'title' => 'PORTAL_SEARCH', + 'vars' => array(), + ); + } + + /** + * API functions + */ + function install($module_id) + { + return true; + } + + function uninstall($module_id) + { + return true; + } +} + +?> \ No newline at end of file diff --git a/root/styles/prosilver/template/portal/modules/search_side.html b/root/styles/prosilver/template/portal/modules/search_side.html new file mode 100644 index 00000000..34326650 --- /dev/null +++ b/root/styles/prosilver/template/portal/modules/search_side.html @@ -0,0 +1,77 @@ + + + +{$LR_BLOCK_H_L} {L_PORTAL_SEARCH}{$LR_BLOCK_H_R} +
+

+ +

+

+ + + + +

+
+

{L_PORTAL_SEARCH_ADV}

+{$LR_BLOCK_F_L}{$LR_BLOCK_F_R} \ No newline at end of file diff --git a/root/styles/prosilver/theme/images/portal/portal_search.png b/root/styles/prosilver/theme/images/portal/portal_search.png new file mode 100644 index 0000000000000000000000000000000000000000..6dd1931589b453f6cc9772fd1851d8705d6b6631 GIT binary patch literal 813 zcmV+|1JeA7P)lXvaa)1B=8vtU6i;3jw7+Lm8D5$Z@i10EnF)=bcefw4K z$^E-CUfjQG`svfBbfD6|R#sLFj6lo3FG$G6@;ee>>~6i|H^5OY8c00W#fi<*1vzh{0&qu3dB`V0{{XDY`}(1n>S9M(9!zw#!&`A z#;*+0{6GVMSeWGp!`o{o8NPge#o%jgs54WT$qnQYpsyGNpauX05F;oJfZ`Pdw6!$j zynTH0RMa&!n3$Pa9zVGEY{&L(3qnPBl_DG6<9Xk0`Fl3`LiD4@pH{vDsxJWQ1qdJp zEJ>M}osCtQlY?CgW>F{;gVK#SmgoOZnEn5J%EtIXaWQXAO>Rdf)WFR;gt~f zXaA3z{{L{q=l48y!32