Konuyu Oyla:
  • Toplam: 4 Oy - Ortalama: 3.25
  • 1
  • 2
  • 3
  • 4
  • 5
Hareketli Favicon Yapımı
#1
Sitenize pekte önemli olmasada hareketli faviconlar ekleyebilirsiniz. İlk olarak yapmanız gereken favicon hazırlamak.
İnternette aradığınızda birçok hazır favicon siteleri mevcut. Onlardan birtanesiFavicon hazırlama Bu sitede örnek bir faviconu hazırlıyoruz.
Hazırladığımız faviconu temanın içine yüklüyoruz.

İconumuz :favicon.ico


Yapmamız gereken son adım ise :

\libraries\joomla\document\html\html.php dosyasını editlemek.

Kod:
// Try to find a favicon by checking the template and root folder
      $path = $directory . DS;
      $dirs = array( $path, JPATH_BASE . DS );
      foreach ($dirs as $dir )
      {
         $icon =   $dir . 'favicon.ico';
         if (file_exists( $icon ))
         {
            $path = str_replace( JPATH_BASE . DS, '', $dir );
            $path = str_replace( '\\', '/', $path );
            $this->addFavicon( JURI::base(true).'/'.$path . 'favicon.ico' );
            break;
         }
      }

      return $contents;


Bu dosyadaki favicon.ico dosyasını animated_favicon.gif olarak değiştirip dosyayı tekrar upload ediyoruz.

Kod:
// Try to find a favicon by checking the template and root folder
      $path = $directory . DS;
      $dirs = array( $path, JPATH_BASE . DS );
      foreach ($dirs as $dir )
      {
         $icon =   $dir . 'animated_favicon.gif';
         if (file_exists( $icon ))
         {
            $path = str_replace( JPATH_BASE . DS, '', $dir );
            $path = str_replace( '\\', '/', $path );
            $this->addFavicon( JURI::base(true).'/'.$path . 'animated_favicon.gif' );
            break;
         }
      }

      return $contents;


Kolay gelsin...
Alıntı
f8r22tkp.png
Ara
Cevapla


Hızlı Menü:


Şu anda bu konuyu okuyanlar: 1 Ziyaretçi


10tl.net Destek Forumu -

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping