protected function AvailabilityCalendarCssGenerator::addCssDeclaration in Availability Calendars 7.4
Same name and namespace in other branches
- 7.5 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::addCssDeclaration()
- 7.3 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::addCssDeclaration()
Creates a CSS declaration.
Parameters
string $category: The name of the category in which the setting is stored.
string|array $name: The name of the setting and property. If $name is an array it should be an array with 1 element of the form <setting name> => <property name>. Use this if the setting name is not the name of the property.
Return value
string The generated CSS declaration: " property: value;"
5 calls to AvailabilityCalendarCssGenerator::addCssDeclaration()
- AvailabilityCalendarCssGenerator::createCaptionCss in ./
availability_calendar.styles.inc - AvailabilityCalendarCssGenerator::createDaysCss in ./
availability_calendar.styles.inc - AvailabilityCalendarCssGenerator::createHeaderCss in ./
availability_calendar.styles.inc - AvailabilityCalendarCssGenerator::createStatesCss in ./
availability_calendar.styles.inc - AvailabilityCalendarCssGenerator::createTableCss in ./
availability_calendar.styles.inc
File
- ./
availability_calendar.styles.inc, line 1081
Class
Code
protected function addCssDeclaration($category, $name) {
$value = $this
->getStyle($category, $name);
return $this
->cssDeclaration($name, $value);
}