"._t("_IM now", $p_arr['NickName'])."";
}
}
//--- Ray IM integration ---//
// Template customizations
// profile Nick/Age/Sex etc.
$nick = '' . $p_arr['NickName'] . '';
$age_str = ($p_arr['DateOfBirth'] != "0000-00-00" ? (_t("_y/o", age( $p_arr['DateOfBirth'] )) .' ') : "");
$age_only = ($p_arr['DateOfBirth'] != "0000-00-00" ? ( age( $p_arr['DateOfBirth'] )) : "");
$y_o_sex = $age_str . _t("_".$p_arr['Sex']);
$city = _t("_City").": ".process_line_output($p_arr['City']);
$country = _t("_Country").": "._t($aPreValues['Country'][$p_arr['Country']]['LKey']).' ';
$sFlag = ($p_arr['Country'] != '') ? ' ' : '';
$city_con = process_line_output($p_arr['City']).", "._t($aPreValues['Country'][$p_arr['Country']]['LKey']).$sFlag;
$occupation = process_line_output($p_arr['Occupation']);
$children = ($p_arr['Children'] ? ($p_arr['Children']." "._t("_children")) : "");
$id = _t("_ID").": ".$p_arr['ID'];
// description
$i_am = _t("_I am");
$i_am_desc = process_smiles( strip_tags( process_text_output( $p_arr['DescriptionMe'] ), '' ) ) . "...";
$you_are = _t("_You are");
$you_are_desc = process_smiles(process_text_output($p_arr['DescriptionYou']))."... "._t("_more")."";
/*
echo '
';
print_r( $p_arr );
echo '
';
*/
$sCity = $p_arr['City'];
//echo $sCity . '
';
//--- Ray IM integration start ---//
$ai_im = '';
$al_im = '';
$chechActionRes = checkAction($member['ID'], ACTION_ID_USE_RAY_IM);
if( $bEnableRay && $chechActionRes[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED && $member['ID'] != $p_arr['ID'] && !empty( $member['ID'] ) )
{
$iSndId = (int) $member['ID'];
$sSndPassword = getPassword( $member['ID'] );
$iRspId = (int) $p_arr['ID'];
if( $user_is_online )
{
$file_icon = BX_DIRECTORY_PATH_ROOT ."templates/tmpl_" . $tmpl . "/images/icons/action_im_small.gif";
if( file_exists( $file_icon ) )
$ai_im .= "";
$al_im .= '';
$al_im = '' . $ai_im . $al_im . ucwords( _t( "_IM now", $p_arr['NickName'] ) ) . '';
}
}
//--- Ray IM integration end ---//
/* Standard IM commented out
else if ( $enable_im )
{
if ( $user_is_online )
{
$al_im = "";
$al_im .= _t("_chat now") ."";
}
Standard IM commented out */
/* View Profile commented out
$ai_viewprof = "";
$al_viewprof = "";
$al_viewprof .= _t("_View Profile")."";
View Profile commented out */
//--- Greeting start ---//
$chechActionRes = checkAction($member['ID'], ACTION_ID_SEND_VKISS);
if( ( $chechActionRes[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED ) && ( $member['ID'] != $p_arr['ID'] ) )
{
$ai_kiss = "";
$al_kiss = '" . $ai_kiss . $al_kiss . _t("_Greet")."";
}
else
{
$al_kiss = '';
}
//--- Greeting end ---//
//--- Contact start ---//
$chechActionRes = checkAction($member['ID'], ACTION_ID_SEND_MESSAGE);
if( ( $chechActionRes[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED ) && ( $member['ID'] != $p_arr['ID'] ) )
{
$ai_sendmsg = "";
$al_sendmsg = "" . $ai_sendmsg . $al_sendmsg . _t("_Contact")."";
}
else
{
$al_sendmsg = '';
}
//--- Contact end ---//
if ( $logged['member'] )
{
$ai_hot ="";
$al_hot ="";
$al_hot .= _t("_hot member")."";
$ai_friend ="";
$al_friend ="";
$al_friend .= _t("_friend member")."";
$ai_block ="";
$al_block ="";
$al_block .= _t("_block member")."";
}
//--- Fave Start ---//
if( $logged['member'] && $member['ID'] != $p_arr['ID'] )
{
$ai_fave = "";
$al_fave = " popUpWindowWidth},height={$oTemplConfig -> popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );\">";
$al_fave = '' . $ai_fave . $al_fave . _t("_Fave") . "";
}
else
{
$al_fave = '';
}
//--- Fave End ---//
$more = '';
$more .= '';
$more .= '';
$enable_more_photos = ( 'on' == getParam("more_photos_on_searchrow")) ? 1 : 0;
if( $enable_more_photos )
{
$more_photos = '';
for( $i=1 ; $i<=$pic_num; ++$i )
{
if( $p_arr['Pic_' . $i . '_addon'] > 0 )
{
$photo_counter ++;
}
}
if( ( 0 < $photo_counter ) && ( $logged['admin'] || $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED ) )
{
$more_photos = '';
$more_photos .= $photo_counter . ' ' . _t("_More Photos");
$more_photos .= '';
}
else
{
$more_photos = '';
}
}
// ------------ [end] template variables --------------
if ($aCoupleInfo) {
// profile Nick/Age/Sex etc.
$nick2 = '' . $aCoupleInfo['NickName'] . '';
$age_str2 = ($aCoupleInfo['DateOfBirth'] != "0000-00-00" ? (_t("_y/o", age( $aCoupleInfo['DateOfBirth'] )) .' ') : "");
$age_only2 = ($aCoupleInfo['DateOfBirth'] != "0000-00-00" ? ( age( $aCoupleInfo['DateOfBirth'] )) : "");
$y_o_sex2 = $age_str2 . _t("_".$aCoupleInfo['Sex']);
$city2 = _t("_City").": ".process_line_output($aCoupleInfo['City']);
$country2 = _t("_Country").": "._t($aPreValues['Country'][$aCoupleInfo['Country']]['LKey']).' ';
$city_con2 = process_line_output($aCoupleInfo['City']).", "._t($aPreValues['Country'][$aCoupleInfo['Country']]['LKey']).' ';
$occupation2 = process_line_output($aCoupleInfo['Occupation']);
$children2 = ($aCoupleInfo['Children'] ? ($aCoupleInfo['Children']." "._t("_children")) : "");
$id2 = _t("_ID").": ".$aCoupleInfo['ID'];
// description
$i_am2 = _t("_I am");
$i_am_desc2 = process_smiles( strip_tags( process_text_output( $aCoupleInfo['DescriptionMe'] ), '' ) ) . "...";
$you_are2 = _t("_You are");
$you_are_desc2 = process_smiles(process_text_output($aCoupleInfo['DescriptionYou']))."... "._t("_more")."";
$sCity2 = $aCoupleInfo['City'];
$templ = str_replace ( "__add_style_c1__", 'float:left;width:31%;margin-right:10px;', $templ );
$templ = str_replace ( "__add_style_c2__", 'float:left;width:31%;display:block;', $templ );
$templ = str_replace ( "__nick2__", $nick2, $templ );
$templ = str_replace ( "__age_sex2__", $y_o_sex2, $templ );
$templ = str_replace ( "__city_con2__", $city_con2, $templ );
$templ = str_replace ( "__i_am_desc2__", $i_am_desc2, $templ );
if( $logged['member'] && ( $member['ID'] != $aCoupleInfo['ID'] ) && getParam( 'enable_match' ) ) {
$templ = str_replace ( "__match2__", getProfileMatch( $member['ID'], $aCoupleInfo['ID'] ), $templ );
} else {
$templ = str_replace ( "__match2__", '', $templ );
}
} else {
$templ = str_replace ( "__add_style_c1__", '', $templ );
$templ = str_replace ( "__add_style_c2__", 'display:none;', $templ );
$templ = str_replace ( "__match2__", '', $templ );
}
// replace template variables
$templ = str_replace ( "__row_title__", process_line_output($p_arr[Headline]), $templ );
$templ = str_replace ( "__n__", $iNumber, $templ );
if (isset($p_arr['Couple']) && $p_arr['Couple'] > 0) {
$iMaxThumbWidth = getParam('max_thumb_width');
$iNewWidth = 2 * ( $iMaxThumbWidth + 10 + 2 ) ;
$templ = str_replace ( "__ext_st__", 'style="width:' . $iNewWidth . 'px;"', $templ );
} else {
$iMaxThumbWidth = getParam('max_thumb_width');
$iNewWidth = 1 * ( $iMaxThumbWidth +12 ) ;
$templ = str_replace ( "__ext_st__", 'style="width:' . $iNewWidth . 'px;"', $templ );
}
//$templ = str_replace ( "__ext_st__", '', $templ );
$templ = str_replace ( "__thumbnail__", $thumbnail, $templ );
$templ = str_replace ( "__launch_ray_im__", $launch_ray_im, $templ );
// match progress bar
if( $logged['member'] && ( $member['ID'] != $p_arr['ID'] ) && getParam( 'enable_match' ) )
{
$templ = str_replace ( "__match__", getProfileMatch( $member['ID'], $p_arr['ID'] ), $templ );
}
else
{
$templ = str_replace ( "__match__", '', $templ );
}
$templ = str_replace ( "__nick__", $nick, $templ );
$templ = str_replace ( "__age_sex__", $y_o_sex, $templ );
$templ = str_replace ( "__city__", $city, $templ );
$templ = str_replace ( "__just_city__", $sCity, $templ );
$templ = str_replace ( "__just_age__", $age_only, $templ );
$templ = str_replace ( "__city_con__", $city_con, $templ );
$templ = str_replace ( "__country__", $country, $templ );
$templ = str_replace ( "__occupation__", $occupation, $templ );
$templ = str_replace ( "__children__", $children, $templ );
$templ = str_replace ( "__id__", $id, $templ );
if ( $enable_zodiac ) {
$templ = str_replace ( "__zodiac_sign__", getProfileZodiac($p_arr['DateOfBirth']), $templ );
} else {
$templ = str_replace ( "__zodiac_sign__", "", $templ );
}
$templ = str_replace ( "__i_am__", $i_am, $templ );
$templ = str_replace ( "__i_am_desc__", $i_am_desc, $templ );
$templ = str_replace ( "__you_are__", $you_are, $templ );
$templ = str_replace ( "__you_are_desc__", $you_are_desc, $templ );
$templ = str_replace ( "__ai_im__", $ai_im, $templ );
$templ = str_replace ( "__al_im__", $al_im, $templ );
$templ = str_replace ( "__ai_viewprof__", $ai_viewprof, $templ );
$templ = str_replace ( "__al_viewprof__", $al_viewprof, $templ );
$templ = str_replace ( "__ai_kiss__", $ai_kiss, $templ );
$templ = str_replace ( "__al_kiss__", $al_kiss, $templ );
$templ = str_replace ( "__ai_sendmsg__", $ai_sendmsg, $templ );
$templ = str_replace ( "__al_sendmsg__", $al_sendmsg, $templ );
$templ = str_replace ( "__ai_fave__", $ai_fave, $templ );
$templ = str_replace ( "__al_fave__", $al_fave, $templ );
$templ = str_replace ( "__ai_hot__", $ai_hot, $templ );
$templ = str_replace ( "__al_hot__", $al_hot, $templ );
$templ = str_replace ( "__ai_block__", $ai_block, $templ );
$templ = str_replace ( "__al_block__", $al_block, $templ );
$templ = str_replace ( "__from__", _t("_from"), $templ );
$templ = str_replace ( "__more__", $more, $templ );
$templ = str_replace ( "__more_photos__", $more_photos, $templ );
$templ = str_replace ( "__images__", $site['images'], $templ );
if ( function_exists( 'colors_select' ) )
$templ = str_replace ( "__designBoxColor__", colors_select(), $templ );
return $templ;
}
?>