Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/asietex.co.id/public_html/application/modules/blog/views/template1/ |
Upload File : |
<br><br><br> <div class="blog wrapp2"> <h3 class="module_heading">ST-TOMS GADGET BLOG</h3> <div class="blog_box clearfix"> <?php foreach ($blogs as $blog) : ?> <div class="blog_item clearfix"> <div class="blog_item_img"><a href="<?= base_url() . 'blog/get/' . $blog->alias; ?>"><img src="<?= base_url() . 'uploads/blog/' . $blog->image1; ?>" alt=""></a></div> <div class="blog_item_desc"> <h3><strong><a href="<?= base_url() . 'blog/get/' . $blog->alias; ?>"><?= $blog->blog; ?></a></strong></h3> <?php //get publish date and explode to array $publish_date_array = explode('-', $blog->publish_date); $date = $publish_date_array[0]; $month = date('M', mktime(0, 0, 0, $publish_date_array[1], 10)); $year = $publish_date_array[2]; ?> <p style="margin-bottom:5px;"><?= $date; ?> <?= $month; ?> <?= $year; ?></p> <?php $output = strlen($blog->description) > 200 ? substr($blog->description,0,200)."..." : $blog->description; echo ucfirst($output); ?> <a href="<?= base_url() . 'blog/get/' . $blog->alias; ?>">Lihat Detail</a> </div> </div> <?php endforeach; ?> </div> </div>