pustakakoran

InfoBox Buku

Mar 20th, 2018
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table>
  2. <tr>
  3. <td style="text-align: center;vertical-align: middle;" width="248" colspan="4">
  4.  
  5.  
  6. <img src="<?php echo get_post_meta($post->ID, "label", true);?>" style="width:150px;align:center;" onError="this.src='/belum-terverifikasi.png';"/>
  7. <h2 class="title"><?php the_title(); ?></h2>
  8. </td>
  9. </tr>
  10.  
  11. <tr>
  12. <td style="text-align: center;vertical-align: middle; width:150px" rowspan="6"><img src="/img/cover/<?php echo get_the_ID(); ?>.jpg" width="150px" class="bw" onError="this.src='/no-cover.png';"/></td>
  13.  
  14. <td align="right" class="databuku kiri" style="vertical-align: middle;" >Penulis</td>
  15. <td align="center" class="databuku titikdua">:</td>
  16. <td class="databuku kanan"><?php echo get_post_meta($post->ID, "penulis", true);?></td>
  17. </tr>
  18. <tr>
  19. <td align="right" class="databuku kiri" style="vertical-align: middle;">Penerbit</td>
  20. <td align="center" class="databuku titikdua">:</td>
  21. <td class="databuku kanan"><?php the_category(', '); ?></td>
  22. </tr>
  23. <tr>
  24. <td align="right" class="databuku kiri" style="vertical-align: middle;">Terbit</td>
  25. <td align="center" class="databuku titikdua">:</td>
  26. <td class="databuku kanan"><?php the_time('Y'); ?></td>
  27. </tr>
  28. <tr>
  29. <td align="right" class="databuku kiri" style="vertical-align: middle;">Cetakan</td>
  30. <td align="center" class="databuku titikdua">:</td>
  31. <td class="databuku kanan"><?php echo get_post_meta($post->ID, "cetakan", true);?></td>
  32. </tr>
  33. <tr>
  34. <td align="right" class="databuku kiri" style="vertical-align: middle;">Status MUBI</td>
  35. <td align="center" class="databuku titikdua">:</td>
  36. <td class="databuku kanan"><?php
  37. $id_verifikasi = get_post_meta( get_the_ID(), 'verifikasi', true);
  38. if( ! empty( $id_verifikasi ) ) {
  39. echo '' . $id_verifikasi . '';
  40. }
  41. ?></td>
  42. </tr>
  43. </table>
  44.  
  45.  
  46. ====================================
  47.  
  48.  
  49.  
  50. /* =tabel buku
  51. ----------------------------------------------- */
  52. .databuku {
  53. padding-right: 3px;
  54. border-bottom-width: 1px;
  55. border-bottom-style: solid;
  56. border-bottom-color: #CCCCCC;
  57. padding-top: 3px;
  58. padding-bottom: 3px;
  59. }
  60.  
  61. td.kiri {
  62. background-color: #BEDCFB;
  63. text-align: right;
  64. width: 80px;
  65. color: #666;
  66. font-weight: bold;
  67. border-bottom: 1px solid #ffffff;
  68. border-right: 1px solid #ffffff;
  69. vertical-align: middle;
  70.  
  71. }
  72. td.kanan {
  73.  
  74. border-bottom-width: 1px;
  75. border-bottom-style: dashed;
  76. border-bottom-color: #0000FF;
  77. border-left: 1px solid #ffffff;
  78. border-right: 1px solid #ffffff;
  79. vertical-align: middle;
  80. }
  81.  
  82. td.titikdua {
  83.  
  84. border-bottom-width: 1px;
  85. border-bottom-style: dashed;
  86. border-bottom-color: #ffffff;
  87. width:2px;
  88. vertical-align: middle;
  89. }
RAW Paste Data