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
| RewriteCond %{HTTP_USER_AGENT} Googlebot [OR] | |
| RewriteCond %{HTTP_USER_AGENT} AdsBot-Google [OR] | |
| RewriteCond %{HTTP_USER_AGENT} msnbot [OR] | |
| RewriteCond %{HTTP_USER_AGENT} AltaVista [OR] | |
| RewriteCond %{HTTP_USER_AGENT} Slurp | |
| RewriteRule . - [F,L] |
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 $out = strlen($this->email) > 27 ? substr($this->email,0,27)."..." : $this->email;?> |
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
| #no trailing slash | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)/$ index.php/$1 [L,R=301] # <- for test, for prod use [L,R=301] | |
| #RewriteRule (.*)$ index.php/$1 [L] | |
| #force trailing slash | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*[^/])$ /index.php/$1/ [L,R] # <- for test, for prod use [L,R=301] |
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
| html { | |
| /* Adjust font size */ | |
| font-size: 100%; | |
| -webkit-text-size-adjust: 100%; | |
| /* Font varient */ | |
| font-variant-ligatures: none; | |
| -webkit-font-variant-ligatures: none; | |
| /* Smoothing */ | |
| text-rendering: optimizeLegibility; | |
| -moz-osx-font-smoothing: grayscale; |
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
| /* | |
| Include this after bootstrap.css. Add class of | |
| vert-offset-top-value or vert-offset-bottom-value | |
| to your Bootstrap 3 default rows to prevent row content | |
| from touching the row content above or below. | |
| */ | |
| /* Vertical Offset Bottom */ | |
| .vert-offset-top-12{ | |
| margin-top: 12em; |
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
| DELETE FROM s_articles_img; | |
| DELETE FROM s_articles_img_attributes; | |
| DELETE FROM s_article_img_mappings; | |
| DELETE FROM s_article_img_mapping_rules; |
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
| DELETE ca -- SELECT ca.* | |
| FROM `s_articles_attributes` ca | |
| LEFT JOIN s_articles c | |
| ON c.id = ca.articleID | |
| WHERE c.id IS NULL | |
| DELETE ca -- SELECT ca.* | |
| FROM `s_articles_details` ca | |
| LEFT JOIN s_articles c | |
| ON c.id = ca.articleID |
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 $intTimestamp = \Controller::replaceInsertTags("{{CTLG_MASTER::dates}}"); | |
| echo $this->parseDate("d.m.Y", $intTimestamp);?> | |
| or | |
| <?php | |
| echo \Date::parse($strFormat, $intTstamp) | |
| ?> |
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
| {assign var="breadcrumb" value=$sArticle.articleID|category:","} | |
| {assign var="categories" value=","|explode:$breadcrumb} | |
| <categoryid1>{$categories[0]|escape:"htmlall"}</categoryid1> | |
| <categoryid2>{$categories[1]|escape:"htmlall"}</categoryid2> | |
| <categoryid3>{$categories[2]|escape:"htmlall"}</categoryid3> |
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
| echo \Controller::replaceInsertTags("{{post::countPeople}}"); | |
| echo \Controller::replaceInsertTags("{{post::pakettype}}"); | |
| echo \Input::post('countPeople'); | |
| echo \Input::post('pakettype'); | |
| //see here | |
| https://www.marcosimbuerger.ch/tech-blog/contao-input-klasse-post-get-cookie.html |