18 require_once SQ_CORE_PACKAGE_PATH.
'/designs/design_area/design_area.inc';
39 public $allowed_extensions = Array(
'gif',
'jpg',
'jpeg',
'png');
50 parent::__construct($assetid);
66 $image_path = $this->data_path_public.
'/'.$this->
attr(
'image');
68 if (!file_exists($image_path))
return;
70 $image =
'<'.
'?php echo $DATA_PATH; ?'.
'>/'.$this->data_path_suffix.
'/'.$this->
attr(
'image');
72 if ($this->
attr(
'filename_only')) {
77 $image_size = @getimagesize($image_path);
78 if ($alt = $this->
attr(
'alt')) {
79 $alt = htmlspecialchars($alt);
81 echo
'<img src="', $image,
'" ', $this->
attr(
'extra');
82 if ($alt) echo
' alt="', $alt,
'"';
83 echo (($image_size) ?
' '.$image_size[3] :
''),
' />';