Commit c03b8446 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

added template for galleries

parent 63eb4369
<?php
function random_pic($dir)
{
$files = glob($dir . '/*.*');
$file = array_rand($files);
$outFile = explode("/", $files[$file]);
return $outFile[count($outFile) - 1];
}
get_header();
echo "<main><section class='galleryRoll'>";
echo "<fsi-title>Fotos</fsi-title>";
$loop = new WP_Query(array(
'post_type' => 'galerie',
'posts_per_page' => -1,
'orderby' => 'menu_order'
));
if ($loop->have_posts()) {
while ($loop->have_posts()) {
$loop->the_post();
$img = random_pic(\FSIgallery\Plugin::getPath()."/".$post->post_name);
$url = wp_upload_dir()["baseurl"]."/".\FSIgallery\Plugin::folderName."/".$post->post_name."/";
echo "
<a href='".get_the_permalink()."' class='FSIgalleryRow' style=\"background-image: url('$url$img');\">
<h3 id='$post->post_name'>".get_the_title()."</h3>
</a>
";
}
}
echo "</section></main>";
get_footer();
\ No newline at end of file
......@@ -32,10 +32,21 @@ article.post {
column-gap: 35px;
text-align: justify;
}
fsi-tile.post fsi-title {
fsi-tile.post fsi-title, fsi-tile.gallery fsi-title, fsi-tile.page fsi-title {
font-size: xx-large;
color: $black;
}
fsi-tile.page fsi-subtitle {
padding-left: 10px;
}
fsi-tile.page fsi-subtitle:before {
content: "";
display: inline;
}
fsi-tile.gallery .backlink {
padding-left: 15px;
font-size: medium;
}
fsi-tile.sidebar li {
list-style: none;
font-size: medium;
......@@ -48,7 +59,9 @@ article.loopPost {
article.page {
font-size: large;
line-height: 1.5em;
line-height: 1.8em;
padding: 0 35px 50px 35px;
text-align: justify;
}
article.page img.eventCover {
float: left;
......@@ -193,10 +206,6 @@ fsi-door img {
transition: all 0.2s ease-in-out;
}
fsi-subtitle:before {
content: "– ";
display: inline;
}
fsi-subtitle {
color: #888;
padding-left: 30px;
......@@ -347,6 +356,20 @@ main {
box-shadow: 0 0 15px rgba(0,0,0,0.9);
}
.galleryRoll {
width: 90%;
margin: 0 auto;
}
.galleryRoll fsi-title {
color: white;
font-size: xx-large;
}
.galleryRoll h3 {
font-size: xx-large;
outline: 2px $fsi;
font-family: sans-serif;
}
.news {
font-size: medium;
}
......
......@@ -3,4 +3,4 @@
*
* © 2016, Michael Ochmann
* CSS für die Homepage der Fachschaft Informatik an der Hochschule Trier.
*/@import"bootstrap.min.css";@font-face{font-family:"Linux Libertine";src:url("../fonts/LinuxLibertine.otf");}article.post{font-size:large;line-height:1.8em;padding:20px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-moz-column-gap:35px;-webkit-column-gap:35px;column-gap:35px;text-align:justify;}fsi-tile.post fsi-title{font-size:xx-large;color:#333;}fsi-tile.sidebar li{list-style:none;font-size:medium;}article.loopPost{margin-bottom:40px;font-size:medium;}article.page{font-size:large;line-height:1.5em;}article.page img.eventCover{float:left;margin:0 25px 20px 0;}body{margin:0;padding:0;font-size:small;background:#005196;font-family:"Linux Libertine",Georgia,Times,serif;}footer{background:#eee;background:transparent;font-family:sans-serif;color:#222;box-sizing:border-box;box-shadow:0 2px 12px rgba(0,0,0,0.6) inset;}footer h4{font-family:"Linux Libertine",Georgia,Times,serif;font-size:large;}footer .overlay{background:rgba(0,0,0,0.8);padding:12px;padding-top:10px;box-sizing:border-box;color:#ffffff;}footer .overlay a{color:#ccc;}footer p{font-size:small;text-align:center;color:#888;margin:8% 0 0 0;}footer .social{margin-top:25px;}footer .social img{width:12%;margin-right:8px;transition:all 0.2s ease-in-out;}footer .social img:hover{transform:scale(1.1);}footer ul{list-style:none;padding-left:8%;}footer ul li{margin:8px 0;}footer h4{margin-top:25px;}fsi-calendar table{width:100%;}fsi-calendar table tr td{text-align:center;border:solid 1px#ccc;font-family:sans-serif;position:relative;}fsi-calendar table tr:first-child td{font-family:"Linux Libertine";}fsi-calendar table tr th{font-family:sans-serif;text-align:center;padding:6px;border:solid 1px#ccc;}fsi-calendar table a{display:block;padding:11px;font-size:medium;}fsi-calendar table a.today{box-shadow:0 0 12px rgba(0,0,0,0.3) inset;}fsi-calendar table a.hasEvent:after{content:"";display:block;position:absolute;bottom:0;left:0;width:100%;background:#005196;height:4px;transition:all 0.3s ease-in-out;}fsi-calendar table a.hasEvent:hover:after{width:84%;left:8%;}fsi-calendar table tr:first-child td{position:relative;}fsi-calendar table tr:first-child fsi-nav{display:inline-block;position:absolute;top:10px;cursor:pointer;}fsi-calendar table tr:first-child a:hover{background:transparent;}fsi-calendar table tr:first-child fsi-nav:first-child{left:5%;}fsi-calendar table tr:first-child fsi-nav:last-child{right:5%;}fsi-calendar table a:hover{background:#eee;text-decoration:none;}fsi-calendar .month{font-size:large;padding:8px;background:#eee;}fsi-door{position:fixed;top:5px;left:9px;transition:all 0.2s ease-in-out;}fsi-door img{width:25px;transition:all 0.2s ease-in-out;}fsi-subtitle:before{content:"–";display:inline;}fsi-subtitle{color:#888;padding-left:30px;display:block;font-family:sans-serif;font-size:13px;margin-bottom:12px;}fsi-tile{background:white;display:block;margin:8px;padding:12px;min-height:100%;flex-direction:row;box-sizing:border-box;line-height:1.8em;}fsi-tile img{max-width:100%;box-sizing:border-box;}fsi-tile.news nav hr{margin:8px 0;}fsi-tile.news nav h4{font-size:medium;}fsi-title{display:block;color:#666;padding:12px 0 0 12px;margin-bottom:6px;font-size:x-large;}header{top:0;background:white;position:fixed;width:100%;box-sizing:border-box;box-shadow:0 0 12px rgba(0,0,0,0.6);z-index:100;}header a.menuButton{display:none;}header.headerSmall:not(:hover) header-logo{width:5%;margin-left:-2.5%;padding:0.1%;content:"";}header.headerSmall:not(:hover) fsi-door img{width:20px;}header.headerSmall:not(:hover) fsi-door{top:4px;}header nav.second>*{max-height:50px;transition:all 0.2s ease-in-out;}header nav.second{max-height:50px;background:#eee;transition:all 0.2s ease-in-out;}header nav a{display:block;width:100%;color:#222;max-height:50px;text-align:center;box-sizing:border-box;font-size:large;padding:12px;transition:all 0.2s ease-in-out;}header nav a:after{content:"";display:block;width:0;height:5px;position:absolute;bottom:0;left:50%;background:#005196;transition:width 0.2s ease-in-out,left 0.2s ease-in-out;}header nav a:hover,header nav a:focus{text-decoration:none;}header nav a:hover:after,header nav a.active:after{width:100%;left:0;}header nav a.active:after{background:#FF9C00;}header-logo{display:block;position:fixed;top:0;width:12%;background:white;padding:0.3%;border-radius:50%;left:50%;box-sizing:border-box;margin-left:-6%;border:solid 1px#aaa;transition:width 0.2s ease-in,margin-left 0.2s ease-in;z-index:100;}header-logo img{width:100%;}main{background:#005196;padding:105px 0 8px 0;}.alert{margin:8px;box-sizing:border-box;}.cover{margin:12px;display:inline-block;text-align:center;}.cover img{transition:transform 0.3s ease-in-out,box-shadow 0.3s ease-in-out;}.cover img:hover{transform:scale(1.1);box-shadow:0 0 15px rgba(0,0,0,0.9);}.news{font-size:medium;}.news hr{margin:10px 0 10px 0;}.news span{margin-top:-5px;color:#888;display:block;font-size:small;padding:0 0 0 8px;}.news h4{word-break:break-all;}.serviceIcon{width:25%;display:block;float:left;box-sizing:border-box;margin:0;font-size:medium;color:#555;padding:5%;text-align:center;transition:all 0.3s ease-in;}.serviceIcon:hover{transform:scale(1.1);text-decoration:none;color:#555;}.social a span{font-size:xx-large;}.social a{margin-right:25px;transition:all 0.2s ease-in-out;}.social a:hover{text-decoration:none;opacity:0.7;}.wrapper{background:url("../images/footer.jpg") no-repeat center bottom fixed#005196;background-size:contain;width:100%;box-sizing:border-box;}@media(max-width:991px){body{padding:0 0 0 0;}header{position:relative;}header .menu{position:fixed;width:100%;box-sizing:border-box;overflow-y:scroll;height:0;padding-top:50px;background:white;transition:all 0.3s ease-in-out;}header nav a{background:white;margin:0 auto;border-bottom:solid 1px#eee;width:90% !important;}header.headerSmall:not(:hover) nav>a{display:block;width:100%;color:#222;max-height:50px;text-align:center;box-sizing:border-box;font-size:large;padding:12px;transition:all 0.2s ease-in-out;}header a.menuButton{font-family:'Glyphicons Halflings';font-size:large;color:#222;display:block;padding:12px;background:white;width:100%;box-sizing:border-box;position:fixed;text-align:right;box-shadow:0 0 6px rgba(0,0,0,0.6);top:0;z-index:100;}header a.menuButton>span{transition:all 0.3s ease-in-out;}header a.menuButton.active>span{transform:rotate(90deg);}header:after{content:"" !important;display:block;width:30px;background:url('../images/logo_fachschaft_Informatik_small.svg') no-repeat;background-size:cover;padding-top:30px;position:fixed;top:10px;left:50%;margin-left:-15px;z-index:150;}header nav{background:white !important;}header fsi-door,header.headerSmall fsi-door{z-index:150 !important;top:9px !important;}header fsi-door img,header.headerSmall fsi-door img{width:20px !important;}header-logo{display:none;}main{padding:40px 0 8px 0;}.cover{width:40%;}.serviceIcon{width:15.5%;min-width:55px;min-height:55px;padding:3%;font-size:0;line-height:0;}.services div{font-size:0;}.wrapper{background-size:cover;}footer h4{font-size:large;}footer ul{padding-left:2%;}footer ul li{margin:15px;}footer .social img{width:6%;}.row-eq-height{display:block !important;}}@media(min-width:992px),(max-width:1300px){.wrapper{background-size:cover;}header.headerSmall:not(:hover) nav>a{font-size:medium;padding:8px !important;transition:all 0.2s ease-in-out;}header.headerSmall:not(:hover) nav.second>a,header.headerSmall:not(:hover) nav.second,header.headerSmall:not(:hover) nav.second>*{max-height:0 !important;overflow:hidden;padding:0;}}@media(min-width:992px){.row.row-eq-height .col-md-4{width:calc(100%/3-16px);}.col-md-4{width:calc(100%/3-0px);}}@media(min-width:1440px){body,header{max-width:1440px;margin:0 auto;}footer{box-shadow:none;}fsi-door{left:50%;margin-left:-711px;}header header-logo{width:150px !important;margin-left:-75px !important;}header.headerSmall header-logo{width:58px !important;margin-left:-29px !important;}}.alert,.btn{border-radius:0;font-family:sans-serif;}.alert-warning,.btn-warning{background:#FF9C00;border-color:#B26D00;color:#323238;}.btn-warning{text-shadow:1px 1px 0 rgba(255,255,255,0.4);}.btn-warning:hover,.btn-warning:active{background:#B26D00;text-shadow:1px 1px 0 rgba(0,0,0,0.6);}.row{margin:0;box-sizing:border-box;width:100%;}main .col-md-4,main .col-md-8,main .col-sm-4,main .col-sm-8,main .col-md-9,main .col-md-1,main .col-md-2,main .col-md-3,main .col-md-5,main .col-md-6,main .col-md-7,main .col-md-10,main .col-md-11{padding:0;}main .row-eq-height .col-md-4,main .row-eq-height .col-md-8{padding:0;margin:8px;background:white;;}.row-eq-height fsi-tile{margin:0;}.row-eq-height{display:flex;flex-direction:row;}.alignnone{margin:5px 20px 20px 0;}.aligncenter,div.aligncenter{display:block;margin:5px auto 5px auto;}.alignright{float:right;margin:5px 0 20px 20px;}.alignleft{float:left;margin:5px 20px 20px 0;}a img.alignright{float:right;margin:5px 0 20px 20px;}a img.alignnone{margin:5px 20px 20px 0;}a img.alignleft{float:left;margin:5px 20px 20px 0;}a img.aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{background:#fff;border:1px solid#f0f0f0;max-width:96%;padding:5px 3px 10px;text-align:center;}.wp-caption.alignnone{margin:5px 20px 20px 0;}.wp-caption.alignleft{margin:5px 20px 20px 0;}.wp-caption.alignright{margin:5px 0 20px 20px;}.wp-caption img{border:0 none;height:auto;margin:0;max-width:98.5%;padding:0;width:auto;}.wp-caption p.wp-caption-text{font-size:11px;line-height:17px;margin:0;padding:0 4px 5px;}.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute !important;height:1px;width:1px;overflow:hidden;}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto !important;color:#21759b;display:block;font-size:14px;font-size:0.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000;}
\ No newline at end of file
*/@import"bootstrap.min.css";@font-face{font-family:"Linux Libertine";src:url("../fonts/LinuxLibertine.otf");}article.post{font-size:large;line-height:1.8em;padding:20px;-webkit-column-count:2;-moz-column-count:2;column-count:2;-moz-column-gap:35px;-webkit-column-gap:35px;column-gap:35px;text-align:justify;}fsi-tile.post fsi-title,fsi-tile.gallery fsi-title,fsi-tile.page fsi-title{font-size:xx-large;color:#333;}fsi-tile.page fsi-subtitle{padding-left:10px;}fsi-tile.page fsi-subtitle:before{content:"";display:inline;}fsi-tile.gallery .backlink{padding-left:15px;font-size:medium;}fsi-tile.sidebar li{list-style:none;font-size:medium;}article.loopPost{margin-bottom:40px;font-size:medium;}article.page{font-size:large;line-height:1.8em;padding:0 35px 50px 35px;text-align:justify;}article.page img.eventCover{float:left;margin:0 25px 20px 0;}body{margin:0;padding:0;font-size:small;background:#005196;font-family:"Linux Libertine",Georgia,Times,serif;}footer{background:#eee;background:transparent;font-family:sans-serif;color:#222;box-sizing:border-box;box-shadow:0 2px 12px rgba(0,0,0,0.6) inset;}footer h4{font-family:"Linux Libertine",Georgia,Times,serif;font-size:large;}footer .overlay{background:rgba(0,0,0,0.8);padding:12px;padding-top:10px;box-sizing:border-box;color:#ffffff;}footer .overlay a{color:#ccc;}footer p{font-size:small;text-align:center;color:#888;margin:8% 0 0 0;}footer .social{margin-top:25px;}footer .social img{width:12%;margin-right:8px;transition:all 0.2s ease-in-out;}footer .social img:hover{transform:scale(1.1);}footer ul{list-style:none;padding-left:8%;}footer ul li{margin:8px 0;}footer h4{margin-top:25px;}fsi-calendar table{width:100%;}fsi-calendar table tr td{text-align:center;border:solid 1px#ccc;font-family:sans-serif;position:relative;}fsi-calendar table tr:first-child td{font-family:"Linux Libertine";}fsi-calendar table tr th{font-family:sans-serif;text-align:center;padding:6px;border:solid 1px#ccc;}fsi-calendar table a{display:block;padding:11px;font-size:medium;}fsi-calendar table a.today{box-shadow:0 0 12px rgba(0,0,0,0.3) inset;}fsi-calendar table a.hasEvent:after{content:"";display:block;position:absolute;bottom:0;left:0;width:100%;background:#005196;height:4px;transition:all 0.3s ease-in-out;}fsi-calendar table a.hasEvent:hover:after{width:84%;left:8%;}fsi-calendar table tr:first-child td{position:relative;}fsi-calendar table tr:first-child fsi-nav{display:inline-block;position:absolute;top:10px;cursor:pointer;}fsi-calendar table tr:first-child a:hover{background:transparent;}fsi-calendar table tr:first-child fsi-nav:first-child{left:5%;}fsi-calendar table tr:first-child fsi-nav:last-child{right:5%;}fsi-calendar table a:hover{background:#eee;text-decoration:none;}fsi-calendar .month{font-size:large;padding:8px;background:#eee;}fsi-door{position:fixed;top:5px;left:9px;transition:all 0.2s ease-in-out;}fsi-door img{width:25px;transition:all 0.2s ease-in-out;}fsi-subtitle{color:#888;padding-left:30px;display:block;font-family:sans-serif;font-size:13px;margin-bottom:12px;}fsi-tile{background:white;display:block;margin:8px;padding:12px;min-height:100%;flex-direction:row;box-sizing:border-box;line-height:1.8em;}fsi-tile img{max-width:100%;box-sizing:border-box;}fsi-tile.news nav hr{margin:8px 0;}fsi-tile.news nav h4{font-size:medium;}fsi-title{display:block;color:#666;padding:12px 0 0 12px;margin-bottom:6px;font-size:x-large;}header{top:0;background:white;position:fixed;width:100%;box-sizing:border-box;box-shadow:0 0 12px rgba(0,0,0,0.6);z-index:100;}header a.menuButton{display:none;}header.headerSmall:not(:hover) header-logo{width:5%;margin-left:-2.5%;padding:0.1%;content:"";}header.headerSmall:not(:hover) fsi-door img{width:20px;}header.headerSmall:not(:hover) fsi-door{top:4px;}header nav.second>*{max-height:50px;transition:all 0.2s ease-in-out;}header nav.second{max-height:50px;background:#eee;transition:all 0.2s ease-in-out;}header nav a{display:block;width:100%;color:#222;max-height:50px;text-align:center;box-sizing:border-box;font-size:large;padding:12px;transition:all 0.2s ease-in-out;}header nav a:after{content:"";display:block;width:0;height:5px;position:absolute;bottom:0;left:50%;background:#005196;transition:width 0.2s ease-in-out,left 0.2s ease-in-out;}header nav a:hover,header nav a:focus{text-decoration:none;}header nav a:hover:after,header nav a.active:after{width:100%;left:0;}header nav a.active:after{background:#FF9C00;}header-logo{display:block;position:fixed;top:0;width:12%;background:white;padding:0.3%;border-radius:50%;left:50%;box-sizing:border-box;margin-left:-6%;border:solid 1px#aaa;transition:width 0.2s ease-in,margin-left 0.2s ease-in;z-index:100;}header-logo img{width:100%;}main{background:#005196;padding:105px 0 8px 0;}.alert{margin:8px;box-sizing:border-box;}.cover{margin:12px;display:inline-block;text-align:center;}.cover img{transition:transform 0.3s ease-in-out,box-shadow 0.3s ease-in-out;}.cover img:hover{transform:scale(1.1);box-shadow:0 0 15px rgba(0,0,0,0.9);}.galleryRoll{width:90%;margin:0 auto;}.galleryRoll fsi-title{color:white;font-size:xx-large;}.galleryRoll h3{font-size:xx-large;outline:2px#005196;font-family:sans-serif;}.news{font-size:medium;}.news hr{margin:10px 0 10px 0;}.news span{margin-top:-5px;color:#888;display:block;font-size:small;padding:0 0 0 8px;}.news h4{word-break:break-all;}.serviceIcon{width:25%;display:block;float:left;box-sizing:border-box;margin:0;font-size:medium;color:#555;padding:5%;text-align:center;transition:all 0.3s ease-in;}.serviceIcon:hover{transform:scale(1.1);text-decoration:none;color:#555;}.social a span{font-size:xx-large;}.social a{margin-right:25px;transition:all 0.2s ease-in-out;}.social a:hover{text-decoration:none;opacity:0.7;}.wrapper{background:url("../images/footer.jpg") no-repeat center bottom fixed#005196;background-size:contain;width:100%;box-sizing:border-box;}@media(max-width:991px){body{padding:0 0 0 0;}header{position:relative;}header .menu{position:fixed;width:100%;box-sizing:border-box;overflow-y:scroll;height:0;padding-top:50px;background:white;transition:all 0.3s ease-in-out;}header nav a{background:white;margin:0 auto;border-bottom:solid 1px#eee;width:90% !important;}header.headerSmall:not(:hover) nav>a{display:block;width:100%;color:#222;max-height:50px;text-align:center;box-sizing:border-box;font-size:large;padding:12px;transition:all 0.2s ease-in-out;}header a.menuButton{font-family:'Glyphicons Halflings';font-size:large;color:#222;display:block;padding:12px;background:white;width:100%;box-sizing:border-box;position:fixed;text-align:right;box-shadow:0 0 6px rgba(0,0,0,0.6);top:0;z-index:100;}header a.menuButton>span{transition:all 0.3s ease-in-out;}header a.menuButton.active>span{transform:rotate(90deg);}header:after{content:"" !important;display:block;width:30px;background:url('../images/logo_fachschaft_Informatik_small.svg') no-repeat;background-size:cover;padding-top:30px;position:fixed;top:10px;left:50%;margin-left:-15px;z-index:150;}header nav{background:white !important;}header fsi-door,header.headerSmall fsi-door{z-index:150 !important;top:9px !important;}header fsi-door img,header.headerSmall fsi-door img{width:20px !important;}header-logo{display:none;}main{padding:40px 0 8px 0;}.cover{width:40%;}.serviceIcon{width:15.5%;min-width:55px;min-height:55px;padding:3%;font-size:0;line-height:0;}.services div{font-size:0;}.wrapper{background-size:cover;}footer h4{font-size:large;}footer ul{padding-left:2%;}footer ul li{margin:15px;}footer .social img{width:6%;}.row-eq-height{display:block !important;}}@media(min-width:992px),(max-width:1300px){.wrapper{background-size:cover;}header.headerSmall:not(:hover) nav>a{font-size:medium;padding:8px !important;transition:all 0.2s ease-in-out;}header.headerSmall:not(:hover) nav.second>a,header.headerSmall:not(:hover) nav.second,header.headerSmall:not(:hover) nav.second>*{max-height:0 !important;overflow:hidden;padding:0;}}@media(min-width:992px){.row.row-eq-height .col-md-4{width:calc(100%/3-16px);}.col-md-4{width:calc(100%/3-0px);}}@media(min-width:1440px){body,header{max-width:1440px;margin:0 auto;}footer{box-shadow:none;}fsi-door{left:50%;margin-left:-711px;}header header-logo{width:150px !important;margin-left:-75px !important;}header.headerSmall header-logo{width:58px !important;margin-left:-29px !important;}}.alert,.btn{border-radius:0;font-family:sans-serif;}.alert-warning,.btn-warning{background:#FF9C00;border-color:#B26D00;color:#323238;}.btn-warning{text-shadow:1px 1px 0 rgba(255,255,255,0.4);}.btn-warning:hover,.btn-warning:active{background:#B26D00;text-shadow:1px 1px 0 rgba(0,0,0,0.6);}.row{margin:0;box-sizing:border-box;width:100%;}main .col-md-4,main .col-md-8,main .col-sm-4,main .col-sm-8,main .col-md-9,main .col-md-1,main .col-md-2,main .col-md-3,main .col-md-5,main .col-md-6,main .col-md-7,main .col-md-10,main .col-md-11{padding:0;}main .row-eq-height .col-md-4,main .row-eq-height .col-md-8{padding:0;margin:8px;background:white;;}.row-eq-height fsi-tile{margin:0;}.row-eq-height{display:flex;flex-direction:row;}.alignnone{margin:5px 20px 20px 0;}.aligncenter,div.aligncenter{display:block;margin:5px auto 5px auto;}.alignright{float:right;margin:5px 0 20px 20px;}.alignleft{float:left;margin:5px 20px 20px 0;}a img.alignright{float:right;margin:5px 0 20px 20px;}a img.alignnone{margin:5px 20px 20px 0;}a img.alignleft{float:left;margin:5px 20px 20px 0;}a img.aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{background:#fff;border:1px solid#f0f0f0;max-width:96%;padding:5px 3px 10px;text-align:center;}.wp-caption.alignnone{margin:5px 20px 20px 0;}.wp-caption.alignleft{margin:5px 20px 20px 0;}.wp-caption.alignright{margin:5px 0 20px 20px;}.wp-caption img{border:0 none;height:auto;margin:0;max-width:98.5%;padding:0;width:auto;}.wp-caption p.wp-caption-text{font-size:11px;line-height:17px;margin:0;padding:0 4px 5px;}.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute !important;height:1px;width:1px;overflow:hidden;}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto !important;color:#21759b;display:block;font-size:14px;font-size:0.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000;}
\ No newline at end of file
<?php get_header(); ?>
<main>
<section class="row">
<section class="col-md-8 col-lg-9">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
echo "
<fsi-tile class=\"page\">
<fsi-title>".get_the_title()."</fsi-title>
<fsi-subtitle> Version vom ".get_the_date()."</fsi-subtitle>
<article class=\"page\">
".get_the_content()."
</article>
<div style='clear: both;'></div>
</fsi-tile>
";
}
}
?>
</section>
<section class="col-md-4 col-lg-3">
<fsi-tile class="sidebar">
<?php get_sidebar('sidebar-1'); ?>
</fsi-tile>
</section>
</section>
</main>
<?php get_footer(); ?>
\ No newline at end of file
......@@ -9,14 +9,11 @@
the_post();
echo "
<fsi-tile class=\"post\">
<fsi-title><a href=\"".get_the_permalink()."\">".get_the_title()."</a></fsi-title>
<fsi-subtitle> ".get_the_author()." am ".get_the_date()."</fsi-subtitle>
<article class=\"page\">
<fsi-title>".get_the_title()."</fsi-title>
<article class=\"page\" style='margin-top: 50px;'>
<img class='eventCover' src='".get_the_post_thumbnail_url($post->ID, "eventCover")."' alt='".get_the_post_thumbnail_caption()."'>
".get_the_content()."
</article>
<h3>Tags</h3>
".get_the_tag_list(null, ", ")."
<div style='clear: both;'></div>
</fsi-tile>
......
<?php
get_header();
echo "<main><fsi-tile class='gallery'>";
if (have_posts()) {
while (have_posts()) {
the_post();
echo "<fsi-title>".get_the_title()."</fsi-title>";
}
}
echo "
<p class='backlink'>
<a href='".get_bloginfo('url')."/galerie/#$post->post_name'>&laquo; zurück</a>
</p>
<section class='FSIgallery' style='padding: 0 10%;'>";
$images = scandir(\FSIgallery\Plugin::getPath()."/".$post->post_name);
foreach ($images as $image) {
if ($image == ".." || $image == "." || is_dir(\FSIgallery\Plugin::getPath()."/".$post->post_name."/".$image))
continue;
echo "
<article class='FSIgalleryImage'>
<a href='".\FSIgallery\Plugin::getURL()."/".$post->post_name."/resized/$image' rel='lightbox[$post->post_name]'>
<img src='".\FSIgallery\Plugin::getURL()."/".$post->post_name."/thumbnails/$image'>
</a>
</article>
";
}
echo "</section></fsi-tile></main>";
get_footer();
\ No newline at end of file
'<a href="{{link}}" class="cover">
'<a href="{{link}}" class="cover" title="{{title}}">
<img src="{{cover}}" alt="{{title}}" />
</a>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment