public function komentar($user, $komentar, $kutipan = null)
    {
        global $Parsedown;
        global $go, $db2, $izin;
        if (!empty($kutipan['isi'])) {
            $kutipan = sprintf('<pre class="kutipan"><p>Balasan dari <a href="%s">%s</a> > <a href="#komentar-%s">(lihat komentar asli)</a> <p> %s </pre>', $go->to('profil', 'lihat', $kutipan['uid']), $kutipan['username'], $komentar['parent'], $Parsedown->text($kutipan['isi']));
            $komentar['konten'] = $kutipan . $komentar['konten'];
        }
        $komentar = sprintf('
	<div class="row" id="komentar-%s">
        <div class="col-sm-2 full-10" style="width:60px; padding-top:20px;">
		    <div class="komentar_pengguna">
				<img src="%s" class="circle">
			</div>
		</div>

		<div class="col-sm-7 full-90">
            <div class="card">
				<h6 class="komenheader"><p class="namakomentar">
				<a href="%s">%s</a></p> mengomentari pada %s
				</h6>
              <div class="card-content komenkonten">
                <p>%s</p>
              </div>
			  <div class="komenfooter">
			  <a href="%s"><i class="fa fa-reply"> Balas</i></a>
			  </div>
            </div>
		</div>
	</div>	
		', $komentar['fid'], random_gravatar('50', $user['email']), $go->to('profil', 'lihat', $user['username']), $user['username'], date('l jS  F Y h:i A', $komentar['timestamp']), $Parsedown->text($komentar['konten']), $go->to($_GET['sub'], 'lihat', $_GET['hash'] . '&balaskomentar=' . $komentar['fid'] . '#balas'));
        return $komentar;
    }
Example #2
0
    $data = $db2->query($sql);
    $profil = $data->fetch();
    //			var_dump ($profil);
} else {
    echo $error->code(404);
    die;
}
?>
<div class="container">
		<div class="row center" style="padding-top:10px;">
        <?php 
echo $template->tombol($tombolproperti = array('label' => 'Ubah', 'aksi' => 'ubahakun', 'style' => 'float:right;', 'hash' => $_GET['hash']));
?>
        	<div class="col-md-12">
			 <img alt="" src="<?php 
echo random_gravatar('180', $profil['email']);
?>
" class="circle" style="max-width:1800px; border:5px #edece5 solid;">
             </div>
             <div class="col-md-12">
             <h5 class="header"><?php 
echo $profil['displayname'];
?>
</h5>
             <p><b>@<?php 
echo $profil['username'];
?>
</b></p>
             <p><i><?php 
echo $profil['tentang'];
?>