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 | |
/** | |
* Implements hook_menu() | |
* Call a custom form as menu callback | |
* @return | |
* $items array of menu items created programmatically | |
*/ | |
function test_menu() { | |
$items['test'] = array( |
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
$(document).ready(function(){ | |
var url = window.location.href; | |
if (url.search("checkout.html") >= 0) { | |
$('td:contains("A portion of Brown Paper Tickets profits"):last').hide(); | |
$('td:contains("This sale should benefit "):last').parent().hide(); | |
} | |
}); |
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
//Change coolFormName to form's name. | |
<body onload="document.coolFormName.user.focus();"> | |
<form name="coolFormName"> | |
Name: <input type=text name=user size=10> | |
</form> |
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
<html> | |
<head> | |
<link type="text/css" rel="stylesheet" href="stylesheet.css" media="all"> | |
</head> | |
<body> | |
<div id="abCounter"> | |
<p id="title">Yearly Abortion Counter</p> | |
<p id="aborts">Loading ...</p> | |
</div> |
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
<script type="text/javascript"> | |
lp.jQuery(function($) { | |
//If not a trad page, run code | |
if (!(window.location.href.indexOf("trad") > -1 || window.location.href.indexOf("music") > -1)) { | |
$('#container_degree_interest option[value="Bachelors Degree"]').attr("selected", "selected"); | |
$("#program option:not(:contains('Bachelor of'))").hide(); | |
// Hide/Show program options based on degree selection |
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
// Usage: $.playSound('http://example.org/sound.mp3'); | |
(function($){ | |
$.extend({ | |
playSound: function(){ | |
return $("<embed src='"+arguments[0]+".mp3' hidden='true' autostart='true' loop='false' class='playSound'>" + "<audio autoplay='autoplay' style='display:none;' controls='controls'><source src='"+arguments[0]+".mp3' /><source src='"+arguments[0]+".ogg' /></audio>").appendTo('body'); | |
} | |
}); |
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 | |
function add_embed_tweet_meta_box() { | |
add_meta_box( | |
'paulund_embed_tweet_meta_box', // $id | |
'Post Embed Tweets Meta Box', // $title | |
'show_embed_tweet_meta_box', // $callback | |
'post', // $page | |
'normal', // $context | |
'high'); // $priority | |
} |
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
define('WP_HOME','http://domain.com/wordpress'); | |
define('WP_SITEURL','http://domain.com/wordpress'); |