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 00000000..6dd19315 Binary files /dev/null and b/root/styles/prosilver/theme/images/portal/portal_search.png differ