我想隐藏变量,仅在有链接时显示
有人可以帮助解决这个问题,我将不胜感激
我已经尝试了几种方法,但从未成功
<?php
if($my_meta['ct'] == 1) {
print '
<div class="tab-pane" id="Player1-Dub">
<div class="player-video-filme">
<iframe id="iframeDub1" frameborder="0" width="100%" height="100%" scrolling="no" allowFullScreen mozallowfullscreen msallowfullscreen oallowfullscreen webkitallowfullscreen>
</iframe>
</div>
</div>
<div class="tab-pane" id="Player2-Dub">
<div class="player-video-filme">
<iframe id="iframeDub2" frameborder="0" width="100%" height="100%" scrolling="no" allowFullScreen mozallowfullscreen msallowfullscreen oallowfullscreen webkitallowfullscreen>
</iframe>
</div>
</div>
<div class="tab-pane" id="Player3-Dub">
<div class="player-video-filme">
<iframe id="iframeDub3" frameborder="0" width="100%" height="100%" scrolling="no" allowFullScreen mozallowfullscreen msallowfullscreen oallowfullscreen webkitallowfullscreen>
</iframe>
</div>
</div>
<div class="tab-pane" id="Player4-Dub">
<div class="player-video-filme">
<iframe id="iframeDub4" frameborder="0" width="100%" height="100%" scrolling="no" allowFullScreen mozallowfullscreen msallowfullscreen oallowfullscreen webkitallowfullscreen>
</iframe>
</div>
</div>
<div class="tab-pane" id="Player5-Dub">
<div class="player-video-filme">
<iframe id="iframeDub5" frameborder="0" width="100%" height="100%" scrolling="no" allowFullScreen mozallowfullscreen msallowfullscreen oallowfullscreen webkitallowfullscreen>
</iframe>
</div>
</div>
</div>
<div class="select-players hidden-lg hidden-md">
<select id="selectPlayerDub">
<option disabled selected>Selecionar Player
</option>
<option value="0" data-targetiframe="iframeDub1" data-iframe="'.$my_meta['url_1'].'"> '.$my_meta['ply_1'].'
</option>
<option value="1" data-targetiframe="iframeDub2" data-iframe="'.$my_meta['url_2'].'"> '.$my_meta['ply_2'].'
</option>
<option value="2" data-targetiframe="iframeDub3" data-iframe="'.$my_meta['url_3'].'"> '.$my_meta['ply_3'].'
</option>
<option value="3" data-targetiframe="iframeDub4" data-iframe="'.$my_meta['url_4'].'"> '.$my_meta['ply_4'].'
</option>
<option value="4" data-targetiframe="iframeDub5" data-iframe="'.$my_meta['url_5'].'"> '.$my_meta['ply_4'].'
</option>
</select>
</div>
<ul class="tabs-navigation hidden-xs hidden-sm" id="tabsDub">
<li>
<a id="openPDub1" data-iframe="'.$my_meta['url_1'].'" href="#Player1-Dub">
<i class="fa fa-play">
</i>'.$my_meta['ply_1'].'
</a>
</li>
<li>
<a id="openPDub2" data-iframe="'.$my_meta['url_2'].'" href="#Player2-Dub">
<i class="fa fa-play">
</i>'.$my_meta['ply_2'].'
</a>
</li>
<li>
<a id="openPDub3" data-iframe="'.$my_meta['url_3'].'" href="#Player3-Dub">
<i class="fa fa-play">
</i>'.$my_meta['ply_3'].'
</a>
</li>
<li>
<a id="openPDub4" data-iframe="'.$my_meta['url_4'].'" href="#Player4-Dub">
<i class="fa fa-play">
</i>'.$my_meta['ply_4'].'
</a>
</li>
<li>
<a id="openPDub5" data-iframe="'.$my_meta['url_5'].'" href="#Player5-Dub">
<i class="fa fa-play">
</i>'.$my_meta['ply_5'].'
</a>
</li>
';
}
?>