예제 #1
0
                <?php 
if ($this->params->get('show_intro', $this->item->params->get('show_intro', 1))) {
    ?>
                <p><?php 
    echo $this->item->description;
    ?>
</p>
                <?php 
}
?>
            </div>

            <?php 
$this->canEditResult = UserIdeasHelper::isValidOwner($this->userId, $this->item->user_id) and $this->canEdit;
$hasTags = (bool) ($this->item->tags !== null and is_array($this->item->tags) and count($this->item->tags) > 0);
if (UserIdeasHelper::shouldDisplayFootbar($this->params, $this->item->params, $hasTags) or $this->canEditResult) {
    echo $this->loadTemplate('footbar');
}
?>

        </div>
    </div>
</div>

<?php 
if (!empty($this->item->event->onContentAfterDisplay)) {
    echo $this->item->event->onContentAfterDisplay;
}
?>

<?php 
예제 #2
0
    }
    ?>

                <?php 
    if ($this->params->get('show_intro', $item->params->get('show_intro', 1))) {
        ?>
                    <?php 
        echo JHtmlString::truncate($item->description, $this->params->get("items_description_length", 255), true, $this->params->get('items_description_html', 0));
        ?>
                <?php 
    }
    ?>
            </div>
            <?php 
    $this->canEditResult = UserIdeasHelper::isValidOwner($this->userId, $item->user_id) and $this->canEdit;
    if (UserIdeasHelper::shouldDisplayFootbar($item->params, $item->params, false) or $this->canEditResult or $this->commentsEnabled) {
        echo '<div class="clearfix"></div>';
        $layoutData = new stdClass();
        $layoutData->item = $item;
        $layoutData->socialProfiles = $this->socialProfiles;
        $layoutData->integrationOptions = $this->integrationOptions;
        $layoutData->commentsEnabled = $this->commentsEnabled;
        $layoutData->canEditResult = $this->canEditResult;
        $layoutData->params = $this->params;
        $layoutData->commentsNumber = $commentsNumber;
        $layout = new JLayoutFile('footbar');
        echo $layout->render($layoutData);
    }
    ?>
        </div>
    <?php