This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The number of DOM elements is easy to test, just type in Firebug's console: | |
document.getElementsByTagName('*').length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If Condition mod_expires | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 1 days" | |
<FilesMatch "\.(ico|jpg|jpeg|png|gif)$"> | |
ExpiresDefault "access plus 10 days" | |
</FilesMatch> | |
<FilesMatch "\.(pdf|flv|swf|js|css)$"> | |
ExpiresDefault "modification plus 10 days" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Anzeige einer Grafik in bestimmten TL Archiven | |
<?php if ($this->archive == 'Name des Archivs') { ?> | |
<img class="secure" src="{{env::path}}tl_files/standard/layout/images/secure-news.png" alt="" width="155" height="75" /> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prevent click | |
$('nav').addEvent('click', function(event){ | |
event.stop(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Uncomment to rewrite domain.com to www.domain.com | |
#RewriteCond %{HTTP_HOST} !^www\. [NC] | |
#RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
## Uncomment to rewrite www.domain.com to domain.com | |
#RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
#RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#Vorbereiten | |
$longtext = MetaModelFactory::byTableName('mm_projects')->findById($arrItem['raw']['project']['id'])->get('introduction'); | |
# Longtext an string übergeben | |
echo String::getInstance()->substr($longtext['value'], 120); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.logo { | |
width: 204px; | |
height: 100px; | |
background: url('/img/logo.png'); | |
} | |
@media | |
(-o-min-device-pixel-ratio: 5/4), | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(min-resolution: 120dpi) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $objInput = Input::getInstance(); ?> | |
<?php $objCookie = json_decode($objInput->cookie("retina")); ?> | |
<?php echo ($objCookie->hasRetina) ? $this->getImage('src', 'retina_width', 'retina_height') : $this->getImage('src', 'width', 'height'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo '<p class="teaser">' . String::getInstance()->substr($this->text, 80) . '</p>'; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Powered by parallax - The ultimative parallax script for Contao | |
* | |
* Copyright ©2012-2013 by MEN AT WORK <info@men-at-work.de> | |
* Visit the agency website at http://www.men-at-work.de for more information | |
* | |
* @package ParallaxXtend | |
* @copyright MEN AT WORK | |
* @link http://www.contao-parallax.com | |
* @license EULA |
OlderNewer