Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <?php
  2.  
  3. // Profile.template.php
  4. function template_main()
  5. {
  6.  
  7.     // Our Global Variables.
  8.     global $context, $scripturl, $settings, $member;
  9.  
  10.     echo '<div class="floatleft" style="width: 23%;">';
  11.  
  12.     switch ($member['gender']['name'])
  13.     {
  14.         case 'Male':
  15.             $gender = '-green';
  16.             break;
  17.         case 'Female':
  18.             $gender = '-green-female';
  19.             break;
  20.         default:
  21.             $gender = '-silhouette';
  22.             break;
  23.     }
  24.  
  25.     $navigate_links = array(
  26.         'general' => array(
  27.             'title' => 'General',
  28.             'icon' => 'user' . $gender,
  29.         ),
  30.         'notes' => array(
  31.             'title' => 'Notes',
  32.             'icon' => 'notebook',
  33.         ),
  34.     );
  35.  
  36.     // Locations
  37.     echo '<div class="cat_bar" style="height: 28px;">
  38.             <h3 class="catbg">
  39.                 <span class="floatleft" style="width: 18px; margin-top: 6px;">
  40.                     <img src="', $settings['default_theme_url'], '/images/socialprofile/compass.png" alt="" />
  41.                 </span>
  42.                 Navigate To...
  43.             </h3>
  44.         </div>
  45.         <div class="roundframe rfix">
  46.             <div class="innerframe">
  47.                 <div class="content">';
  48.                     foreach ($navigate_links as $identifier => $link)
  49.                     {
  50.                         echo '<div class="information">
  51.                             <span class="floatleft" style="width: 18px; margin-top: -1px;">
  52.                                 <img src="', $settings['default_theme_url'], '/images/socialprofile/', $link['icon'], '.png" alt="" />
  53.                             </span>
  54.                             ', $link['title'], '
  55.                         </div>';
  56.                     }
  57.                 echo '
  58.                 </div>
  59.             </div>
  60.         </div>
  61.     <span class="lowerframe"><span></span></span>';
  62.  
  63.     echo '</div>';
  64.  
  65.     echo '<br class="clear" />';
  66.  
  67. }
  68.  
  69. ?>
Add Comment
Please, Sign In to add comment