Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
?php
/*
Template Name: Contact
*/
?
?php
if(isset($_POST['submitted'])) {
if(trim($_POST['contactName']) === ”) {
$nameError = ‘Please enter your name.’;
$hasError = true;
!-- Facebook JavaScript SDK --
div id=&amp;amp;amp;quot;fb-root /div
script
window.fbAsyncInit = function() {
FB.init({appId: '177594542288018', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
?php if( comments_open() ): ?
div id= facebook-comments
h3 id= reply-title Leave a Reply /h3
fb:comments href= ?php the_permalink(); ? num_posts= 8 width= 610 /fb:comments
/div
?php endif; // end comments_open() ?
!-- Facebook Open Graph Tags --
meta property= fb:app_id content= 177594542288018 /
!-- End Facebook Open Graph Tags --
.authcomment {
background-color: #B3FFCC !important;
}
class="?php echo $oddcomment; ?" id="comment"
class="?php
/* Only use the authcomment class from style.css if the user_id is 1 (admin) */
if (1 == $comment-user_id)
$oddcomment = "authcomment";
echo $oddcomment; " id="comment"
<script src="https://apis.google.com/js/plusone.js">
</script>
<div class="g-comments"
data-href="<?php the_permalink(); ?>"
data-width="800"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>
<div class="social">
<p>Share this post on:</p>
<!--Twitter-->
<a class="twitter" href="http://twitter.com/home?status=Reading: <?php the_permalink(); ?>" title="Share this post on Twitter!" target="_blank">Twitter</a>
<!--Facebook-->
<a class="facebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title(); ?>" title="Share this post on Facebook!" onclick="window.open(this.href); return false;">Facebook</a>
<!--Google Plus-->
<a class="google-plus" target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>">Google+</a>
</div>