1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 08:39:57 +02:00

Issue #6 Language-file optimization.

This commit is contained in:
Cameron
2015-07-10 15:41:07 -07:00
parent c3d8cd9236
commit 9c6cfc0b86
10 changed files with 44 additions and 30 deletions

View File

@@ -1,14 +0,0 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system - Language File.
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/search_menu/languages/English.php,v $
| $Revision$
| $Date$
| $Author$
+----------------------------------------------------------------------------+
*/
define("LAN_180", "Search");
?>

View File

@@ -16,7 +16,9 @@
if (!defined('e107_INIT')) { exit; }
include_lan(e_PLUGIN."search_menu/languages/".e_LANGUAGE.".php");
// include_lan(e_PLUGIN."search_menu/languages/".e_LANGUAGE.".php");
if (strstr(e_PAGE, "news.php")) {
$page = 0;
} elseif(strstr(e_PAGE, "comment.php")) {
@@ -46,11 +48,11 @@ if (isset($custom_query[1]) && $custom_query[1] != '')
$image_file = ($custom_query[1] != 'default') ? $custom_query[1] : e_PLUGIN_ABS.'search_menu/images/search.png';
$width = (isset($custom_query[2]) && $custom_query[2]) ? $custom_query[2] : '16';
$height = (isset($custom_query[3]) && $custom_query[3]) ? $custom_query[3] : '16';
$search_button = "<input type='image' src='".$image_file."' value='".LAN_180."' style='width: ".$width."px; height: ".$height."px; border: 0px; vertical-align: middle' name='s' />";
$search_button = "<input type='image' src='".$image_file."' value='".LAN_SEARCH."' style='width: ".$width."px; height: ".$height."px; border: 0px; vertical-align: middle' name='s' />";
}
else
{
$search_button = "<input class='btn btn-default button search' type='submit' name='s' value='".LAN_180."' />";
$search_button = "<input class='btn btn-default button search' type='submit' name='s' value='".LAN_SEARCH."' />";
}
if (isset($custom_query[5]) && $custom_query[5]) {
@@ -108,6 +110,6 @@ if (isset($searchflat) && $searchflat)
{
echo $text;
} else {
$ns->tablerender(LAN_180." ".SITENAME, "<div style='text-align:center'>".$text."</div>", 'search');
$ns->tablerender(LAN_SEARCH." ".SITENAME, "<div style='text-align:center'>".$text."</div>", 'search');
}
?>