pusatdata icon

Kategori Tampilan Home Buku

pusatdata | PRO | 06/16/17 02:04:08 AM UTC | 0 ⭐ | 906 👁️ | Never ⏰ | []
text |

5.13 KB

|

None

|

0 👍

/

0 👎

Menggunakan Theme yang 2 Kolom di Content.
 1. Paste di post-vategory.php
 <?php global $theme; ?>
     <div <?php post_class('post post-box clearfix'); ?> id="post-<?php the_ID(); ?>">
                <div class="entry clearfix">
  <div class="post-box">
<div class="view view-fifth">
        <img src="/img/cover/<?php the_title(); ?>.jpg" style="width:164px;" onError="this.src='/nocover.jpg';"> 
        <div class="mask">
        <h2> 
        <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
        <?php the_title(); ?></a>
        </h2>
         <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>
          <a href="<?php the_permalink(); ?>" class="info">Read More</a>
         </div>   
</div>
</div>
                 </div>
      </div><!-- Post ID <?php the_ID(); ?> -->
  2. Paste di CSS:
 /*==================================================
 * Effect 7
 * ===============================================*/
.effect7
{
  	position:relative;       
    -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
       -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
            box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
}
.effect7:before, .effect7:after
{
	content:"";
    position:absolute; 
    z-index:-1;
    -webkit-box-shadow:0 0 20px rgba(0,0,0,0.8);
    -moz-box-shadow:0 0 20px rgba(0,0,0,0.8);
    box-shadow:0 0 20px rgba(0,0,0,0.8);
    top:0;
    bottom:0;
    left:10px;
    right:10px;
    -moz-border-radius:100px / 10px;
    border-radius:100px / 10px;
} 
.effect7:after
{
	right:10px; 
    left:auto;
    -webkit-transform:skew(8deg) rotate(3deg); 
       -moz-transform:skew(8deg) rotate(3deg);     
        -ms-transform:skew(8deg) rotate(3deg);     
         -o-transform:skew(8deg) rotate(3deg); 
            transform:skew(8deg) rotate(3deg);
}
.box h3{
	text-align:left;
	position:relative;
 }
.box {
	width:70%;
	height: auto;
	padding: 10px 10px 1px 10px;
	background:#DAF4FD;
	margin:40px auto;
	text-align: justify;
}
 /* end box text */
  .caption {
caption-side: bottom;
text-align: center;
margin: 0 20px 5px 20px !important;
font-style: italic;
color: #00;
background:#EAEAEA;
border-radius:10px;
border: 1px solid #BE0303;
}
    /* == START FOLDED CORNERS */
 .note {
    position:relative;
    width:70%;
    padding:1em 1.5em;
    margin:2em auto;
    color:#fff;
    background:#97C02F;
    overflow:hidden;
}
 .note:before {
    content:"";
    position:absolute;
    top:0;
    right:0;
    border-width:0 16px 16px 0; /* This trick side-steps a webkit bug */
    border-style:solid;
    border-color:#fff #fff #658E15 #658E15; /* A bit more verbose to work with .rounded too */
    background:#658E15; /* For when also applying a border-radius */
    display:block; width:0; /* Only for Firefox 3.0 damage limitation */
    /* Optional: shadow */
    -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
    -moz-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
    box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
}
 .note.grey {background:#504F4E;}
.note.grey:before {border-color:#fff #fff #BDBB8B #BDBB8B; background:#BDBB8B;}
 .note.red {background:#C93213;}
.note.red:before {border-color:#fff #fff #97010A #97010A; background:#97010A;}
 .note.blue {background:#53A3B4;}
.note.blue:before {border-color:#fff #fff transparent transparent; background:transparent;}
 .note.taupe {background:#999868;}
.note.taupe:before {border-color:#fff #fff #BDBB8B #BDBB8B; background:#BDBB8B;}
 /* ROUNDED CORNERS VERSION
 * All modern browsers can produce this effect with a single pseudo-element.
 * However, they all have bugs (mainly to do with border-radius) that make this a bit tricky.
 * As far as I can tell, this is the only cross-browser method for the moment.
 * Cant use this method for the simple effect because Opera 11 will only show backgrounds
 * through transparent borders if there is a border-radius applied.
 */
 .note.rounded {
    -webkit-border-radius:5px 0 5px 5px;
    -moz-border-radius:5px 0 5px 5px;
    border-radius:5px 0 5px 5px;
}
 .note.rounded:before {
    border-width:8px; /* Triggers a 1px 'step' along the diagonal in Safari 5 (and Chrome 10) */
    border-color:#fff #fff transparent transparent; /* Avoids the 1px 'step' in webkit. Background colour shows through */
    -webkit-border-bottom-left-radius:5px;
    -moz-border-radius:0 0 0 5px;
    border-radius:0 0 0 5px;
}
 .note p {margin:0;}
.note p + p {margin:1.5em 0 0;}
/* == END FOLDED CORNERS */

Comments