function bootstrap_theme_category_page($vocab_name = '')
{
    $output = '';
    bootstrap_theme_set_page_title_class('');
    //bootstrap_theme_set_page_title_block('<div class="dashboard-search-form"></div>');
    $output .= '<div class="category-page">' . _bootstrap_theme_category_contents($vocab_name) . '</div>';
    return $output;
}
function bootstrap_theme_pending_approval_page()
{
    bootstrap_theme_set_page_content_class('pending-approval-page');
    bootstrap_theme_set_page_title_class('only-line');
    drupal_set_title('Pending Approval');
    $output = '';
    $output .= '<div class="contribution-list">';
    $output .= '<h3>Contributions</h3>';
    $output .= _bootstrap_theme_pending_approval_contributions();
    $output .= '</div>';
    $output .= '<div class="reported-list">';
    $output .= '<h3>Reported</h3>';
    $output .= _bootstrap_theme_pending_approval_reported_contents();
    $output .= '</div>';
    return $output;
}
Example #3
0
function bootstrap_theme_profile_aboutme_page($account)
{
    bootstrap_theme_set_page_content_class('profile-about-me-page public-profile-page');
    bootstrap_theme_set_page_title_block('<div class="buttons"><!--<a href="#" class="button">Add to Network</a>--><a href="' . url('messages/new') . '" class="button">Message</a></div>');
    bootstrap_theme_set_page_small_title('<strong>Professor in Bioengineering</strong>');
    bootstrap_theme_set_page_title_class('profile-title');
    drupal_set_title(format_username($account));
    $output = '';
    $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">' . bootstrap_theme_display_user_location($account) . '</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">Download PDF</a>';
    $output .= '<div class="clear"></div>';
    $output .= '<div class="block biography">';
    $output .= '<div class="title-bar">Biography</div>';
    $output .= '<div class="block-content">';
    $output .= '<p>' . (!empty($account->field_publications[LANGUAGE_NONE]) ? nl2br($account->field_publications[LANGUAGE_NONE][0]['value']) : '') . '</p>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="block float-left">';
    $output .= '<div class="title-bar">Experience</div>';
    $output .= '<div class="block-content">';
    $output .= '<p>' . (!empty($account->field_experience[LANGUAGE_NONE]) ? nl2br($account->field_experience[LANGUAGE_NONE][0]['value']) : '') . '</p>';
    /*$output .= '<div class="title">California State University - Chico</div>';
      $output .= '<p>Professsor of Biology</p>';
      $output .= '<div class="date">August 1982 - Present</div>';*/
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="block float-right">';
    $output .= '<div class="title-bar">Education</div>';
    if (!empty($account->field_education[LANGUAGE_NONE])) {
        foreach ($account->field_education[LANGUAGE_NONE] as $val) {
            $field_edus = explode(',', $val['value']);
            $output .= '<div class="block-content">';
            $output .= '<div class="title">' . (!empty($field_edus[0]) ? nl2br($field_edus[0]) : '') . '</div>';
            $output .= '<p>' . (!empty($field_edus[1]) ? nl2br($field_edus[1]) : '') . '</p>';
            $output .= '<div class="date">' . (!empty($field_edus[2]) ? nl2br($field_edus[2]) : '') . '</div>';
            $output .= '</div>';
        }
    }
    $output .= '</div>';
    $output .= '<div class="clear"></div>';
    $output .= '<div class="block float-left">';
    $output .= '<div class="title-bar">Expertise and Interests</div>';
    $output .= '<div class="block-content">';
    $output .= '<p>' . (!empty($account->field_expertise[LANGUAGE_NONE]) ? nl2br($account->field_expertise[LANGUAGE_NONE][0]['value']) : '') . '</p>';
    //$output .= '<p>Genetics</p>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="block float-right">';
    $output .= '<div class="title-bar">Associations</div>';
    $output .= '<div class="block-content">';
    $output .= '<p>' . (!empty($account->field_work_address[LANGUAGE_NONE]) ? nl2br($account->field_work_address[LANGUAGE_NONE][0]['value']) : '') . '</p>';
    //$output .= '<div class="title">Southern Cal. American Society for Microbiology (SCASM)</div>';
    //$output .= '<p>Member</p>';
    //$output .= '<div class="date">December 2010 - Present</div>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="clear"></div>';
    $output .= '<div class="block activity-feeds">';
    $output .= '<div class="title-bar">Contributors</div>';
    $output .= '<div class="block-content">';
    $output .= bootstrap_theme_profile_aboutme_activity_feeds($account);
    $output .= '</div>';
    $output .= '</div>';
    return $output;
}