Advertisement
pusatdata

Kategori Tampilan Home Buku

Jun 15th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. Menggunakan Theme yang 2 Kolom di Content.
  2.  
  3. 1. Paste di post-vategory.php
  4.  
  5. <?php global $theme; ?>
  6.  
  7. <div <?php post_class('post post-box clearfix'); ?> id="post-<?php the_ID(); ?>">
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. <div class="entry clearfix">
  17.  
  18.  
  19. <div class="post-box">
  20. <div class="view view-fifth">
  21. <img src="/img/cover/<?php the_title(); ?>.jpg" style="width:164px;" onError="this.src='/nocover.jpg';">
  22. <div class="mask">
  23. <h2>
  24. <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  25. <?php the_title(); ?></a>
  26. </h2>
  27.  
  28. <p><span class="meta_tags">by <?php the_tags('', ', ', ''); ?></span> <span class="meta_date"><?php echo get_the_date(); ?></span> <span class="meta_categories"><?php the_category(', '); ?></span> <span class="meta_edit"><?php edit_post_link(); ?></span></p>
  29.  
  30.  
  31. <a href="<?php the_permalink(); ?>" class="info">Read More</a>
  32.  
  33. </div>
  34. </div>
  35. </div>
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. </div>
  46.  
  47.  
  48. </div><!-- Post ID <?php the_ID(); ?> -->
  49.  
  50.  
  51. 2. Paste di CSS:
  52.  
  53. /*==================================================
  54. * Effect 7
  55. * ===============================================*/
  56. .effect7
  57. {
  58. position:relative;
  59. -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  60. -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  61. box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  62. }
  63. .effect7:before, .effect7:after
  64. {
  65. content:"";
  66. position:absolute;
  67. z-index:-1;
  68. -webkit-box-shadow:0 0 20px rgba(0,0,0,0.8);
  69. -moz-box-shadow:0 0 20px rgba(0,0,0,0.8);
  70. box-shadow:0 0 20px rgba(0,0,0,0.8);
  71. top:0;
  72. bottom:0;
  73. left:10px;
  74. right:10px;
  75. -moz-border-radius:100px / 10px;
  76. border-radius:100px / 10px;
  77. }
  78. .effect7:after
  79. {
  80. right:10px;
  81. left:auto;
  82. -webkit-transform:skew(8deg) rotate(3deg);
  83. -moz-transform:skew(8deg) rotate(3deg);
  84. -ms-transform:skew(8deg) rotate(3deg);
  85. -o-transform:skew(8deg) rotate(3deg);
  86. transform:skew(8deg) rotate(3deg);
  87. }
  88. .box h3{
  89. text-align:left;
  90. position:relative;
  91.  
  92. }
  93. .box {
  94. width:70%;
  95. height: auto;
  96. padding: 10px 10px 1px 10px;
  97. background:#DAF4FD;
  98. margin:40px auto;
  99. text-align: justify;
  100. }
  101.  
  102. /* end box text */
  103.  
  104.  
  105. .caption {
  106. caption-side: bottom;
  107. text-align: center;
  108. margin: 0 20px 5px 20px !important;
  109. font-style: italic;
  110. color: #00;
  111. background:#EAEAEA;
  112. border-radius:10px;
  113. border: 1px solid #BE0303;
  114. }
  115.  
  116.  
  117.  
  118.  
  119. /* == START FOLDED CORNERS */
  120.  
  121. .note {
  122. position:relative;
  123. width:70%;
  124. padding:1em 1.5em;
  125. margin:2em auto;
  126. color:#fff;
  127. background:#97C02F;
  128. overflow:hidden;
  129. }
  130.  
  131. .note:before {
  132. content:"";
  133. position:absolute;
  134. top:0;
  135. right:0;
  136. border-width:0 16px 16px 0; /* This trick side-steps a webkit bug */
  137. border-style:solid;
  138. border-color:#fff #fff #658E15 #658E15; /* A bit more verbose to work with .rounded too */
  139. background:#658E15; /* For when also applying a border-radius */
  140. display:block; width:0; /* Only for Firefox 3.0 damage limitation */
  141. /* Optional: shadow */
  142. -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  143. -moz-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  144. box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
  145. }
  146.  
  147. .note.grey {background:#504F4E;}
  148. .note.grey:before {border-color:#fff #fff #BDBB8B #BDBB8B; background:#BDBB8B;}
  149.  
  150. .note.red {background:#C93213;}
  151. .note.red:before {border-color:#fff #fff #97010A #97010A; background:#97010A;}
  152.  
  153. .note.blue {background:#53A3B4;}
  154. .note.blue:before {border-color:#fff #fff transparent transparent; background:transparent;}
  155.  
  156. .note.taupe {background:#999868;}
  157. .note.taupe:before {border-color:#fff #fff #BDBB8B #BDBB8B; background:#BDBB8B;}
  158.  
  159. /* ROUNDED CORNERS VERSION
  160. * All modern browsers can produce this effect with a single pseudo-element.
  161. * However, they all have bugs (mainly to do with border-radius) that make this a bit tricky.
  162. * As far as I can tell, this is the only cross-browser method for the moment.
  163. * Cant use this method for the simple effect because Opera 11 will only show backgrounds
  164. * through transparent borders if there is a border-radius applied.
  165. */
  166.  
  167. .note.rounded {
  168. -webkit-border-radius:5px 0 5px 5px;
  169. -moz-border-radius:5px 0 5px 5px;
  170. border-radius:5px 0 5px 5px;
  171. }
  172.  
  173. .note.rounded:before {
  174. border-width:8px; /* Triggers a 1px 'step' along the diagonal in Safari 5 (and Chrome 10) */
  175. border-color:#fff #fff transparent transparent; /* Avoids the 1px 'step' in webkit. Background colour shows through */
  176. -webkit-border-bottom-left-radius:5px;
  177. -moz-border-radius:0 0 0 5px;
  178. border-radius:0 0 0 5px;
  179. }
  180.  
  181. .note p {margin:0;}
  182. .note p + p {margin:1.5em 0 0;}
  183. /* == END FOLDED CORNERS */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement