Ejemplo n.º 1
0
                                        <!-- /.btn-group -->
                                    </div>
                                    <!-- /.pull-right -->
                                </div>
                                <? if (80 > $message['text']) : ?>
                                    <blockquote>
                                        <?php 
echo $message['text'];
?>
                                        <small><?php 
echo $message['from_account_display'];
?>
,
                                            <cite
                                                title="Source Title"><?php 
echo date_format_en($message['created_at']);
?>
</cite>
                                        </small>
                                    </blockquote>
                                <? else : ?>
                                    <article>
                                        <?php 
echo $message['text'];
?>
                                    </article>
                                <? endif; ?>
                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer" id="reply">
                                <? if (Ngaji\Http\Request::user()->id != $message['from_account']): ?>
Ejemplo n.º 2
0
                                        <h3>No comment on this post</h3>
                                    <? endif; ?>
                                    <? foreach ($post['comments'] as $comment): ?>
                                        <div class="item">
                                            <?php 
echo Html::loadIMG($comment['account_photo'], ['alt' => 'user image', 'class' => 'online']);
?>
                                            <p class="message">
                                                <a href="<?php 
echo HOSTNAME . '/profile/' . $comment['username'];
?>
"
                                                   class="name">
                                                    <small class="text-muted pull-right">
                                                        <i class="fa fa-clock-o"></i> <?php 
echo date_format_en($comment['created_at']) . "&nbsp";
?>
                                                    </small>
                                                    <?php 
echo $comment['name'];
?>
                                                </a>
                                                <?
                                                # menampilkan aksi edit dan hapus untuk artikel milik member login
                                                if (\Ngaji\Http\Request::is_authenticated() and
                                                    $comment['id_account'] == \Ngaji\Http\Request::user()->id
                                                ): ?>
                                                    <?php 
echo Html::anchor("comments/edit/" . $comment['comments_id'], '<i class="fa fa-edit"></i> Edit', ['class' => 'btn btn-sm btn-flat']);
?>
                                                    <?php 
Ejemplo n.º 3
0
?>
                                                <span style="text-align: center" class="center-block">
                                                    @<?php 
echo $account->username;
?>
                                                </span>
                                            </td>
                                            <td>
                                                <?php 
echo $account->name;
?>
                                            </td>
                                            <td>
                                                <span class="badge bg-primary"><i class="fa fa-eye">
                                                    </i> <?php 
echo date_format_en($account->created_at);
?>
                                                </span>
                                            </td>
                                            <? if (Ngaji\Http\Request::is_admin()): ?>
                                                <td>
                                                    <?php 
echo Html::anchor("#", '<i class="fa fa-trash-o"></i> Delete', ['class' => 'btn btn-xs btn-flat btn-danger', 'data-post-id' => $account->id, 'data-type-modal' => 'User', 'data-post-title' => $account->name, 'data-href' => sprintf("%s/accounts/delete/%d", HOSTNAME, $account->id), 'data-toggle' => "modal", 'data-target' => "#confirm-delete"]);
?>
                                                </td>
                                            <? endif; ?>
                                        </tr>
                                    <? endforeach; ?>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
Ejemplo n.º 4
0
echo HOSTNAME . '/profile/' . $post['username'];
?>
" class="name">
                                                <small class="text-muted pull-right">
                                                    #<?php 
echo $post['id'];
?>
                                                </small>
                                                <small class="text-muted pull-right">
                                                    <i class="fa fa-bookmark-o"></i> <?php 
echo $post['category_name'] . "&nbsp";
?>
                                                </small>
                                                <small class="text-muted pull-right">
                                                    <i class="fa fa-clock-o"></i> <?php 
echo date_format_en($post['created_at']) . "&nbsp";
?>
                                                </small>
                                                <?php 
echo $post['name'];
?>
                                            </a>

                                            <?php 
echo Html::anchor('post/read/' . $post['id'], $post['title']);
?>
                                            <?
                                            # menampilkan aksi edit dan hapus untuk artikel milik member login
                                            if (\Ngaji\Http\Request::is_authenticated() and
                                                $post['account_id'] == \Ngaji\Http\Request::user()->id
                                            ): ?>
Ejemplo n.º 5
0
                                    <? foreach ($categories as $category) : ?>
                                        <tr>
                                            <td>
                                                <?php 
echo $category->id;
?>
                                            </td>
                                            <td>
                                                <?php 
echo $category->name;
?>
                                            </td>
                                            <td>
                                                <span class="badge bg-primary"><i class="fa fa-eye">
                                                    </i> <?php 
echo date_format_en($category->created_at);
?>
                                                </span>
                                            </td>
                                            <td>
                                                <span class="badge bg-olive"><i class="fa fa-comment">
                                                    </i> <?php 
echo $category->post_count;
?>
                                                </span>
                                            </td>
                                            <? if (Ngaji\Http\Request::is_admin()): ?>
                                            <td>
                                                <?php 
echo Html::anchor('categories/edit/' . $category->id, '<i class="fa fa-edit"></i> Edit', ['class' => 'btn btn-xs btn-flat btn-primary']);
?>