Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
<?xml version="1.0" encoding="UTF-8"?> | |
<yahoo-weather-codes> | |
<code number="0" description="tornado"/> | |
<code number="1" description="tropical storm"/> | |
<code number="2" description="hurricane"/> | |
<code number="3" description="severe thunderstorms"/> | |
<code number="4" description="thunderstorms"/> | |
<code number="5" description="mixed rain and snow"/> | |
<code number="6" description="mixed rain and sleet"/> | |
<code number="7" description="mixed snow and sleet"/> |
;(function ( $, window, document, undefined ) { | |
// Create the defaults once | |
var pluginName = 'defaultPluginName', | |
defaults = { | |
propertyName: "value" | |
}; | |
// The actual plugin constructor | |
function Plugin( element, options ) { |
// Metodo para validar se a pessoa tem mais de 18 anos, ela serve para ilustrar como usar o addMethod para criar qualquer regra de validação | |
jQuery.validator.addMethod("minAge", function(value, element, params) { | |
return this.optional(element) || value > params; | |
}, "Você precisa ter mais de 18 anos."); |
$('.triple-slides').destaquesQueue({ | |
delay: 250, | |
// same options that destaque plugin but for multiple elements queue, the pagination handler and mouse interactions will control all slides as single to have the desired effect | |
controlsSelector: "#slide-triple-pagination a", | |
stopOnMouseOver: true, | |
slideMovement: 100, | |
slideSpeed: 1000, | |
autoSlideDelay: 3000, | |
elementSpeed: 1100, | |
easingType: "easeInOutExpo", |
$('element').sliding({ | |
items: 4, | |
url: url, | |
urlFormat: '{url}/page/{page}/', | |
next: nextLink, | |
prev: prevLink, | |
disabledClass: 'disabled', | |
speed: 500, | |
onAppend: function(data) { | |
// data is { total_pages: 2, html: 'content' } |
<form class="well custom-init"> | |
<label for="option">Items</label> | |
<input type="text" placeholder="items to display" class="input-medium option-item" name="option-item"> | |
<label for="option">Current page</label> | |
<input type="text" placeholder="default is 1" class="input-medium option-currentPage" name="option-currentPage"> | |
<label for="option-autoHeight">autoHeight</label> | |
<select class="option-autoHeight" name="option-autoHeight"> |
$(function(){ | |
$('.live-pagination').hide(); | |
$('.custom-init').submit(function(e){ | |
var items = $('.option-item').val(); | |
var autoHeight = $('.option-autoHeight').val(); | |
var currentPage = $('.option-currentPage').val(); | |
var element = $('.slide-live-example').sliding({ |
<?php get_header(); ?> | |
<!-- main content --> | |
<div class="main-content grid_16"> | |
<div class="grid_12"> | |
<h2>Eventos</h2> | |
<div id="wp-agenda-calendar"></div> | |
</div> | |
</div> | |
<?php get_footer(); ?> |