add redirects for coloradio, remove index page

This commit is contained in:
Raphael
2024-05-23 11:57:24 +02:00
parent 35c697a825
commit 0460f06d02
4 changed files with 394 additions and 612 deletions

3
website/.htaccess Normal file
View File

@@ -0,0 +1,3 @@
RedirectMatch ^/$ /programm/
RedirectMatch ^/agenda/?$ /programm/#programm
RedirectMatch ^/datenschutzerklaerung/$ https://coloradio.org/?page_id=576

View File

@@ -1,68 +1,11 @@
* {
border-radius:4px;
}
/*
include in your web page:
<link rel="stylesheet" type="text/css" media="screen" href="/agenda_files/css/calcms.css" />
*/
/* roboto-regular - latin_latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url('../fonts/roboto-v18-latin_latin-ext-regular.eot'); /* IE9 Compat Modes */
src: local('Roboto'), local('Roboto-Regular'),
url('../fonts/roboto-v18-latin_latin-ext-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/roboto-v18-latin_latin-ext-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/roboto-v18-latin_latin-ext-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/roboto-v18-latin_latin-ext-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/roboto-v18-latin_latin-ext-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* open-sans-regular - latin_latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: url('../fonts/open-sans-v15-latin_latin-ext-regular.eot'); /* IE9 Compat Modes */
src: local('Open Sans Regular'), local('OpenSans-Regular'),
url('../fonts/open-sans-v15-latin_latin-ext-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v15-latin_latin-ext-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v15-latin_latin-ext-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v15-latin_latin-ext-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v15-latin_latin-ext-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}
@media (prefers-color-scheme: dark) {
html,
*,
.entry-title a,
#calcms_calendar table thead a:hover,
#calcms_calendar table thead a:link,
.main-navigation a:hover,
.main-navigation a:focus
{
color:white !important;
background:black !important;
}
#calcms_list h1.summary{
background: none !important;
}
a.load-prev, a.load-next{
color:#999 !important;
background:#333 !important;
}
img.custom-logo{
filter: invert(1);
}
}
#page * {
font-family: Roboto, serif !important;
}
#page p {
font-family: Open Sans, serif !important;
/* fix drupal */
input{
max-width:20em;
}
a{
@@ -129,18 +72,6 @@ a {
transition: all .1s ease-in-out;
}
.event .excerpt {
transition: all .2s ease-in-out;
}
a.load-prev, a.load-next{
text-align:center;
cursor:pointer;
display:block ruby;
background:#eee;
padding:0.5rem;
}
#calcms_menu .event:hover {
background: #e6e6e6;
}
@@ -186,7 +117,9 @@ a.load-prev, a.load-next{
background: #e6e6e6;
}
/* calcms list */
#calcms_list{
hyphens:auto;
}
@@ -199,177 +132,60 @@ a.load-prev, a.load-next{
margin-left:1.7rem;
}
#calcms_list .event {
display: flex;
flex-direction: row;
width: 100%;
justify-content: space-between;
hyphens: none;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
transition: all .1s ease-in-out;
}
#calcms_list .event:hover {
background: rgba(200, 200, 200, 0.2);
}
#calcms_list h1,
#calcms_list h2,
#calcms_list h3,
#calcms_list h4 {
display: inline;
}
#calcms_list a:hover,
#calcms_list a:focus,
#calcms_list a:active {
color:none;
}
#calcms_list .date{
font-weight:bold;
}
#calcms_list .icon {
width:20%;
padding: 1rem;
text-align: center;
text-align:left;
}
#calcms_list .time {
width: 5%;
min-width: 5rem;
padding: 1rem;
padding-left: 0.5rem;
padding-right: 0;
text-align: center;
font-size: 1.1rem;
text-align:left;
}
#calcms_list .summary {
width: 80%;
padding: 1rem;
padding-left: 0;
padding-right: 0;
hyphens: auto;
}
#calcms_list .title {
font-weight: bold;
hyphens: auto;
}
#calcms_list .title a {
font-weight: bold;
}
#calcms_list .time{
font-size: 1.2rem;
}
#calcms_list .summary a,
#calcms_list .time {
line-height: 1.8rem;
}
#calcms_list .location {
width: 15%;
padding: 1rem;
font-weight: 100;
text-align: center;
font-size: 1.0rem;
opacity:0.5;
display:inline-flex;
align-items:center;
}
#calcms_list .excerpt{
opacity:0.7;
}
@media all and (max-width: 959px) {
#calcms_list .summary {
width: 90%;
}
#calcms_list .location {
width: 0;
display: none;
}
}
@media all and (max-width: 800px) {
#calcms_list .excerpt {
width: 0;
display: none;
}
#calcms_list .location {
width: 0;
display: none;
}
}
@media all and (max-width: 600px) {
#calcms_list .excerpt {
width: 0;
display: none;
}
#calcms_list .location {
width: 0;
display: none;
}
#calcms_list .subtitle {
width: 0;
display: none;
}
#calcms_list .icon {
width: 0;
display: none;
}
}
#calcms_list .event.running:hover {
opacity: 0.9;
margin-left:3rem;
margin-top:6px;
max-height:5em;
overflow: hidden;
text-overflow: ellipsis;
}
#calcms_list .event.running,
#calcms_list .event.running .excerpt,
#calcms_list .event.running .location,
#calcms_list .event.running a{
color:#fff;
background: #007acc;
background:#aaa;
}
#calcms_list .comments.submitted{
font-weight:bold;
}
#calcms_list h2 {
clear: none !important;
#calcms_list .submitted{
margin-left:3.2rem;
}
#calcms_list .title{
margin-bottom:1em;
font-weight:bold;
}
#calcms_list .content img{
text-align:left;
font-size:1.5em;
margin-bottom:20px;
border:0;
}
#calcms_list .icon img {
width:100%;
height:auto;
}
#calcms_list .content figure {
float: right;
margin: 3vw;
width:33%;
display:inline-block;
margin-left: 1em;
}
#calcms_list .content figcaption {
font-size: 12px;
margin-left: 1em;
max-width: 12em;
#calcms_list .event{
padding:1rem;
padding-right:0.5rem;
border-bottom:1rem solid #fff;
hyphens: none;
cursor:pointer;
background:#eee;
color:#666;
max-height:8rem;
overflow:hidden;
text-overflow: ellipsis;
}
#calcms_list hr{
margin:1em 0;
background: #ccc;
@@ -432,11 +248,9 @@ a.load-prev, a.load-next{
width:100px;
height:100px;
}
#coming_shows .eventContainer:hover {
background:#eeeeee;
}
#coming_shows a:hover {
text-decoration:none;
}
@@ -449,7 +263,6 @@ a.load-prev, a.load-next{
background-position: center center;
background-size: cover;
}
#coming_shows div.event .top,
#coming_shows div.event .bottom{
position:absolute;
@@ -458,10 +271,8 @@ a.load-prev, a.load-next{
opacity:0.8;
width:100%;
}
#coming_shows div.event .top:hover,
#coming_shows div.event .bottom:hover
{
#coming_shows div.event .bottom:hover{
opacity:1;
}
@@ -481,11 +292,13 @@ a.load-prev, a.load-next{
transform: scale(1.05);
}
/* calcms comments */
#calcms_comments{
clear:both;
}
#calcms_comments .author{
color:#666;
font-weight:bold;
@@ -504,49 +317,38 @@ a.load-prev, a.load-next{
}
#calcms_comments .comment{
}
#calcms_comments .level0{
margin-left:00px;
}
#calcms_comments .level1{
margin-left:20px;
}
#calcms_comments .level2{
margin-left:40px;
}
#calcms_comments .level3{
margin-left:60px;
}
#calcms_comments .level4{
margin-left:80px;
}
#calcms_comments .level5{
margin-left:100px;
}
#calcms_comments .level6{
margin-left:120px;
}
#calcms_comments .level7{
margin-left:140px;
}
#calcms_comments .level8{
margin-left:160px;
}
#calcms_comments .level9{
margin-left:180px;
}
#calcms_comments .level10{
margin-left:200px;
}
@@ -573,12 +375,12 @@ a.load-prev, a.load-next{
}
#calcms_comments input{
max-width: 40rem;
max-width:20em;
height:32px;
}
#calcms_comments input[type=submit]{
max-width: 10rem;
max-width:10em;
background:#ddd;
}
@@ -599,9 +401,8 @@ a.load-prev, a.load-next{
}
#calcms_newest_comments div{
padding-left: 1rem;
padding-bottom: 0.5rem;
padding-top: 0.5rem;
padding-left:1em;
padding-bottom:1em;
}
#calcms_newest_comments a:hover{
@@ -650,24 +451,24 @@ a.load-prev, a.load-next{
#calcms_search select{
background: white;
background-image: url("/agenda/images/select.png");
background-image: url("/agenda/image/select.png");
background-position: right center;
background-repeat: no-repeat;
}
#calcms_search input[type="checkbox"]{
background: none;
width: 1rem;
height: 1rem;
width:1em;
height:1em;
border:1px solid #ccc;
display:inline-block;
box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.1) inset;
content: " ";
margin-right: 1rem;
margin-right:1em;
}
#calcms_search input[type="button"]{
background: #1987d1;
background: none;
width:50%;
}
@@ -677,8 +478,11 @@ a.load-prev, a.load-next{
border:1px solid #aaa;
}
#calcms_search input{}
#calcms_search input#calcms_search_field{}
#calcms_search a#calcms_search_show_details{
padding-left: 1rem;
padding-left:1em;
display:block;
}
@@ -688,6 +492,7 @@ a#calcms_search_show_details #plus {
/* end of calcms_search */
/* calcms_calendar */
#calcms_calendar{
overflow:hidden;
@@ -709,15 +514,22 @@ a#calcms_search_show_details #plus {
#calcms_calendar table thead a:hover,
#calcms_calendar table thead a:link,
#calcms_calendar table thead a:visited,
#calcms_calendar table thead a:visited{
color:#333;
padding:0;
text-decoration:none;
font-weight:normal;
}
#calcms_calendar table tbody a:hover,
#calcms_calendar table tbody a:link,
#calcms_calendar table tbody a:visited{
color:#333;
padding:5px;
padding-top:2px;
padding-bottom:3px;
text-decoration:none;
font-weight:normal;
display:block;
}
#calcms_calendar table td,
@@ -729,11 +541,13 @@ a#calcms_search_show_details #plus {
font-weight:normal;
border-bottom:1px solid #ddd;
transition: all .1s ease-in-out;
padding-top:2%;
padding-bottom:2%;
}
#calcms_calendar table thead td:hover,
#calcms_calendar table thead th:hover{
background-color: #1987d1;
background-color:#ddd;
}
/* header */
@@ -745,11 +559,10 @@ a#calcms_search_show_details #plus {
/* month selector */
#calcms_calendar table thead tr:first-child a{
padding:6px;
color: white;
}
#calcms_calendar table thead tr:first-child{
background: #007acc;
background:#ccc;
}
/* weekdays */
@@ -765,13 +578,7 @@ a#calcms_search_show_details #plus {
#calcms_calendar table tbody td:hover,
#calcms_calendar table tbody th:hover{
background-color: #4f7acc;
}
#calcms_calendar table tbody td.calcms_today,
#calcms_calendar table tbody td.calcms_today a {
background: #007acc;
color: white;
background-color:#f0f0f0;
}
#calcms_calendar table td.selected{
@@ -787,38 +594,38 @@ a#calcms_search_show_details #plus {
opacity:0.3;
}
/* player */
#player{
border:0;
padding:0;
height: 5rem;
}
#player:hover {
opacity: 0.9;
height:26px;
width:180px;
overflow:hidden;
}
/* mobile menu */
#mobileMenuButton{
display:block;
position:fixed;
z-index:99;
right:6px;
top:3px;
font-size: 1.5rem;
padding: 1rem;
line-height: 1rem;
font-size:1.5em;
padding:1em;
line-height:1em;
background:#ddd;
color:#000;
font-weight:bold;
cursor: pointer;
background:#ccc;
background: linear-gradient(to bottom, #333 0%, #333 20%, #bbb 20%, #bbb 40%, #333
40%, #333 60%, #bbb 60%, #bbb 80%, #333 80%, #333 100%);
border: 0.4rem solid #bbb;
background:linear-gradient(to bottom, #333 0%, #333 20%, #bbb 20%, #bbb 40%, #333 40%, #333 60%, #bbb 60%, #bbb 80%, #333 80%, #333 100%);
border:0.4em solid #bbb;
border-radius:6px;
transition:all 0.2s ease-in-out 0s;
}
#mobileMenuButton:hover{
transform: scale(1.05);
}
@@ -857,6 +664,7 @@ ul.mobileMenu li:hover,
ul.mobileMenu li:hover a{
background:#999!important;
transition:all 0.2s ease;
}
ul.mobileMenu li a:hover{
@@ -868,28 +676,23 @@ ul.mobileMenu li a:hover {
line-height:2em;
}
#listen_radio {
width: 100%;
/*
pre{
text-align:left;
font-family:Courier;
padding:1em;
margin:1em;
border:1px solid black;
}
#listen_radio iframe {
margin-top: 1em;
max-width: none;
div.update{
position:absolute;
bottom:0px;
}
#listen_radio td {
border: 0;
}
div#content header h1.entry-title {
margin-bottom: 0;
}
@media screen and (min-width: 61.5625em) {
.site-header {
padding: 3rem;
padding-top: 1rem;
padding-bottom: 0rem;
}
div.update, div.update a{
text-align:left;
font-size:6px;
color:#bbb;
}
*/

View File

@@ -1,26 +0,0 @@
<!DOCTYPE html>
<html> <head>
<title>calcms - moin</title> <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1">
<meta charset="utf-8"> <meta http-equiv="Cache-Control" content="no-cache">
<link rel="stylesheet" href="/css/style.css"> <!--calcms start-->
<link rel="alternate" type="application/atom+xml" title="Sendeplan Atom" href="/agenda/atom/" /> <link rel="alternate" type="application/rss+xml" title="Sendeplan RSS" href="/agenda/rss/" />
<link rel="alternate" type="application/atom+xml" title="Sendekommentare" href="/agenda/feed_kommentare/" /> <link rel="stylesheet" type="text/css" media="screen" href="/agenda/css/calcms.css" />
<script type="text/javascript" src="/agenda/js/jquery.min.js"></script> <script type="text/javascript" src="/agenda/js/calcms.js"></script>
<script type="text/javascript" src="/agenda/js/calcms.cust.js"></script> <!--calcms end--></head> <body>
<div id="container"> <header id="header">
<h1><a href="/">calcms<img src="https://programm.coloradio.org/agenda/image/cropped-coloradio_sternenhimmel.jpg"></a></h1> </header>
<nav id="nav-main"> <ul>
<li> <a href="/">home</a></li> <li>
<a href="/agenda/programm.html">schedule</a> </li>
<li> <a href="/agenda/planung/">editor</a></li> <li>
<a href="/download.html">download</a> </li></ul> </nav>
<div id="content"> <article ><!-- include daily schedule with excerpt --> <div id="calcms_list" class="content">bitte warten</div></article> <aside class="left">
<center> <h2>Programm</h2>
<div class="content"> <!-- include short list of schedules -->
<div id="calcms_menu">bitte warten...</div> </div>
<h2>Kommende Sendung</h2> <div class="content"><!-- show coming shows --> <div id="calcms_playlist">bitte warten…</div></div> </center></aside> <aside class="right">
<center> <h2>Kalender</h2>
<div class="content"> <!-- show calendar -->
<div id="calcms_calendar">bitte warten...</div> </div>
<h2>Suche</h2> <div class="content"><!-- calcms search start --><div id="calcms_search"><input id="calcms_search_field" name="search" value="" /><input value="suchen" onclick="calcms.selectSearchEventListener();return false;" type="button" /><a id="calcms_search_show_details" href="#" onclick="calcms.showAdvancedSearch('calcms_enhanced_search');return false;">erweitert</a><br /> <div id="calcms_enhanced_search" style="display: none;">Archiv <input type="checkbox" name="calcms_archive" id="calcms_archive" /><span id="calcms_categories"></span><span id="calcms_series_names"></span><span id="calcms_programs"></span></div> </div><!-- calcms search end --> </div></center> </aside></div> <footer>calcms 2010 - 2017 by <a href="http://radiopiloten.de">http://radiopiloten.de</a></footer> </div></body> </html>

View File

@@ -1,6 +1,8 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /programm
RewriteRule ^sendung/(\d+)\.html[\?]?(.*)$ /programm/#$1 [L,R=301,NE]
RewriteRule ^kalender/(\d{4}-\d{2}-\d{2})_(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?from_date=$1&till_date=$2&$3 [L]
RewriteRule ^kalender/(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?date=$1&$2 [L]
RewriteRule ^sendungen/(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?date=$1&$2 [L]