Skip to content

Instantly share code, notes, and snippets.

<![CDATA[ <section>
<div class="wrap-wide">
<h2 class="box-head">
</h2>
<div class="artikel-wrap">
<!-- begin liste 1 -->
<article>
<a href="/import/boell.de/data/afrika-speer-der-nation-anc-gemaelde-murray-15018.html">
<img class="artikel-thumb" src="/assets/boell.de/images/pics_de/The_Spear_80px.png" alt="Ausschnitt des Bildes &quot;The Spear&quot;" />
<![CDATA[ <section>
<div class="wrap-small">
<h2 class="box-head">
</h2>
<div class="artikel-wrap">
<!-- begin liste 1 -->
<!-- end liste 1 --><!-- begin liste 2 -->
<article>
<a href="/import/boell.de/data/afrika-malemas-magie-15311.html">
<![CDATA[ <section>
<div class="wrap-small">
<h2 class="box-head">
</h2>
<div class="artikel-wrap">
<!-- begin liste 1 -->
<article>
<a href="/import/boell.de/data/afrika-anc-praesidenten-james-sebe-moroka-15262.html">
<img class="artikel-thumb" src="/assets/boell.de/images/pics_de/James_Sebe_Moroka_80px.jpg" alt="" />
@benthebear
benthebear / OT-13728
Last active December 22, 2015 03:38
OT-13728
<![CDATA[<div id="main-col">
<!-- //--> <section>
<div class="wrap-wide">
<h2 class="box-head">
Dossier: &quot;100 Jahre ANC - Moral und Macht&quot;
</h2>
<!-- Content from META-INF hbfCImage:
<div style="width: 608px; padding-top: 15px; text-align: right;">
<img src="/assets/boell.de/images/pics_de/WEB_120109_Titelbild588x170_100JANC.jpg" alt="" />
<div class="bigimg-desc">S&uuml;dafrika:&nbsp;Warteschlange der W&auml;hler in Phola Park in Johannesburg, Credit: Panos Pictures, Foto: &copy;&nbsp;Graeme Williams</div>
/*
Plugin Name: Teaserimage
Plugin URI:
Description: Allows to insert Teaserimages in your Theme
Author: Benjamin Birkenhake
Version: 0.1
Author URI: http://birkenhake.org
*/
add_filter( "the_content_feed", "teaserimage_addto_feed" );
Hallo Ophelia
@benthebear
benthebear / gist:5395527
Created April 16, 2013 12:31
Template for Typo3 Export to HTML
<div class="cytpe ctype-$ctype">
<div class="t3-header">$header</div>
<div class="t3-subheader">$subheader</div>
<div class="t3-body">$body</div>
<div class="t3-image">
<p class="t3-asset"><img src="$image" alt="$altText" title="$titleText" meta-t3-width="$imagewidth" meta-t3-orient="$imageorient" meta-t3-cols="$imagecols" meta-t3-border="$imageborder"/></p>
<p class="t3-caption">$imagecaption</p>
</div>
</div>
<?php
$dir = scandir("./images");
unset($dir[0]);
unset($dir[1]);
$file = "images/".$dir[rand(2, count($dir))];
header("Content-type: image/jpg");
$source = imagecreatefrompng($file);
$size = getimagesize($file);
<div xmlns:duden="./duden-xhtml11.dtd" duden:abstyp="Block 0">
<h1>
<span class="lemma_zeile">
<span class="lemma">ICE-Stre­cke</span>
<span class="artikel">, die</span>
</span>
</h1>
<p>
<span class="label">
Wortart<span class="helpref woerterbuch_hilfe_wortart"></span>: </span>
@benthebear
benthebear / sortkey-v3.php
Created July 17, 2012 08:38
Generate Sortkey v.3
<?php
function utf8_substr($str,$start)
{
preg_match_all("/./u", $str, $ar);
if(func_num_args() >= 3) {
$end = func_get_arg(2);
return join("",array_slice($ar[0],$start,$end));
} else {