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
// ***** Прозрачность объектов IMG ***** // | |
$(document).ready(function(){ | |
$("#transparency img").fadeTo("slow", 0.6); // Эта строчка при загрузке страницы задает всем миниатюрам прозрачность равную 60% | |
$("#transparency img").hover(function(){ | |
$(this).fadeTo("slow", 1.0); // Делаем картинку непрозрачной, при наведении мыши | |
},function(){ | |
$(this).fadeTo("slow", 0.6); // Снова возвращаем прозрачность 60%, при отведении мыши | |
}); | |
}); |
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
remove_action( 'genesis_post_title','genesis_do_post_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 | |
if( wp_is_mobile() ) { | |
// echo the "HAVE YOU TRIED OUR AWESOME MOBILE APP?" banner | |
} else { | |
// don't echo the banner | |
} | |
?> |
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
add_action( 'init', 'blockusers_init' ); | |
function blockusers_init() { | |
if ( is_admin() && ! current_user_can( 'administrator' ) && | |
! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { | |
wp_redirect( home_url() ); | |
exit; | |
} | |
} |
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
//Disable File Edits | |
define('DISALLOW_FILE_EDIT', true); |
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
function failed_login () { | |
return 'the login information you have entered is incorrect.'; | |
} | |
add_filter ( 'login_errors', 'failed_login' ); |
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
// will redirect back to the blog's home page | |
wp_login_form(array('redirect'=> site_url())); |
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
// hook failed login | |
add_action('wp_login_failed', 'my_front_end_login_fail'); | |
function my_front_end_login_fail($username){ | |
// Get the reffering page, where did the post submission come from? | |
$referrer = $_SERVER['HTTP_REFERER']; | |
// if there's a valid referrer, and it's not the default log-in screen | |
if(!empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin')){ | |
// let's append some information (login=failed) to the URL for the theme to use | |
wp_redirect($referrer . '?login=failed'); |
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
{ | |
".ae.org": { | |
"host": "whois.centralnic.com" | |
}, | |
".ar.com": { | |
"host": "whois.centralnic.com" | |
}, | |
".br.com": { | |
"host": "whois.centralnic.com" | |
}, |
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 | |
session_start(); | |
header("Pragma: public"); | |
header("Cache-Control: max-age = 604800"); | |
header("Expires: ".gmdate("D, d M Y H:i:s", time() + 604800)." GMT"); | |
function thumbnail($image, $width, $height) { | |
if($image[0] != "/") { // Decide where to look for the image if a full path is not given | |
if(!isset($_SERVER["HTTP_REFERER"])) { // Try to find image if accessed directly from this script in a browser | |
$image = $_SERVER["DOCUMENT_ROOT"].implode("/", (explode('/', $_SERVER["PHP_SELF"], -1)))."/".$image; |
OlderNewer