config.php 655 B

123456789101112131415161718
  1. <link rel="stylesheet" href="<?php echo $this->pluginDirUrl; ?>styles.css" type="text/css" />
  2. <div class="wrap">
  3. <?php echo screen_icon();?><h2>注册站点</h2>
  4. <?php
  5. $user = wp_get_current_user();
  6. $params = $this->packageOptions() + array(
  7. 'system' => 'wordpress',
  8. 'callback' => admin_url('admin.php?page=duoshuo'),
  9. 'user_key' => $user->ID,
  10. 'user_name' => $user->display_name,
  11. 'sync_log' => 1,
  12. );
  13. $adminUrl = is_ssl() ? 'https://' : 'http://';
  14. $adminUrl .= self::DOMAIN . '/connect-site/?'. http_build_query($params, null, '&')
  15. ?>
  16. <iframe id="duoshuo-remote-window" src="<?php echo $adminUrl;?>" style="width:100%;height:580px;"></iframe>
  17. </div>