?>
    <script>
        dimatikan = 1;
        $(document).ready(function () {

            $(".navbar-default").css('background-color', '#fff');
            $(".navbar-default").css('border-bottom', '1px solid #dedede');
            $(".navbar-default .navbar-nav > li > a").css('color', '#2ca09c');
            $(".navbar-brand img").css('height', '50px');
        });
    </script>
<?php 
}
//sanitize text
$title = tot($blog->topic_title);
$msg = tot($blog->topic_msg);
?>
<style>
    .post h1{
        padding-bottom: 30px;
    }
</style>

<div style="padding-top: 100px; padding-bottom: 100px;" class="post">
    <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
        <?php 
if ($blog->topic_image != "") {
    ?>


                    <div class="bigimage"
    ?>
" width="100%">
                </a>
                <div class="gallery_name">
                    <a href="<?php 
    echo _LANGPATH;
    ?>
galleryfe/id/<?php 
    echo $ga->gallery_id;
    ?>
/<?php 
    echo tot_url($ga->gallery_name);
    ?>
">
                        <?php 
    echo tot($ga->gallery_name);
    ?>
                    </a>
                </div>
            </div>
        <?php 
}
?>


    </div>

</div>
<div class="clearfix" style="margin-bottom: 20px;"></div>

    <div class="col-md-8 col-md-offset-2">
        <h1><?php 
echo $entry->cal_name;
?>
</h1>
        <p>
            Mulai : <?php 
echo indonesian_date($entry->cal_begin);
?>
<br>
            Sampai : <?php 
echo indonesian_date($entry->cal_end);
?>
        </p>
        <p><?php 
echo tot($entry->cal_descr);
?>
</p>
        <p><?php 
echo $mytype->cal_type_name;
?>
</p>
        <div style="text-align: center; padding-top: 30px;">
            <button class="btn btn-default" style="width: 70%;">Daftar</button>
        </div>
    </div>
    <div class="clearfix"></div>
</div>

<?php 
/**
        $(".navbar-default").css('background-color', '#fff');
        $(".navbar-default").css('border-bottom', '1px solid #dedede');
        $(".navbar-default .navbar-nav > li > a").css('color', '#2ca09c');
        $(".navbar-brand img").css('height', '50px');
    });
</script>
<div style="padding-top: 100px;">
    <div class="col-md-7 col-md-offset-1">

    <?php 
foreach ($posts as $p) {
    //sanitize msg
    $text = strip_tags(tot($p->topic_msg));
    $text = setMaxChar($text, 100);
    $title = str_replace(" ", "_", tot($p->topic_title));
    ?>
    <div class="post-preview">

            <?php 
    if ($p->topic_image != "") {
        ?>
                <div class="col-md-4 col-sm-4 col-xs-4">
                    <a href="<?php 
        echo _LANGPATH;
        ?>
Blog/id/<?php 
        echo $p->topic_id;
        ?>
/<?php 
        echo $title;
            ?>
CalendarWeb/id/<?php 
            echo tot($e->cal_id);
            ?>
/<?php 
            echo urlencode($e->cal_name);
            ?>
"><?php 
            echo tot($e->cal_name);
            ?>
</a> </h3>


                <p><?php 
            if ($e->cal_descr != "") {
                echo setMaxChar(strip_tags(tot($e->cal_descr))) . "..";
            }
            ?>
</p>
                <?php 
            if ($allDay) {
                ?>
<p>An all day event</p><?php 
            }
            ?>
                <table>
                    <tr>
                        <td>
                            <?php 
            echo Lang::t('from');
            ?>