예제 #1
0
 private function getModel($paramPrefixName)
 {
     $app = JFactory::getApplication();
     $params = $app->getParams();
     $document = JFactory::getDocument();
     $cedTagsHelper = new CedTagsHelper();
     $description = CedTagsHelper::param($paramPrefixName . 'MetaDescription');
     $document->setDescription($cedTagsHelper->truncate($description));
     $keywords = CedTagsHelper::param($paramPrefixName . 'MetaKeywords');
     $document->setMetadata($paramPrefixName . 'Keywords', $keywords);
     $title = CedTagsHelper::param($paramPrefixName . 'Title');
     $document->setTitle($title);
     $count = intval($params->get($paramPrefixName . 'Count', 25));
     $sorting = $params->get('wordleTagOrder', 'sizeasort');
     $reverse = intval($params->get($paramPrefixName . 'Reverse', 1));
     $rows = $cedTagsHelper->getPopularTagModel($count, $sorting, $reverse);
     return $rows;
 }
예제 #2
0
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 **/
defined('_JEXEC') or die('Restricted access');
require_once JPATH_SITE . '/components/com_content/helpers/route.php';
require_once JPATH_SITE . '/components/com_cedtag/helpers/themes.php';
// to reuse components/com_content/views/category/tmpl/blog_item.php
// when doing later $this->loadTemplate('item');
$this->addTemplatePath(JPATH_SITE . '/components/com_content/views/category/tmpl');
JHtml::addIncludePath(JPATH_SITE . '/components/com_cedtag/helpers');
//blog_item.php use icon.php
JHtml::addIncludePath(JPATH_SITE . '/components/com_content/helpers');
$document = JFactory::getDocument();
$document->addStyleSheet('media/com_cedtag/css/blog.css');
$cedTagsHelper = new CedTagsHelper();
if ($this->tagDescription) {
    $document->setDescription($cedTagsHelper->truncate($this->tagDescription));
} else {
    $document->setDescription($cedTagsHelper->truncate($this->tag));
}
$document->setTitle($this->title);
$document->setMetadata('keywords', $this->tag);
$CedTagThemes = new CedTagThemes();
$CedTagThemes->addCss();
?>

<h1><?php 
echo JText::_('COM_CEDTAG_POSTS_TAGGED') . " " . JText::_('\'') . $this->tag . JText::_('\'');
?>
</h1>

<?php 
예제 #3
0
                <div align="center"><?php 
echo $this->termList->page->getPagesLinks();
?>
                </div>
            </td>
        </tr>
        </tfoot>
        <tbody>
        <?php 
$k = 0;
$cedTagsHelper = new CedTagsHelper();
if (count($rows)) {
    for ($i = 0, $n = count($rows); $i < $n; $i++) {
        $row =& $rows[$i];
        JFilterOutput::objectHtmlSafe($row);
        $row->description = $cedTagsHelper->truncate($row->description);
        $link = 'index.php?option=com_cedtag&controller=term&task=edit&cid[]=' . $row->id;
        $checked = JHTML::_('grid.id', $i, $row->id);
        ?>
		<tr class="<?php 
        echo "row{$k}";
        ?>
">
			<td><?php 
        echo $limitstart + $i + 1;
        ?>
</td>
                <td><?php 
        echo $checked;
        ?>
</td>