Skip to content

Instantly share code, notes, and snippets.

Avatar

Rodolfo Buaiz brasofilo

View GitHub Profile
View jGfeed.js
/*
* jGFeed 1.0 - Google Feed API abstraction plugin for jQuery
*
* Copyright (c) 2009 jQuery HowTo
*
* Licensed under the GPL license:
* http://www.gnu.org/licenses/gpl.html
*
* URL:
* http://jquery-howto.blogspot.com
@brasofilo
brasofilo / convert-xml.php
Last active Sep 2, 2018
Convert Codex XML to Apple Dictionary XML
View convert-xml.php
<?php
header('Content-type: text/xml');
header('Pragma: public');
header('Cache-control: private');
header('Expires: -1');
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n";
echo '<d:dictionary xmlns="http://www.w3.org/1999/xhtml" xmlns:d="http://www.apple.com/DTDs/DictionaryService-1.0.rng">' . "\r\n";
@brasofilo
brasofilo / APPLE_SE_99753.xml
Created Aug 25, 2014
Codex function reference to Apple Dictionary
View APPLE_SE_99753.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<d:dictionary xmlns="http://www.w3.org/1999/xhtml" xmlns:d="http://www.apple.com/DTDs/DictionaryService-1.0.rng">
<d:entry id="get_usernumposts" d:title="get usernumposts">
<d:index d:value="get usernumposts"/>
<h1>get usernumposts</h1>
<p>{{Deprecated}}
== Description ==
View repeatable-fields.php
<?php
add_action('admin_init', 'add_meta_boxes', 1);
function add_meta_boxes() {
add_meta_box( 'repeatable-fields', 'Audio Playlist', 'repeatable_meta_box_display', 'post', 'normal', 'high');
}
function repeatable_meta_box_display() {
global $post;
View _Stay_standalone.md

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@brasofilo
brasofilo / jetpack-form.md
Created Nov 1, 2013
Cambiar Hoja de Estilo de Jetpack Form
View jetpack-form.md

##Cómo Cambiar la Hoja de Estilo de Jetpack Form ###/plugins/mi-estilo-jetpack/mi-estilo-jetpack.php

<?php
/**
 * Plugin Name: Cambiar Hoja de Estilo de Jetpack Form
 * Plugin URI:  https://gist.github.com/brasofilo/7262833
 * Version:     2013.11.01
 * Author:      Rodolfo Buaiz
@brasofilo
brasofilo / comment-alert.md
Created Oct 26, 2013
Tutorial WordPress Heartbeat API
View comment-alert.md

#[Tutorial WordPress Heartbeat API][1] - Take Two

Una versión mejorada del excelente tutorial por Ubikom.

<?php
/*
Plugin Name: Live Comment Alert System
Plugin URI: http://www.ubikom.es/blog
Description: Demostrativo de la nueva HeartBeat API
@brasofilo
brasofilo / admin-block.md
Last active Dec 26, 2015
admin-block.md
View admin-block.md

#Bloquear Acceso Administrativo para Ciertos Roles

Basado en esta [WordPress Answer][1]
<?php
/**
 * Plugin Name: Bloquear Acceso Administrativo para Ciertos Roles
 * Version: 0.2
 * Author: Rodolfo Buaiz 
 * Plugin URI: http://wordpress.stackexchange.com/q/57206/12615
@brasofilo
brasofilo / dashboard-widget.md
Last active Dec 26, 2015
dashboard-widget.md
View dashboard-widget.md

#Widget de Escritorio con Callback Handle ###--WordPress Plugin--

Demonstración de como añadir un widget de escritorio configurable. Elije 3 páginas y serán mostradas en pestañas. Basado en el ejemplo del Codex y en el artículo Tabbed Meta Box In WordPress.

@brasofilo
brasofilo / publish-to-network.php
Last active Dec 25, 2015
Meta box that allows publishing a post to another site of the network
View publish-to-network.php
<?php
/**
* Plugin Name: Publish to Network
* Plugin URI: https://gist.github.com/brasofilo/7036415
* Description: Meta box that allows publishing a post to another site of the network
* Version: 1.0
* Author: Rodolfo Buaiz
* Author URI: http://wordpress.stackexchange.com/users/12615/brasofilo
* Text Domain: sepw
* Domain Path: /languages
You can’t perform that action at this time.