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 | |
$post = $wp_query->post; | |
if ( in_category('features') ) { | |
include(TEMPLATEPATH . '/single-features.php'); | |
} else { | |
include(TEMPLATEPATH . '/single-single.php'); | |
} | |
?> |
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
/*style sheet for global styles and layout blocks*/ | |
//Vars | |
//Colours | |
@text-gray: #808080; | |
@border-red: #ec1b34; | |
@border-gray: #dedede; | |
//Mixins |
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
{% load cms_tags sekizai_tags menu_tags %} | |
<!doctype html> | |
<!-- stripped and modified basis fo the paul irish html5 boilerplate (in particular: | |
https://raw.github.com/paulirish/html5-boilerplate/master/index.html) --> | |
<head> | |
<meta charset="utf-8"> | |
<title>{{ request.current_page.get_title }}</title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> |
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
//Code to generate a path object from an array, using coords in px relational to current xy | |
function do_with_args(func, args1, args2){ | |
args = jQuery.merge(args1, args2); | |
console.log(func, args) | |
return func.apply(null, args); | |
} | |
var OPERATIONS = { |
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
{ | |
"marker0": { | |
"lat": "51.500024295706694", | |
"lng": "-0.11579284667970313", | |
"title": 'Lima' | |
}, | |
"marker1": { | |
"lat": "51.500024295706694", | |
"lng": "-0.11579284667970313", | |
"title": 'London' |
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
class Shoe(Base): | |
""" | |
Container class for our SQLAlchemy object that is actually | |
from the thbookdata django app model | |
""" | |
__tablename__ = 'bookdata_shoe' | |
__table_args__ = {'autoload': True} |
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
function changeSeasons() { | |
updateSeason('#spring', 'gray', 'Winter'); | |
updateSeason('#summer', 'orange', 'Autumn'); | |
function updateSeason(sourceSeason, colour, name) { | |
var element = $(sourceSeason); | |
var newColour = colour; | |
var newName = name; | |
element.css('background-color', newColour); |
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
- Geolocation (doesnt seem to be workin on mobile) | |
- Click pin for more info | |
- Filter pins | |
- Add pins easily | |
- Move to cherrypy | |
- Pretty up interface |
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
$.getJSON('media/js/markers.json', function(data){ | |
$.each(data.markers, function(i, marker){ | |
map.addMarker({ | |
id: i, | |
tags: marker.tag, | |
lat: marker.latitude, | |
lng: marker.longitude, | |
infoWindow: { | |
content: '<h2>' + marker.name + '</h2><p>' + marker.address + '</p>' | |
} |
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
$.getJSON('media/js/markers.json', function(data){ | |
$.each(data.markers, function(i, marker){ | |
if (marker.tag = "foo") { | |
map.addMarker({ | |
id: i, | |
tags: marker.tag, | |
lat: marker.latitude, | |
lng: marker.longitude, | |
infoWindow: { | |
content: '<h2>' + marker.name + '</h2><p>' + marker.address + '</p>' |
OlderNewer