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 | |
use Contao\PageModel; | |
global $objPage; | |
$title = $this->headline; | |
if (null !== $parents = PageModel::findParentsById((int) $objPage->id)) { | |
$parents->last(); | |
/** @var PageModel $initial */ | |
$initial = $parents->prev(); | |
$title = $initial->pageTitle ?: $initial->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
https://github.com/contao/contao/blob/9107f939c444a31ff26252179497222b9e31424d/core-bundle/src/Resources/contao/controllers/BackendMain.php#L190-L191 |
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
\FilesModel::findByUuid($GLOBALS['objPage']->og_image)->path; |
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
<a target="_blank" href="data:application/octet-stream;base64,QkVHSU46VkNBTEVOREFSClZFUlNJT046Mi4wClBST0RJRDotLy9pY2FsLm1hcnVkb3QuY29tLy9pQ2FsIEV2ZW50IE1ha2VyCkNBTFNDQUxFOkdSRUdPUklBTgpCRUdJTjpWVElNRVpPTkUKVFpJRDpFdXJvcGUvQmVybGluClRaVVJMOmh0dHA6Ly90enVybC5vcmcvem9uZWluZm8tb3V0bG9vay9FdXJvcGUvQmVybGluClgtTElDLUxPQ0FUSU9OOkV1cm9wZS9CZXJsaW4KQkVHSU46REFZTElHSFQKVFpPRkZTRVRGUk9NOiswMTAwClRaT0ZGU0VUVE86KzAyMDAKVFpOQU1FOkNFU1QKRFRTVEFSVDoxOTcwMDMyOVQwMjAwMDAKUlJVTEU6RlJFUT1ZRUFSTFk7QllNT05USD0zO0JZREFZPS0xU1UKRU5EOkRBWUxJR0hUCkJFR0lOOlNUQU5EQVJEClRaT0ZGU0VURlJPTTorMDIwMApUWk9GRlNFVFRPOiswMTAwClRaTkFNRTpDRVQKRFRTVEFSVDoxOTcwMTAyNVQwMzAwMDAKUlJVTEU6RlJFUT1ZRUFSTFk7QllNT05USD0xMDtCWURBWT0tMVNVCkVORDpTVEFOREFSRApFTkQ6VlRJTUVaT05FCkJFR0lOOlZFVkVOVApEVFNUQU1QOjIwMjAxMjA5VDA2NDgxMVoKVUlEOjIwMjAxMjA5VDA2NDgxMVotMTE2MDE2NDAwMEBtYXJ1ZG90LmNvbQpEVFNUQVJUO1RaSUQ9RXVyb3BlL0JlcmxpbjoyMDIwMTIyM1QxMjAwMDAKRFRFTkQ7VFpJRD1FdXJvcGUvQmVybGluOjIwMjAxMjIzVDEyMDAwMApTVU1NQVJZOnNkZnNkZgpFTkQ6VkVWRU5UCkVORDpWQ0FMRU5EQVI=" download="event. |
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
<?= \Contao\Controller::replaceInsertTags('{{picture::files/image/{{date::Y-m-d}}.jpg}}', 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
<?= \Contao\StringUtil::substr($this->teaser, 160) ?> |
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
.line-clamp { | |
display: -webkit-box; | |
-webkit-line-clamp: 3; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
} |
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
SELECT p.id, p.title, p.alias | |
FROM tl_page AS p, tl_article AS a, tl_content AS c | |
WHERE c.ptable = 'tl_article' | |
AND c.type IN ('colsetStart', 'colsetEnd') | |
AND c.pid = a.id | |
AND a.pid = p.id | |
GROUP BY p.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 print_r(realpath_cache_get()); |
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
telnet mail.server.com 25 | |
EHLO mail.server.com | |
AUTH LOGIN | |
<base64-encoded-username> | |
<base64-encoded-password> | |
MAIL FROM: <[email protected]> | |
RCPT TO: <[email protected]> | |
DATA | |
From: <[email protected]> | |
To: <[email protected]> |