Ejemplo n.º 1
0
        echo $thread->replies;
        ?>
</td>
                    <td class="thread-views-column"><?php 
        echo $thread->views;
        ?>
</td>
                    <td class="thread-most-recent-column">
                        <?php 
        if ($thread->last_reply_id) {
            ?>
                            <?php 
            echo $thread->getLastActiveProfileLink();
            ?>
                            <span><?php 
            echo \mpf\helpers\DateTimeHelper::get()->niceDate($thread->last_reply_date, false, false);
            ?>
</span>
                        <?php 
        } else {
            ?>
                            <span class="thread-no-replies-message">
                                 <?php 
            echo \mpf\modules\forum\components\Translator::get()->translate("no replies");
            ?>
                            </span>
                        <?php 
        }
        ?>
                    </td>
                </tr>
Ejemplo n.º 2
0
            if ($subcategory->last_active_thread_id) {
                ?>
                                <?php 
                echo \mpf\web\helpers\Html::get()->link($this->updateURLWithSection(['thread', 'index', ['subcategory' => $subcategory->url_friendly_title, 'category' => $category->url_friendly_name, 'id' => $subcategory->last_active_thread_id]]), $subcategory->lastActiveThread->title, ['class' => 'subcategory-latest-post-thread']);
                ?>
                                <span
                                    class="subcategory-lastest-post-author"><?php 
                echo $subcategory->getActionForList();
                ?>
 <?php 
                echo $subcategory->getLastActiveProfileLink();
                ?>
</span>
                                <span
                                    class="subcategory-lastest-post-date">, <?php 
                echo lcfirst(\mpf\helpers\DateTimeHelper::get()->niceDate($subcategory->last_activity_time, false, false));
                ?>
</span>
                            <?php 
            } else {
                ?>
                                <span class="subcategory-no-posts">
                                <?php 
                echo \mpf\modules\forum\components\Translator::get()->translate("- no posts -");
                ?>
                        </span>
                            <?php 
            }
            ?>
                        </td>
                    </tr>
Ejemplo n.º 3
0
         echo \mpf\modules\forum\components\Translator::get()->translate("Edited");
         ?>
                             <?php 
         echo \mpf\helpers\DateTimeHelper::get()->niceDate($reply->edit_time, false, false);
         ?>
                         <?php 
     } else {
         ?>
                             <?php 
         echo \mpf\modules\forum\components\Translator::get()->translate("Edited by");
         ?>
                             <?php 
         echo $reply->getEditorProfileLink();
         ?>
                             <?php 
         echo \mpf\helpers\DateTimeHelper::get()->niceDate($reply->edit_time, false, false);
         ?>
                         <?php 
     }
     ?>
                     </div>
                 <?php 
 }
 ?>
                 <?php 
 if (!$reply->deleted && \mpf\modules\forum\components\UserAccess::get()->canReplyToThread($subcategory->category_id, $this->sectionId)) {
     ?>
                     <div class="forum-thread-reply-actions">
                         <?php 
     echo \mpf\web\helpers\Html::get()->link('#reply-for-1-' . $reply->id, \mpf\modules\forum\components\Translator::get()->translate('Reply'), ['class' => 'new-reply-button reply-to-existing-reply']);
     ?>
Ejemplo n.º 4
0
?>

<div class="blog-article">
    <h1 class="blog-article-title"><?php 
echo \mpf\web\helpers\Html::get()->link(['home', 'read', ['id' => $article->id]], $article->getTitle());
?>
</h1>
    <div class="blog-article-header">
        <?php 
echo \app\components\htmltools\Translator::get()->t("Written by");
?>
        <?php 
echo $article->anonimous ? \app\components\htmltools\Translator::get()->t("Anonimous") : $article->author->name;
?>
        <?php 
echo \mpf\helpers\DateTimeHelper::get()->niceDate($article->time_published);
?>
    </div>
    <div class="blog-article-cover">
        <?php 
echo $article->getCover();
?>
    </div>
    <div class="blog-article-content">
        <?php 
echo $article->getIcon();
?>
        <?php 
echo $article->getContent(true);
?>
    </div>
Ejemplo n.º 5
0
                    </div>
                    <?php 
    echo \mpf\web\helpers\Html::get()->image(\mpf\modules\forum\components\Config::value('USER_ICON_FOLDER_URL') . (\mpf\WebApp::get()->user()->icon ?: 'default.png'));
    ?>
                    <div class="forum-user-details-footer">
                        <span class="forum-user-details-group">
                        <?php 
    echo ($g = \mpf\modules\forum\components\UserAccess::get()->getUserGroup($subcategory->category->section_id)) ? $g->full_name : '-';
    ?>
                        </span>
                        <span class="forum-user-details-date">
                            <?php 
    echo \mpf\modules\forum\components\Translator::get()->translate("Member since");
    ?>
                            <?php 
    echo lcfirst(\mpf\helpers\DateTimeHelper::get()->niceDate($thread->getSectionUser($subcategory->category->section_id)->member_since, false, false));
    ?>
                        </span>
                    </div>
                </td>
                <td class="forum-reply-form-column">
                    <?php 
    $this->displayComponent("replyform", ['model' => $replyModel]);
    ?>
                </td>
            </tr>
        <?php 
}
?>
    </table>