Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何打开url作为引导模式窗口?_Php_Wordpress_Twitter Bootstrap_Modal Dialog - Fatal编程技术网

Php 如何打开url作为引导模式窗口?

Php 如何打开url作为引导模式窗口?,php,wordpress,twitter-bootstrap,modal-dialog,Php,Wordpress,Twitter Bootstrap,Modal Dialog,我有一行PHP: $STRING.=$b_f.'。$b_a; 此url现在作为新网页打开。如何将其作为对话框/模式窗口打开?在我的代码中安装了引导程序。试试这个“技巧”: 只需将链接传递到按钮的href 试试这个“把戏”: 只需将链接传递到按钮的href 试试这个解决方案,它对我有帮助。Vic Abreu,它不会打开模式,单击按钮只会使网页右滚动条消失。有什么建议吗?不是真的Yaniv Noodelman,这是一个对我有效的工作示例,它已经在JSFIDLE上工作。感谢Vic Abreu,将

我有一行PHP:


$STRING.=$b_f.'。$b_a;

此url现在作为新网页打开。如何将其作为对话框/模式窗口打开?在我的代码中安装了引导程序。

试试这个“技巧”:

只需将链接传递到按钮的
href

试试这个“把戏”:

只需将链接传递到按钮的
href


试试这个解决方案,它对我有帮助。Vic Abreu,它不会打开模式,单击按钮只会使网页右滚动条消失。有什么建议吗?不是真的Yaniv Noodelman,这是一个对我有效的工作示例,它已经在JSFIDLE上工作。感谢Vic Abreu,将再次尝试这个解决方案,它帮助了我。Vic Abreu,它不会打开模式,通过单击按钮它只会使网页右滚动条消失。有什么建议吗?不是真的Yaniv Noodelman,这是一个对我有用的工作示例,它已经在JSFIDLE上工作了。谢谢Vic Abreu,我会尝试的again@YanivNoodelman这是一个很好的例子。检查我的答案编辑-有一个演示链接。谢谢斯利姆,我会做的so@YanivNoodelman这是一个很好的例子。检查我的答案编辑-有一个演示链接。谢谢斯利姆,我会这样做
$STRING .= $b_f.'<a href="'.get_home_url().'/wp-login.php" class="ua5 '.$linkclass.'">'.$CORE->_e(array('head','5','flag_link')).'</a>'.$b_a;
<a href="http://twitter.github.io/bootstrap/" class="btn bootpopup" title="This is title" target="popupModal2">Open modal</a>

<div id="popupModal2" class="modal hide fade" tabindex="-1" role="dialog">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
            <h3>Title</h3>
    </div>
    <div class="modal-body">
      <iframe src="" style="zoom:0.60" frameborder="0" height="250" width="99.6%"></iframe>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal">OK</button>
    </div>
</div>
$('.bootpopup').click(function(){
  var frametarget = $(this).attr('href');
  var targetmodal = $(this).attr('target');
  if (targetmodal == undefined) {
    targetmodal = '#popupModal';
  } else { 
    targetmodal = '#'+targetmodal;
  }
  if ($(this).attr('title') != undefined) {
    $(targetmodal+ ' .modal-header h3').html($(this).attr('title'));
    $(targetmodal+' .modal-header').show();
  } else {
     $(targetmodal+' .modal-header h3').html('');
    $(targetmodal+' .modal-header').hide();
  }  
    $(targetmodal).on('show', function () {
        $('iframe').attr("src", frametarget );   
    });
    $(targetmodal).modal({show:true});
  return false;

});