コード例 #1
0
ファイル: photo.php プロジェクト: ConnorChristie/GrabViews
 /**
  * Returns the editor for viewing ...
  * @param unknown_type $member
  */
 public function getEditorHtml(array $member)
 {
     /* Fetch member data */
     $member = IPSMember::buildDisplayData(IPSMember::load($member['member_id'], 'all'));
     $p_w = "";
     $p_h = "";
     $cur_photo = "";
     $rand = urlencode(microtime());
     $data = array('currentPhoto' => array('tag' => ''), 'custom' => array('tag' => ''), 'gravatar' => array('tag' => ''), 'twitter' => array('tag' => ''));
     /* Photo type */
     $data['type'] = $member['pp_photo_type'] = $this->getPhotoType($member);
     /* Got gravatar? */
     $member['pp_gravatar'] = $member['pp_gravatar'] ? $member['pp_gravatar'] : $member['email'];
     /* Quick permission check */
     if (!IPSMember::canUploadPhoto($member, TRUE)) {
         return false;
     }
     /* Set the current photo */
     $data['currentPhoto']['tag'] = IPSMember::buildProfilePhoto($member, 'full', IPS_MEMBER_PHOTO_NO_CACHE);
     /* Set up custom */
     $data['custom']['tag'] = $member['pp_photo_type'] != 'custom' ? IPSMember::buildNoPhoto($member, 'thumb', false, true) : "<img src='" . $member['pp_thumb_photo'] . '?__rand=' . $rand . "' width='" . $member['pp_thumb_width'] . "' height='" . $member['pp_thumb_height'] . "' />";
     /* Set up Gravatar */
     $data['gravatar']['tag'] = "<img src='http://www.gravatar.com/avatar/" . md5($member['pp_gravatar']) . "?s=100' alt='' />";
     /* Twitter linked? */
     if (IPSLib::twitter_enabled() && $member['twitter_token'] && $member['twitter_secret']) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/twitter/connect.php', 'twitter_connect');
         $twitter = new $classToLoad($this->registry, $member['twitter_token'], $member['twitter_secret']);
         $userData = $twitter->fetchUserData();
         if ($userData['profile_image_url']) {
             $data['twitter']['tag'] = "<img src='" . str_replace('_normal.', '.', $userData['profile_image_url']) . "' />";
         }
     }
     /* Facebook linked? */
     if (IPSLib::fbc_enabled() && $member['fb_uid']) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/facebook/connect.php', 'facebook_connect');
         $facebook = new $classToLoad($this->registry);
         /* Now get the linked user */
         $linkedMemberData = IPSMember::load(intval($member['fb_uid']), 'all', 'fb_uid');
         $userData = $facebook->fetchUserData();
         if ($userData['pic_big']) {
             $data['facebook']['tag'] = "<img src='" . $userData['pic_big'] . "' />";
         } else {
             if ($userData['pic']) {
                 $data['facebook']['tag'] = "<img src='" . $userData['pic'] . "' />";
             }
         }
     }
     $this->uploadFormMax = 5000 * 1024;
     return $this->registry->getClass('output')->getTemplate('profile')->photoEditor($data, $member);
 }
