Ejemplo n.º 1
0
?>
</span></td>
	</tr>
	<tr>
		<td width="120" align="right" class="key"><?php 
echo JHTML::tooltip(JTEXT::_('TOOLTIP_SETTING_ARTICLE'), JTEXT::_('TOOLTIP_SETTING_ARTICLE_TITLE'), '', JTEXT::_('ARTICLE'));
?>
</td>
		<td>
		  <input class="text_area" type="hidden" name="article_id" id="article_id" size="10" maxlength="250" value="<?php 
echo $row->article_id;
?>
" />
		  <input class="text_area" type="hidden" name="article_title" id="article_title" size="10" maxlength="250" value="<?php 
if (isset($row->article_id) && $row->article_id != 0) {
    echo EnmasseHelper::getArticleTitleById($row->article_id);
}
?>
" />
          <?php 
$version = new JVersion();
$joomla = $version->getShortVersion();
if (substr($joomla, 0, 3) >= '1.6') {
    include_once JPATH_ADMINISTRATOR . DS . 'components/com_enmasse/helpers/articles.php';
    if (class_exists('JFormFieldArticles')) {
        $articleSelectBox = new JFormFieldArticles();
        echo $articleSelectBox->getInput();
    }
} else {
    include_once JPATH_ADMINISTRATOR . DS . 'components/com_content/elements/article.php';
    if (class_exists('JElementArticle')) {