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 if (!defined('TL_ROOT')) die('You can not access this file directly!'); | |
$GLOBALS['TL_HOOKS']['generateFrontendUrl'][] = array('RDKHooks', 'myGenerateFrontendUrl'); | |
$GLOBALS['TL_HOOKS']['getPageIdFromUrl'][] = array('RDKHooks', 'myGetPageIdFromUrl'); |
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 | |
function shorten_string ($string, $string_max_length = 150) | |
{ | |
if (empty($string) == true) | |
{ | |
return('Es wurde kein String an die Function: shorten_string() übergeben!'); | |
} | |
else | |
{ |
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
// Dann im Javascript sieht’s so aus: | |
// hier erst mal initialisiert und definiert: | |
var AjaxContent = function(){ | |
var container_div = ''; | |
var content_div = ''; | |
return { | |
getContent : function(url){ | |
$(container_div).html('<br><br><br><center><p><img src="/img/loader_big_fl.gif" /></p></center>').animate({opacity:0.2}, //Turn the opacity to 0 |
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
/* | |
From: http://devoracles.com/the-best-method-to-check-for-internet-explorer-in-javascript | |
"I declared a new variable, called IE, which has the value a comment block followed by ‘false‘. | |
The above variable will be understood by IE: var IE = !false, because Internet Explorer uses | |
JScript — a Javascript-like dialect of the standard ECMAScript — instead of Javascript which is | |
used by all the other browsers. JScript can parse the comments, just like Internet Explorer (see | |
conditional HTML comments post). This is a unique feature of IE, none of the other browsers can do it, | |
so Firefox, Chrome, Safari, Opera, all will understand the above declaration as IE = false." | |
*/ |
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
/* from http://prashant.es/labs/vibrating-notices/ */ | |
/* Github Project: http://github.com/phused/Vibrating-Notices */ | |
<script src="/path/to/jquery.min.js"></script> | |
<script src="/path/to/jquery.vibrating-notices.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('a.vibrate').bind('click', function() { | |
$('#message').vibrate('x', 10, 4, 85); |
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
/* Code is by A.J. Cates (http://ajcates.com). Find his post here: http://forr.st/~XGU */ | |
#gradient-triangle { | |
width: 60px; | |
height: 60px; | |
position: absolute; | |
top: 3em; | |
left: -30px; | |
clip: rect(auto 30px 60px auto); | |
} |
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
#circle { | |
display: block; | |
width: 10px; | |
height: 144px; | |
background: #333; | |
border-radius: 10px 0 0 0 / 144px 0 0 0; | |
-moz-border-radius: 10px 0 0 0 / 144px 0 0 0; | |
-webkit-border-radius: 10px 0 0 0 / 144px 0 0 0; | |
margin:100px auto; | |
} |
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
/* From http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/e153eeef-e93f-42e5-a21c-8096bf209688/ | |
For my website I created a "hack" which still has the desired functionality, that is, links are still followed if Javascript is unavailable or disabled and not if javascript does work: */ | |
function myfalse (el) { | |
if ( navigator.appVersion.match("MSIE 7") ) { | |
el.href = "java"+"script:;"; | |
} | |
return false; | |
} |
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 | |
if (FE_USER_LOGGED_IN) | |
{ | |
$this->import('FrontendUser', 'User'); | |
$userid = $this->User->id; | |
$membername = $this->User->firstname; | |
$lastname = $this->User->lastname; | |
echo "The user id is " .$userid. " and the user id is also " . $this->User->id; |
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 | |
global objPage; | |
print_r($objPage); |
OlderNewer