Ejemplo n.º 1
0
    }
    if ($hotels->featured > 0) {
        echo '<div class="trans" style="background:none; filter:alpha(opacity=100); -moz-opacity:1.0; -khtml-opacity:1.0; opacity:1.0;">' . "\n";
    } else {
        echo '<div class="inner">' . "\n";
    }
    if ($hotels->price) {
        echo '<div class="ratingIcon" style="width:120px; background-color:' . $this->hgconf->priceboxcolor . '; border-color:' . $this->hgconf->pricebordercolor . ';">';
        echo '<p style="font-size:11px; text-align:center;">' . JText::_('HG_PRICE_FROM') . '</P>';
        echo '<p style="font-size:18px; font-weight:bold; text-align:center; color:' . $this->hgconf->pricecolor . ';">' . $hotels->symbol . (int) $hotels->price;
        echo '<span style="font-size:12px; color:#333333;">&nbsp;/&nbsp;' . JText::_('HG_NIGHT');
        echo '</span></p></div>' . "\n";
    }
    if ($this->hgconf->showrating == 1) {
        echo '<div class="ratingIcon" style="width:120px; font-weight:bold; font-size:12px; text-align:center; background-color:' . $this->hgconf->priceboxcolor . '; border-color:' . $this->hgconf->pricebordercolor . ';">';
        echo hg_html::categoryratingbar($hotels);
        echo '<p style="font-size:10px; font-weight:normal; text-align:center;">';
        echo JTEXT::_('HG_USERS_RATING') . '&nbsp;(' . $hotels->rate . ')';
        echo '</P>';
        echo '</div>';
    }
    echo '</div>';
    echo '</div>' . "\n";
    echo '</div>' . "\n";
    $i++;
    $k = 1 - $k;
}
echo '</div>' . "\n";
if ($this->hgconf->box == 'None') {
    echo '<div class="clear"></div>' . "\n";
} else {
Ejemplo n.º 2
0
						echo '<strong>'.JText::_('HG_CHECKOUT').':&nbsp;</strong>'.  "\n";
						echo JText::_('HG_PRIOR_TO').'&nbsp;'.strftime("%H:%M", strtotime($this->item->checkout)). '</li>'. "\n";
					endif;  
				
					if ($this->item->norooms) :
						echo '<li class="feature">' . "\n";
						echo '<strong>'.JText::_('HG_NO_OF_ROOMS').':&nbsp;</strong>'.  "\n";
						echo $this->item->norooms. '</li>'. "\n";
					endif;
					
					echo '</ul>' . "\n"; 
				echo '</div>';*/
echo '<div id="topright">' . "\n";
if ($this->item->rate > 0 && $this->hgconf->review) {
    echo '<div class="weather" style="text-align:center; background-color:' . $this->hgconf->priceboxcolor . '; border-color:' . $this->hgconf->pricebordercolor . ';">';
    echo hg_html::categoryratingbar($this->item);
    echo '<br/>' . JTEXT::_('HG_USERS_RATING') . '&nbsp;(' . $this->item->rate . ')';
    echo '</div>' . "\n";
}
if ($this->hgconf->showweather) {
    if ($this->item->cityinfo->name) {
        $weather = '';
        // parsed from XML data
        $parsedData = array('unit' => '', 'current_condition' => '', 'current_temp_f' => '', 'current_temp_c' => '', 'current_humidity' => '', 'current_icon' => '', 'current_wind' => '', 'forecast' => array());
        if (function_exists('curl_init')) {
            // initializing connection
            $curl = curl_init();
            // saves us before putting directly results of request
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
            // url to get
            $city = str_replace(" ", "+", $this->item->cityinfo->name);