mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Download template fixes.
This commit is contained in:
@@ -27,15 +27,21 @@ if (!e107::isInstalled('download'))
|
|||||||
$dl = new download();
|
$dl = new download();
|
||||||
|
|
||||||
|
|
||||||
if(!defined("USER_WIDTH")) { define("USER_WIDTH","width:100%"); }
|
if(!defined("USER_WIDTH") && !deftrue('BOOTSTRAP')) { define("USER_WIDTH","width:100%"); }
|
||||||
|
|
||||||
/* define images */
|
/* define images */
|
||||||
|
|
||||||
/** @Deprecated **/
|
if(deftrue('BOOTSTRAP'))
|
||||||
|
{
|
||||||
|
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/download.png"));
|
||||||
|
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : '<i class="icon-star"></i>'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/download.png"));
|
define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/download.png"));
|
||||||
|
|
||||||
/** @Deprecated **/
|
|
||||||
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE."generic/new.png"));
|
define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE."generic/new.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$dl->init();
|
$dl->init();
|
||||||
|
@@ -56,7 +56,7 @@ class download_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
$breadcrumb[] = array('text' => LAN_dl_18, 'url' => e_SELF);
|
$breadcrumb[] = array('text' => LAN_dl_18, 'url' => e_SELF);
|
||||||
$breadcrumb[] = array('text' => $this->var['download_category_name'], 'url' => e_SELF."?action=list&id=".$this->var['download_category_id']);
|
$breadcrumb[] = array('text' => $this->var['download_category_name'], 'url' => ($this->var['download_category_id']) ? e_SELF."?action=list&id=".$this->var['download_category_id'] : null);
|
||||||
$breadcrumb[] = array('text' => $this->var['download_name'], 'url' => null);
|
$breadcrumb[] = array('text' => $this->var['download_name'], 'url' => null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -89,9 +89,13 @@ class download_shortcodes extends e_shortcode
|
|||||||
function sc_download_cat_sub_name()
|
function sc_download_cat_sub_name()
|
||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
$class = 'category-name';
|
||||||
|
$class .= $this->isNewDownload($this->dlsubrow['d_last']) ? ' new' : '';
|
||||||
|
|
||||||
if ($this->dlsubrow['d_count'])
|
if ($this->dlsubrow['d_count'])
|
||||||
{
|
{
|
||||||
return "<a href='".e_PLUGIN_ABS."download/download.php?action=list&id=".$this->dlsubrow['download_category_id']."'>".$tp->toHTML($this->dlsubrow['download_category_name'], FALSE, 'TITLE')."</a>";
|
return "<a class='".$class."' href='".e_PLUGIN_ABS."download/download.php?action=list&id=".$this->dlsubrow['download_category_id']."'>".$tp->toHTML($this->dlsubrow['download_category_name'], FALSE, 'TITLE')."</a>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -112,7 +116,7 @@ class download_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_download_cat_sub_new_icon()
|
function sc_download_cat_sub_new_icon()
|
||||||
{
|
{
|
||||||
return $this->_check_new_download($this->dlsubrow['d_last_subs']);
|
return ($this->isNewDownload($this->dlsubrow['d_last_subs'])) ? $this->renderNewIcon() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_download_cat_sub_count()
|
function sc_download_cat_sub_count()
|
||||||
@@ -136,10 +140,15 @@ class download_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_download_cat_subsub_name()
|
function sc_download_cat_subsub_name()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// isNewDownload
|
||||||
|
$class = 'category-name';
|
||||||
|
$class .= $this->isNewDownload($this->dlsubsubrow['d_last']) ? ' new' : '';
|
||||||
|
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
if ($this->dlsubsubrow['d_count'])
|
if ($this->dlsubsubrow['d_count'])
|
||||||
{
|
{
|
||||||
return "<a href='".e_PLUGIN_ABS."download/download.php?action=list&id=".$this->dlsubsubrow['download_category_id']."'>".$tp->toHTML($this->dlsubsubrow['download_category_name'], FALSE, 'TITLE')."</a>";
|
return "<a class='".$class."' href='".e_PLUGIN_ABS."download/download.php?action=list&id=".$this->dlsubsubrow['download_category_id']."'>".$tp->toHTML($this->dlsubsubrow['download_category_name'], FALSE, 'TITLE')."</a>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -271,14 +280,14 @@ class download_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_download_list_newicon()
|
function sc_download_list_newicon()
|
||||||
{
|
{
|
||||||
return (USER && $this->var['download_datestamp'] > USERLV ? "<img src='".IMAGE_NEW."' alt='*' style='vertical-align:middle' />" : "");
|
return $this->isNewDownload($this->var['download_datestamp']) ? $this->renderNewIcon() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_download_list_recenticon()
|
function sc_download_list_recenticon()
|
||||||
{
|
{
|
||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
// convert "recent_download_days" to seconds
|
// convert "recent_download_days" to seconds
|
||||||
return ($this->var['download_datestamp'] > time()-($pref['recent_download_days']*86400) ? '<img src="'.IMAGE_NEW.'" alt="" style="vertical-align:middle" />' : '');
|
return ($this->var['download_datestamp'] > time()-($pref['recent_download_days']*86400) ? $this->renderNewIcon() : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_download_list_filesize()
|
function sc_download_list_filesize()
|
||||||
@@ -812,15 +821,15 @@ class download_shortcodes extends e_shortcode
|
|||||||
// Misc stuff ---------------------------------------------------------------------------------
|
// Misc stuff ---------------------------------------------------------------------------------
|
||||||
function sc_download_cat_newdownload_text()
|
function sc_download_cat_newdownload_text()
|
||||||
{
|
{
|
||||||
return "<img src='".IMAGE_NEW."' alt='*' style='vertical-align:middle' /> ".LAN_dl_36;
|
return $this->renderNewIcon()." ".LAN_dl_36;
|
||||||
}
|
}
|
||||||
|
|
||||||
function sc_download_cat_search()
|
function sc_download_cat_search()
|
||||||
{
|
{
|
||||||
return "<form class='form-search' method='get' action='".e_BASE."search.php'>
|
return "<form class='form-search' method='get' action='".e_BASE."search.php'>
|
||||||
<p>
|
<p>
|
||||||
<input class='tbox search-query' type='text' name='q' size='30' value='' maxlength='50' />
|
<input class='tbox search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_dl_41."\" maxlength='50' />
|
||||||
<input class='btn button' type='submit' name='s' value='".LAN_dl_41."' />
|
<input class='btn button' type='submit' name='s' value='".LAN_GO."' />
|
||||||
<input type='hidden' name='r' value='0' />
|
<input type='hidden' name='r' value='0' />
|
||||||
</p>
|
</p>
|
||||||
</form>";
|
</form>";
|
||||||
@@ -840,16 +849,26 @@ class download_shortcodes extends e_shortcode
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function _check_new_download($last_val)
|
private function isNewDownload($last_val)
|
||||||
{
|
{
|
||||||
if (USER && ($last_val > USERLV))
|
if (USER && ($last_val > USERLV))
|
||||||
{
|
{
|
||||||
return "<img src='".IMAGE_NEW."' alt='*' style='vertical-align:middle' />";
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return "";
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function renderNewIcon()
|
||||||
|
{
|
||||||
|
if(strstr(IMAGE_NEW,'<i '))
|
||||||
|
{
|
||||||
|
return IMAGE_NEW;
|
||||||
|
}
|
||||||
|
|
||||||
|
return "<img src='".IMAGE_NEW."' alt='*' style='vertical-align:middle' />";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@@ -17,10 +17,17 @@ class download
|
|||||||
|
|
||||||
private $orderOptions = array('download_id','download_datestamp','download_filesize','download_name','download_author','download_requested');
|
private $orderOptions = array('download_id','download_datestamp','download_filesize','download_name','download_author','download_requested');
|
||||||
|
|
||||||
|
private $templateHeader = '';
|
||||||
|
private $templateFooter = '';
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
require_once(e_PLUGIN."download/download_shortcodes.php");
|
require_once(e_PLUGIN."download/download_shortcodes.php");
|
||||||
|
|
||||||
|
$this->templateHeader = e107::getTemplate('download','download','header');
|
||||||
|
$this->templateFooter = e107::getTemplate('download','download','footer');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
@@ -213,7 +220,8 @@ class download
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$dl_text = $tp->parseTemplate($DOWNLOAD_CAT_TABLE_START, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($this->templateHeader, TRUE, $download_shortcodes);
|
||||||
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_START, TRUE, $download_shortcodes);
|
||||||
$dl_text .= $download_cat_table_string;
|
$dl_text .= $download_cat_table_string;
|
||||||
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_END, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_END, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
@@ -221,6 +229,8 @@ class download
|
|||||||
|
|
||||||
//ob_start();
|
//ob_start();
|
||||||
|
|
||||||
|
$dl_text .= $tp->parseTemplate($this->templateFooter, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
return $ns->tablerender($caption, $dl_text, 'download-categories',true);
|
return $ns->tablerender($caption, $dl_text, 'download-categories',true);
|
||||||
|
|
||||||
// $cache_data = ob_get_flush();
|
// $cache_data = ob_get_flush();
|
||||||
@@ -323,7 +333,10 @@ class download
|
|||||||
|
|
||||||
$DL_TEMPLATE = $DOWNLOAD_VIEW_TABLE_START.$DOWNLOAD_VIEW_TABLE.$DOWNLOAD_VIEW_TABLE_END;
|
$DL_TEMPLATE = $DOWNLOAD_VIEW_TABLE_START.$DOWNLOAD_VIEW_TABLE.$DOWNLOAD_VIEW_TABLE_END;
|
||||||
|
|
||||||
$text = $tp->parseTemplate($DL_TEMPLATE, TRUE, $download_shortcodes);
|
|
||||||
|
$text = $tp->parseTemplate($this->templateHeader, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
|
$text .= $tp->parseTemplate($DL_TEMPLATE, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
if(!isset($DL_VIEW_NEXTPREV))
|
if(!isset($DL_VIEW_NEXTPREV))
|
||||||
{
|
{
|
||||||
@@ -347,6 +360,8 @@ class download
|
|||||||
|
|
||||||
$caption = $tp->parseTemplate($DL_VIEW_CAPTION, TRUE, $download_shortcodes);
|
$caption = $tp->parseTemplate($DL_VIEW_CAPTION, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
|
$text .= $tp->parseTemplate($this->templateFooter, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
$ret = $ns->tablerender($caption, $text, 'download-view', true);
|
$ret = $ns->tablerender($caption, $text, 'download-view', true);
|
||||||
|
|
||||||
unset($text);
|
unset($text);
|
||||||
@@ -384,12 +399,18 @@ class download
|
|||||||
|
|
||||||
if(deftrue('BOOTSTRAP')) // v2.x
|
if(deftrue('BOOTSTRAP')) // v2.x
|
||||||
{
|
{
|
||||||
$template = e107::getTemplate('download','download','list');
|
$template = e107::getTemplate('download','download');
|
||||||
|
|
||||||
$DOWNLOAD_LIST_TABLE_START = $template['start'];
|
$DOWNLOAD_LIST_TABLE_START = $template['list']['start'];
|
||||||
$DOWNLOAD_LIST_TABLE = $template['item'];
|
$DOWNLOAD_LIST_TABLE = $template['list']['item'];
|
||||||
$DOWNLOAD_LIST_TABLE_END = $template['end'];
|
$DOWNLOAD_LIST_TABLE_END = $template['list']['end'];
|
||||||
$DOWNLOAD_LIST_NEXTPREV = $template['nextprev'];
|
$DOWNLOAD_LIST_NEXTPREV = $template['list']['nextprev'];
|
||||||
|
|
||||||
|
$DOWNLOAD_CAT_TABLE_START = varset($template['categories']['start']);
|
||||||
|
$DOWNLOAD_CAT_PARENT_TABLE = $template['categories']['parent'];
|
||||||
|
$DOWNLOAD_CAT_CHILD_TABLE = $template['categories']['child'];
|
||||||
|
$DOWNLOAD_CAT_SUBSUB_TABLE = $template['categories']['subchild'];
|
||||||
|
$DOWNLOAD_CAT_TABLE_END = varset($template['categories']['end']);
|
||||||
}
|
}
|
||||||
else // Legacy v1.x
|
else // Legacy v1.x
|
||||||
{
|
{
|
||||||
@@ -443,6 +464,7 @@ class download
|
|||||||
$maincatval = $id;
|
$maincatval = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dl_text = $tp->parseTemplate($this->templateHeader, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
$total_downloads = $sql->count("download", "(*)", "WHERE download_category = '{$this->qry['id']}' AND download_active > 0 AND download_visible REGEXP '" . e_CLASS_REGEXP . "'");
|
$total_downloads = $sql->count("download", "(*)", "WHERE download_category = '{$this->qry['id']}' AND download_active > 0 AND download_visible REGEXP '" . e_CLASS_REGEXP . "'");
|
||||||
|
|
||||||
@@ -452,6 +474,8 @@ class download
|
|||||||
|
|
||||||
if($sql->gen($qry))
|
if($sql->gen($qry))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/* there are subcats - display them ... */
|
/* there are subcats - display them ... */
|
||||||
$qry = "
|
$qry = "
|
||||||
SELECT dc.*, dc2.download_category_name AS parent_name, dc2.download_category_icon as parent_icon, SUM(d.download_filesize) AS d_size,
|
SELECT dc.*, dc2.download_category_name AS parent_name, dc2.download_category_icon as parent_icon, SUM(d.download_filesize) AS d_size,
|
||||||
@@ -465,15 +489,10 @@ class download
|
|||||||
GROUP by dc.download_category_id ORDER by dc.download_category_order
|
GROUP by dc.download_category_id ORDER by dc.download_category_order
|
||||||
";
|
";
|
||||||
|
|
||||||
$sql->gen($qry);
|
if($sql->gen($qry))
|
||||||
|
{
|
||||||
|
|
||||||
$scArray = $sql->db_getList();
|
$scArray = $sql->db_getList();
|
||||||
$load_template = 'download_template';
|
|
||||||
|
|
||||||
if(!isset($DOWNLOAD_CAT_PARENT_TABLE))
|
|
||||||
{
|
|
||||||
eval($template_load_core);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @DEPRECATED **/
|
/** @DEPRECATED **/
|
||||||
// if(!defined("DL_IMAGESTYLE"))
|
// if(!defined("DL_IMAGESTYLE"))
|
||||||
@@ -483,18 +502,19 @@ class download
|
|||||||
|
|
||||||
$download_cat_table_string = "";
|
$download_cat_table_string = "";
|
||||||
|
|
||||||
$dl_text = $tp->parseTemplate($DOWNLOAD_CAT_TABLE_PRE, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_PRE, TRUE, $download_shortcodes);
|
||||||
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_START, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_START, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
foreach($scArray as $dlsubsubrow)
|
foreach($scArray as $dlsubsubrow)
|
||||||
{
|
{
|
||||||
|
$download_shortcodes->dlsubsubrow = $dlsubsubrow;
|
||||||
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_SUBSUB_TABLE, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_SUBSUB_TABLE, TRUE, $download_shortcodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_END, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_CAT_TABLE_END, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
$text = $ns->tablerender($dl_title, $dl_text, 'download-list', true);
|
// $text = $ns->tablerender($dl_title, $dl_text, 'download-list', true);
|
||||||
|
}
|
||||||
|
|
||||||
}// End of subcategory display
|
}// End of subcategory display
|
||||||
|
|
||||||
@@ -537,7 +557,7 @@ class download
|
|||||||
if($filetotal)
|
if($filetotal)
|
||||||
{
|
{
|
||||||
// Only show list if some files in it
|
// Only show list if some files in it
|
||||||
$dl_text = $tp->parseTemplate($DOWNLOAD_LIST_TABLE_START, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_LIST_TABLE_START, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
global $dlft, $dltdownloads;
|
global $dlft, $dltdownloads;
|
||||||
|
|
||||||
@@ -566,8 +586,9 @@ class download
|
|||||||
$parent = $sql->fetch();
|
$parent = $sql->fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dl_text .= $tp->parseTemplate($this->templateFooter, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
$text = $ns->tablerender(LAN_dl_18, $dl_text, 'download-list', true);
|
$text .= $ns->tablerender(LAN_dl_18, $dl_text, 'download-list', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($DOWNLOAD_LIST_NEXTPREV))
|
if(!isset($DOWNLOAD_LIST_NEXTPREV))
|
||||||
@@ -768,6 +789,8 @@ class download
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dl_text = $tp->parseTemplate($this->templateHeader, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
$dl_text = $tp->parseTemplate($DOWNLOAD_MIRROR_START, TRUE, $download_shortcodes);
|
$dl_text = $tp->parseTemplate($DOWNLOAD_MIRROR_START, TRUE, $download_shortcodes);
|
||||||
$download_mirror = 1;
|
$download_mirror = 1;
|
||||||
|
|
||||||
@@ -789,6 +812,8 @@ class download
|
|||||||
|
|
||||||
$dl_text .= $tp->parseTemplate($DOWNLOAD_MIRROR_END, TRUE, $download_shortcodes);
|
$dl_text .= $tp->parseTemplate($DOWNLOAD_MIRROR_END, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
|
$dl_text .= $tp->parseTemplate($this->templateFooter, TRUE, $download_shortcodes);
|
||||||
|
|
||||||
return $ns->tablerender(LAN_dl_18, $dl_text, 'download-mirror', true);
|
return $ns->tablerender(LAN_dl_18, $dl_text, 'download-mirror', true);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -15,10 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
|
|
||||||
|
|
||||||
/* set style of download image and thumbnail */
|
|
||||||
define("DL_IMAGESTYLE","border:0px");
|
|
||||||
|
|
||||||
// ##### CAT TABLE --------------------------------------------------------------------------------
|
// ##### CAT TABLE --------------------------------------------------------------------------------
|
||||||
if(!isset($DOWNLOAD_CAT_TABLE_PRE))
|
if(!isset($DOWNLOAD_CAT_TABLE_PRE))
|
||||||
@@ -351,8 +348,8 @@ if(!isset($DOWNLOAD_MIRROR_END))
|
|||||||
// v2.x Bootstrap Template. - Overrides the above templates.
|
// v2.x Bootstrap Template. - Overrides the above templates.
|
||||||
|
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['categories']['start'] = "{DOWNLOAD_BREADCRUMB}
|
$DOWNLOAD_TEMPLATE['categories']['start'] = "
|
||||||
<table class='table table-striped fborder'>
|
<table id='download' class='table table-striped fborder'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:3%'/>
|
<col style='width:3%'/>
|
||||||
<col style='width:60%'/>
|
<col style='width:60%'/>
|
||||||
@@ -368,23 +365,15 @@ $DOWNLOAD_TEMPLATE['categories']['start'] = "{DOWNLOAD_BREADCRUMB}
|
|||||||
<th>".LAN_dl_77."</th>
|
<th>".LAN_dl_77."</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
|
||||||
<tr>
|
|
||||||
<td colspan='5'>{DOWNLOAD_CAT_NEWDOWNLOAD_TEXT}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan='5'>{DOWNLOAD_CAT_SEARCH}</td>
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
<tbody>";
|
<tbody>";
|
||||||
|
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['categories']['parent'] = "
|
$DOWNLOAD_TEMPLATE['categories']['parent'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader'>
|
<td>
|
||||||
{DOWNLOAD_CAT_MAIN_ICON}
|
{DOWNLOAD_CAT_MAIN_ICON}
|
||||||
</td>
|
</td>
|
||||||
<td colspan='4' class='forumheader'>
|
<td colspan='4'>
|
||||||
{DOWNLOAD_CAT_MAIN_NAME}<br/>
|
{DOWNLOAD_CAT_MAIN_NAME}<br/>
|
||||||
<span class='smalltext'>{DOWNLOAD_CAT_MAIN_DESCRIPTION}</span>
|
<span class='smalltext'>{DOWNLOAD_CAT_MAIN_DESCRIPTION}</span>
|
||||||
</td>
|
</td>
|
||||||
@@ -405,25 +394,17 @@ $DOWNLOAD_TEMPLATE['categories']['child'] = "
|
|||||||
|
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['categories']['subchild'] = "
|
$DOWNLOAD_TEMPLATE['categories']['subchild'] = "
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<table class='table'>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{DOWNLOAD_CAT_SUBSUB_ICON}
|
{DOWNLOAD_CAT_SUBSUB_ICON}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td style='padding-left:30px'>
|
||||||
{DOWNLOAD_CAT_SUBSUB_NEW_ICON} {DOWNLOAD_CAT_SUBSUB_NAME}<br/>
|
{DOWNLOAD_CAT_SUBSUB_NEW_ICON} {DOWNLOAD_CAT_SUBSUB_NAME}<br/>
|
||||||
<small>
|
<small>
|
||||||
{DOWNLOAD_CAT_SUBSUB_DESCRIPTION}
|
{DOWNLOAD_CAT_SUBSUB_DESCRIPTION}
|
||||||
</small>
|
</small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
<td>{DOWNLOAD_CAT_SUBSUB_COUNT} </td>
|
<td>{DOWNLOAD_CAT_SUBSUB_COUNT} </td>
|
||||||
<td>{DOWNLOAD_CAT_SUBSUB_SIZE} </td>
|
<td>{DOWNLOAD_CAT_SUBSUB_SIZE} </td>
|
||||||
<td>{DOWNLOAD_CAT_SUBSUB_DOWNLOADED} </td>
|
<td>{DOWNLOAD_CAT_SUBSUB_DOWNLOADED} </td>
|
||||||
@@ -432,28 +413,32 @@ $DOWNLOAD_TEMPLATE['categories']['subchild'] = "
|
|||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['categories']['end'] = "
|
$DOWNLOAD_TEMPLATE['categories']['end'] = "
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>\n";
|
</table>
|
||||||
|
<div>
|
||||||
|
<div class='pull-left'><small>{DOWNLOAD_CAT_NEWDOWNLOAD_TEXT}</small></div>
|
||||||
|
<div class='pull-right'>{DOWNLOAD_CAT_SEARCH}</div>
|
||||||
|
</div>";
|
||||||
|
|
||||||
// ##### ------------------------------------------------------------------------------------------
|
// ##### ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
//FIXME - not being utilized at the moment.
|
//FIXME - not being utilized at the moment.
|
||||||
|
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOR_LAN'] = "<tr><td style='width:20%' class='forumheader3'>{---}</td>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOR_LAN'] = "<tr><td style='width:20%'>{---}</td>";
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOR'] = "<td style='width:80%' class='forumheader3'>{---}</td>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOR'] = "<td style='width:80%'>{---}</td>";
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOREMAIL_LAN'] = "<tr><td style='width:20%' class='forumheader3'>{---}</td>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOREMAIL_LAN'] = "<tr><td style='width:20%'>{---}</td>";
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOREMAIL'] = "<td style='width:80%' class='forumheader3'>{---}</td>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHOREMAIL'] = "<td style='width:80%'>{---}</td>";
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHORWEBSITE_LAN'] = "<tr><td style='width:20%' class='forumheader3'>{---}</td>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHORWEBSITE_LAN'] = "<tr><td style='width:20%'>{---}</td>";
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHORWEBSITE'] = "<td style='width:80%' class='forumheader3'>{---}</td>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_VIEW_AUTHORWEBSITE'] = "<td style='width:80%'>{---}</td>";
|
||||||
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_REPORT_LINK'] = "<tr><td style='width:20%' class='forumheader3' colspan='2'>{---}</td></tr>";
|
$DOWNLOAD_WRAPPER['view']['DOWNLOAD_REPORT_LINK'] = "<tr><td style='width:20%' colspan='2'>{---}</td></tr>";
|
||||||
|
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['view']['caption'] = LAN_dl_18;
|
$DOWNLOAD_TEMPLATE['view']['caption'] = LAN_dl_18;
|
||||||
$DOWNLOAD_TEMPLATE['view']['start'] = "{DOWNLOAD_BREADCRUMB} ";
|
$DOWNLOAD_TEMPLATE['view']['start'] = " ";
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['view']['item'] = "
|
$DOWNLOAD_TEMPLATE['view']['item'] = "
|
||||||
<div style='text-align:center'>
|
<div id='download' style='text-align:center'>
|
||||||
<table class='table table-striped fborder' style='".USER_WIDTH."'>
|
<table class='table table-striped'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:30%;'>
|
<col style='width:30%;'>
|
||||||
<col style='width:70%;'>
|
<col style='width:70%;'>
|
||||||
@@ -470,32 +455,32 @@ $DOWNLOAD_TEMPLATE['view']['item'] = "
|
|||||||
{DOWNLOAD_VIEW_AUTHORWEBSITE_LAN}
|
{DOWNLOAD_VIEW_AUTHORWEBSITE_LAN}
|
||||||
{DOWNLOAD_VIEW_AUTHORWEBSITE}
|
{DOWNLOAD_VIEW_AUTHORWEBSITE}
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_DESCRIPTION_LAN}</td>
|
<td>{DOWNLOAD_VIEW_DESCRIPTION_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_DESCRIPTION}</td>
|
<td>{DOWNLOAD_VIEW_DESCRIPTION}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_IMAGE_LAN}</td>
|
<td>{DOWNLOAD_VIEW_IMAGE_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_IMAGE}</td>
|
<td>{DOWNLOAD_VIEW_IMAGE}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_FILESIZE_LAN}</td>
|
<td>{DOWNLOAD_VIEW_FILESIZE_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_FILESIZE}</td>
|
<td>{DOWNLOAD_VIEW_FILESIZE}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_DATE_LAN}</td>
|
<td>{DOWNLOAD_VIEW_DATE_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_DATE=long}</td>
|
<td>{DOWNLOAD_VIEW_DATE=long}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_REQUESTED_LAN}</td>
|
<td>{DOWNLOAD_VIEW_REQUESTED_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_REQUESTED}</td>
|
<td>{DOWNLOAD_VIEW_REQUESTED}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_LINK_LAN}</td>
|
<td>{DOWNLOAD_VIEW_LINK_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_LINK}</td>
|
<td>{DOWNLOAD_VIEW_LINK}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_RATING_LAN}</td>
|
<td>{DOWNLOAD_VIEW_RATING_LAN}</td>
|
||||||
<td class='forumheader3'>{DOWNLOAD_VIEW_RATING}</td>
|
<td>{DOWNLOAD_VIEW_RATING}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{DOWNLOAD_REPORT_LINK}
|
{DOWNLOAD_REPORT_LINK}
|
||||||
</table>
|
</table>
|
||||||
@@ -530,10 +515,9 @@ $DOWNLOAD_TEMPLATE['view']['nextprev'] = '
|
|||||||
|
|
||||||
// ##### ------------------------------------------------------------------------------------------
|
// ##### ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['list']['start'] = "{DOWNLOAD_BREADCRUMB}
|
$DOWNLOAD_TEMPLATE['list']['start'] = "
|
||||||
<div style='text-align:center'>
|
|
||||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||||
<table class='table table-striped fborder' style='".USER_WIDTH."'>\n
|
<table id='download' class='table table-striped fborder' style='".USER_WIDTH."'>\n
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:35%;'/>
|
<col style='width:35%;'/>
|
||||||
<col style='width:15%;'/>
|
<col style='width:15%;'/>
|
||||||
@@ -584,11 +568,11 @@ $DOWNLOAD_TEMPLATE['list']['item'] = "
|
|||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['list']['end'] = "
|
$DOWNLOAD_TEMPLATE['list']['end'] = "
|
||||||
<tr>
|
<tr>
|
||||||
<td class='forumheader3' colspan='7' style='text-align:right;'><small class='muted text-muted'>{DOWNLOAD_LIST_TOTAL_AMOUNT} {DOWNLOAD_LIST_TOTAL_FILES}</small></td>
|
<td colspan='7' style='text-align:right;'><small class='muted text-muted'>{DOWNLOAD_LIST_TOTAL_AMOUNT} {DOWNLOAD_LIST_TOTAL_FILES}</small></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</div>\n";
|
\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -608,8 +592,8 @@ $sc_style['DOWNLOAD_LIST_NEXTPREV']['post'] = " </div>";
|
|||||||
// ##### ------------------------------------------------------------------------------------------
|
// ##### ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
$DOWNLOAD_TEMPLATE['mirror']['start'] = "{DOWNLOAD_BREADCRUMB}
|
$DOWNLOAD_TEMPLATE['mirror']['start'] = "
|
||||||
<table class='table table-striped'>
|
<table id='download' class='table table-striped'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style='width:1%'/>
|
<col style='width:1%'/>
|
||||||
<col style='width:29%'/>
|
<col style='width:29%'/>
|
||||||
@@ -622,11 +606,11 @@ $DOWNLOAD_TEMPLATE['mirror']['start'] = "{DOWNLOAD_BREADCRUMB}
|
|||||||
<th class='fcaption' colspan='5'><h4>{DOWNLOAD_MIRROR_REQUEST}</h4></th>
|
<th class='fcaption' colspan='5'><h4>{DOWNLOAD_MIRROR_REQUEST}</h4></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class='forumheader' colspan='2'>".LAN_dl_68."</th>
|
<th colspan='2'>".LAN_dl_68."</th>
|
||||||
<th class='forumheader'>".LAN_dl_71."</th>
|
<th>".LAN_dl_71."</th>
|
||||||
<th class='forumheader'>".LAN_dl_70."</th>
|
<th>".LAN_dl_70."</th>
|
||||||
<th class='forumheader'>".LAN_dl_21."</th>
|
<th>".LAN_dl_21."</th>
|
||||||
<th class='forumheader'>".LAN_dl_32."</th>
|
<th>".LAN_dl_32."</th>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
|
|
||||||
@@ -653,4 +637,11 @@ $DOWNLOAD_TEMPLATE['mirror']['end'] = "
|
|||||||
";
|
";
|
||||||
|
|
||||||
|
|
||||||
|
// All Download Pgaes..
|
||||||
|
|
||||||
|
$DOWNLOAD_TEMPLATE['header'] = '{DOWNLOAD_BREADCRUMB}';
|
||||||
|
$DOWNLOAD_TEMPLATE['footer'] = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user