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 | |
// Merge Shopware description w/ Attribute 5 | |
if ($sMarketplaceName === 'amazon') { | |
// $aProduct = MLProduct::factory()->set('id', $iMagnalisterProductsId); | |
// MLMessage::gi()->addInfo($aAddItemData['Variations'], get_defined_vars()); | |
// MLMessage::gi()->addInfo($aProduct, get_defined_vars()); | |
// MLMessage::gi()->addInfo($iMagnalisterProductsId, get_defined_vars()); | |
foreach ($aAddItemData['Variations'] as $sVariant) { | |
if ($sVariant['EAN'] === $aAddItemData['EAN']) { |
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
{ | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": 4, | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": false, | |
"quotes": "double", | |
"sort-order-fallback": "abc", |
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
#!/bin/bash | |
# Database credentials | |
DBUSER="" | |
DBPASSWORD="" | |
DBHOST="localhost" | |
DBNAME="" | |
USER="" # fe. myuser.mygroup | |
# Other options | |
BACKUP_PATH="./backup" |
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 | |
/** | |
* Class MyExport | |
*/ | |
class MyExport | |
{ | |
/** | |
* @param \DataContainer $dc |
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 (TL_MODE == 'FE') { | |
if ($GLOBALS['TL_LANGUAGE'] == 'de') { | |
$GLOBALS['TL_LANG']['SEC']['question1'] = 'Bitte addiere %d und %d.'; | |
$GLOBALS['TL_LANG']['SEC']['question2'] = 'Bitte addiere %d und %d.'; | |
$GLOBALS['TL_LANG']['SEC']['question3'] = 'Bitte rechne %d plus %d.'; | |
$GLOBALS['TL_LANG']['MSC']['confirmation'] = 'Passwort bestätigen'; |
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
<html> | |
<head> | |
<title>member import - Typo3->Contao</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<?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
@media (min-width:20em) { /* smartphones, iPhone, portrait 480x320 phones */ } | |
@media (min-width:30.063em) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ } | |
@media (min-width:40.063em) { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ } | |
@media (min-width:60.063em) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
@media (min-width:64.063em) { /* big landscape tablets, laptops, and desktops */ } | |
@media (min-width:80.063em) { /* hi-res laptops and desktops */ } |
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
# Taken from the module contao-boilerplate | |
# Author: Andreas Isaak (Thanks for that!) | |
# https://github.com/andreasisaak/contao-boilerplate | |
@media only screen and (max-width: 480px) { | |
#header > .inside, | |
#main > .inside, | |
#footer > .inside { | |
padding: 1em; |
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 | |
/* | |
When updating from Contao 2 to Contao 3, you must not rename the tl_files folder to files! | |
If you want to rename the folder, you have to take the following steps: | |
· Complete the version 3 update in the install tool | |
· Then rename the upload folder in the back end settings to files | |
· Last run the modified version of Tristan's script |
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
// Reihenfolge der Headline-Typen ändern | |
$GLOBALS['TL_DCA']['tl_content']['fields']['headline']['options']= array('h2', 'h3', 'h4', 'h5', 'h6', 'h1'); | |
// Artikel und Seiten standardmäßig auf 'veröffentlicht' stellen | |
$GLOBALS['TL_DCA']['tl_article']['fields']['published']['default'] = true; | |
$GLOBALS['TL_DCA']['tl_page']['fields']['published']['default'] = true; | |
// HTML in Überschriften erlauben | |
$GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval']['allowHtml'] = true; |
NewerOlder