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
Regex Pattern: | |
(\#)+((?:[0-9]*)?) | |
Replace With: | |
<a href="https://redmine.company.com/issues/$2">$1$2</a> |
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 | |
$producer = MetaModelFactory::byTableName('mm_producer')->findById($arrItem['raw']['producer']); | |
# Die spalte 'name' aus dem array $producer ausgeben | |
echo $producer->get('name'); |
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 | |
$string = $longtext['value']; | |
$string = (strlen($string) > 123) ? substr($string,0,120).'...' : $string; | |
echo $string; | |
?> |
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 | |
#strings bereinigen | |
$metadescription = strip_tags($desc); | |
$title = strip_tags($title); | |
$GLOBALS['objPage']->description = $metadescription; | |
$GLOBALS['objPage']->pageTitle.= ' ' . $title; | |
?> |
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 cannot access this file directly!'); | |
/** | |
* Contao Open Source CMS | |
* Copyright (C) 2005-2013 Leo Feyer | |
* | |
* Formerly known as TYPOlight Open Source CMS. | |
* | |
* This program is free software: you can redistribute it and/or |
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 | |
// Die eigene RTE-Konfiguration verwenden für | |
//Artikel-Teaser | |
$GLOBALS['TL_DCA']['tl_article']['fields']['teaser']['eval']['rte'] = 'tinyCustom'; | |
// Events-Details | |
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['details']['eval']['rte'] = 'tinyCustom'; | |
// Kommentare | |
$GLOBALS['TL_DCA']['tl_comments']['fields']['comment']['eval']['rte'] = 'tinyCustom'; | |
// Text-Elemente | |
$GLOBALS['TL_DCA']['tl_content']['fields']['text']['eval']['rte'] = 'tinyCustom'; |
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 | |
$this->import('Environment'); | |
$ua = $this->Environment->agent; // Import User Agent class | |
// check if agent is mobile | |
if($ua->mobile) { | |
$image_link = $arrItem['raw']['picture']; // load picture url | |
$image = $this->getImage($image_link,1024,768,'proportional'); // create thumb $link, $w,$h,$cropmode | |
} | |
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 | |
// Add the colorbox style sheet | |
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static'; | |
?> | |
<script src="<?php echo TL_ASSETS_URL; ?>assets/jquery/colorbox/<?php echo COLORBOX; ?>/js/colorbox.min.js"></script> | |
<script> | |
(function($) { |
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 | |
// Include CEs or Modules into the navigation list. | |
$arrPageFilters = array( | |
// Page-ID => FilterModule-ID / or FilterContent-ID | |
23 => 33 | |
); | |
?> |
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
$(function() { | |
$(window).scroll(function() { | |
var scrolled = $(window).scrollTop(); | |
if (scrolled > 20) { | |
$('header').addClass('topFixed'); | |
} | |
if (scrolled > 50) { | |
$('header').addClass('small'); |
OlderNewer