Simple Machines Community Forum

SMF Support => Türkçe Bölümü (Turkish) => Language Specific Support => Dokümantasyon => Topic started by: cee山 on December 09, 2013, 09:03:52 AM

Title: Font ile icon çekimi ve kullanımı
Post by: cee山 on December 09, 2013, 09:03:52 AM
Evet font uzantısıyla icon çekmek :)
Site adresi burdadır. (http://fortawesome.github.io/Font-Awesome/get-started/)Nasıl yapılcağını kısaca anlatayım.

temanızın index.template.php açın ve <head> öncesine bu css yerleştirin.
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">

Dilerseniz kendi sitenize css atıp çekebilirsiniz.Daha sonra http://fortawesome.github.io/Font-Awesome/icons/ (http://fortawesome.github.io/Font-Awesome/icons/) izleyerek istediğiniz icon seçin .Ben video-camera'yı seçtim.Daha sonra <i class="fa fa-video-camera"></i> böyle bir kod gelicek elinize onu kullanarak istediğiniz icon'a ulaşacaksınız.

<i class="fa fa-music"><a href="', $news['href'], '">', $news['subject'], '</a></i> ben böyle yaparak son mp3 olarak kullandım.

<?php $array = ssi_boardNews(9, 10, 0, 0, 'array');
  foreach (
$array as $news)
  {
     echo
'
      <i class="fa fa-music"><a href="'
, $news['href'], '">', $news['subject'], '</a></i>';
  }
?>


Resimli Demo
(http://i1073.photobucket.com/albums/w383/CeeMoo_145/Ads1310z-14.png)