protected function getPosition(array $contents) { if (isset($contents['position']) && $contents['position'] == 'right') { return 'pull-right'; } return 'pull-left'; }