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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div id="fb-root"></div> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ |
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 | |
function wp_trim_words( $text, $num_words = 55, $more = null ) { | |
if ( null === $more ) | |
$more = __( '…' ); | |
$original_text = $text; | |
$text = wp_strip_all_tags( $text ); | |
/* translators: If your word count is based on single characters (East Asian characters), | |
enter 'characters'. Otherwise, enter 'words'. Do not translate into your own language. */ | |
if ( 'characters' == _x( 'words', 'word count: words or characters?' ) && preg_match( '/^utf\-?8$/i', get_option( 'blog_charset' ) ) ) { |
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
<!DOCTYPE html> | |
<html lang=""> | |
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# dc-trip: http://ogp.me/ns/fb/dc-trip#"> | |
<title> Petition </title> | |
<meta property="fb:app_id" content="438840122827431" /> | |
<meta property="og:type" content="dc-trip:petition" /> | |
<meta property="og:url" content="https://colmd.fbdublin.com/dc-trip/petition.php" /> | |
<meta property="og:title" content="Free donuts for all" /> | |
<meta property="og:image" content="http://www.amend2012.org/atf/cf/%7B5457E9EC-EF4A-4F33-BA1B-305FF743FDF9%7D/signthepetition_icon.gif" /> | |
<meta property="og:description" content="We the people, love donuts" /> |
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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<iframe src="http://www.facebook.com/plugins/facepile.php? | |
app_id=28251678835" scrolling="no" frameborder="0" style="border:none; | |
overflow:hidden; width:200px;" allowTransparency="true"></iframe> | |
</body> | |
</html> |
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
https://graph.facebook.com/<user_id>/notifications?href=/some_url.php&template=testing&access_token=<app_access_token>&method=POST |
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
<script> | |
if(self == top) { | |
window.location.replace("http://www.facebook.com/colmstestpage/app_120999667956026"); | |
} | |
</script> |
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 | |
if (strlen($instance['title']) > 0) { | |
echo $before_title.$instance['title'].$after_title; | |
} |
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 | |
$app_secret = 'APPSECRET'; | |
$signed_request = parse_signed_request($_REQUEST['signed_request'], $app_secret); | |
$page_whitelist = array(PAGEID1, PAGEID2); | |
if (in_array($signed_request['page']['id'], $page_whitelist)) { | |
// do stuff |
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 | |
$content = get_the_content(); | |
$nodes = extract_tags($content, 'h\d+', false); | |
$headingsList = ""; | |
$currentHeading = 0; |