Exemplo n.º 1
0
<div id="Bookmarks" class="Box BoxBookmarks">
    <h4><?php 
echo t('Bookmarked Discussions');
?>
</h4>
    <?php 
if (count($Bookmarks->result()) > 0) {
    ?>

        <ul id="<?php 
    echo $this->ListID;
    ?>
" class="PanelInfo PanelDiscussions DataList">
            <?php 
    foreach ($Bookmarks->result() as $Discussion) {
        WriteModuleDiscussion($Discussion);
    }
    if ($Bookmarks->numRows() == $this->Limit) {
        ?>
                <li class="ShowAll"><?php 
        echo anchor(t('All Bookmarks'), 'discussions/bookmarked');
        ?>
</li>
            <?php 
    }
    ?>
        </ul>

    <?php 
} else {
    ?>
Exemplo n.º 2
0
<?php

if (!defined('APPLICATION')) {
    exit;
}
require_once $this->FetchViewLocation('helper_functions');
if (!isset($this->Prefix)) {
    $this->Prefix = 'Discussion';
}
?>
<div class="Box BoxDiscussions">
   <h4><?php 
echo T('Recent Discussions');
?>
</h4>
   <ul class="PanelInfo PanelDiscussions DataList">
      <?php 
foreach ($this->Data('Discussions')->Result() as $Discussion) {
    WriteModuleDiscussion($Discussion, $this->Prefix);
}
if ($this->Data('Discussions')->NumRows() >= $this->Limit) {
    ?>
      <li class="ShowAll"><?php 
    echo Anchor(T('More…'), 'discussions');
    ?>
</li>
      <?php 
}
?>
   </ul>
</div>
Exemplo n.º 3
0
<?php

if (!defined('APPLICATION')) {
    exit;
}
require_once $this->fetchViewLocation('helper_functions');
if (!isset($this->Prefix)) {
    $this->Prefix = 'Discussion';
}
?>
<div class="Box BoxDiscussions">
    <?php 
echo panelHeading(t('Recent Discussions'));
?>
    <ul class="PanelInfo PanelDiscussions DataList">
        <?php 
foreach ($this->data('Discussions')->result() as $Discussion) {
    WriteModuleDiscussion($Discussion, $this->Prefix, $this->getShowPhotos());
}
if ($this->data('Discussions')->numRows() >= $this->Limit) {
    ?>
            <li class="ShowAll"><?php 
    echo anchor(t('More…'), 'discussions');
    ?>
</li>
        <?php 
}
?>
    </ul>
</div>