Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions level_omega/appointment_field.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
*
*/
?>

<div <?php print drupal_attributes($field['#attributes'])?>>
<h3><?php print $field['#title']?>:</h3>
<p><span><?php print $field['#value']?></span></p>
</div>
<?php if (isset($field['#value']) && $field['#value'] != ""): ?>
<div <?php print drupal_attributes($field['#attributes'])?>>
<h3><?php print $field['#title']?>:</h3>
<p><span><?php print $field['#value']?></span></p>
</div>
<?php endif;?>
2 changes: 1 addition & 1 deletion level_omega/block.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
<?php endif;?>

<div class="content">
<?php print $block->content ?>
<?php print $block->content; ?>
</div>
</div>
175 changes: 0 additions & 175 deletions level_omega/page-user.tpl.php

This file was deleted.

17 changes: 9 additions & 8 deletions level_omega/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ function level_omega_preprocess(&$vars, $hook) {
$company_name = $vars['view']->result[0]->name;
}
}
if($vars['name'] == "director_profile") {
if ($vars['view']->result[0]->name) {
drupal_set_title($vars['view']->result[0]->name . ' director profile');
global $director_name;
$director_name = $vars['view']->result[0]->name;
}

}

if ($vars['name'] == 'ch_solr_transactions') {
// Get the date and set the title if the view is one of the main blocks
Expand Down Expand Up @@ -363,6 +355,15 @@ function level_omega_apachesolr_unclick_link($facet_text, $path, $options = arra
return apachesolr_l('<div class="link_text">' . $facet_text . '</div> (remove)', $path, $options);
}

function level_omega_preprocess_user_profile_item(&$variables) {
// Hide empty profile items
if ($variables['value'] == NULL) {
$variables['value'] = "N/A";
}
}



function level_omega_form_element($element, $value) {
// This is also used in the installer, pre-database setup.
$t = get_t();
Expand Down
2 changes: 1 addition & 1 deletion level_omega/user-profile-category.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
<h3><?php print $title; ?></h3>
<?php endif; ?>

<div class="profile-catagory">
<div <?php print $attributes; ?>>
<?php print $profile_items; ?>
</div>
4 changes: 2 additions & 2 deletions level_omega/user-profile-item.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
?>
<div <?php print $attributes; ?>>
<h4 class="identification-title"><?php print $title; ?></h4>
<div class="identification-content"><?php print $value; ?></div>
</div>
<div class="content"><span><?php print $value; ?></span></div>
</div>
46 changes: 3 additions & 43 deletions level_omega/user-profile.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,50 +41,10 @@
*/
?>
<?php if (!$account->hide_profile): ?>
<?php profile_load_profile($account); ?>

<h1 id="profile-title"><?php print ucwords(strtolower($account->name)); ?><?php print check_plain($account->profile_age['#value']); ?></h1>

<div class="profile clear-block">

<div class="linkedin_additional clear-block">
<?php print $account->content['linkedin_additional']['options']['#value']; ?>
</div>

<?php if (isset($account->content['identification'])): ?>
<div class="identification clear-block">
<div class="identification-top clear-block">
<div <?php print drupal_attributes($account->content['identification']['profile_nationality']['#attributes']); ?>>
<h4><?php print check_plain($account->content['identification']['profile_nationality']['#title']); ?></h4>
<div class="content"><span><?php print check_plain($account->content['identification']['profile_nationality']['#value']); ?></span></div>
</div>

<div <?php print drupal_attributes($account->content['identification']['profile_date_of_birth']['#attributes']); ?>>
<h4>Date of Birth</h4>
<div class="content"><span><?php print check_plain($account->content['identification']['profile_date_of_birth']['#value']); ?></span></div>
</div>

<div <?php print drupal_attributes($account->content['identification']['profile_age']['#attributes']); ?>>
<h4><?php print check_plain($account->content['identification']['profile_age']['#title']); ?></h4>
<div class="content"><span><?php print check_plain($account->content['identification']['profile_age']['#value']); ?> years</span></div>
</div>
</div>
<h1 id="profile-title"><?php print ucwords(strtolower($account->name)); ?><?php print check_plain($account->profile_age['#value']); ?></h1>

<div <?php print drupal_attributes($account->content['identification']['profile_occupation']['#attributes']); ?>>
<h4><?php print check_plain($account->content['identification']['profile_occupation']['#title']); ?></h4>
<div class="content"><span><?php print check_plain($account->content['identification']['profile_occupation']['#value']); ?></span></div>
</div>

<div <?php print drupal_attributes($account->content['identification']['profile_address']['#attributes']); ?>>
<h4><?php print check_plain($account->content['identification']['profile_address']['#title']); ?></h4>
<div class="content"><span><?php print check_plain($account->content['identification']['profile_address']['#value']); ?></span></div>
</div>
</div><!--/ .identification -->

<div class="appointments clear-block">
<?php print $profile['appointments']; ?>
</div>

<?php endif ?>
<div class="profile">
<?php print $user_profile ?>
</div>
<?php endif ?>