function getTheme()
 {
     if (!wp2android_plugin_settings()->getIPadActive()) {
         return false;
     }
     if (!isset($_SERVER['HTTP_USER_AGENT'])) {
         return false;
     }
     if (stripos($_SERVER['HTTP_USER_AGENT'], 'wp2android_user_agent=ipad_app') === false) {
         return false;
     }
     return array('theme' => wp2android_plugin_settings()->getIPadTheme(), 'menu' => wp2android_plugin_settings()->getIPadMenu());
 }
    function wp_head()
    {
        $icon = wp2android_plugin_settings()->getWebappIcon();
        if (empty($icon)) {
            return;
        }
        ?>
		<link rel="shortcut icon" href="<?php 
        echo esc_attr($icon);
        ?>
">
		<link rel="apple-touch-icon" href="<?php 
        echo esc_attr($icon);
        ?>
" />
		<meta name="apple-mobile-web-app-title" content="<?php 
        echo esc_attr(wp2android_plugin_settings()->getWebappName());
        ?>
" />
<?php 
    }
 function _ad_iframe($content)
 {
     // FIXME: Refactor this to a separate module
     if (!is_single()) {
         return $content;
     }
     $iframe = '';
     $final = '';
     if (wp2android_plugin_settings()->getAdIFrameUrl()) {
         $iframe = '<iframe class="wp2android-no-wrap" style=\\"border:none\\" src="' . esc_attr(wp2android_plugin_settings()->getAdIFrameUrl()) . '" width="' . esc_attr(wp2android_plugin_settings()->getAdIFrameWidth()) . '" height="' . esc_attr(wp2android_plugin_settings()->getAdIFrameHeight()) . '"></iframe>';
     }
     return $iframe . $content . $iframe . $final;
 }