/** * Get the html node for this element * * @param \DOMElement $node * @param \AppShed\Remote\XML\DOMDocument $xml * @param \AppShed\Remote\HTML\Settings $settings */ protected function getHTMLNodeInner($node, $xml, $settings) { $node->appendChild($inner = $xml->createElement('div', 'item-icon-inner')); $inner->appendChild($xml->createImgElement($this->icon->getUrl(), 'image', $this->icon->getSize())); $inner->appendChild($xml->createElement('div', ['class' => 'title', 'text' => $this->title])); $this->applyLinkToNode($xml, $node, $settings); }
/** * Get the html node for this element * * @param \DOMElement $node * @param \AppShed\Remote\XML\DOMDocument $xml * @param \AppShed\Remote\HTML\Settings $settings */ protected function getHTMLNodeInner($node, $xml, $settings) { $imageDiv = $xml->createElement('div', ['class' => 'image-container']); $imageDiv->appendChild($xml->createImgElement($this->thumbImage->getUrl(), 'image')); $node->appendChild($imageDiv); $this->applyLinkToNode($xml, $node, $settings); }
/** * Get the html node for this element * * @param \DOMElement $node * @param \AppShed\Remote\XML\DOMDocument $xml * @param \AppShed\Remote\HTML\Settings $settings */ protected function getHTMLNodeInner($node, $xml, $settings) { if ($this->image) { $imageDiv = $xml->createElement('div', ['class' => 'image-container']); $node->appendChild($imageDiv); $imageDiv->appendChild($xml->createImgElement($this->image->getUrl(), 'image', $this->image->getSize())); } parent::getHTMLNodeInner($node, $xml, $settings); }
/** * Get the html node for this element * * @param \DOMElement $node * @param \AppShed\Remote\XML\DOMDocument $xml * @param \AppShed\Remote\HTML\Settings $settings */ protected function getHTMLNodeInner($node, $xml, $settings) { $node->appendChild($xml->createImgElement($this->image->getUrl(), 'image')); $this->applyLinkToNode($xml, $node, $settings); }