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
// | |
// sass - Media queries made simple | |
// | |
// @require sass-3.2 (you need eventually to do "sudo gem install sass --pre") | |
// | |
// Inspired by Maxime Thirouin & Mason Wendell | |
/* How to use it? | |
.class-name { | |
@include mq(phone) { color:pink } |
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
<header> | |
<h1><?php echo $json->TrustScore->Human; ?></h1> | |
<img src="<?php echo $json->TrustScore->StarsImageUrls->large; ?>" alt="stars"/> | |
<p class="review-count"><?php echo $json->ReviewCount->Total; ?> customers has written a review on Trustpilot</p> | |
</header> |
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
<?php | |
// The JSON feed is gzipped. This is needed to unpack it before using | |
require('inc/gzdecode.php'); | |
// Get the JSON feed and gzunpack | |
$file = gzdecode( file_get_contents("http://s.trustpilot.com/tpelements/917278/f.json.gz") ); | |
// JSON decode the string | |
$json = json_decode($file); | |
?> |
NewerOlder