}
     $list[__('Age')] = $ageValue;
 }
 foreach ($member->getProfiles(true) as $profile) {
     $caption = $profile->getProfile()->getCaption();
     if ($profile->getProfile()->isPreset()) {
         $presetConfig = $profile->getProfile()->getPresetConfig();
         $caption = __($presetConfig['Caption']);
     }
     $profileValue = (string) $profile;
     if ('' === $profileValue) {
         continue;
     }
     if ('textarea' == $profile->getFormType()) {
         if ('op_preset_self_introduction' === $profile->getName() && (include_once 'markdown.php')) {
             $profileValue = MarkDown($profileValue);
         } else {
             $profileValue = op_auto_link_text(nl2br($profileValue));
         }
     }
     if ($profile->getProfile()->isPreset()) {
         if ('country_select' === $profile->getFormType()) {
             $profileValue = $culture->getCountry($profileValue);
         } elseif ('op_preset_birthday' === $profile->getName()) {
             $profileValue = op_format_date($profileValue, 'XShortDateJa');
         }
         $profileValue = __($profileValue);
     }
     if ($member->getId() == $sf_user->getMemberId()) {
         if ($profile->getPublicFlag() == ProfileTable::PUBLIC_FLAG_FRIEND) {
             $profileValue .= ' (' . __('Only Open to %my_friend%', array('%my_friend%' => $op_term['my_friend']->titleize()->pluralize())) . ')';
 function fs_MarkdownAndSmartyPants($content)
 {
     $content = MarkDown($content);
     $content = SmartyPants($content);
     return $content;
 }
Ejemplo n.º 3
0
function autoop($text)
{
    require_once 'markdown.php';
    require_once 'smartypants.php';
    $text = MarkDown($text);
    $text = SmartyPants($text);
    return $text;
}