You are here

protected function AvailabilityCalendarCssGenerator::createHeaderRtlCss in Availability Calendars 7.4

Same name and namespace in other branches
  1. 7.5 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::createHeaderRtlCss()
  2. 7.3 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::createHeaderRtlCss()

Return value

string The RTL CSS for the header.

1 call to AvailabilityCalendarCssGenerator::createHeaderRtlCss()
AvailabilityCalendarCssGenerator::createRtlCss in ./availability_calendar.styles.inc
Creates the RTL css.

File

./availability_calendar.styles.inc, line 672

Class

AvailabilityCalendarCssGenerator

Code

protected function createHeaderRtlCss() {
  $category = 'header';
  $css = '';
  $value = $this
    ->getRtlTextAlign($category, 'text-align');
  if (!empty($value)) {
    $css .= "/* Weekday names (header row) */\n";
    $css .= $this
      ->cssSelector(".cal thead th");
    $css .= $this
      ->cssDeclaration('text-align', $value);
    $css .= $this
      ->cssSelectorEnd();
  }
  return $css;
}