whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
Web
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/Web/postview.php
<?php $CI =& get_instance(); $offset=$this->uri->segment(1); ?> <style> </style> <div class="row no-gutters inner-head"> <div class="col-sm text-center align-self-center"> <h5> <?php if(isset($postall)){ echo $title; }elseif($post[0]['post_cat']=='blog'){ echo "Blog"; }else{ $cnt=explode('|-|',$post[0]['content_head']); echo $post[0]['titlepost']." <span class='h6'>".$cnt[0]."</span>"; } ?> </h5> </div> </div> <div class="block"></div> <div class="inner-content"> <div class="container"> <div class="row"> <?php if(isset($postall)){ foreach ($postall as $key) { ?> <div class="container"> <div class="row"> <div class="col-sm-8"> <h4><?php echo $key['titlepost'];?></h4> <br> <strong><i><?php if($key['post_cat']=='news' || $key['post_cat']=='blog'){ echo date("d-M-Y", strtotime($key['post_date'])); } ?></i></strong><br> <?php if($key['post_cat']=="blog"){ echo substr($key['contentpost'],0,500)."...<br><br><a href='".base_url()."webcontroller/post/".urlencode($key['post_slug'])."'>Read More</a>"; }else{ echo $key['contentpost']; } ?> </div> <?php $ex = explode('/',$key['imagepath']); if($ex[1]!=""){ ?> <div class="col-sm"> <img class="d-block w-100" src="<?php echo base_url().$key['imagepath']; ?>"> </div> <?php } ?> </div> <hr> </div> <?php } } else{ ?> <div class="col-sm-8"> <?php if($post[0]['post_cat']=='blog'){ echo "<p class='h5'><strong><i class='fa fa-graduation-cap'></i> ".$post[0]['titlepost']."</strong></p><br>"; } if($post[0]['post_cat']=='news' || $post[0]['post_cat']=='blog') { ?> <p><strong><i>Published : <?php echo date("d-M-Y", strtotime($post[0]['post_date'])); ?></i></strong></p><br> <?php } ?> <?php //echo $post[0]['contentpost'];?> <?php //echo $post[0]['content_text']; $chead=explode('|-|',$post[0]['content_head']); $chead2 = array_reverse($chead); $ccontent=explode('|-|',$post[0]['contentpost']); $ccontent2 = array_reverse($ccontent); ?> <?php if(count($ccontent)==1){ echo $ccontent[0]; }else{ ?> <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <?php for($i=0; $i<count($chead2); $i++){ if($chead2[$i]!=''){ ?> <div class="panel panel-default inner-panel-default card"> <div class="panel-heading card-header" role="tab" id="" role="button" data-toggle="collapse" data-parent="#accordion" href="#<?php echo $i; ?>" aria-expanded="true" aria-controls="<?php echo $i; ?>"> <div class="my-panel-title"><p> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#<?php echo $i; ?>" aria-expanded="true" aria-controls="<?php echo $i; ?>"> <?php echo $chead2[$i]; ?> <i class="fa fa-plus fa-1x"></i> </a> </p></div> </div> <div id="<?php echo $i; ?>" class="panel-collapse collapse <?php if($i==0){echo "in";} ?>" role="tabpanel" aria-labelledby=""> <div class="panel-body card-body"> <?php echo $ccontent2[$i]; ?> </div> </div> </div> <?php } } ?> </div> <?php } ?> </div> <?php $ex = explode('/',$post[0]['imagepath']); if($ex[1]!=""){ ?> <div class="col-sm"> <?php if($post[0]['tblpost_id']==14){ echo "<a style='margin:0 auto; display:table;' href='#' class='btn btn-blue' data-toggle='modal' data-target='#bam'> <i class='fa fa-handshake-o' aria-hidden='true'></i> Become a Member</a>"; } ?> <img class="d-block w-100" src="<?php echo base_url().$post[0]['imagepath']; ?>"> </div> <?php } ?> <?php } ?> </div> </div> </div> <div class="block"></div>
Copyright ©2021 || Defacer Indonesia