Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Profile.template.php
- function template_main()
- {
- // Our Global Variables.
- global $context, $scripturl, $settings, $member;
- echo '<div class="floatleft" style="width: 23%;">';
- switch ($member['gender']['name'])
- {
- case 'Male':
- $gender = '-green';
- break;
- case 'Female':
- $gender = '-green-female';
- break;
- default:
- $gender = '-silhouette';
- break;
- }
- $navigate_links = array(
- 'general' => array(
- 'title' => 'General',
- 'icon' => 'user' . $gender,
- ),
- 'notes' => array(
- 'title' => 'Notes',
- 'icon' => 'notebook',
- ),
- );
- // Locations
- echo '<div class="cat_bar" style="height: 28px;">
- <h3 class="catbg">
- <span class="floatleft" style="width: 18px; margin-top: 6px;">
- <img src="', $settings['default_theme_url'], '/images/socialprofile/compass.png" alt="" />
- </span>
- Navigate To...
- </h3>
- </div>
- <div class="roundframe rfix">
- <div class="innerframe">
- <div class="content">';
- foreach ($navigate_links as $identifier => $link)
- {
- echo '<div class="information">
- <span class="floatleft" style="width: 18px; margin-top: -1px;">
- <img src="', $settings['default_theme_url'], '/images/socialprofile/', $link['icon'], '.png" alt="" />
- </span>
- ', $link['title'], '
- </div>';
- }
- echo '
- </div>
- </div>
- </div>
- <span class="lowerframe"><span></span></span>';
- echo '</div>';
- echo '<br class="clear" />';
- }
- ?>
Add Comment
Please, Sign In to add comment