| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | private function addAmpStyles() |
||
| 23 | { |
||
| 24 | $css = null; |
||
| 25 | $cssFiles = AmpPagesRequirementsExtension::getAmpCSSFiles(); |
||
| 26 | foreach ($cssFiles as $themeCSSPath) { |
||
| 27 | $fullCSSPath = BASE_PATH.DIRECTORY_SEPARATOR.$themeCSSPath; |
||
| 28 | if (is_file($fullCSSPath)) { |
||
| 29 | $css .= file_get_contents($fullCSSPath); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | $tag = '<style amp-custom>'.$css.'</style>'; |
||
| 33 | Requirements::insertHeadTags($tag); |
||
| 34 | } |
||
| 36 |