Пример #1
0
function article_replace($articleid, $arr)
{
    $article = article_read($articleid);
    if ($article) {
        $r = article_update($articleid, $arr);
    } else {
        $arr['articleid'] = $articleid;
        $r = article_create($arr);
    }
    return $r;
}
Пример #2
0
?>
 &raquo; <?php 
echo anchor(base_url(), article_portal($article));
?>
 &raquo; <?php 
echo $article->article_name;
?>
</div>
				<div id="terpusat-header">
					<h1 id="terpusat-title"><?php 
echo $article->article_name;
?>
</h1>
				</div>
				<div id="terpusat-meta" class="terpusat-meta">Dibuat Tanggal: <?php 
echo article_create($article->article_created);
?>
 | Penulis: <?php 
echo $article->author;
?>
</div>
				<div id="terpusat-content">
					<div style="padding:10px 0px;" class="col-md-12">
					<?php 
if (article_img($article)) {
    ?>
						<div style="margin-bottom:0px;" class="thumbnail">
							<img src="<?php 
    echo article_img($article);
    ?>
" alt="<?php