Skip to content

Instantly share code, notes, and snippets.

Avatar
🌋
Works on tools that help humans in crisis situations.

Niklas Jordan NiklasJordan

🌋
Works on tools that help humans in crisis situations.
View GitHub Profile
@NiklasJordan
NiklasJordan / gist:1012400
Created Jun 7, 2011
CSS Lifted corner Drop Shadow
View gist:1012400
<!DOCTYPE html>
<html>
<head>
<style>
.box{
width:200px;
height:100px;
@NiklasJordan
NiklasJordan / gist:1012404
Created Jun 7, 2011
Tags zu Artikel ausgeben - Wordpress
View gist:1012404
<?php the_tags('<h4>Tags:</h4> ',', ',''); ?>
View Typoscript
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 Jun 7, 2011
More-Link Text ändern
View Typoscript
plugin.tt_news._LOCAL_LANG.de{
more = Weiterlesen
}
@NiklasJordan
NiklasJordan / gist:1012411
Created Jun 7, 2011
Div richtig zentrieren
View gist:1012411
#test {
height: 100%;
margin: 0 auto;
position: relative;
width: 910px;
}
@NiklasJordan
NiklasJordan / gist:1012418
Created Jun 7, 2011
Breadcrumb-Navigation
View gist:1012418
<?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 Jun 7, 2011
Seiten dynamisch generieren
View gist:1012421
<?php include("datei.php"); ?>
@NiklasJordan
NiklasJordan / Gistson.php
Created Jun 17, 2011 — forked from phatduckk/Gistson.php
Embed a Gist in Wordpress
View Gistson.php
<?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
View kirby_loop.php
<?php snippet('header') ?>
<?php foreach($page->children()->flip() as $article): ?>
<?php if($article->template() == 'link'): ?>
<!-- link html -->
<?php elseif($article->template() == 'article'): ?>
View verlinkung.html
<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>