Skip to content

Instantly share code, notes, and snippets.

View c4y's full-sized avatar

Oliver Lohoff c4y

View GitHub Profile
@c4y
c4y / contao_gallery_ajax
Created April 11, 2012 20:31
Contao Gallery Ajax
@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>
@c4y
c4y / contao_generate_frontendurl
Created April 11, 2012 20:26
Contao Url generieren
global $objPage;
$strUrl = $this->generateFrontendUrl($objPage->row(), 'id=12');
@c4y
c4y / contao_headline_html
Created April 11, 2012 20:25
Contao Headline with HTML
$GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval']['allowHtml'] = true;