<?php if ($array_post_child) { foreach ($array_post_child as $data_wip) { if ($data_wip) { ?> <div class="media readmore-area listjudulonly"> <?php if ($data_wip['foto']) { ?> <div class="media-left"> <a href="<?php echo AutoLink($link_source, "page", "post", $data_wip['seo'], "", ""); ?> "> <img class="media-object thumbnail" width="100" src="<?php echo Thumbnail($data_wip['foto'], 250); ?> " alt="<?php echo MetaDiskrisi($data_wip['nama']); ?> "> </a> </div> <?php } ?> <div class="media-body"> <h4 class="media-heading"><a href="<?php echo AutoLink($link_source, "page", "post", $data_wip['seo'], "", ""); ?> "><?php
if ($halaman["foto"]) { $text_meta_foto = $halaman["foto"]; } //breadcrumb setting $breadcrumbs[] = array("text" => $halaman["judul_{$bhs_on}"], "href" => AutoLink($link_source, $route, $menu, $halaman['seo'], "", "")); ///////////// relasi setting $sql = "SELECT relasi.id_relasi as id, post.judul_{$bhs_on} as nama, post.foto, post.isi_{$bhs_on} as diskripsi, post.seo FROM relasi INNER JOIN post ON relasi.id_relasi=post.id WHERE id_post='" . $halaman['id'] . "'"; $data_datarelasi = RowData($sql, $conn); } ///////////////// $text_meta_title = "{$text_title} | {$web_title}"; if ($metadiskripsi) { $text_meta_discription = $metadiskripsi; } if ($halaman["foto"] != "") { $text_meta_foto = Thumbnail($halaman["foto"], 250); } $text_meta_keyword = $metakeyword; ////////////////////////////////////////////// //////////////////////// form control if ($logged) { if (isset($_POST['update-data'])) { foreach ($array_bahasa as $data_bhs) { if ($data_bhs) { $input_nama = FormSet($_POST['nama_' . $data_bhs['kode']]); $input_diskripsi = FormSet($_POST['diskripsi_' . $data_bhs['kode']]); $listnama[] = "nama_" . $data_bhs['kode'] . "='{$input_nama}', diskripsi_" . $data_bhs['kode'] . "='{$input_diskripsi}'"; } } $editkolom = implode(", ", $listnama); $sql = "UPDATE kategori SET {$editkolom} WHERE id='{$idpostingan}'";
echo $data_first['value']; ?> "/> <?php } ?> <?php if ($data_first['type'] == "IMG") { ?> <div class="wrap-pilih-galeri entryfoto-feature" > <div class="entryfoto"> <?php if ($data_first['value']) { ?> <img class="img-responsive" src="<?php echo Thumbnail($data_first['value'], 250); ?> " title="<?php echo $data_first['nama']; ?> " alt="<?php echo $data_first['nama']; ?> " /> <?php } ?> <input name="<?php echo $data_first['setting']; ?> " type="hidden" value="<?php
function Resizing($path, $filename) { $size = getimagesize($path . $filename); if (RESIZE_ON_UPLOAD == true) { $image_lib = new Image_lib(); $config = array(); $config['source_image'] = $path . $filename; $config['create_thumb'] = FALSE; $config['maintain_ratio'] = TRUE; if (intval(RESIZE_WIDTH) > 0) { $config['width'] = intval(RESIZE_WIDTH); } elseif (intval(RESIZE_HEIGHT) > 0) { //$config['width'] = floor($size[0] * (intval(RESIZE_HEIGHT) / $size[1])); } if (intval(RESIZE_HEIGHT) > 0) { $config['height'] = intval(RESIZE_HEIGHT); } elseif (intval(RESIZE_WIDTH) > 0) { //$config['height'] = floor($size[1] * (intval(RESIZE_WIDTH) / $size[0])); } $image_lib->initialize($config); $image_lib->resize(); } Thumbnail($path, $filename); }
<label class="nama-gbr"> <input type="checkbox" name="gambar<?php echo $sa; ?> " value="<?php echo $dir_images . $data_gbr; ?> " /> <input type="hidden" name="cache<?php echo $sa; ?> " value="<?php echo TanpaHosting(Thumbnail($dir_images . $data_gbr, 250)); ?> " /> <?php echo $data_gbr; ?> </label> <?php } else { ?> <div class="folder inside-folder thumbnail" data-value="<?php echo $dir_images_baru . $data_gbr . "/";