Skip to content

Instantly share code, notes, and snippets.

View NiklasJordan's full-sized avatar
🛰️
Make satellite data accessible for everyone.

Niklas Jordan NiklasJordan

🛰️
Make satellite data accessible for everyone.
View GitHub Profile
@NiklasJordan
NiklasJordan / gist:1012418
Created June 7, 2011 14:58
Breadcrumb-Navigation
<?php
$an="Sie befinden sind hier: ";
$home="http://www.drweb.de/"; // Hier Ihre Domain
$pie=explode("/","$_SERVER[PHP_SELF]");
$tr=" > "; // Alternativ: ':', '/'
$b=count($pie);
echo $an."<a href=\"".$home."\">Startseite</a>";
// Alternativ: 'Home', 'Start'
for($a=1;$a<$b-1;$a ){
$ta=$ta.$pie[$a]."/";
@NiklasJordan
NiklasJordan / gist:1012411
Created June 7, 2011 14:56
Div richtig zentrieren
#test {
height: 100%;
margin: 0 auto;
position: relative;
width: 910px;
}
@NiklasJordan
NiklasJordan / Typoscript
Created June 7, 2011 14:55
More-Link Text ändern
plugin.tt_news._LOCAL_LANG.de{
more = Weiterlesen
}
@NiklasJordan
NiklasJordan / Typoscript
Created June 7, 2011 14:54
More-Link wrappen
plugin.tt_news.displayLatest {
subheader_stdWrap {
stripHtml = 1
crop = 150 | ... | 1
ifEmpty.field = bodytext
# the "more" link is directly appended to the subheader
append = TEXT
append.data = register:newsMoreLink
append.wrap = <p class="news-latest-morelink">|</p>
@NiklasJordan
NiklasJordan / gist:1012404
Created June 7, 2011 14:52
Tags zu Artikel ausgeben - Wordpress
<?php the_tags('<h4>Tags:</h4> ',', ',''); ?>
@NiklasJordan
NiklasJordan / gist:1012400
Created June 7, 2011 14:51
CSS Lifted corner Drop Shadow
<!DOCTYPE html>
<html>
<head>
<style>
.box{
width:200px;
height:100px;