mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
content: templated the menu, recoded shortcodes, several minor improvements
This commit is contained in:
@@ -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']);
|
||||
|
Reference in New Issue
Block a user