<label for="name"><?php _e('Name', 'modern'); ?> </label> <?php UserForm::name_text(osc_user()); ?> </div> <div class="row"> <label for="email"><?php _e('E-mail', 'modern'); ?> </label> <span class="update"> <?php echo osc_user_email(); ?> <br /> <a href="<?php echo osc_change_user_email_url(); ?> "><?php _e('Modify e-mail', 'modern'); ?> </a> <a href="<?php echo osc_change_user_password_url(); ?> " ><?php _e('Modify password', 'modern'); ?> </a>
/** * Gets current user alert unsubscribe url * * @param string $email * @param string $secret * @return string */ function osc_user_unsubscribe_alert_url($email = '', $secret = '') { if ($secret == '') { $secret = osc_alert_secret(); } if ($email == '') { $email = osc_user_email(); } return osc_base_url(true) . '?page=user&action=unsub_alert&email=' . urlencode($email) . '&secret=' . $secret; }
function fn_email_contact_user($id, $yourEmail, $yourName, $phoneNumber, $message) { $mPages = new Page(); $aPage = $mPages->findByInternalName('email_contact_user'); $locale = osc_current_user_locale(); if(isset($aPage['locale'][$locale]['s_title'])) { $content = $aPage['locale'][$locale]; } else { $content = current($aPage['locale']); } $words = array(); $words[] = array( '{CONTACT_NAME}', '{USER_NAME}', '{USER_EMAIL}', '{USER_PHONE}', '{COMMENT}' ); $words[] = array( osc_user_name(), $yourName, $yourEmail, $phoneNumber, $message ); $title = osc_apply_filter('email_item_inquiry_title_after', osc_mailBeauty(osc_apply_filter('email_title', osc_apply_filter('email_item_inquiry_title', $content['s_title'], $id, $yourEmail, $yourName, $phoneNumber, $message)), $words), $id, $yourEmail, $yourName, $phoneNumber, $message); $body = osc_apply_filter('email_item_inquiry_description_after', osc_mailBeauty(osc_apply_filter('email_description', osc_apply_filter('email_item_inquiry_description', $content['s_text'], $id, $yourEmail, $yourName, $phoneNumber, $message)), $words), $id, $yourEmail, $yourName, $phoneNumber, $message); $emailParams = array ( 'from' => osc_contact_email(), 'subject' => $title, 'to' => osc_user_email(), 'to_name' => osc_user_name(), 'body' => $body, 'alt_body' => $body, 'reply_to' => $yourEmail ); if( osc_notify_contact_item() ) { $emailParams['add_bcc'] = osc_contact_email(); } osc_sendMail($emailParams); }
} osc_current_web_theme_path('header.php'); ?> <div class="row"> <div class="col-sm-4 col-md-3"> <div class="title"> <h1> <?php _e('User profile', 'osclasswizards'); ?> </h1> </div> <div class="user-card"> <figure><img class="img-responsive" src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim(osc_user_email()))); ?> ?s=400&d=<?php echo osc_current_web_theme_url('images/default.gif'); ?> " /></figure> <?php voting_item_detail_user(osc_user_id()); ?> <ul id="user_data"> <li class="name"> <h3><?php echo osc_user_name(); ?> </h3> </li>
function dd_picupload() { if (function_exists("profile_picture_upload")) { profile_picture_upload(); } else { ?> <img src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim(osc_user_email()))); ?> ?s=120&d=<?php echo osc_current_web_theme_url('images/user-default.jpg'); ?> " class="img-responsive" /> <?php } }
function fn_email_contact_user($id, $yourEmail, $yourName, $phoneNumber, $message) { $mPages = new Page(); $aPage = $mPages->findByInternalName('email_contact_user'); $locale = osc_current_user_locale(); $content = array(); if (isset($aPage['locale'][$locale]['s_title'])) { $content = $aPage['locale'][$locale]; } else { $content = current($aPage['locale']); } $words = array(); $words[] = array('{CONTACT_NAME}', '{USER_NAME}', '{USER_EMAIL}', '{USER_PHONE}', '{WEB_URL}', '{COMMENT}'); $words[] = array(osc_user_name(), $yourName, $yourEmail, $phoneNumber, '<a href="' . osc_base_url() . '" >' . osc_base_url() . '</a>', $message); $title = osc_mailBeauty(osc_apply_filter('email_title', osc_apply_filter('email_item_inquiry_title', $content['s_title'])), $words); $body = osc_mailBeauty(osc_apply_filter('email_description', osc_apply_filter('email_item_inquiry_description', $content['s_text'])), $words); $from = osc_contact_email(); $from_name = osc_page_title(); $add_bcc = ''; if (osc_notify_contact_item()) { $add_bcc = osc_contact_email(); } $emailParams = array('add_bcc' => $add_bcc, 'from' => $from, 'from_name' => $from_name, 'subject' => $title, 'to' => osc_user_email(), 'to_name' => osc_user_name(), 'body' => $body, 'alt_body' => $body, 'reply_to' => $yourEmail); osc_sendMail($emailParams); @unlink($path); }