function theme_bootstrap_theme_create_comment_form($variables) { global $user; $form = $variables['form']; $output = '<div class="avatar">'; $output .= '<a href="' . url('user/' . $user->uid) . '"><img src="' . bootstrap_theme_get_user_picture($user) . '" alt="' . format_username($user) . '" /></a>'; $output .= '</div>'; $output .= '<div class="comment-create-form">'; $output .= drupal_render($form['body']); $output .= drupal_render($form['submit']); $output .= drupal_render($form['nid']); $output .= drupal_render_children($form); $output .= '</div>'; $output .= '<div class="clear"></div>'; return $output; }
function bootstrap_theme_user_edit_page($account) { require_once drupal_get_path('module', 'user') . '/user.pages.inc'; $output = ''; $output .= '<div class="public-profile-page">'; $output .= '<div class="page-title-bar">'; $output .= '<div class="inner">'; $output .= '<div class="profile-title">'; $output .= '<h2>My Profile</h2>'; $output .= '<strong>' . format_username($account) . '</strong>'; $output .= '</div>'; $output .= '<div class="profile-buttons">'; //$output .= '<a href="#" class="button">Add to Network</a>'; $output .= '<a href="' . url('messages/new') . '" class="button">Message</a>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $output .= '<div class="public-profile-info">'; $output .= '<div class="profile-picture">'; $output .= '<img src="' . bootstrap_theme_get_user_picture($account) . '" />'; $output .= '</div>'; $output .= '<div class="profile-extra">'; $output .= '<p class="main">Princeton University, Princeton, NJ</p>'; $output .= '<p>(Ranking)</p>'; $output .= '<p>(Badges)</p>'; $output .= '<p>Specialization</p>'; $output .= '</div>'; $output .= '<a href="' . url('user/' . $account->uid . '/about-me') . '" class="button">About Me</a>'; $output .= '<div class="clear"></div>'; $output .= '<div class="block contributions">'; $output .= '<div class="title-bar">Contributions</div>'; $output .= bootstrap_theme_profile_contributions($account); $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $form = drupal_get_form('user_profile_form', array($account, 'account')); $output .= drupal_render($form); return $output; }