Code: Select all
<script type="text/javascript" src="<?php echo $this->baseurl ? >/media/system/js/modal.js"> </script> <link rel="stylesheet" href="<?php echo $this->baseurl ? >/media/system/css/modal.css" type="text/css" /> <script type="text/javascript"> // <!-window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: 'false'}); }); // --> </script> <script type="text/javascript"> // <!-window.addEvent('domready', function() { SqueezeBox.initialize({}); $$('a.modal').each(function(el) { el.addEvent('click', function(e) { new Event(e).stop(); SqueezeBox.fromElement(el); }); }); }); // --> </script>
A secondary problem is that Joomla already has this built-in anyways, so you don't need all that crap in your template anyways. All you have to add after the DOCTYPE and HTML statements is:
<?php JHTML::_('behavior.modal'); %>
So the documentation is trying to go about it in an excessively complicated way (aside from being broken due to that space in the close php tag).
Posted not to complain about the documentation (I realize it's a freebie produced by a volunteer), but so the next person who Googles this problem finds this answer.