This file contains hidden or 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
| { | |
| "formtabs":"", | |
| "contextmenus":"", | |
| "actionbuttons":"", | |
| "columnbuttons":"", | |
| "filters":[ | |
| { | |
| "MIGX_id":1, | |
| "name":"categorie", | |
| "label":"Kategorie", |
This file contains hidden or 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
| <!-- Custom HTML at bottom --> | |
| <script> | |
| window.laytheme.on( "newpageshown", function( layoutObj, type, obj ) { | |
| var akkordeonActiveClassName = "akkordeon--active", | |
| akkordeonBtnEls = document.querySelectorAll("[href^='#akkordeon_']"); | |
| akkordeonBtnEls.forEach( function( akkordeonBtnEl, i ) { | |
| var akkordeonChildClass = akkordeonBtnEl.getAttribute("href").replace("#", ""), | |
| akkordeonChildEls = document.querySelectorAll( "." + akkordeonChildClass ); | |
| akkordeonBtnEl.addEventListener( "click", function( e ) { |
This file contains hidden or 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 | |
| /** | |
| * dateConvert | |
| * | |
| * DESCRIPTION | |
| * | |
| * This Snippet convert DD.MM.YYYY to YYYY-MM-DD | |
| * | |
| * PROPERTIES: | |
| * |
This file contains hidden or 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 | |
| /** | |
| * csvParse | |
| * | |
| * DESCRIPTION | |
| * | |
| * This Snippet parse CSV Data and return it to chunk | |
| * | |
| * PROPERTIES: | |
| * |
This file contains hidden or 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 | |
| /** | |
| * alphabeticalLetters | |
| * | |
| * DESCRIPTION | |
| * | |
| * This Snippet return alphabetical Letters from Collection | |
| * | |
| * PROPERTIES: | |
| * |
This file contains hidden or 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
| /** | |
| * embed SVG | |
| * Example: <span>{{ "logo"|svg }}</span> | |
| * | |
| * @param \Twig\Environment $twig The Twig environment. | |
| * @return \Twig\Environment | |
| */ | |
| function twig_svg_embed($twig) | |
| { | |
| $twig->addFilter( |
This file contains hidden or 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
| # add snippet into <head> | |
| [[BabelLinks? | |
| &tpl=`babelCanonicalTag` | |
| &showCurrent=`1` ]] | |
| # create chunk with name babelCanonicalTag | |
| <link rel="alternate" hreflang="[[+cultureKey]]" href="[[+url]]"> |
This file contains hidden or 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
| collections.combo.TVNAME = function(config) { | |
| config = config || {}; | |
| Ext.applyIf(config,{ | |
| store: new Ext.data.SimpleStore({ | |
| fields: ['v'] | |
| ,data: [ | |
| ['val1'], | |
| ['val2'], | |
| ['val3'] | |
| ] |
This file contains hidden or 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
| collections.renderer.imageplus = function(value, metaData, record, rowIndex, colIndex, store) { | |
| if (value != '' && value != null) { | |
| var data = Ext.decode(value); | |
| var url = MODx.config.connectors_url + 'system/phpthumb.php?imageplus=1'; | |
| var params = {}; | |
| params.src = 'upload/'+MODx.config['collections.renderer_image_path'] + data.sourceImg.src; | |
| params.w = 100; | |
| if (data.sourceImg.src.indexOf('.png') !== -1) { | |
| params.f = 'png'; |
NewerOlder