PHP Classes

File: cache/_mnt_e40ce98b0ce95956_wamp_www_github_twitter_app_views_index_index.volt.php

Recommend this page to a friend!
  Classes of Stefan Ninic   PHP Twitter Clone   cache/_mnt_e40ce98b0ce95956_wamp_www_github_twitter_app_views_index_index.volt.php   Download  
File: cache/_mnt_e40ce98b0ce95956_wamp_www_github_twitter_app_views_index_index.volt.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Twitter Clone
Social network application similar to Twitter
Author: By
Last change:
Date: 1 year ago
Size: 580 bytes
 

Contents

Class file image Download
<?php if ($posts) { ?>
<?php foreach ($posts as $post) { ?>
<div class="panel panel-default" data-id=<?= $post->getId() ?>>
            <div class="panel-body">
                <?= $post->getPost() ?>
<?php if ($post->getEmail() == $this->session->get('email') || $this->session->get('role') == 'admin') { ?>
<div class="text-center">
                        <a class="btn btn-danger" href="#" role="button">Delete</a>
                    </div>
                <?php } ?>
</div>
        </div>
    <?php } ?>
<?php
} ?>