/**
  * intializes the object with a setup array
  *
  * @param array $config an array of optional parameters:
  *                     'filename' => an image path, filename or URL
  *                     'classname' => a classname for the image
  *                     'wrap_tags' => array of open and close HTML
  *                     'link' URI for a wrapping anchor tag
  *                     'relstring' => string to show in the "rel" attribute of the image
  *                     'mode' => display mode: as an image or a filename or both
  *                     'module' => calling module
  */
 function __construct($config)
 {
     parent::__construct($config);
     $this->classname .= ' ' . Participants_Db::$prefix . 'image image-field-wrap';
     if (empty($this->link)) {
         $this->link = $this->image_defined && Participants_Db::plugin_setting_is_true('image_link') ? $this->image_uri : '';
     }
 }
Пример #2
0
 /**
  * intializes the object with a setup array
  *
  * @param array $config an array of optional parameters:
  *                     'filename' => an image path, filename or URL
  *                     'classname' => a classname for the image
  *                     'wrap_tags' => array of open and close HTML
  *                     'link' URI for a wrapping anchor tag
  *                     'mode' => display mode: as an image or a filename or both
  *                     'module' => calling module
  */
 function __construct($config)
 {
     parent::__construct($config);
     $this->classname .= ' ' . Participants_Db::$prefix . 'image image-field-wrap';
     if (empty($this->link) and $this->link !== false) {
         $this->link = $this->image_defined && Participants_Db::$plugin_options['image_link'] == 1 ? $this->image_uri : '';
     }
 }