如何添加“显示更多链接选项卡” [英] How Can I Add “Show More Links Tab”
本文介绍了如何添加“显示更多链接选项卡”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在显示10-15个链接而不是显示100-200个链接后添加显示更多链接标签?我想首先只显示10-15个链接,然后当有人点击时显示剩余的隐藏链接以节省页面空间。
{if $ listing_styles.links }
< div id = link_list {if $ listing _ style s.embeds} 样式 = display:none { / if} >
{foreach from = $ thisepisode.embeds key = id item = val name = titles}
< div class = span-16 inner-16 notopmargin embed-selector style = background:#F1F2F1已删除('{$ embed_languages [ $ val.lang] .flag}')15px 17px no-repeat; >
< h5 class = left >
{$ embed_languages [$ val.lang] .language}
{if $ val.type} -
< span class =code-keyword>< a class = link href = java<! - no - > script:void(0); {if $ smarty.foreach.titles.first} class = 当前 {/ if} id = 选择器{$ val.id} > < span > {$ val.type} < / span > < / a >
{/ if }
< / h5 >
< ul id = filter style = width:200px; float:right; margin-removed 0px; >
{if $ val .link}
{if $ global_settings.adfly.id}
< li class = 当前 样式 = float:right > ;
< a href = http:// * * f.ly / {$ global_settings。** fly.id} / {$ val.link | replace: http://:} target = _ blank > {$ lang.open_video} < / a >
< / li >
{else}
< li class = 当前 style = float:right >
< a href = {$ val.link} target = _ blank > {$ lang.open_video} < / a >
< / li >
{/ if}
{/ if}
< / ul >
< / div >
{/ foreach}
< / div >
{/ if}
解决方案
listing_styles.links}
< div id = link_list {if
列出_ 样式 s.embeds} 样式 = display:none {/ if} >
{foreach from =
thisepisode.embeds key = id item = val name = titles}
< div class = span-16 inner-16 notopmargin embed-selector style = background:#F1F2F1已删除('{
How can I add "show more links tab" after showing 10-15 links instead of showing 100-200 links? I want to show only 10-15 links at first and then when somebody clicks show the rest of the hidden links to save page space.
{if $listing_styles.links}
<div id="link_list" {if $listing_styles.embeds}style="display:none"{/if}>
{foreach from=$thisepisode.embeds key=id item=val name=titles}
<div class="span-16 inner-16 notopmargin embed-selector" style="background: #F1F2F1 removed('{$embed_languages[$val.lang].flag}') 15px 17px no-repeat;" >
<h5 class="left">
{$embed_languages[$val.lang].language}
{if $val.type} -
<a class="link" href="java<!-- no -->script:void(0);" {if $smarty.foreach.titles.first}class="current"{/if} id="selector{$val.id}"><span>{$val.type}</span></a>
{/if}
</h5>
<ul id="filter" style="width:200px;float:right;margin-removed 0px;">
{if $val.link}
{if $global_settings.adfly.id}
<li class="current" style="float:right">
<a href="http://**f.ly/{$global_settings.**fly.id}/{$val.link|replace:"http://":""}" target="_blank">{$lang.open_video}</a>
</li>
{else}
<li class="current" style="float:right">
<a href="{$val.link}" target="_blank">{$lang.open_video}</a>
</li>
{/if}
{/if}
</ul>
</div>
{/foreach}
</div>
{/if}
解决方案
listing_styles.links} <div id="link_list" {if
listing_styles.embeds}style="display:none"{/if}> {foreach from=
thisepisode.embeds key=id item=val name=titles} <div class="span-16 inner-16 notopmargin embed-selector" style="background: #F1F2F1 removed('{
这篇关于如何添加“显示更多链接选项卡”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文