mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +08:00
replace str
This commit is contained in:
parent
a2046018c8
commit
f9652ed7c3
1 changed files with 5 additions and 2 deletions
|
@ -232,11 +232,14 @@ class WP_CHINA_YES {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function settings() {
|
public static function settings() {
|
||||||
echo <<<EOT
|
$iframe_str = <<<EOT
|
||||||
<div style="height: 20px"></div>
|
<div style="height: 20px"></div>
|
||||||
<iframe src="<?php echo plugins_url() ?>/wp-china-yes/settings.html"
|
<iframe src="/wp-content/plugins/wp-china-yes/settings.html"
|
||||||
frameborder="0" height="850" width="800px;" scrolling="No" leftmargin="0" topmargin="0">
|
frameborder="0" height="850" width="800px;" scrolling="No" leftmargin="0" topmargin="0">
|
||||||
</iframe>
|
</iframe>
|
||||||
EOT;
|
EOT;
|
||||||
|
$plugin_root_url = plugin_dir();
|
||||||
|
str_replace('/wp-content/plugins', $plugin_root_url, $iframe_str);
|
||||||
|
echo $iframe_str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue