This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =Utility Classes | |
// These silent classes, called with @extend, and never output to CSS unless specifically called. | |
// example: | |
// @extend %ir; | |
// Image Replacement | |
%ir { | |
background-color: transparent; | |
border: 0; | |
overflow: hidden; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getWeather() { | |
if (false === ( $theWeather = get_transient('theWeather') ) ) { | |
$xmlUrl = 'http://www.google.com/ig/api?weather=portland&oe=utf-8&'; | |
$output = wp_remote_fopen($xmlUrl); | |
$xmlData = simplexml_load_string($output); | |
$conditions = $xmlData->weather->current_conditions->condition['data']; | |
$raining = array( 'Showers', 'Scattered Showers', 'Chance of Rain', 'Chance of Storm', 'Rain', 'Light Rain' ); |
NewerOlder