12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- # phone_selfies_popup
- !! This is used to create a popup that shows the enlarged selfie
- !! $ARGS[1] = Location where the selfie is taken
- !! $ARGS[2] = State of dress in the selfie
- !! ARGS[3] = is the index of the location in $selfieLoc[] and $selfieFilePrefix
- !! ARGS[4] = the selfie number
- if $ARGS[0] = 'set_selfie':
- $result = '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$ARGS[1]>>'', ''<<$ARGS[2]>>'', <<ARGS[3]>>, <<ARGS[4]>>"><img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg" style="horizontal-align:center; max-height:90%; max-width:90%"/></a>'
- end
- if $ARGS[0] = 'show':
- if temp_suppress_other_selfies = 0:
- if usePopUps = 1:
- msg '<img src="images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg">'
- else
- view 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg'
- end
- else
- killvar 'temp_suppres_other_selfies'
- $selfie_last_chosen['location'] = $ARGS[1]
- $selfie_last_chosen['type'] = $ARGS[2]
- killvar 'temp_suppress_other_selfies'
- gt $temp_ssh_ret_loc, $temp_ssh_ret_arg, 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg', $ARGS[1], $ARGS[2], ARGS[3], ARGS[4]
- end
- end
- if $ARGS[0] = 'set_selfie2':
- $result = '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$ARGS[1]>>'', ARGS[2]"><img src="<$ARGS[1]>><<ARGS[2]>>.jpg" height="150" /></a>'
- end
- if $ARGS[0] = 'show2':
- if usePopUps = 1:
- msg '<img src="<$ARGS[1]>><<ARGS[2]>>.jpg">'
- else
- view '<$ARGS[1]>><<ARGS[2]>>.jpg'
- end
- end
- ! $ARGS[1] = Return string
- ! $ARGS[2] = telefon['SMSid']
- !! $ARGS[3] = Location where the selfie is taken
- !! $ARGS[4] = State of dress in the selfie
- !! ARGS[5] = is the index of the location in $selfieLoc[] and $selfieFilePrefix
- !! ARGS[6] = the selfie number
- if $ARGS[0] = 'SMS_set_selfie':
- $temp_imloc = func('phone_selfies_popup', 'SMS_get_imloc', $ARGS[3], $ARGS[4], ARGS[5], ARGS[6])
- $result = '<a href="exec: gs <<$ARGS[1]>>, <<ARGS[2]>>, ''<<$temp_imloc>>'', ''<<$ARGS[3]>>'', ''<<$ARGS[4]>>'', <<ARGS[5]>>, <<ARGS[6]>>"><img src="<<$temp_imloc>>" style="horizontal-align:center; max-height:90%; max-width:90%"></a>'
- killvar '$temp_imloc'
- end
- if $ARGS[0] = 'SMS_get_imloc':
- $result = 'images/pc/activities/phone/selfies/<<$ARGS[1]>>/<<$ARGS[2]>>/<<$selfieFilePrefix[ARGS[3]]>><<ARGS[4]>>.jpg'
- end
- --- phone_selfies_popup ---------------------------------
|