pustakakoran

Master Div Kotak Cover Koran

May 31st, 2017
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div style="margin:0 0 10px 10px; border: 1px solid #888; float: left; padding:1px; text-align:center;">
  2. <a href="http://sp.beritasatu.com/pages/e-paper/./2017/05/20/index.html" target="_blank">
  3. <img alt="img" border="0" style="width:114px;height:160px;" src="http://arsipkoran.tk/img/cover/andalas20170530.zip.jpg">
  4. </a>
  5. <div style="height: 16px; font-size: 11px; font-weight:bold; color:#fff; background-color:#555">Minggu, 20 Mei 2017</div>
  6. </div>
  7.  
  8. ======================
  9. SIAP PAKAI TANPA TABEL
  10. ======================
  11.  
  12. <?php wpbeginner_numeric_posts_nav(); ?>
  13.  
  14. <?php $posts=query_posts($query_string . '&orderby=title&order=desc');
  15. while ( have_posts() ) : the_post(); ?>
  16.  
  17. <div style="margin:0 0 10px 10px; border: 1px solid #888; float: left; padding:1px; text-align:center;">
  18.  
  19. <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  20. <img border="0" style="width:114px;height:160px;" src="http://arsipkoran.tk/img/cover/<?php the_title(); ?>.jpg" width="90px" onError="this.src='http://pustakakoran.com/nocover.jpg';"/>
  21. </a>
  22.  
  23. <div style="height: 16px; font-size: 11px; font-weight:bold; color:#fff; background-color:#555">
  24. <?php echo get_the_date('l, d M Y'); ?></div>
  25. </div>
  26.  
  27. <?php endwhile; ?>
  28. <?php $theme->hook('content_after'); ?>
  29.  
  30. <?php wpbeginner_numeric_posts_nav(); ?>
  31.  
  32.  
  33. ====================
  34. MENGGUNAKAN TABEL
  35. ====================
  36.  
  37. <table>
  38. <tr></tr>
  39.  
  40. <?php $posts=query_posts($query_string . '&orderby=title&order=desc');
  41. while ( have_posts() ) : the_post(); ?>
  42.  
  43. <tr>
  44.  
  45. <div style="margin:0 0 10px 10px; border: 1px solid #888; float: left; padding:1px; text-align:center;">
  46. <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  47.  
  48. <img border="0" style="width:114px;height:160px;" src="http://arsipkoran.tk/img/cover/<?php the_title(); ?>.jpg" width="90px" onError="this.src='http://pustakakoran.com/nocover.jpg';"/>
  49.  
  50. </a>
  51.  
  52. <div style="height: 16px; font-size: 11px; font-weight:bold; color:#fff; background-color:#555">
  53. <?php echo get_the_date('l, d M Y'); ?>
  54. </div>
  55. </div>
  56.  
  57. </tr>
  58. <?php endwhile; ?>
  59. <?php $theme->hook('content_after'); ?>
  60. </table>
RAW Paste Data