Skip to content

Instantly share code, notes, and snippets.

@stefanheimes
stefanheimes / SearchablePhp.php
Last active August 29, 2015 14:09
Searchable Pages for MetaModels
<?php
/**
* Created by PhpStorm.
* User: stefan.heimes
* Date: 10.11.2014
* Time: 11:53
*/
namespace FooBaa\MetaModels;
@MacKP
MacKP / TL_CSS_SETS
Created November 6, 2014 14:34
TL_CSS_SETS
$GLOBALS['TL_CSS_SETS'] = array
(
'default' => array
(
// Layout Grundlage
'.wrapper' => 'wrapper', // TODO: Class-Attribut anlegen
'.container' => 'container', // TODO: Class-Attribut anlegen
'.header' => 'header', // TODO: Class-Attribut anlegen
'.left' => 'left', // TODO: Class-Attribut anlegen
'.main' => 'main', // TODO: Class-Attribut anlegen
@g3d
g3d / gist:2709563
Last active February 7, 2024 15:21 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
@c4y
c4y / contao_minicalendar_ajax
Last active October 3, 2015 01:27
Contao 3.2 cal_mini.html5 Ajax Script (Mootools)
<table class="minicalendar">
<thead>
<tr>
<th class="head previous"><?php if ($this->prevHref): ?><a href="<?php echo $this->prevHref; ?>" rel="nofollow" title="<?php echo $this->prevTitle; ?>"><?php echo $this->prevLabel; ?></a><?php else: ?>&nbsp;<?php endif; ?></th>
<th colspan="5" class="head current"><?php echo $this->current; ?></th>
<th class="head next"><?php if ($this->nextHref): ?><a href="<?php echo $this->nextHref; ?>" rel="nofollow" title="<?php echo $this->nextTitle; ?>"><?php echo $this->nextLabel; ?></a><?php else: ?>&nbsp;<?php endif; ?></th>
</tr>
<tr>
<?php foreach ($this->days as $i=>$day): ?>
<th class="label<?php echo $day['class']; ?>"><?php echo utf8_substr($day['name'], 0, $this->substr); ?><span class="invisible"><?php echo utf8_substr($day['name'], $this->substr); ?></span></th>
@unruthless
unruthless / CSS for <sup> and <sub>
Created May 26, 2010 01:31
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position