Gönderen Konu: Link Ağacı  (Okunma sayısı 1098 defa)

Çevrimdışı orhan

  • Yönetici
  • Trade Sayısı: (0)
  • *
  • İleti: 384
  • Karma +19/-1
  • Cinsiyet: Bay
    • Profili Görüntüle
    • webtiryaki.com
Link Ağacı
« : 18 Tem 2013, 20:26:20 »
[h1]Görüntüsü



Index.template.php

Bul
Kod: [Seç]
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

echo '
<div class="navigate_section">
<ul>';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';

echo '
</li>';
}
echo '
</ul>
</div>';

$shown_linktree = true;
}

Değiş

Kod: [Seç]
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree, $scripturl;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

echo '
<div class="module"><div class="breadCrumb module">
<ul>';

echo'
<li class="iconhome"><a href="'. $scripturl .'" /></li>';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

echo '
</li>';
}
echo '
</ul>
</div></div>';

$shown_linktree = true;
}

Index.css

sonuna ekleyin

Kod: [Seç]
/* Link Tree
 ---------------------------------------------------------------------*/
.module:after
{
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}
.breadCrumb
{
margin: 5px 0;
padding: 0;
float: left;
display: block;
height: 21px;
overflow: hidden;
width: 99%;
padding:5px;
border: solid 1px #dedede;
background:#fff;
clear: both;
}
.breadCrumb ul
{
margin: 0;
padding: 0;
height: 21px;
display: block;
}
.breadCrumb ul li
{
display: block;
float: left;
position: relative;
height: 21px;
overflow: hidden;
line-height: 21px;
margin: 0px 6px 0px 0;
padding: 0px 10px 0px 0;
font-size: .9167em;
background: url(../images/Chevron.gif) no-repeat 100% 0;
}
.breadCrumb ul li a
{
    color: #0e82c7;
text-decoration: none;
font-size: inherit;
font-weight: inherit;
}
.breadCrumb ul li a:hover
{
text-decoration: underline;
}
.breadCrumb ul li.last a
{
    color: #222;
text-decoration: none;
font-size: inherit;
font-weight: inherit;
}
.breadCrumb ul li.last a:hover
{
text-decoration: none;
}
.breadCrumb ul li.iconhome a
{
height: 16px !important;
text-indent:-1000em;
width:16px;
padding: 0;
margin-top: 2px;
overflow: hidden;
background:url(../images/IconHome.gif) no-repeat 0 0;
}
.breadCrumb ul li.iconhome a:hover
{
background-position: 0 -16px;
}
.breadCrumb ul li span
{
display: block;
overflow: hidden;
}
.breadCrumb ul li a
{
display: block;
position: relative;
height: 21px;
line-height: 21px;
overflow: hidden;
float: left;
}
.breadCrumb ul li.last
{
background: none;
margin-right: 0;
padding-right: 0;
}

ekteki leri temanizin images kilasorüne atin

[/h1]
« Son Düzenleme: 11 May 2015, 07:56:30 Gönderen: orhan »

Çevrimdışı soulfather

  • Trade Sayısı: (0)
  • Yeni Üye
  • *
  • İleti: 16
  • Karma +0/-0
  • Cinsiyet: Bay
    • Profili Görüntüle
    • WBilgi.Com
Ynt: Link Ağacı
« Yanıtla #1 : 22 Ara 2013, 07:34:40 »
ekte dosya yok yanlız ama silinmiş heralde.

Çevrimdışı W7K2D

  • Trade Sayısı: (0)
  • Yeni Üye
  • *
  • İleti: 2
  • Karma +0/-0
    • Profili Görüntüle
Ynt: Link Ağacı
« Yanıtla #2 : 04 Nis 2014, 22:04:28 »
thank you so much

Çevrimiçi Ata

  • Yönetici
  • Trade Sayısı: (0)
  • *
  • İleti: 134
  • Karma +1/-0
    • Profili Görüntüle
Ynt: Link Ağacı
« Yanıtla #3 : 05 Nis 2014, 19:40:51 »
You're welcome. :-\