You are here

protected function AvailabilityCalendarCssGenerator::getRtlTextAlign in Availability Calendars 7.4

Same name and namespace in other branches
  1. 7.5 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::getRtlTextAlign()
  2. 7.3 availability_calendar.styles.inc \AvailabilityCalendarCssGenerator::getRtlTextAlign()
4 calls to AvailabilityCalendarCssGenerator::getRtlTextAlign()
AvailabilityCalendarCssGenerator::createCaptionRtlCss in ./availability_calendar.styles.inc
AvailabilityCalendarCssGenerator::createDaysRtlCss in ./availability_calendar.styles.inc
AvailabilityCalendarCssGenerator::createHeaderRtlCss in ./availability_calendar.styles.inc
AvailabilityCalendarCssGenerator::createStatesRtlCss in ./availability_calendar.styles.inc

File

./availability_calendar.styles.inc, line 1013

Class

AvailabilityCalendarCssGenerator

Code

protected function getRtlTextAlign($category, $name) {
  $value = $this
    ->getStyle($category, $name);
  switch ($value) {
    case 'left':
      $value = 'right';
      break;
    case 'right':
      $value = 'left';
      break;
    default:
      $value = '';
      break;
  }
  return $value;
}