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
// Add custom pane | |
function DragPane() {} | |
DragPane.prototype = new GControl; | |
DragPane.prototype.initialize = function(map) { | |
var me = this; | |
me.panel = document.createElement("div"); | |
me.panel.style.width = "400px"; | |
me.panel.style.height = "25px"; | |
me.panel.innerHTML = "<div class='message'>Drag and drop icons to calculate a new route</div>"; |
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
//If you type the following javascript code snippet into your navigation bar, you should be able to edit any text on the page: | |
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 |
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
svn export http://core.svn.wordpress.org/trunk/ . --force |
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 | |
$parents = get_post_ancestors($post); | |
if(count($parents)>=2): | |
//Page is a grandchild, show highest level parents as menu | |
echo '<ul>'; | |
wp_list_pages('title_li=&child_of='.end($parents)); | |
echo '</ul>'; | |
elseif(count($parents)==1): | |
//Page is a child | |
echo '<ul>'; |
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
var transitOptions = { | |
getTileUrl: function(coord, zoom) { | |
return "http://mt1.google.com/vt/lyrs=m@155076273,transit:comp|vm:&" + | |
"hl=en&opts=r&s=Galil&z=" + zoom + "&x=" + coord.x + "&y=" + coord.y; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
isPng: true | |
}; | |
var transitMapType = new google.maps.ImageMapType(transitOptions); |
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
var bikeLayer = new google.maps.BicyclingLayer(); | |
bikeLayer.setMap(map); |
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
var trafficLayer = new google.maps.TrafficLayer(); | |
trafficLayer.setMap(map); |
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
/* Disable the Wordpress Admin Bar for all but admins. */ | |
if (!current_user_can('administrator')): | |
show_admin_bar(false); | |
endif; |
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
/* Disable the Wordpress Admin Bar for everyone. */ | |
show_admin_bar(false); |
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
RewriteEngine on | |
RewriteRule ^/?$ http://511contracosta.org [L] | |
RewriteRule ^(.*)$ http://bit.ly/$1 [R=301,NC] |
OlderNewer