Skip to content
Permalink
Browse files

fixes #5 add a webview display for mobile-apps-privacy-policy

  • Loading branch information...
plegall committed Aug 5, 2019
1 parent 63cb967 commit 22d8fe2776bf06ccc9e65d126dc72fe294637e87
Showing with 25 additions and 0 deletions.
  1. +15 −0 css/webview.css
  2. +6 −0 main.inc.php
  3. +4 −0 template/header.tpl
@@ -0,0 +1,15 @@
/* designed for displaying the privacy policy embedded in Piwigo mobile app */

footer {
display: none;
}
body {
padding-bottom: 50px;
}

nav .navbar-nav {
display:none;
}
nav .navbar-toggle {
display:none;
}
@@ -208,6 +208,12 @@ function porg_load_content()
$redirects[ $_GET['porg'] ] = $lang['porg_urls']['release'].'-'.$matches[1];
}
// specific case for mobile-apps-privacy-policy, ability to go headless
if ('mobile-apps-privacy-policy' == $_GET['porg'] and isset($_GET['webview']))
{
$template->assign('WEBVIEW', true);
}
if (isset($redirects[ $_GET['porg'] ]))
{
set_status_header(301);
@@ -26,6 +26,10 @@
{if (isset($LANGUAGE_CSS))}
<link rel="stylesheet" type="text/css" href="{$PORG_ROOT_URL_PLUGINS}{$LANGUAGE_CSS}">
{/if}

{if (isset($WEBVIEW) && $WEBVIEW)}
<link rel="stylesheet" type="text/css" href="{$PORG_ROOT_URL_PLUGINS}css/webview.css">
{/if}

<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

0 comments on commit 22d8fe2

Please sign in to comment.
You can’t perform that action at this time.