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
# Make collapsible for layout 3 | |
tt_content.uploads { | |
10 > | |
10 = CASE | |
10 { | |
key.field = layout | |
3 = TEXT | |
3 { | |
field = header |
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 getCookieValue(key) { | |
currentcookie = document.cookie; | |
if (currentcookie.length > 0) | |
{ | |
firstidx = currentcookie.indexOf(key + "="); | |
if (firstidx != -1) | |
{ | |
firstidx = firstidx + key.length + 1; | |
lastidx = currentcookie.indexOf(";",firstidx); | |
if (lastidx == -1) |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Attempt to load files from production if they're not in our local version | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule wp-content/uploads/(.*) http://{PROD}/wp-content/uploads/$1 [NC,L] | |
</IfModule> |
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
Verifying that +bjornkuipers is my blockchain ID. https://onename.com/bjornkuipers |
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 | |
/** | |
* Clears the cache based on the command $cacheCmd. | |
* | |
* $cacheCmd='pages': Clears cache for all pages. Requires admin-flag to | |
* be set for BE_USER. | |
* | |
* $cacheCmd='all': Clears all cache_tables. This is necessary if | |
* templates are updated. Requires admin-flag to be set for BE_USER. | |
* |
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 | |
namespace VENDOR\ExtName\Command; | |
class CmdNameCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandController { | |
public function fooCommand($bar) { | |
echo "foo\n"; | |
} | |
} |
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
// Source: http://stackoverflow.com/a/14823315/440643 | |
var _show = $.fn.modal.Constructor.prototype.show; | |
$.fn.modal.Constructor.prototype.show = function() { | |
_show.apply(this, arguments); | |
//Do custom stuff here | |
}; |
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($) { | |
if($.fn.typeahead != 'undefined') { | |
var _show = $.fn.typeahead.Constructor.prototype.show; | |
$.fn.typeahead.Constructor.prototype.show = function() { | |
if(typeof this.options.onshow == 'function') { | |
this.options.onshow(); | |
} | |
// Call parent |
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
jQuery.extend({ | |
getObjectLength: function(obj){ | |
var length = 0; | |
if(typeof obj == 'object') { | |
if(Object.keys) { | |
length = Object.keys(obj).length; | |
} else { | |
var i; |
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 | |
/** | |
* Setup multi-language/domain config | |
* | |
* NOTE: Multiple domains for a single language will not work. | |
* The first defined domain is used in that case. | |
*/ | |
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DOMAINS'] = array( | |
'encode' => array( |
OlderNewer