<script src="graphics/js/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="graphics/js/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// See which font size the user wants
$(".text a").click(function() {
switch ($(this).attr("class")) {
case 'small' : setFontSize(.8); break;
case 'large' : setFontSize(1.6); break;
case 'default' : setFontSize(1.2); break;
}
return false;
});
// Set the font size and set a cookie
function setFontSize(size) {
$("#wrap, input, textarea").animate({fontSize: size+"em"}, 500).fadeIn("slow");
createCookie(size);
}
// Create and read coookies
// Code functions by: Peter-Paul Koch
// http://www.quirksmode.org/js/cookies.html
function createCookie(value) {
var date = new Date();
date.setTime(date.getTime()+(30*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
document.cookie = "font_size="+value+expires+"; path=/";
}
var font_size = $.cookie('font_size');
if (font_size == '0.8') {
$('#wrap').css("font-size",".8em");
}
if (font_size == '1.6') {
$('#wrap').css("font-size","1.6em");
}
if (font_size == '1.2') {
$('#wrap').css("font-size","1.2em");
}
});
</script>
# archive
tar -zcvf backup.gz public_html
# copy archive to current directory
wget http://urlpathto/backup.gz
# compy archive to mac
curl -c -o "http://urlpathto/backup.gz"
# restore to current directory
tar -zxvf backup.gz
<?php
/*
Plugin Name: rm_wpautop
Plugin URI: http://rolandog.com/archives/2008/11/12/wp-plugin-rm-wpautop/
Description: This plugin allows you to remove the wpautop filter by placing a 'wpautop' custom field with a key value of 'false' in your pages or posts, therefore allowing WordPress not to automatically add paragraph or break elements.
Author: Rolando Garza
Author URI: http://rolandog.com/
Version: 0.3
*/
function rm_wpautop($content) {
global $post;
// Get the keys and values of the custom fields:
$rmwpautop = get_post_meta($post->ID, 'wpautop', true);
// Remove the filter
remove_filter('the_content', 'wpautop');
if ('false' === $rmwpautop) {
} else {
// Adds the filter again, if not set to false.
add_filter('the_content', 'wpautop');
}
return $content;
}
// Hook into the Plugin API
add_filter('the_content', 'rm_wpautop', 9);
?>