Created
June 16, 2015 13:42
-
-
Save 2dpi/b7969592177bfaca51e4 to your computer and use it in GitHub Desktop.
JOOMLA - Add Style Declaration
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 (!empty($attribs->select_banner_image)) { | |
$style = 'html { | |
background-image: url('.$attribs->select_banner_image.') !important; | |
background-size: contain; | |
background-repeat: no-repeat; | |
background-position: center top; | |
}'; | |
$doc->addStyleDeclaration( $style ); | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment