mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:57:40 +03:00
pudate
This commit is contained in:
@@ -196,7 +196,7 @@ function hub_h(string $s): string {
|
|||||||
</nav>
|
</nav>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<?php require __DIR__ . '/../crash_reporter/backend/views/partials/cookie_consent.php'; ?>
|
<?php require __DIR__ . '/partials/cookie_consent.php'; ?>
|
||||||
<?php platform_render_footer([
|
<?php platform_render_footer([
|
||||||
'use_i18n' => false,
|
'use_i18n' => false,
|
||||||
'extra_class' => 'bottom-bar',
|
'extra_class' => 'bottom-bar',
|
||||||
|
|||||||
15
examples/app_hub/partials/cookie_consent.php
Normal file
15
examples/app_hub/partials/cookie_consent.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php declare(strict_types=1); ?>
|
||||||
|
<div id="cookie-consent-banner" class="cookie-consent" hidden role="dialog" aria-labelledby="cookie-consent-title" aria-modal="false">
|
||||||
|
<div class="cookie-consent-inner">
|
||||||
|
<p id="cookie-consent-title" class="cookie-consent-title">Cookies on AndroidCast</p>
|
||||||
|
<p class="cookie-consent-text muted">
|
||||||
|
We use necessary session cookies to sign you in. With your consent we also load analytics to improve the service.
|
||||||
|
You can change this later in your browser by clearing site data.
|
||||||
|
</p>
|
||||||
|
<div class="cookie-consent-actions">
|
||||||
|
<button type="button" class="btn btn--primary" id="cookie-consent-all">Accept all</button>
|
||||||
|
<button type="button" class="btn" id="cookie-consent-necessary">Necessary only</button>
|
||||||
|
<button type="button" class="btn btn--ghost" id="cookie-consent-reject">Reject optional</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -41,11 +41,13 @@ sync_local() {
|
|||||||
echo "Mount BE sshfs or pass the BE androidcast_project path as arg 1." >&2
|
echo "Mount BE sshfs or pass the BE androidcast_project path as arg 1." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mkdir -p "$dest/assets/i18n"
|
mkdir -p "$dest/assets/i18n" "$dest/partials"
|
||||||
for f in "${hub_files[@]}"; do
|
for f in "${hub_files[@]}"; do
|
||||||
install -m 0644 "$SRC/$f" "$dest/$f"
|
install -m 0644 "$SRC/$f" "$dest/$f"
|
||||||
echo " $f"
|
echo " $f"
|
||||||
done
|
done
|
||||||
|
install -D -m 0644 "$SRC/partials/cookie_consent.php" "$dest/partials/cookie_consent.php"
|
||||||
|
echo " partials/cookie_consent.php"
|
||||||
for f in "${asset_files[@]}"; do
|
for f in "${asset_files[@]}"; do
|
||||||
install -D -m 0644 "$SRC/$f" "$dest/$f"
|
install -D -m 0644 "$SRC/$f" "$dest/$f"
|
||||||
echo " $f"
|
echo " $f"
|
||||||
@@ -84,6 +86,8 @@ if [[ -n "$REMOTE" ]]; then
|
|||||||
scp "$tmp/index.php" "$tmp/index.html" "$tmp/hub.css" "$tmp/hub-logo-layers.css" \
|
scp "$tmp/index.php" "$tmp/index.html" "$tmp/hub.css" "$tmp/hub-logo-layers.css" \
|
||||||
"$tmp/hub-landing.css" "$tmp/landing-pages.inc.php" \
|
"$tmp/hub-landing.css" "$tmp/landing-pages.inc.php" \
|
||||||
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/"
|
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/"
|
||||||
|
scp "$SRC/partials/cookie_consent.php" \
|
||||||
|
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/partials/"
|
||||||
scp -r "$tmp/assets/hub-landing.js" "$tmp/assets/hub-i18n.js" "$tmp/assets/hub-globe.js" \
|
scp -r "$tmp/assets/hub-landing.js" "$tmp/assets/hub-i18n.js" "$tmp/assets/hub-globe.js" \
|
||||||
"$tmp/assets/analytics.config.js" "$tmp/assets/i18n" \
|
"$tmp/assets/analytics.config.js" "$tmp/assets/i18n" \
|
||||||
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/assets/"
|
"$REMOTE:/var/www/localhost/htdocs/apps/app/androidcast_project/assets/"
|
||||||
|
|||||||
Reference in New Issue
Block a user