facebook kodu HTML5 Kodu
1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
Alıntı
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/tr_TR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
2.Place the code for your plugin wherever you want the plugin to appear on your page.
<div class="fb-comments" data-href="http://www.bankatik.net" data-width="470" data-num-posts="2"></div>
comments.php
Alıntı
<?php
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Bu sayfayı direk yüklemeyin. Teşekkürler!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">Bu yazı parola korumalı. Yorumları görmek için parolayı girin.<p>
<?php
return;
}
}
$oddcomment = 'alt';
?>
<?php if ('open' == $post->comment_status) : ?>
<div class="clr"></div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<div class="msgSuccess">Yorum yapabilmek için <a href="<?php echo get_settings('home'); ?>/giris-yap">giriş</a> yapmalısınız.</div>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?><div class="msgError">Hoşgeldiniz - <?php echo $user_identity; ?></div><div class="clr"></div><?php else : ?>
<div class="msgSuccess">İsminiz</div>
<input type="text" name="author" id="name" value="<?php echo $comment_author; ?>" tabindex="1" class="cls-input" />
<div class="clr"></div>
<div class="msgSuccess">E-Posta Adresiniz</div>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" class="cls-input" />
<div class="clr"></div>
<?php endif; ?>
<div class="msgSuccess">Yorumunuz</div>
<textarea name="comment" id="words" tabindex="4" class="yorum-text" ></textarea>
<div class="clr"></div>
<?php do_action('secure_image', $post->ID);?>
<input name="submit" type="submit" id="submit" tabindex="5" value="Gönder" class="yorumtamam" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<div class="clr"></div><div class="araver"></div><div class="clr"></div>
<?php if ($comments) : ?>
<?php foreach ($comments as $comment) : ?>
<div class="msgWarning"><b><?php comment_author_link() ?></b> <div class="saga"><?php comment_date('d F Y') ?> - <?php comment_time() ?></div></div>
<div class="icerik"><?php comment_text() ?></div>
<div class="araver"></div>
<?php endforeach; /* end for each comment */ ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<div class="msgWarning">Yorum yapma kapalı.</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; // if you delete this the sky will fall on your head ?>
Hocam yardımlarınız için şimdiden çok teşekkür ederim