preferences.php 837 B

12345678910111213141516171819202122232425262728
  1. <link rel="stylesheet" href="<?php echo $this->pluginDirUrl; ?>styles.css" type="text/css" />
  2. <?php
  3. $params = array(
  4. 'jwt' => $this->jwt(),
  5. );
  6. $adminUrl = is_ssl() ? 'https://' : 'http://';
  7. $adminUrl .= $this->shortName . '.' . self::DOMAIN . '/admin/settings/?' . http_build_query($params, null, '&');
  8. ?>
  9. <div class="wrap">
  10. <?php screen_icon(); ?>
  11. <h2>多说评论框设置
  12. <a class="add-new-h2" target="_blank" href="<?php echo $adminUrl;?>">在新窗口中打开</a></h2>
  13. <iframe id="duoshuo-remote-window" src="<?php echo $adminUrl;?>" style="width:100%;"></iframe>
  14. </div>
  15. <script>
  16. jQuery(function(){
  17. var $ = jQuery,
  18. iframe = $('#duoshuo-remote-window'),
  19. resetIframeHeight = function(){
  20. iframe.height($(window).height() - iframe.offset().top - 70);
  21. };
  22. resetIframeHeight();
  23. $(window).resize(resetIframeHeight);
  24. });
  25. </script>