1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 10:53:29 +02:00

LAN Fixes and notice removal.

This commit is contained in:
Cameron
2015-07-02 14:15:17 -07:00
parent b06aab269b
commit c98a403bf5
8 changed files with 31 additions and 23 deletions

View File

@@ -321,7 +321,7 @@ class download
if(!$sql->gen($query))
{
//require_once(HEADERF);
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div style='text-align:center'>".LAN_NO_RECORDS_FOUND."."</div>", 'download-view', true);
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div style='text-align:center'>".LAN_NO_RECORDS_FOUND."</div>", 'download-view', true);
//require_once(FOOTERF);
//exit;
}
@@ -330,9 +330,12 @@ class download
$dlrow = $sql->fetch();
$sc->setVars($dlrow);
$comment_edit_query = 'comment.download.'.$id;
// $comment_edit_query = 'comment.download.'.$id;
if(!defined("DL_IMAGESTYLE")){ define("DL_IMAGESTYLE","border:0px");}
if(!defined("DL_IMAGESTYLE"))
{
define("DL_IMAGESTYLE","border:0px");
}
if(!isset($DL_VIEW_PAGETITLE))
{
@@ -380,7 +383,7 @@ class download
if ($dlrow['download_comment'])
{
$comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], $width, $dlrow['download_name'], FALSE, true);
$comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], null, $dlrow['download_name'], FALSE, true);
$ret .= $ns->tablerender($comments['caption'], $comments['comment'].$comments['comment_form'], 'download-comments', true);
}
@@ -475,8 +478,8 @@ class download
if ($dlrow['download_category_parent'] == 0) // It's a main category - change the listing type required
{
$action = 'maincats';
$maincatval = $id;
// $action = 'maincats';
// $maincatval = $id;
}
$dl_text = $tp->parseTemplate($this->templateHeader, TRUE, $sc);
@@ -529,7 +532,7 @@ class download
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_END, TRUE, $sc);
$text = $ns->tablerender($dl_title, $dl_text, 'download-list', true);
$text = $ns->tablerender($dl_title, $dl_text, 'download-list', true);
}
}// End of subcategory display
@@ -584,7 +587,7 @@ class download
$sc->setVars($dlrow);
$agreetext = $tp->toHTML($pref['agree_text'], TRUE, 'DESCRIPTION');
$current_row = ($current_row)? 0: 1;
$current_row = ($current_row) ? 0: 1;
// Alternating CSS for each row.(backwards compatible)
$template = ($current_row == 1)? $DOWNLOAD_LIST_TABLE: str_replace("forumheader3", "forumheader3 forumheader3_alt", $DOWNLOAD_LIST_TABLE);

View File

@@ -82,8 +82,8 @@ define("LAN_dl_66", "Select download mirror");
define("LAN_dl_67", "Select mirror ...");
define("LAN_dl_68", "Mirror Host");
// define("LAN_dl_69", "Download"); // duplicate
//define("LAN_dl_70", "Location");LAN_LOCATION
//define("LAN_dl_71", "About");//ADLAN_CL_20
//define("LAN_dl_70", "Location"); // LAN_LOCATION
//define("LAN_dl_71", "About"); //LAN_ABOUT
define("LAN_dl_72", "Requesting file: ");
define("LAN_dl_73", "Downloads from this mirror: ");

View File

@@ -15,6 +15,7 @@
*/
if (!defined('e107_INIT')) { exit; }
if (!defined('USER_WIDTH')) { define('USER_WIDTH', 'display:block'); } // v1.x compat.
// ##### CAT TABLE --------------------------------------------------------------------------------
@@ -38,7 +39,7 @@ if(!isset($DOWNLOAD_CAT_TABLE_START))
<thead>
<tr>
<th class='fcaption' colspan='2'>".LAN_CATEGORY."</th>
<th class='fcaption'>".LAN_dl_20."</th>
<th class='fcaption'>".LAN_FILES."</th>
<th class='fcaption'>".LAN_SIZE."</th>
<th class='fcaption'>".LAN_dl_77."</th>
</tr>
@@ -306,9 +307,9 @@ if(!isset($DOWNLOAD_MIRROR_START))
</tr>
<tr>
<th class='forumheader' colspan='2'>".LAN_dl_68."</th>
<th class='forumheader'>".ADLAN_CL_20."</th>
<th class='forumheader'>".LAN_ABOUT."</th>
<th class='forumheader'>".LAN_LOCATION."</th>
<th class='forumheader'>".LAN_SIZE"</th>
<th class='forumheader'>".LAN_SIZE."</th>
<th class='forumheader'>".LAN_DOWNLOAD."</th>
</tr>
";
@@ -361,7 +362,7 @@ $DOWNLOAD_TEMPLATE['categories']['start'] = "
<thead>
<tr>
<th colspan='2'>".LAN_CATEGORY."</th>
<th>".LAN_dl_20."</th>
<th>".LAN_FILES."</th>
<th>".LAN_SIZE."</th>
<th>".LAN_dl_77."</th>
</tr>
@@ -616,7 +617,7 @@ $DOWNLOAD_TEMPLATE['mirror']['start'] = "
</tr>
<tr>
<th colspan='2'>".LAN_dl_68."</th>
<th>".ADLAN_CL_20."</th>
<th>".LAN_ABOUT."</th>
<th>".LAN_LOCATION."</th>
<th>".LAN_SIZE."</th>
<th>".LAN_DOWNLOAD."</th>