コード例 #2
0
 function membersProfileForm($custom_fields = '', $group_titles = '', $day = '', $mon = '', $year = '', $amEditor = '', $times = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_ucp', $this->_funcHooks['membersProfileForm'])) {
         $count_68c46c84a95b24bccd4d06b67d5b87ec = is_array($this->functionData['membersProfileForm']) ? count($this->functionData['membersProfileForm']) : 0;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['custom_fields'] = $custom_fields;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['group_titles'] = $group_titles;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['day'] = $day;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['mon'] = $mon;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['year'] = $year;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['amEditor'] = $amEditor;
         $this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['times'] = $times;
     }
     $IPBHTML .= "<input type='hidden' name='updateAboutMe' id='updateAboutMe' value='0' />\n<h2 class='ipsType_subtitle ipsSettings_pagetitle'>{$this->lang->words['general_account_settings']}</h2>\n<div class='ipsSettings'>\n\t" . (IPSMember::canUploadPhoto($this->memberData) ? "\n\t\t<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_photo_title']}</h3>\n\t\t\t<div>\n\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=photo", "public", ''), "", "") . "\" class='ipsButton_secondary'>{$this->lang->words['ucp_photo_change']}</a>\n\t\t\t</div>\n\t\t</fieldset>\n\t" : "") . "\n\t\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['settings_time']}</h3>\n\t\t<div>\n\t\t\t<ul class='ipsForm ipsForm_horizontal'>\n\t\t\t\t<li class='ipsField'>\n\t\t\t\t\t<label for='timezone'>{$this->lang->words['ucp_timzeone']}</label>\n\t\t\t\t\t<select name='timeZone' id='timezone' class='input_select'>\n\t\t\t\t\t" . $this->__f__d7cd0949927ac54cdf410b506aad4d70($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t</select><br />\n\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['settings_time_txt2']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate('{custom:now}', "LONG", 1)) . "</span>\n\t\t\t\t</li>\n\t\t\t\t" . ($this->settings['time_dst_auto_correction'] ? "<li>\n\t\t\t\t\t\t" . ($this->request['dsterror'] == 1 ? "\n\t\t\t\t\t\t\t{$this->lang->words['dst_error']}\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dst' name=\"dstCheck\" onclick='toggle_dst()' value=\"1\"" . ($this->memberData['members_auto_dst'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dst'>{$this->lang->words['dst_correction_title']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id='dst-manual'>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label>\n\t\t\t\t\t</li>" : "<li>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label><br />\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['ucp_dst_effect']}</span>\n\t\t\t\t\t</li>") . "\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_comments']}</h3>\n\t\t<div>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_comments' value='1' " . ($this->memberData['pp_setting_count_comments'] > 0 ? "checked='checked'" : "") . " id='comments_enable' /> &nbsp;<label for='comments_enable'>{$this->lang->words['ucp_enable_comments']}</label>\n\t\t\t\t</li>\n\t\t\t\t<!-- proposing removal -->\n\t\t\t\t<li id='approve_comments'>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1'  name='pp_setting_moderate_comments' id='pp_setting_moderate_comments' " . ($this->memberData['pp_setting_moderate_comments'] ? "checked=\"checked\"" : "") . " /> &nbsp;<label for='pp_setting_moderate_comments'>{$this->lang->words['op_dd_enabled']}</label>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_visitors' value='1' " . ($this->memberData['pp_setting_count_visitors'] > 0 ? "checked='checked'" : "") . " id='pp_latest_visitors' /> &nbsp;<label for='pp_latest_visitors'>{$this->lang->words['ucp_show_x_latest']}</label>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_friends']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_friends' value='1' " . ($this->memberData['pp_setting_count_friends'] > 0 ? "checked='checked'" : "") . " id='friends_enable' /> &nbsp;<label for='friends_enable'>{$this->lang->words['ucp_show_friends_profile']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_friends' id='pp_setting_moderate_friends' " . ($this->memberData['pp_setting_moderate_friends'] ? "checked=\"checked\"" : "") . " /> &nbsp;<label for='pp_setting_moderate_friends'>{$this->lang->words['ucp_friend_approve']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t" . ($day && $mon && $year || $this->settings['post_titlechange'] && $this->memberData['posts'] >= $this->settings['post_titlechange'] ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['profile_information']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='#' class='ipsButton_secondary' id='edit_aboutme'>{$this->lang->words['edit_my_about_me']}</a></li>\n\t\t\t\t</ul>\n\t\t\t\t" . (($this->settings['post_titlechange'] == -1 or $this->settings['post_titlechange'] and $this->memberData['posts'] >= $this->settings['post_titlechange']) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='member_title' class='ipsSettings_fieldtitle'>{$this->lang->words['member_title']}</label>\n\t\t\t\t\t\t\t<input type='text' class='input_text' size='40' id='member_title' name='member_title' value='{$this->memberData['title']}' />\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['member_title_desc']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t\t" . (($day and $mon and $year) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='birthday' class='ipsSettings_fieldtitle'>{$this->lang->words['ucp_birthday_select']}</label>\n\t\t\t\t\t\t\t<select name=\"month\">&nbsp;\n\t\t\t\t\t\t\t\t" . $this->__f__7e6a8b3bc65253c00052da22234b05db($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select>\t\t\t\n\t\t\t\t\t\t\t<select name=\"day\">&nbsp;\n\t\t\t\t\t\t\t\t" . $this->__f__0cb032d7c73fef1ba4963ec065d1a010($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> \n\t\t\t\t\t\t\t<select name=\"year\">&nbsp;\n\t\t\t\t\t\t\t\t" . $this->__f__1b9b9282bb568d344b27922448a8d35c($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> <br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['ucp_birthday_optional']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t\n\t" . (count($custom_fields) ? "" . $this->__f__f9f140957798adb628d334c9d5c5ec81($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t" : "") . "\n\t\n\t<div id='aboutme_editor' style='display: none'>\n\t\t<h3>{$this->lang->words['cp_edit_aboutme']}</h3>\n\t\t<div>\n\t\t\t{$amEditor}\n\t\t</div>\n\t\t<div class='ipsForm_submit' style='margin-top: 0;'>\n\t\t\t<a href='#' id='close_aboutme_editor' class='ipsButton'>{$this->lang->words['finish_aboutme_edit']}</a>\n\t\t</div>\n\t</div>\n\t" . ($required_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_required_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$required_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n\t" . ($optional_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_other_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$optional_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n</div>\n<script type=\"text/javascript\">\n//<![CDATA[\nfunction toggle_dst()\n{\n\tif ( \$( 'dst' ) )\n\t{\n\t\tif ( \$( 'dst' ).checked ){\n\t\t\t\$( 'dst-manual' ).style.display = 'none';\n\t\t} else {\n\t\t\t\$( 'dst-manual' ).style.display = 'block';\n\t\t}\n\t}\n}\ntoggle_dst();\n//]]>\n</script>";
     return $IPBHTML;
 }
コード例 #3
0
 function profileModern($tabs = array(), $member = array(), $visitors = array(), $default_tab = 'status', $default_tab_content = '', $friends = array(), $status = array(), $warns = array(), $show_contact = '')
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_profile', $this->_funcHooks['profileModern'])) {
         $count_cd59186ca4fec98c8eef467a748ecf48 = is_array($this->functionData['profileModern']) ? count($this->functionData['profileModern']) : 0;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['tabs'] = $tabs;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['member'] = $member;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['visitors'] = $visitors;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['default_tab'] = $default_tab;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['default_tab_content'] = $default_tab_content;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['friends'] = $friends;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['status'] = $status;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['warns'] = $warns;
         $this->functionData['profileModern'][$count_cd59186ca4fec98c8eef467a748ecf48]['show_contact'] = $show_contact;
     }
     $IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("status", "0") . "\n" . $this->registry->getClass('output')->addJSModule("rating", "0") . "\n" . $this->registry->getClass('output')->addJSModule("profile", "0") . "\n<script type='text/javascript'>\n//<![CDATA[\n\tipb.profile.viewingProfile = parseInt( {$member['member_id']} );\n\t" . ($this->memberData['member_id'] ? "\n\t\tipb.templates['remove_friend'] = \"<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=remove&amp;member_id={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['remove_as_friend']}'><img src='{$this->settings['img_url']}/user_delete.png' alt='{$this->lang->words['remove_as_friend']}' />&nbsp;&nbsp; {$this->lang->words['remove_as_friend']}</a>\";\n\t\tipb.templates['add_friend'] = \"<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=add&amp;member_id={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['add_me_friend']}'><img src='{$this->settings['img_url']}/user_add.png' alt='{$this->lang->words['add_me_friend']}' />&nbsp;&nbsp; {$this->lang->words['add_me_friend']}</a>\";\n\t" : "") . "\n\tipb.templates['edit_status'] = \"<span id='edit_status'><input type='text' class='input_text' style='width: 60%' id='updated_status' maxlength='150' /> <input type='submit' value='{$this->lang->words['save']}' class='input_submit' id='save_status' /> &nbsp;<a href='#' id='cancel_status' class='cancel' title='{$this->lang->words['cancel']}'>{$this->lang->words['cancel']}</a></span>\";\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\tipb.profile.isFriend = true;\n\t\t" : "\n\t\t\tipb.profile.isFriend = false;\n\t\t") . "" : "") . "\n//]]>\n</script>\n" . ((is_array($member['customization']) and $member['customization']['type']) ? "\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('profile'), 'customizeProfile') ? $this->registry->getClass('output')->getTemplate('profile')->customizeProfile($member) : '') . "\n" : "") . "\n" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] || $this->memberData['g_is_supmod'] == 1 || $this->memberData['member_id'] && $member['member_id'] != $this->memberData['member_id'] ? "<ul class='topic_buttons'>\n\t\t" . ($this->memberData['g_is_supmod'] == 1 && $member['member_id'] != $this->memberData['member_id'] ? "\n\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;mid={$member['member_id']}&amp;pf={$member['member_id']}", "public", ''), "", "") . "'>{$this->lang->words['supmod_edit_member']}</a></li>\n\t\t" : "") . "\n\t\t" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] ? "\n\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=core", "public", ''), "", "") . "'>{$this->lang->words['edit_profile']}</a></li>\n\t\t" : "") . "\n\t\t" . (($member['member_id'] == $this->memberData['member_id'] and $member['customization']['type']) ? "\n\t\t\t<li class='non_button'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}&amp;secure_key={$this->member->form_hash}&amp;removeCustomization=1", "public", ''), "{$member['members_seo_name']}", "showuser") . "'>{$this->lang->words['cust_remove']}</a></li>\n\t\t" : "") . "\n\t</ul>" : "") . "\n<div class='ipsBox clear vcard' id='profile_background'>\n\t<div class='ipsVerticalTabbed ipsLayout ipsLayout_withleft ipsLayout_smallleft clearfix'>\n\t\t<div class='ipsVerticalTabbed_tabs ipsLayout_left' id='profile_tabs'>\n\t\t\t<p class='short photo_holder'>\n\t\t\t\t" . (($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] and IPSMember::canUploadPhoto($member, TRUE)) ? "\n\t\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=photo", "public", ''), "", "") . "\" id='change_photo' class='ipsType_smaller ipsPad' title='{$this->lang->words['change_photo_desc']}'>{$this->lang->words['change_photo_link']}</a>\n\t\t\t\t" : "") . "\n\t\t\t\t<img class=\"ipsUserPhoto\" id='profile_photo' src='{$member['pp_main_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $member['members_display_name']) . "\"  />\n\t\t\t</p>\n\t\t\t" . ($member['show_warn'] ? "\n\t\t\t\t<div class='warn_panel clear ipsType_small'>\n\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=warnings&amp;member={$member['member_id']}&amp;from_app=members", "public", ''), "", "") . "' id='warn_link_xxx_{$member['member_id']}' title='{$this->lang->words['warn_view_history']}'>" . sprintf($this->lang->words['warn_status'], $member['warn_level']) . "</a></strong>\n\t\t\t\t</div>\n\t\t\t" : "") . "\n\t\t\t<ul class='clear'>\n\t\t\t\t<li id='tab_link_core:info' class='tab_toggle " . ($default_tab == 'core:info' ? "active" : "") . "' data-tabid='user_info'><a href='#'>{$this->lang->words['pp_tab_info']}</a></li>\n\t\t\t\t" . $this->__f__2f422240e1274fdb36c2c32e69162921($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t</ul>\n\t\t</div>\n\t\t<div class='ipsVerticalTabbed_content ipsLayout_content ipsBox_container' id='profile_content'>\n\t\t\t<div class='ipsPad'>\n\t\t\t\t<div id='profile_content_main'>\n\t\t\t\t\t<div id='user_info_cell'>\n\t\t\t\t\t\t<h1 class='ipsType_pagetitle'>\n\t\t\t\t\t\t\t<span class='fn nickname'>{$member['members_display_name']}</span>\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t{$this->lang->words['m_member_since']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($member['joined'], "DATE", 0)) . "<br />\n\t\t\t\t\t\t" . (!empty($warns) ? "\n\t\t\t\t\t\t\t" . $this->__f__564127d37c2ef3e6cddc7d7192084597($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t" . ($member['_online'] && $member['online_extra'] != $this->lang->words['not_online'] ? "\n\t\t\t\t\t\t\t<span class='ipsBadge ipsBadge_green reset_cursor' data-tooltip=\"" . strip_tags($member['online_extra']) . "\">{$this->lang->words['online_online']}</span>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<span class='ipsBadge ipsBadge_lightgrey reset_cursor'>{$this->lang->words['online_offline']}</span>\n\t\t\t\t\t\t") . "\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['m_last_active']} {$member['_last_active']}</span> \n\t\t\t\t\t</div>\n\t\t\t\t\t" . ($status['status_id'] && $this->settings['su_enabled'] ? "\n\t\t\t\t\t<div id='user_status_cell'>\n\t\t\t\t\t\t<div id='user_latest_status'>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t" . IPSText::truncate(strip_tags($status['status_content']), 180) . "\n\t\t\t\t\t\t\t\t<span class='ipsType_smaller desc lighter blend_links'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=status&amp;type=single&amp;status_id={$status['status_id']}", "public", ''), array($status['member_id'], $status['members_seo_name']), "members_status_single") . "'>{$this->lang->words['ps_updated']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($status['status_date'], "manual{%d %b}", 0)) . " &middot; " . intval($status['status_replies']) . " {$this->lang->words['ps_comments']}</a></span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t" . ($this->settings['pp_allow_member_rate'] ? "<span class='rating left clear' style='margin-bottom: 10px'>\n\t\t\t\t\t\t\t" . ($this->memberData['member_id'] == $member['member_id'] || !$this->memberData['member_id'] ? "" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "<span id='rating_text' class='desc'></span>" : "<a href='#' id='user_rate_1' title='{$this->lang->words['m_rate_1']}'>" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_2' title='{$this->lang->words['m_rate_2']}'>" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_3' title='{$this->lang->words['m_rate_3']}'>" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_4' title='{$this->lang->words['m_rate_4']}'>" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a><a href='#' id='user_rate_5' title='{$this->lang->words['m_rate_5']}'>" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a> <span id='rating_text' class='desc'></span>\n\t\t\t\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\t\t\trating = new ipb.rating( 'user_rate_', { \n\t\t\t\t\t\t\t\t\t\t\t\t\t\turl: ipb.vars['base_url'] + 'app=members&module=ajax&section=rate&member_id={$member['member_id']}&md5check=' + ipb.vars['secure_hash'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcur_rating: " . (isset($member['pp_rating_real']) ? "{$member['pp_rating_real']}" : "0") . ",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trated: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tallow_rate: ( {$this->memberData['member_id']} != 0 ) ? 1 : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow_rate_text: false\n\t\t\t\t\t\t\t\t\t\t\t\t\t  } );\n\t\t\t\t\t\t\t\t</script>") . "\n\t\t\t\t\t\t</span>" : "") . "\n\t\t\t\t\t<ul class='ipsList_inline' id='user_utility_links'>\n\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $member['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<li id='friend_toggle' class='ipsButton_secondary'>\n\t\t\t\t\t\t\t\t" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=remove&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}'><img src='{$this->settings['img_url']}/user_delete.png' alt='{$this->lang->words['remove_friend']}' />&nbsp;&nbsp; {$this->lang->words['remove_as_friend']}</a>\n\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=add&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}'><img src='{$this->settings['img_url']}/user_add.png' alt='{$this->lang->words['add_friend']}' />&nbsp;&nbsp; {$this->lang->words['add_me_friend']}</a>\n\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t</li>" : "") . "\n\t\t\t\t\t\t" . (($member['member_id'] != $this->memberData['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') and $member['members_disable_pm'] == 0) ? "\n\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_this_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "&nbsp;&nbsp; {$this->lang->words['send_message']}</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . "&nbsp;&nbsp;  {$this->lang->words['gbl_find_my_content']}</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<div id='profile_panes_wrap' class='clearfix'>\n\t\t\t\t\t\n\t\t\t\t\t<div id='pane_core:info' class='ipsLayout ipsLayout_withright ipsLayout_largeright clearfix' " . ($default_tab != 'core:info' ? "style='display: none'" : "") . ">\t\t\t\t\t\t\n\t\t\t\t\t\t<div class='ipsLayout_content'>\n\t\t\t\t\t\t\t" . ($member['pp_about_me'] ? "\n\t\t\t\t\t\t\t\t<div class='general_box clearfix' id='about_me'>\n\t\t\t\t\t\t\t\t\t<h3>{$this->lang->words['pp_tab_aboutme']}</h3>\n\t\t\t\t\t\t\t\t\t<div class='ipsPad'>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t{$member['pp_about_me']}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<hr/>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t<div class='general_box clearfix'>\n\t\t\t\t\t\t\t\t<h3>{$this->lang->words['community_stats']}</h3>\n\t\t\t\t\t\t\t\t<br />\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<ul class='ipsList_data clearfix'>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_group']}</span>\n\t\t\t\t\t\t\t\t\t\t<span class='row_data'>{$member['g_title']}</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_posts']}</span>\n\t\t\t\t\t\t\t\t\t\t<span class='row_data'>" . $this->registry->getClass('class_localization')->formatNumber($member['posts']) . "</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_profile_views']}</span>\n\t\t\t\t\t\t\t\t\t\t<span class='row_data'>" . $this->registry->getClass('class_localization')->formatNumber($member['members_profile_views']) . "</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t" . ($member['title'] != '' ? "\n\t\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_member_title']}</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data'>{$member['title']}</span>\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_age_prefix']}</span>\n\t\t\t\t\t\t\t\t\t\t" . ($member['_age'] > 0 ? "\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data'>{$member['_age']} {$this->lang->words['m_years_old']}</span>\n\t\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data desc lighter'>{$this->lang->words['m_age_unknown']}</span>\n\t\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_birthday_prefix']}</span>\n\t\t\t\t\t\t\t\t\t\t" . ($member['bday_day'] ? "<span class='row_data'>{$member['_bday_month']} {$member['bday_day']}" . ($member['bday_year'] ? ", {$member['bday_year']}" : "") . "</span>" : "\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data desc lighter'>{$this->lang->words['m_bday_unknown']}</span>\n\t\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t" . ($member['custom_fields']['profile_info'] != "" ? "\n\t\t\t\t\t\t\t\t\t\t" . $this->__f__f0e76e4d620b3faa5a2ffd19a8ea1c2c($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . ($member['custom_fields'] ? "\n\t\t\t\t\t\t\t\t" . $this->__f__8dbabb73a88aceaa1c5f9dd5a0840ba1($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . ($this->memberData['g_access_cp'] == 1 || is_array($member['custom_fields']['contact']) ? "<div class='general_box clearfix'>\n\t\t\t\t\t\t\t\t" . ($this->memberData['g_access_cp'] == 1 || $show_contact ? "\n\t\t\t\t\t\t\t\t\t<h3>{$this->lang->words['contact_info']}</h3>\n\t\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t<ul class='ipsList_data clearfix'>\n\t\t\t\t\t\t\t\t\t\t" . ($this->memberData['g_access_cp'] == 1 ? "\n\t\t\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_email']}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class='row_data'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='mailto:{$member['email']}'>{$member['email']}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t\t" . (is_array($member['custom_fields']['contact']) ? "\n\t\t\t\t\t\t\t\t\t\t\t" . $this->__f__8604471d3ac83626baa934be3c834c72($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t</div>" : "") . "\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<div class='ipsLayout_right'>\n\t\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($member['pp_reputation_points'] > 0 ? "\n\t\t\t\t\t\t\t\t\t<div class='reputation positive' data-tooltip=\"" . sprintf($this->lang->words['rep_description'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\n\t\t\t\t\t\t\t\t\t<div class='reputation negative' data-tooltip=\"" . sprintf($this->lang->words['rep_description'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] == 0 ? "\n\t\t\t\t\t\t\t\t\t<div class='reputation zero' data-tooltip=\"" . sprintf($this->lang->words['rep_description'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t\t<span class='number'>{$member['pp_reputation_points']}</span>\n\t\t\t\t\t\t\t\t\t\t" . ($member['author_reputation'] && $member['author_reputation']['text'] ? "\n\t\t\t\t\t\t\t\t\t\t\t<span class='title'>{$member['author_reputation']['text']}</span>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t\t" . ($member['author_reputation'] && $member['author_reputation']['image'] ? "\n\t\t\t\t\t\t\t\t\t\t\t<span class='image'><img src='{$member['author_reputation']['image']}' alt='{$this->lang->words['m_reputation']}' /></span>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<br />" : "") . "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . ($member['spamStatus'] !== NULL && $member['member_id'] != $this->memberData['member_id'] || $this->memberData['g_mem_info'] && $this->settings['auth_allow_dnames'] || ($member['member_id'] != $this->memberData['member_id'] and $this->memberData['g_is_supmod'] and $member['customization']['type']) ? "<div class='general_box clearfix'>\n\t\t\t\t\t\t\t\t\t<h3>{$this->lang->words['user_tools']}</h3>\n\t\t\t\t\t\t\t\t\t<ul class='ipsPad'>\t\n\t\t\t\t\t\t\t\t\t\t" . ($member['spamStatus'] !== NULL && $member['member_id'] != $this->memberData['member_id'] ? "" . ($member['spamStatus'] === TRUE ? "\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a href='#' onclick=\"return ipb.global.toggleFlagSpammer({$member['member_id']}, false)\">" . $this->registry->getClass('output')->getReplacement("spammer_on") . " {$this->lang->words['spm_on']}</a></li>\n\t\t\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a href='{$this->settings['base_url']}app=core&amp;module=modcp&amp;do=setAsSpammer&amp;member_id={$member['member_id']}&amp;auth_key={$this->member->form_hash}' onclick=\"return ipb.global.toggleFlagSpammer({$member['member_id']}, true)\">" . $this->registry->getClass('output')->getReplacement("spammer_off") . " {$this->lang->words['spm_off']}</a></li>\n\t\t\t\t\t\t\t\t\t\t\t") . "" : "") . "\n\t\t\t\t\t\t\t\t\t\t" . ($this->memberData['member_id'] && $this->memberData['g_mem_info'] && $this->settings['auth_allow_dnames'] ? "\n\t\t\t\t\t\t\t\t\t\t\t<li id='dname_history'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=dname&amp;id={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_dname_history']}'>" . $this->registry->getClass('output')->getReplacement("display_name") . " {$this->lang->words['display_name_history']}</a></li>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t" . (($member['member_id'] != $this->memberData['member_id'] and $this->memberData['g_is_supmod'] and $member['customization']['type']) ? "\n\t\t\t\t\t\t\t\t\t\t\t<li><strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}&amp;secure_key={$this->member->form_hash}&amp;removeCustomization=1", "public", ''), "{$member['members_seo_name']}", "showuser") . "'><img src='{$this->settings['img_url']}/delete.png' alt='-' /> {$this->lang->words['cust_remove']}</a></strong></li>\n\t\t\t\t\t\t\t\t\t\t\t<li><strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}&amp;secure_key={$this->member->form_hash}&amp;removeCustomization=1&amp;disableCustomization=1", "public", ''), "{$member['members_seo_name']}", "showuser") . "'><img src='{$this->settings['img_url']}/delete.png' alt='-' /> {$this->lang->words['cust_disable']}</a></strong></li>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t</div>" : "") . "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . (($member['pp_setting_count_friends'] and $this->settings['friends_enabled']) ? "<div class='general_box clearfix' id='friends_overview'>\n\t\t\t\t\t\t\t\t\t<h3>{$this->lang->words['m_title_friends']}</h3>\n\t\t\t\t\t\t\t\t\t<div class='ipsPad'>\n\t\t\t\t\t\t\t\t\t\t" . ((count($friends) and is_array($friends)) ? "\n\t\t\t\t\t\t\t\t\t\t\t" . $this->__f__8376ccb1155b4145f6b57bc51d43c3a0($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t\t\t<p class='desc'>\n\t\t\t\t\t\t\t\t\t\t\t\t{$member['members_display_name']} {$this->lang->words['no_friends_yet']}\n\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>" : "") . "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . ($member['pp_setting_count_visitors'] ? "<div class='general_box clearfix'>\n\t\t\t\t\t\t\t\t\t<h3>{$this->lang->words['latest_visitors']}</h3>\n\t\t\t\t\t\t\t\t\t" . (is_array($visitors) && count($visitors) ? "\n\t\t\t\t\t\t\t\t\t\t<ul class='ipsList_withminiphoto ipsPad'>\n\t\t\t\t\t\t\t\t\t\t\t" . $this->__f__ed33687a186900a1872976f32b491f21($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns, $show_contact) . "\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t\t<p class='ipsPad desc'>{$this->lang->words['no_latest_visitors']}</p>\n\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t</div>" : "") . "\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t" . ($default_tab != 'core:info' ? "\n\t\t\t\t\t<div id='pane_{$default_tab}'>\n\t\t\t\t\t\t{$default_tab_content}\n\t\t\t\t\t</div>\n\t\t\t\t\t" : "") . "\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t</div>\n</div>\n" . ($this->memberData['member_id'] && $member['member_id'] != $this->memberData['member_id'] ? "\n\t<br />\n\t<ul class='topic_buttons'>\n\t\t<li class='non_button clearfix'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=reports&amp;section=reports&amp;rcom=profiles&amp;member_id={$member['member_id']}", "public", ''), "", "") . "'>{$this->lang->words['report_member']}</a></li>\n\t</ul>\n" : "") . "\n<script type='text/javascript'>\n\t\$(\"profile_content\").setStyle( { minHeight: \$('profile_tabs').measure('margin-box-height') + 138 + \"px\" } );\n</script>\n\n<!-- ******************************************************************************************* -->\n" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_highlighter') ? $this->registry->getClass('output')->getTemplate('global')->include_highlighter() : '') . "";
     return $IPBHTML;
 }
