mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 17:19:56 +02:00
Case cleanup toHtml() should be toHTML()
This commit is contained in:
@@ -55,7 +55,7 @@ class _blank_front
|
||||
// $sc->setVars($value); // if shortcodes are enabled.
|
||||
// $text .= $tp->parseTemplate($template['item'],true, $sc);
|
||||
|
||||
$text .= $tp->toHtml($value['blank_type'])."<br />";
|
||||
$text .= $tp->toHTML($value['blank_type'])."<br />";
|
||||
}
|
||||
|
||||
// $text .= $tp->parseTemplate($template['end'],true, $sc);
|
||||
|
@@ -37,7 +37,7 @@ class _blank_parse
|
||||
* @param string $context Current context ie. OLDDEFAULT | BODY | TITLE | SUMMARY | DESCRIPTION | WYSIWYG etc.
|
||||
* @return string
|
||||
*/
|
||||
function toHtml($text, $context='')
|
||||
function toHTML($text, $context='')
|
||||
{
|
||||
$text = str_replace('****', '<hr>', $text);
|
||||
return $text;
|
||||
|
@@ -83,7 +83,7 @@ class _blank_sitelink // include plugin-folder in the name.
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$sublinks[] = array(
|
||||
'link_name' => $tp->toHtml($row['blank_name'],'','TITLE'),
|
||||
'link_name' => $tp->toHTML($row['blank_name'],'','TITLE'),
|
||||
'link_url' => e107::url('_blank', 'other', $row),
|
||||
'link_description' => '',
|
||||
'link_button' => $row['blank_icon'],
|
||||
|
@@ -94,7 +94,7 @@ class banner_shortcodes extends e_shortcode
|
||||
|
||||
if(!empty($row['banner_description']))
|
||||
{
|
||||
$text .= "<div class='e-banner-description'>".$start.$tp->toHtml($row['banner_description'], true).$end. "</div>";
|
||||
$text .= "<div class='e-banner-description'>".$start.$tp->toHTML($row['banner_description'], true).$end. "</div>";
|
||||
}
|
||||
|
||||
return $text;
|
||||
|
@@ -55,7 +55,7 @@ class comment_menu_shortcodes extends e_shortcode
|
||||
$text = $this->var['comment_title'];
|
||||
}
|
||||
|
||||
return e107::getParser()->toHtml($text,false,'TITLE');
|
||||
return e107::getParser()->toHTML($text,false,'TITLE');
|
||||
}
|
||||
|
||||
function sc_cm_url_pre()
|
||||
|
@@ -72,7 +72,7 @@ class download_search extends e_search // include plugin-folder in the name.
|
||||
$datestamp = $tp->toDate($row['download_datestamp'], "long");
|
||||
|
||||
$res['link'] = e107::url('download', 'item', $row);
|
||||
$res['pre_title'] = $tp->toHtml($row['download_category_name'],false,'TITLE_PLAIN')." | ";
|
||||
$res['pre_title'] = $tp->toHTML($row['download_category_name'],false,'TITLE_PLAIN')." | ";
|
||||
$res['title'] = $row['download_name'];
|
||||
$res['pre_summary'] = "<div class='smalltext'><a href='download.php'>".LAN_197."</a> -> <a href='download.php?list.".$row['download_category_id']."'>".$row['download_category_name']."</a></div>";
|
||||
$res['summary'] = $row['download_description'];
|
||||
|
@@ -65,7 +65,7 @@ class download_sitelink // include plugin-folder in the name.
|
||||
}
|
||||
|
||||
$sublinks[] = array(
|
||||
'link_name' => $tp->toHtml($row['download_category_name'],'','TITLE'),
|
||||
'link_name' => $tp->toHTML($row['download_category_name'],'','TITLE'),
|
||||
'link_url' => e107::url('download', 'category', $row),
|
||||
'link_description' => '',
|
||||
'link_button' => $row['download_category_icon'],
|
||||
|
@@ -370,7 +370,7 @@ class download
|
||||
$tp = e107::getParser();
|
||||
|
||||
$metaImage = $tp->thumbUrl($row['download_image'], array('w'=>500), null, true);
|
||||
$metaDescription = $tp->toHtml($row['download_description'],true);
|
||||
$metaDescription = $tp->toHTML($row['download_description'],true);
|
||||
|
||||
e107::meta('description', $tp->toText($metaDescription));
|
||||
e107::meta('keywords', $row['download_keywords']);
|
||||
|
@@ -52,7 +52,7 @@ class faqs_sitelink // include plugin-folder in the name.
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$sublinks[] = array(
|
||||
'link_name' => $tp->toHtml($row['faq_info_title'],'','TITLE'),
|
||||
'link_name' => $tp->toHTML($row['faq_info_title'],'','TITLE'),
|
||||
'link_url' => e107::url('faqs', 'category', $row),
|
||||
'link_description' => $row['faq_info_about'],
|
||||
'link_button' => $row['faq_info_icon'],
|
||||
|
@@ -250,7 +250,7 @@ class faq
|
||||
|
||||
if($sql->insert('faqs',$insert))
|
||||
{
|
||||
$message = !empty($this->pref['submit_question_acknowledgement']) ? e107::getParser()->toHtml($this->pref['submit_question_acknowledgement'],true, 'BODY') : LAN_FAQS_004;
|
||||
$message = !empty($this->pref['submit_question_acknowledgement']) ? e107::getParser()->toHTML($this->pref['submit_question_acknowledgement'],true, 'BODY') : LAN_FAQS_004;
|
||||
e107::getMessage()->addSuccess($message);
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ class faq
|
||||
|
||||
if (!empty($this->pref['page_title'][e_LANGUAGE]))
|
||||
{
|
||||
$ret['caption'] = e107::getParser()->toHtml($this->pref['page_title'][e_LANGUAGE], true, 'TITLE');
|
||||
$ret['caption'] = e107::getParser()->toHTML($this->pref['page_title'][e_LANGUAGE], true, 'TITLE');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -233,7 +233,7 @@ class faqs_shortcodes extends e_shortcode
|
||||
|
||||
if(!empty($customCaption))
|
||||
{
|
||||
return e107::getParser()->toHtml($customCaption,true);
|
||||
return e107::getParser()->toHTML($customCaption,true);
|
||||
}
|
||||
|
||||
return LAN_PLUGIN_FAQS_FRONT_NAME;
|
||||
@@ -346,7 +346,7 @@ class faqs_shortcodes extends e_shortcode
|
||||
|
||||
foreach($list as $row)
|
||||
{
|
||||
$text .= "<li>".$tp->toHtml($row['faq_question'],true)."</li>";
|
||||
$text .= "<li>".$tp->toHTML($row['faq_question'],true)."</li>";
|
||||
}
|
||||
|
||||
$text .= "</ul>";
|
||||
|
@@ -950,7 +950,7 @@ class forum_post_handler
|
||||
<a class='pull-right btn btn-xs btn-primary e-expandit' href='#post-info'>".LAN_FORUM_2026."</a>
|
||||
</div>
|
||||
<div id='post-info' class='e-hideme alert alert-block alert-danger'>
|
||||
".$tp->toHtml($this->data['post_entry'],true)."
|
||||
".$tp->toHTML($this->data['post_entry'],true)."
|
||||
</div>
|
||||
<div class='form-group' >
|
||||
<div class='col-md-12'>
|
||||
@@ -975,7 +975,7 @@ class forum_post_handler
|
||||
<td style='width:50%'>
|
||||
".LAN_FORUM_2025.': '.$thread_name." <a class='e-expandit' href='#post-info'><span class='smalltext'>".LAN_FORUM_2026."</span></a>
|
||||
<div id='post-info' class='e-hideme alert alert-block alert-danger'>
|
||||
".$tp->toHtml($this->data['post_entry'],true)."
|
||||
".$tp->toHTML($this->data['post_entry'],true)."
|
||||
</div>
|
||||
</td>
|
||||
<td style='text-align:center;width:50%'></td>
|
||||
|
@@ -1056,7 +1056,7 @@ class e107ForumThread
|
||||
<a class='pull-right btn btn-xs btn-primary e-expandit' href='#post-info'>View Post</a>
|
||||
</div>
|
||||
<div id='post-info' class='e-hideme alert alert-block alert-danger'>
|
||||
".$tp->toHtml($postInfo['post_entry'],true)."
|
||||
".$tp->toHTML($postInfo['post_entry'],true)."
|
||||
</div>
|
||||
<div class='form-group' >
|
||||
<div class='col-md-12'>
|
||||
|
@@ -199,7 +199,7 @@ class plugin_gallery_index_controller extends eControllerFront
|
||||
$orderBy = varset($plugPrefs['orderby'], 'media_id DESC');
|
||||
|
||||
$list = e107::getMedia()->getImages($cid, $sc->from, $sc->amount, null, $orderBy);
|
||||
$catname = $tp->toHtml($this->catList[$cid]['media_cat_title'], false, 'defs');
|
||||
$catname = $tp->toHTML($this->catList[$cid]['media_cat_title'], false, 'defs');
|
||||
$cat = $this->catList[$cid];
|
||||
|
||||
$inner = "";
|
||||
|
@@ -150,10 +150,10 @@ class gallery_shortcodes extends e_shortcode
|
||||
$url = e107::getUrl()->create('gallery/index/list', $this->var);
|
||||
if($parm == 'title')
|
||||
{
|
||||
return $tp->toHtml($this->var['media_cat_title'], false, 'TITLE');
|
||||
return $tp->toHTML($this->var['media_cat_title'], false, 'TITLE');
|
||||
}
|
||||
$text = "<a href='" . $url . "'>";
|
||||
$text .= $tp->toHtml($this->var['media_cat_title'], false, 'TITLE');
|
||||
$text .= $tp->toHTML($this->var['media_cat_title'], false, 'TITLE');
|
||||
$text .= "</a>";
|
||||
return $text;
|
||||
}
|
||||
|
@@ -140,7 +140,7 @@ class gallery
|
||||
$orderBy = varset($plugPrefs['orderby'], 'media_id DESC');
|
||||
|
||||
$list = e107::getMedia()->getImages($cat, $sc->from, $sc->amount, null, $orderBy);
|
||||
$catname = $tp->toHtml($this->catList[$cat]['media_cat_title'], false, 'defs');
|
||||
$catname = $tp->toHTML($this->catList[$cat]['media_cat_title'], false, 'defs');
|
||||
|
||||
$inner = "";
|
||||
|
||||
|
@@ -43,7 +43,7 @@ class gallery_shortcodes extends e_shortcode
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
$text = "<a href='".e_SELF."?cat=".$this->var['media_cat_category']."'>";
|
||||
$text .= $tp->toHtml($this->var['media_cat_title']);
|
||||
$text .= $tp->toHTML($this->var['media_cat_title']);
|
||||
$text .= "</a>";
|
||||
return $text;
|
||||
}
|
||||
|
@@ -45,8 +45,8 @@ $rc->mode = "new_menu";
|
||||
$text = $rc->displayMenu();
|
||||
|
||||
$caption = vartrue($rc->list_pref[$rc->mode."_caption"], LIST_MENU_1);
|
||||
$caption = e107::getParser()->toHtml($caption, FALSE, 'USER_TITLE');
|
||||
$text = e107::getParser()->toHtml($text, TRUE, 'USER_BODY');
|
||||
$caption = e107::getParser()->toHTML($caption, FALSE, 'USER_TITLE');
|
||||
$text = e107::getParser()->toHTML($text, TRUE, 'USER_BODY');
|
||||
e107::getRender()->tablerender($caption, $text, 'list_new');
|
||||
|
||||
unset($caption);
|
||||
|
@@ -45,8 +45,8 @@ $rc->mode = "recent_menu";
|
||||
$text = $rc->displayMenu();
|
||||
|
||||
$caption = vartrue($rc->list_pref[$rc->mode."_caption"], LIST_MENU_1);
|
||||
$caption = $rc->e107->tp->toHtml($caption, FALSE, 'USER_TITLE');
|
||||
$text = $rc->e107->tp->toHtml($text, TRUE, 'USER_BODY');
|
||||
$caption = $rc->e107->tp->toHTML($caption, FALSE, 'USER_TITLE');
|
||||
$text = $rc->e107->tp->toHTML($text, TRUE, 'USER_BODY');
|
||||
$rc->e107->ns->tablerender($caption, $text, 'list_recent');
|
||||
unset($caption);
|
||||
unset($text);
|
||||
|
@@ -127,12 +127,12 @@ class news_rss // plugin-folder + '_rss'
|
||||
|
||||
if($row['news_summary'] && $this->summaryDescription == true)
|
||||
{
|
||||
$text = $tp->toHtml($row['news_summary'],true);
|
||||
$text = $tp->toHTML($row['news_summary'],true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$text= $tp->toHtml($row['news_body'],true). "<br />".$tp->toHtml($row['news_extended'], true);
|
||||
$text= $tp->toHTML($row['news_body'],true). "<br />".$tp->toHTML($row['news_extended'], true);
|
||||
}
|
||||
|
||||
if($this->showImages == true && !empty($row['news_thumbnail']))
|
||||
|
@@ -73,7 +73,7 @@ class news_search extends e_search // include plugin-folder in the name.
|
||||
$res = array();
|
||||
|
||||
$res['link'] = e107::getUrl()->create('news/view/item', $row);//$row['news_allow_comments'] ? "news.php?item.".$row['news_id'] : "comment.php?comment.news.".$row['news_id'];
|
||||
$res['pre_title'] = $tp->toHtml($row['category_name'],false,'TITLE')." | ";
|
||||
$res['pre_title'] = $tp->toHTML($row['category_name'],false,'TITLE')." | ";
|
||||
$res['title'] = $row['news_title'];
|
||||
$res['summary'] = $row['news_body'].' '.$row['news_extended'];
|
||||
$res['detail'] = LAN_SEARCH_3.$tp->toDate($row['news_datestamp'], "long");
|
||||
|
@@ -473,7 +473,7 @@ class news_front
|
||||
break;
|
||||
|
||||
case "list":
|
||||
$title = $tp->toHtml($news['category_name'],false,'TITLE_PLAIN');
|
||||
$title = $tp->toHTML($news['category_name'],false,'TITLE_PLAIN');
|
||||
if(!defined('e_PAGETITLE'))
|
||||
{
|
||||
define('e_PAGETITLE', $title );
|
||||
@@ -599,7 +599,7 @@ class news_front
|
||||
|
||||
if($news['category_name'] && !defined('e_PAGETITLE') && $type == 'cat')
|
||||
{
|
||||
define('e_PAGETITLE', $tp->toHtml($news['category_name'],false,'TITLE_PLAIN'));
|
||||
define('e_PAGETITLE', $tp->toHTML($news['category_name'],false,'TITLE_PLAIN'));
|
||||
}
|
||||
|
||||
if($news['category_meta_keywords'] && !defined('META_KEYWORDS'))
|
||||
|
@@ -86,7 +86,7 @@ foreach($arr as $year=>$val)
|
||||
{
|
||||
$url = e107::getUrl()->create('news/view/item', $row, array('allow' => 'news_sef,news_title,news_id,category_sef,category_name,category_id'));
|
||||
$var = array('ITEM_URL' => $url,
|
||||
'ITEM_TITLE' => $tp->toHtml($row['news_title'],false,'TITLE'),
|
||||
'ITEM_TITLE' => $tp->toHTML($row['news_title'],false,'TITLE'),
|
||||
);
|
||||
$text .= $tp->simpleParse($template['item'], $var);
|
||||
}
|
||||
|
@@ -58,11 +58,11 @@ if(!$OTHERNEWS2_STYLE)
|
||||
{
|
||||
if(isset($parms['caption'][e_LANGUAGE]))
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'][e_LANGUAGE], true,'TITLE');
|
||||
$template['caption'] = e107::getParser()->toHTML($parms['caption'][e_LANGUAGE], true,'TITLE');
|
||||
}
|
||||
else
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'], true,'TITLE');
|
||||
$template['caption'] = e107::getParser()->toHTML($parms['caption'], true,'TITLE');
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ if(!$OTHERNEWS2_STYLE)
|
||||
|
||||
if(!empty($parms['caption']))
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'],true,'TITLE');
|
||||
$template['caption'] = e107::getParser()->toHTML($parms['caption'],true,'TITLE');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -62,7 +62,7 @@ if(!$OTHERNEWS_STYLE)
|
||||
|
||||
if(!empty($parms['caption']))
|
||||
{
|
||||
$template['caption'] = e107::getParser()->toHtml($parms['caption'],true,'TITLE');
|
||||
$template['caption'] = e107::getParser()->toHTML($parms['caption'],true,'TITLE');
|
||||
}
|
||||
|
||||
$caption = "<div class='inline-text'>".$template['caption']." ".$item_selector."</div>";
|
||||
@@ -74,7 +74,7 @@ if(!$OTHERNEWS_STYLE)
|
||||
|
||||
if(!empty($parms['caption']))
|
||||
{
|
||||
$caption = e107::getParser()->toHtml($parms['caption'], true,'TITLE');
|
||||
$caption = e107::getParser()->toHTML($parms['caption'], true,'TITLE');
|
||||
}
|
||||
|
||||
$template['start'] = '';
|
||||
|
@@ -316,7 +316,7 @@ class newsfeedClass
|
||||
// $url = e_PLUGIN_ABS."newsfeed/newsfeed.php?show.".$feed['newsfeed_id'];
|
||||
$url = e107::url('newsfeed','source',$feed);
|
||||
|
||||
$vars['FEEDNAME'] = "<a href='".$url."'>".$tp->toHtml($feed['newsfeed_name'],false,'TITLE')."</a>";
|
||||
$vars['FEEDNAME'] = "<a href='".$url."'>".$tp->toHTML($feed['newsfeed_name'],false,'TITLE')."</a>";
|
||||
$vars['FEEDDESCRIPTION'] = $feed['newsfeed_description'];
|
||||
$vars['FEEDIMAGE'] = $rss['newsfeed_image_link'];
|
||||
$vars['FEEDLANGUAGE'] = $rss['channel']['language'];
|
||||
|
@@ -36,7 +36,7 @@ foreach($data as $row)
|
||||
$sc->setVars($row);
|
||||
|
||||
$sc->setChapter($row['chapter_id']);
|
||||
$title = $tp->toHtml($row['chapter_name'],false,'TITLE'); // Used when tablerender style includes the caption.
|
||||
$title = $tp->toHTML($row['chapter_name'],false,'TITLE'); // Used when tablerender style includes the caption.
|
||||
$body .= $tp->parseTemplate($template['listChapters']['item'], true, $sc);
|
||||
|
||||
// check for $mode == 'page-menu' in tablestyle() if you need a simple 'echo' without rendering styles.
|
||||
|
@@ -120,7 +120,7 @@ class page_search extends e_search // include plugin-folder in the name.
|
||||
else // Page with book/chapter
|
||||
{
|
||||
$route = 'page/view/index';
|
||||
$pre = $tp->toHtml($this->getName($book),false,'TITLE').' » '. $tp->toHtml($this->getName($row['page_chapter']),false,'TITLE'). " | ";
|
||||
$pre = $tp->toHTML($this->getName($book),false,'TITLE').' » '. $tp->toHTML($this->getName($row['page_chapter']),false,'TITLE'). " | ";
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ class page_search extends e_search // include plugin-folder in the name.
|
||||
|
||||
$res['link'] = e107::getUrl()->create($route, $row, array('allow' => 'page_sef,page_title,page_id,chapter_sef,book_sef'));
|
||||
$res['pre_title'] = $pre;
|
||||
$res['title'] = $tp->toHtml($row['page_title'], false, 'TITLE');
|
||||
$res['title'] = $tp->toHTML($row['page_title'], false, 'TITLE');
|
||||
$res['summary'] = (!empty($row['page_metadscr'])) ? $row['page_metadscr'] : $row['page_text'];
|
||||
$res['detail'] = LAN_SEARCH_3.$tp->toDate($row['page_datestamp'], "long");
|
||||
$res['image'] = $row['menu_image'];
|
||||
|
@@ -111,13 +111,13 @@ class page_shortcodes extends e_shortcode
|
||||
|
||||
function sc_page_chapter_name($parm='')
|
||||
{
|
||||
return e107::getParser()->toHtml($this->var['chapter_name']);
|
||||
return e107::getParser()->toHTML($this->var['chapter_name']);
|
||||
}
|
||||
|
||||
|
||||
function sc_page_chapter_description($parm='')
|
||||
{
|
||||
return e107::getParser()->toHtml($this->var['chapter_meta_description'],true);
|
||||
return e107::getParser()->toHTML($this->var['chapter_meta_description'],true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -240,7 +240,7 @@ class page_sitelink // include plugin-folder in the name.
|
||||
$sef['book_sef'] = $this->getSef($row['chapter_parent']);
|
||||
|
||||
$chapters[$id] = array(
|
||||
'link_name' => $tp->toHtml($row['chapter_name'],'','TITLE'),
|
||||
'link_name' => $tp->toHTML($row['chapter_name'],'','TITLE'),
|
||||
'link_url' => e107::getUrl()->create('page/chapter/index', $sef), // 'page.php?ch='.$row['chapter_id'],
|
||||
'link_description' => '',
|
||||
'link_button' => $row['chapter_icon'],
|
||||
|
@@ -15,8 +15,8 @@ $data = $sql->retrieve("SELECT * FROM #page WHERE page_class IN (".USERCLASS_LIS
|
||||
//TODO Use shortcodes and template.
|
||||
foreach($data as $row)
|
||||
{
|
||||
$title = $tp->toHtml($row['page_title'],false,'TITLE');
|
||||
$body = $tp->toHtml($row['page_text'],true,'BODY');
|
||||
$title = $tp->toHTML($row['page_title'],false,'TITLE');
|
||||
$body = $tp->toHTML($row['page_text'],true,'BODY');
|
||||
|
||||
|
||||
$ns->tablerender($title, $body,'page-menu'); // check for $mode == 'page-menu' in tablestyle() if you need a simple 'echo' without rendering styles.
|
||||
|
@@ -132,7 +132,7 @@ if(e_QUERY)
|
||||
$from = $tp->toDate($row['poll_datestamp'], "short");
|
||||
$to = $tp->toDate($row['poll_end_datestamp'], "short");
|
||||
|
||||
$poll_title = $tp->toHtml($row['poll_title'], true, 'TITLE');
|
||||
$poll_title = $tp->toHTML($row['poll_title'], true, 'TITLE');
|
||||
|
||||
$uparams = array('id' => $row['poll_admin_id'], 'name' => $row['user_name']);
|
||||
|
||||
|
@@ -57,7 +57,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
|
||||
$text = str_replace("YYYY", date('Y'), $text);
|
||||
|
||||
return e107::getParser()->toHtml($text, true, 'SUMMARY');
|
||||
return e107::getParser()->toHTML($text, true, 'SUMMARY');
|
||||
}
|
||||
|
||||
|
||||
|
@@ -79,7 +79,7 @@ TEMPL;
|
||||
|
||||
if($_POST['mode'] == 'tohtml')
|
||||
{
|
||||
$html = $this->toHtml($_POST['content']);
|
||||
$html = $this->toHTML($_POST['content']);
|
||||
}
|
||||
|
||||
if($_POST['mode'] == 'tobbcode')
|
||||
@@ -110,7 +110,7 @@ TEMPL;
|
||||
|
||||
|
||||
|
||||
public function toHtml($content)
|
||||
public function toHTML($content)
|
||||
{
|
||||
// global $pref; //XXX faster?
|
||||
$pref = e107::getPref();
|
||||
@@ -135,7 +135,7 @@ TEMPL;
|
||||
$content = nl2br($content, true);
|
||||
}
|
||||
|
||||
$content = $tp->toHtml($content, true, 'WYSIWYG');
|
||||
$content = $tp->toHTML($content, true, 'WYSIWYG');
|
||||
}
|
||||
|
||||
$content = str_replace("{e_BASE}",e_HTTP,$content); // We want {e_BASE} in the final data going to the DB, but not the editor.
|
||||
@@ -166,10 +166,10 @@ TEMPL;
|
||||
{
|
||||
|
||||
// XXX @Cam this breaks new lines, currently we use \n instead [br]
|
||||
//echo $tp->toHtml(str_replace("\n","",$content), true);
|
||||
//echo $tp->toHTML(str_replace("\n","",$content), true);
|
||||
|
||||
$content = str_replace("{e_BASE}",e_HTTP, $content); // We want {e_BASE} in the final data going to the DB, but not the editor.
|
||||
$content = $tp->toHtml($content, true, 'WYSIWYG');
|
||||
$content = $tp->toHTML($content, true, 'WYSIWYG');
|
||||
$content = str_replace(e_MEDIA_IMAGE,"{e_MEDIA_IMAGE}",$content);
|
||||
|
||||
$text = "";
|
||||
|
Reference in New Issue
Block a user