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
<form id="contact-form" name="contact-form" method="post" action="#"> | |
Name: <input type="text" name="name"><br><br> | |
Email ID: <input type="text" name="name"><br><br> | |
Subject: <input type="text" name="name"><br><br> | |
Message: <br> | |
<textarea rows="3"></textarea> <br><br> | |
<input type="submit"> | |
</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
<?php | |
/** | |
* Facebook Comments | |
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/ | |
*/ | |
function extracatchy_facebook_comments() { | |
echo '<h2>Submit a Comment</h2>'; | |
echo '<div class="fb-comments" data-href="' . get_permalink() . '" data-numposts="5" data-width="100%"></div>'; | |
} | |
add_action( 'genesis_after_entry', 'extracatchy_facebook_comments' ); |
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 | |
/** | |
* Facebook Comment Moderator | |
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/ | |
*/ | |
function be_facebook_comment_moderator() { | |
// Using your individual facebook ID | |
echo '<meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}" />'; | |
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 | |
/** | |
* Add Facebook SDK | |
* | |
*/ | |
function be_facebook_sdk() { | |
?> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; |
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 | |
/** | |
* Facebook for Comment Count | |
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/ | |
* | |
* @param int $count | |
* @param int $post_id | |
* @return int $count | |
*/ | |
function ea_facebook_for_comment_count( $count, $post_id ) { |
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
<!-- Example to Display Code of Github --> | |
<script src="https://gist.github.com/hunkriyaz/a7b267597699b9c965f2a32d771f44af.js"></script> |
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
<p> | |
<script src="https://gist.github.com/<gist_id>.js"> </script> | |
<noscript> | |
<pre> | |
//Your code here | |
//Be sure you escape your tags with < and > when displaying things like HTML. | |
</pre> | |
</noscript> | |
</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
<?php | |
/* Do Not copy open php tag */ | |
/** | |
* @author Hunk Riyaz | |
* @link http://extracatchy.net | |
*/ | |
function add_copyright_text() { | |
if (is_single()) { ?> |
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 | |
/* Do Not copy open php tag */ | |
/** | |
* @author Hunk Riyaz | |
* @link http://extracatchy.net | |
*/ | |
function add_copyright_text() { | |
if (is_single()) { ?> |
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 | |
/** | |
* Facebook Comments Box | |
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/ | |
*/ | |
function extracatchy_facebook_comments() { | |
echo '<h2>Submit a Comment</h2>'; | |
echo '<div class="fb-comments" data-href="' . get_permalink() . '" data-numposts="5" data-width="100%"></div>'; | |
} | |
add_action( 'genesis_after_entry', 'extracatchy_facebook_comments' ); |
OlderNewer