コード例 #4
0
 function profileModern($tabs = array(), $member = array(), $visitors = array(), $default_tab = 'status', $default_tab_content = '', $friends = array(), $status = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_profile', $this->_funcHooks['profileModern'])) {
         $count_2336f8d25a5fffab693a253786d2e4a6 = is_array($this->functionData['profileModern']) ? count($this->functionData['profileModern']) : 0;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['tabs'] = $tabs;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['member'] = $member;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['visitors'] = $visitors;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['default_tab'] = $default_tab;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['default_tab_content'] = $default_tab_content;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['friends'] = $friends;
         $this->functionData['profileModern'][$count_2336f8d25a5fffab693a253786d2e4a6]['status'] = $status;
     }
     $IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("status", "0") . "\n" . $this->registry->getClass('output')->addJSModule("rating", "0") . "\n" . $this->registry->getClass('output')->addJSModule("profile", "0") . "\n<script type='text/javascript'>\n//<![CDATA[\n\tipb.profile.viewingProfile = parseInt( {$member['member_id']} );\n" . ($this->memberData['member_id'] ? "\n\tipb.templates['remove_friend'] = \"<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=remove&amp;member_id={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['remove_as_friend']}'><img src='{$this->settings['img_url']}/user_delete.png' alt='{$this->lang->words['remove_as_friend']}' />&nbsp;&nbsp; {$this->lang->words['remove_as_friend']}</a>\";\n\tipb.templates['add_friend'] = \"<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=add&amp;member_id={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['add_me_friend']}'><img src='{$this->settings['img_url']}/user_add.png' alt='{$this->lang->words['add_me_friend']}' />&nbsp;&nbsp; {$this->lang->words['add_me_friend']}</a>\";\n" : "") . "\n\tipb.templates['edit_status'] = \"<span id='edit_status'><input type='text' class='input_text' style='width: 60%' id='updated_status' maxlength='150' /> <input type='submit' value='{$this->lang->words['save']}' class='input_submit' id='save_status' /> &nbsp;<a href='#' id='cancel_status' class='cancel' title='{$this->lang->words['cancel']}'>{$this->lang->words['cancel']}</a></span>\";\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\tipb.profile.isFriend = true;\n\t\t" : "\n\t\t\tipb.profile.isFriend = false;\n\t\t") . "" : "") . "\n//]]>\n</script>\n" . ((is_array($member['customization']) and $member['customization']['type']) ? "\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('profile'), 'customizeProfile') ? $this->registry->getClass('output')->getTemplate('profile')->customizeProfile($member) : '') . "\n" : "") . "\n<h3 class='fmw_ptitle'>Пользователь: {$member['members_display_name']}\n" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] || $this->memberData['g_is_supmod'] == 1 || $this->memberData['member_id'] && $member['member_id'] != $this->memberData['member_id'] ? "" . ($this->memberData['g_is_supmod'] == 1 && $member['member_id'] != $this->memberData['member_id'] ? "\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;mid={$member['member_id']}&amp;pf={$member['member_id']}", "public", ''), "", "") . "'>{$this->lang->words['supmod_edit_member']}</a>\n\t\t" : "") . "\n\t\t" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] ? "\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=core", "public", ''), "", "") . "'>{$this->lang->words['edit_profile']}</a>\n\t\t" : "") . "\n\t\t" . (($member['member_id'] == $this->memberData['member_id'] and $member['customization']['type']) ? "\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}&amp;secure_key={$this->member->form_hash}&amp;removeCustomization=1", "public", ''), "{$member['members_seo_name']}", "showuser") . "'>{$this->lang->words['cust_remove']}</a>\n\t\t" : "") . "" : "") . "\n\n<span class='right'>\n" . ($member['_online'] && $member['online_extra'] != $this->lang->words['not_online'] ? "\n\t\t\t\t\t\t\t<span class='ipsBadge ipsBadge_green reset_cursor' data-tooltip=\"" . strip_tags($member['online_extra']) . "\">{$this->lang->words['online_online']}</span>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<span class='ipsBadge ipsBadge_lightgrey reset_cursor'>{$this->lang->words['online_offline']}</span>\n\t\t\t\t\t\t") . "\n\t\t\t\t\t</span>\n\n</h3>" . $this->registry->getClass('output')->getReplacement("header_end") . "\n\n<div style=\"background:#f9fafd;padding:10px 10px 20px 10px;\">\n<div id=\"customBackground\"></div>\n<ul class='ipsList_inline' id='user_utility_links'>\n\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $member['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<li id='friend_toggle'>\n\t\t\t\t\t\t\t\t" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=remove&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}' class='ipsButton_secondary'><img src='{$this->settings['img_url']}/user_delete.png' alt='{$this->lang->words['remove_friend']}' /> {$this->lang->words['remove_as_friend']}</a>\n\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;section=friends&amp;module=profile&amp;do=add&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}' class='ipsButton_secondary'><img src='{$this->settings['img_url']}/user_add.png' alt='{$this->lang->words['add_friend']}' /> {$this->lang->words['add_me_friend']}</a>\n\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t</li>" : "") . "\n\t\t\t\t\t\t" . (($member['member_id'] != $this->memberData['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') and $member['members_disable_pm'] == 0) ? "\n\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_this_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . " {$this->lang->words['send_message']}</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . " {$this->lang->words['gbl_find_my_content']}</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t" . ($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] ? "" . (($this->memberData['gbw_allow_url_bgimage'] or $this->memberData['gbw_allow_upload_bgimage']) ? "\n\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=core&amp;area=customize", "public", ''), "", "") . "' class='ipsButton_secondary'><i class=\"fa fa-picture-o\"></i> Изменить персонализацию</a></li>\n\t\t\t\t\t\t" : "") . "" : "") . "" . (($member['member_id'] == $this->memberData['member_id'] and $member['customization']['type']) ? "\n\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}&amp;secure_key={$this->member->form_hash}&amp;removeCustomization=1", "public", ''), "{$member['members_seo_name']}", "showuser") . "' class='ipsButton_secondary'><i class=\"fa fa-minus-circle\"></i> {$this->lang->words['cust_remove']}</a></li>\n\t\t" : "") . "\n\t\t\t\t\t</ul>\n<table width=\"1178px\"><tbody><tr>\n\n\n<td width=\"300px\" style=\"padding:0;font-size:12px;background:#f9fafd;\">\n\n<center>\n\n<div style=\"margin-top:0px;\">\n<div class='fmw_pnick'>\n<span>{$member['members_display_name']}</span>\n</div>\n<p class='short photo_holder'>\n\t\t\t\t" . (($this->memberData['member_id'] && $member['member_id'] == $this->memberData['member_id'] and IPSMember::canUploadPhoto($member, TRUE)) ? "\n\t\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=photo", "public", ''), "", "") . "\" id='change_photo' class='ipsType_smaller ipsPad' title='{$this->lang->words['change_photo_desc']}'>{$this->lang->words['change_photo_link']}</a>\n\t\t\t\t" : "") . "\n<img class='fmw_pimg' src=\"{$member['pp_main_photo']}\" title=\"Аватар пользователя\">\n</p>\n\n<div style='margin-top:10px;'>\n" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($member['pp_reputation_points'] > 0 ? "\n\t\t\t\t\t\t\t\t\t<div class='reputation positive reset_cursor fmw_prep' data-tooltip=\"" . sprintf($this->lang->words['rep_description'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\n\t\t\t\t\t\t\t\t\t<div class='reputation negative reset_cursor fmw_prep' data-tooltip=\"" . sprintf($this->lang->words['rep_description'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] == 0 ? "\n\t\t\t\t\t\t\t\t\t<div class='reputation zero reset_cursor fmw_prep' data-tooltip=\"" . sprintf($this->lang->words['rep_description'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\n\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t\t<span class='number'>{$member['pp_reputation_points']}</span>\n\t\t\t\t\t\t\t\t\t\t" . ($member['author_reputation'] && $member['author_reputation']['text'] ? "\n\t\t\t\t\t\t\t\t\t\t\t<span class='title'>{$member['author_reputation']['text']}</span>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t\t" . ($member['author_reputation'] && $member['author_reputation']['image'] ? "\n\t\t\t\t\t\t\t\t\t\t\t<span class='image'><img src='{$member['author_reputation']['image']}' alt='{$this->lang->words['m_reputation']}' /></span>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<br />" : "") . "\n\n<ul class='ipsList_inline' id='user_utility_links'>\n" . ($member['show_warn'] ? "\n\t\t\t\t<div class='warn_panel clear ipsType_small'>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=warnings&amp;member={$member['member_id']}&amp;from_app=members", "public", ''), "", "") . "' id='warn_link_xxx_{$member['member_id']}' title='{$this->lang->words['warn_view_history']}'>" . sprintf($this->lang->words['warn_status'], $member['warn_level']) . "</a>\n\n\t\t\t\t</div>\n</div>\n\t\t\t" : "") . "\n</div>\n<a href='#' id='modal1'>Посмотреть друзей</a>\n<div id='mymodalcontent' style='display:none;'>\n  <h3>Друзья</h3>\n  <div class='fixed_inner' style='margin: 0 0 15px 0;'>\n    <div id='friendsmod' class='ipsPad'>\n" . ((count($friends) and is_array($friends)) ? "" . $this->__f__4c5997ea6335670e3dfd3b2a020f720c($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status) . "\t\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t\t\t<p class='desc'>\n\t\t\t\t\t\t\t\t\t\t\t\t{$member['members_display_name']} {$this->lang->words['no_friends_yet']}\n\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t\t</div>\n  </div>\n</div>\n\n\n<script type='text/javascript'>\n  \$('modal1').observe( 'click', function(e) {\n    _var = new ipb.Popup( 'booboo', { type: 'pane',\n\t\t\t\t\t\t   initial: \$('mymodalcontent').innerHTML,\n\t\t\t\t\t\t   hideAtStart: false,\n\t\t\t\t\t\t   w: '500px',\n\t\t\t\t\t\t   h: 300} );\n\n    Event.stop(e);\n\n    return false;\n  });\n</script>\n\n\t\t\t\t\t\t\t\t</center>\n</td><td class=\"bl\"><div style=\"padding:0 0 15px 0;\">\n<div class=\"ipsLayout_content\">\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class='general_box clearfix'>\n\t\t\t\t\t\t\t\t<h3>{$this->lang->words['community_stats']}</h3>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<ul class='ipsList_data clearfix'>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_group']}</span>\n\t\t\t\t\t\t\t\t\t\t<span class='row_data'>{$member['g_title']}</span>\n\t\t\t\t\t\t\t\t\t</li>\n<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>Сообщений :</span>\n<span class='row_data'>" . $this->registry->getClass('class_localization')->formatNumber($member['posts']) . "</span>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_profile_views']}</span>\n\t\t\t\t\t\t\t\t\t\t<span class='row_data'>" . $this->registry->getClass('class_localization')->formatNumber($member['members_profile_views']) . "</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t" . ($member['title'] != '' ? "\n\t\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_member_title']}</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data'>{$member['title']}</span>\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t" : "") . "\n<li class='clear clearfix'>\n<span class='row_title'>ID:</span>\n<span class='row_data'>{$member['member_id']}</span>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_age_prefix']}</span>\n\t\t\t\t\t\t\t\t\t\t" . ($member['_age'] > 0 ? "\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data'>{$member['_age']} {$this->lang->words['m_years_old']}</span>\n\t\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data desc lighter'>{$this->lang->words['m_age_unknown']}</span>\n\t\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_birthday_prefix']}</span>\n\t\t\t\t\t\t\t\t\t\t" . ($member['bday_day'] ? "<span class='row_data'>{$member['_bday_month']} {$member['bday_day']}" . ($member['bday_year'] ? ", {$member['bday_year']}" : "") . "</span>" : "\n\t\t\t\t\t\t\t\t\t\t\t<span class='row_data desc lighter'>{$this->lang->words['m_bday_unknown']}</span>\n\t\t\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t" . ($member['custom_fields']['profile_info'] != "" ? "\n\t\t\t\t\t\t\t\t\t\t" . $this->__f__d95dc347192539e3cdc5a29342a14cae($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status) . "\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . ($member['custom_fields'] ? "\n\t\t\t\t\t\t\t\t" . $this->__f__4a507ddfe0bf3f4374c5b2a0e07940b0($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status) . "\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . ($this->memberData['g_access_cp'] == 1 || is_array($member['custom_fields']['contact']) ? "<div class='general_box clearfix'>\n\t\t\t\t\t\t\t\t\t<h3>{$this->lang->words['contact_info']}</h3>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<ul class='ipsList_data clearfix'>\n\t\t\t\t\t\t\t\t\t\t" . ($this->memberData['g_access_cp'] == 1 ? "\n\t\t\t\t\t\t\t\t\t\t\t<li class='clear clearfix'>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class='row_title'>{$this->lang->words['m_email']}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class='row_data'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='mailto:{$member['email']}'>{$member['email']}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t\t" . (is_array($member['custom_fields']['contact']) ? "<!-- contact fields -->\n<li class='fmw_contactFields clear clearfix'>\n  <span class='row_data'>\n    <!-- aim -->\n    " . ($member['field_1'] ? "\n      <a href=\"aim:goim?screenname={$member['field_1']}\" data-tooltip=\"{$member['field_1']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_aim.gif\" alt=\"{$member['field_1']}\" /></a>\n    " : "") . "\n    <!-- / aim -->\n    <!-- msn -->\n    " . ($member['field_2'] ? "\n      <a href=\"msnim:chat?contact={$member['field_2']}\" data-tooltip=\"{$member['field_2']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_msn.gif\" alt=\"{$member['field_2']}\" /></a>\n    " : "") . "\n    <!-- / msn -->\n    <!-- website -->\n    " . ($member['field_3'] ? "\n      <a href=\"{$member['field_3']}\" data-tooltip=\"{$member['field_3']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_website.gif\" alt=\"{$member['field_2']}\" /></a>\n    " : "") . "\n    <!-- / website -->\n    <!-- icq -->\n    " . ($member['field_4'] ? "\n      <a href=\"http://www.icq.com/{$member['field_4']}\" data-tooltip=\"{$member['field_4']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_icq.gif\" alt=\"{$member['field_4']}\" /></a>\n    " : "") . "\n    <!-- / icq -->\n    <!-- yahoo -->\n    " . ($member['field_8'] ? "\n      <a href=\"ymsgr:sendIM?{$member['field_8']}\" data-tooltip=\"{$member['field_8']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_yahoo.gif\" alt=\"{$member['field_8']}\" /></a>\n    " : "") . "\n    <!-- / yahoo -->\n    <!-- jabber -->\n    " . ($member['field_9'] ? "\n      <a href=\"xmpp:{$member['field_9']}\" data-tooltip=\"{$member['field_9']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_jabber.gif\" alt=\"{$member['field_9']}\" /></a>\n    " : "") . "\n    <!-- / jabber -->\n    <!-- skype -->\n    " . ($member['field_10'] ? "\n      <a href=\"skype:{$member['field_10']}?call\" data-tooltip=\"{$member['field_10']}\"><img src=\"{$this->settings['public_dir']}style_extra/cprofile_icons/profile_skype.gif\" alt=\"{$member['field_10']}\" /></a>\n    " : "") . "\n    <!-- / skype -->\n  </span>\n</li>\n<!-- / contact fields -->" : "") . "\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t</div>" : "") . "\n\t\t\t\t\t\t</div\n\t\n\t\t\t\t\t\t\t\t\n\t<if test=\"{$default_tab} != 'core:info'\">\n\t\t\t\t\t<div id='pane_{$default_tab}'>\n\t\t\t\t\t\t{$default_tab_content}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n</div>\n\n\n\n</td></tr></tbody></table>\n\n\n\n</div>";
     return $IPBHTML;
 }
コード例 #5
0
ファイル: skin_ucp.php プロジェクト: ConnorChristie/GrabViews
 function membersProfileForm($custom_fields = '', $group_titles = '', $day = '', $mon = '', $year = '', $amEditor = '', $times = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_ucp', $this->_funcHooks['membersProfileForm'])) {
         $count_461ba154a84a981c91a329eee2f0b975 = is_array($this->functionData['membersProfileForm']) ? count($this->functionData['membersProfileForm']) : 0;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['custom_fields'] = $custom_fields;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['group_titles'] = $group_titles;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['day'] = $day;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['mon'] = $mon;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['year'] = $year;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['amEditor'] = $amEditor;
         $this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['times'] = $times;
     }
     $IPBHTML .= "<input type='hidden' name='updateAboutMe' id='updateAboutMe' value='0' />\r\n<h2 class='ipsType_subtitle ipsSettings_pagetitle'>{$this->lang->words['general_account_settings']}</h2>\r\n<div class='ipsSettings'>\r\n\t" . (IPSMember::canUploadPhoto($this->memberData) ? "\r\n\t\t<fieldset class='ipsSettings_section'>\r\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_photo_title']}</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=photo", "public", ''), "", "") . "\" class='ipsButton_secondary'>{$this->lang->words['ucp_photo_change']}</a>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t" : "") . "\r\n\t\r\n\t<fieldset class='ipsSettings_section'>\r\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['settings_time']}</h3>\r\n\t\t<div>\r\n\t\t\t<ul class='ipsForm ipsForm_horizontal'>\r\n\t\t\t\t<li class='ipsField'>\r\n\t\t\t\t\t<label for='timezone'>{$this->lang->words['ucp_timzeone']}</label>\r\n\t\t\t\t\t<select name='timeZone' id='timezone' class='input_select'>\r\n\t\t\t\t\t" . $this->__f__c9db93712f4bb502e3f9114ead35459b($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t</select><br />\r\n\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['settings_time_txt2']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate('{custom:now}', "LONG", 1)) . "</span>\r\n\t\t\t\t</li>\r\n\t\t\t\t" . ($this->settings['time_dst_auto_correction'] ? "<li>\r\n\t\t\t\t\t\t" . ($this->request['dsterror'] == 1 ? "\r\n\t\t\t\t\t\t\t{$this->lang->words['dst_error']}\r\n\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dst' name=\"dstCheck\" onclick='toggle_dst()' value=\"1\"" . ($this->memberData['members_auto_dst'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dst'>{$this->lang->words['dst_correction_title']}</label>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li id='dst-manual'>\r\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label>\r\n\t\t\t\t\t</li>" : "<li>\r\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label><br />\r\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['ucp_dst_effect']}</span>\r\n\t\t\t\t\t</li>") . "\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t</fieldset>\r\n\r\n\t<fieldset class='ipsSettings_section'>\r\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_comments']}</h3>\r\n\t\t<div>\r\n\t\t\t<ul>\r\n\t\t\t\t<li>\r\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_comments' value='1' " . ($this->memberData['pp_setting_count_comments'] > 0 ? "checked='checked'" : "") . " id='comments_enable' /> &nbsp;<label for='comments_enable'>{$this->lang->words['ucp_enable_comments']}</label>\r\n\t\t\t\t</li>\r\n\t\t\t\t<!-- proposing removal -->\r\n\t\t\t\t<li id='approve_comments'>\r\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1'  name='pp_setting_moderate_comments' id='pp_setting_moderate_comments' " . ($this->memberData['pp_setting_moderate_comments'] ? "checked=\"checked\"" : "") . " /> &nbsp;<label for='pp_setting_moderate_comments'>{$this->lang->words['op_dd_enabled']}</label>\r\n\t\t\t\t</li>\r\n\t\t\t\t<li>\r\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_visitors' value='1' " . ($this->memberData['pp_setting_count_visitors'] > 0 ? "checked='checked'" : "") . " id='pp_latest_visitors' /> &nbsp;<label for='pp_latest_visitors'>{$this->lang->words['ucp_show_x_latest']}</label>\r\n\t\t\t\t</li>\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t</fieldset>\r\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<fieldset class='ipsSettings_section'>\r\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_friends']}</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_friends' value='1' " . ($this->memberData['pp_setting_count_friends'] > 0 ? "checked='checked'" : "") . " id='friends_enable' /> &nbsp;<label for='friends_enable'>{$this->lang->words['ucp_show_friends_profile']}</label>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_friends' id='pp_setting_moderate_friends' " . ($this->memberData['pp_setting_moderate_friends'] ? "checked=\"checked\"" : "") . " /> &nbsp;<label for='pp_setting_moderate_friends'>{$this->lang->words['ucp_friend_approve']}</label>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t</ul>\r\n\t\t\t</div>\r\n\t\t</fieldset>" : "") . "\r\n\t" . ($day && $mon && $year || $this->settings['post_titlechange'] && $this->memberData['posts'] >= $this->settings['post_titlechange'] ? "<fieldset class='ipsSettings_section'>\r\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['profile_information']}</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li><a href='#' class='ipsButton_secondary' id='edit_aboutme'>{$this->lang->words['edit_my_about_me']}</a></li>\r\n\t\t\t\t</ul>\r\n\t\t\t\t" . (($this->settings['post_titlechange'] == -1 or $this->settings['post_titlechange'] and $this->memberData['posts'] >= $this->settings['post_titlechange']) ? "\r\n\t\t\t\t\t<br />\r\n\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<label for='member_title' class='ipsSettings_fieldtitle'>{$this->lang->words['member_title']}</label>\r\n\t\t\t\t\t\t\t<input type='text' class='input_text' size='40' id='member_title' name='member_title' value='{$this->memberData['title']}' />\r\n\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['member_title_desc']}</span>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t" : "") . "\r\n\t\t\t\t" . (($day and $mon and $year) ? "\r\n\t\t\t\t\t<br />\r\n\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<label for='birthday' class='ipsSettings_fieldtitle'>{$this->lang->words['ucp_birthday_select']}</label>\r\n\t\t\t\t\t\t\t<select name=\"month\">&nbsp;\r\n\t\t\t\t\t\t\t\t" . $this->__f__407379219587fcb0e439df90836d5a2a($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select>\t\t\t\r\n\t\t\t\t\t\t\t<select name=\"day\">&nbsp;\r\n\t\t\t\t\t\t\t\t" . $this->__f__d0812c5a39d2eafb39848d032799924c($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> \r\n\t\t\t\t\t\t\t<select name=\"year\">&nbsp;\r\n\t\t\t\t\t\t\t\t" . $this->__f__d10d64e731b7c28212c30bc4a4f1641e($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> <br />\r\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['ucp_birthday_optional']}</span>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t" : "") . "\r\n\t\t\t</div>\r\n\t\t</fieldset>" : "") . "\r\n\t\r\n\t" . (count($custom_fields) ? "" . $this->__f__70a0ad66fdd99e33488d1d6b16398d34($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t" : "") . "\r\n\t\r\n\t<div id='aboutme_editor' style='display: none'>\r\n\t\t<h3>{$this->lang->words['cp_edit_aboutme']}</h3>\r\n\t\t<div>\r\n\t\t\t{$amEditor}\r\n\t\t</div>\r\n\t\t<div class='ipsForm_submit' style='margin-top: 0;'>\r\n\t\t\t<a href='#' id='close_aboutme_editor' class='ipsButton'>{$this->lang->words['finish_aboutme_edit']}</a>\r\n\t\t</div>\r\n\t</div>\r\n\t" . ($required_output ? "\r\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\r\n\t\t\t<h3>{$this->lang->words['ucp_required_info']}</h3>\r\n\t\t\t<ul>\r\n\t\t\t\t{$required_output}\r\n\t\t\t</ul>\r\n\t\t</fieldset>\r\n\t" : "") . "\r\n\t" . ($optional_output ? "\r\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\r\n\t\t\t<h3>{$this->lang->words['ucp_other_info']}</h3>\r\n\t\t\t<ul>\r\n\t\t\t\t{$optional_output}\r\n\t\t\t</ul>\r\n\t\t</fieldset>\r\n\t" : "") . "\r\n</div>\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\nfunction toggle_dst()\r\n{\r\n\tif ( \$( 'dst' ) )\r\n\t{\r\n\t\tif ( \$( 'dst' ).checked ){\r\n\t\t\t\$( 'dst-manual' ).style.display = 'none';\r\n\t\t} else {\r\n\t\t\t\$( 'dst-manual' ).style.display = 'block';\r\n\t\t}\r\n\t}\r\n}\r\ntoggle_dst();\r\n//]]>\r\n</script>";
     return $IPBHTML;
 }
コード例 #6
0
ファイル: skin_ucp.php プロジェクト: mover5/imobackup
 function membersProfileForm($custom_fields = '', $group_titles = '', $day = '', $mon = '', $year = '', $amEditor = '', $times = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_ucp', $this->_funcHooks['membersProfileForm'])) {
         $count_0282ce37479526ef8120230c0f87d55e = is_array($this->functionData['membersProfileForm']) ? count($this->functionData['membersProfileForm']) : 0;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['custom_fields'] = $custom_fields;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['group_titles'] = $group_titles;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['day'] = $day;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['mon'] = $mon;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['year'] = $year;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['amEditor'] = $amEditor;
         $this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['times'] = $times;
     }
     $IPBHTML .= "<input type='hidden' name='updateAboutMe' id='updateAboutMe' value='0' />\n<h2 class='ipsType_subtitle ipsSettings_pagetitle'>{$this->lang->words['general_account_settings']}</h2>\n<div class='ipsSettings'>\n\t" . (IPSMember::canUploadPhoto($this->memberData) ? "\n\t\t<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_photo_title']}</h3>\n\t\t\t<div>\n\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=photo", "public", ''), "", "") . "\" class='ipsButton_secondary'>{$this->lang->words['ucp_photo_change']}</a>\n\t\t\t</div>\n\t\t</fieldset>\n\t" : "") . "\n\t\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['settings_time']}</h3>\n\t\t<div>\n\t\t\t<ul class='ipsForm ipsForm_horizontal'>\n\t\t\t\t<li class='ipsField'>\n\t\t\t\t\t<label for='timezone'>{$this->lang->words['ucp_timzeone']}</label>\n\t\t\t\t\t<select name='timeZone' id='timezone' class='input_select'>\n\t\t\t\t\t" . $this->__f__b9d0c5d3eb855351a89f501cc491868f($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t</select><br />\n\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['settings_time_txt2']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate('{custom:now}', "LONG", 1)) . "</span>\n\t\t\t\t</li>\n\t\t\t\t" . ($this->settings['time_dst_auto_correction'] ? "<li>\n\t\t\t\t\t\t" . ($this->request['dsterror'] == 1 ? "\n\t\t\t\t\t\t\t{$this->lang->words['dst_error']}\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dst' name=\"dstCheck\" onclick='toggle_dst()' value=\"1\"" . ($this->memberData['members_auto_dst'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dst'>{$this->lang->words['dst_correction_title']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id='dst-manual'>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label>\n\t\t\t\t\t</li>" : "<li>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> &nbsp;<label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label><br />\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['ucp_dst_effect']}</span>\n\t\t\t\t\t</li>") . "\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_comments']}</h3>\n\t\t<div>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_comments' value='1' " . ($this->memberData['pp_setting_count_comments'] > 0 ? "checked='checked'" : "") . " id='comments_enable' /> &nbsp;<label for='comments_enable'>{$this->lang->words['ucp_enable_comments']}</label>\n\t\t\t\t</li>\n\t\t\t\t<!-- proposing removal -->\n\t\t\t\t<li id='approve_comments'>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1'  name='pp_setting_moderate_comments' id='pp_setting_moderate_comments' " . ($this->memberData['pp_setting_moderate_comments'] ? "checked=\"checked\"" : "") . " /> &nbsp;<label for='pp_setting_moderate_comments'>{$this->lang->words['op_dd_enabled']}</label>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_visitors' value='1' " . ($this->memberData['pp_setting_count_visitors'] > 0 ? "checked='checked'" : "") . " id='pp_latest_visitors' /> &nbsp;<label for='pp_latest_visitors'>{$this->lang->words['ucp_show_x_latest']}</label>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_friends']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_friends' value='1' " . ($this->memberData['pp_setting_count_friends'] > 0 ? "checked='checked'" : "") . " id='friends_enable' /> &nbsp;<label for='friends_enable'>{$this->lang->words['ucp_show_friends_profile']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_friends' id='pp_setting_moderate_friends' " . ($this->memberData['pp_setting_moderate_friends'] ? "checked=\"checked\"" : "") . " /> &nbsp;<label for='pp_setting_moderate_friends'>{$this->lang->words['ucp_friend_approve']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t" . ($day && $mon && $year || $this->settings['post_titlechange'] && $this->memberData['posts'] >= $this->settings['post_titlechange'] ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['profile_information']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='#' class='ipsButton_secondary' id='edit_aboutme'>{$this->lang->words['edit_my_about_me']}</a></li>\n\t\t\t\t</ul>\n\t\t\t\t" . (($this->settings['post_titlechange'] == -1 or $this->settings['post_titlechange'] and $this->memberData['posts'] >= $this->settings['post_titlechange']) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='member_title' class='ipsSettings_fieldtitle'>{$this->lang->words['member_title']}</label>\n\t\t\t\t\t\t\t<input type='text' class='input_text' size='40' id='member_title' name='member_title' value='{$this->memberData['title']}' />\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['member_title_desc']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t\t" . (($day and $mon and $year) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='birthday' class='ipsSettings_fieldtitle'>{$this->lang->words['ucp_birthday_select']}</label>\n\t\t\t\t\t\t\t<select name=\"month\">&nbsp;\n\t\t\t\t\t\t\t\t" . $this->__f__55013cc17dd0fe99d8fc4ee5c67335ac($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select>\t\t\t\n\t\t\t\t\t\t\t<select name=\"day\">&nbsp;\n\t\t\t\t\t\t\t\t" . $this->__f__1822e89635ded337a3d3076228f2dbaf($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> \n\t\t\t\t\t\t\t<select name=\"year\">&nbsp;\n\t\t\t\t\t\t\t\t" . $this->__f__f84eeae15c4a7ebe2dc071fcc26ae6e3($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> <br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['ucp_birthday_optional']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t\n\t" . (count($custom_fields) ? "" . $this->__f__3235dcd35c7da59bcefe9c33223642a5($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t" : "") . "\n\t\n\t<div id='aboutme_editor' style='display: none'>\n\t\t<h3>{$this->lang->words['cp_edit_aboutme']}</h3>\n\t\t<div>\n\t\t\t{$amEditor}\n\t\t</div>\n\t\t<div class='ipsForm_submit' style='margin-top: 0;'>\n\t\t\t<a href='#' id='close_aboutme_editor' class='ipsButton'>{$this->lang->words['finish_aboutme_edit']}</a>\n\t\t</div>\n\t</div>\n\t" . ($required_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_required_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$required_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n\t" . ($optional_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_other_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$optional_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n</div>\n<script type=\"text/javascript\">\n//<![CDATA[\nfunction toggle_dst()\n{\n\tif ( \$( 'dst' ) )\n\t{\n\t\tif ( \$( 'dst' ).checked ){\n\t\t\t\$( 'dst-manual' ).style.display = 'none';\n\t\t} else {\n\t\t\t\$( 'dst-manual' ).style.display = 'block';\n\t\t}\n\t}\n}\ntoggle_dst();\n//]]>\n</script>";
     return $IPBHTML;
 }