0

我正在使用第三方插件并提取完美运行的短代码(NextGen Gallery 插件) - 但是当您单击图像时,它会移动到新的浏览器窗口以显示全屏图像。我想知道如何包装短代码以在模式中显示?

<a href="#gallery" data-toggle="modal">
                                <?php echo do_shortcode('[ngg_images gallery_ids="1" display_type="photocrati-nextgen_basic_thumbnails" excludes="4,6" gallery_height="400"]'); ?>

</a>

这是我的模态:

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="margin-top:200px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Club video</h4>
            </div>
            <div class="modal-body">
                <iframe width="100%" height="500" src="//www.youtube.com/embed/4UnLo57BhEA" frameborder="0" allowfullscreen></iframe>
            </div>
        </div>
    </div>
</div> 

我有点想不通……:S

4

0 回答 0