rewrite.script is the .htaccess alternative for Zeus Servers
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
/** | |
* Add support for JetPack infinite scroll | |
**/ | |
add_theme_support( 'infinite-scroll', array( | |
'container' => 'content', | |
'footer' => 'page', | |
) | |
); |
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
/** | |
* The Infinite Blog Footer | |
* | |
* @uses self::get_settings, self::set_last_post_time, self::archive_supports_infinity, __, wp_get_theme, get_current_theme, apply_filters, home_url, esc_attr, get_bloginfo, bloginfo | |
* @return string or null | |
*/ | |
function footer() { | |
// Bail if theme requested footer not show | |
if ( false == self::get_settings()->footer ) | |
return; |
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
/** | |
* Add support for JetPack infinite scroll | |
**/ | |
function lc_infinite_scroll_init() { | |
add_theme_support( 'infinite-scroll', array( | |
'container' => 'content', | |
'footer' => 'footer', | |
'render' => 'genesis_do_loop' | |
) ); | |
} |
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
RewriteEngine On | |
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/hotlinking-thief.jpg [L] |
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
<Files ~ ".*..*"> | |
Order Allow,Deny | |
Deny from all | |
</Files> | |
<FilesMatch ".(jpg|jpeg|jpe|gif|png|tif|tiff)$"> | |
Order Deny,Allow | |
Allow from all | |
</FilesMatch> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>My New App</title> | |
<link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" /> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<div id="main"> |
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
/** Stop comments being used on Media Files **/ | |
add_filter( 'comments_open', 'stopMediaComments', 10, 2 ); | |
function stopMediaComments( $open, $post_id ) { | |
$post = get_post( $post_id ); | |
if ( 'attachment' == $post->post_type ) | |
$open = false; | |
return $open; | |
} | |
/** This is used to get around non-native WordPress plugins **/ |
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
/* Enable alternative WP Cron */ | |
define('ALTERNATE_WP_CRON', true); |
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
add_action('admin_init', 'lc_disable_theme'); | |
function lc_disable_theme() { | |
global $menuitem, $userdata; | |
get_currentuserinfo(); | |
if ($userdata->ID != 1) { | |
unset($menuitem['themes.php'][5]); | |
unset($menuitem['themes.php'][15]); | |
} | |
} |