@@ 156-160 (lines=5) @@ | ||
153 | */ |
|
154 | public function getIcon() |
|
155 | { |
|
156 | if (!count($this->dataAsArray)) { |
|
157 | //remove non-ascii characters as they were causing havoc... |
|
158 | $this->Data = preg_replace('/[^(\x20-\x7F)]*/', '', $this->Data); |
|
159 | $this->dataAsArray = $this->safelyUnserialize($this->Data); |
|
160 | } |
|
161 | if (!empty($this->dataAsArray["thumbnail_url"])) { |
|
162 | $v = "<img src=\"".$this->dataAsArray["thumbnail_url"]."\" width=\"".$this->dataAsArray["thumbnail_width"]."\" height=\"".$this->dataAsArray["thumbnail_height"]."\" alt=\"".Convert::raw2att($this->Title)."\"/>"; |
|
163 | } else { |
|
@@ 188-192 (lines=5) @@ | ||
185 | */ |
|
186 | public function getFullImage() |
|
187 | { |
|
188 | if (!count($this->dataAsArray)) { |
|
189 | //remove non-ascii characters as they were causing havoc... |
|
190 | $this->Data = preg_replace('/[^(\x20-\x7F)]*/', '', $this->Data); |
|
191 | $this->dataAsArray = $this->safelyUnserialize($this->Data); |
|
192 | } |
|
193 | if (!empty($this->dataAsArray["thumbnail_url"])) { |
|
194 | $imageLink = str_replace("_295x166", "", $this->dataAsArray["thumbnail_url"]); |
|
195 | $v = "<img src=\"".$imageLink."\" alt=\"".Convert::raw2att($this->Title)."\"/>"; |