Monthly Archives: November 2014

Customize Default Gallery

Purpose:

Default gallery thumbs show only description, not caption. This revise is to hide description and show caption.

Source:

  1. /wp-includes/media.php
  2. /wp-includes/post-template.php

function gallery_shortcode( $attr ){} in media.php:

 

 

Responsive Background Image

 

CSS Clip: Hide / Show Child Item Effect (Courtain)

Check out “Clip” part of following page:

https://greensock.com/css3/

Example:

http://codepen.io/GreenSock/pen/17b1ea88b3066d2ee4de90cc65fc862e

Sample Code:

(http://www.ecotreasure.com.tw/)

Sorting UI

HTML:

CSS:

Javascript:

 

jsTree Utilities

 

PHPExcel

常用方法:

Create Custom ZIP File