Advertisement
pusatdata

Decoder functions-script-wpgrosir.php

Mar 14th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.50 KB | None | 0 0
  1. <?php function bersih_harga($harga) {
  2. $harga = preg_replace('/\D/', '', $harga);
  3. return $harga;
  4. }
  5. function invoice_id() {
  6. $blogtime = current_time('mysql');
  7. list($today_year, $today_month, $today_day, $hour, $minute, $second) = split('([^0-9])', $blogtime);
  8. echo $today_month;
  9. echo $today_day;
  10. echo '/';
  11. echo of_get_option('nama_toko');
  12. echo '/';
  13. echo $hour;
  14. echo $minute;
  15. echo $second;
  16. }
  17. function shorttitle_fastestwp() {
  18. global $post;
  19. $the_title = $post->post_title;
  20. $getlength = strlen($the_title);
  21. $thelength = 70;
  22. echo substr($the_title, 0, $thelength);
  23. if ($getlength > $thelength);
  24. }
  25. function shorttitle2_fastestwp() {
  26. global $post;
  27. $the_title = $post->post_title;
  28. $getlength = strlen($the_title);
  29. $thelength = 60;
  30. echo substr($the_title, 0, $thelength);
  31. if ($getlength > $thelength);
  32. }
  33. function harga_coret_fastestwp() {
  34. global $post;
  35. if (get_post_meta($post->ID, "harga_diskon", true)) {
  36. $harga = get_post_meta($post->ID, "harga", true);
  37. echo $harga;
  38. }
  39. }
  40. function pilihan_fastestwp() {
  41. global $post;
  42. if (get_post_meta($post->ID, "pilihan", true)) {;
  43. echo '';
  44. if (get_post_meta($post->ID, "pilihan1", true)) {;
  45. echo '<tr><td >Size : ';
  46. echo get_post_meta($post->ID, "pilihan1", true);;
  47. echo '</td><td>Rp ';
  48. echo get_post_meta($post->ID, "harga_pilihan1", true);;
  49. echo '</td></tr>
  50. ';
  51. };
  52. echo '
  53. ';
  54. if (get_post_meta($post->ID, "pilihan2", true)) {;
  55. echo '<tr><td >Size : ';
  56. echo get_post_meta($post->ID, "pilihan2", true);;
  57. echo '</td><td>Rp ';
  58. echo get_post_meta($post->ID, "harga_pilihan2", true);;
  59. echo '</td></tr>
  60. ';
  61. };
  62. echo '
  63. ';
  64. if (get_post_meta($post->ID, "pilihan3", true)) {;
  65. echo '<tr><td >Size : ';
  66. echo get_post_meta($post->ID, "pilihan3", true);;
  67. echo '</td><td>Rp ';
  68. echo get_post_meta($post->ID, "harga_pilihan3", true);;
  69. echo '</td></tr>
  70. ';
  71. };
  72. echo '
  73.  
  74. ';
  75. if (get_post_meta($post->ID, "pilihan4", true)) {;
  76. echo '<tr><td >Size : ';
  77. echo get_post_meta($post->ID, "pilihan4", true);;
  78. echo '</td><td>Rp ';
  79. echo get_post_meta($post->ID, "harga_pilihan4", true);;
  80. echo '</td></tr>
  81. ';
  82. };
  83. echo '
  84.  
  85.  
  86.  
  87. ';
  88. if (get_post_meta($post->ID, "pilihan5", true)) {;
  89. echo '<tr><td >Size : ';
  90. echo get_post_meta($post->ID, "pilihan5", true);;
  91. echo '</td><td>Rp ';
  92. echo get_post_meta($post->ID, "harga_pilihan5", true);;
  93. echo '</td></tr>
  94. ';
  95. };
  96. echo '
  97.  
  98.  
  99.  
  100. ';
  101. if (get_post_meta($post->ID, "pilihan6", true)) {;
  102. echo '<tr><td >Size : ';
  103. echo get_post_meta($post->ID, "pilihan6", true);;
  104. echo '</td><td>Rp ';
  105. echo get_post_meta($post->ID, "harga_pilihan6", true);;
  106. echo '</td></tr>
  107. ';
  108. };
  109. echo '';
  110. } else {;
  111. echo '<tr><td >Harga </td><td>Rp ';
  112. harga_fastestwp();;
  113. echo ' <span class="coret">';
  114. harga_coret_fastestwp();;
  115. echo '</span></td></tr>
  116. ';
  117. }
  118. }
  119. function get_harga_fastestwp($post) {
  120. $harga = '(hubungi cs)';
  121. if (get_post_meta($post->ID, "harga_diskon", true)) {
  122. $harga = get_post_meta($post->ID, "harga_diskon", true);
  123. } elseif (get_post_meta($post->ID, "harga", true)) {
  124. $harga = get_post_meta($post->ID, "harga", true);
  125. }
  126. return $harga;
  127. }
  128. function harga_fastestwp() {
  129. global $post;
  130. $harga = get_harga_fastestwp($post);
  131. echo $harga;
  132. }
  133. function harga_input_fastestwp() {
  134. global $post;
  135. $harga = get_harga_fastestwp($post);
  136. $harga = str_replace(',', '', $harga);
  137. $harga = str_replace('.', '', $harga);
  138. echo $harga;
  139. }
  140. function small_thumb_fastestwp() {
  141. global $post, $posts;
  142. $first_img = '';
  143. ob_start();
  144. ob_end_clean();
  145. $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  146. if (isset($matches[1][0])) {
  147. $first_img = $matches[1][0];
  148. $img_url = $first_img;
  149. $image = aq_resize($img_url, 75, 75, false);;
  150. echo '<img src="';
  151. echo $image[0];
  152. echo '" alt="';
  153. the_title();;
  154. echo '" width="';
  155. echo $image[1];
  156. echo '" height="';
  157. echo $image[2];
  158. echo '" />
  159. ';
  160. } else {;
  161. echo '<img src="';
  162. echo get_template_directory_uri();;
  163. echo '/images/thumb70.png" alt="';
  164. the_title();;
  165. echo '" width="70" height="70" />
  166. ';
  167. }
  168. }
  169. function thumb_fastestwp() {
  170. global $post, $posts;
  171. $first_img = '';
  172. ob_start();
  173. ob_end_clean();
  174. $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  175. if (isset($matches[1][0])) {
  176. $first_img = $matches[1][0];
  177. $img_url = $first_img;
  178. $image = aq_resize($img_url, 150, 150, false);;
  179. echo '<img src="';
  180. echo $image[0];
  181. echo '" alt="';
  182. the_title();;
  183. echo '" width="';
  184. echo $image[1];
  185. echo '" height="';
  186. echo $image[2];
  187. echo '" />
  188. ';
  189. } else {;
  190. echo '<img src="';
  191. echo get_template_directory_uri();;
  192. echo '/images/thumb150.png" alt="';
  193. the_title();;
  194. echo '" width="135" height="150" />
  195. ';
  196. }
  197. }
  198. function big_thumb_fastestwp() {
  199. global $post, $posts;
  200. $first_img = '';
  201. ob_start();
  202. ob_end_clean();
  203. $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  204. if (isset($matches[1][0])) {
  205. $first_img = $matches[1][0];
  206. $img_url = $first_img;
  207. $image = aq_resize($img_url, 300, 300, false);;
  208. echo '<img src="';
  209. echo $image[0];
  210. echo '" alt="';
  211. the_title();;
  212. echo '" width="';
  213. echo $image[1];
  214. echo '" height="';
  215. echo $image[2];
  216. echo '" />
  217. ';
  218. } else {;
  219. echo '<img src="';
  220. echo get_template_directory_uri();;
  221. echo '/images/thumb300.png" alt="';
  222. the_title();;
  223. echo '" width="300" height="300" title="triumph" />
  224. ';
  225. }
  226. }
  227. function label_fastestwp() {
  228. global $post;
  229. if (get_post_meta($post->ID, "habis", true)) {;
  230. echo '<div class="wpgrosir-lable"><img src="';
  231. echo get_template_directory_uri();;
  232. echo '/images/habis.png" alt="download" width="86" height="86" /></div>
  233. ';
  234. } else if (get_post_meta($post->ID, "label", true) == 'sale') {;
  235. echo ' <div class="wpgrosir-lable"><img src="';
  236. echo get_template_directory_uri();;
  237. echo '/images/sale.png" alt="download" width="86" height="86" /></div>
  238. ';
  239. } else if (get_post_meta($post->ID, "label", true) == 'best') {;
  240. echo ' <div class="wpgrosir-lable"><img src="';
  241. echo get_template_directory_uri();;
  242. echo '/images/best.png" alt="download" width="86" height="86" /></div>
  243. ';
  244. }
  245. }
  246. function buynow_fastestwp() {
  247. global $post;
  248. if (get_post_meta($post->ID, "habis", $single = true)) {;
  249. echo '<div class="habis">Stok habis</div>
  250. ';
  251. } else if (of_get_option('button_order_act') == '1') {;
  252. echo '<a class="small beli blue" href="';
  253. echo of_get_option('order_page');;
  254. echo '" title="';
  255. the_title();;
  256. echo '">Beli</a>
  257. ';
  258. } else if (of_get_option('button_order_act') == '0') {;
  259. echo '<input type="submit" name="my-add-button" value="Beli" class="small beli blue" />
  260. ';
  261. }
  262. }
  263. function buynow_single_fastestwp() {
  264. global $post;
  265. if (get_post_meta($post->ID, "habis", true)) {;
  266. echo '<div class="habis-single">Stok habis</div>
  267. ';
  268. } else if (of_get_option('button_order_act') == '1') {;
  269. echo '<a class="large beli blue" href="';
  270. echo of_get_option('order_page');;
  271. echo '" title="';
  272. the_title();;
  273. echo '" target="_blank">Beli Sekarang</a>
  274. ';
  275. } else if (get_post_meta($post->ID, "dropship", true)) {;
  276. echo '<a class="large beli blue" href="';
  277. echo of_get_option('order_page');;
  278. echo '" title="';
  279. the_title();;
  280. echo '" target="_blank">Beli Sekarang</a>
  281. ';
  282. } else if (of_get_option('button_order_act') == '0') {;
  283. echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" />
  284.  
  285. ';
  286. }
  287. }
  288. function pilihan_single_fastestwp() {
  289. global $post;
  290. if (get_post_meta($post->ID, "habis", $single = true)) {;
  291. echo '';
  292. } else {;
  293. echo '
  294. ';
  295. if (get_post_meta($post->ID, "pilihan", true)) {;
  296. echo '<select id="my_select" name="my_select_box">
  297. <option value="">-Pilih Ukuran-</option>
  298.  
  299. ';
  300. if (get_post_meta($post->ID, "pilihan1", true)) {;
  301. echo '<option value="';
  302. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan1", true));;
  303. echo '">
  304. ';
  305. echo get_post_meta($post->ID, "pilihan1", true);;
  306. echo '</option>
  307. ';
  308. };
  309. echo '
  310. ';
  311. if (get_post_meta($post->ID, "pilihan2", true)) {;
  312. echo '<option value="';
  313. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan2", true));;
  314. echo '">
  315. ';
  316. echo get_post_meta($post->ID, "pilihan2", true);;
  317. echo '</option>
  318. ';
  319. };
  320. echo '
  321. ';
  322. if (get_post_meta($post->ID, "pilihan3", true)) {;
  323. echo '<option value="';
  324. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan3", true));;
  325. echo '">
  326. ';
  327. echo get_post_meta($post->ID, "pilihan3", true);;
  328. echo '</option>
  329. ';
  330. };
  331. echo '
  332. ';
  333. if (get_post_meta($post->ID, "pilihan4", true)) {;
  334. echo '<option value="';
  335. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan4", true));;
  336. echo '">
  337. ';
  338. echo get_post_meta($post->ID, "pilihan4", true);;
  339. echo '</option>
  340. ';
  341. };
  342. echo '
  343. ';
  344. if (get_post_meta($post->ID, "pilihan5", true)) {;
  345. echo '<option value="';
  346. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan5", true));;
  347. echo '">
  348. ';
  349. echo get_post_meta($post->ID, "pilihan5", true);;
  350. echo '</option>
  351. ';
  352. };
  353. echo '
  354. ';
  355. if (get_post_meta($post->ID, "pilihan6", true)) {;
  356. echo '<option value="';
  357. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan6", true));;
  358. echo '">
  359. ';
  360. echo get_post_meta($post->ID, "pilihan6", true);;
  361. echo '</option>
  362. ';
  363. };
  364. echo '</select>
  365. ';
  366. };
  367. echo '
  368. ';
  369. }
  370. }
  371. function bersih_harga($harga) {
  372. $harga = preg_replace('/\D/', '', $harga);
  373. return $harga;
  374. }
  375. function invoice_id() {
  376. $blogtime = current_time('mysql');
  377. list($today_year, $today_month, $today_day, $hour, $minute, $second) = split('([^0-9])', $blogtime);
  378. echo $today_month;
  379. echo $today_day;
  380. echo '/';
  381. echo of_get_option('nama_toko');
  382. echo '/';
  383. echo $hour;
  384. echo $minute;
  385. echo $second;
  386. }
  387. function shorttitle_fastestwp() {
  388. global $post;
  389. $the_title = $post->post_title;
  390. $getlength = strlen($the_title);
  391. $thelength = 70;
  392. echo substr($the_title, 0, $thelength);
  393. if ($getlength > $thelength);
  394. }
  395. function shorttitle2_fastestwp() {
  396. global $post;
  397. $the_title = $post->post_title;
  398. $getlength = strlen($the_title);
  399. $thelength = 60;
  400. echo substr($the_title, 0, $thelength);
  401. if ($getlength > $thelength);
  402. }
  403. function harga_coret_fastestwp() {
  404. global $post;
  405. if (get_post_meta($post->ID, "harga_diskon", true)) {
  406. $harga = get_post_meta($post->ID, "harga", true);
  407. echo $harga;
  408. }
  409. };
  410. echo '';
  411. function pilihan_fastestwp() {
  412. global $post;
  413. if (get_post_meta($post->ID, "pilihan", true)) {;
  414. echo '';
  415. if (get_post_meta($post->ID, "pilihan1", true)) {;
  416. echo '<tr><td >Size : ';
  417. echo get_post_meta($post->ID, "pilihan1", true);;
  418. echo '</td><td>Rp ';
  419. echo get_post_meta($post->ID, "harga_pilihan1", true);;
  420. echo '</td></tr>
  421. ';
  422. };
  423. echo '
  424. ';
  425. if (get_post_meta($post->ID, "pilihan2", true)) {;
  426. echo '<tr><td >Size : ';
  427. echo get_post_meta($post->ID, "pilihan2", true);;
  428. echo '</td><td>Rp ';
  429. echo get_post_meta($post->ID, "harga_pilihan2", true);;
  430. echo '</td></tr>
  431. ';
  432. };
  433. echo '
  434. ';
  435. if (get_post_meta($post->ID, "pilihan3", true)) {;
  436. echo '<tr><td >Size : ';
  437. echo get_post_meta($post->ID, "pilihan3", true);;
  438. echo '</td><td>Rp ';
  439. echo get_post_meta($post->ID, "harga_pilihan3", true);;
  440. echo '</td></tr>
  441. ';
  442. };
  443. echo '
  444.  
  445. ';
  446. if (get_post_meta($post->ID, "pilihan4", true)) {;
  447. echo '<tr><td >Size : ';
  448. echo get_post_meta($post->ID, "pilihan4", true);;
  449. echo '</td><td>Rp ';
  450. echo get_post_meta($post->ID, "harga_pilihan4", true);;
  451. echo '</td></tr>
  452. ';
  453. };
  454. echo '
  455.  
  456.  
  457.  
  458. ';
  459. if (get_post_meta($post->ID, "pilihan5", true)) {;
  460. echo '<tr><td >Size : ';
  461. echo get_post_meta($post->ID, "pilihan5", true);;
  462. echo '</td><td>Rp ';
  463. echo get_post_meta($post->ID, "harga_pilihan5", true);;
  464. echo '</td></tr>
  465. ';
  466. };
  467. echo '
  468.  
  469.  
  470.  
  471. ';
  472. if (get_post_meta($post->ID, "pilihan6", true)) {;
  473. echo '<tr><td >Size : ';
  474. echo get_post_meta($post->ID, "pilihan6", true);;
  475. echo '</td><td>Rp ';
  476. echo get_post_meta($post->ID, "harga_pilihan6", true);;
  477. echo '</td></tr>
  478. ';
  479. };
  480. echo '';
  481. } else {;
  482. echo '<tr><td >Harga </td><td>Rp ';
  483. harga_fastestwp();;
  484. echo ' <span class="coret">';
  485. harga_coret_fastestwp();;
  486. echo '</span></td></tr>
  487. ';
  488. }
  489. };
  490. echo '';
  491. function get_harga_fastestwp($post) {
  492. $harga = '(hubungi cs)';
  493. if (get_post_meta($post->ID, "harga_diskon", true)) {
  494. $harga = get_post_meta($post->ID, "harga_diskon", true);
  495. } elseif (get_post_meta($post->ID, "harga", true)) {
  496. $harga = get_post_meta($post->ID, "harga", true);
  497. }
  498. return $harga;
  499. }
  500. function harga_fastestwp() {
  501. global $post;
  502. $harga = get_harga_fastestwp($post);
  503. echo $harga;
  504. }
  505. function harga_input_fastestwp() {
  506. global $post;
  507. $harga = get_harga_fastestwp($post);
  508. $harga = str_replace(',', '', $harga);
  509. $harga = str_replace('.', '', $harga);
  510. echo $harga;
  511. };
  512. echo '';
  513. function small_thumb_fastestwp() {
  514. global $post, $posts;
  515. $first_img = '';
  516. ob_start();
  517. ob_end_clean();
  518. $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  519. if (isset($matches[1][0])) {
  520. $first_img = $matches[1][0];
  521. $img_url = $first_img;
  522. $image = aq_resize($img_url, 75, 75, false);;
  523. echo '<img src="';
  524. echo $image[0];
  525. echo '" alt="';
  526. the_title();;
  527. echo '" width="';
  528. echo $image[1];
  529. echo '" height="';
  530. echo $image[2];
  531. echo '" />
  532. ';
  533. } else {;
  534. echo '<img src="';
  535. echo get_template_directory_uri();;
  536. echo '/images/thumb70.png" alt="';
  537. the_title();;
  538. echo '" width="70" height="70" />
  539. ';
  540. }
  541. };
  542. echo '';
  543. function thumb_fastestwp() {
  544. global $post, $posts;
  545. $first_img = '';
  546. ob_start();
  547. ob_end_clean();
  548. $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  549. if (isset($matches[1][0])) {
  550. $first_img = $matches[1][0];
  551. $img_url = $first_img;
  552. $image = aq_resize($img_url, 150, 150, false);;
  553. echo '<img src="';
  554. echo $image[0];
  555. echo '" alt="';
  556. the_title();;
  557. echo '" width="';
  558. echo $image[1];
  559. echo '" height="';
  560. echo $image[2];
  561. echo '" />
  562. ';
  563. } else {;
  564. echo '<img src="';
  565. echo get_template_directory_uri();;
  566. echo '/images/thumb150.png" alt="';
  567. the_title();;
  568. echo '" width="135" height="150" />
  569. ';
  570. }
  571. };
  572. echo '';
  573. function big_thumb_fastestwp() {
  574. global $post, $posts;
  575. $first_img = '';
  576. ob_start();
  577. ob_end_clean();
  578. $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
  579. if (isset($matches[1][0])) {
  580. $first_img = $matches[1][0];
  581. $img_url = $first_img;
  582. $image = aq_resize($img_url, 300, 300, false);;
  583. echo '<img src="';
  584. echo $image[0];
  585. echo '" alt="';
  586. the_title();;
  587. echo '" width="';
  588. echo $image[1];
  589. echo '" height="';
  590. echo $image[2];
  591. echo '" />
  592. ';
  593. } else {;
  594. echo '<img src="';
  595. echo get_template_directory_uri();;
  596. echo '/images/thumb300.png" alt="';
  597. the_title();;
  598. echo '" width="300" height="300" title="triumph" />
  599. ';
  600. }
  601. };
  602. echo '';
  603. function label_fastestwp() {
  604. global $post;
  605. if (get_post_meta($post->ID, "habis", true)) {;
  606. echo '<div class="wpgrosir-lable"><img src="';
  607. echo get_template_directory_uri();;
  608. echo '/images/habis.png" alt="download" width="86" height="86" /></div>
  609. ';
  610. } else if (get_post_meta($post->ID, "label", true) == 'sale') {;
  611. echo ' <div class="wpgrosir-lable"><img src="';
  612. echo get_template_directory_uri();;
  613. echo '/images/sale.png" alt="download" width="86" height="86" /></div>
  614. ';
  615. } else if (get_post_meta($post->ID, "label", true) == 'best') {;
  616. echo ' <div class="wpgrosir-lable"><img src="';
  617. echo get_template_directory_uri();;
  618. echo '/images/best.png" alt="download" width="86" height="86" /></div>
  619. ';
  620. }
  621. };
  622. echo '';
  623. function buynow_fastestwp() {
  624. global $post;
  625. if (get_post_meta($post->ID, "habis", $single = true)) {;
  626. echo '<div class="habis">Stok habis</div>
  627. ';
  628. } else if (of_get_option('button_order_act') == '1') {;
  629. echo '<a class="small beli blue" href="';
  630. echo of_get_option('order_page');;
  631. echo '" title="';
  632. the_title();;
  633. echo '">Beli</a>
  634. ';
  635. } else if (of_get_option('button_order_act') == '0') {;
  636. echo '<input type="submit" name="my-add-button" value="Beli" class="small beli blue" />
  637. ';
  638. }
  639. };
  640. echo '
  641. ';
  642. function buynow_single_fastestwp() {
  643. global $post;
  644. if (get_post_meta($post->ID, "habis", true)) {;
  645. echo '<div class="habis-single">Stok habis</div>
  646. ';
  647. } else if (of_get_option('button_order_act') == '1') {;
  648. echo '<a class="large beli blue" href="';
  649. echo of_get_option('order_page');;
  650. echo '" title="';
  651. the_title();;
  652. echo '" target="_blank">Beli Sekarang</a>
  653. ';
  654. } else if (get_post_meta($post->ID, "dropship", true)) {;
  655. echo '<a class="large beli blue" href="';
  656. echo of_get_option('order_page');;
  657. echo '" title="';
  658. the_title();;
  659. echo '" target="_blank">Beli Sekarang</a>
  660. ';
  661. } else if (of_get_option('button_order_act') == '0') {;
  662. echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" />
  663.  
  664. ';
  665. }
  666. };
  667. echo '';
  668. function pilihan_single_fastestwp() {
  669. global $post;
  670. if (get_post_meta($post->ID, "habis", $single = true)) {;
  671. echo '';
  672. } else {;
  673. echo '
  674. ';
  675. if (get_post_meta($post->ID, "pilihan", true)) {;
  676. echo '<select id="my_select" name="my_select_box">
  677. <option value="">-Pilih Ukuran-</option>
  678.  
  679. ';
  680. if (get_post_meta($post->ID, "pilihan1", true)) {;
  681. echo '<option value="';
  682. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan1", true));;
  683. echo '">
  684. ';
  685. echo get_post_meta($post->ID, "pilihan1", true);;
  686. echo '</option>
  687. ';
  688. };
  689. echo '
  690. ';
  691. if (get_post_meta($post->ID, "pilihan2", true)) {;
  692. echo '<option value="';
  693. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan2", true));;
  694. echo '">
  695. ';
  696. echo get_post_meta($post->ID, "pilihan2", true);;
  697. echo '</option>
  698. ';
  699. };
  700. echo '
  701. ';
  702. if (get_post_meta($post->ID, "pilihan3", true)) {;
  703. echo '<option value="';
  704. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan3", true));;
  705. echo '">
  706. ';
  707. echo get_post_meta($post->ID, "pilihan3", true);;
  708. echo '</option>
  709. ';
  710. };
  711. echo '
  712. ';
  713. if (get_post_meta($post->ID, "pilihan4", true)) {;
  714. echo '<option value="';
  715. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan4", true));;
  716. echo '">
  717. ';
  718. echo get_post_meta($post->ID, "pilihan4", true);;
  719. echo '</option>
  720. ';
  721. };
  722. echo '
  723. ';
  724. if (get_post_meta($post->ID, "pilihan5", true)) {;
  725. echo '<option value="';
  726. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan5", true));;
  727. echo '">
  728. ';
  729. echo get_post_meta($post->ID, "pilihan5", true);;
  730. echo '</option>
  731. ';
  732. };
  733. echo '
  734. ';
  735. if (get_post_meta($post->ID, "pilihan6", true)) {;
  736. echo '<option value="';
  737. echo bersih_harga(get_post_meta($post->ID, "harga_pilihan6", true));;
  738. echo '">
  739. ';
  740. echo get_post_meta($post->ID, "pilihan6", true);;
  741. echo '</option>
  742. ';
  743. };
  744. echo '</select>
  745. ';
  746. };
  747. echo '
  748. ';
  749. }
  750. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement