⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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 | |
// PHP is useful for conditional logic where the HTML structure is very different - e.g. | |
$number_of_highlight_boxes = '<t4 type="content" name="Number of boxes" output="normal" modifiers="" />'; | |
if ($number_of_highlight_boxes == "1") { /* write some HTML */ } else { /* write some more HTML */ } | |
?> | |
<!-- |
This file contains 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
// Showtime JSON loader | |
if ($('#showtime-json').length){ | |
var feedUrl = $('#showtime-json').data('url'); | |
var limit = $('#showtime-json').data('limit'); | |
$.getJSON( feedUrl + '&limit=' + limit + '&callback=?', function(data) { | |
$('.loader').hide(); | |
var container = $('#showtime-json'); | |
var outputNode = container.find('ul'); |