1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

List-new fixes for chatbox.

This commit is contained in:
Cameron
2016-12-03 13:07:14 -08:00
parent e3adc685ec
commit 6eefc91a9b
5 changed files with 27 additions and 9 deletions

View File

@@ -83,4 +83,6 @@ define("LIST_FORUM_6", "on:");
define("LIST_LAN_1", "no items in");
define("LIST_DOWNLOAD_1", "downloads");
define("LIST_DOWNLOAD_2", "no downloads");
?>

View File

@@ -68,6 +68,7 @@ class listclass
$this->shortcodes = new list_shortcodes();
$this->shortcodes->rc = $this;
if($mode=='admin')
{
require_once($this->plugin_dir."list_admin_class.php");
@@ -423,6 +424,7 @@ class listclass
//$this->shortcodes->rc->data = $this->data;
//set record variables
$this->row = array();
$this->row['caption'] = '';
@@ -797,8 +799,14 @@ class listclass
//display the sections
$k=0;
// print_a($arr);
foreach($arr as $sect)
{
$this->shortcodes->plugin = $sect['section'];
if($sect['display'] == '1')
{
$sectiontext = $this->displaySection($sect);

View File

@@ -28,6 +28,7 @@ class list_shortcodes
var $e107;
var $row;
var $list_pref;
public $plugin;
function list_shortcodes()
{
@@ -46,6 +47,12 @@ class list_shortcodes
}
*/
function sc_list_css_id()
{
return eHelper::title2sef('list-new-'.$this->plugin, 'dashl');
}
function sc_list_date()
{
return e107::getParser()->toHTML($this->row['date'], true, "");

View File

@@ -57,8 +57,8 @@ $TEMPLATE_LIST_NEW['MENU_NEW_END'] = "
//LIST_MENU_RECENT TEMPLATE -------------------------------------------------------------------------
$TEMPLATE_LIST_NEW['MENU_RECENT_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader3' style='margin-bottom:5px; display:{LIST_DISPLAYSTYLE};'>\n";
<div class='{LIST_CSS_ID} fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='{LIST_CSS_ID} forumheader3' style='margin-bottom:5px; display:{LIST_DISPLAYSTYLE};'>\n";
$TEMPLATE_LIST_NEW['MENU_RECENT'] = "
<div>
{LIST_ICON} {LIST_DATE} {LIST_HEADING} {LIST_AUTHOR} {LIST_CATEGORY}
@@ -69,8 +69,8 @@ $TEMPLATE_LIST_NEW['MENU_RECENT_END'] = "
//PAGE TEMPLATE -------------------------------------------------------------------------
$TEMPLATE_LIST_NEW['PAGE_RECENT_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader3' style='margin-bottom:10px; display:{LIST_DISPLAYSTYLE};'>\n";
<div class='{LIST_CSS_ID} fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='{LIST_CSS_ID} forumheader3' style='margin-bottom:10px; display:{LIST_DISPLAYSTYLE};'>\n";
$TEMPLATE_LIST_NEW['PAGE_RECENT'] = "
<div>
{LIST_ICON} {LIST_DATE} {LIST_HEADING} {LIST_AUTHOR} {LIST_CATEGORY} {LIST_INFO}
@@ -81,8 +81,8 @@ $TEMPLATE_LIST_NEW['PAGE_RECENT_END'] = "
//NEW TEMPLATE -------------------------------------------------------------------------
$TEMPLATE_LIST_NEW['PAGE_NEW_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader3' style='margin-bottom:10px; display:{LIST_DISPLAYSTYLE};'>\n";
<div class='{LIST_CSS_ID} fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='{LIST_CSS_ID} forumheader3' style='margin-bottom:10px; display:{LIST_DISPLAYSTYLE};'>\n";
$TEMPLATE_LIST_NEW['PAGE_NEW'] = "
<div>
{LIST_ICON} {LIST_DATE} {LIST_HEADING} {LIST_AUTHOR} {LIST_CATEGORY} {LIST_INFO}