- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Category Tags
- Template Tag: Category Background Image CSS
Template Tag: Category Background Image CSS
Displays the CSS property for a background image for the current Category.
Examples
Quick Template
[Cat:background_image_css|position=#cover_and_teaser_all|size=fit-1280x720|size_2x=fit-2560x1440]
PHP Template
$Chapter->get_background_image_css( array(
'position' => '#cover_and_teaser_all',
'size' => 'fit-1280x720',
'size_2x' => 'fit-2560x1440',
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Possible values: |
|
|
|
|
|
Return value
This tag displays content only, it does not have a return value.