- link; ?>
params->get('target', $params->get('target')))
+ $link = $item->link;
+ $width = (int) $item->params->get('width', 600);
+ $height = (int) $item->params->get('height', 500);
+
+ switch ($item->params->get('target'))
{
case 1:
// Open in a new window
- echo '
' .
htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '';
break;
case 2:
// Open in a popup window
- $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . $this->escape($width) . ',height=' . $this->escape($height) . '';
+ $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . $width . ',height=' . $height;
echo "
" .
htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '';
break;
@@ -94,22 +98,25 @@
-
+
- link; ?>
params->get('target', $params->get('target')))
+ $link = $item->link;
+ $width = (int) $item->params->get('width', 600);
+ $height = (int) $item->params->get('height', 500);
+
+ switch ($item->params->get('target'))
{
case 1:
// Open in a new window
- echo '
' .
htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '';
break;
case 2:
// Open in a popup window
- $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . $this->escape($width) . ',height=' . $this->escape($height) . '';
+ $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . $width . ',height=' . $height;
echo "
" .
htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '';
break;