Sign in to follow this  
Followers 0
Dixon

Помощь в шаблоне

4 posts in this topic

Народ помогите сделать условие для шаблона, мне надо чтобы если в новости нету ссылки на плеер то активной кнопкой был трейлер, а если есть и то и то то тогда плеер. 

 

<div id="full-video1">
[xfgiven_trailer]
<ul id="navt" class="nav-tabs1 block-p" role="tablist">
[xfgiven_online1]
<li class="active"><a href="#online1" role="tab" data-toggle="tab">Плеер HD 720</a></li>
[/xfgiven_online1]
[xfgiven_online2]
<li><a href="#online2" role="tab" data-toggle="tab">Плеер HD 720</a></li>
[/xfgiven_online2]
[xfgiven_trailer]
<li><a href="#trailer" role="tab" data-toggle="tab">Трейлер</a></li>
[/xfgiven_trailer]
</ul>
[/xfgiven_trailer]
[xfgiven_trailer]
<div class="tab-content1 block-p">
[xfgiven_online1]
<div class="tab-pane1 fade in active" id="online1">
<div class="video-responsive">
{hdlight-player}
</div>
</div>
[/xfgiven_online1]
[xfgiven_online2]
<div class="tab-pane1 fade" id="online2">
<div class="video-responsive">
[xfvalue_online2]
</div>
</div>
[/xfgiven_online2]
[xfgiven_trailer]
<div class="tab-pane1 fade" id="trailer">
<div class="video-responsive">
[xfvalue_trailer]
</div>
</div>
[/xfgiven_trailer]
</div>
[/xfgiven_trailer]
</div>

0

Share this post


Link to post
Share on other sites

Пример

Код:
<div class="section section-players">
    <ul class="tabs">
        [xfgiven_url_vkvideo]<li class="current">Плеер №1</li>[/xfgiven_url_vkvideo]
        [xfgiven_moonwalkco]<li class="current">Плеер №2</li>[/xfgiven_moonwalkco]
        <li [xfnotgiven_url_vkvideo][xfnotgiven_moonwalkco]class="current"[/xfnotgiven_url_vkvideo][/xfnotgiven_moonwalkco]>Трейлер</li>
    </ul>


    <div style="clear:both"></div>
[xfgiven_moonwalkco]
    <div class="box visible" style="background-color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial;">
<iframe src="[xfvalue_moonwalkco]" width="620" height="400" frameborder="0" scrolling="no" style="overflow: hidden;" allowfullscreen></iframe>
    </div>

[/xfgiven_moonwalkco]
    [xfgiven_url_vkvideo]
    <div class="box visible" style="background-color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial;">

    </div>
    [/xfgiven_url_vkvideo]
[xfgiven_trailer]
    <div class="box [xfnotgiven_url_vkvideo][xfnotgiven_moonwalkco]visible[/xfnotgiven_moonwalkco][/xfnotgiven_url_vkvideo]" style="background-color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial;">
       
            [xfvalue_trailer]
       
    </div>[/xfgiven_trailer]
</div>
 
0

Share this post


Link to post
Share on other sites

@Programer спасибо помогло, а можно ли вывести ссылку на рандомную новость ?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0