JezK
Edit File: actions.php
<?php /* Please do not edit this file as it may cause errors. Melakukan modifikasi/edit pada file ini dapat menyebabkan error atau kerusakan fungsi dari theme. */ // Head add_action('wp_head', 'oketheme_head', 11); function oketheme_head() { global $oketheme; global $post; // Favicon if ($oketheme['favicon']['url'] != '') { ?> <link href="<?php echo $oketheme['favicon']['url']; ?>" rel="icon" /> <?php } else { ?> <link href="<?php echo get_template_directory_uri(); ?>/images/favicon.png" rel="icon"> <?php } // Responsive if ($oketheme['responsive_act']) { ?> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/responsive.css" media="all" /> <meta name="viewport" content="width=device-width, user-scalable=no" /> <?php } else { ?> <style type="text/css">#mainwrap {min-width: 1100px;}</style> <?php } // Open Graph if ($oketheme['og_act']) { if (is_home()) { ?> <meta property="og:title" content="<?php echo $oketheme['nama_web']; ?> - <?php echo $oketheme['slogan_web']; ?>" /> <meta property="og:type" content="website" /> <meta property="og:url" content="<?php echo home_url(); ?>" /> <meta property="og:image" content="<?php if ($oketheme['ogsrc_home'] == 'logo' && $oketheme['logo']['url']) { echo $oketheme['logo']['url'];} elseif ($oketheme['ogsrc_home'] == 'default' && $oketheme['ogimg_home']['url']) {echo $oketheme['ogimg_home']['url'];} else {echo get_template_directory_uri() . '/images/og.jpg';} ?>" /> <?php } else { ?> <meta property="og:title" content="<?php the_title(); ?>" /> <meta property="og:type" content="article" /> <meta property="og:url" content="<?php the_permalink(); ?>" /> <meta property="og:image" content="<?php if ($oketheme['ogsrc_post'] == 'fimage' && has_post_thumbnail()) {echo wp_get_attachment_url(get_post_thumbnail_id($post->ID));} elseif (rwmb_meta('url_img_aff')) {echo rwmb_meta('url_img_aff');} elseif ($oketheme['ogsrc_post'] == 'default' && $oketheme['ogimg_post']['url']) {echo $oketheme['ogimg_post']['url'];} else {echo get_template_directory_uri() . '/images/og.jpg';} ?>" /> <?php } } ?> <!-- CSS Modify --> <style type="text/css"> :root { --color1:<?php echo $oketheme['color_scheme']; ?>; --color2:<?php echo $oketheme['color_hover']; ?>; } .newsticker:after { content: '<?php echo $oketheme['newsticker_title'] ? $oketheme['newsticker_title'] : 'Informasi'; ?>'; } <?php if ($oketheme['layout'] == 'boxed') { ?> #mainwrap {max-width: var(--maxwidth)} :root { --autopad: 15px; } <?php } ?> <?php echo $oketheme['custom_css']; ?> </style> <!-- Header Code --> <?php echo isset($oketheme['header_code']) ? $oketheme['header_code'] : ''; ?> <!-- Google Webmaster --> <?php echo isset($oketheme['google_webmaster']) ? $oketheme['google_webmaster'] : ''; ?> <!-- Google Tag Manager --> <?php if ($oketheme['google_tag']) { ?> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','<?=$oketheme['google_tag']; ?>');</script> <?php } ?> <!-- Google Analytics --> <?php if ($oketheme['google_analytics']) { ?> <script async src="https://www.googletagmanager.com/gtag/js?id=<?=$oketheme['google_analytics'];?>"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '<?=$oketheme['google_analytics'];?>'); </script> <?php } ?> <!-- Google reCAPTCHA --> <?php if ($oketheme['captcha_act'] == 'gr') { ?> <script src='https://www.google.com/recaptcha/api.js'></script> <?php } } // Maintenance function maintenance_mode() { global $oketheme; if ($oketheme['maintenance_act']) { if (!current_user_can('edit_themes')) { die(' <div style="margin: 0;position: absolute;top: 50%;left: 50%;-ms-transform: translate(-50%, -50%);transform: translate(-50%, -50%);"> <div class="info" style="text-align:center;"> <h1 class="maintitle"> ' . $oketheme['maintenance_title'] . ' </h1> <div class="wrap-post"> ' . $oketheme['maintenance_text'] . ' </div> </div> </div>'); } else { echo '<div class="maintenis"><i class="glyphicon glyphicon-ok"></i> Maintenance Mode <u>Aktif</u></div>'; } } } // Auto Popup function autopopup() { global $oketheme; if ($oketheme['popup_act']) { ?> <a href="#autopopup" class="autopop"></a> <div id="autopopup" class="popup"> <?php //Facebook Fanpage if ($oketheme['popup_act'] == 'fb' && $oketheme['fanpage_popup']) { ?> <iframe src="https://www.facebook.com/plugins/page.php?href=<?php echo $oketheme['fanpage_popup']; ?>&tabs=messages&width=290&height=300&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true" width="290" height="300" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe> <?php } // Banner elseif ($oketheme['popup_act'] == 'img' && $oketheme['banner_popup']['url']) { if ($oketheme['url_banner_popup']) {?> <a href="<?php echo $oketheme['url_banner_popup']; ?>" target="blank"> <?php } if (isset($oketheme['banner_popup']['url'])) { ?> <img src="<?=$oketheme['banner_popup']['url']; ?>" width="<?=$oketheme['banner_popup']['width']; ?>" height="<?=$oketheme['banner_popup']['height']; ?>"> <?php } if ($oketheme['url_banner_popup']) { ?> </a> <?php } ?> <?php } // Youtube Video elseif ($oketheme['popup_act'] == 'video' && $oketheme['video_popup']) { ?> <iframe width="500" height="280" src="https://www.youtube.com/embed/<?=substr(parse_url($oketheme['video_popup'], PHP_URL_PATH), 0); ?>?autoplay=0&rel=0" frameborder="0" allowfullscreen></iframe> <?php } // Tiktok elseif ($oketheme['popup_act'] == 'tiktok' && $oketheme['tiktok_popup']) { ?> <?php $tik = json_decode(ocurl('https://www.tiktok.com/oembed?url=' . $oketheme['tiktok_popup']), true); echo $tik['html'];?> <?php } // HTML elseif ($oketheme['popup_act'] == 'html' && $oketheme['htmlpopup']) { echo $oketheme['htmlpopup']; ?> <?php } ?> </div> <?php } } // Contact Popup function contact() { global $oketheme; ?> <div id="kontak"> <?php if ($oketheme['translate'] == 'id') { ?> <h2>Kontak Kami</h2> <p>Apabila ada yang ditanyakan, silahkan hubungi kami melalui kontak di bawah ini.</p> <?php } else { ?> <h2>Contact Us</h2> <p>If you have any questions, please contact us.</p> <?php } ?> <ul> <?php if ($oketheme['hotline']) { ?> <li class="ktelp"> <h4>Hotline</h4> <a href="tel:<?php echo $oketheme['hotline']; ?>" title="Klik untuk telpon langsung"> <span class="kontek"> <?php echo $oketheme['hotline']; ?> </span> </a> </li> <?php } if ($oketheme['wa']) { ?> <li class="kwa"> <h4>Whatsapp</h4> <a href="https://api.whatsapp.com/send?phone=<?php echo indowa($oketheme['wa']); ?>&text=Halo,%20customer%20service%20<?php echo $oketheme['nama_web']; ?>..." target="blank" title="Klik untuk chat via Whatsapp"> <span class="kontek"> <?php echo $oketheme['wa']; ?> </span> </a> </li> <?php } if ($oketheme['mess']) { ?> <li class="kmess"> <h4>Messenger</h4> <a href="bbmi://<?php echo $oketheme['mess']; ?>" title="Klik untuk chat via Messenger"> <span class="kontek"> <?php echo $oketheme['mess']; ?> </span> </a> </li> <?php } if ($oketheme['bbm']) { ?> <li class="kbbm"> <h4>PIN BBM</h4> <a href="bbmi://<?php echo $oketheme['bbm']; ?>" title="Klik untuk invite pin BBM"> <span class="kontek"> <?php echo $oketheme['bbm']; ?> </span> </a> </li> <?php } if ($oketheme['line']) { ?> <li class="kline"> <h4>LINE ID</h4> <span class="kontek"> <?php echo $oketheme['line']; ?> </span> </li> <?php } if ($oketheme['email_cs']) { ?> <li class="kemail"> <h4>Email</h4> <a href="mailto:<?php echo $oketheme['email_cs']; ?>" title="Klik untuk kirim email"> <span class="kontek"> <?php echo $oketheme['email_cs']; ?> </span> </a> </li> <?php } ?> </ul> </div> <?php } function sidecontact() { global $oketheme; if ($oketheme['sidecontact_act']) {?> <div class="sidecontact"> <div class="onlinex blink">⚫ Online</div> <?php if ($oketheme['wa']) { ?> <a href="https://api.whatsapp.com/send?phone=<?php echo indowa($oketheme['wa']); ?>&text=Halo, customer service <?php echo $oketheme['nama_web']; ?>..." title="Whatsapp" target="blank"> <div class="live"><img width="30" src="<?php echo get_template_directory_uri(); ?>/images/wa.png"></div> </a> <?php } if ($oketheme['hotline']) { ?> <a href="tel:<?php echo $oketheme['hotline']; ?>" title="Telepon"> <div class="live"><img width="30" src="<?php echo get_template_directory_uri(); ?>/images/telp.png"></div> </a> <?php } if ($oketheme['mess']) { ?> <a href="https://m.me/<?php echo $oketheme['mess']; ?>" title="Messenger" target="blank"> <div class="live"><img width="30" src="<?php echo get_template_directory_uri(); ?>/images/mess.png"></div> </a> <?php } ?> </div> <?php } } // Form Pemesanan ID function pesantour() { global $oketheme; global $post;?> <div id="pesantour"> <h2><i class="glyphicon glyphicon-check"></i> Checkout</h2> <div id="tourreview"> <h3>Detail Tour</h3> <?php if (has_post_thumbnail()) { the_post_thumbnail('l350'); } else { ?> <img width="350" height="220" src="<?php echo get_template_directory_uri(); ?>/images/350.jpg" alt="<?php the_title(); ?>"> <?php } ?> <p style="padding:5px;"> <strong><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></strong><br /> <?php the_terms($post->ID, 'destinasi', '<i class="glyphicon glyphicon-map-marker t1"></i>', ', ', ' '); ?><br /> <?php the_terms($post->ID, 'durasi', '<i class="glyphicon glyphicon-time t1"></i>', ', ', ' '); ?><br /> <strong class="pilihpick t2"></strong> </p> <table> <tr> <td valign="top" class="tede1"><strong>Berangkat</strong></td> <td valign="top" class="tede2"><span class="datetext"></span></td> </tr> <tr> <td valign="top" class="tede1"><strong>Tamu</strong></td> <td valign="top" class="tede2"><span class="guesttext"></span> Orang</td> </tr> <tr> <td valign="top" class="tede1"><strong>Harga</strong></td> <td valign="top" class="tede2"> <?php echo $oketheme['currency'] ?> <span class="hargatour"></span> /<span class="vsmall"><?php echo $oketheme['t_pax']; ?></span> </td> </tr> </table> <div class="tedetotal" style="display:block;margin-top:20px"> <strong>Total</strong> <strong style="font-size:110%" class="t2"> <?php echo $oketheme['currency'] ?> <span class="hargatotal"></span> </strong> </div> </div> <form action="<?php the_permalink(); ?>" id="tourform" method="post"> <h3>Detail Pemesan</h3> <div class="elementgroup"> <div class="elementwrap"> <div class="element1"> <label>Titel</label> <select name="titel_cust" required> <option value="Tuan">Tuan</option> <option value="Nyonya">Nyonya</option> <option value="Nona">Nona</option> </select> </div> <div class="element2"> <label>Nama Depan</label> <input id="nama1_cust" name="nama1_cust" type="text" value="<?php echo isset($_POST["nama1_cust"]) ? $_POST["nama1_cust"] : ''; ?>" placeholder="Masukkan nama depan" required /> </div> <div class="element2"> <label>Nama Belakang</label> <input name="nama2_cust" type="text" value="<?php echo isset($_POST["nama2_cust"]) ? $_POST["nama2_cust"] : ''; ?>" placeholder="Masukkan nama belakang" required /> </div> </div> <div class="elementwrap"> <div class="element3"> <label>Nomor Telepon/HP</label> <input name="hp_cust" type="text" value="<?php echo isset($_POST["hp_cust"]) ? $_POST["hp_cust"] : ''; ?>" placeholder="Masukkan no. telepon/hp" required /> </div> <div class="element3"> <label>Alamat Email</label> <input name="email_cust" type="text" value="<?php echo isset($_POST["email_cust"]) ? $_POST["email_cust"] : ''; ?>" placeholder="Masukkan alamat email" required /> </div> </div> </div> <?php if ($oketheme['guestlist']['yes']) { ?> <h3>Detail Tamu</h3> <div class="warning small tred">*Pastikan pengisian nama tamu sama persis dengan identitas yang masih berlaku.</div> <div class="copycheck"><input type="checkbox" name="copycheck" onchange="copyCust(this);" /> Sama dengan pemesan</div> <div id="guestlist" style="margin-top:10px;"></div> <?php } ?> <?php if ($oketheme['dp_act']) { ?> <h3>Pembayaran</h3> <div class="elementgroup"> <select id="dp" name="dp" required> <option value="100" selected>Pembayaran penuh</option> <option value="<?php echo $oketheme['dp']; ?>">Uang muka <?php echo $oketheme['dp']; ?>%</option> </select> </div> <?php } else { ?> <input type="hidden" name="dp" value="100" /> <?php } ?> <textarea style="margin-top:30px;" name="pesan_cust" rows="3" placeholder="Anda dapat menuliskan keterangan tambahan, bila perlu."></textarea> <?php if ($oketheme['captcha_act'] == 'php') { ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/captcha.php?rand=<?php echo rand(); ?>" id='captchaimg'> <input type="text" id="captcha_code" name="captcha_code" placeholder="Kode keamanan/antispam"> <div style="clear:both" class="small">Kode Keamanan tidak terbaca? <a href="javascript:void(0);" onClick="refresh_captcha();">Refresh</a></div> <?php } elseif ($oketheme['captcha_act'] == 'gr') { ?> <div style="margin-top:10px" class="g-recaptcha" data-sitekey="<?php echo $oketheme['gr_sitekey']; ?>"></div> <?php } ?> <p class="small" style="margin-top:30px"> Dengan klik "Proses Pemesanan" saya menyatakan data telah sesuai identitas yang masih berlaku. Saya juga telah membaca dan menyetujui <b>Syarat & Ketentuan</b> layanan di website ini. </p> <button id="tombolform" type="submit" class="ibtn"><i class="glyphicon glyphicon-ok"></i> Proses Pemesanan</button> <input type="hidden" name="judultour" value="<?php the_title(); ?>" /> <input type="hidden" name="urltour" value="<?php the_permalink(); ?>" /> <input type="hidden" name="imgtour" value="<?php the_post_thumbnail_url('thumbnail'); ?>" /> <input type="hidden" id="hargatour" name="hargatour" value="<?php harga_input(); ?>" /> <input type="hidden" id="depe" name="depe" value="" /> <input type="hidden" id="sdepe" name="sdepe" value="" /> <input type="hidden" id="b4disc" name="b4disc" value="<?php harga_input(); ?>" /> <input type="hidden" id="pil" name="pil" value="" /> <input type="hidden" id="dateval" name="datetour" value="" /> <input type="hidden" id="guestval" name="tamu" value="" /> <input type="hidden" id="durasi" name="durasi" value="<?php $durasi = get_the_terms($post->ID, 'durasi');if ($durasi) {foreach ($durasi as $x) {echo $x->name . ' ';}} ?>" /> <input type="hidden" id="hargatotal" name="hargatotal" value="" /> <input type="hidden" name="checking" value="<?php echo random_id(20); ?>" /> <input type="hidden" name="invoice" style="text-transform:uppercase" value="<?php echo random_id(7); ?>" /> <input type="hidden" name="submitted" id="submitted" value="true" /> </form> </div> <?php } // Pemesanan EN function pesantour_en() { global $oketheme; global $post; ?> <div id="pesantour"> <h2><i class="glyphicon glyphicon-check"></i> Checkout</h2> <div id="tourreview"> <h3><i class="glyphicon glyphicon-tree-conifer"></i> Tour Detail</h3> <?php if (has_post_thumbnail()) { the_post_thumbnail('l350'); } else { ?> <img width="350" height="220" src="<?php echo get_template_directory_uri(); ?>/images/350.jpg" alt="<?php the_title(); ?>"> <?php } ?> <p style="padding:5px;"> <strong><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></strong><br /> <?php the_terms($post->ID, 'destinasi', '<i class="glyphicon glyphicon-map-marker t1"></i>', ', ', ' '); ?><br /> <?php the_terms($post->ID, 'durasi', '<i class="glyphicon glyphicon-time t1"></i>', ', ', ' '); ?><br /> <strong class="pilihpick t2"></strong> </p> <table> <tr> <td valign="top" class="tede1"><strong>Date of Trip</strong></td> <td valign="top" class="tede2"><span class="datetext"></span></td> </tr> <tr> <td valign="top" class="tede1"><strong>Guest</strong></td> <td valign="top" class="tede2"><span class="guesttext"></span> Person</td> </tr> <tr> <td valign="top" class="tede1"><strong>Price</strong></td> <td valign="top" class="tede2"> <?php echo $oketheme['currency'] ?> <span class="hargatour"></span> /<span class="vsmall"><?php echo $oketheme['t_pax']; ?></span> </td> </tr> </table> <div class="tedetotal" style="display:block;margin-top:20px"> <strong>Total</strong> <strong style="font-size:110%" class="t2"> <?php echo $oketheme['currency'] ?> <span class="hargatotal"></span> </strong> </div> </div> <form action="<?php the_permalink(); ?>" id="tourform" method="post"> <h3>Contact Information</h3> <div class="elementgroup"> <div class="elementwrap"> <div class="element1"> <label>Title</label> <select name="titel_cust" required> <option value="Mr.">Mr.</option> <option value="Mrs.">Mrs.</option> <option value="Ms.">Ms.</option> </select> </div> <div class="element2"> <label>First Name</label> <input id="nama1_cust" name="nama1_cust" type="text" value="<?php echo isset($_POST["nama1_cust"]) ? $_POST["nama1_cust"] : ''; ?>" placeholder="Input your first name" required /> </div> <div class="element2"> <label>Last Name</label> <input name="nama2_cust" type="text" value="<?php echo isset($_POST["nama2_cust"]) ? $_POST["nama2_cust"] : ''; ?>" placeholder="Input your last name" required /> </div> </div> <div class="elementwrap"> <div class="element3"> <label>Phone</label> <input name="hp_cust" type="text" value="<?php echo isset($_POST["hp_cust"]) ? $_POST["hp_cust"] : ''; ?>" placeholder="Input your phone number" required /> </div> <div class="element3"> <label>Email Address</label> <input name="email_cust" type="text" value="<?php echo isset($_POST["email_cust"]) ? $_POST["email_cust"] : ''; ?>" placeholder="Input your email address" required /> </div> </div> </div> <?php if ($oketheme['guestlist']['yes']) { ?> <h3>Guest Information</h3> <div class="warning small tred">*Guest name as on ID card/passport/driving license</div> <div class="copycheck"><input type="checkbox" name="copycheck" onchange="copyCust(this);" /> Same as above detail</div> <div id="guestlist_en" style="margin-top:10px;"></div> <?php } ?> <?php if ($oketheme['dp_act']) { ?> <h3>Payment</h3> <div class="elementgroup"> <select id="dp" name="dp" required> <option value="100" selected>Full payment</option> <option value="<?php echo $oketheme['dp']; ?>">Down payment <?php echo $oketheme['dp']; ?>%</option> </select> </div> <?php } else { ?> <input type="hidden" name="dp" value="100" /> <?php } ?> <textarea style="margin-top:30px;" name="pesan_cust" rows="3" placeholder="You can write additional information, if necessary."></textarea> <?php if ($oketheme['captcha_act'] == 'php') { ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/captcha.php?rand=<?php echo rand(); ?>" id='captchaimg'> <input type="text" id="captcha_code" name="captcha_code" placeholder="Kode keamanan/antispam"> <div style="clear:both" class="small">Unreadable security code? <a href="javascript:void(0);" onClick="refresh_captcha();">Refresh</a></div> <?php } elseif ($oketheme['captcha_act'] == 'gr') { ?> <div style="margin-top:10px" class="g-recaptcha" data-sitekey="<?php echo $oketheme['gr_sitekey']; ?>"></div> <?php } ?> <p class="small" style="margin-top:30px"> By clicking "Process My Order" button I certify the data has been valid identity. I have also read and agree to the <b> Terms & Conditions </b> on this website. </p> <button id="tombolform" type="submit" class="ibtn"><i class="glyphicon glyphicon-ok"></i> Process My Order</button> <input type="hidden" name="judultour" value="<?php the_title(); ?>" /> <input type="hidden" name="urltour" value="<?php the_permalink(); ?>" /> <input type="hidden" name="imgtour" value="<?php the_post_thumbnail_url('thumbnail'); ?>" /> <input type="hidden" id="hargatour" name="hargatour" value="<?php harga_input(); ?>" /> <input type="hidden" id="depe" name="depe" value="" /> <input type="hidden" id="sdepe" name="sdepe" value="" /> <input type="hidden" id="b4disc" name="b4disc" value="<?php harga_input(); ?>" /> <input type="hidden" id="pil" name="pil" value="" /> <input type="hidden" id="dateval" name="datetour" value="" /> <input type="hidden" id="guestval" name="tamu" value="" /> <input type="hidden" id="durasi" name="durasi" value="<?php $durasi = get_the_terms($post->ID, 'durasi');if ($durasi) {foreach ($durasi as $x) {echo $x->name . ' ';}} ?>" /> <input type="hidden" id="hargatotal" name="hargatotal" value="" /> <input type="hidden" name="checking" value="<?php echo random_id(20); ?>" /> <input type="hidden" name="invoice" style="text-transform:uppercase" value="<?php echo random_id(7); ?>" /> <input type="hidden" name="submitted" id="submitted" value="true" /> </form> </div> <?php } // Konfirmasi function konfirmasi_form() { global $oketheme; if ($oketheme['translate'] == 'id') { ?> <h2>Formulir Konfirmasi</h2> <p>Isi data dengan benar untuk mempermudah kami memverifikasi konfirmasi Anda</p> <div class="info"> <form action="<?=site_url() . '/konfirmasi'; ?>" id="konform" method="post"> <div class="depoket"> <input name="invoice" type="text" value="<?=isset($_POST["invoice"]) ? $_POST["invoice"] : ''; ?>" placeholder="Invoice Id" /> <input name="tgl_transfer" id="datepicker" type="text" value="<?=isset($_POST["tgl_transfer"]) ? $_POST["tgl_transfer"] : ''; ?>" placeholder="Tanggal Transfer" /> <input name="jmlh_transfer" type="text" value="<?=isset($_POST["jmlh_transfer"]) ? $_POST["jmlh_transfer"] : ''; ?>" placeholder="Jumlah Transfer, contoh: 500.000" /> <select name="rek_tujuan" /> <option value="" selected disabled>Tujuan Transfer</option> <?php if ($oketheme['bca_act']) { ?> <option value="BCA|bca">BCA - <?php echo $oketheme['norek_bca']; ?> an. <?php echo $oketheme['nama_bca']; ?> </option> <?php } ?> <?php if ($oketheme['mandiri_act']) { ?> <option value="Mandiri|mandiri">Mandiri - <?php echo $oketheme['norek_mandiri']; ?> an. <?php echo $oketheme['nama_mandiri']; ?> </option> <?php } ?> <?php if ($oketheme['bri_act']) { ?> <option value="BRI|bri">BRI - <?php echo $oketheme['norek_bri']; ?> an. <?php echo $oketheme['nama_bri']; ?> </option> <?php } ?> <?php if ($oketheme['bni_act']) { ?> <option value="BNI|bni">BNI - <?php echo $oketheme['norek_bni']; ?> an. <?php echo $oketheme['nama_bni']; ?> </option> <?php } ?> <?php if ($oketheme['bank1_act']) { ?> <option value="<?php echo $oketheme['bank1']; ?>|bank1"><?php echo $oketheme['bank1']; ?> - <?php echo $oketheme['norek_bank1']; ?> an. <?php echo $oketheme['nama_bank1']; ?></option> <?php } ?> <?php if ($oketheme['bank2_act']) { ?> <option value="<?php echo $oketheme['bank2']; ?>|bank2"><?php echo $oketheme['bank2']; ?> - <?php echo $oketheme['norek_bank2']; ?> an. <?php echo $oketheme['nama_bank2']; ?></option> <?php } ?> </select> </div> <input name="nama_cust" type="text" value="<?php echo isset($_POST["nama_cust"]) ? $_POST["nama_cust"] : ''; ?>" placeholder="Nama Lengkap Anda" /> <input name="hp_cust" type="text" value="<?php echo isset($_POST["hp_cust"]) ? $_POST["hp_cust"] : ''; ?>" placeholder="Nomor HP Anda" /> <input name="email_cust" type="text" value="<?php echo isset($_POST["email_cust"]) ? $_POST["email_cust"] : ''; ?>" placeholder="Email Anda *harus valid" /> <textarea name="pesan_cust" rows="3" placeholder="Anda dapat menuliskan keterangan tambahan, bila perlu."></textarea> <?php if ($oketheme['captcha_act'] == 'php') { ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/captcha.php?rand=<?php echo rand(); ?>" id='captchaimg'> <input type="text" id="captcha_code" name="captcha_code" placeholder="Kode keamanan/antispam"> <div style="clear:both" class="small">Kode Keamanan tidak terbaca? <a href="javascript:void(0);" onClick="refresh_captcha();">Refresh</a></div> <?php } elseif ($oketheme['captcha_act'] == 'gr') { ?> <div class="g-recaptcha" data-sitekey="<?php echo $oketheme['gr_sitekey']; ?>"></div> <?php } ?> <input type="hidden" name="txn_id" value="<?php echo random_id(20); ?>" /> <input type="hidden" name="submitted" id="submitted" value="true" /> <button id="tombolform" class="ibtn" type="submit"><i class="glyphicon glyphicon-ok"></i> Submit Konfirmasi</button> </form> </div> <?php } else { ?> <h2>Payment Confirmation</h2> <p>Fill data correctly to make it easier for us to verify your payment.</p> <div class="info"> <form action="<?=site_url() . '/konfirmasi'; ?>" id="konform" method="post"> <div class="depoket"> <input name="invoice" type="text" value="<?=isset($_POST["invoice"]) ? $_POST["invoice"] : ''; ?>" placeholder="Invoice Id" /> <input name="tgl_transfer" id="datepicker" type="text" value="<?=isset($_POST["tgl_transfer"]) ? $_POST["tgl_transfer"] : ''; ?>" placeholder="Date of transfer" /> <input name="jmlh_transfer" type="text" value="<?=isset($_POST["jmlh_transfer"]) ? $_POST["jmlh_transfer"] : ''; ?>" placeholder="Transfer amount, ex: 500.000" /> <select name="rek_tujuan" /> <option value="" selected disabled>Transfer to</option> <?php if ($oketheme['bca_act']) { ?> <option value="BCA|bca">BCA - <?php echo $oketheme['norek_bca']; ?> an. <?php echo $oketheme['nama_bca']; ?> </option> <?php } ?> <?php if ($oketheme['mandiri_act']) { ?> <option value="Mandiri|mandiri">Mandiri - <?php echo $oketheme['norek_mandiri']; ?> an. <?php echo $oketheme['nama_mandiri']; ?> </option> <?php } ?> <?php if ($oketheme['bri_act']) { ?> <option value="BRI|bri">BRI - <?php echo $oketheme['norek_bri']; ?> an. <?php echo $oketheme['nama_bri']; ?> </option> <?php } ?> <?php if ($oketheme['bni_act']) { ?> <option value="BNI|bni">BNI - <?php echo $oketheme['norek_bni']; ?> an. <?php echo $oketheme['nama_bni']; ?> </option> <?php } ?> <?php if ($oketheme['bank1_act']) { ?> <option value="<?php echo $oketheme['bank1']; ?>|bank1"><?php echo $oketheme['bank1']; ?> - <?php echo $oketheme['norek_bank1']; ?> an. <?php echo $oketheme['nama_bank1']; ?></option> <?php } ?> <?php if ($oketheme['bank2_act']) { ?> <option value="<?php echo $oketheme['bank2']; ?>|bank2"><?php echo $oketheme['bank2']; ?> - <?php echo $oketheme['norek_bank2']; ?> an. <?php echo $oketheme['nama_bank2']; ?></option> <?php } ?> </select> </div> <input name="nama_cust" type="text" value="<?php echo isset($_POST["nama_cust"]) ? $_POST["nama_cust"] : ''; ?>" placeholder="Your name" /> <input name="hp_cust" type="text" value="<?php echo isset($_POST["hp_cust"]) ? $_POST["hp_cust"] : ''; ?>" placeholder="Phone number" /> <input name="email_cust" type="text" value="<?php echo isset($_POST["email_cust"]) ? $_POST["email_cust"] : ''; ?>" placeholder="Email address" /> <textarea name="pesan_cust" rows="3" placeholder="You can write additional information, if necessary."></textarea> <?php if ($oketheme['captcha_act'] == 'php') { ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/captcha.php?rand=<?php echo rand(); ?>" id='captchaimg'> <input type="text" id="captcha_code" name="captcha_code" placeholder="Kode keamanan/antispam"> <div style="clear:both" class="small">Kode Keamanan tidak terbaca? <a href="javascript:void(0);" onClick="refresh_captcha();">Refresh</a></div> <?php } elseif ($oketheme['captcha_act'] == 'gr') { ?> <div class="g-recaptcha" data-sitekey="<?php echo $oketheme['gr_sitekey']; ?>"></div> <?php } ?> <input type="hidden" name="txn_id" value="<?php echo random_id(20); ?>" /> <input type="hidden" name="submitted" id="submitted" value="true" /> <button id="tombolform" class="ibtn" type="submit"><i class="glyphicon glyphicon-ok"></i> Submit Now!</button> </form> </div> <?php } } // Rekening Bank function rekbank() { global $oketheme;?> <?php if ($oketheme['bca_act']) { ?> <div class="banx"> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/bca.jpg"> <h4>BCA</h4>An. <?php echo $oketheme['nama_bca']; ?><br /> <?php echo $oketheme['norek_bca']; ?> </div> <?php } if ($oketheme['mandiri_act']) { ?> <div class="banx"> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/mandiri.jpg"> <h4>Mandiri</h4>An. <?php echo $oketheme['nama_mandiri']; ?><br /> <?php echo $oketheme['norek_mandiri']; ?> </div> <?php } if ($oketheme['bri_act']) { ?> <div class="banx"> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/bri.jpg"> <h4>BRI</h4>An. <?php echo $oketheme['nama_bri']; ?><br /> <?php echo $oketheme['norek_bri']; ?> </div> <?php } if ($oketheme['bni_act']) { ?> <div class="banx"> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/bni.jpg"> <h4>BNI</h4>An. <?php echo $oketheme['nama_bni']; ?><br /> <?php echo $oketheme['norek_bni']; ?> </div> <?php } if ($oketheme['bank1_act']) { ?> <div class="banx"> <?php if ($oketheme['bank1_img']['url'] != '') { ?><img src="<?php echo $oketheme['bank1_img']['url']; ?>"><?php } ?> <h4> <?php echo $oketheme['bank1']; ?> </h4>An. <?php echo $oketheme['nama_bank1']; ?><br /> <?php echo $oketheme['norek_bank1']; ?> </div> <?php } if ($oketheme['bank2_act']) { ?> <div class="banx"> <?php if ($oketheme['bank2_img']['url'] != '') { ?><img src="<?php echo $oketheme['bank2_img']['url']; ?>"><?php } ?> <h4> <?php echo $oketheme['bank2']; ?> </h4>An. <?php echo $oketheme['nama_bank2']; ?><br /> <?php echo $oketheme['norek_bank2']; ?> </div> <?php } } // Rekening Bank sidebar function rekbank_side() { global $oketheme; ?> <div class="sidecontain banxs"> <?php if ($oketheme['bca_act']) { ?> <div> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/bca.jpg"> <h4>BCA</h4>An. <?php echo $oketheme['nama_bca']; ?><br /> <?php echo $oketheme['norek_bca']; ?> </div> <?php } if ($oketheme['mandiri_act']) { ?> <div> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/mandiri.jpg"> <h4>Mandiri</h4>An. <?php echo $oketheme['nama_mandiri']; ?><br /> <?php echo $oketheme['norek_mandiri']; ?> </div> <?php } if ($oketheme['bri_act']) { ?> <div> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/bri.jpg"> <h4>BRI</h4>An. <?php echo $oketheme['nama_bri']; ?><br /> <?php echo $oketheme['norek_bri']; ?> </div> <?php } if ($oketheme['bni_act']) { ?> <div> <img src="<?php echo get_template_directory_uri(); ?>/images/bank/bni.jpg"> <h4>BNI</h4>An. <?php echo $oketheme['nama_bni']; ?><br /> <?php echo $oketheme['norek_bni']; ?> </div> <?php } if ($oketheme['bank1_act']) { ?> <div> <?php if ($oketheme['bank1_img']['url'] != '') { ?><img src="<?php echo $oketheme['bank1_img']['url']; ?>"><?php } ?> <h4> <?php echo $oketheme['bank1']; ?> </h4>An. <?php echo $oketheme['nama_bank1']; ?><br /> <?php echo $oketheme['norek_bank1']; ?> </div> <?php } if ($oketheme['bank2_act']) { ?> <div> <?php if ($oketheme['bank2_img']['url'] != '') { ?><img src="<?php echo $oketheme['bank2_img']['url']; ?>"><?php } ?> <h4> <?php echo $oketheme['bank2']; ?> </h4>An. <?php echo $oketheme['nama_bank2']; ?><br /> <?php echo $oketheme['norek_bank2']; ?> </div> <?php } ?> </div> <?php } // Slider function sliders() { global $oketheme; if ($oketheme['slider_act']) { ?> <div id="slider" class="owl-carousel"> <?php foreach ($oketheme['slider'] as $slide) { if (!empty($slide['image'])) { ?> <div class="slider"> <?php if ($slide['url'] != '') { ?> <a href="<?php echo $slide['url']; ?>" target="blank"> <img src="<?php echo $slide['image']; ?>" /> </a> <?php } else { ?> <img src="<?php echo $slide['image']; ?>" /> <?php } ?> </div> <?php } } ?> </div> <?php } } // Headsingle function headsingle() { global $oketheme;?> <div id="headback"> <div class="titleheader"> <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> <p class="medium"> <i class="glyphicon glyphicon-calendar"></i> <?php the_time('j F Y'); ?> <i class="glyphicon glyphicon-eye-open" style="margin-left:15px"></i> <?php echo getPostViews(get_the_ID()); ?>x <i class="glyphicon glyphicon-folder-open" style="margin-left:15px"></i> <?php the_category(', '); ?> </p> </div> </div> <?php } // Tour Search Form function tourswhy() { global $oketheme; if (($oketheme['toursearch_act']) || ($oketheme['whyus_act'])) { ?> <div id="headback" style="padding:0" class="athome"> <?php if (($oketheme['toursearch_act']) && ($oketheme['tour_on']['home'])) { tour_search(); } if ($oketheme['whyus_act']) { ?> <div class="whypad"> <div class="why"> <?php if (!empty($oketheme['whyicon1']['url'])) {echo '<img src="' . $oketheme['whyicon1']['url'] . '">';} ?> <h2> <?php echo $oketheme['whytitle1']; ?> </h2> <p> <?php echo $oketheme['whytext1']; ?> </p> </div> <div class="why"> <?php if (!empty($oketheme['whyicon2']['url'])) {echo '<img src="' . $oketheme['whyicon2']['url'] . '">';} ?> <h2> <?php echo $oketheme['whytitle2']; ?> </h2> <p> <?php echo $oketheme['whytext2']; ?> </p> </div> <div class="why"> <?php if (!empty($oketheme['whyicon3']['url'])) {echo '<img src="' . $oketheme['whyicon3']['url'] . '">';} ?> <h2> <?php echo $oketheme['whytitle3']; ?> </h2> <p> <?php echo $oketheme['whytext3']; ?> </p> </div> <div class="why"> <?php if (!empty($oketheme['whyicon4']['url'])) {echo '<img src="' . $oketheme['whyicon4']['url'] . '">';} ?> <h2> <?php echo $oketheme['whytitle4']; ?> </h2> <p> <?php echo $oketheme['whytext4']; ?> </p> </div> </div> <?php } ?> </div> <?php } } function tour_search(){ global $oketheme;?> <div class="tourc"> <?php if(is_home() && !is_custom_page()) {?> <div class="tourt"> <i class="glyphicon glyphicon-search"></i> <b><?php echo $oketheme['t_caritour']; ?></b> </div><br /> <?php } ?> <div class="tourcs"> <b><?php echo $oketheme['translate']=='id'?"Pilih Kategori":"Choose Category";?></b> </div> <div class="tourcs"> <b><?php echo $oketheme['translate']=='id'?"Pilih Destinasi":"Choose Destination";?></b> </div> <div class="tourcs"> <b><?php echo $oketheme['translate']=='id'?"Pilih Durasi":"Choose Duration";?></b> </div> <form method="post" action="<?php bloginfo('url'); ?>/tour-search-result/"> <?php $taxonomies = get_object_taxonomies('tour'); foreach ($taxonomies as $tax) { echo buildSelect($tax); } ?><button type="submit" class="ibtn"><i class="glyphicon glyphicon-search"></i> <?=$oketheme['translate']=='id'?"Cari":"Search";?></button> </form> </div> <?php } function tour_search_sidebar(){ global $oketheme; if (($oketheme['toursearch_act']) && ($oketheme['tour_on']['side'])) { ?> <div class="sidebar"> <div class="tourside"> <h4><i class="glyphicon glyphicon-search"></i> <?php echo $oketheme['t_caritour']; ?> </h4> <form method="post" action="<?php bloginfo('url'); ?>/tour-search-result/"> <?php $taxonomies = get_object_taxonomies('tour'); foreach ($taxonomies as $tax) { echo buildSelect($tax); }?> <button type="submit" style="margin:6px 0 0" /><i class="glyphicon glyphicon-search"></i> <b><?=$oketheme['translate']=='id'?"Cari":"Search";?></b></button> </form> </div> </div> <?php } } // Headline function headline() { global $oketheme; if ($oketheme['headline_act']) { ?> <div id="conwrap" class="athome" style="background-image: linear-gradient(to top, #FCFCFC, #FFF);"> <h2 class="headline"> <?php echo $oketheme['headline_title']; ?> </h2> <div class="wrap-post"> <?php echo $oketheme['headline_text']; ?> </div> </div> <?php } } //Featured Tour function featour() { global $oketheme; global $post; if ($oketheme['featour_act'] && $oketheme['featour']) {?> <div id="conwrap" class="athome featour"> <div class="intro"> <h2><?php echo $oketheme['featour_title']; ?></h2> <?php echo $oketheme['featour_text']; ?> </div> <div id="featour" class="owl-carousel"> <?php foreach($oketheme['featour'] as $fpost) { $post = get_post($fpost); setup_postdata($post); echo '<div style="padding:10px"'; get_template_part('loop-tour'); echo '</div>'; }; wp_reset_postdata();?> </div> </div> <?php } } // New Tour function newtour() { global $oketheme; if ($oketheme['newtour_act']) { ?> <div id="conwrap" class="athome"> <div class="intro"> <h2><?php echo $oketheme['newtour_title']; ?></h2> <?php echo $oketheme['newtour_text']; ?> </div> <?php $args = array('showposts' => $oketheme['newtour_count'], 'post_type' => 'tour');$the_query = new WP_Query($args); if ($the_query->have_posts()) { echo '<div class="gridpad">'; while ($the_query->have_posts()): $the_query->the_post(); echo get_template_part('loop-tour'); endwhile; echo '</div>'; } else { ?> <div class="warning"> <h3 style="margin:0;text-align:center"><?=$oketheme['translate'] == 'id'?'Maaf, belum tersedia tour untuk ditampilkan :(':'Sorry, no tour yet :(';?></h3> </div> <?php } ?> <div class="medium" style="margin: 25px 15px 0 0;text-align:right"> <a href="<?php echo home_url(); ?>/tour"><i class="glyphicon glyphicon-chevron-right"></i> <?=$oketheme['translate'] == 'id'?'Lihat Semua Tour':'View All Tours';?> </a> </div> </div> <?php } } // Testimonial function testimonial() { global $oketheme; if ($oketheme['testi_act']) { @$id = get_page_by_path('testimonial')->ID; $args = array('status' => 'approve', 'number' => '5', 'post_id' => $id); $comments = get_comments($args);?> <div id="conwrap" class="athome" style="background-image: linear-gradient(to bottom, #FCFCFC, #FFF);"> <div class="testi"> <h2><?php echo $oketheme['testi_title']; ?></h2> <?php echo $oketheme['testi_text']; ?> <?php if (get_comments_number($id) != "0") { ?> <p> <a href="<?php echo home_url(); ?>/testimonial"> <button class="ibtn" type="button"><i class="el-icon-quotes"></i> <?=$oketheme['translate'] == 'id'?"Lihat Semua":"View All";?> </button> </a> <a href="<?php echo home_url(); ?>/testimonial#submit-testimoni"> <button class="ibtn" type="button"><i class="el-icon-comment"></i> Submit </button> </a> </p> <?php } ?> </div> <div id="testislider"> <?php foreach ($comments as $comment): ?> <div class="isitesti"> <div class="avatesti"> <?php echo get_avatar($comment->comment_author_email, 100); ?> </div> <h3><?php echo $comment->comment_author; ?></h3> <?php if (get_comment_meta($comment->comment_ID, 'city', true) != '') { echo '<b>' . get_comment_meta($comment->comment_ID, 'city', true) . '</b><br/>'; } if (get_comment_meta($comment->comment_ID, 'rating', true) != '') { echo '<img src="'.get_template_directory_uri().'/images/'.get_comment_meta($comment->comment_ID, 'rating', true).'star.gif"> <span class="small">RATING '.get_comment_meta($comment->comment_ID, 'rating', true).'/5</span><br/>'; } ?> <p><?php echo $comment->comment_content; ?></p> </div> <?php endforeach; ?> </div> <div style="clear: both"></div> <?php if (!empty($oketheme['galeri'])) { ?> <div id="gslider" class="owl-carousel"> <?php foreach ($oketheme['galeri'] as $slide) { if (!empty($slide['image'])) { echo '<img src="'.$slide['image'].'"/>'; } } ?> </div> <?php } ?> </div> <?php } } // New Rent Home function newrent() { global $oketheme; if (!admin_personal() && $oketheme['rental_act'] && $oketheme['newrent_act']) {?> <div id="conwrap" class="athome rentwrap"> <div class="intro"> <h2> <?php echo $oketheme['rental_title']; ?> </h2> <?php echo $oketheme['rental_text']; ?> </div> <div id="newslider" class="owl-carousel"> <?php $the_query = new WP_Query(array('showposts' => 6, 'post_type' => 'rental')); if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); echo '<div style="padding:10px"'; get_template_part('loop-rental'); echo '</div>'; } } ?> </div> <div class="medium" style="margin: 25px 15px 0 0;text-align:right;position:relative"> <a href="<?php echo home_url(); ?>/rental"><i class="glyphicon glyphicon-chevron-right"></i> <?=$oketheme['translate'] == 'id'?"Lihat Semua Armada":"View All Vehicle";?> </a> </div> </div> <?php } } // Random Rent Single function randomrent() { global $oketheme; if (!admin_personal() && $oketheme['rental_act'] && $oketheme['ranrent_act']) {?> <div id="conwrap" class="athome rentwrap"> <div class="intro"> <h3> <?=$oketheme['translate'] == 'id'?"Mungkin Anda tertarik melihat armada kami yang lainnya":"Maybe you are interested to view other vehicle";?> </h3> <?php echo $oketheme['rental_text']; ?> </div> <div id="newslider" class="owl-carousel"> <?php $the_query = new WP_Query(array('showposts' => 6, 'post_type' => 'rental', 'orderby' => 'rand')); if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); echo '<div style="padding:10px"'; get_template_part('loop-rental'); echo '</div>'; } } ?> </div> <div class="medium" style="margin: 25px 15px 0 0;text-align:right;position:relative"> <a href="<?php echo home_url(); ?>/rental"><i class="glyphicon glyphicon-chevron-right"></i> <?=$oketheme['translate'] == 'id'?"Lihat Semua Armada":"View All Vehicle";?> </a> </div> </div> <?php } } // Blog function bloghome() { global $oketheme; if ($oketheme['blog_act']) {?> <div id="conwrap" class="athome"> <div class="intro"> <h2> <?php echo $oketheme['blog_title']; ?> </h2> <?php echo $oketheme['blog_text']; ?> </div> <?php $the_query = new WP_Query(array('posts_per_page' => $oketheme['blog_count'], 'post_type' => 'post')); if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); get_template_part('loop-blog'); } } ?> <div class="medium" style="margin: 25px 15px 0 0;text-align:right"> <a href="<?php echo home_url(); ?>/artikel"><i class="glyphicon glyphicon-chevron-right"></i> <?=$oketheme['translate'] == 'id'?"Lihat Semua Artikel":"View All Article";?> </a> </div> </div> <?php } } // Partner function partner(){ global $oketheme; if ($oketheme['partner_act']) { ?> <div id="conwrap" class="athome" style="background-image: linear-gradient(to bottom, #FCFCFC, #FFF);"> <div class="intro"> <h2> <?php echo $oketheme['partner_title']; ?> </h2> <?php echo $oketheme['partner_text']; ?> </div> <div class="partnerbox hscroll"> <?php $partner = explode(",", $oketheme['partner_logo']); foreach ($partner as $logo) { echo '<img src="' . wp_get_attachment_url($attachment_id = $logo) . '">'; } ?> </div> </div> <?php } } // Random Single Tour function randomtour(){ global $oketheme; if ($oketheme['random_tour_act']) { $args = array('showposts' => 3, 'post_type' => 'tour', 'orderby' => 'rand'); $the_query = new WP_Query($args); if ($the_query->have_posts()): echo $oketheme['translate'] == 'id'?'<h3>Mungkin Anda tertarik...</h3>':'<h3>Maybe you are interested...</h3>'; echo '<div class="gridpad">'; while ($the_query->have_posts()): $the_query->the_post(); get_template_part('loop-tour'); endwhile; echo '</div>'; endif; wp_reset_postdata(); } } // Random Sidebar Tour function randomside(){ global $oketheme; if ($oketheme['random_tour_side_act']) { ?> <div class="sidebar"> <div id="randomside" class="owl-carousel"> <?php $the_query = new WP_Query(array('showposts' => 6, 'post_type' => 'tour', 'orderby' => 'rand')); if ($the_query->have_posts()): while ($the_query->have_posts()): $the_query->the_post(); echo '<div style="padding:8px 4px">'; get_template_part('loop-tour'); echo '</div>'; endwhile; else: ?> <?php if ($oketheme['translate'] == 'id') { ?> <div class="warning"> <h3 style="margin:0;text-align:center">Maaf, belum tersedia tour untuk ditampilkan :(</h3> </div> <?php } else { ?> <div class="warning"> <h3 style="margin:0;text-align:center">Sorry, no tour yet :(</h3> </div> <?php } ?> <?php endif; wp_reset_postdata(); ?> </div> </div> <?php } } // Random Single Blog function randomblog(){ global $oketheme; if ($oketheme['random_blog_act']) { $the_query = new WP_Query(array('showposts' => 3, 'post_type' => 'post', 'orderby' => 'rand')); if ($the_query->have_posts()): echo $oketheme['translate'] == 'id'?'<h3 style="margin-top:20px">Mungkin Anda tertarik membaca artikel berikut ini.</h3>':'<h3 style="margin-top:20px">Maybe you are interested in reading the following article:</h3>'; while ($the_query->have_posts()): $the_query->the_post(); get_template_part('loop-blog'); endwhile; endif; wp_reset_postdata(); } } // Ads 300 function ads300() { global $oketheme;?> <?php if (isset($oketheme['ads300']) && $oketheme['ads300'] != '') { ?> <div class="sidebar"> <div class="ads300"> <?php echo $oketheme['ads300']; ?> </div> <div style="clear: both"></div> </div> <?php } } // Ads 728 function ads728(){ global $oketheme;?> <?php if (isset($oketheme['ads728']) && $oketheme['ads728'] != '') { ?> <div style="width:100%;background: #FFF;padding: 20px;"> <div class="ads728"> <?php echo $oketheme['ads728']; ?> </div> </div> <?php } }