Skip to content

Instantly share code, notes, and snippets.

View uabaluua's full-sized avatar

Yehorov Dmytro uabaluua

View GitHub Profile
<?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
<?php die('You can not access this page directly!'); ?>
<?php endif; ?>
<?php if(!empty($post->post_password)) : ?>
<?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p>This post is password protected. Enter the password to view comments.</p>
<?php endif; ?>
<?php endif; ?>
<a href="#" id="uptocall-mini"><div class="uptocall-mini-phone"></div></a>
#uptocall-mini
position: fixed
bottom: 120px
right: 100px
cursor: pointer
z-index: 999
#uptocall-mini .uptocall-mini-phone
-moz-border-radius: 50% !important
--no-cache --update $FileName$:$ProjectFileDir$/css/$FileDirPathFromParent(sass)$/$FileNameWithoutExtension$.css
function heightDetect() {
$(".main_head").css("height", $(window).height());
}
heightDetect();
$(window).resize(function(){
heightDetect();
});