replace str

This commit is contained in:
zhaofeng-shu33 2020-03-17 13:49:29 +08:00
parent a2046018c8
commit f9652ed7c3

View file

@ -232,11 +232,14 @@ class WP_CHINA_YES {
}
public static function settings() {
echo <<<EOT
$iframe_str = <<<EOT
<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">
</iframe>
EOT;
$plugin_root_url = plugin_dir();
str_replace('/wp-content/plugins', $plugin_root_url, $iframe_str);
echo $iframe_str;
}
}