is_image()) { return false; } global $THEME; $url = $asset->url(); $title = $asset->title(); $title = $title ? $title : $asset->name(); $size = (int) $asset->config('size'); $size = (24 <= $size && $size <= 800) ? $size : 300; $embed = <<{$title} EOT; $result = array(); $result[self::URL] = $url; $result[self::EMBED_SNIPPET] = $embed; $result[self::TITLE] = $title; $result[self::THUMBNAIL] = $url; return $result; } }