Posted on Leave a comment

YUI3 Carousel into WordPress Theme is not very difficult in fact

In developing a WordPress Child Theme of the Hybrid Theme Framework by Justin Tudlock, I found out today that in fact it is not that difficult to include YUI3 Carousel into WordPress.

I just used the following code that was given at

1. First I copied this YUI3 Gallery Javascript code. Well this is actually an AlloyYUI script that you can see directly at here:

//Last Gallery Build of this module
gallery: 'gallery-2010.08.18-17-12',
modules: {
'gallery-aui-skin-base': {
fullpath: '',
type: 'css'
'gallery-aui-skin-classic': {
fullpath: '',
type: 'css',
requires: ['gallery-aui-skin-base']
}).use('gallery-aui-carousel', function(Y) {
var component = new Y.Carousel(
intervalTime: 5,
contentBox: '#demonewscontainer',
height: 277


2. Second I then put this .php code into the theme:

hybrid_get_setting( 'feature_category' ), 'showposts' => hybrid_get_setting( 'feature_num_posts' ), 'ignore_sticky_posts' => true );
$feature_query = array( 'post__in' => get_option( 'sticky_posts' ), 'showposts' => hybrid_get_setting( 'feature_num_posts' ) );

etc and so on from “hybrid-news” theme, and finally I can have a YUI3 Carousel displayed WordPress featured posts at my home.php.

There are so many tricks and codes out there, but I am just giving an example that is already working for my WordPress theme.

Please note that did not copy the .php code in full because I do not want to break copyright law, as I do not know the rules yet.

Again, please remember that I am talking about a child theme of Hybrid theme by Justin Tadlock.

I must acknowledge that I am totally new to YUI and WordPress. Totally new means my parents are from the stone-age, still do not read or write, I am the first generation to learn anything an everything, from reading to writing, from modern languages to computers, from php to javascripts. I am leaping from the old stone-aged to postmodern era of communications technology. This YUI and WordPreess project is my own pleasure to dig into it and see what I can get out of it.

Anybody who wants to help me, please email me at:

Thank you.

Posted on Leave a comment

10 Things I Learned While Interning at YUI

For eight months, I had the opportunity to intern with the YUI Team at Yahoo, while I was completing my engineering degree. Today, I’d like to share the top ten things that I learned from my experience with YUI.

A Bit of Background

The YUI Team is primarily responsible for the development and maintenance of the YUI Library. The library is a collection of user-interface components, class management tools, and utilities written in JavaScript and CSS that make it easier for developers to create web applications. Unlike other libraries, YUI is not just about DOM manipulation; it has a rich set of class management tools and a robust event system that makes it easier to develop in JavaScript.

Apart from that, the YUI Team is also responsible for YUI Theater, a very popular resource for web developers, along with a myriad of smaller tools such as YUI Builder, YUI Compressor, YUI Test and more.

Continue reading this Article at here

My Comment

I am trying to dig into various possibilities of incorporating some or major elements of YUI into my WordPress themes, in particular by utilizing what I call the “rock-solid” and “most comprehensive” as well as “robust” Hybrid WordPress Theme Framework by Justin Tudlock.

Well, I followed Justin not just now, but since he first released his theme called “Options Theme” which far before all other plugins and hooks were developed.

This particular entry/ article is important for me to follow it up in order to make use the Hybrid Theme and then YUI-fy the theme framework. The outcome of YUI-fying the Hybrid Theme is what I call “My Papua Theme Framework” or “WP WP Framework”. By the way, the Double “WP”s stand for “West Papua WordPress” or “WordPress West Papua”.