/**
  * Draws the image's properties
  * 
  * @return string
  *
  */
 protected function drawProperties()
 {
     $pages = $this->getSitePages();
     $linkedPage = w3sCommonFunctions::getPageNameFromLink($this->attributes['linkedTo']);
     $search = array_search($linkedPage, $pages);
     if ($search !== false) {
         $selectedPageIndex = $search;
         $externalLink = '';
     } else {
         $selectedPageIndex = -1;
         $externalLink = $this->attributes['linkedTo'];
     }
     $params = array(array('name' => 'w3s_ppt_image', 'label' => 'Image', 'type' => 'input', 'options' => array('value' => w3sCommonFunctions::getStdBasename($this->attributes["fullImagePath"]), 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_width', 'label' => 'Width', 'type' => 'input', 'options' => array('value' => $this->attributes["width"], 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_height', 'label' => 'Height', 'type' => 'input', 'options' => array('value' => $this->attributes["height"], 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_size', 'label' => 'Size', 'type' => 'input', 'options' => array('value' => $this->attributes["size"], 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_img_alignment', 'label' => 'Align', 'choices' => array("w3s_none" => "Not aligned", "w3s_left" => "Left", "w3s_right" => "Right")), array('name' => 'w3s_ppt_title_text', 'label' => 'Title', 'type' => 'input', 'options' => array('value' => $this->attributes["title"])), array('name' => 'w3s_ppt_alt_text', 'label' => 'Alt', 'type' => 'input', 'options' => array('value' => $this->attributes["alt"])), array('name' => 'w3s_ppt_int_link', 'label' => 'Int. Link', 'default' => $selectedPageIndex, 'choices' => $pages), array('name' => 'w3s_ppt_ext_link', 'label' => 'Ext. Link', 'type' => 'input', 'options' => array('value' => $externalLink)), array('name' => 'w3s_ppt_htmlImage', 'type' => 'hidden', 'options' => array('value' => $this->image->getImage())), array('name' => 'w3s_ppt_imageType', 'type' => 'hidden', 'options' => array('value' => $this->attributes["imageType"])));
     $properties = new w3sProperties($params);
     return $properties->render();
 }