本文整理匯總了PHP中flexicontent_html::nl2space方法的典型用法代碼示例。如果您正苦於以下問題:PHP flexicontent_html::nl2space方法的具體用法?PHP flexicontent_html::nl2space怎麽用?PHP flexicontent_html::nl2space使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類flexicontent_html
的用法示例。
在下文中一共展示了flexicontent_html::nl2space方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
<th align="left" width="" style="font-size:16px;">
<?php
echo JText::_('FLEXI_CURRENT_VERSION');
?>
</th>
</tr>
<?php
foreach ($this->fields as $field) {
// used to hide the core fields from this listing
if ($field->iscore == 0 || $field->field_type == 'maintext' && !$this->tparams->get('hide_maintext')) {
// set the specific label for the maintext field
if ($field->field_type == 'maintext') {
$field->label = JText::_($this->tparams->get('maintext_label', $field->label));
$field->description = $this->tparams->get('maintext_desc', $field->description);
$field->display = $field->value ? flexicontent_html::nl2space($field->value[0]) : JText::_('FLEXI_NO_VALUE');
$field->displayversion = $field->version ? flexicontent_html::nl2space($field->version[0]) : JText::_('FLEXI_NO_VALUE');
}
$noplugin = '<div class="fc-mssg-inline fc-warning" style="margin:0 4px 6px 4px; max-width: unset;">' . JText::_('FLEXI_PLEASE_PUBLISH_THIS_PLUGIN') . '</div>';
//echo $field->name."<br/>";
$html = flexicontent_html::flexiHtmlDiff(!is_array($field->displayversion) ? $field->displayversion : implode('', $field->displayversion), !is_array($field->display) ? $field->display : implode('', $field->display), $this->codemode);
?>
<tr>
<td class="key" style="text-align:right;'">
<label for="<?php
echo $field->name;
?>
" class="label <?php
echo $tooltip_class;
?>
" title="<?php
echo flexicontent_html::getToolTip($field->label, $field->description, 0);