pusatdata

Kotak Download 1001ebook MODIF PAKAI

May 10th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. Kode di single.php atau post-single.php:
  2.  
  3. <h4 style="margin:0 8px 6px 0px; padding-left:20px;">Links to Download Preview or Read Online</h4>
  4. <div id='support_author'>If you can afford, then please support the Author(s) by <span style='color: red;'>Buying</span> the <a href=''>book</a>. Thank You.</div>
  5. <div class='postfooter-box' style=''>
  6. <div class='buyebook-box' style=''>
  7. <div class='be-ads'>
  8. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  9. <!-- JadwalAcaraNatural -->
  10. <ins class="adsbygoogle"
  11. style="display:inline-block;width:250px;height:250px"
  12. data-ad-client="ca-pub-1162866178338695"
  13. data-ad-slot="2232100312"></ins>
  14. <script>
  15. (adsbygoogle = window.adsbygoogle || []).push({});
  16. </script>
  17. </div>
  18. <div class='be-button'>
  19.  
  20. </div>
  21. </div>
  22. <div class='download-box' style=''>
  23. <div class='dl-ads'>
  24. <div class='dl-ads1'>
  25. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  26. <!-- Ads-Buku-Indonesia -->
  27. <ins class="adsbygoogle"
  28. style="display:inline-block;width:250px;height:150px"
  29. data-ad-client="ca-pub-1162866178338695"
  30. data-ad-slot="4500467510"></ins>
  31. <script>
  32. (adsbygoogle = window.adsbygoogle || []).push({});
  33. </script>
  34. </div>
  35. <div class='dl-ads2' style='margin-top: 5px'>
  36. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  37. <!-- ads-link-buku-indonesia -->
  38. <ins class="adsbygoogle"
  39. style="display:inline-block;width:180px;height:90px"
  40. data-ad-client="ca-pub-1162866178338695"
  41. data-ad-slot="5977200719"></ins>
  42. <script>
  43. (adsbygoogle = window.adsbygoogle || []).push({});
  44. </script>
  45. </div>
  46. </div>
  47. <div class='dl-button'>
  48.  
  49. </div>
  50. </div>
  51. </div>
  52.  
  53. <a class="buy" href="http://adf.ly/665625/http://books.google.co.id/books?id=<?php the_field('cover'); ?>&lpg=PR1&hl=id&pg=PR1&output=embed" rel="nofollow" target="_blank">BACA BUKU ONLINE</a>
  54.  
  55.  
  56. <?php
  57. $my_download = get_post_meta( get_the_ID(), 'download', true);
  58. if( ! empty( $my_download ) ) {
  59. echo '<a class="download" href="'.$my_download.'" target="_blank">UNDUH PREVIEW BUKU</a>';
  60. }
  61. ?>
  62.  
  63.  
  64. ==============================================================================
  65. Kode di style.css:
  66.  
  67.  
  68. h4 {
  69. display: block;
  70. width: 580px;
  71. float: center;
  72. background: #67BFFC;
  73. padding: 5px 5px 5px 5px;
  74. moz-border-radius: 80px;
  75. webkit-border-radius: 80px;
  76. border-radius: 30px;
  77. font-weight: bold;
  78. }
  79. div {
  80. display: block;
  81. }
  82.  
  83. .postfooter-box {
  84. margin-bottom: 10px;
  85. }
  86. .postfooter-box {
  87. height: 331px;
  88. padding: 8px 13px;
  89. width: 570px;
  90. }
  91.  
  92. .buyebook-box {
  93. float: left;
  94. height: 322px;
  95. width: 277px;
  96. margin-right: 1px;
  97. }
  98. .be-ads {
  99. background-color: #F4F6F8;
  100. border-top: 1px solid silver;
  101. border-right: 1px solid silver;
  102. border-left: 1px solid silver;
  103. height: 250px;
  104. padding: 15px;
  105. position: relative;
  106. width: 250px;
  107. z-index: 2;
  108. }
  109. .be-button {
  110. background-color: #C9CFD6;
  111. box-shadow: 0 0 12px rgba(0, 0, 0, 0.3) inset, 0 1px 0 white;
  112. height: 50px;
  113. margin: 0;
  114. width: 282px;
  115. }
  116. .download-box {
  117. float: right;
  118. height: 322px;
  119. width: 277px;
  120. margin-right: 1px;
  121. }
  122. .dl-ads {
  123. background-color: #F4F6F8;
  124. border-top: 1px solid silver;
  125. border-right: 1px solid silver;
  126. border-left: 1px solid silver;
  127. height: 250px;
  128. padding: 15px;
  129. position: relative;
  130. width: 250px;
  131. z-index: 2;
  132. }
  133. .dl-button {
  134. background-color: #C9CFD6;
  135. box-shadow: 0 0 12px rgba(0, 0, 0, 0.3) inset, 0 1px 0 white;
  136. height: 50px;
  137. margin: 0;
  138. width: 282px;
  139. }
  140.  
  141. .buy {
  142. position: relative;
  143. float: left;
  144. height: 16px;
  145. width: 252px;
  146. bottom: 59px;
  147. left: 27px;
  148. background: #acdc54 url(http://2.bp.blogspot.com/-S4AKqSDPUEs/ToSYCWJy4qI/AAAAAAAAABI/conBgqSajOY/s1600/fade.png) repeat-x top left;
  149. color: #fff;
  150. text-shadow: 1px 1px 1px #cbeb8a;
  151. font-size: 14px;
  152. text-align: center;
  153. text-transform: uppercase;
  154. font-weight: 700;
  155. border: 1px solid #7bac2f;
  156. padding: 7px 0;
  157. border-radius: 3px;
  158. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(255, 255, 255, 0.5);
  159. }
  160. .download {
  161. position: relative;
  162. float: left;
  163. height: 16px;
  164. width: 252px;
  165. bottom: 59px;
  166. left: 65px;
  167. background: #acdc54 url(http://2.bp.blogspot.com/-S4AKqSDPUEs/ToSYCWJy4qI/AAAAAAAAABI/conBgqSajOY/s1600/fade.png) repeat-x top left;
  168. color: #fff;
  169. text-shadow: 1px 1px 1px #cbeb8a;
  170. font-size: 14px;
  171. text-align: center;
  172. text-transform: uppercase;
  173. font-weight: 700;
  174. border: 1px solid #7bac2f;
  175. padding: 7px 0;
  176. border-radius: 3px;
  177. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(255, 255, 255, 0.5);
  178. }
Add Comment
Please, Sign In to add comment