本文整理汇总了PHP中NNText::html_entity_decoder方法的典型用法代码示例。如果您正苦于以下问题:PHP NNText::html_entity_decoder方法的具体用法?PHP NNText::html_entity_decoder怎么用?PHP NNText::html_entity_decoder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NNText
的用法示例。
在下文中一共展示了NNText::html_entity_decoder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
JHtml::stylesheet('nnframework/style.min.css', false, true);
require_once __DIR__ . '/toggler.php';
$toggler = new nnFieldToggler();
$this->value = (int) $this->value;
$label = $this->def('label');
$param_name = $this->def('name');
$noshow = $this->def('noshow', 0);
$showclose = $this->def('showclose', 0);
$html = array();
if ($label) {
$label = NNText::html_entity_decoder(JText::_($label));
$html[] = '</div>';
if (!$noshow) {
$html[] = $toggler->getInput(array('div' => 1, 'param' => 'show_assignments|' . $param_name, 'value' => '1|1,2'));
}
$class = 'well well-small nn_well';
if ($this->value === 1) {
$class .= ' alert-success';
} else {
if ($this->value === 2) {
$class .= ' alert-error';
}
}
$html[] = '<div class="' . $class . '">';
if ($showclose && JFactory::getUser()->authorise('core.admin')) {
$html[] = '<button type="button" class="close nn_remove_assignment">×</button>';
}
$html[] = '<div class="control-group">';
$html[] = '<div class="control-label">';
$html[] = '<label><h4 class="nn_assignmentselection-header">' . $label . '</h4></label>';
$html[] = '</div>';
$html[] = '<div class="controls">';
$html[] = '<fieldset id="' . $this->id . '" class="radio btn-group">';
$onclick = ' onclick="nnScripts.setToggleTitleClass(this, 0)"';
$html[] = '<input type="radio" id="' . $this->id . '0" name="' . $this->name . '" value="0"' . (!$this->value ? ' checked="checked"' : '') . $onclick . '/>';
$html[] = '<label class="nn_btn-ignore" for="' . $this->id . '0">' . JText::_('NN_IGNORE') . '</label>';
$onclick = ' onclick="nnScripts.setToggleTitleClass(this, 1)"';
$html[] = '<input type="radio" id="' . $this->id . '1" name="' . $this->name . '" value="1"' . ($this->value === 1 ? ' checked="checked"' : '') . $onclick . '/>';
$html[] = '<label class="nn_btn-include" for="' . $this->id . '1">' . JText::_('NN_INCLUDE') . '</label>';
$onclick = ' onclick="nnScripts.setToggleTitleClass(this, 2)"';
$onclick .= ' onload="nnScripts.setToggleTitleClass(this, ' . $this->value . ', 7)"';
$html[] = '<input type="radio" id="' . $this->id . '2" name="' . $this->name . '" value="2"' . ($this->value === 2 ? ' checked="checked"' : '') . $onclick . '/>';
$html[] = '<label class="nn_btn-exclude" for="' . $this->id . '2">' . JText::_('NN_EXCLUDE') . '</label>';
$html[] = '</fieldset>';
$html[] = '</div>';
$html[] = '</div>';
$html[] = '<div class="clearfix"> </div>';
$html[] = $toggler->getInput(array('div' => 1, 'param' => $param_name, 'value' => '1,2'));
$html[] = '<div><div>';
} else {
if (!$noshow) {
$html[] = $toggler->getInput(array('div' => 1));
}
$html[] = $toggler->getInput(array('div' => 1));
}
return '</div>' . implode('', $html);
}
示例2: fixLanguageStringSyntax
public function fixLanguageStringSyntax($string = '')
{
$string = trim(NNText::html_entity_decoder($string));
$string = str_replace('"', '"', $string);
$string = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $string);
return $string;
}
示例3: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
require_once __DIR__ . '/toggler.php';
$toggler = new nnFieldToggler;
$this->value = (int) $this->value;
$label = $this->get('label');
$param_name = $this->get('name');
$html = array();
if ($label)
{
$label = NNText::html_entity_decoder(JText::_($label));
$html[] = '<div style="clear: both;"></div>';
$class = 'nn_panel nn_panel_title nn_panel_toggle';
$checked = '';
if ($this->value === 1)
{
$class .= ' nn_panel_include';
$checked = ' checked="checked"';
}
else if ($this->value === 2)
{
$class .= ' nn_panel_exclude';
$checked = ' checked="checked"';
}
$html[] = '<div class="' . $class . '"><label class="nn_block nn_title" for="cb_' . $param_name . '">';
$html[] = '<input id="' . $this->id . '" name="' . $this->name . '" value="1" type="checkbox" class="checkbox"'
. ' onclick="nnScripts.setToggleTitleClass(this, this.checked, 2);"' . $checked . '>';
$html[] = $label;
$html[] = '<div style="clear: both;"></div>';
$html[] = '</label></div>';
$html[] = $toggler->getInput(array('div' => 1, 'param' => $param_name, 'value' => '1,2'));
$html[] = '<div class="nn_panel nn_panel"><div class="nn_block">';
$html[] = '<ul class="adminformlist"><li>';
}
else
{
$html[] = '<div style="clear: both;"></div>';
$html[] = '</li></ul>';
$html[] = '<div style="clear: both;"></div>';
$html[] = '</div></div>';
$html[] = $toggler->getInput(array('div' => 1));
}
return implode($html);
}
示例4: getLabel
protected function getLabel()
{
$this->params = $this->element->attributes();
$label = NNText::html_entity_decoder(JText::_($this->get('label')));
$html = '<label id="' . $this->id . '-lbl" for="' . $this->id . '"';
if ($this->description) {
$html .= ' class="hasTooltip" title="<strong>' . $label . '</strong><br />' . JText::_($this->description) . '">';
} else {
$html .= '>';
}
$html .= $label . '</label>';
return $html;
}
示例5: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
JHtml::stylesheet('nnframework/style.min.css', false, true);
$label = NNText::html_entity_decoder(JText::_($this->get('label')));
$description = $this->prepareText($this->get('description'));
$lang_file = $this->get('language_file');
$html = '</td></tr></table></div></div>';
$html .= '<div class="panel"><h3 class="jpane-toggler title" id="advanced-page"><span>';
$html .= $label;
$html .= '</span></h3>';
$html .= '<div class="jpane-slider content"><table width="100%" class="paramlist admintable" cellspacing="1"><tr><td colspan="2" class="paramlist_value">';
if ($lang_file) {
jimport('joomla.filesystem.file');
// Include extra language file
$lang = str_replace('_', '-', JFactory::getLanguage()->getTag());
$inc = '';
$lang_path = 'language/' . $lang . '/' . $lang . '.' . $lang_file . '.inc.php';
if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $lang_path)) {
$inc = JPATH_ADMINISTRATOR . '/' . $lang_path;
} else {
if (JFile::exists(JPATH_SITE . '/' . $lang_path)) {
$inc = JPATH_SITE . '/' . $lang_path;
}
}
if (!$inc && $lang != 'en-GB') {
$lang = 'en-GB';
$lang_path = 'language/' . $lang . '/' . $lang . '.' . $lang_file . '.inc.php';
if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $lang_path)) {
$inc = JPATH_ADMINISTRATOR . '/' . $lang_path;
} else {
if (JFile::exists(JPATH_SITE . '/' . $lang_path)) {
$inc = JPATH_SITE . '/' . $lang_path;
}
}
}
if ($inc) {
include $inc;
}
}
if ($description) {
if ($description['0'] != '<') {
$description = '<p>' . $description . '</p>';
}
$class = 'nn_panel nn_panel_description';
$html .= '<div class="' . $class . '"><div class="nn_block nn_title">';
$html .= $description;
$html .= '<div style="clear: both;"></div></div></div>';
}
return $html;
}
示例6: getTitleBlock
private function getTitleBlock($title = '', $description = '', $start = 0)
{
$nostyle = $this->def('nostyle', 0);
if ($title) {
$title = NNText::html_entity_decoder(JText::_($title));
}
if ($description) {
// variables
$v1 = JText::_($this->def('var1'));
$v2 = JText::_($this->def('var2'));
$v3 = JText::_($this->def('var3'));
$v4 = JText::_($this->def('var4'));
$v5 = JText::_($this->def('var5'));
$description = NNText::html_entity_decoder(trim(JText::sprintf($description, $v1, $v2, $v3, $v4, $v5)));
$description = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $description);
}
$html = array();
if ($title) {
if ($nostyle) {
$html[] = '<div style="clear:both;"><div>';
} else {
$class = 'nn_panel nn_panel_title';
if ($start || $description) {
$class .= ' nn_panel_top';
}
$html[] = '<div class="' . $class . '"><div class="nn_block nn_title">';
}
$html[] = $title;
$html[] = '<div style="clear: both;"></div>';
$html[] = '</div></div>';
}
if ($description) {
if ($nostyle) {
$html[] = '<div style="clear:both;"><div>';
} else {
$class = 'nn_panel nn_panel_description';
if ($start) {
$class .= ' nn_panel_top';
}
if ($title) {
$class .= ' nn_panel_hastitle';
}
$html[] = '<div class="' . $class . '"><div class="nn_block nn_title">';
}
$html[] = $description;
$html[] = '<div style="clear: both;"></div>';
$html[] = '</div></div>';
}
return implode('', $html);
}
示例7: prepareText
private function prepareText($str = '')
{
if ($str == '') {
return '';
}
// variables
$v1 = JText::_($this->def('var1'));
$v2 = JText::_($this->def('var2'));
$v3 = JText::_($this->def('var3'));
$v4 = JText::_($this->def('var4'));
$v5 = JText::_($this->def('var5'));
$str = JText::sprintf(JText::_($str), $v1, $v2, $v3, $v4, $v5);
$str = trim(NNText::html_entity_decoder($str));
$str = str_replace('"', '"', $str);
$str = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $str);
return $str;
}
示例8: prepareText
private function prepareText($string = '')
{
$string = trim($string);
if ($string == '') {
return '';
}
// variables
$var1 = JText::_($this->get('var1'));
$var2 = JText::_($this->get('var2'));
$var3 = JText::_($this->get('var3'));
$var4 = JText::_($this->get('var4'));
$var5 = JText::_($this->get('var5'));
$string = JText::sprintf(JText::_($string), $var1, $var2, $var3, $var4, $var5);
$string = trim(NNText::html_entity_decoder($string));
$string = str_replace('"', '"', $string);
$string = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $string);
return $string;
}
示例9: getLabel
protected function getLabel()
{
$this->params = $this->element->attributes();
$resize = $this->get('resize', 0);
$label = NNText::html_entity_decoder(JText::_($this->get('label')));
$html = '<label id="' . $this->id . '-lbl" for="' . $this->id . '"';
if ($this->description) {
$html .= ' class="hasTooltip" title="<strong>' . $label . '</strong><br />' . JText::_($this->description) . '">';
} else {
$html .= '>';
}
$html .= $label;
if ($resize) {
JHtml::_('jquery.framework');
NNFrameworkFunctions::addScriptVersion(JUri::root(true) . '/media/nnframework/js/script.min.js');
JHtml::stylesheet('nnframework/style.min.css', false, true);
$html .= '<br /><span role="button" class="nn_resize_textarea nn_maximize"' . ' data-id="' . $this->id . '" data-min="' . $this->get('height', 80) . '" data-max="' . $resize . '">' . '<span class="nn_resize_textarea_maximize">' . '[ + ]' . '</span>' . '<span class="nn_resize_textarea_minimize">' . '[ - ]' . '</span>' . '</span>';
}
$html .= '</label>';
return $html;
}
示例10: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
JHtml::stylesheet('nnframework/style.min.css', false, true);
$title = $this->get('label');
$description = $this->get('description');
$class = $this->get('class');
$start = $this->get('start', 0);
$end = $this->get('end', 0);
$html = array();
if ($start || !$end) {
$html[] = '</div>';
if (!(strpos($class, 'alert') === false)) {
$html[] = '<div class="alert ' . $class . '">';
} else {
$html[] = '<div class="well well-small ' . $class . '">';
}
if ($title) {
$title = NNText::html_entity_decoder(JText::_($title));
$html[] = '<h4>' . $title . '</h4>';
}
if ($description) {
// variables
$v1 = JText::_($this->get('var1'));
$v2 = JText::_($this->get('var2'));
$v3 = JText::_($this->get('var3'));
$v4 = JText::_($this->get('var4'));
$v5 = JText::_($this->get('var5'));
$description = NNText::html_entity_decoder(trim(JText::sprintf($description, $v1, $v2, $v3, $v4, $v5)));
$description = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $description);
$html[] = '<div>' . $description . '</div>';
}
$html[] = '<div><div>';
}
if (!$start && !$end) {
$html[] = '</div>';
}
return '</div>' . implode('', $html);
}
示例11: getArticleId
private function getArticleId($id, $type = 'article', $ignores = array())
{
if (isset($this->articles[$type . '_' . $id])) {
return $id;
}
if (isset($this->article_to_ids[$type . '_' . $id])) {
return $this->article_to_ids[$type . '_' . $id];
}
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('a.id');
$table = 'content';
$query->from('#__' . $table . ' as a');
$where = 'a.title = ' . $db->quote(NNText::html_entity_decoder($id));
$where .= ' OR a.alias = ' . $db->quote(NNText::html_entity_decoder($id));
if (is_numeric($id)) {
$where .= ' OR a.id = ' . $id;
}
$query->where('(' . $where . ')');
$ignore_language = isset($ignores['ignore_language']) ? $ignores['ignore_language'] : $this->params->ignore_language;
if (!$ignore_language) {
$query->where('a.language in (' . $db->quote(JFactory::getLanguage()->getTag()) . ',' . $db->quote('*') . ')');
}
$ignore_state = isset($ignores['ignore_state']) ? $ignores['ignore_state'] : $this->params->ignore_state;
if (!$ignore_state) {
$jnow = JFactory::getDate();
$now = $jnow->toSql();
$nullDate = $db->getNullDate();
$where = 'a.state = 1';
$query->where($where)->where('( a.publish_up = ' . $db->quote($nullDate) . ' OR a.publish_up <= ' . $db->quote($now) . ' )')->where('( a.publish_down = ' . $db->quote($nullDate) . ' OR a.publish_down >= ' . $db->quote($now) . ' )');
}
$ignore_access = isset($ignores['ignore_access']) ? $ignores['ignore_access'] : $this->params->ignore_access;
if (!$ignore_access) {
$query->where('a.access IN(' . implode(', ', $this->aid) . ')');
}
$query->order('a.ordering');
$db->setQuery($query);
$this->article_to_ids[$type . '_' . $id] = $db->loadResult();
return $this->article_to_ids[$type . '_' . $id];
}
示例12: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
JHtml::stylesheet('nnframework/style.min.css', false, true);
$title = $this->get('label');
$description = $this->get('description');
$xml = $this->get('xml');
$url = $this->get('url');
if ($description) {
// variables
$v1 = $this->get('var1');
$v2 = $this->get('var2');
$v3 = $this->get('var3');
$v4 = $this->get('var4');
$v5 = $this->get('var5');
$description = NNText::html_entity_decoder(trim(JText::sprintf($description, $v1, $v2, $v3, $v4, $v5)));
}
if ($title) {
$title = JText::_($title);
}
if ($description) {
$description = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $description);
if ($description['0'] != '<') {
$description = '<p>' . $description . '</p>';
}
}
if (!$xml && $this->form->getValue('element')) {
if ($this->form->getValue('folder')) {
$xml = 'plugins/' . $this->form->getValue('folder') . '/' . $this->form->getValue('element') . '/' . $this->form->getValue('element') . '.xml';
} else {
$xml = 'administrator/modules/' . $this->form->getValue('element') . '/' . $this->form->getValue('element') . '.xml';
}
}
if ($xml) {
$xml = JApplicationHelper::parseXMLInstallFile(JPATH_SITE . '/' . $xml);
$version = 0;
if ($xml && isset($xml['version'])) {
$version = $xml['version'];
}
if ($version) {
if (strpos($version, 'PRO') !== false) {
$version = str_replace('PRO', '', $version);
$version .= ' <small style="color:green">[PRO]</small>';
} else {
if (strpos($version, 'FREE') !== false) {
$version = str_replace('FREE', '', $version);
$version .= ' <small style="color:green">[FREE]</small>';
}
}
if ($title) {
$title .= ' v';
} else {
$title = JText::_('Version') . ' ';
}
$title .= $version;
}
}
$html = array();
if ($title) {
if ($url) {
$title = '<a href="' . $url . '" target="_blank" title="' . preg_replace('#<[^>]*>#', '', $title) . '">' . $title . '</a>';
}
$html[] = '<h4>' . NNText::html_entity_decoder($title) . '</h4>';
}
if ($description) {
$html[] = $description;
}
if ($url) {
$html[] = '<p><a href="' . $url . '" target="_blank" title="' . JText::_('NN_MORE_INFO') . '">' . JText::_('NN_MORE_INFO') . '...</a></p>';
}
return '</div><div>' . implode('', $html);
}
示例13: cleanText
function cleanText(&$string)
{
// Load common functions
require_once JPATH_PLUGINS . '/system/nnframework/helpers/text.php';
// replace chr style enters with normal enters
$string = str_replace(array(chr(194) . chr(160), ' ', ' '), ' ', $string);
// replace linbreak tags with normal linebreaks (paragraphs, enters, etc).
$enter_tags = array('p', 'br');
$regex = '#</?((' . implode(')|(', $enter_tags) . '))+[^>]*?>\\n?#si';
$string = preg_replace($regex, " \n", $string);
// replace indent characters with spaces
$string = preg_replace('#<' . 'img [^>]*/sourcerer/images/tab\\.png[^>]*>#si', ' ', $string);
// strip all other tags
$regex = '#<(/?\\w+((\\s+\\w+(\\s*=\\s*(?:".*?"|\'.*?\'|[^\'">\\s]+))?)+\\s*|\\s*)/?)>#si';
$string = preg_replace($regex, "", $string);
// reset htmlentities
$string = NNText::html_entity_decoder($string);
// convert protected html entities &_...; -> &...;
$string = preg_replace('#&_([a-z0-9\\#]+?);#i', '&\\1;', $string);
}
示例14: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
$label = NNText::html_entity_decoder(JText::_($this->def('label')));
$description = $this->def('description');
$lang_file = $this->def('language_file');
$html = '</td></tr></table></div></div>';
$html .= '<div class="panel"><h3 class="jpane-toggler title" id="advanced-page"><span>';
$html .= $label;
$html .= '</span></h3>';
$html .= '<div class="jpane-slider content"><table width="100%" class="paramlist admintable" cellspacing="1"><tr><td colspan="2" class="paramlist_value">';
if ($description) {
// variables
$v1 = $this->def('var1');
$v2 = $this->def('var2');
$v3 = $this->def('var3');
$v4 = $this->def('var4');
$v5 = $this->def('var5');
$description = NNText::html_entity_decoder(trim(JText::sprintf($description, $v1, $v2, $v3, $v4, $v5)));
}
if ($lang_file) {
jimport('joomla.filesystem.file');
// Include extra language file
$language = JFactory::getLanguage();
$lang = str_replace('_', '-', $language->getTag());
$inc = '';
$lang_path = 'language/' . $lang . '/' . $lang . '.' . $lang_file . '.inc.php';
if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $lang_path)) {
$inc = JPATH_ADMINISTRATOR . '/' . $lang_path;
} else {
if (JFile::exists(JPATH_SITE . '/' . $lang_path)) {
$inc = JPATH_SITE . '/' . $lang_path;
}
}
if (!$inc && $lang != 'en-GB') {
$lang = 'en-GB';
$lang_path = 'language/' . $lang . '/' . $lang . '.' . $lang_file . '.inc.php';
if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $lang_path)) {
$inc = JPATH_ADMINISTRATOR . '/' . $lang_path;
} else {
if (JFile::exists(JPATH_SITE . '/' . $lang_path)) {
$inc = JPATH_SITE . '/' . $lang_path;
}
}
}
if ($inc) {
include $inc;
}
}
if ($description) {
$description = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $description);
if ($description['0'] != '<') {
$description = '<p>' . $description . '</p>';
}
$class = 'nn_panel nn_panel_description';
$html .= '<div class="' . $class . '"><div class="nn_block nn_title">';
$html .= $description;
$html .= '<div style="clear: both;"></div></div></div>';
}
return $html;
}
示例15: getInput
protected function getInput()
{
$this->params = $this->element->attributes();
JHtml::stylesheet('nnframework/style.min.css', false, true);
$title = $this->def('label');
$description = $this->def('description');
$xml = $this->def('xml');
$lang_file = $this->def('language_file');
$image = $this->def('image');
$image_w = $this->def('image_w');
$image_h = $this->def('image_h');
$url = $this->def('url');
$help_url = $this->def('help_url');
if ($description) {
// variables
$v1 = $this->def('var1');
$v2 = $this->def('var2');
$v3 = $this->def('var3');
$v4 = $this->def('var4');
$v5 = $this->def('var5');
$description = NNText::html_entity_decoder(trim(JText::sprintf($description, $v1, $v2, $v3, $v4, $v5)));
}
if ($lang_file) {
jimport('joomla.filesystem.file');
// Include extra language file
$language = JFactory::getLanguage();
$lang = str_replace('_', '-', $language->getTag());
$inc = '';
$lang_path = 'language/' . $lang . '/' . $lang . '.' . $lang_file . '.inc.php';
if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $lang_path)) {
$inc = JPATH_ADMINISTRATOR . '/' . $lang_path;
} else {
if (JFile::exists(JPATH_SITE . '/' . $lang_path)) {
$inc = JPATH_SITE . '/' . $lang_path;
}
}
if (!$inc && $lang != 'en-GB') {
$lang = 'en-GB';
$lang_path = 'language/' . $lang . '/' . $lang . '.' . $lang_file . '.inc.php';
if (JFile::exists(JPATH_ADMINISTRATOR . '/' . $lang_path)) {
$inc = JPATH_ADMINISTRATOR . '/' . $lang_path;
} else {
if (JFile::exists(JPATH_SITE . '/' . $lang_path)) {
$inc = JPATH_SITE . '/' . $lang_path;
}
}
}
if ($inc) {
include $inc;
}
}
if ($title) {
$title = JText::_($title);
}
if ($description) {
$description = str_replace('span style="font-family:monospace;"', 'span class="nn_code"', $description);
if ($description['0'] != '<') {
$description = '<p>' . $description . '</p>';
}
}
if ($xml) {
$xml = JApplicationHelper::parseXMLInstallFile(JPATH_SITE . '/' . $xml);
$version = 0;
if ($xml && isset($xml['version'])) {
$version = $xml['version'];
}
if ($version) {
if (!(strpos($version, 'PRO') === false)) {
$version = str_replace('PRO', '', $version);
$version .= ' <small style="color:green">[PRO]</small>';
} else {
if (!(strpos($version, 'FREE') === false)) {
$version = str_replace('FREE', '', $version);
$version .= ' <small style="color:green">[FREE]</small>';
}
}
if ($title) {
$title .= ' v';
} else {
$title = JText::_('Version') . ' ';
}
$title .= $version;
}
}
if ($url) {
$url = '<a href="' . $url . '" target="_blank" title="' . preg_replace('#<[^>]*>#', '', $title) . '">';
}
$html = array();
$html[] = '<div class="nn_panel"><div class="nn_block nn_title">';
if ($image) {
$image = str_replace('/', "\n", str_replace('\\', '/', $image));
$image = explode("\n", trim($image));
if ($image['0'] == 'administrator') {
$image['0'] = JURI::base(true);
} else {
$image['0'] = JURI::root(true) . '/' . $image['0'];
}
$image = '<img src="' . implode('/', $image) . '" border="0" style="float:right;margin-left:10px" alt=""';
if ($image_w) {
$image .= ' width="' . $image_w . '"';
//.........这里部分代码省略.........