aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorHorus32014-10-28 23:47:28 +0100
committerHorus32014-10-28 23:47:28 +0100
commit44870defdcddbfceede437950fd9e3342f84ebf0 (patch)
treef4de13cd94be784ef02975df95d5f0edb50aac90 /static
parent25610c0ccb4c7c99fe0d6d82d6738dbcc40d05e3 (diff)
downloadjungegemeinde-44870defdcddbfceede437950fd9e3342f84ebf0.tar.gz
Added experimental CDN support.
Diffstat (limited to 'static')
-rwxr-xr-xstatic/footer.php2
-rw-r--r--static/header.php24
-rw-r--r--static/modal-delete-gallery.php2
-rw-r--r--static/modal-edit-gallery.php2
-rw-r--r--static/modal-new-gallery.php (renamed from static/modal-new-gallery.html)2
5 files changed, 16 insertions, 16 deletions
diff --git a/static/footer.php b/static/footer.php
index 7c05018..f797d86 100755
--- a/static/footer.php
+++ b/static/footer.php
@@ -16,4 +16,4 @@
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.min.js" defer></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" defer></script>
- <script src="/js/functions.js" defer></script>
+ <script src="<?php echo CDN; ?>js/functions.js" defer></script>
diff --git a/static/header.php b/static/header.php
index 69a9c4b..824d4c1 100644
--- a/static/header.php
+++ b/static/header.php
@@ -7,20 +7,20 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
- <a class="navbar-brand effect" href="/?page=index" title="Startseite"><span class="glyphicon glyphicon-home"></span> Home</a>
+ <a class="navbar-brand effect" href="<?php echo DOMAIN; ?>?page=index" title="Startseite"><span class="glyphicon glyphicon-home"></span> Home</a>
</div>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="nav navbar-nav navbar-left effect">
<li>
- <!--a href="/?page=foto" title="Übersicht über alle Fotogalerien"><span class="fa fa-camera"></span> Bilder</a-->
- <a href="/?page=foto" title="Übersicht über alle Fotogalerien"><span class="glyphicon glyphicon-picture"></span> Bilder</a>
+ <!--a href="<?php echo DOMAIN; ?>?page=foto" title="Übersicht über alle Fotogalerien"><span class="fa fa-camera"></span> Bilder</a-->
+ <a href="<?php echo DOMAIN; ?>?page=foto" title="Übersicht über alle Fotogalerien"><span class="glyphicon glyphicon-picture"></span> Bilder</a>
</li>
<li class="dropdown">
- <a href="/?page=liste" title="Liste aller JG-Mitglieder"><span class="glyphicon glyphicon-th-list"></span> Adressen <span class="caret"></span></a>
+ <a href="<?php echo DOMAIN; ?>?page=liste" title="Liste aller JG-Mitglieder"><span class="glyphicon glyphicon-th-list"></span> Adressen <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
- <li><a href="/?page=download&task=download&type=plain" title="Download: text/plain"><span class="glyphicon glyphicon-download"></span> Download als Text</a></li>
- <!--li><a href="/?page=download&task=download&type=csv" title="Download: text/csv"><span class="glyphicon glyphicon-arrow-down"></span> Download als CSV</a></li-->
- <li><a href="/?page=download&task=download&type=csv" title="Download: text/csv"><span class="fa fa-download"></span> Download als CSV</a></li>
+ <li><a href="<?php echo DOMAIN; ?>?page=download&task=download&type=plain" title="Download: text/plain"><span class="glyphicon glyphicon-download"></span> Download als Text</a></li>
+ <!--li><a href="<?php echo DOMAIN; ?>?page=download&task=download&type=csv" title="Download: text/csv"><span class="glyphicon glyphicon-arrow-down"></span> Download als CSV</a></li-->
+ <li><a href="<?php echo DOMAIN; ?>?page=download&task=download&type=csv" title="Download: text/csv"><span class="fa fa-download"></span> Download als CSV</a></li>
</ul>
</li>
<li>
@@ -44,25 +44,25 @@
$_title = "Einloggen, registrieren, Profil";
}
?>
- <a href="/?page=account" title="<?php echo $_title; ?>"><span class="glyphicon glyphicon-user"></span> <?php echo $_name; ?> <span class="caret"></span></a>
+ <a href="<?php echo DOMAIN; ?>?page=account" title="<?php echo $_title; ?>"><span class="glyphicon glyphicon-user"></span> <?php echo $_name; ?> <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li>
<?php
if ( $user->isLoggedIn() ) {
?>
- <a href="/?page=account" title="Ändere dein Passwort"><span class="glyphicon glyphicon-user"></span> Profil</a>
+ <a href="<?php echo DOMAIN; ?>?page=account" title="Ändere dein Passwort"><span class="glyphicon glyphicon-user"></span> Profil</a>
</li>
<li class="divider"></li>
<li>
- <a href="/?page=logout" title="Beende die Session"><span class="glyphicon glyphicon-off"></span> Logout</a>
+ <a href="<?php echo DOMAIN; ?>?page=logout" title="Beende die Session"><span class="glyphicon glyphicon-off"></span> Logout</a>
<?php
} else {
?>
- <a href="/?page=register&goto=index" title="Registriere dich für unbeschränkten Zugang"><span class="glyphicon glyphicon-share-alt"></span> Register</a>
+ <a href="<?php echo DOMAIN; ?>?page=register&goto=index" title="Registriere dich für unbeschränkten Zugang"><span class="glyphicon glyphicon-share-alt"></span> Register</a>
</li>
<li class="divider"></li>
<li>
- <a href="/?page=login&goto=index" title="Login"><span class="glyphicon glyphicon-log-in"></span> Login</a>
+ <a href="<?php echo DOMAIN; ?>?page=login&goto=index" title="Login"><span class="glyphicon glyphicon-log-in"></span> Login</a>
<?php
}
?>
diff --git a/static/modal-delete-gallery.php b/static/modal-delete-gallery.php
index 74471ac..df16d76 100644
--- a/static/modal-delete-gallery.php
+++ b/static/modal-delete-gallery.php
@@ -1,5 +1,5 @@
<!-- Modal -->
-<form class="form-horizontal" method="POST" action="/?page=action&task=deleteGallery&gallery=<?php echo htmlentities($_SESSION['gallery']); ?>">
+<form class="form-horizontal" method="POST" action="<?php echo DOMAIN; ?>?page=action&task=deleteGallery&gallery=<?php echo htmlentities($_SESSION['gallery']); ?>">
<div class="modal fade" id="modal-delete-gallery" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
diff --git a/static/modal-edit-gallery.php b/static/modal-edit-gallery.php
index d16e580..d44348c 100644
--- a/static/modal-edit-gallery.php
+++ b/static/modal-edit-gallery.php
@@ -1,5 +1,5 @@
<!-- Modal -->
-<form class="form-horizontal" method="POST" action="/?page=action&amp;task=editGallery&amp;gallery=<?php echo htmlentities($_SESSION['gallery']); ?>">
+<form class="form-horizontal" method="POST" action="<?php echo DOMAIN; ?>?page=action&amp;task=editGallery&amp;gallery=<?php echo htmlentities($_SESSION['gallery']); ?>">
<div class="modal fade" id="modal-edit-gallery" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
diff --git a/static/modal-new-gallery.html b/static/modal-new-gallery.php
index 3d0b3f9..cf3f892 100644
--- a/static/modal-new-gallery.html
+++ b/static/modal-new-gallery.php
@@ -1,5 +1,5 @@
<!-- Modal -->
-<form class="form-horizontal" method="POST" action="/?page=action&task=gallery">
+<form class="form-horizontal" method="POST" action="<?php echo DOMAIN; ?>?page=action&task=gallery">
<div class="modal fade" id="modal-new-gallery" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">