function mc_imagepost($postid) { $CI =& get_instance(); $CI->load->helper('posts_helper'); $feature = postTaxonomy($postid, "feature_image"); $sanite = imagePath($feature); $path = "./" . $sanite; if (file_exists($path)) { return base_url() . $sanite; } else { $konten = postInfo($postid, 'post_content'); $img = searchImageString($konten); return $img; } }
</h3> <div class="widget-tools pull-right"><a href="<?php echo base_url(routeGet('events', 'route_key')); ?> ">+ indexs</a></div> </div> <div class="widget-body"> <?php $para = array('post_type' => 'event'); $g = mc_allpost($para, "post_date DESC", "5"); if ($g['jumlah'] > 0) { foreach ($g['data'] as $r) { $tgl = ""; $jam = ""; $tglEvent = postTaxonomy($r->post_id, 'tanggal_event'); $jamEvent = postTaxonomy($r->post_id, 'jam_event'); if (!empty($tglEvent)) { $tgl = $tglEvent; } else { $tgl = ""; } if (!empty($jamEvent)) { $jam = $jamEvent; } else { $jam = ""; } $url = permalinkPost($r->post_id); $merge = $tgl . " " . $jam . ":00"; $konversi = date("d-M-Y H:i", strtotime($merge)); $jadwalNama = '<span class="widget-item-calendar">' . $konversi . '</span>'; $day = date("d", strtotime($merge));
function generateKeyword($route, $data) { $output = ''; $desc = ''; $key = ''; $titleDefault = strtolower(optionGet('site_title')); if ($route == "post") { $postid = $this->CI->m_database->fieldRow('posts', $data, 'post_id'); $desc = postInfo($postid, 'post_title'); $customKey = postTaxonomy($postid, 'keyword_custom'); if (!empty($customKey)) { $key = $customKey . "," . $titleDefault; } else { $key = strtoupper($title) . "," . $titleDefault; } } else { $desc = optionGet('site_description'); $key = $titleDefault; } $output .= '<meta name="description" content="' . $desc . '"/><meta name="keywords" content="' . $key . '"/>'; return $output; }
</div> </div> <?php if ($tipe == "post") { ?> <div class="box box-primary"> <div class="box-header with-border"> <h5 class="box-title">Feature Image</h5> <div class="box-tools pull-right"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> </div> </div> <div class="box-body"> <?php $feature = postTaxonomy($row->post_id, 'feature_image'); if (!empty($feature)) { ?> <img src="<?php echo urlApp() . $feature; ?> " class="thumbnail img-responsive" style="height: 300px"/> <?php } ?> <a href="javascript:;" onclick="openKCFinder('featureimage')">Set Feature Image</a> <input type="hidden" name="featureimage" id="featureimage" value="<?php echo $feature; ?> "/> </div>
?> "/> </div> <div class="form-group"> <label for="komen">Komentar</label> <?php echo inputCheckbox("komen", "komen", postTaxonomy($row->post_id, 'comment_system'), 'Aktifkan sistem Komentar pada berita ini.Jika konfigurasi global dinonaktifkan maka komentar tidak terlihat'); ?> </div> <div class="form-group"> <label></label> <?php $c1 = ''; $c2 = ''; $optStyle = postTaxonomy($row->post_id, 'view_style'); echo $optStyle; if ($optStyle == "sidebar") { $c1 = 'checked=""'; $c2 = ''; } elseif ($optStyle == "full") { $c2 = 'checked=""'; $c1 = ''; } ?> <div class="radio" style="display: none;"> <label class="radio-inline"> <input type="radio" name="tampilan" value="sidebar" <?php echo $c1; ?> /> Dengan Sidebar