echo JHTML::_('date', $subitem->startdates, JText::_('DATE_FORMAT_LC3')); echo '</div>' . "\n"; echo '</div>' . "\n"; echo '<div class="centercell">' . "\n"; echo '<div class="inner" style="text-align:left; overflow:hidden;">' . "\n"; echo '<a href="' . $link . '">' . stripslashes($subitem->title) . '</a>'; echo '</div>' . "\n"; echo '</div>' . "\n"; echo '</div>' . "\n"; /* echo '<p style="text-align:left;">'; echo JHTML::_('date', $subitem->startdates, JText::_('DATE_FORMAT_LC3') ).' '; echo '<a href="'. $link.'">'.stripslashes($subitem->title).'</a>'; echo '</p>'; */ echo '</div>' . "\n"; $x = 1 - $x; } } echo '<div class="clear"></div>' . "\n"; echo '<p style="text-align:right;">'; $parentlink = JRoute::_(hotelguideHelperRoute::getEventRoute($this->events[$i]->slug)); echo '<a href="' . $parentlink . '">' . JText::_('HG_VIEW_ALL') . ' »</a>'; echo '</p>'; echo '</div>' . "\n"; echo '</div>' . "\n"; echo '</div>' . "\n"; } echo '</div>' . "\n"; echo '</div>' . "\n"; echo "<script type=\"text/javascript\">\n\twindow.addEvent('domready', function(){ \n\tvar opt = {\n\t\t\tautoplay: true,\n\t\t\tdelay:9000,\n\t\t\tflexHeight: true,\n\t\t\tscrolling: 'rl'\t\t\n\t\t};\n\tvar t2 = new QTabs('tab', opt); \n})\n</script>" . "\n"; echo '<div class="clear"></div>' . "\n";
echo '<div class="content">' . "\n"; echo '<h3 class="title">'; echo JText::_('HG_EVENT_LIST'); echo '</h3>' . "\n"; $k = 0; if ($this->hgconf->listheight_des > 0) { $margin = $this->hgconf->listheight_des; } else { $margin = 80; } echo '<div id="itembox">' . "\n"; foreach ($this->events as $sub) { if ($sub->published == 0) { continue; } $link = JRoute::_(hotelguideHelperRoute::getEventRoute($sub->slug)); if ($k == 0) { echo '<div class="titlerow" style="height:' . $margin . 'px; background: transparent url(' . JURI::base() . 'components/com_hotelguide/assets/images/back_light.png) 0 0 repeat;">' . "\n"; } else { echo '<div class="titlerow" style="height:' . $margin . 'px; background: transparent url(' . JURI::base() . 'components/com_hotelguide/assets/images/back_dark.png) 0 0 repeat;">' . "\n"; } echo '<div class="leftcell">' . "\n"; echo '<div class="inner">' . "\n"; if ($sub->image) { echo '<a href="' . $link . '"><img class="img_left imgshadow" style="padding:4px; margin: 6px 10px 6px 0; border-color:' . $this->hgconf->bordercolor . '" style="border-color:' . $this->hgconf->bordercolor . '" src="' . JURI::base() . 'images/hotelguide/event/thumb/' . $sub->image . '" alt="' . htmlentities($sub->title) . '"></a>'; } else { echo '<a href="' . $link . '"><img class="img_left imgshadow" style="padding:4px; margin: 6px 10px 6px 0; border-color:' . $this->hgconf->bordercolor . '" style="border-color:' . $this->hgconf->bordercolor . '" src="' . JURI::base() . 'components/com_hotelguide/assets/images/no_thumb.gif" title="No Image" alt="No Image" ></a>'; } echo '</div>' . "\n"; echo '</div>' . "\n"; echo '<div class="centercell">' . "\n";