.:: Menu Utama |
{section loop=$halaman name=i}
{/section}
|
{if $banner} {/if}
{if $smarty.get.hal == '' OR $smarty.get.hal == 'Home'} {if $smarty.get.NewsID ==''}
{if $content.Content}
{$content.Content}
|
{/if}
|
Berita Terbaru |
|
{section loop=$berita name=i}
{$berita[i].NewsTitle} |
{$berita[i].NewsContent|truncate:300} |
Ditulis oleh: {$berita[i].NewsAuthor} |
{$berita[i].CreatedDate} |
|
{/section}
{else}
|
Detail Berita |
|
{$berita.NewsTitle} |
{$berita.NewsContent} |
Ditulis oleh: {$berita.NewsAuthor} |
{$berita.CreatedDate} |
|
Komentar |
{section loop=$komentar name=i}
{$komentar[i].Komentar}
|
Dari: {$komentar[i].Nama} [{$komentar[i].Email}] |
{$komentar[i].CreatedDate} |
|
{/section}
Kirim Komentar |
{if $errorsx}
Error(s):
{section name=i loop=$errorsx}
{$errorsx[i]}
{/section}
|
{/if}
{if $smarty.get.x == 'OK' AND !$smarty.post}
Terima kasih, Komentar anda sudah terkirim dan dalam proses approval.
|
{/if}
{/if}{/if}
{if $smarty.get.hal == 'Arsip Berita'}
|
{$smarty.get.hal} |
|
|
{section loop=$berita name=i}
{$berita[i].NewsTitle} |
{$berita[i].NewsContent|truncate:300} |
Ditulis oleh: {$berita[i].NewsAuthor} |
{$berita[i].CreatedDate} |
|
{/section}
{elseif $smarty.get.hal == 'Galeri Foto'}
|
{$smarty.get.hal} |
|
{if $content.Content}{$content.Content}
{/if}{if $smarty.get.alb}{if $galeri}Album: {$AlbumName} ({$all->total_foto($smarty.get.alb)} Foto)
{section name=h loop=$galeri}
{math equation="x % 4" x=$smarty.section.h.index+1 assign="z"}
 |
{if $z==0} | {/if}
{/section}
{else}Tidak Ada Foto{/if}
{else}
{section name=h loop=$album}
 |
|
{/section}
{/if}
|
|
{else}
{if $smarty.get.hal != 'Home' AND $smarty.get.hal != ''}
|
{$smarty.get.hal} |
|
|
{/if}
{/if}{if $pages > 1}
{if $smarty.get.pg|default:1 > 1}
{math equation='b+a' a=$INTVL b=0 assign='btsbwh'}
{math equation='a - b' b=1 a=$smarty.get.pg|default:1 assign='pp'}
{if $smarty.get.pg >= $INTVL}
{math equation='a + b' a=$btsbwh b=$smarty.get.pg assign='bts'}
{if $bts >= $pages}
{math equation='a + b' a=0 b=$pages assign='bts'}
{/if}
{math equation='b-a' a=$BS b=$smarty.get.pg assign='btsats'}
{math equation='b+a' a=$BW b=$smarty.get.pg assign='btsbw'}
{math equation='b-a' a=1 b=$btsbw assign='tng'}
{else}
{if $pages >$INTVL}
{math equation='a + b' a=0 b=$INTVL assign='bts'}
{else}
{math equation='a + b' a=0 b=$pages assign='bts'}
{/if}
{/if}
Previous |
{/if}
{section name=i loop=$bts|default:$pages}
{if $smarty.get.pg|default:1 == %i.rownum%}[{%i.rownum%}]
{else}
{if $smarty.get.pg >= $INTVL}
{if %i.rownum% > $btsats AND %i.rownum% < $btsbw}
{%i.rownum%}
{/if}
{else}
{if %i.rownum% <= $INTVL}
{%i.rownum%}
{/if}
{/if}
{/if}
{if $smarty.get.pg >= $INTVL}
{if %i.rownum% > $btsats AND %i.rownum% != $tng AND %i.rownum% < $btsbw AND %i.rownum% != $pages AND %i.rownum% != $btsats} - {/if}
{else}
{if %i.rownum% <$INTVL}
{if %i.rownum% != $pages AND %i.rownum% != '$INTVL'} - {/if}
{/if}
{/if}
{/section}
{if $smarty.get.pg|default:1 < $pages}
{math equation='a + b' a=1 b = $smarty.get.pg|default:1 assign='np'}
| Next
{/if}
|
{/if}
|
{if $PollingQuestion}
{else} {/if}
user online: |
{$all->user_online()} |
Pengunjung hari ini: |
{$all->hit_counter('1', 'd')} |
Pengunjung bulan ini: |
{$all->hit_counter('2', 'm')} |
Total Pengunjung: |
{$all->hit_counter('3', 'x')} |
|