/ */ class Theme_Decorator_DisplayImage extends Content_Form_Decorator_DisplayImage { /** * Overrides content module's image decorator for tablet theme. * * @param string $label the label to include in the tag. * @param array $params the paramaters to provide to the Uri function * @return string the rendered html tag. */ protected function _renderHtmlTag($label, $params) { // if not provided, set 'noSize' and 'asBackground' options to true by default $noSize = $this->getOption('noSize'); $asBg = $this->getOption('asBackground'); $this->setOption('noSize', $noSize !== null ? $noSize : true); $this->setOption('asBackground', $asBg !== null ? $asBg : true); $html = parent::_renderHtmlTag($label, $params); // add javascript to capture the orientation of the image and apply it // as a class on the containing list-item (if in a multi-list) or the // wrapping content-element dijit if there is only one list item. $html .= ""; return $html; } }