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
<? | |
// clean wordpress header: remove prev/nex tags | |
remove_action('wp_head', 'index_rel_link'); | |
remove_action('wp_head', 'parent_post_rel_link', 10, 0); | |
remove_action('wp_head', 'start_post_rel_link', 10, 0); | |
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); | |
// remove "junk" from header | |
add_filter('thematic_show_commentsrss', 'disable_stuff' ); | |
add_filter('post_comments_feed_link', 'disable_stuff' ); |
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
<? | |
@ini_set( 'upload_max_size' , '32M' ); | |
@ini_set( 'post_max_size', '32M'); | |
@ini_set( 'max_execution_time', '300' ); | |
define("WP_MEMORY_LIMIT",'32M'); |
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
php_value suhosin.post.max_vars 32000 | |
php_value suhosin.request.max_vars 32000 |
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
; Increase maximum post size | |
post_max_size = 32M | |
upload_max_filesize = 32M |
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('upload_size_limit', create_function("","return ".wp_convert_hr_to_bytes('32M').";") , 9999 ); |
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
// run resizer onload | |
resize_banner(); | |
function resize_banner() { | |
ele = '#banner'; | |
start_w = 900; //original width | |
start_h = 300; //original height | |
if (jQuery(ele).length) { | |
widthofscreen = jQuery(window).width(); |
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
<? | |
function handsomefox_get_thumbnail($image_url, $size = 'thumbnail') { | |
$size = (in_array($size,array('thumbnail','medium','large','full'))) | |
? strtolower($size) : 'thumbnail'; | |
if ($size == 'full') | |
return $image_url; | |
//break down the file url string | |
$ext = pathinfo($image_url, PATHINFO_EXTENSION); | |
$file = str_replace('.'.$ext,'',$image_url); |
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
<? | |
function handsomefox_get_thumbnail($image_url, $size = 'thumbnail') { | |
$size = (in_array($size,array('thumbnail','medium','large','full'))) | |
? strtolower($size) : 'thumbnail'; | |
if ($size == 'full') | |
return $image_url; | |
//break down the file url string | |
$ext = pathinfo($image_url, PATHINFO_EXTENSION); | |
$file = str_replace('.'.$ext,'',$image_url); |
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
<? | |
$thumb = handsomefox_get_thumbnail($attachment->guid); |
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
<? | |
require('/blog/wp-load.php'); | |
gravity_form(1, false, false); | |
?> |