echo strtr(ob_get_clean(), [
'{%openside%}' => open_side($locale['UM096'].$userdata['user_name']),
'{%closeside%}' => close_side(),
'{%user_avatar%}' => $info['user_avatar'],
'{%user_name%}' => $info['user_name'],
'{%user_level%}' => getuserlevel($info['user_level']),
'{%user_reputation_icon%}' => $info['user_reputation_icon'],
'{%user_reputation%}' => $info['user_reputation'],
'{%user_pm_notice%}' => ($msg_count ? "<a href='".$info['user_pm_link']."' title='".$info['user_pm_title']."'><i class='fa fa-envelope-o'></i> $msg_count</a>" : ''),
'{%user_pm_progressbar%}' => $pm_progress,
'{%user_nav_title%}' => $locale['UM097'],
'{%edit_profile_link%}' => BASEDIR."edit_profile.php",
'{%edit_profile_title%}' => $locale['UM080'],
'{%pm_link%}' => BASEDIR."messages.php",
'{%pm_title%}' => $locale['UM081'],
'{%track_link%}' => $forum_exists ? INFUSIONS."forum_threads_list_panel/my_tracked_threads.php" : '',
'{%track_title%}' => $forum_exists ? $locale['UM088'] : '',
'{%member_link%}' => BASEDIR."members.php",
'{%member_title%}' => $locale['UM082'],
'{%acp_link%}' => (iADMIN ? ADMIN."index.php".fusion_get_aidlink()."&pagenum=0" : ''),
'{%acp_title%}' => (iADMIN ? $locale['UM083'] : ''),
'{%logout_link%}' => BASEDIR."index.php?logout=yes",
'{%logout_title%}' => $locale['UM084'],
]);
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo "<div class='floatfix'>".$info['cat_image'].$news."</div>
<div class='news-footer'>
".newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id'])."
</div>\n";
closetable();
}
/**
* Version 9 - Atlantis
* @param string $subject - not used accessible
* @param string $news - not used accessible
* @param array $info - not used but accessible
*
* @return string
*/
function render_news($subject = '', $news = '', $info = array()) {
$locale = fusion_get_locale();
$html = open_table('{%subject%}')."
<div class='floatfix'>{%cat_image%} {%news%}</div>
<div class='news-footer'>
{%news_poster%}
</div>
".close_table();
return (string) $html;
}
$template = render_news($subject, $news, $info);
echo strtr( $template , array(
'{%subject%'}' => "News Example Title",
'{%cat_image%}' => "<img src='.......'>",
'{%news%}' => lorem_ipsum(1200),
'{%news_poster%}' => profile_link(1, 'Admin', 0),
));
Category Forum
Content Administration - 9Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions