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
$(replace_placeholders); | |
function replace_placeholders() { | |
var browser_supports_placeholder; | |
if (typeof Modernizr != "undefined") { | |
placeholder_support = Modernizr.input.placeholder | |
} else { | |
placeholder_support = !!("placeholder" in (document.createElement('input'))); | |
} | |
if (browser_supports_placeholder) { return; } |
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
$(replace_placeholders); | |
function replace_placeholders() { | |
var browser_supports_placeholder; | |
if (typeof Modernizr != "undefined") { | |
browser_supports_placeholder = Modernizr.input.placeholder | |
} else { | |
browser_supports_placeholder = !!("placeholder" in (document.createElement('input'))); | |
} | |
if (browser_supports_placeholder) { return; } |
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 = preg_replace_callback('~\s*^\s*[\*•·•] ?(.*?)$~um', array($this, 'do_list_elements'), $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
preg_replace('~^-{4}\s*$~m', '<hr />', $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
<!doctype html> | |
<html> | |
<head> | |
<title>PlaceHolders demo</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$.do_placeholders(); | |
}); |
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
if($('#tweets').length) { | |
$('#tweets').tweet({ | |
username: 'yourusername', // <<-- Change this to your username | |
count: 3, | |
loading_text: 'Loading latest tweets', | |
template: '{text}{time}' | |
}).bind('loaded', function() { | |
$('.tweet_list').addClass('slides'); | |
$('#tweets').flexslider({ | |
slideshowSpeed: 10000, |
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
[ | |
{ | |
"name": "Home", | |
"link": "home.html" | |
}, | |
{ | |
"name": "Services", | |
"link": "interior.html", | |
"children": [ | |
{ |
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 | |
if ($_SERVER['REQUEST_METHOD']=='POST') { | |
21try { | |
$enable_gzip = isset($_POST['gzip']); | |
$migrator = new WpMigrator($_POST['new-home'], $_POST['new-prefix']); | |
if (is_uploaded_file($_FILES['dump']['tmp_name'])) { | |
$file_ext = preg_replace('~.*\.~', '', $_FILES['dump']['name']); | |
$file_ext = strtolower($file_ext); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>datepicker demo</title> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
</head> | |
<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 | |
Carbon_Container::factory('custom_fields', 'Offices') | |
->show_on_post_type('page') | |
->add_fields(array( | |
Carbon_Field::factory('text', 'sub_title'), | |
Carbon_Field::factory('complex', 'office_locations') | |
->add_fields('office', array( | |
Carbon_Field::factory('text', 'address'), | |
Carbon_Field::factory('date', 'added_on'), | |
Carbon_Field::factory('rich_text', 'description'), |
OlderNewer