The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.
You should have a similar script.
<?php | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |
/* | |
All code apart from getPlusones() | |
Copyright 2011 Martin Hawksey | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
custom wp_link_pages() for Foundation 2 & 3; | |
//:::: Step 1 :::::: add the following to functions.php ::::::::::::::::::// | |
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// | |
<?php | |
add_action( 'reverie_page_links', 'reverie_page_links', 10, 1 ); | |
/** | |
* Modification of wp_link_pages() for custom styling for foundation 2 & 3 by Zurb for use within wordpress. |
The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.
You should have a similar script.
<?php | |
//http://www.narga.net/how-to-remove-or-disable-comment-reply-js-and-recentcomments-from-wordpress-header | |
function twentyten_remove_recent_comments_style() { | |
global $wp_widget_factory; | |
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); | |
} | |
add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); | |
?> |
//http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/ | |
<script type="text/javascript"> | |
//the callback -- what do we do with the json response? | |
function get_delicious_count(info) { | |
//get the number of saves | |
var num = info[0].total_posts | |
//if none, do nothing | |
if(!num) return; | |
//if some, I add the number to the end of my link, like at the top of every one of my article posts. | |
return $('delic').set({ |
//http://www.narga.net/display-plan-text-counter-of-feedburner-delicious-and-twitter/ | |
<?php | |
//get cool FeedBurner count | |
$fburl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id"; | |
//Initialize the Curl session | |
$ch = curl_init(); | |
//Set curl to return the data instead of printing it to the browser. | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
//Set the URL | |
curl_setopt($ch, CURLOPT_URL, $whaturl); |
/* http://www.narga.net/making-awesome-forms-inline-labels-with-jquery */ | |
input { | |
border: 1px solid #ccc; | |
color: #000; | |
font: inherit; | |
padding: 4px; | |
width: 230px; | |
} | |
input:focus { border-color: #99B32D;} | |
.focus { color: #8F8F8F; } |
//http://www.narga.net/making-awesome-forms-inline-labels-with-jquery | |
$(document).ready(function() { | |
$.fn.setCursorPosition = function(pos) { | |
if ($(this).get(0).setSelectionRange) { | |
$(this).get(0).setSelectionRange(pos, pos); | |
} else if ($(this).get(0).createTextRange) { | |
var range = $(this).get(0).createTextRange(); | |
range.collapse(true); | |
range.moveEnd('character', pos); | |
range.moveStart('character', pos); |