Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container" style="width: 600pt">
- <div class="container-fluid" style="width: 600pt">
- <div class="row-fluid">
- <div class="span8">
- <?php
- $is_church_registered = $this->session->userdata('is_church_registered');
- $is_church_newly_registered = $this->session->userdata('is_church_newly_registered');
- $church_id = $this->session->userdata('church_id');
- $id = $this->session->userdata('id');
- if ($is_church_registered == 'false') { ?>
- <div>
- You are not apart of any churches.
- Please <a href="<?=base_url()?>index.php/churchlocator/church_directory">click here</a> to find your church.
- </div>
- <?php } elseif($is_church_registered == 'true' || $is_church_newly_registered == 'true') {
- echo '<input type="text" id="updater" style="font-size: 14pt; width: 500pt" placeholder="What\'s on your mind?" required /><div id="wall">';
- $query = $this->db->query("SELECT * FROM default_wallposts wp, default_frontend_users u WHERE u.idusers = wp.creator_id AND wp.church_id = '$church_id' ORDER BY wp.id DESC LIMIT 200");
- foreach($query->result() as $row) { ?>
- <article class="comment-body" style="width: 500pt; padding: 8pt">
- <footer class="comment-meta">
- <div class="comment-author">
- <?php
- $q1 = $this->db->query("SELECT * FROM default_church_repo cr INNER JOIN default_frontend_users u ON u.church_id = cr.crid WHERE u.idusers = '$row->creator_id'");
- $row1 = $q1->row();
- if ($row1->account_type == 'Overseer') {}
- if ($row1->account_type == 'Regular Member') {
- echo '<img alt="" src="'.base_url().$row->defaultImgURI.'">';
- }
- ?>
- </div>
- <div class="comment-metadata">
- <a href="" style="text-decoration: none">
- <span class="large-font" style="font-family: Bitter, Georgia, serif">
- <?php
- $q2 = $this->db->query("SELECT * FROM default_church_repo cr INNER JOIN default_frontend_users u ON u.church_id = cr.crid WHERE u.idusers = '$row->creator_id'");
- $row1 = $q2->row();
- if ($row1->account_type == 'Overseer') {
- echo $row1->church_name;
- //echo '<img align="right" src="'.base_url().'assets/img/church-icon.png"/>';
- }
- if ($row1->account_type == 'Regular Member') {
- echo $row->firstname.' '.$row->lastname;
- }
- ?></span>
- </a>
- </div>
- </footer>
- <div class="comment-content" style="font-family: Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif">
- <?=$row->content?>
- <br>
- <span class="actions" style="display: none">
- <i class="fa fa-thumbs-o-up">
- <?php
- $q3 = $this->db->query("SELECT * FROM default_post_likes
- WHERE post_id = $row->id");
- $row2 = $q3->row();
- if ($row2->post_id == $row->id) {
- echo 'Unlike';
- } else {
- echo '<a class="like" posterid="'.$row->creator_id.'" postid="'.$row->id.'" href="javascript:void(0)">Like</a>';
- }
- ?>
- </i>
-
- <i class="fa fa-mail-reply-all">
- <a href="#">Reply</a>
- </i>
-
- <i class="fa fa-comments">
- <a href="javascript:void(0)">View Comments</a>
- </i>
-
- <i class="fa fa-arrow-circle-o-right">
- <a href="javascript:void(0)">View Likes</a>
- </i>
- <?php if ($row->idusers == $this->session->userdata('id')) { ?>
-
- <i class="fa fa-times">
- <a class="delete" postid="<?=$row->id?>" href="javascript:void(0)">Delete</a>
- </i>
- </span>
- <?php } else {} ?>
- <br>
- </div>
- </article>
- <?php
- }
- } ?>
- </div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement