Skip to content

Instantly share code, notes, and snippets.

function fontSize() {
var windowWidth = jQuery(window).width();
var fontSize = (windowWidth / 100) + 1;
jQuery('body').css({'fontSize' : fontSize + 'px'});
}
jQuery(window).resize(function(){ fontSize(); })
// If donation levels
if ( is_array( $donation_levels ) ) {
echo '<div class="donation_levels">';
// Loop through each donation level and output a radio button
$i = 0;
foreach ( $donation_levels as $donation_level ) {
?>
<div class="convio_api-donationLevel">
<div class="convion_api-defaults">
<span><?php echo $donation_level->name; ?></span>
wp_update_post(array ( 'ID' => get_the_id(), 'post_title' => get_the_title() . ' Phil is Awesome ' ));
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
</head>
<body>
<header>
<h1>Hello World!</h1>
<nav>
<ul>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
</head>
<body>
<header>
<h1>Hello World!</h1>
<nav>
<ul>
Array
(
[0] => Array
(
['donationLevels'] => Array
(
[0] => Array
(
['name'] => Education
['image'] =>
a:1:{i:0;a:2:{s:16:"'donationLevels'";a:7:{i:0;a:6:{s:6:"'name'";s:9:"Education";s:7:"'image'";s:0:"";s:13:"'description'";s:0:"";s:7:"'order'";s:1:"0";s:8:"'amount'";a:2:{s:11:"'formatted'";s:6:"$13.00";s:9:"'decimal'";s:5:"13.00";}s:15:"'userSpecified'";s:5:"false";}i:1;a:6:{s:6:"'name'";s:10:"Leadership";s:7:"'image'";s:0:"";s:13:"'description'";s:0:"";s:7:"'order'";s:1:"1";s:8:"'amount'";a:2:{s:11:"'formatted'";s:5:"$9.00";s:9:"'decimal'";s:4:"9.00";}s:15:"'userSpecified'";s:5:"false";}i:2;a:6:{s:6:"'name'";s:6:"Safety";s:7:"'image'";s:0:"";s:13:"'description'";s:0:"";s:7:"'order'";s:1:"2";s:8:"'amount'";a:2:{s:11:"'formatted'";s:6:"$38.00";s:9:"'decimal'";s:5:"38.00";}s:15:"'userSpecified'";s:5:"false";}i:3;a:6:{s:6:"'name'";s:6:"Health";s:7:"'image'";s:0:"";s:13:"'description'";s:0:"";s:7:"'order'";s:1:"3";s:8:"'amount'";a:2:{s:11:"'formatted'";s:6:"$15.00";s:9:"'decimal'";s:5:"15.00";}s:15:"'userSpecified'";s:5:"false";}i:4;a:6:{s:6:"'name'";s:7:"Counted";s:7:"'image'";s:0:"";s:13:"'description'";s:0:"
Array
(
[donationLevels] => Array
(
[0] => Array
(
[name] => Education
[image] =>
[description] =>
[order] => 0
jQuery(document).ready(function(){
jQuery('.spark_sortable').each(function(){
jQuery(this).sortable({
update: function( event, ui ){
ui.item.parents('.spark_sortable').find('> div').each(function(){
jQuery(this).find('.update_order').val(jQuery(this).index());
})
var ui_item = ui.item;
ui.item.addClass('moved');
<?php
/*
Plugin Name: Luminate API for Convio by SPARK
Plugin URL: http://sparkexperience.com
Description: Luminate Extend API for Convio by SPARK
Version: 0.1
Author: Spark Experience
Author URI: http://sparkexperience.com
*/