1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-01 02:21:58 +02:00

recode list_new plugin + e_list.php files

This commit is contained in:
lisa
2009-01-27 21:34:02 +00:00
parent 0659cacb63
commit dab9ef360c
19 changed files with 2213 additions and 1613 deletions

View File

@@ -1,8 +1,23 @@
<?php
/*
* e107 website system
*
* Copyright (C) 2001-2008 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* List Template
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/list_new/list_template.php,v $
* $Revision: 1.2 $
* $Date: 2009-01-27 21:33:52 $
* $Author: lisa_ $
*
*/
if (!defined('e107_INIT')) { exit; }
global $sc_style, $list_shortcodes;
$sc_style['LIST_DATE']['pre'] = "";
$sc_style['LIST_DATE']['post'] = " ";
@@ -21,66 +36,100 @@ $sc_style['LIST_CATEGORY']['post'] = " ";
$sc_style['LIST_INFO']['pre'] = "";
$sc_style['LIST_INFO']['post'] = " ";
//LIST_MENU_NEW TEMPLATE -------------------------------------------------------------------------
$LIST_MENU_NEW_START = "
$TEMPLATE_LIST_NEW['MENU_NEW_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader' style='margin-bottom:5px; display:{LIST_DISPLAYSTYLE};'>\n";
$LIST_MENU_NEW = "
<div class='forumheader3' style='margin-bottom:5px; display:{LIST_DISPLAYSTYLE};'>\n";
$TEMPLATE_LIST_NEW['MENU_NEW'] = "
<div>
{LIST_ICON} {LIST_DATE} {LIST_HEADING} {LIST_AUTHOR} {LIST_CATEGORY}
</div>";
$LIST_MENU_NEW_END = "
$TEMPLATE_LIST_NEW['MENU_NEW_END'] = "
</div>\n";
//LIST_MENU_RECENT TEMPLATE -------------------------------------------------------------------------
$LIST_MENU_RECENT_START = "
$TEMPLATE_LIST_NEW['MENU_RECENT_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader' style='margin-bottom:5px; display:{LIST_DISPLAYSTYLE};'>\n";
$LIST_MENU_RECENT = "
<div class='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}
</div>";
$LIST_MENU_RECENT_END = "
$TEMPLATE_LIST_NEW['MENU_RECENT_END'] = "
</div>\n";
//PAGE TEMPLATE -------------------------------------------------------------------------
$LIST_PAGE_RECENT_START = "
$TEMPLATE_LIST_NEW['PAGE_RECENT_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader' style='margin-bottom:10px; display:{LIST_DISPLAYSTYLE};'>\n";
$LIST_PAGE_RECENT = "
<div class='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}
</div>";
$LIST_PAGE_RECENT_END = "
$TEMPLATE_LIST_NEW['PAGE_RECENT_END'] = "
</div>\n";
//NEW TEMPLATE -------------------------------------------------------------------------
$LIST_PAGE_NEW_START = "
$TEMPLATE_LIST_NEW['PAGE_NEW_START'] = "
<div class='fcaption' style='cursor:pointer;' onclick='expandit(this);'>{LIST_CAPTION}</div>
<div class='forumheader' style='margin-bottom:10px; display:{LIST_DISPLAYSTYLE};'>\n";
$LIST_PAGE_NEW = "
<div class='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}
</div>";
$LIST_PAGE_NEW_END = "
$TEMPLATE_LIST_NEW['PAGE_NEW_END'] = "
</div>\n";
//MULTI COLOMNS LAYOUT MASTER -----------------------------------------------------------
$LIST_COL_START = "
$TEMPLATE_LIST_NEW['COL_START'] = "
<div style='text-align:center;'>
<table class='fborder' style='width:100%;' cellspacing='0' cellpadding='0'>
<tr>";
$LIST_COL_WELCOME = "<td colspan='{LIST_COL_COLS}' class='forumheader'>{LIST_COL_WELCOMETEXT}<br /><br /></td>";
$LIST_COL_ROWSWITCH = "</tr><tr>";
$LIST_COL_CELL_START = "<td style='width:{LIST_COL_CELLWIDTH}%; padding-right:5px; vertical-align:top;'>";
$LIST_COL_CELL_END = "</td>";
$LIST_COL_END = "</tr></table></div>";
$TEMPLATE_LIST_NEW['COL_WELCOME'] = "<td colspan='{LIST_COL_COLS}' class='forumheader3'>{LIST_COL_WELCOMETEXT}<br /><br /></td>";
$TEMPLATE_LIST_NEW['COL_ROWSWITCH'] = "</tr><tr>";
$TEMPLATE_LIST_NEW['COL_CELL_START'] = "<td style='width:{LIST_COL_CELLWIDTH}%; padding-right:5px; vertical-align:top;'>";
$TEMPLATE_LIST_NEW['COL_CELL_END'] = "</td>";
$TEMPLATE_LIST_NEW['COL_END'] = "</tr></table></div>";
//TIMELAPSE SELECT -----------------------------------------------------------
$LIST_TIMELAPSE_TABLE = "<div class='forumheader3' style='margin-bottom:20px;'>{LIST_TIMELAPSE}</div>";
$TEMPLATE_LIST_NEW['TIMELAPSE_TABLE'] = "<div class='forumheader3' style='margin-bottom:20px;'>{LIST_TIMELAPSE}</div>";
//##### ADMIN
//define some variables
//$stylespacer = "style='border:0; height:20px;'";
//template for non expanding row
$TEMPLATE_LIST_NEW['TOPIC_ROW_NOEXPAND'] = "
<tr>
<td class='forumheader3' style='width:20%; white-space:nowrap; vertical-align:top;'>{TOPIC}</td>
<td class='forumheader3'>{FIELD}</td>
</tr>";
//template for expanding row
$TEMPLATE_LIST_NEW['TOPIC_ROW'] = "
<tr>
<td class='forumheader3' style='width:20%; white-space:nowrap; vertical-align:top;'>{TOPIC}</td>
<td class='forumheader3'>
<a href='#{CONTID}' class='e-pointer e-expandit'>{HEADING}</a>
<div class='e-hideme' id='{CONTID}'>
<div class='smalltext'>{HELP}</div><br />
{FIELD}
</div>
</td>
</tr>";
//template for spacer row
$TEMPLATE_LIST_NEW['TOPIC_ROW_SPACER'] = "<tr><td style='border:0; height:20px;' colspan='2'></td></tr>";
$TEMPLATE_LIST_NEW['TOPIC_TABLE_START'] = "
<div style='text-align:center;'>
<form method='post' action='".e_SELF."' name='menu_conf_form' id='menu_conf_form' enctype='multipart/form-data'>
<table style='".ADMIN_WIDTH."' class='fborder'>";
$TEMPLATE_LIST_NEW['TOPIC_TABLE_END'] = "{SUBMIT}</table></div>";
?>