{{ alphavima.callPhpCoreFunction(‘checkLogin’,[]) }}
{% set adxIdentityUsername = alphavima.callPhpCoreFunction(‘getUserInfo’,[‘adx_identity_username’]) %}
{% set realDataClient = alphavima.callPhpCoreFunction(‘quickFetch’,[‘contacts’,”,”adx_identity_username=#{adxIdentityUsername}”]) %}
{% set realDataClient = alphavima.callPhpCoreFunction(‘json_encode’,[realDataClient]) %}
{% set realDataClient = alphavima.callPhpCoreFunction(‘json_decode’,[realDataClient,true]) %}
{# {% set UserId = realDataClient[‘value’][0][‘contactid’] %} #}
{% set UserId = alphavima.callPhpCoreFunction(‘getUserInfo’,[‘contactid’]) %}
{% set volId = alphavima.callPhpCoreFunction(‘get_param’,[‘id’]) %}
{% set paramArray = {
‘key’: ‘intvmvolunteeropportunitydetail’,
‘filter’: “ ”
} %}
{% set realData = alphavima.callPhpCoreFunction(‘getAzureFuncData’,[paramArray]) %}
{% set currentDate = ‘now’|date(‘U’) %}
{% set paramArray = {
‘key’: ‘intvmmyopportunity’,
‘filter’: “ “,
‘datafilter’ : ‘0’
} %}
{% set myOpportunity = alphavima.callPhpCoreFunction(‘getAzureFuncData’,[paramArray]) %}
{% set apply = false %}
{% for opportunity in myOpportunity %}
{% if( opportunity[‘opportunity.av_name’][‘value’] == realData[‘av_name’]) %}
{% set apply = true %}
{% endif %}
{% endfor %}
{#
{{ alphavima.callPhpCoreFunction('print_r',[realData]) }}
#}
{% set storedDate = realData[‘av_opportunityend’] |date(“Y/m/d”) %}
{% set today = now|date(“Y-m-d”) %}
{% if storedDate > today %}
{% if not apply %}
APPLY NOW
{% endif %}
{% elseif storedDate < today %}
Closed
{% else %}
APPLY NOW
{% endif %}
About the Position
- Position :
{{ realData[‘av_name’] }}
- Organization :
{{ realData[‘av_accountname’][‘name’] }}
{% if realData[‘av_locationtype’][‘value’] == 772350000 %}
- Position Address :
{{ realData[‘av_locationname’] }}
{% elseif realData[‘av_locationtype’][‘value’] == 772350001 %}
- Position URL :
{{ realData[‘av_url’] }}
{% else %}
- Position Address :
{{ realData[‘av_locationname’] }}
- Position URL :
{{ realData[‘av_url’] }}
{% endif %}
Goal
{{ realData[‘av_opportunitygoal’]| raw }}
Description
{{ realData[‘av_opportunitydescription’] | raw }}
Time Commitment
{{ realData[‘av_opportunitytimecommitment’] | raw }}
Opportunity Requirement
{{ realData[‘av_opportunityrequirement’] | raw }}
Qualifications
{{ realData[‘av_opportunitydescription’] | raw }}Benefits
{{ realData[‘av_opportunitybenefit’] | raw }}
Training
{{ realData[‘av_opportunitytraining’] | raw }}
More Details
- Ideal For : Individuals
- Apply Before : {{ realData[‘av_opportunityend’] |date(“m/d/Y h:i A”) }}