Fixed Zawgyi Embed Wordpress Plugins

Today, I fixed the zawgyi embed wordpress plugin. In the previous, it can’t work in iPhone and iPad. Yes, my svg embed font was not working. So, I remade the svg and change php code. I changed php code. iPhone can’t handle stylesheet.php for css. So, I separated 3 files. Android.css, iphone.css, other.css.

function zawgyi_css(){

$plugin_url= get_option(‘siteurl’).’/wp-content/plugins/‘.dirname(plugin_basename(FILE));
if(!(stristr($_SERVER[‘HTTP_USER_AGENT’], “Android”) === FALSE))
{
$css=”android”;
}
if(!(stristr($_SERVER[‘HTTP_USER_AGENT’], “iPhone”) === FALSE) || !(stristr($_SERVER[‘HTTP_USER_AGENT’], “iPad”) === FALSE) || !(stristr($_SERVER[‘HTTP_USER_AGENT’], “iPodTouch”) === FALSE) || !(stristr($_SERVER[‘HTTP_USER_AGENT’], “Safari”) === FALSE))
{
$css=”iphone”;
}
else
{
$css=”other”;
}
You should update zawgyi embed wp-plugin now if you are using.
comments powered byDisqus