(function( $ ){
    $.fn.renderUI = function(tpl) {
		
		// BUTTON ///////////////////////////////////////
        $(this).find('button').button();

        $(this).find('button').each(function(){

            if( $(this+"[icons]") ) {
                var primary_icon = $(this).attr('icons');
                $(this).button({
                    icons: {
                        primary: primary_icon
                    }
                });
            }else{
                $(this).button();
            }
        });
		
		// NEXT ////////////////////////////////////////
    };
})( jQuery );
