This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="gallery1" class="gallery"> | |
<a href="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-1.jpg" title="Doug, Meesa and Louis resting"> | |
<img class="picture" src="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-1_tn.jpg" /> | |
</a> | |
<a href="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-2.jpg" title="Grand finale teams"> | |
<img class="picture" src="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-2_tn.jpg" /> | |
</a> | |
<a href="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-3.jpg" title="Jen looking the landscape"> | |
<img class="picture" src="http://miles.local/alloy/demos/image-viewer/assets/lfr-soccer-3_tn.jpg" /> | |
</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Long forms: | |
Liferay.Service( | |
{ | |
'user/get-user-by-id': { | |
id: 3 | |
} | |
}, | |
function(obj) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Liferay.Service('user/get-user-by-id', fn); | |
Liferay.Service('user/get-user-by-id', {}, fn); | |
Liferay.Service({ | |
'user/get-user-by-id': {} | |
}, fn); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Verify service API | |
AUI().use( | |
'async-queue', | |
function(A) { | |
var q = new A.AsyncQueue(); | |
window.q = q; | |
q.after( | |
'complete', | |
function(event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="../build/yui/yui.js" type="text/javascript"></script> | |
<script src="../build/aui-base/aui-base.js" type="text/javascript"></script> | |
<link rel="stylesheet" href="../build/aui-skin-classic/css/aui-skin-classic-all-min.css" type="text/css" media="screen" /> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI.add( | |
'liferay-util-window', | |
function(A) { | |
var Util = Liferay.Util; | |
var Window = Util.Window; | |
Util.incrementWindowXY = function(decrement) { | |
var incrementor = Window.XY_INCREMENTOR; | |
var windowXY = Window.XY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for d in `find . -type d -name "gallery-aui-*"`; do auiPath="${d/gallery-/}"; tickets=`git --git-dir="$NC_ALLOY_PATH/.git" log --oneline --since="January 17, 2011" -- "src/$auiPath" | grep -oE "AUI-[[:digit:]]+" | sort | uniq | tr '\n' ',' | sed 's/,$//; s/,/, /g'`; msg="Adding $d"; [[ -n $tickets ]] && msg="$tickets"; echo && echo $auiPath && echo "----------" && echo $msg && git add "$d" && git commit -m "$msg"; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "compass"; | |
/* Wrapper */ | |
#wrapper { | |
font-size: 16px; | |
margin: 0 auto; | |
padding: 35px 0 0; | |
position: relative; | |
width: 700px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select onchange="location.href=this.value;"><optgroup label=" Test Test "><option value="javascript:;"></option><option value="http://localhost:8080/group/control_panel/manage?p_p_id=2&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10177&refererPlid=10180"> My Account </option><option value="http://localhost:8080/group/control_panel/manage?p_p_id=140&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10177&refererPlid=10180"> My Pages </option><optgroup label=" liferay.com Global Test Test's Personal Site liferay.com "><option value="javascript:;">liferay.com</option><option value="http://localhost:8080/group/control_panel/manage?p_p_id=2&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&refererPlid=10180&doAsGroupId=10189"> Global </option><option value="http://localhost:8080/group/control_panel/manage?p_p_id=2&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&refererPlid=10180&doAsGroupId=10195"> Test Test's Personal Site </option><option value="http://localhost:8080/group/control |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkFiles($filearr, $uploaddir, $requireimage=false, $filter=array()) | |
{ | |
$maxsize = ini_get("upload_max_filesize"); | |
$final = array('errors' => array(), | |
'files' => array(), | |
'result' => array() | |
); | |