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:1012400
Created June 7, 2011 14:51
CSS Lifted corner Drop Shadow
<!DOCTYPE html>
<html>
<head>
<style>
.box{
width:200px;
height:100px;
@NiklasJordan
NiklasJordan / gist:1012404
Created June 7, 2011 14:52
Tags zu Artikel ausgeben - Wordpress
<?php the_tags('<h4>Tags:</h4> ',', ',''); ?>
@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 / Typoscript
Created June 7, 2011 14:55
More-Link Text ändern
plugin.tt_news._LOCAL_LANG.de{
more = Weiterlesen
}
@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 / 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:1012421
Created June 7, 2011 14:59
Seiten dynamisch generieren
<?php include("datei.php"); ?>
@NiklasJordan
NiklasJordan / Gistson.php
Created June 17, 2011 17:10 — forked from phatduckk/Gistson.php
Embed a Gist in Wordpress
<?php
/*
Plugin Name: Gistson - Embedded Gist WP Plugin
Plugin URI: http://arin.me/blog/tag/gistson
Description: Use a shortcode [gist id="12345"] to embed A Gist from http://gist.github.com into your blog
Version: 0.1
Author: Arin Sarkissian
Author URI: http://arin.me
Copyright 2009 Arin Sarkissian
@NiklasJordan
NiklasJordan / kirby_loop.php
Created February 7, 2012 22:29 — forked from bastianallgeier/kirby_loop.php
Loop (getkirby.com)
<?php snippet('header') ?>
<?php foreach($page->children()->flip() as $article): ?>
<?php if($article->template() == 'link'): ?>
<!-- link html -->
<?php elseif($article->template() == 'article'): ?>
@NiklasJordan
NiklasJordan / verlinkung.html
Created February 9, 2012 12:59
Martin Portfolio
<div class="grid_4">
<div id="port_bild">
<a href="thomas_sankara.html" name="seite2">
<img src="img/portfolio/thomas_sankara/thomas_sankara_thumb.jpg" style="border:1px solid #666;">
<span><p>Thomas Sankara Portrait<br>- Artwork</p></span>
</a>
</div>
</div>