Exemplo n.º 1
0
 function mysiteapp_append_native_link()
 {
     global $msap, $wp;
     if ($msap->has_custom_theme()) {
         return;
     }
     $appleId = uppsite_get_native_app("identifier", "ios");
     if (!is_null($appleId) && uppsite_get_native_app("banner", "ios")) {
         $currentUrl = add_query_arg($wp->query_string, '', home_url($wp->request));
         print '<meta name="apple-itunes-app" content="app-id=' . $appleId . ', app-argument=' . esc_attr($currentUrl) . '"/>';
     }
 }
Exemplo n.º 2
0
<?php

$native_url = uppsite_get_native_app('url');
$base_dir = get_template_directory_uri();
$app_name = mysiteapp_get_prefs_value('app_name', get_bloginfo('name'));
$navbar_img = mysiteapp_get_prefs_value('navbar_background_url', null);
$landing_bg = mysiteapp_get_prefs_value('landing_background_url', MYSITEAPP_LANDING_DEFAULT_BG);
$native_icon = "ios";
switch (MySiteAppPlugin::detect_specific_os()) {
    case "android":
        $native_icon = "android";
        break;
    case "wp":
        $native_icon = "windows";
        break;
}
$hideMenus = json_decode(mysiteapp_get_prefs_value('hide_menus', '[]'), true);
$branded = in_array('about', $hideMenus);
?>
<html>
<head>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
    <link type="text/css" rel="stylesheet" href="<?php 
echo $base_dir;
?>
/assets/css/layout.css"/>
    <script type="text/javascript">
        var is_permanent = "";
        function remember_func(elem) {
            if (elem.checked) {