mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
content: templated the menu, recoded shortcodes, several minor improvements
This commit is contained in:
parent
727a3e4977
commit
3f3ea5b7e3
@ -12,8 +12,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/content.php,v $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2007-03-13 16:51:05 $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+---------------------------------------------------------------+
|
||||
*/
|
||||
@ -155,9 +155,7 @@ if(!e_QUERY){
|
||||
|
||||
// ##### CONTENT SEARCH MENU ----------------------------
|
||||
function show_content_search_menu($mode, $mainparent){
|
||||
global $qs, $plugindir, $content_shortcodes, $tp, $ns, $rs, $aa;
|
||||
global $plugintable, $gen, $content_pref;
|
||||
global $CONTENT_SEARCH_TABLE_SELECT, $CONTENT_SEARCH_TABLE_ORDER, $CONTENT_SEARCH_TABLE_KEYWORD;
|
||||
global $qs, $plugindir, $content_shortcodes, $tp, $ns, $rs, $aa, $plugintable, $gen, $content_pref, $CONTENT_SEARCH_TABLE_SELECT, $CONTENT_SEARCH_TABLE_ORDER, $CONTENT_SEARCH_TABLE_KEYWORD;
|
||||
|
||||
if( (isset($content_pref["content_navigator_{$mode}"]) && $content_pref["content_navigator_{$mode}"]) || (isset($content_pref["content_search_{$mode}"]) && $content_pref["content_search_{$mode}"]) || (isset($content_pref["content_ordering_{$mode}"]) && $content_pref["content_ordering_{$mode}"]) ){
|
||||
|
||||
@ -172,13 +170,13 @@ function show_content_search_menu($mode, $mainparent){
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($content_pref["content_navigator_{$mode}"]) && $content_pref["content_navigator_{$mode}"]){
|
||||
if( varsettrue($content_pref["content_navigator_{$mode}"]) ){
|
||||
$CONTENT_SEARCH_TABLE_SELECT = $aa -> showOptionsSelect("page", $mainparent);
|
||||
}
|
||||
if(isset($content_pref["content_search_{$mode}"]) && $content_pref["content_search_{$mode}"]){
|
||||
if( varsettrue($content_pref["content_search_{$mode}"]) ){
|
||||
$CONTENT_SEARCH_TABLE_KEYWORD = $aa -> showOptionsSearch("page", $mainparent);
|
||||
}
|
||||
if(isset($content_pref["content_ordering_{$mode}"]) && $content_pref["content_ordering_{$mode}"]){
|
||||
if( varsettrue($content_pref["content_ordering_{$mode}"]) ){
|
||||
$CONTENT_SEARCH_TABLE_ORDER = $aa -> showOptionsOrder("page", $mainparent);
|
||||
}
|
||||
|
||||
@ -196,7 +194,7 @@ function show_content_search_menu($mode, $mainparent){
|
||||
}
|
||||
|
||||
function show_content_search_result($searchkeyword){
|
||||
global $row, $qs, $content_shortcodes, $ns, $rs, $tp, $plugindir, $plugintable, $gen, $aa, $content_pref, $datequery, $gen, $mainparent, $content_icon_path;
|
||||
global $row, $qs, $content_shortcodes, $ns, $rs, $tp, $plugindir, $plugintable, $gen, $aa, $content_pref, $datequery, $mainparent, $content_icon_path;
|
||||
|
||||
$mainparent = $aa -> getMainParent( (is_numeric($qs[1]) ? $qs[1] : intval($qs[2])) );
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -306,8 +304,8 @@ function show_content(){
|
||||
if(!is_object($sql2)){ $sql2 = new db; }
|
||||
|
||||
$content_pref = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
$content_pref["content_cat_icon_path_large"] = ($content_pref["content_cat_icon_path_large"] ? $content_pref["content_cat_icon_path_large"] : "{e_PLUGIN}content/images/cat/48/" );
|
||||
$content_pref["content_cat_icon_path_small"] = ($content_pref["content_cat_icon_path_small"] ? $content_pref["content_cat_icon_path_small"] : "{e_PLUGIN}content/images/cat/16/" );
|
||||
$content_pref["content_cat_icon_path_large"] = varset($content_pref["content_cat_icon_path_large"], "{e_PLUGIN}content/images/cat/48/");
|
||||
$content_pref["content_cat_icon_path_small"] = varset($content_pref["content_cat_icon_path_small"], "{e_PLUGIN}content/images/cat/16/");
|
||||
$content_cat_icon_path_large = $tp->replaceConstants($content_pref["content_cat_icon_path_large"]);
|
||||
$content_cat_icon_path_small = $tp->replaceConstants($content_pref["content_cat_icon_path_small"]);
|
||||
$content_icon_path = $tp->replaceConstants($content_pref["content_icon_path"]);
|
||||
@ -360,10 +358,7 @@ function show_content(){
|
||||
}
|
||||
// ##### CONTENT ARCHIVE ------------------------------------------
|
||||
function show_content_archive(){
|
||||
global $row, $ns, $plugindir, $plugintable, $sql, $aa, $rs, $e107cache, $tp, $pref, $content_pref, $cobj;
|
||||
global $qs, $searchkeyword, $nextprevquery, $from, $number, $mainparent, $content_shortcodes;
|
||||
global $CONTENT_ARCHIVE_TABLE, $CONTENT_ARCHIVE_TABLE_START, $datequery, $CONTENT_ARCHIVE_TABLE_LETTERS;
|
||||
global $CONTENT_SEARCH_TABLE_SELECT, $CONTENT_SEARCH_TABLE_ORDER, $CONTENT_SEARCH_TABLE_KEYWORD, $CONTENT_ARCHIVE_TABLE_AUTHOR;
|
||||
global $row, $ns, $plugindir, $plugintable, $sql, $aa, $rs, $e107cache, $tp, $pref, $content_pref, $cobj, $qs, $searchkeyword, $nextprevquery, $from, $number, $mainparent, $content_shortcodes, $datequery, $CONTENT_ARCHIVE_TABLE, $CONTENT_ARCHIVE_TABLE_START, $CONTENT_ARCHIVE_TABLE_LETTERS, $CONTENT_SEARCH_TABLE_SELECT, $CONTENT_SEARCH_TABLE_ORDER, $CONTENT_SEARCH_TABLE_KEYWORD;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -392,7 +387,7 @@ function show_content_archive(){
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
$number = (isset($content_pref["content_archive_nextprev_number"]) && $content_pref["content_archive_nextprev_number"] ? $content_pref["content_archive_nextprev_number"] : "30");
|
||||
$number = varsettrue($content_pref["content_archive_nextprev_number"], '30');
|
||||
$order = $aa -> getOrder();
|
||||
$nextprevquery = (isset($content_pref["content_archive_nextprev"]) && $content_pref["content_archive_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$sql1 = new db;
|
||||
@ -464,23 +459,21 @@ function show_content_archive(){
|
||||
if($item = $sql1 -> db_Select($plugintable, "*", "content_refer !='sa' AND ".$qry." ".$datequery." AND content_class REGEXP '".e_CLASS_REGEXP."' ".$order." ".$nextprevquery )){
|
||||
$content_archive_table_string = "";
|
||||
while($row = $sql1 -> db_Fetch()){
|
||||
$CONTENT_ARCHIVE_TABLE_AUTHOR = $aa -> prepareAuthor("archive", $row['content_author'], $row['content_id']);
|
||||
$content_archive_table_string .= $tp -> parseTemplate($CONTENT_ARCHIVE_TABLE, FALSE, $content_shortcodes);
|
||||
}
|
||||
$text .= $CONTENT_ARCHIVE_TABLE_START.$content_archive_table_string.$CONTENT_ARCHIVE_TABLE_END;
|
||||
}
|
||||
$text = $aa -> getCrumbPage("archive", $array, $mainparent).$text;
|
||||
$caption = $content_pref['content_archive_caption'];
|
||||
$text = $aa->getCrumbPage("archive", $array, $mainparent).$text;
|
||||
$caption = $content_pref['content_archive_caption'];
|
||||
$ns->tablerender($caption, $text);
|
||||
$aa -> ShowNextPrev("archive", $from, $number, $contenttotal);
|
||||
$aa->ShowNextPrev("archive", $from, $number, $contenttotal);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
}
|
||||
|
||||
//this function renders the preview of a content_item
|
||||
//used in recent list, view author list, category items list
|
||||
function displayPreview($qry){
|
||||
global $qs, $array, $row, $gen, $rater, $aa, $sql2, $tp, $plugintable, $plugindir, $content_shortcodes, $content_pref, $mainparent, $CONTENT_RECENT_TABLE_AUTHORDETAILS;
|
||||
global $CONTENT_RECENT_TABLE_START, $CONTENT_RECENT_TABLE_END, $CONTENT_RECENT_TABLE, $CONTENT_RECENT_TABLE_INFOPRE, $CONTENT_RECENT_TABLE_INFOPOST;
|
||||
global $qs, $array, $row, $gen, $rater, $aa, $sql2, $tp, $plugintable, $plugindir, $content_shortcodes, $content_pref, $mainparent, $CM_AUTHOR, $CONTENT_RECENT_TABLE_START, $CONTENT_RECENT_TABLE_END, $CONTENT_RECENT_TABLE, $CONTENT_RECENT_TABLE_INFOPRE, $CONTENT_RECENT_TABLE_INFOPOST;
|
||||
|
||||
if(!isset($CONTENT_RECENT_TABLE)){
|
||||
if(!$content_pref["content_theme"]){
|
||||
@ -496,12 +489,12 @@ function displayPreview($qry){
|
||||
if($resultitem = $sql2 -> db_Select($plugintable, "*", $qry )){
|
||||
$content_recent_table_string = "";
|
||||
while($row = $sql2 -> db_Fetch()){
|
||||
$CONTENT_RECENT_TABLE_AUTHORDETAILS = $aa -> prepareAuthor("list", $row['content_author'], $row['content_id']);
|
||||
$rdate = $tp -> parseTemplate('{CONTENT_RECENT_TABLE_DATE}', FALSE, $content_shortcodes);
|
||||
$rauth = $tp -> parseTemplate('{CONTENT_RECENT_TABLE_AUTHORDETAILS}', FALSE, $content_shortcodes);
|
||||
$rep = $tp -> parseTemplate('{CONTENT_RECENT_TABLE_EPICONS}', FALSE, $content_shortcodes);
|
||||
$rpar = $tp -> parseTemplate('{CONTENT_RECENT_TABLE_PARENT}', FALSE, $content_shortcodes);
|
||||
$redi = $tp -> parseTemplate('{CONTENT_RECENT_TABLE_EDITICON}', FALSE, $content_shortcodes);
|
||||
$CM_AUTHOR = $aa -> prepareAuthor("list", $row['content_author'], $row['content_id']);
|
||||
$rdate = $tp -> parseTemplate('{CM_DATE|recent}', FALSE, $content_shortcodes);
|
||||
$rauth = $tp -> parseTemplate('{CM_AUTHOR|recent}', FALSE, $content_shortcodes);
|
||||
$rep = $tp -> parseTemplate('{CM_EPICONS|recent}', FALSE, $content_shortcodes);
|
||||
$rpar = $tp -> parseTemplate('{CM_PARENT|recent}', FALSE, $content_shortcodes);
|
||||
$redi = $tp -> parseTemplate('{CM_EDITICON|recent}', FALSE, $content_shortcodes);
|
||||
$CONTENT_RECENT_TABLE_INFOPRE = FALSE;
|
||||
$CONTENT_RECENT_TABLE_INFOPOST = FALSE;
|
||||
if ($rdate!="" || $rauth!="" || $rep!="" || $rpar!="" || $redi!="" ) {
|
||||
@ -519,8 +512,7 @@ function displayPreview($qry){
|
||||
|
||||
// ##### RECENT LIST ------------------------------------
|
||||
function show_content_recent(){
|
||||
global $qs, $sql2, $plugindir, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $content_pref, $cobj;
|
||||
global $nextprevquery, $from, $number, $mainparent, $datequery, $content_icon_path, $CONTENT_RECENT_TABLE;
|
||||
global $qs, $sql2, $plugindir, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $content_pref, $cobj, $nextprevquery, $from, $number, $mainparent, $datequery, $content_icon_path, $CONTENT_RECENT_TABLE;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -537,7 +529,7 @@ function show_content_recent(){
|
||||
$array = $aa -> getCategoryTree("", intval($qs[1]), TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$order = $aa -> getOrder();
|
||||
$number = ($content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "5");
|
||||
$number = varsettrue($content_pref["content_nextprev_number"], '5');
|
||||
$nextprevquery = ($content_pref["content_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$qry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
|
||||
@ -547,22 +539,19 @@ function show_content_recent(){
|
||||
|
||||
$recentqry = "content_refer !='sa' AND ".$qry." ".$datequery." AND content_class REGEXP '".e_CLASS_REGEXP."' ".$order." ".$nextprevquery;
|
||||
$text = displayPreview($recentqry);
|
||||
$text = $aa -> getCrumbPage("recent", $array, $mainparent).$text;
|
||||
$text = $aa->getCrumbPage("recent", $array, $mainparent).$text;
|
||||
$caption = $content_pref['content_list_caption'];
|
||||
if(isset($content_pref['content_list_caption_append_name']) && $content_pref['content_list_caption_append_name']){
|
||||
$caption .= " ".$array[intval($qs[1])][1];
|
||||
}
|
||||
$ns -> tablerender($caption, $text);
|
||||
$aa -> ShowNextPrev("", $from, $number, $contenttotal);
|
||||
$aa->ShowNextPrev("", $from, $number, $contenttotal);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
}
|
||||
|
||||
// ##### CATEGORY LIST ------------------------------------
|
||||
function show_content_cat_all(){
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $aa, $e107cache, $tp, $pref, $content_pref, $totalitems;
|
||||
global $sql, $datequery, $amount, $from, $content_cat_icon_path_large, $content_icon_path, $n, $mainparent, $CONTENT_CAT_TABLE, $CONTENT_CAT_TABLE_AUTHORDETAILS;
|
||||
global $row, $datestamp, $comment_total, $gen, $authordetails, $rater, $crumb;
|
||||
global $CONTENT_CAT_TABLE_INFO_PRE, $CONTENT_CAT_TABLE_INFO_POST, $CONTENT_CAT_LIST_TABLE_INFO_PRE, $CONTENT_CAT_LIST_TABLE_INFO_POST;
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $aa, $e107cache, $tp, $pref, $content_pref, $totalitems, $row, $datestamp, $comment_total, $gen, $authordetails, $rater, $crumb, $sql, $datequery, $amount, $from, $content_cat_icon_path_large, $content_icon_path, $n, $mainparent, $CONTENT_CAT_TABLE, $CM_AUTHOR, $CONTENT_CAT_TABLE_INFO_PRE, $CONTENT_CAT_TABLE_INFO_POST, $CONTENT_CAT_LIST_TABLE_INFO_PRE, $CONTENT_CAT_LIST_TABLE_INFO_POST;
|
||||
|
||||
unset($text);
|
||||
|
||||
@ -594,7 +583,7 @@ function show_content_cat_all(){
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$order = $aa -> getOrder();
|
||||
$number = (isset($content_pref["content_nextprev_number"]) && $content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "5");
|
||||
$number = varsettrue($content_pref["content_nextprev_number"], '5');
|
||||
$nextprevquery = (isset($content_pref["content_nextprev"]) && $content_pref["content_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$qry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
|
||||
@ -611,9 +600,9 @@ function show_content_cat_all(){
|
||||
$sql -> db_Select($plugintable, "*", "content_id = '".$key."' ");
|
||||
$row = $sql -> db_Fetch();
|
||||
|
||||
$date = $tp -> parseTemplate('{CONTENT_CAT_TABLE_DATE}', FALSE, $content_shortcodes);
|
||||
$auth = $tp -> parseTemplate('{CONTENT_CAT_TABLE_AUTHORDETAILS}', FALSE, $content_shortcodes);
|
||||
$ep = $tp -> parseTemplate('{CONTENT_CAT_TABLE_EPICONS}', FALSE, $content_shortcodes);
|
||||
$date = $tp -> parseTemplate('{CM_DATE|cat}', FALSE, $content_shortcodes);
|
||||
$auth = $tp -> parseTemplate('{CM_AUTHOR|cat}', FALSE, $content_shortcodes);
|
||||
$ep = $tp -> parseTemplate('{CM_EPICONS|cat}', FALSE, $content_shortcodes);
|
||||
$com = $tp -> parseTemplate('{CONTENT_CAT_TABLE_COMMENT}', FALSE, $content_shortcodes);
|
||||
$CONTENT_CAT_TABLE_INFO_PRE = FALSE;
|
||||
$CONTENT_CAT_TABLE_INFO_POST = FALSE;
|
||||
@ -621,22 +610,19 @@ function show_content_cat_all(){
|
||||
$CONTENT_CAT_TABLE_INFO_PRE = TRUE;
|
||||
$CONTENT_CAT_TABLE_INFO_POST = TRUE;
|
||||
}
|
||||
$CONTENT_CAT_TABLE_AUTHORDETAILS = $aa -> prepareAuthor("catall", $row['content_author'], $row['content_id']);
|
||||
$CM_AUTHOR = $aa -> prepareAuthor("catall", $row['content_author'], $row['content_id']);
|
||||
$content_cat_table_string .= $tp -> parseTemplate($CONTENT_CAT_TABLE, FALSE, $content_shortcodes);
|
||||
|
||||
}
|
||||
$text = $CONTENT_CAT_TABLE_START.$content_cat_table_string.$CONTENT_CAT_TABLE_END;
|
||||
$text = $aa -> getCrumbPage("catall", $array, $mainparent).$text;
|
||||
$text = $aa->getCrumbPage("catall", $array, $mainparent).$text;
|
||||
$caption = $content_pref['content_catall_caption'];
|
||||
$ns -> tablerender($caption, $text);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
}
|
||||
|
||||
function show_content_cat($mode=""){
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $content_pref, $cobj, $datequery, $from;
|
||||
global $CONTENT_RECENT_TABLE, $CONTENT_CAT_LIST_TABLE, $CONTENT_CAT_LISTSUB_TABLE_START, $CONTENT_CAT_LISTSUB_TABLE, $CONTENT_CAT_LISTSUB_TABLE_END, $CONTENT_CAT_LIST_TABLE_AUTHORDETAILS, $CONTENT_CAT_LIST_TABLE_INFO_PRE, $CONTENT_CAT_LIST_TABLE_INFO_POST;
|
||||
global $content_cat_icon_path_small, $content_cat_icon_path_large, $content_icon_path, $mainparent, $totalparent, $totalsubcat;
|
||||
global $row, $datestamp, $comment_total, $gen, $authordetails, $rater, $crumb, $amount;
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $content_pref, $cobj, $datequery, $from, $CONTENT_RECENT_TABLE, $CONTENT_CAT_LIST_TABLE, $CONTENT_CAT_LISTSUB_TABLE_START, $CONTENT_CAT_LISTSUB_TABLE, $CONTENT_CAT_LISTSUB_TABLE_END, $CM_AUTHOR, $CONTENT_CAT_LIST_TABLE_INFO_PRE, $CONTENT_CAT_LIST_TABLE_INFO_POST, $content_cat_icon_path_small, $content_cat_icon_path_large, $content_icon_path, $mainparent, $totalparent, $totalsubcat, $row, $datestamp, $comment_total, $gen, $authordetails, $rater, $crumb, $amount;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -663,7 +649,7 @@ function show_content_cat($mode=""){
|
||||
$content_cat_icon_path_small = $tp -> replaceConstants($content_pref["content_cat_icon_path_small"]);
|
||||
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
|
||||
$order = $aa -> getOrder();
|
||||
$number = (isset($content_pref["content_nextprev_number"]) && $content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "5");
|
||||
$number = varsettrue($content_pref["content_nextprev_number"], '5');
|
||||
$nextprevquery = (isset($content_pref["content_nextprev"]) && $content_pref["content_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$capqs = array_reverse($array[intval($qs[1])]);
|
||||
$caption = $content_pref['content_cat_caption'];
|
||||
@ -681,17 +667,17 @@ function show_content_cat($mode=""){
|
||||
$content_pref['content_cat_text_char'] = 'all';
|
||||
}
|
||||
$row = $sql -> db_Fetch();
|
||||
$date = $tp -> parseTemplate('{CONTENT_CAT_LIST_TABLE_DATE}', FALSE, $content_shortcodes);
|
||||
$auth = $tp -> parseTemplate('{CONTENT_CAT_LIST_TABLE_AUTHORDETAILS}', FALSE, $content_shortcodes);
|
||||
$ep = $tp -> parseTemplate('{CONTENT_CAT_LIST_TABLE_EPICONS}', FALSE, $content_shortcodes);
|
||||
$date = $tp -> parseTemplate('{CM_DATE|catlist}', FALSE, $content_shortcodes);
|
||||
$auth = $tp -> parseTemplate('{CM_AUTHOR|catlist}', FALSE, $content_shortcodes);
|
||||
$ep = $tp -> parseTemplate('{CM_EPICONS|catlist}', FALSE, $content_shortcodes);
|
||||
$com = $tp -> parseTemplate('{CONTENT_CAT_LIST_TABLE_COMMENT}', FALSE, $content_shortcodes);
|
||||
if ($date!="" || $auth!="" || $ep!="" || $com!="" ) {
|
||||
$CONTENT_CAT_LIST_TABLE_INFO_PRE = TRUE;
|
||||
$CONTENT_CAT_LIST_TABLE_INFO_POST = TRUE;
|
||||
}
|
||||
$totalparent = $aa -> countCatItems($row['content_id']);
|
||||
$CONTENT_CAT_LIST_TABLE_AUTHORDETAILS = $aa -> prepareAuthor("cat", $row['content_author'], $row['content_id']);
|
||||
$textparent = $tp -> parseTemplate($CONTENT_CAT_LIST_TABLE, FALSE, $content_shortcodes);
|
||||
$CM_AUTHOR = $aa -> prepareAuthor("cat", $row['content_author'], $row['content_id']);
|
||||
$textparent = $tp -> parseTemplate($CONTENT_CAT_LIST_TABLE, FALSE, $content_shortcodes);
|
||||
}
|
||||
}
|
||||
|
||||
@ -760,7 +746,7 @@ function show_content_cat($mode=""){
|
||||
$textchild = displayPreview($childqry);
|
||||
$captionchild = $content_pref['content_cat_item_caption'];
|
||||
|
||||
$crumbpage = $aa -> getCrumbPage("cat", $array, $qs[1]);
|
||||
$crumbpage = $aa->getCrumbPage("cat", $array, $qs[1]);
|
||||
if(isset($textparent) && $textparent){
|
||||
$textparent = $crumbpage.$textparent;
|
||||
}else{
|
||||
@ -797,7 +783,7 @@ function show_content_cat($mode=""){
|
||||
$cachecheck = CachePost($cachestr);
|
||||
|
||||
if($mode == "comment"){
|
||||
$textparent = $aa -> getCrumbPage("cat", $array, $mainparent).$textparent;
|
||||
$textparent = $aa->getCrumbPage("cat", $array, $mainparent).$textparent;
|
||||
if(isset($textparent) && $textparent){ $ns -> tablerender($caption, $textparent); }
|
||||
|
||||
if($resultitem = $sql -> db_Select($plugintable, "*", $qry )){
|
||||
@ -823,7 +809,7 @@ function show_content_cat($mode=""){
|
||||
|
||||
// ##### AUTHOR LIST --------------------------------------
|
||||
function show_content_author_all(){
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $from, $sql, $aa, $e107cache, $tp, $pref, $mainparent, $content_pref, $cobj, $datequery, $authordetails, $i, $gen, $totalcontent, $row, $CONTENT_AUTHOR_TABLE, $CONTENT_AUTHOR_TABLE_START, $CONTENT_AUTHOR_TABLE_END, $CONTENT_AUTHOR_TABLE_DATE, $CONTENT_AUTHOR_TABLE_HEADING;
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $from, $sql, $aa, $e107cache, $tp, $pref, $mainparent, $content_pref, $cobj, $datequery, $authordetails, $i, $gen, $totalcontent, $row, $CONTENT_AUTHOR_TABLE, $CONTENT_AUTHOR_TABLE_START, $CONTENT_AUTHOR_TABLE_END;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[2]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -850,7 +836,7 @@ function show_content_author_all(){
|
||||
}
|
||||
$array = $aa -> getCategoryTree("", $mainparent, TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$number = (isset($content_pref["content_author_nextprev_number"]) && $content_pref["content_author_nextprev_number"] ? $content_pref["content_author_nextprev_number"] : "5");
|
||||
$number = varsettrue($content_pref["content_author_nextprev_number"],'5');
|
||||
$nextprevquery = (isset($content_pref["content_author_nextprev"]) && $content_pref["content_author_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$qry = " p.content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
$dateqry = "AND p.content_datestamp < ".time()." AND (p.content_enddate=0 || p.content_enddate>".time().")";
|
||||
@ -935,10 +921,17 @@ function show_content_author_all(){
|
||||
//do an alpha ordering on the author (if 'firstname lastname', lastname is the comparison factor)
|
||||
usort($arr3, "cmp");
|
||||
|
||||
//define amount of records to show
|
||||
if(isset($content_pref["content_author_nextprev"]) && $content_pref["content_author_nextprev"]){
|
||||
$a = $from;
|
||||
$b = $from+$number;
|
||||
}else{
|
||||
$a = 0;
|
||||
$b = count($arr3);
|
||||
}
|
||||
|
||||
$string = "";
|
||||
//only display number of records for nextprev
|
||||
$max = $from+$number;
|
||||
for($i=$from;$i<$max;$i++){
|
||||
for($i=$a;$i<$b;$i++){
|
||||
if(is_array($arr3[$i])){
|
||||
$authordetails[$i][1] = $arr3[$i][0];
|
||||
$row['content_id'] = $arr3[$i][1];
|
||||
@ -949,19 +942,17 @@ function show_content_author_all(){
|
||||
}
|
||||
}
|
||||
$text = $CONTENT_AUTHOR_TABLE_START.$string.$CONTENT_AUTHOR_TABLE_END;
|
||||
$text = $aa -> getCrumbPage("authorall", $array, $mainparent).$text;
|
||||
$text = $aa->getCrumbPage("authorall", $array, $mainparent).$text;
|
||||
}
|
||||
$caption = $content_pref['content_author_index_caption'];
|
||||
$ns -> tablerender($caption, $text);
|
||||
$aa -> ShowNextPrev("author", $from, $number, $contenttotal);
|
||||
$aa->ShowNextPrev("author", $from, $number, $contenttotal);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
}
|
||||
|
||||
|
||||
function show_content_author(){
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $content_pref, $cobj;
|
||||
global $nextprevquery, $from, $number, $content_icon_path;
|
||||
global $CONTENT_RECENT_TABLE, $datequery, $crumb, $mainparent;
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $content_pref, $cobj, $nextprevquery, $from, $number, $content_icon_path, $CONTENT_RECENT_TABLE, $datequery, $crumb, $mainparent;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -982,7 +973,7 @@ function show_content_author(){
|
||||
$validparent = implode(",", array_keys($array));
|
||||
}
|
||||
$order = $aa -> getOrder();
|
||||
$number = (isset($content_pref["content_nextprev_number"]) && $content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "5");
|
||||
$number = varsettrue($content_pref["content_nextprev_number"],'10');
|
||||
$nextprevquery = (isset($content_pref["content_nextprev"]) && $content_pref["content_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$qry = " content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
$sqla = "";
|
||||
@ -990,31 +981,29 @@ function show_content_author(){
|
||||
if(!$author = $sqla -> db_Select($plugintable, "content_author", "content_refer !='sa' AND ".$qry." ".$datequery." AND content_id = '".intval($qs[1])."' AND content_class REGEXP '".e_CLASS_REGEXP."' ")){
|
||||
header("location:".e_SELF."?author.list.".$mainparent); exit;
|
||||
}else{
|
||||
list($content_author) = $sqla -> db_Fetch();
|
||||
list($content_author) = $sqla -> db_Fetch();
|
||||
$sqlb = new db;
|
||||
$authordetails = $aa -> getAuthor($content_author);
|
||||
$query = " content_author = '".$authordetails[3]."' || content_author REGEXP '^".$authordetails[1]."^' ".(is_numeric($content_author) ? " || content_author = '".$authordetails[0]."' " : "")." ";
|
||||
$query = " content_author = '".$authordetails[3]."' || content_author REGEXP '\\\^".$authordetails[1]."' ".(is_numeric($content_author) && $authordetails[3]!=$authordetails[0] ? " || content_author = '".$authordetails[0]."' " : "")." ";
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_refer !='sa' AND content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ".$datequery." AND content_class REGEXP '".e_CLASS_REGEXP."' AND (".$query.") ";
|
||||
$contenttotal = $sqlb -> db_Count($plugintable, "(*)", "WHERE ".$qry." ");
|
||||
$authorqry = $qry." ".$order." ".$nextprevquery;
|
||||
$text = displayPreview($authorqry);
|
||||
$text = $aa -> getCrumbPage("author", $array, $mainparent).$text;
|
||||
$text = $aa->getCrumbPage("author", $array, $mainparent).$text;
|
||||
$caption = $content_pref['content_author_caption'];
|
||||
if(isset($content_pref['content_author_caption_append_name']) && $content_pref['content_author_caption_append_name']){
|
||||
$caption .= " ".$authordetails[1];
|
||||
}
|
||||
$ns -> tablerender($caption, $text);
|
||||
$aa -> ShowNextPrev("", $from, $number, $contenttotal);
|
||||
$aa->ShowNextPrev("", $from, $number, $contenttotal);
|
||||
}
|
||||
$cachecheck = CachePost($cachestr);
|
||||
}
|
||||
|
||||
// ##### TOP RATED LIST -----------------------------------
|
||||
function show_content_top(){
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $cobj, $content_icon_path;
|
||||
global $from, $datequery, $content_pref, $mainparent;
|
||||
global $CONTENT_TOP_TABLE_AUTHOR, $authordetails, $row;
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $cobj, $content_icon_path, $from, $datequery, $content_pref, $mainparent, $CM_AUTHOR, $authordetails, $row;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -1043,7 +1032,7 @@ function show_content_top(){
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$datequery1 = " AND p.content_datestamp < ".time()." AND (p.content_enddate=0 || p.content_enddate>".time().") ";
|
||||
$qry = " p.content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ";
|
||||
$number = (isset($content_pref["content_nextprev_number"]) && $content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "");
|
||||
$number = varsettrue($content_pref["content_nextprev_number"]);
|
||||
$np = ($number ? " LIMIT ".intval($from).", ".intval($number) : "");
|
||||
|
||||
$qry1 = "
|
||||
@ -1060,18 +1049,18 @@ function show_content_top(){
|
||||
$text = CONTENT_LAN_37;
|
||||
}else{
|
||||
while($row = $sql -> db_Fetch()){
|
||||
$CONTENT_TOP_TABLE_AUTHOR = $aa -> prepareAuthor("top", $row['content_author'], $row['content_id']);
|
||||
$content_top_table_string .= $tp -> parseTemplate($CONTENT_TOP_TABLE, FALSE, $content_shortcodes);
|
||||
$CM_AUTHOR = $aa -> prepareAuthor("top", $row['content_author'], $row['content_id']);
|
||||
$content_top_table_string .= $tp -> parseTemplate($CONTENT_TOP_TABLE, FALSE, $content_shortcodes);
|
||||
}
|
||||
$content_top_table_string = $aa -> getCrumbPage("top", $array, $mainparent).$content_top_table_string;
|
||||
$text = $CONTENT_TOP_TABLE_START.$content_top_table_string.$CONTENT_TOP_TABLE_END;
|
||||
$content_top_table_string = $aa->getCrumbPage("top", $array, $mainparent).$content_top_table_string;
|
||||
$text = $CONTENT_TOP_TABLE_START.$content_top_table_string.$CONTENT_TOP_TABLE_END;
|
||||
}
|
||||
$caption = $content_pref['content_top_caption'];
|
||||
$caption = $content_pref['content_top_caption'];
|
||||
if(isset($content_pref['content_top_caption_append_name']) && $content_pref['content_top_caption_append_name']){
|
||||
$caption .= " ".$array[intval($qs[1])][1];
|
||||
}
|
||||
$ns -> tablerender($caption, $text);
|
||||
$aa -> ShowNextPrev("", $from, $number, $total);
|
||||
$aa->ShowNextPrev("", $from, $number, $total);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
unset($qry, $qry1, $qry2, $array, $validparent, $datequery);
|
||||
}
|
||||
@ -1079,8 +1068,7 @@ function show_content_top(){
|
||||
|
||||
// ##### TOP SCORE LIST -----------------------------------
|
||||
function show_content_score(){
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $cobj, $content_icon_path;
|
||||
global $from, $datequery, $content_pref, $mainparent, $eArrayStorage, $CONTENT_SCORE_TABLE_SCORE, $CONTENT_SCORE_TABLE_AUTHOR, $authordetails, $row, $thisratearray;
|
||||
global $qs, $plugindir, $content_shortcodes, $ns, $plugintable, $sql, $aa, $e107cache, $tp, $pref, $cobj, $content_icon_path, $from, $datequery, $content_pref, $mainparent, $eArrayStorage, $CONTENT_SCORE_TABLE_SCORE, $CM_AUTHOR, $authordetails, $row, $thisratearray;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
@ -1108,7 +1096,7 @@ function show_content_score(){
|
||||
$array = $aa -> getCategoryTree("", intval($qs[1]), TRUE);
|
||||
$validparent = implode(",", array_keys($array));
|
||||
$qry = " content_score != '0' AND content_score != '' AND content_parent REGEXP '".$aa -> CONTENTREGEXP($validparent)."' ".$datequery." AND content_class REGEXP '".e_CLASS_REGEXP."' ";
|
||||
$number = (isset($content_pref["content_nextprev_number"]) && $content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "5");
|
||||
$number = varsettrue($content_pref["content_nextprev_number"],'5');
|
||||
|
||||
if(!is_object($sql)){ $sql = new db; }
|
||||
$contenttotal = $sql -> db_Count($plugintable, "(*)", "WHERE ".$qry." ");
|
||||
@ -1116,25 +1104,25 @@ function show_content_score(){
|
||||
$content_score_table_string = CONTENT_LAN_88;
|
||||
}else{
|
||||
while($row = $sql -> db_Fetch()){
|
||||
$CONTENT_SCORE_TABLE_AUTHOR = $aa -> prepareAuthor("score", $row['content_author'], $row['content_id']);
|
||||
$CM_AUTHOR = $aa -> prepareAuthor("score", $row['content_author'], $row['content_id']);
|
||||
$content_score_table_string .= $tp -> parseTemplate($CONTENT_SCORE_TABLE, FALSE, $content_shortcodes);
|
||||
}
|
||||
}
|
||||
$content_score_table_string = $aa -> getCrumbPage("score", $array, $mainparent).$content_score_table_string;
|
||||
$content_score_table_string = $aa->getCrumbPage("score", $array, $mainparent).$content_score_table_string;
|
||||
$text = $CONTENT_SCORE_TABLE_START.$content_score_table_string.$CONTENT_SCORE_TABLE_END;
|
||||
$caption = $content_pref['content_score_caption'];
|
||||
if(isset($content_pref['content_score_caption_append_name']) && $content_pref['content_score_caption_append_name']){
|
||||
$caption .= " ".$array[intval($qs[1])][1];
|
||||
}
|
||||
$ns -> tablerender($caption, $text);
|
||||
$aa -> ShowNextPrev("", $from, $number, $contenttotal);
|
||||
$aa->ShowNextPrev("", $from, $number, $contenttotal);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
}
|
||||
|
||||
// ##### CONTENT ITEM ------------------------------------------
|
||||
function show_content_item(){
|
||||
global $pref, $content_pref, $content_icon_path, $content_image_path, $content_file_path, $custom, $plugindir, $plugintable, $array, $content_shortcodes, $datequery, $order, $nextprevquery, $from, $number, $row, $qs, $gen, $sql, $aa, $tp, $rs, $cobj, $e107, $e107cache, $eArrayStorage, $ns, $rater, $ep, $row, $authordetails, $mainparent;
|
||||
global $CONTENT_CONTENT_TABLE_TEXT, $CONTENT_CONTENT_TABLE_PAGENAMES, $CONTENT_CONTENT_TABLE_SUMMARY, $CONTENT_CONTENT_TABLE_CUSTOM_TAGS, $CONTENT_CONTENT_TABLE_PARENT, $CONTENT_CONTENT_TABLE_INFO_PRE, $CONTENT_CONTENT_TABLE_INFO_POST, $CONTENT_CONTENT_TABLE_AUTHORDETAILS, $CONTENT_CONTENT_TABLE_INFO_PRE_HEADDATA, $CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA;
|
||||
global $CONTENT_CONTENT_TABLE_TEXT, $CONTENT_CONTENT_TABLE_PAGENAMES, $CONTENT_CONTENT_TABLE_SUMMARY, $CONTENT_CONTENT_TABLE_CUSTOM_TAGS, $CONTENT_CONTENT_TABLE_PARENT, $CONTENT_CONTENT_TABLE_INFO_PRE, $CONTENT_CONTENT_TABLE_INFO_POST, $CM_AUTHOR, $CONTENT_CONTENT_TABLE_INFO_PRE_HEADDATA, $CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA;
|
||||
global $CONTENT_CONTENT_TABLE_PREV_PAGE, $CONTENT_CONTENT_TABLE_NEXT_PAGE;
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($qs[1]));
|
||||
@ -1181,20 +1169,20 @@ function show_content_item(){
|
||||
echo $cachecheck;
|
||||
return;
|
||||
}
|
||||
$content_pref["content_cat_icon_path_large"] = ($content_pref["content_cat_icon_path_large"] ? $content_pref["content_cat_icon_path_large"] : "{e_PLUGIN}content/images/cat/48/" );
|
||||
$content_pref["content_cat_icon_path_small"] = ($content_pref["content_cat_icon_path_small"] ? $content_pref["content_cat_icon_path_small"] : "{e_PLUGIN}content/images/cat/16/" );
|
||||
$content_pref["content_icon_path"] = ($content_pref["content_icon_path"] ? $content_pref["content_icon_path"] : "{e_PLUGIN}content/images/icon/" );
|
||||
$content_pref["content_image_path"] = ($content_pref["content_image_path"] ? $content_pref["content_image_path"] : "{e_PLUGIN}content/images/image/" );
|
||||
$content_pref["content_file_path"] = ($content_pref["content_file_path"] ? $content_pref["content_file_path"] : "{e_PLUGIN}content/images/file/" );
|
||||
$content_cat_icon_path_large = $tp -> replaceConstants($content_pref["content_cat_icon_path_large"]);
|
||||
$content_cat_icon_path_small = $tp -> replaceConstants($content_pref["content_cat_icon_path_small"]);
|
||||
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
|
||||
$content_image_path = $tp -> replaceConstants($content_pref["content_image_path"]);
|
||||
$content_file_path = $tp -> replaceConstants($content_pref["content_file_path"]);
|
||||
$number = (isset($content_pref["content_nextprev_number"]) && $content_pref["content_nextprev_number"] ? $content_pref["content_nextprev_number"] : "5");
|
||||
$nextprevquery = (isset($content_pref["content_nextprev"]) && $content_pref["content_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
$content_pref["content_cat_icon_path_large"] = varset($content_pref["content_cat_icon_path_large"], "{e_PLUGIN}content/images/cat/48/");
|
||||
$content_pref["content_cat_icon_path_small"] = varset($content_pref["content_cat_icon_path_small"], "{e_PLUGIN}content/images/cat/16/");
|
||||
$content_pref["content_icon_path"] = varset($content_pref["content_icon_path"], "{e_PLUGIN}content/images/icon/");
|
||||
$content_pref["content_image_path"] = varset($content_pref["content_image_path"], "{e_PLUGIN}content/images/image/");
|
||||
$content_pref["content_file_path"] = varset($content_pref["content_file_path"], "{e_PLUGIN}content/images/file/");
|
||||
$content_cat_icon_path_large = $tp -> replaceConstants($content_pref["content_cat_icon_path_large"]);
|
||||
$content_cat_icon_path_small = $tp -> replaceConstants($content_pref["content_cat_icon_path_small"]);
|
||||
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
|
||||
$content_image_path = $tp -> replaceConstants($content_pref["content_image_path"]);
|
||||
$content_file_path = $tp -> replaceConstants($content_pref["content_file_path"]);
|
||||
$number = varsettrue($content_pref["content_nextprev_number"],'5');
|
||||
$nextprevquery = (isset($content_pref["content_nextprev"]) && $content_pref["content_nextprev"] ? "LIMIT ".intval($from).",".intval($number) : "");
|
||||
|
||||
$CONTENT_CONTENT_TABLE_AUTHORDETAILS = $aa -> prepareAuthor("content", $row['content_author'], $row['content_id']);
|
||||
$CM_AUTHOR = $aa -> prepareAuthor("content", $row['content_author'], $row['content_id']);
|
||||
$CONTENT_CONTENT_TABLE_TEXT = $row['content_text'];
|
||||
|
||||
$CONTENT_CONTENT_TABLE_PREV_PAGE = FALSE;
|
||||
@ -1284,7 +1272,7 @@ function show_content_item(){
|
||||
}
|
||||
}
|
||||
if($content_pref["content_content_pagenames_rendertype"] == "1"){
|
||||
$selectjs = "onchange=\"if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; }\"";
|
||||
$selectjs = "onchange=\"if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; }\"";
|
||||
$CONTENT_CONTENT_TABLE_PAGENAMES = $rs -> form_select_open("pagenames", $selectjs).$rs -> form_option(CONTENT_LAN_89, "1", "none" , "").$options.$rs -> form_select_close();
|
||||
}else{
|
||||
$CONTENT_CONTENT_TABLE_PAGENAMES = $options;
|
||||
@ -1292,14 +1280,14 @@ function show_content_item(){
|
||||
|
||||
}else{
|
||||
$CONTENT_CONTENT_TABLE_SUMMARY = (isset($content_pref["content_content_summary"]) && $content_pref["content_content_summary"] && $row['content_summary'] ? $tp -> toHTML($row['content_summary'], TRUE, "SUMMARY") : "");
|
||||
$CONTENT_CONTENT_TABLE_SUMMARY = $tp -> replaceConstants($CONTENT_CONTENT_TABLE_SUMMARY);
|
||||
$CONTENT_CONTENT_TABLE_SUMMARY = $tp -> replaceConstants($CONTENT_CONTENT_TABLE_SUMMARY);
|
||||
$lastpage = TRUE;
|
||||
}
|
||||
|
||||
$CONTENT_CONTENT_TABLE_TEXT = $tp -> replaceConstants($CONTENT_CONTENT_TABLE_TEXT);
|
||||
$CONTENT_CONTENT_TABLE_TEXT = $tp -> toHTML($CONTENT_CONTENT_TABLE_TEXT, TRUE, "BODY");
|
||||
$CONTENT_CONTENT_TABLE_TEXT = $tp -> replaceConstants($CONTENT_CONTENT_TABLE_TEXT);
|
||||
$CONTENT_CONTENT_TABLE_TEXT = $tp -> toHTML($CONTENT_CONTENT_TABLE_TEXT, TRUE, "BODY");
|
||||
|
||||
$custom = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
$custom = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
|
||||
$date = $tp -> parseTemplate('{CONTENT_CONTENT_TABLE_DATE}', FALSE, $content_shortcodes);
|
||||
$auth = $tp -> parseTemplate('{CONTENT_CONTENT_TABLE_AUTHORDETAILS}', FALSE, $content_shortcodes);
|
||||
@ -1414,7 +1402,7 @@ function show_content_item(){
|
||||
}
|
||||
}
|
||||
$text = $tp -> parseTemplate($CONTENT_CONTENT_TABLE, FALSE, $content_shortcodes);
|
||||
$text = $aa -> getCrumbPage("item", $array, $row['content_parent']).$text;
|
||||
$text = $aa->getCrumbPage("item", $array, $row['content_parent']).$text;
|
||||
$caption = $row['content_heading'];
|
||||
$ns -> tablerender($caption, $text);
|
||||
$cachecheck = CachePost($cachestr);
|
||||
@ -1430,12 +1418,14 @@ function show_content_item(){
|
||||
$lastpage = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if($lastpage && ($row['content_comment'] || (isset($content_pref["content_content_comment_all"]) && $content_pref["content_content_comment_all"]))){
|
||||
$cachecheck = CachePre($cachestr);
|
||||
if($cachecheck){
|
||||
echo $cachecheck;
|
||||
return;
|
||||
}
|
||||
|
||||
if((isset($content_pref["content_content_rating"]) && $content_pref["content_content_rating"] && $row['content_rate']) || (isset($content_pref["content_content_rating_all"]) && $content_pref["content_content_rating_all"]) ){
|
||||
$showrate = TRUE;
|
||||
}else{
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -2,15 +2,6 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
/*
|
||||
$e_plug_table = "pcontent"; //This is set to the table name you have decided to use.
|
||||
$reply_location = e_PLUGIN."content/content.php?content.$nid"; //This is set to the location you'd like the user to return to after replying to a comment.
|
||||
$db_table = "pcontent"; //This is the name of your plugins database table.
|
||||
$link_name = "content_heading"; //This is the name of the field in your plugin's db table that corresponds to it's name or title.
|
||||
$db_id = "content_id"; // This is the name of the field in your plugin's db table that correspond to it's unique id number.
|
||||
$plugin_name = "Content"; // A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
||||
*/
|
||||
|
||||
$e_comment['eplug_comment_ids'] = "pcontent"; //This is set to the table name you have decided to use.
|
||||
$e_comment['plugin_path'] = "content"; //The path of your plugin.
|
||||
$e_comment['plugin_name'] = "content"; //A name for your plugin. It will be used in links to comments, in list_new/new.php.
|
||||
|
@ -32,7 +32,7 @@ function print_item($id)
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
|
||||
$content_image_path = $tp -> replaceConstants($content_pref["content_image_path"]);
|
||||
$img = $tp -> parseTemplate('{CONTENT_PRINT_IMAGES}', FALSE, $content_shortcodes);
|
||||
$img = $tp -> parseTemplate('{CM_IMAGES|print}', FALSE, $content_shortcodes);
|
||||
|
||||
$text = "
|
||||
<b>".$row['content_heading']."</b>
|
||||
@ -94,13 +94,12 @@ function print_item_pdf($id){
|
||||
}
|
||||
$authordetails = $aa -> getAuthor($row['content_author']);
|
||||
$row['content_datestamp'] = $con -> convert_date($row['content_datestamp'], "long");
|
||||
$img = $tp -> parseTemplate('{CONTENT_PRINT_IMAGES}', FALSE, $content_shortcodes);
|
||||
|
||||
$mainparent = $aa -> getMainParent(intval($id));
|
||||
$content_pref = $aa -> getContentPref($mainparent);
|
||||
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
|
||||
$content_image_path = $tp -> replaceConstants($content_pref["content_image_path"]);
|
||||
$img = $tp -> parseTemplate('{CONTENT_PDF_IMAGES}', FALSE, $content_shortcodes);
|
||||
$img = $tp -> parseTemplate('{CM_IMAGES|pdf}', FALSE, $content_shortcodes);
|
||||
|
||||
//add custom and preset tags if present
|
||||
$custom = $eArrayStorage->ReadArray($row['content_pref']);
|
||||
|
@ -5,10 +5,7 @@ include_lan(e_PLUGIN."content/languages/".e_LANGUAGE."/lan_content_admin.php");
|
||||
|
||||
$plugintable = "pcontent";
|
||||
$reported_content = $sql -> db_Count($plugintable, '(*)', "WHERE content_refer='sa' ");
|
||||
$text .= "
|
||||
<div style='padding-bottom: 2px;'>
|
||||
<img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' />
|
||||
";
|
||||
$text .= "<div style='padding-bottom: 2px;'><img src='".e_PLUGIN."content/images/content_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' />";
|
||||
if($reported_content) {
|
||||
$text .= " <a href='".e_PLUGIN."content/admin_content_config.php?submitted'>".CONTENT_LATEST_LAN_1." $reported_content</a>";
|
||||
} else {
|
||||
|
@ -31,7 +31,7 @@ if (!defined('e107_INIT')) { exit; }
|
||||
$CATEGORY = "";
|
||||
$DATE = "";
|
||||
$INFO = "";
|
||||
$LIST_CAPTION = $rowm['content_heading'];
|
||||
$LIST_CAPTION = $rowm['content_heading'];
|
||||
|
||||
//global var for this main parent
|
||||
$mainparent = $rowm['content_id'];
|
||||
@ -107,5 +107,4 @@ if (!defined('e107_INIT')) { exit; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/e_meta.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:34:56 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
@ -48,5 +48,4 @@ if(isset($qs[0]) && $qs[0] == "content" && isset($qs[1]) && is_numeric($qs[1]) )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
@ -12,8 +12,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
|
||||
| $Revision: 1.10 $
|
||||
| $Date: 2007-03-13 16:51:05 $
|
||||
| $Revision: 1.11 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+---------------------------------------------------------------+
|
||||
*/
|
||||
@ -1192,7 +1192,8 @@ class content{
|
||||
<div><select id='{$mode}value' name='{$mode}value' class='tbox' $style onchange=\"if(this.options[this.selectedIndex].value != 'none'){ return document.location=this.options[this.selectedIndex].value; }\">";
|
||||
|
||||
if($mode == "page" || ($mode == "menu" && $content_pref["content_menu_links"] && $content_pref["content_menu_links_dropdown"]) ){
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(CONTENT_LAN_56, 1, "none").$rs -> form_option(" ", "0", "none");
|
||||
//$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(CONTENT_LAN_56, 1, "none").$rs -> form_option(" ", "0", "none");
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(CONTENT_LAN_56, 1, "none");
|
||||
|
||||
if($mode == "page" || ($mode == "menu" && $content_pref["content_menu_viewallcat"])){
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(CONTENT_LAN_6, 0, $plugindir."content.php?cat.list.".$mainparent);
|
||||
@ -1215,9 +1216,11 @@ class content{
|
||||
if($mode == "page" || ($mode == "menu" && $content_pref["content_menu_viewsubmit"])){
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(CONTENT_LAN_75, 0, $plugindir."content_manager.php");
|
||||
}
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(" ", "0", "none");
|
||||
}
|
||||
if($mode == "page" || ($mode == "menu" && $content_pref["content_menu_cat"] && $content_pref["content_menu_cat_dropdown"])){
|
||||
if($mode == "page" || ($mode == "menu" && $content_pref["content_menu_links"] && $content_pref["content_menu_links_dropdown"]) ){
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_option(" ", "0", "none");
|
||||
}
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $catarray;
|
||||
}
|
||||
$CONTENT_SEARCH_TABLE_SELECT .= $rs -> form_select_close()."</div>".$rs -> form_close();
|
||||
@ -1296,17 +1299,19 @@ class content{
|
||||
$menufile = "content_".$row['content_heading'];
|
||||
$menuname = $row['content_heading'];
|
||||
|
||||
$data = chr(60)."?php\n". chr(47)."*\n+---------------------------------------------------------------+\n| e107 website system\n| ".e_PLUGIN."content/menus/".$menufile."_menu.php\n|\n| ©Steve Dunstan 2001-2002\n| http://e107.org\n| jalist@e107.org\n|\n| Released under the terms and conditions of the\n| GNU General Public License (http://gnu.org).\n+---------------------------------------------------------------+\n\nThis file has been generated by ".e_PLUGIN."content/handlers/content_class.php.\n\n*". chr(47)."\n\n";
|
||||
$data = chr(60)."?php\n". chr(47)."*\n+---------------------------------------------------------------+\n| e107 website system\n| ".e_PLUGIN."content/menus/".$menufile."_menu.php\n|\n| ©Steve Dunstan 2001-2002\n| http://e107.org\n| jalist@e107.org\n|\n| Released under the terms and conditions of the\n| GNU General Public License (http://gnu.org).\n+---------------------------------------------------------------+\n\nThis file has been generated by ".e_PLUGIN."content/handlers/content_class.php.\n\n*". chr(47)."\n";
|
||||
$data .= "\n";
|
||||
$data .= "unset(\$text);\n";
|
||||
$data .= "\$text = \"\";\n";
|
||||
$data .= "\$menutypeid = \"$parentid\";\n";
|
||||
$data .= "\$menuname = \"$menuname\";\n";
|
||||
$data .= "\$menutypeid = \"$parentid\";\n";
|
||||
$data .= "\$menuname = \"$menuname\";\n";
|
||||
$data .= "\n";
|
||||
$data .= "\$plugindir = e_PLUGIN.'content/';\n";
|
||||
$data .= "\$plugintable = \"pcontent\"; //name of the table used in this plugin (never remove this, as it's being used throughout the plugin !!)\n";
|
||||
$data .= "\$datequery = \" AND content_datestamp < \".time().\" AND (content_enddate=0 || content_enddate>\".time().\") \";\n";
|
||||
$data .= "\$plugindir = e_PLUGIN.'content/';\n";
|
||||
$data .= "\$plugintable = \"pcontent\"; //name of the table used in this plugin (never remove this, as it's being used throughout the plugin !!)\n";
|
||||
$data .= "\$datequery = \" AND content_datestamp < \".time().\" AND (content_enddate=0 || content_enddate>\".time().\") \";\n";
|
||||
$data .= "\n";
|
||||
$data .= "global \$tp;\n";
|
||||
$data .= "require_once(e_PLUGIN.'content/content_shortcodes.php');\n";
|
||||
$data .= "require_once(e_PLUGIN.'content/handlers/content_class.php');\n";
|
||||
$data .= "\$aa = new content;\n";
|
||||
$data .= "require_once(e_HANDLER.'form_handler.php');\n";
|
||||
@ -1314,14 +1319,26 @@ class content{
|
||||
$data .= "\$gen = new convert;\n";
|
||||
$data .= "global \$tp;\n";
|
||||
$data .= "\n";
|
||||
$data .= "\$lan_file = e_PLUGIN.'content/languages/'.e_LANGUAGE.'/lan_content.php';\n";
|
||||
$data .= "include_once(file_exists(\$lan_file) ? \$lan_file : e_PLUGIN.'content/languages/English/lan_content.php');\n";
|
||||
$data .= "include_lan(e_PLUGIN.'content/languages/'.e_LANGUAGE.'/lan_content.php');\n";
|
||||
$data .= "\n";
|
||||
$data .= "\$bullet = (defined('BULLET') ? \"<img src='\".THEME_ABS.\"images/\".BULLET.\"' alt='' style='border:0;vertical-align: middle;' />\" : \"<img src='\".THEME_ABS.\"images/bullet2.gif' alt='bullet' style='border:0;vertical-align: middle;' />\");\n";
|
||||
$data .= "\n";
|
||||
$data .= "\$content_pref = \$aa -> getContentPref(\$menutypeid);\n";
|
||||
$data .= "\$content_icon_path = \$tp -> replaceConstants(\$content_pref[\"content_icon_path\"]);\n";
|
||||
$data .= "\$content_cat_icon_path_small = \$tp -> replaceConstants(\$content_pref[\"content_cat_icon_path_small\"]);\n";
|
||||
$data .= "\$content_pref = \$aa -> getContentPref(\$menutypeid);\n";
|
||||
$data .= "\$content_icon_path = \$tp -> replaceConstants(\$content_pref[\"content_icon_path\"]);\n";
|
||||
$data .= "\$content_cat_icon_path_small = \$tp -> replaceConstants(\$content_pref[\"content_cat_icon_path_small\"]);\n";
|
||||
$data .= "\n";
|
||||
$data .= "// load the template --------------------------------------------------\n";
|
||||
$data .= "if(!isset(\$CONTENT_MENU)){\n";
|
||||
$data .= " if(!\$content_pref[\"content_theme\"]){\n";
|
||||
$data .= " require_once(\$plugindir.\"templates/default/content_menu_template.php\");\n";
|
||||
$data .= " }else{\n";
|
||||
$data .= " if(is_readable(\$tp->replaceConstants(\$content_pref[\"content_theme\"]).\"content_menu_template.php\")){\n";
|
||||
$data .= " require_once(\$tp->replaceConstants(\$content_pref[\"content_theme\"]).\"content_menu_template.php\");\n";
|
||||
$data .= " }else{\n";
|
||||
$data .= " require_once(\$plugindir.\"templates/default/content_menu_template.php\");\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= "}\n";
|
||||
$data .= "\n";
|
||||
$data .= "//get category array\n";
|
||||
$data .= "\$array = \$aa -> getCategoryTree(\"\", intval(\$menutypeid), TRUE);\n";
|
||||
@ -1362,69 +1379,14 @@ class content{
|
||||
$data .= " }\n";
|
||||
$data .= "}\n";
|
||||
$data .= "// end menu visibility --------------------------------------------------\n";
|
||||
|
||||
$data .= "\$break = FALSE;\n";
|
||||
$data .= "//##### SEARCH SELECT ORDER --------------------------------------------------\n";
|
||||
$data .= "//show search box\n";
|
||||
$data .= "if(\$content_pref[\"content_menu_search\"]){\n";
|
||||
$data .= " \$text .= \$aa -> showOptionsSearch(\"menu\", \$menutypeid);\n";
|
||||
$data .= " \$break = TRUE;\n";
|
||||
$data .= "}\n";
|
||||
$data .= "//show select box (with either links to other content pages, to categories, to both, or don't show at all)\n";
|
||||
$data .= "if( (\$content_pref[\"content_menu_links\"] && \$content_pref[\"content_menu_links_dropdown\"]) || (\$content_pref[\"content_menu_cat\"] && \$content_pref[\"content_menu_cat_dropdown\"]) ){\n";
|
||||
$data .= " \$text .= \$aa -> showOptionsSelect(\"menu\", \$menutypeid);\n";
|
||||
$data .= " \$break = TRUE;\n";
|
||||
$data .= "}\n";
|
||||
$data .= "//show order box\n";
|
||||
$data .= "if(\$content_pref[\"content_menu_sort\"]){\n";
|
||||
$data .= " \$text .= \$aa -> showOptionsOrder(\"menu\", \$menutypeid);\n";
|
||||
$data .= " \$break = TRUE;\n";
|
||||
$data .= "}\n";
|
||||
$data .= "\n";
|
||||
$data .= "//show links list if chosen so\n";
|
||||
$data .= "if(\$content_pref[\"content_menu_links\"] && !\$content_pref[\"content_menu_links_dropdown\"]){\n";
|
||||
$data .= " if(\$break === TRUE){\n";
|
||||
$data .= " \$text .= \"<br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " \$text .= (\$content_pref[\"content_menu_links_caption\"] != \"\" ? \$content_pref[\"content_menu_links_caption\"] : CONTENT_MENU_LAN_4).\"<br />\";\n";
|
||||
$data .= "\n";
|
||||
$data .= " //define icon\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_links_icon\"] == \"0\"){ \$linksicon = \"\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_links_icon\"] == \"1\"){ \$linksicon = \$bullet;\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_links_icon\"] == \"2\"){ \$linksicon = \"·\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_links_icon\"] == \"3\"){ \$linksicon = \"º\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_links_icon\"] == \"4\"){ \$linksicon = \"»\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= "\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewallcat\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content.php?cat.list.\".\$menutypeid.\"'>\".CONTENT_LAN_6.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewallauthor\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content.php?author.list.\".\$menutypeid.\"'>\".CONTENT_LAN_7.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewallitems\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content.php?list.\".\$menutypeid.\"'>\".CONTENT_LAN_83.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewtoprated\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content.php?top.\".\$menutypeid.\"'>\".CONTENT_LAN_8.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewtopscore\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content.php?score.\".\$menutypeid.\"'>\".CONTENT_LAN_12.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewrecent\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content.php?recent.\".\$menutypeid.\"'>\".CONTENT_LAN_61.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_viewsubmit\"]){\n";
|
||||
$data .= " \$text .= \$linksicon.\" <a href='\".\$plugindir.\"content_manager.php'>\".CONTENT_LAN_75.\"</a><br />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " \$text .= \"<br />\";\n";
|
||||
$data .= "}\n";
|
||||
$data .= "global \$icon, \$bullet, \$row, \$CMT_CATEGORY, \$CMT_RECENT;\n";
|
||||
$data .= "\$icon = \$tp->parseTemplate(\"{CM_MENU_LINKS_ICON}\",TRUE,\$content_shortcodes);\n";
|
||||
$data .= "\n";
|
||||
$data .= "//##### CATEGORY LIST --------------------------------------------------\n";
|
||||
$data .= "\$CMT_CATEGORY = '';\n";
|
||||
$data .= "if(!\$content_pref[\"content_menu_cat_dropdown\"]){\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_cat\"]){\n";
|
||||
$data .= " \$text .= (\$content_pref[\"content_menu_cat_caption\"] != \"\" ? \$content_pref[\"content_menu_cat_caption\"] : CONTENT_MENU_LAN_3).\"<br />\";\n";
|
||||
$data .= "\n";
|
||||
$data .= " \$newparent = \"\";\n";
|
||||
$data .= " \$checkid = \"\";\n";
|
||||
$data .= " \$newarray = array_merge_recursive(\$array);\n";
|
||||
@ -1439,121 +1401,36 @@ class content{
|
||||
$data .= " }\n";
|
||||
$data .= " \$checkid = substr(\$checkid,0,-3);\n";
|
||||
$data .= " if(!is_object(\$sql)){ \$sql = new db; }\n";
|
||||
|
||||
$data .= " if(\$sql -> db_Select(\$plugintable, \"*\", \" \".\$checkid.\" ORDER BY SUBSTRING_INDEX(content_order, '.', 1)+0 \")){\n";
|
||||
$data .= " \$CMT_CATEGORY .= \$tp->parseTemplate(\$CONTENT_MENU_CATEGORY_START,TRUE,\$content_shortcodes);\n";
|
||||
$data .= " while(\$row = \$sql -> db_Fetch()){\n";
|
||||
$data .= "\n";
|
||||
$data .= " //define icon\n";
|
||||
$data .= " \$ICON = \"\";\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_cat_icon\"] == \"0\"){ \$ICON = \"\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon\"] == \"1\"){ \$ICON = \$bullet;\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon\"] == \"2\"){ \$ICON = \"·\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon\"] == \"3\"){ \$ICON = \"º\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon\"] == \"4\"){ \$ICON = \"»\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon\"] == \"5\"){\n";
|
||||
$data .= " if(\$row['content_icon'] != \"\" && file_exists(\$content_cat_icon_path_small.\$row['content_icon']) ){\n";
|
||||
$data .= " \$ICON = \"<img src='\".\$content_cat_icon_path_small.\$row['content_icon'].\"' alt='' style='border:0;' />\";\n";
|
||||
$data .= " }else{\n";
|
||||
$data .= " //default category icon\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_cat_icon_default\"] == \"0\"){ \$ICON = \"\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon_default\"] == \"1\"){ \$ICON = \$bullet;\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon_default\"] == \"2\"){ \$ICON = \"·\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon_default\"] == \"3\"){ \$ICON = \"º\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_cat_icon_default\"] == \"4\"){ \$ICON = \"»\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= " //display category list\n";
|
||||
$data .= " \$text .= \"<table style='width:100%; text-align:left; border:0;' cellpadding='0' cellspacing='0'>\";\n";
|
||||
$data .= " \$text .= \"<tr>\";\n";
|
||||
$data .= " \$text .= (\$ICON ? \"<td style='width:1%; white-space:nowrap; text-align:left; padding-right:5px;'><a href='\".e_PLUGIN.\"content/content.php?cat.\".\$row['content_id'].\"'>\".\$ICON.\"</a></td>\" : \"\");\n";
|
||||
$data .= " \$text .= \"<td colspan='2'>\";\n";
|
||||
$data .= " \$text .= \"<a href='\".e_PLUGIN.\"content/content.php?cat.\".\$row['content_id'].\"'>\".\$row['content_heading'].\"</a>\";\n";
|
||||
$data .= " \$text .= (\$content_pref[\"content_menu_cat_number\"] ? \" <span class='smalltext'>(\".\$aa -> countCatItems(\$row['content_id']).\")</span>\" : \"\");\n";
|
||||
$data .= " \$text .= \"</td>\";\n";
|
||||
$data .= " \$text .= \"</tr>\";\n";
|
||||
$data .= " \$text .= \"</table>\";\n";
|
||||
$data .= " \$CMT_CATEGORY .= \$tp->parseTemplate(\$CONTENT_MENU_CATEGORY_TABLE,TRUE,\$content_shortcodes);\n";
|
||||
$data .= " }\n";
|
||||
$data .= " \$CMT_CATEGORY .= \$tp->parseTemplate(\$CONTENT_MENU_CATEGORY_END,TRUE,\$content_shortcodes);\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= "}\n";
|
||||
$data .= "\n";
|
||||
$data .= "//##### RECENT --------------------------------------------------\n";
|
||||
$data .= "\$CMT_RECENT = '';\n";
|
||||
$data .= "if(\$content_pref[\"content_menu_recent\"]){\n";
|
||||
$data .= " \$text .= \"<br />\";\n";
|
||||
$data .= "\n";
|
||||
$data .= " //prepare query paramaters\n";
|
||||
$data .= " \$validparent = implode(\",\", array_keys(\$array));\n";
|
||||
$data .= " \$qry = \" content_parent REGEXP '\".\$aa -> CONTENTREGEXP(\$validparent).\"' \";\n";
|
||||
$data .= "\n";
|
||||
$data .= " \$sql1 = new db;\n";
|
||||
$data .= " \$contenttotal = \$sql1 -> db_Count(\$plugintable, \"(*)\", \"WHERE content_refer != 'sa' AND \".\$qry.\" \".\$datequery.\" AND content_class REGEXP '\".e_CLASS_REGEXP.\"' \" );\n";
|
||||
$data .= " if(\$resultitem = \$sql -> db_Select(\$plugintable, \"*\", \"content_refer !='sa' AND \".\$qry.\" \".\$datequery.\" AND content_class REGEXP '\".e_CLASS_REGEXP.\"' ORDER BY content_datestamp DESC LIMIT 0,\".\$content_pref[\"content_menu_recent_number\"] )){\n";
|
||||
$data .= "\n";
|
||||
$data .= " if(\$resultitem = \$sql1 -> db_Select(\$plugintable, \"*\", \"content_refer !='sa' AND \".\$qry.\" \".\$datequery.\" AND content_class REGEXP '\".e_CLASS_REGEXP.\"' ORDER BY content_datestamp DESC LIMIT 0,\".\$content_pref[\"content_menu_recent_number\"] )){\n";
|
||||
$data .= "\n";
|
||||
$data .= " \$text .= (\$content_pref[\"content_menu_recent_caption\"] != \"\" ? \$content_pref[\"content_menu_recent_caption\"] : CONTENT_MENU_LAN_2).\"<br />\";\n";
|
||||
$data .= " while(\$row = \$sql1 -> db_Fetch()){\n";
|
||||
$data .= "\n";
|
||||
$data .= " \$ICON = \"\";\n";
|
||||
$data .= " \$DATE = \"\";\n";
|
||||
$data .= " \$AUTHOR = \"\";\n";
|
||||
$data .= " \$SUBHEADING = \"\";\n";
|
||||
$data .= "\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_date\"]){\n";
|
||||
$data .= " \$datestyle = (\$content_pref[\"content_archive_datestyle\"] ? \$content_pref[\"content_archive_datestyle\"] : \"%d %b %Y\");\n";
|
||||
$data .= " \$DATE = strftime(\$datestyle, \$row['content_datestamp']);\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_author\"]){\n";
|
||||
$data .= " \$authordetails = \$aa -> getAuthor(\$row['content_author']);\n";
|
||||
$data .= " \$AUTHOR = \$authordetails[1];\n";
|
||||
$data .= " }\n";
|
||||
$data .= "\n";
|
||||
$data .= " //subheading\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_subheading\"] && \$row['content_subheading']){\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_subheading_char\"] && \$content_pref[\"content_menu_recent_subheading_char\"] != \"\" && \$content_pref[\"content_menu_recent_subheading_char\"] != \"0\"){\n";
|
||||
$data .= " if(strlen(\$row['content_subheading']) > \$content_pref[\"content_menu_recent_subheading_char\"]) {\n";
|
||||
$data .= " \$row['content_subheading'] = substr(\$row['content_subheading'], 0, \$content_pref[\"content_menu_recent_subheading_char\"]).\$content_pref[\"content_menu_recent_subheading_post\"];\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= " \$SUBHEADING = \$row['content_subheading'];\n";
|
||||
$data .= " }\n";
|
||||
$data .= "\n";
|
||||
$data .= " //define icon\n";
|
||||
$data .= " \$recenticonwidth = \"\";\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_icon\"] == \"0\"){ \$ICON = \"\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_recent_icon\"] == \"1\"){ \$ICON = \$bullet;\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_recent_icon\"] == \"2\"){ \$ICON = \"·\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_recent_icon\"] == \"3\"){ \$ICON = \"º\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_recent_icon\"] == \"4\"){ \$ICON = \"»\";\n";
|
||||
$data .= " }elseif(\$content_pref[\"content_menu_recent_icon\"] == \"5\"){\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_icon\"] == \"5\"){\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_icon_width\"]){\n";
|
||||
$data .= " \$recenticonwidth = \" width:\".\$content_pref[\"content_menu_recent_icon_width\"].\"px; \";\n";
|
||||
$data .= " }else{\n";
|
||||
$data .= " \$recenticonwidth = \" width:50px; \";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= " if(\$content_pref[\"content_menu_recent_icon\"] == \"5\" && \$row['content_icon'] != \"\" && file_exists(\$content_icon_path.\$row['content_icon'])){\n";
|
||||
$data .= " \$ICON = \"<img src='\".\$content_icon_path.\$row['content_icon'].\"' alt='' style='\".\$recenticonwidth.\" border:0;' />\";\n";
|
||||
$data .= " }\n";
|
||||
$data .= " }\n";
|
||||
$data .= "\n";
|
||||
$data .= " //display recent list\n";
|
||||
$data .= " \$text .= \"<table style='width:100%; text-align:left; border:0; margin-bottom:10px;' cellpadding='0' cellspacing='0'>\";\n";
|
||||
$data .= " \$text .= \"<tr>\";\n";
|
||||
$data .= " \$text .= (\$ICON ? \"<td style='width:1%; white-space:nowrap; vertical-align:top; padding-right:5px;'><a href='\".e_PLUGIN.\"content/content.php?content.\".\$row['content_id'].\"'>\".\$ICON.\"</a></td>\" : \"\");\n";
|
||||
$data .= " \$text .= \"<td style='width:99%; vertical-align:top;'>\";\n";
|
||||
$data .= " \$text .= \"<a href='\".e_PLUGIN.\"content/content.php?content.\".\$row['content_id'].\"'>\".\$row['content_heading'].\"</a><br />\";\n";
|
||||
$data .= " \$text .= (\$DATE ? \$DATE.\"<br />\" : \"\" );\n";
|
||||
$data .= " \$text .= (\$AUTHOR ? \$AUTHOR.\"<br />\" : \"\" );\n";
|
||||
$data .= " \$text .= (\$SUBHEADING ? \$SUBHEADING.\"<br />\" : \"\" );\n";
|
||||
$data .= " \$text .= \"</td>\";\n";
|
||||
$data .= " \$text .= \"</tr>\";\n";
|
||||
$data .= " \$text .= \"</table>\";\n";
|
||||
$data .= " \$CMT_RECENT .= \$tp->parseTemplate(\$CONTENT_MENU_RECENT_START,TRUE,\$content_shortcodes);\n";
|
||||
$data .= " while(\$row = \$sql -> db_Fetch()){\n";
|
||||
$data .= " \$CMT_RECENT .= \$tp->parseTemplate(\$CONTENT_MENU_RECENT_TABLE,TRUE,\$content_shortcodes);\n";
|
||||
$data .= " }\n";
|
||||
$data .= " \$CMT_RECENT .= \$tp->parseTemplate(\$CONTENT_MENU_RECENT_END,TRUE,\$content_shortcodes);\n";
|
||||
$data .= " }\n";
|
||||
$data .= "}\n";
|
||||
$data .= "\n";
|
||||
$data .= "\n";
|
||||
$data .= "//##### PARSE THE MENU --------------------------------------------------\n";
|
||||
$data .= "\$text = \$tp->parseTemplate(\$CONTENT_MENU,TRUE,\$content_shortcodes);\n";
|
||||
$data .= "\n";
|
||||
$data .= "if(!isset(\$text)){ \$text = CONTENT_MENU_LAN_1; }\n";
|
||||
$data .= "\$caption = (\$content_pref[\"content_menu_caption\"] != \"\" ? \$content_pref[\"content_menu_caption\"] : CONTENT_MENU_LAN_0.\" \".\$menuname);\n";
|
||||
$data .= "\$ns -> tablerender(\$caption, \$text, '$menufile');\n";
|
||||
|
@ -4,8 +4,8 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/languages/English/lan_content_admin.php,v $
|
||||
| $Revision: 1.9 $
|
||||
| $Date: 2007-03-25 08:38:20 $
|
||||
| $Revision: 1.10 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -105,6 +105,7 @@ define("CONTENT_ADMIN_MANAGER_LAN_5", "users with this class are able to create
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_6", "submit content");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_7", "users with this class are able to submit content items in this category");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_8", "manager inherit preferences updated");
|
||||
define("CONTENT_ADMIN_MANAGER_LAN_9", "manage permissions");
|
||||
|
||||
|
||||
define("CONTENT_ADMIN_ITEM_LAN_0", "required field(s) left blank");
|
||||
|
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_admin_template.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-03-13 16:51:05 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -189,9 +189,7 @@ if(!isset($CONTENT_ADMIN_MANAGER_CATEGORY)){
|
||||
".$rs -> form_open("post", e_SELF."?".e_QUERY, "managerform", "", "enctype='multipart/form-data'")."
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
<tr>
|
||||
<td colspan='2' class='fcaption'>
|
||||
manage permissions
|
||||
</td>
|
||||
<td colspan='2' class='fcaption'>".CONTENT_ADMIN_MANAGER_LAN_9."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='text-align:left'>
|
||||
|
@ -11,21 +11,21 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_manager_template.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-03-13 16:51:05 $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_CONTENTMANAGER_ICONEDIT']['pre'] = " | ";
|
||||
$sc_style['CONTENT_CONTENTMANAGER_ICONEDIT']['post'] = "";
|
||||
$sc_style['CM_ICON|manager_edit']['pre'] = " | ";
|
||||
$sc_style['CM_ICON|manager_edit']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENTMANAGER_ICONSUBM']['pre'] = " | ";
|
||||
$sc_style['CONTENT_CONTENTMANAGER_ICONSUBM']['post'] = "";
|
||||
$sc_style['CM_ICON|manager_submit']['pre'] = " | ";
|
||||
$sc_style['CM_ICON|manager_submit']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENTMANAGER_CATEGORY_SUBHEADING']['pre'] = "<div class='forumheader3'>";
|
||||
$sc_style['CONTENT_CONTENTMANAGER_CATEGORY_SUBHEADING']['post'] = "</div>";
|
||||
$sc_style['CM_SUBHEADING|manager']['pre'] = "<div class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|manager']['post'] = "</div>";
|
||||
|
||||
// ##### CONTENT CONTENTMANAGER LIST --------------------------------------------------
|
||||
if(!isset($CONTENT_CONTENTMANAGER_TABLE_START)){
|
||||
@ -33,10 +33,10 @@ if(!isset($CONTENT_CONTENTMANAGER_TABLE_START)){
|
||||
}
|
||||
if(!isset($CONTENT_CONTENTMANAGER_TABLE)){
|
||||
$CONTENT_CONTENTMANAGER_TABLE = "
|
||||
<div class='fcaption'>{CONTENT_CONTENTMANAGER_CATEGORY}</div>
|
||||
{CONTENT_CONTENTMANAGER_CATEGORY_SUBHEADING}
|
||||
<div class='fcaption'>{CM_HEADING|manager}</div>
|
||||
{CM_SUBHEADING|manager}
|
||||
<div class='forumheader3' style='margin-bottom:20px;'>
|
||||
{CONTENT_CONTENTMANAGER_ICONNEW} {CONTENT_CONTENTMANAGER_ICONEDIT} {CONTENT_CONTENTMANAGER_ICONSUBM}
|
||||
{CM_ICON|manager_new} {CM_ICON|manager_edit} {CM_ICON|manager_submit}
|
||||
</div>";
|
||||
}
|
||||
|
||||
|
@ -11,22 +11,22 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/content_type_template.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-03-13 16:51:05 $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_TYPE_TABLE_TOTAL']['pre'] = "";
|
||||
$sc_style['CONTENT_TYPE_TABLE_TOTAL']['post'] = " ";
|
||||
$sc_style['CM_AMOUNT|type']['pre'] = "";
|
||||
$sc_style['CM_AMOUNT|type']['post'] = " ";
|
||||
|
||||
$sc_style['CONTENT_TYPE_TABLE_HEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_TYPE_TABLE_HEADING']['post'] = "";
|
||||
$sc_style['CM_HEADING|type']['pre'] = "";
|
||||
$sc_style['CM_HEADING|type']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_TYPE_TABLE_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_TYPE_TABLE_SUBHEADING']['post'] = "";
|
||||
$sc_style['CM_SUBHEADING|type']['pre'] = "";
|
||||
$sc_style['CM_SUBHEADING|type']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_TYPE_TABLE_LINK']['pre'] = "<br /><span class='smalltext'>";
|
||||
$sc_style['CONTENT_TYPE_TABLE_LINK']['post'] = "</span>";
|
||||
@ -39,17 +39,17 @@ if(!isset($CONTENT_TYPE_TABLE_START)){
|
||||
if(!isset($CONTENT_TYPE_TABLE)){
|
||||
$CONTENT_TYPE_TABLE = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; padding-bottom:5px;' rowspan='2'>{CONTENT_TYPE_TABLE_ICON}</td>
|
||||
<td class='fcaption'>{CONTENT_TYPE_TABLE_HEADING}{CONTENT_TYPE_TABLE_LINK}</td>
|
||||
<td class='forumheader' style='width:5%; white-space:nowrap; text-align:right;'>{CONTENT_TYPE_TABLE_TOTAL} {CONTENT_TYPE_TABLE_TOTAL_LAN}</td>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; padding-bottom:5px;' rowspan='2'>{CM_ICON|type}</td>
|
||||
<td class='fcaption'>{CM_HEADING|type}{CONTENT_TYPE_TABLE_LINK}</td>
|
||||
<td class='forumheader' style='width:5%; white-space:nowrap; text-align:right;'>{CM_AMOUNT|type}</td>
|
||||
</tr>
|
||||
<tr><td class='forumheader2' colspan='2'>{CONTENT_TYPE_TABLE_SUBHEADING}<br /></td></tr>\n";
|
||||
<tr><td class='forumheader2' colspan='2'>{CM_SUBHEADING|type}<br /></td></tr>\n";
|
||||
}
|
||||
if(!isset($CONTENT_TYPE_TABLE_MANAGER)){
|
||||
$CONTENT_TYPE_TABLE_MANAGER = "
|
||||
<tr>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; padding-bottom:5px;' rowspan='2'>{CONTENT_TYPE_TABLE_MANAGER_ICON}</td>
|
||||
<td class='fcaption' colspan='2'>{CONTENT_TYPE_TABLE_MANAGER_HEADING}</td>
|
||||
<td class='forumheader3' style='width:5%; white-space:nowrap; padding-bottom:5px;' rowspan='2'>{CM_ICON|manager_link}</td>
|
||||
<td class='fcaption' colspan='2'>{CM_HEADING|manager_link}</td>
|
||||
</tr>
|
||||
<tr><td class='forumheader2' colspan='2'>".CONTENT_LAN_68."</td></tr>\n";
|
||||
}
|
||||
|
@ -11,16 +11,16 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_archive_template.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:08 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_ARCHIVE_TABLE_AUTHOR']['pre'] = "<tr><td class='forumheader3' colspan='2' style='white-space:nowrap; text-align:left;'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_ARCHIVE_TABLE_AUTHOR']['post'] = "</td></tr>";
|
||||
$sc_style['CM_AUTHOR|archive']['pre'] = "<tr><td class='forumheader3' colspan='2' style='white-space:nowrap; text-align:left;'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|archive']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_ARCHIVE_TABLE_LETTERS']['pre'] = "<div style='margin-bottom:20px;'>";
|
||||
$sc_style['CONTENT_ARCHIVE_TABLE_LETTERS']['post'] = "</div>";
|
||||
@ -29,16 +29,15 @@ $sc_style['CONTENT_ARCHIVE_TABLE_LETTERS']['post'] = "</div>";
|
||||
if(!isset($CONTENT_ARCHIVE_TABLE_START)){
|
||||
$CONTENT_ARCHIVE_TABLE_START = "
|
||||
{CONTENT_ARCHIVE_TABLE_LETTERS}
|
||||
<table class='fborder'>
|
||||
";
|
||||
<table class='fborder'>";
|
||||
}
|
||||
if(!isset($CONTENT_ARCHIVE_TABLE)){
|
||||
$CONTENT_ARCHIVE_TABLE = "
|
||||
<tr>
|
||||
<td class='fcaption'>{CONTENT_ARCHIVE_TABLE_HEADING}</td>
|
||||
<td class='fcaption' style='width:5%; white-space:nowrap; text-align:right;'>{CONTENT_ARCHIVE_TABLE_DATE}</td>
|
||||
<td class='fcaption'>{CM_HEADING|archive}</td>
|
||||
<td class='fcaption' style='width:5%; white-space:nowrap; text-align:right;'>{CM_DATE|archive}</td>
|
||||
</tr>
|
||||
{CONTENT_ARCHIVE_TABLE_AUTHOR}
|
||||
{CM_AUTHOR|archive}
|
||||
\n";
|
||||
}
|
||||
if(!isset($CONTENT_ARCHIVE_TABLE_END)){
|
||||
|
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_author_template.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:08 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
global $sc_style, $content_shortcodes;
|
||||
@ -21,8 +21,8 @@ global $sc_style, $content_shortcodes;
|
||||
$sc_style['CONTENT_AUTHOR_TABLE_LASTITEM']['pre'] = "<tr><td class='forumheader3'>".CONTENT_LAN_55." ";
|
||||
$sc_style['CONTENT_AUTHOR_TABLE_LASTITEM']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_AUTHOR_TABLE_TOTAL']['pre'] = "(";
|
||||
$sc_style['CONTENT_AUTHOR_TABLE_TOTAL']['post'] = ")";
|
||||
$sc_style['CM_AMOUNT|author']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|author']['post'] = ")";
|
||||
|
||||
// ##### CONTENT AUTHOR -------------------------------------------------------
|
||||
if(!isset($CONTENT_AUTHOR_TABLE_START)){
|
||||
@ -32,7 +32,7 @@ if(!isset($CONTENT_AUTHOR_TABLE_START)){
|
||||
if(!isset($CONTENT_AUTHOR_TABLE)){
|
||||
$CONTENT_AUTHOR_TABLE = "
|
||||
<tr>
|
||||
<td class='fcaption'>{CONTENT_AUTHOR_TABLE_ICON} {CONTENT_AUTHOR_TABLE_NAME} {CONTENT_AUTHOR_TABLE_TOTAL}</td>
|
||||
<td class='fcaption'>{CM_ICON|author} {CM_AUTHOR|author} {CM_AMOUNT|author}</td>
|
||||
</tr>
|
||||
{CONTENT_AUTHOR_TABLE_LASTITEM}
|
||||
";
|
||||
|
@ -11,31 +11,31 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_cat_template.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:09 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_ICON']['pre'] = "<td class='forumheader3' rowspan='5' style='width:5%; white-space:nowrap; padding-right:5px;'>";
|
||||
$sc_style['CONTENT_CAT_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_ICON|cat']['pre'] = "<td class='forumheader3' rowspan='5' style='width:5%; white-space:nowrap; padding-right:5px;'>";
|
||||
$sc_style['CM_ICON|cat']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_AUTHORDETAILS']['pre'] = " ";
|
||||
$sc_style['CONTENT_CAT_TABLE_AUTHORDETAILS']['post'] = " ";
|
||||
$sc_style['CM_AUTHOR|cat']['pre'] = " ";
|
||||
$sc_style['CM_AUTHOR|cat']['post'] = " ";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_SUBHEADING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_TABLE_SUBHEADING']['post'] = "<br /></td></tr>";
|
||||
$sc_style['CM_SUBHEADING|cat']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|cat']['post'] = "<br /></td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_TEXT']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_TABLE_TEXT']['post'] = "<br /></td></tr>";
|
||||
$sc_style['CM_TEXT|cat']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|cat']['post'] = "<br /></td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_RATING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_TABLE_RATING']['post'] = "<br /></td></tr>";
|
||||
$sc_style['CM_RATING|cat']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_RATING|cat']['post'] = "<br /></td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_AMOUNT']['pre'] = "(";
|
||||
$sc_style['CONTENT_CAT_TABLE_AMOUNT']['post'] = ")";
|
||||
$sc_style['CM_AMOUNT|cat']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|cat']['post'] = ")";
|
||||
|
||||
$sc_style['CONTENT_CAT_TABLE_INFO_PRE']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_TABLE_INFO_PRE']['post'] = "";
|
||||
@ -51,44 +51,39 @@ if(!isset($CONTENT_CAT_TABLE)){
|
||||
$CONTENT_CAT_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CONTENT_CAT_TABLE_ICON}
|
||||
<td class='fcaption' >{CONTENT_CAT_TABLE_HEADING} {CONTENT_CAT_TABLE_AMOUNT}</td>
|
||||
{CM_ICON|cat}
|
||||
<td class='fcaption' >{CM_HEADING|cat} {CM_AMOUNT|cat}</td>
|
||||
</tr>
|
||||
|
||||
{CONTENT_CAT_TABLE_INFO_PRE}
|
||||
{CONTENT_CAT_TABLE_DATE} {CONTENT_CAT_TABLE_AUTHORDETAILS} {CONTENT_CAT_TABLE_EPICONS} {CONTENT_CAT_TABLE_COMMENT}
|
||||
{CM_DATE|cat} {CM_AUTHOR|cat} {CM_EPICONS|cat} {CM_COMMENT|cat}
|
||||
{CONTENT_CAT_TABLE_INFO_POST}
|
||||
|
||||
{CONTENT_CAT_TABLE_SUBHEADING}
|
||||
{CONTENT_CAT_TABLE_TEXT}
|
||||
{CONTENT_CAT_TABLE_RATING}
|
||||
{CM_SUBHEADING|cat}
|
||||
{CM_TEXT|cat}
|
||||
{CM_RATING|cat}
|
||||
</table>\n";
|
||||
|
||||
}
|
||||
if(!isset($CONTENT_CAT_TABLE_END)){
|
||||
$CONTENT_CAT_TABLE_END = "";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$sc_style['CM_ICON|catlist']['pre'] = "<td class='forumheader3' style='width:5%; white-space:nowrap; padding-right:5px;' rowspan='5'>";
|
||||
$sc_style['CM_ICON|catlist']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_SUBHEADING|catlist']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|catlist']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_ICON']['pre'] = "<td class='forumheader3' style='width:5%; white-space:nowrap; padding-right:5px;' rowspan='5'>";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_AUTHOR|catlist']['pre'] = " / ";
|
||||
$sc_style['CM_AUTHOR|catlist']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_SUBHEADING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_SUBHEADING']['post'] = "</td></tr>";
|
||||
$sc_style['CM_RATING|catlist']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_RATING|catlist']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_AUTHORDETAILS']['pre'] = " / ";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
$sc_style['CM_TEXT|catlist']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|catlist']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_RATING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_RATING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_TEXT']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_TEXT']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_AMOUNT']['pre'] = "(";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_AMOUNT']['post'] = ")";
|
||||
$sc_style['CM_AMOUNT|catlist']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|catlist']['post'] = ")";
|
||||
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_INFO_PRE']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_LIST_TABLE_INFO_PRE']['post'] = "";
|
||||
@ -101,31 +96,27 @@ if(!isset($CONTENT_CAT_LIST_TABLE)){
|
||||
$CONTENT_CAT_LIST_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:10px;'>
|
||||
<tr>
|
||||
{CONTENT_CAT_LIST_TABLE_ICON}
|
||||
<td class='fcaption'>{CONTENT_CAT_LIST_TABLE_HEADING} {CONTENT_CAT_LIST_TABLE_AMOUNT}</td>
|
||||
{CM_ICON|catlist}
|
||||
<td class='fcaption'>{CM_HEADING|catlist} {CM_AMOUNT|catlist}</td>
|
||||
</tr>
|
||||
{CONTENT_CAT_LIST_TABLE_SUBHEADING}
|
||||
|
||||
{CONTENT_CAT_LIST_TABLE_INFO_PRE}
|
||||
{CONTENT_CAT_LIST_TABLE_DATE} {CONTENT_CAT_LIST_TABLE_AUTHORDETAILS} {CONTENT_CAT_LIST_TABLE_EPICONS} {CONTENT_CAT_LIST_TABLE_COMMENT}
|
||||
{CM_SUBHEADING|catlist}
|
||||
{CONTENT_CAT_LIST_TABLE_INFO_PRE}
|
||||
{CM_DATE|catlist} {CM_AUTHOR|catlist} {CM_EPICONS|catlist} {CM_COMMENT|catlist}
|
||||
{CONTENT_CAT_LIST_TABLE_INFO_POST}
|
||||
|
||||
{CONTENT_CAT_LIST_TABLE_RATING}
|
||||
{CONTENT_CAT_LIST_TABLE_TEXT}
|
||||
{CM_RATING|catlist}
|
||||
{CM_TEXT|catlist}
|
||||
</table>\n";
|
||||
}
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$sc_style['CM_ICON|catlistsub']['pre'] = "<td class='forumheader3' style='width:2%; white-space:nowrap; padding-right:5px; ' rowspan='2'>";
|
||||
$sc_style['CM_ICON|catlistsub']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_SUBHEADING|catlistsub']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|catlistsub']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LISTSUB_TABLE_ICON']['pre'] = "<td class='forumheader3' style='width:2%; white-space:nowrap; padding-right:5px; ' rowspan='2'>";
|
||||
$sc_style['CONTENT_CAT_LISTSUB_TABLE_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LISTSUB_TABLE_SUBHEADING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_CAT_LISTSUB_TABLE_SUBHEADING']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_CAT_LISTSUB_TABLE_AMOUNT']['pre'] = "(";
|
||||
$sc_style['CONTENT_CAT_LISTSUB_TABLE_AMOUNT']['post'] = ")";
|
||||
$sc_style['CM_AMOUNT|catlistsub']['pre'] = "(";
|
||||
$sc_style['CM_AMOUNT|catlistsub']['post'] = ")";
|
||||
|
||||
// ##### CONTENT CAT_LIST SUB -------------------------------------------------
|
||||
if(!isset($CONTENT_CAT_LISTSUB_TABLE_START)){
|
||||
@ -135,10 +126,10 @@ if(!isset($CONTENT_CAT_LISTSUB_TABLE)){
|
||||
$CONTENT_CAT_LISTSUB_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CONTENT_CAT_LISTSUB_TABLE_ICON}
|
||||
<td class='fcaption'>{CONTENT_CAT_LISTSUB_TABLE_HEADING} {CONTENT_CAT_LISTSUB_TABLE_AMOUNT}</td>
|
||||
{CM_ICON|catlistsub}
|
||||
<td class='fcaption'>{CM_HEADING|catlistsub} {CM_AMOUNT|catlistsub}</td>
|
||||
</tr>
|
||||
{CONTENT_CAT_LISTSUB_TABLE_SUBHEADING}
|
||||
{CM_SUBHEADING|catlistsub}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_CAT_LISTSUB_TABLE_END)){
|
||||
|
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_content_template.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-04 13:11:52 $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -20,20 +20,20 @@
|
||||
// ##### CONTENT CONTENT ------------------------------------------------------
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['pre'] = "<br />".CONTENT_LAN_44." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_REFER']['post'] = "";
|
||||
$sc_style['CM_REFER|content']['pre'] = "<br />".CONTENT_LAN_44." ";
|
||||
$sc_style['CM_REFER|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['pre'] = "<br />".CONTENT_LAN_57." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_COMMENT']['post'] = "";
|
||||
$sc_style['CM_COMMENT|content']['pre'] = "<br />".CONTENT_LAN_57." ";
|
||||
$sc_style['CM_COMMENT|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['pre'] = "<br />".CONTENT_LAN_45." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SCORE']['post'] = "/100";
|
||||
$sc_style['CM_SCORE|content']['pre'] = "<br />".CONTENT_LAN_45." ";
|
||||
$sc_style['CM_SCORE|content']['post'] = "/100";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_RATING']['post'] = "";
|
||||
$sc_style['CM_RATING|content']['pre'] = "<br />";
|
||||
$sc_style['CM_RATING|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['pre'] = "<br />".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
$sc_style['CM_AUTHOR|content']['pre'] = "<br />".CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['pre'] = "<br /><div>".CONTENT_LAN_46."<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['post'] = "</div>";
|
||||
@ -41,37 +41,29 @@ $sc_style['CONTENT_CONTENT_TABLE_PAGENAMES']['post'] = "</div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['pre'] = "<br /><br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_CUSTOM_TAGS']['post'] = "<br /><br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUMMARY']['post'] = "<br /><br /></div>";
|
||||
$sc_style['CM_SUMMARY|content']['pre'] = "<div>";
|
||||
$sc_style['CM_SUMMARY|content']['post'] = "<br /><br /></div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['pre'] = "<div>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_TEXT']['post'] = "</div>";
|
||||
$sc_style['CM_TEXT|content']['pre'] = "<div>";
|
||||
$sc_style['CM_TEXT|content']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_IMAGES']['post'] = "</div>";
|
||||
$sc_style['CM_IMAGES|content']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
$sc_style['CM_IMAGES|content']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_SUBHEADING']['post'] = "<br />";
|
||||
$sc_style['CM_SUBHEADING|content']['pre'] = "";
|
||||
$sc_style['CM_SUBHEADING|content']['post'] = "<br />";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['pre'] = "<br />";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_FILE']['post'] = "";
|
||||
$sc_style['CM_FILE|content']['pre'] = "<br />";
|
||||
$sc_style['CM_FILE|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_DATE']['post'] = "";
|
||||
$sc_style['CM_DATE|content']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CM_DATE|content']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['pre'] = "<br />".CONTENT_LAN_9." ";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_PARENT']['post'] = "";
|
||||
$sc_style['CM_PARENT|content']['pre'] = "<br />".CONTENT_LAN_9." ";
|
||||
$sc_style['CM_PARENT|content']['post'] = "";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<div style='clear:both;'><div style='float:left;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['pre'] = "";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_INFO_POST']['post'] = "</div></div>";
|
||||
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<div style='float:left; padding-right:10px;'>";
|
||||
//$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</div>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['pre'] = "<td style='width:10%; white-space:nowrap; vertical-align:top; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_ICON|content']['pre'] = "<td style='width:10%; white-space:nowrap; vertical-align:top; padding-right:10px;'>";
|
||||
$sc_style['CM_ICON|content']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['pre'] = "<table cellpadding='0' cellspacing='0' style='width:100%; margin-bottom:20px;'><tr>";
|
||||
$sc_style['CONTENT_CONTENT_TABLE_INFO_PRE']['post'] = "";
|
||||
@ -90,28 +82,26 @@ $sc_style['CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA']['post'] = "</td>";
|
||||
|
||||
$CONTENT_CONTENT_TABLE = "<table class='fborder' cellpadding='0' cellspacing='0' style='width:100%;'><tr><td>
|
||||
<div style='clear:both;'>
|
||||
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE}
|
||||
{CONTENT_CONTENT_TABLE_ICON}
|
||||
{CM_ICON|content}
|
||||
{CONTENT_CONTENT_TABLE_INFO_PRE_HEADDATA}
|
||||
{CONTENT_CONTENT_TABLE_SUBHEADING}
|
||||
{CONTENT_CONTENT_TABLE_DATE} {CONTENT_CONTENT_TABLE_AUTHORDETAILS} {CONTENT_CONTENT_TABLE_EPICONS} {CONTENT_CONTENT_TABLE_EDITICON} {CONTENT_CONTENT_TABLE_PARENT} {CONTENT_CONTENT_TABLE_COMMENT} {CONTENT_CONTENT_TABLE_SCORE} {CONTENT_CONTENT_TABLE_REFER}
|
||||
{CONTENT_CONTENT_TABLE_RATING}
|
||||
{CONTENT_CONTENT_TABLE_FILE}
|
||||
{CM_SUBHEADING|content}
|
||||
{CM_DATE|content} {CM_AUTHOR|content} {CM_EPICONS|content} {CM_EDITICON|content} {CM_PARENT|content} {CM_COMMENT|content} {CM_SCORE|content} {CM_REFER|content}
|
||||
{CM_RATING|content}
|
||||
{CM_FILE|content}
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST_HEADDATA}
|
||||
{CONTENT_CONTENT_TABLE_INFO_POST}
|
||||
<div style='clear:both;'><br /></div>
|
||||
<table class='fborder' cellpadding='0' cellspacing='0' style='width:100%;'><tr><td class='forumheader3'>
|
||||
{CONTENT_CONTENT_TABLE_IMAGES}
|
||||
{CONTENT_CONTENT_TABLE_SUMMARY}
|
||||
{CONTENT_CONTENT_TABLE_TEXT}
|
||||
{CM_IMAGES|content}
|
||||
{CM_SUMMARY|content}
|
||||
{CM_TEXT|content}
|
||||
{CONTENT_CONTENT_TABLE_CUSTOM_TAGS}
|
||||
{CONTENT_CONTENT_TABLE_PAGENAMES}
|
||||
{CONTENT_CONTENT_TABLE_PREV_PAGE}{CONTENT_CONTENT_TABLE_NEXT_PAGE}
|
||||
</td></tr></table>
|
||||
</div>
|
||||
</td></tr></table>\n";
|
||||
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
$CONTENT_CONTENT_TABLE_CUSTOM_START = "<table style='width:100%;margin-left:0;padding-left:0;' cellspacing='0' cellpadding='0' >";
|
||||
|
137
e107_plugins/content/templates/default/content_menu_template.php
Normal file
137
e107_plugins/content/templates/default/content_menu_template.php
Normal file
@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_menu_template.php,v $
|
||||
| $Revision: 1.1 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
//##### MENU TEMPLATE --------------------------------------------------
|
||||
|
||||
$sc_style['CM_MENU_SEARCH']['pre'] = "";
|
||||
$sc_style['CM_MENU_SEARCH']['post'] = "";
|
||||
|
||||
$sc_style['CM_MENU_SELECT']['pre'] = "";
|
||||
$sc_style['CM_MENU_SELECT']['post'] = "";
|
||||
|
||||
$sc_style['CM_MENU_ORDER']['pre'] = "";
|
||||
$sc_style['CM_MENU_ORDER']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLCAT']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLCAT']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLAUTHOR']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLAUTHOR']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLITEM']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWALLITEM']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPRATED']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPRATED']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPSCORE']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWTOPSCORE']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWRECENT']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWRECENT']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_LINKS_VIEWSUBMIT']['pre'] = "";
|
||||
$sc_style['CM_MENU_LINKS_VIEWSUBMIT']['post'] = "<br />";
|
||||
|
||||
if(!isset($CONTENT_MENU)){
|
||||
$CONTENT_MENU = "
|
||||
{CM_MENU_SEARCH}
|
||||
{CM_MENU_SELECT}
|
||||
{CM_MENU_ORDER}
|
||||
{CM_MENU_LINKCAPTION}
|
||||
{CM_MENU_LINKS_VIEWALLCAT}
|
||||
{CM_MENU_LINKS_VIEWALLAUTHOR}
|
||||
{CM_MENU_LINKS_VIEWALLITEM}
|
||||
{CM_MENU_LINKS_VIEWTOPRATED}
|
||||
{CM_MENU_LINKS_VIEWTOPSCORE}
|
||||
{CM_MENU_LINKS_VIEWRECENT}
|
||||
{CM_MENU_LINKS_VIEWSUBMIT}
|
||||
|
||||
{CMT_CATEGORY}
|
||||
{CMT_RECENT}";
|
||||
}
|
||||
|
||||
//##### CATEGORY LIST --------------------------------------------------
|
||||
|
||||
$sc_style['CM_MENU_CATEGORY_ICON']['pre'] = "<td style='width:1%; white-space:nowrap; vertical-align:top; padding-right:5px;'>";
|
||||
$sc_style['CM_MENU_CATEGORY_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_MENU_CATEGORY_COUNT']['pre'] = " <span class='smalltext'>(";
|
||||
$sc_style['CM_MENU_CATEGORY_COUNT']['post'] = ")</span>";
|
||||
|
||||
if(!isset($CONTENT_MENU_CATEGORY_START)){
|
||||
$CONTENT_MENU_CATEGORY_START = "<br />{CM_MENU_CATEGORY_CAPTION}<br />";
|
||||
}
|
||||
|
||||
if(!isset($CONTENT_MENU_CATEGORY_TABLE)){
|
||||
$CONTENT_MENU_CATEGORY_TABLE = "
|
||||
<table style='width:100%; text-align:left; border:0;' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
{CM_MENU_CATEGORY_ICON}
|
||||
<td colspan='2'>{CM_MENU_CATEGORY_HEADING} {CM_MENU_CATEGORY_COUNT}</td>
|
||||
</tr>
|
||||
</table>";
|
||||
}
|
||||
|
||||
if(!isset($CONTENT_MENU_CATEGORY_END)){
|
||||
$CONTENT_MENU_CATEGORY_END = "";
|
||||
}
|
||||
|
||||
//##### RECENT --------------------------------------------------
|
||||
|
||||
$sc_style['CM_MENU_RECENT_ICON']['pre'] = "<td style='width:1%; white-space:nowrap; vertical-align:top; padding-right:5px;'>";
|
||||
$sc_style['CM_MENU_RECENT_ICON']['post'] = "</td>";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_HEADING']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_HEADING']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_DATE']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_DATE']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_AUTHOR']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_AUTHOR']['post'] = "<br />";
|
||||
|
||||
$sc_style['CM_MENU_RECENT_SUBHEADING']['pre'] = "";
|
||||
$sc_style['CM_MENU_RECENT_SUBHEADING']['post'] = "<br />";
|
||||
|
||||
if(!isset($CONTENT_MENU_RECENT_START)){
|
||||
$CONTENT_MENU_RECENT_START = "<br />{CM_MENU_RECENT_CAPTION}<br />";
|
||||
}
|
||||
if(!isset($CONTENT_MENU_RECENT_TABLE)){
|
||||
$CONTENT_MENU_RECENT_TABLE = "
|
||||
<table style='width:100%; text-align:left; border:0; margin-bottom:10px;' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
{CM_MENU_RECENT_ICON}
|
||||
<td style='width:99%; vertical-align:top;'>
|
||||
{CM_MENU_RECENT_HEADING}
|
||||
{CM_MENU_RECENT_DATE}
|
||||
{CM_MENU_RECENT_AUTHOR}
|
||||
{CM_MENU_RECENT_SUBHEADING}
|
||||
</td>
|
||||
</tr>
|
||||
</table>";
|
||||
}
|
||||
if(!isset($CONTENT_MENU_RECENT_END)){
|
||||
$CONTENT_MENU_RECENT_END = "";
|
||||
}
|
||||
|
||||
// ##### ----------------------------------------------------------------------
|
||||
|
||||
?>
|
@ -11,43 +11,41 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_recent_template.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-03-01 09:40:39 $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
// ##### CONTENT RECENT LIST --------------------------------------------------
|
||||
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_ICON']['pre'] = "<td class='forumheader3' rowspan='7' style='vertical-align:top; width:10%; white-space:nowrap; padding-right:10px;'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_ICON|recent']['pre'] = "<td class='forumheader3' rowspan='7' style='vertical-align:top; width:10%; white-space:nowrap; padding-right:10px;'>";
|
||||
$sc_style['CM_ICON|recent']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_DATE']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CONTENT_RECENT_TABLE_DATE']['post'] = "";
|
||||
$sc_style['CM_DATE|recent']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CM_DATE|recent']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_PARENT']['pre'] = CONTENT_LAN_9." ";
|
||||
$sc_style['CONTENT_RECENT_TABLE_PARENT']['post'] = "";
|
||||
$sc_style['CM_PARENT|recent']['pre'] = CONTENT_LAN_9." ";
|
||||
$sc_style['CM_PARENT|recent']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_REFER']['pre'] = " (".CONTENT_LAN_44." ";
|
||||
$sc_style['CONTENT_RECENT_TABLE_REFER']['post'] = ")";
|
||||
$sc_style['CM_REFER|recent']['pre'] = " (".CONTENT_LAN_44." ";
|
||||
$sc_style['CM_REFER|recent']['post'] = ")";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_AUTHORDETAILS']['pre'] = CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_RECENT_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
$sc_style['CM_AUTHOR|recent']['pre'] = CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|recent']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_SUBHEADING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_SUBHEADING']['post'] = "</td></tr>";
|
||||
$sc_style['CM_SUBHEADING|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_SUMMARY']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_SUMMARY']['post'] = "</td></tr>";
|
||||
$sc_style['CM_SUMMARY|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUMMARY|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_TEXT']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_TEXT']['post'] = "</td></tr>";
|
||||
$sc_style['CM_TEXT|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_RATING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_RATING']['post'] = "</td></tr>";
|
||||
$sc_style['CM_RATING|recent']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_RATING|recent']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_RECENT_TABLE_INFOPRE']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_RECENT_TABLE_INFOPRE']['post'] = "";
|
||||
@ -62,18 +60,18 @@ if(!isset($CONTENT_RECENT_TABLE)){
|
||||
$CONTENT_RECENT_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left;margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CONTENT_RECENT_TABLE_ICON}
|
||||
<td class='fcaption'>{CONTENT_RECENT_TABLE_HEADING} {CONTENT_RECENT_TABLE_REFER}</td>
|
||||
{CM_ICON|recent}
|
||||
<td class='fcaption'>{CM_HEADING|recent} {CM_REFER|recent}</td>
|
||||
</tr>
|
||||
{CONTENT_RECENT_TABLE_SUBHEADING}
|
||||
{CM_SUBHEADING|recent}
|
||||
|
||||
{CONTENT_RECENT_TABLE_INFOPRE}
|
||||
{CONTENT_RECENT_TABLE_DATE} {CONTENT_RECENT_TABLE_AUTHORDETAILS} {CONTENT_RECENT_TABLE_PARENT} {CONTENT_RECENT_TABLE_EPICONS} {CONTENT_RECENT_TABLE_EDITICON}
|
||||
{CM_DATE|recent} {CM_AUTHOR|recent} {CM_PARENT|recent} {CM_EPICONS|recent} {CM_EDITICON|recent}
|
||||
{CONTENT_RECENT_TABLE_INFOPOST}
|
||||
|
||||
{CONTENT_RECENT_TABLE_SUMMARY}
|
||||
{CONTENT_RECENT_TABLE_TEXT}
|
||||
{CONTENT_RECENT_TABLE_RATING}
|
||||
{CM_SUMMARY|recent}
|
||||
{CM_TEXT|recent}
|
||||
{CM_RATING|recent}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_RECENT_TABLE_END)){
|
||||
|
@ -11,25 +11,25 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_score_template.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:09 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_SCORE_TABLE_ICON']['pre'] = "<td class='forumheader3' rowspan='3' style='width:5%; white-space:nowrap;'>";
|
||||
$sc_style['CONTENT_SCORE_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_ICON|score']['pre'] = "<td class='forumheader3' rowspan='3' style='width:5%; white-space:nowrap;'>";
|
||||
$sc_style['CM_ICON|score']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_SCORE_TABLE_HEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_SCORE_TABLE_HEADING']['post'] = "";
|
||||
$sc_style['CM_HEADING|score']['pre'] = "";
|
||||
$sc_style['CM_HEADING|score']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_SCORE_TABLE_AUTHOR']['pre'] = "<tr><td class='forumheader3' colspan='2'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_SCORE_TABLE_AUTHOR']['post'] = "</td></tr>";
|
||||
$sc_style['CM_AUTHOR|score']['pre'] = "<tr><td class='forumheader3' colspan='2'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|score']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_SCORE_TABLE_SCORE']['pre'] = "<td class='fcaption' style='width:20%; white-space:nowrap; text-align:right;'>";
|
||||
$sc_style['CONTENT_SCORE_TABLE_SCORE']['post'] = "</td>";
|
||||
$sc_style['CM_SCORE|score']['pre'] = "<td class='fcaption' style='width:20%; white-space:nowrap; text-align:right;'>";
|
||||
$sc_style['CM_SCORE|score']['post'] = "</td>";
|
||||
|
||||
// ##### CONTENT TOP --------------------------------------------------
|
||||
if(!isset($CONTENT_SCORE_TABLE_START)){
|
||||
@ -39,11 +39,11 @@ if(!isset($CONTENT_SCORE_TABLE)){
|
||||
$CONTENT_SCORE_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CONTENT_SCORE_TABLE_ICON}
|
||||
<td class='fcaption'>{CONTENT_SCORE_TABLE_HEADING}</td>
|
||||
{CONTENT_SCORE_TABLE_SCORE}
|
||||
{CM_ICON|score}
|
||||
<td class='fcaption'>{CM_HEADING|score}</td>
|
||||
{CM_SCORE|score}
|
||||
</tr>
|
||||
{CONTENT_SCORE_TABLE_AUTHOR}
|
||||
{CM_AUTHOR|score}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_SCORE_TABLE_END)){
|
||||
|
@ -11,31 +11,31 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_searchresult_template.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:09 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_ICON']['pre'] = "<td class='forumheader3'>";
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_ICON|searchresult']['pre'] = "<td class='forumheader3'>";
|
||||
$sc_style['CM_ICON|searchresult']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_HEADING']['pre'] = "<tr><td class='fcaption'>";
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_HEADING']['post'] = "</td></tr>";
|
||||
$sc_style['CM_HEADING|searchresult']['pre'] = "<tr><td class='fcaption'>";
|
||||
$sc_style['CM_HEADING|searchresult']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_SUBHEADING']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_SUBHEADING']['post'] = "</td></tr>";
|
||||
$sc_style['CM_SUBHEADING|searchresult']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_SUBHEADING|searchresult']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_DATE']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_DATE']['post'] = "";
|
||||
$sc_style['CM_DATE|searchresult']['pre'] = CONTENT_LAN_10." ";
|
||||
$sc_style['CM_DATE|searchresult']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_AUTHORDETAILS']['pre'] = CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_AUTHORDETAILS']['post'] = "";
|
||||
$sc_style['CM_AUTHOR|searchresult']['pre'] = CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|searchresult']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_TEXT']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CONTENT_SEARCHRESULT_TABLE_TEXT']['post'] = "</td></tr>";
|
||||
$sc_style['CM_TEXT|searchresult']['pre'] = "<tr><td class='forumheader3'>";
|
||||
$sc_style['CM_TEXT|searchresult']['post'] = "</td></tr>";
|
||||
|
||||
// ##### CONTENT SEARCHRESULT LIST --------------------------------------------------
|
||||
if(!isset($CONTENT_SEARCHRESULT_TABLE_START)){
|
||||
@ -45,13 +45,13 @@ if(!isset($CONTENT_SEARCHRESULT_TABLE)){
|
||||
$CONTENT_SEARCHRESULT_TABLE .= "
|
||||
<table class='fborder' style='width:98%; text-align:left;margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CONTENT_SEARCHRESULT_TABLE_ICON}
|
||||
{CM_ICON|searchresult}
|
||||
<td>
|
||||
<table style='width:100%;' cellpadding='0' cellspacing='0'>
|
||||
{CONTENT_SEARCHRESULT_TABLE_HEADING}
|
||||
{CONTENT_SEARCHRESULT_TABLE_SUBHEADING}
|
||||
<tr><td class='forumheader3'>{CONTENT_SEARCHRESULT_TABLE_AUTHORDETAILS} {CONTENT_SEARCHRESULT_TABLE_DATE}</td></tr>
|
||||
{CONTENT_SEARCHRESULT_TABLE_TEXT}
|
||||
{CM_HEADING|searchresult}
|
||||
{CM_SUBHEADING|searchresult}
|
||||
<tr><td class='forumheader3'>{CM_AUTHOR|searchresult} {CM_DATE|searchresult}</td></tr>
|
||||
{CM_TEXT|searchresult}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -11,25 +11,25 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/templates/default/content_top_template.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:09 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-04-10 14:34:39 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
global $sc_style, $content_shortcodes;
|
||||
|
||||
$sc_style['CONTENT_TOP_TABLE_ICON']['pre'] = "<td class='forumheader3' rowspan='3' style='width:5%; white-space:nowrap;'>";
|
||||
$sc_style['CONTENT_TOP_TABLE_ICON']['post'] = "</td>";
|
||||
$sc_style['CM_ICON|top']['pre'] = "<td class='forumheader3' rowspan='3' style='width:5%; white-space:nowrap;'>";
|
||||
$sc_style['CM_ICON|top']['post'] = "</td>";
|
||||
|
||||
$sc_style['CONTENT_TOP_TABLE_HEADING']['pre'] = "";
|
||||
$sc_style['CONTENT_TOP_TABLE_HEADING']['post'] = "";
|
||||
$sc_style['CM_HEADING|top']['pre'] = "";
|
||||
$sc_style['CM_HEADING|top']['post'] = "";
|
||||
|
||||
$sc_style['CONTENT_TOP_TABLE_AUTHOR']['pre'] = "<tr><td class='forumheader3' colspan='2'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CONTENT_TOP_TABLE_AUTHOR']['post'] = "</td></tr>";
|
||||
$sc_style['CM_AUTHOR|top']['pre'] = "<tr><td class='forumheader3' colspan='2'>".CONTENT_LAN_11." ";
|
||||
$sc_style['CM_AUTHOR|top']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['CONTENT_TOP_TABLE_RATING']['pre'] = "<td class='fcaption' style='width:20%; white-space:nowrap; text-align:right;'>";
|
||||
$sc_style['CONTENT_TOP_TABLE_RATING']['post'] = "</td>";
|
||||
$sc_style['CM_RATING|top']['pre'] = "<td class='fcaption' style='width:20%; white-space:nowrap; text-align:right;'>";
|
||||
$sc_style['CM_RATING|top']['post'] = "</td>";
|
||||
|
||||
// ##### CONTENT TOP --------------------------------------------------
|
||||
if(!isset($CONTENT_TOP_TABLE_START)){
|
||||
@ -39,11 +39,11 @@ if(!isset($CONTENT_TOP_TABLE)){
|
||||
$CONTENT_TOP_TABLE = "
|
||||
<table class='fborder' style='width:98%; text-align:left; margin-bottom:5px;'>
|
||||
<tr>
|
||||
{CONTENT_TOP_TABLE_ICON}
|
||||
<td class='fcaption'>{CONTENT_TOP_TABLE_HEADING}</td>
|
||||
{CONTENT_TOP_TABLE_RATING}
|
||||
{CM_ICON|top}
|
||||
<td class='fcaption'>{CM_HEADING|top}</td>
|
||||
{CM_RATING|top}
|
||||
</tr>
|
||||
{CONTENT_TOP_TABLE_AUTHOR}
|
||||
{CM_AUTHOR|top}
|
||||
</table>\n";
|
||||
}
|
||||
if(!isset($CONTENT_TOP_TABLE_END)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user