smf link tree

Başlatan snrj, 30 Eki 2014 03:59

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

*

  1. 3,128

  2. 588

  3. 1012

[IMG]http://i.imgur.com/OLDQwWA.png[/img]

index.template.php de bul
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ştir
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>';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '<span class="test"></span>
<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 de en alta ekle
.module:after
{
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}
.breadCrumb
{
margin:0;
float: left;
display: block;
height: 28px;
overflow: hidden;
width: 99%;
padding:0px;
border: solid 1px #dedede;
background:linear-gradient(to bottom, #e1e1e1 0%,#ffffff 51%,#e1e1e1 100%);
clear: both;border-radius: 6px;
}
.breadCrumb ul
{
margin: 0;
padding: 0;
height: 30px;
display: block;
}
.test
{
display: block;
overflow: hidden;
background: url(../images/breadcrumb_light.gif)no-repeat 0% 0;
margin-left: -29px;
width: 29px;
height: 30px;
float: left;
}

.breadCrumb ul li
{
display: block;
float: left;
position: relative;
height: 30px;
overflow: hidden;
line-height: 30px;
margin: 0px;
padding: 0px;
font-size: .9167em;
}
.breadCrumb ul li a
{
    color: #0e82c7;
text-decoration: none;
font-size: inherit;
font-weight: inherit;
}
.breadCrumb ul li a:hover
{
text-decoration: underline;
color: #000;text-decoration: none;
}
.breadCrumb ul li.last a
{
    color: #222;
text-decoration: none;
font-size: inherit;
font-weight: inherit;
background: url(../images/breadcrumb_light.gif)no-repeat 100% 0;
padding: 5px 20px;
    height: 30px;
}


.breadCrumb ul li span
{
display: block;
overflow: hidden;

}
.breadCrumb ul li a
{
display: block;
position: relative;
line-height: 21px;
overflow: hidden;
float: left;
background: url(../images/breadcrumb_light.gif)no-repeat 100% 0;
padding: 5px 20px;
    height: 30px;
}

.breadCrumb ul li.last
{
background: none;
margin-right: 0;
padding-right: 0;
}

ekteki resimi temanızın images klasörüne atın



  1. 632

  2. 251
saoğal o eklenti sitemde var emeğine sağlık ayrıca

****

  1. 503

  2. 83

  3. 115
yaptım:)
teşekkürler..
hey gidi dünya..

*

  1. 3,128

  2. 588

  3. 1012

Alıntı yapılan: MasTR - 30 Eki 2014 17:44saoğal o eklenti sitemde var emeğine sağlık ayrıca


sitenizdeki ile bu arasında farklar var
ben teşekkür edrim yorumunuz için

Alıntı yapılan: mavice - 30 Eki 2014 18:20yaptım:)
teşekkürler..

gülegüle kullanın


MENU ×