protected function AvailabilityCalendarsCssGenerator::cssDeclaration in Availability Calendars 7.2
Same name and namespace in other branches
- 6.2 availability_calendars.styles.inc \AvailabilityCalendarsCssGenerator::cssDeclaration()
Helper method to specify in one single place whether and how to output spaces and new lines.
4 calls to AvailabilityCalendarsCssGenerator::cssDeclaration()
- AvailabilityCalendarsCssGenerator::addCssColorDeclaration in ./
availability_calendars.styles.inc - Creates a CSS declaration for a color property.
- AvailabilityCalendarsCssGenerator::addCssDeclaration in ./
availability_calendars.styles.inc - Creates a CSS declaration.
- AvailabilityCalendarsCssGenerator::addCssLengthDeclaration in ./
availability_calendars.styles.inc - Creates a CSS declaration for a length property.
- AvailabilityCalendarsCssGenerator::createStatesCss in ./
availability_calendars.styles.inc
File
- ./
availability_calendars.styles.inc, line 822
Class
Code
protected function cssDeclaration($property, $value) {
if (is_array($property)) {
$property = current($property);
}
return $value != '' ? " {$property}: {$value};\n" : '';
}