function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     $lnkAttrs['rel'] = 'sexylightbox';
     if ($group) {
         $lnkAttrs['rel'] .= '[' . $group . ']';
     }
     $link = $lnkAttrs['href'];
     $bgColor = $params->get('lightbox_bgColor');
     if ($this->isLink($link)) {
         $uri = new JURI($link);
         $uri->setVar('TB_iframe', 'true');
         $uri->setVar('height', intval($params->get('lightbox_height'), 10));
         $uri->setVar('width', intval($params->get('lightbox_width'), 10));
         if ($bgColor) {
             $uri->setVar('background', $bgColor);
         }
         $lnkAttrs['href'] = $uri->toString();
     } else {
         if ($bgColor) {
             $uri = new JURI($link);
             $uri->setVar('background', $bgColor);
             $lnkAttrs['href'] = $uri->toString();
         }
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }
示例#2
0
 function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     $lnkAttrs['rel'] = sprintf('rokbox[%d %d]', intval($params->get('lightbox_width'), 10), intval($params->get('lightbox_height'), 10));
     if ($group) {
         $lnkAttrs['rel'] .= '(' . str_replace('_', '', $group) . ')';
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }
 function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     $lnkAttrs['rel'] = 'shadowbox';
     if ($group) {
         $lnkAttrs['rel'] .= '[' . $group . ']';
     }
     $link = $lnkAttrs['href'];
     if ($this->isLink($link)) {
         $lnkAttrs['rel'] .= ';height=' . intval($params->get('lightbox_height'), 10);
         $lnkAttrs['rel'] .= ';width=' . intval($params->get('lightbox_width'), 10);
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }
 function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     JHTML::_('behavior.modal', 'a.modal');
     if (empty($lnkAttrs['class'])) {
         $lnkAttrs['class'] = '';
     } else {
         $lnkAttrs['class'] .= ' ';
     }
     $lnkAttrs['class'] .= 'modal';
     $link = $lnkAttrs['href'];
     if ($this->isLink($link)) {
         $lnkParams = array('handler' => 'iframe', 'size' => array('x' => $params->get('lightbox_width'), 'y' => $params->get('lightbox_height')));
         $lnkAttrs['rel'] = str_replace('"', '"', AriJSONHelper::encode($lnkParams));
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }
 function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     $lnkAttrs['rel'] = 'prettyPhoto';
     if ($group) {
         $lnkAttrs['rel'] .= '[' . $group . ']';
     }
     $link = $lnkAttrs['href'];
     if ($this->isLink($link)) {
         $uri = new JURI($link);
         $uri->setVar('iframe', 'true');
         $uri->setVar('height', intval($params->get('lightbox_height'), 10));
         $uri->setVar('width', intval($params->get('lightbox_width'), 10));
         $lnkAttrs['href'] = $uri->toString();
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }
示例#6
0
 function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     if ($group) {
         $lnkAttrs['rel'] = $group;
     }
     if (empty($lnkAttrs['class'])) {
         $lnkAttrs['class'] = '';
     } else {
         $lnkAttrs['class'] .= ' ';
     }
     $lnkAttrs['class'] .= 'aricolorbox';
     $link = $lnkAttrs['href'];
     if ($this->isLink($link)) {
         $lnkParams = array('iframe' => true, 'width' => $params->get('lightbox_width'), 'height' => $params->get('lightbox_height'));
         $lnkAttrs['class'] .= ' ' . str_replace('"', '"', AriJSONHelper::encode($lnkParams));
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }
示例#7
0
 function modifyAttrs($lnkAttrs, $imgAttrs, $group, $params)
 {
     if ($group) {
         $lnkAttrs['rel'] = $group;
     }
     if (empty($lnkAttrs['class'])) {
         $lnkAttrs['class'] = '';
     } else {
         $lnkAttrs['class'] .= ' ';
     }
     $lnkAttrs['class'] .= 'arifancybox';
     $link = $lnkAttrs['href'];
     if ($this->isLink($link)) {
         $lnkParams = array('width' => $params->get('lightbox_width'), 'height' => $params->get('lightbox_height'));
         foreach ($lnkParams as $key => $value) {
             if (strpos($value, '%') === false) {
                 $lnkParams[$key] = intval($value, 10);
             }
         }
         $lnkAttrs['class'] .= ' iframe ' . str_replace('"', '"', AriJSONHelper::encode($lnkParams));
     }
     return parent::modifyAttrs($lnkAttrs, $imgAttrs, $group, $params);
 }