Created
October 16, 2013 11:05
-
-
Save BugBuster1701/7006084 to your computer and use it in GitHub Desktop.
Responsive Hack
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 | |
| if ($this->addImage): | |
| $widthMid = round($this->arrSize[0] * .8); | |
| $heightMid = round($this->arrSize[1] * .8); | |
| $css = <<<EOF | |
| @media screen and (max-width: 1290px) { | |
| #img{$this->id} { | |
| width: {$widthMid}px; | |
| height: {$heightMid}px; | |
| } | |
| } | |
| EOF; | |
| $GLOBALS['TL_HEAD'][] = <<<EOF | |
| <style> | |
| $css | |
| </style> | |
| EOF; | |
| endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment