关于友链页面

上图为友情页面样式,以下为代码部分: PHP参考:

Code   ViewCopyPrint

  1. $bookmarks = get_bookmarks();   

  2. if ( !emptyempty($bookmarks) ){   

  3.     echo ‘<ul class=“link-content clearfix”>‘;   

  4.     foreach ($bookmarks as $bookmark) {   

  5.         echo ‘

  6. link\_url . '" title="' . $bookmark->link\_description . '" target="\_blank" >‘. get_avatar($bookmark->link_notes,64) . ‘<span class=“sitename”>‘. $bookmark->link_name .’
  7. ‘;   

  8.     }   

  9.     echo ‘‘;   

  10. }   

  11. ?>   

  12.                 <?php   

  13.                     // If comments are open or we have at least one comment, load up the comment template   

  14.                     if ( comments_open() || get_comments_number() ) :   

  15.                         comments_template();   

  16.                     endif;   

  17.                 ?>   

  18. CSS参考:   

  19. <code lang=”php”>.link-content li{float:left;text-align: center;width: 100px;font-size:12px;margin-bottom:10px}.link-content li img{border-radius:100%;margin-bottom:5px;transition:0.5s;-webkit-transtion:0.5s} .link-content li span{display:block} .link-content li:hover img{transform:rotate(360deg);-webkit-transform:rotate(360deg);}


关于友链页面
https://i.mraaaa.com/2015/08/07/关于友链页面/index/
作者
Mr.A
发布于
2015年8月7日
许可协议