<span class="low"><?php 
            echo modRokWeatherHelper::getFTemp($day['low'], $weather->units);
            ?>
</span> | 
	                    <span class="high"><?php 
            echo modRokWeatherHelper::getFTemp($day['high'], $weather->units);
            ?>
</span>
	                </div>
	                <div class="degc">
	                    <span class="low"><?php 
            echo modRokWeatherHelper::getCTemp($day['low'], $weather->units);
            ?>
</span> | 
	                    <span class="high"><?php 
            echo modRokWeatherHelper::getCTemp($day['high'], $weather->units);
            ?>
</span>
	                </div>
	            </div>    
	            <?php 
        }
        ?>
	        </div>
	        <?php 
    }
    ?>
        </div>
        <?php 
}
?>
Exemple #2
0
	        <?php if ($params->get('enable_wind')==1) : ?>
	        <div class="row"><?php echo $weather->current_wind; ?></div>
	        <?php endif; ?>
	        
			<?php if ($params->get('enable_forecast')==1): ?>
	        <div class="forecast">

			<?php
				$weather->forecast = array_slice($weather->forecast, 0, $params->get('forcast_show', 4));
			?>
		
	            <?php foreach ($weather->forecast as $day): ?>
	            <div class="day">
	                <span><?php echo $day['day_of_week']; ?></span><br />
	                   <img src="<?php echo $icon_url."/grey".$day['icon']; ?>" alt="<?php echo $day['condition']; ?>" title="<?php echo $day['condition']; ?>" /><br />
	                <div class="degf" <?php echo $degf_style; ?>>
	                    <span class="low"><?php echo modRokWeatherHelper::getFTemp($day['low'],$weather->units); ?></span> | 
	                    <span class="high"><?php echo modRokWeatherHelper::getFTemp($day['high'],$weather->units); ?></span>
	                </div>
	                <div class="degc" <?php echo $degc_style; ?>>
	                    <span class="low"><?php echo modRokWeatherHelper::getCTemp($day['low'],$weather->units); ?></span> | 
	                    <span class="high"><?php echo modRokWeatherHelper::getCTemp($day['high'],$weather->units); ?></span>
	                </div>
	            </div>    
	            <?php endforeach; ?>
	        </div>
	        <?php endif; ?>	
        <?php endif; ?>
		</div>
    </div>
</div>