Advertisement
DrupalCustom

tple

Mar 21st, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.04 KB | None | 0 0
  1. <?php
  2. // $Id: page.tpl.php,v 1.8.2.4 2010/11/19 14:42:44 danprobo Exp $
  3. ?>
  4. <div <?php print danland_page_class($page['sidebar_first'], $page['sidebar_second']); ?>>
  5. <div id="header">
  6. <div id="header-wrapper">
  7.     <?php if ($logo): ?>
  8.         <div id="logo-wrapper">
  9.             <div class="logo">
  10.                 <a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a>
  11.             </div>
  12.         </div><!-- end logo wrapper -->
  13.     <?php endif; ?>
  14.     <?php if ($site_name || $site_slogan) : ?>
  15.         <div id="branding-wrapper">
  16.             <?php if ($site_name) : ?>
  17.                 <?php if ($is_front) : ?>
  18.                     <h1 class="site-name"><a href="<?php print $base_path ?>" title="<?php print $site_name ?>"><?php print $site_name ?></a></h1>
  19.                 <?php endif; ?>
  20.                 <?php if (!$is_front) : ?>
  21.                     <h2 class="site-name"><a href="<?php print $base_path ?>" title="<?php print $site_name ?>"><?php print $site_name ?></a></h2>
  22.                 <?php endif; ?>
  23.             <?php endif; ?>
  24.             <?php if ($site_slogan) : ?>
  25.                 <div class='site-slogan'><?php print $site_slogan; ?></div>
  26.             <?php endif; ?>
  27.             </div><!-- end branding wrapper -->
  28.     <?php endif; ?>
  29.    
  30.     <?php if ($page['search_box']): ?>
  31.         <div id="search-box">
  32.             <?php print render ($page['search_box']); ?>
  33.         </div><!-- /search-box -->
  34.     <?php endif; ?>
  35.    
  36.  
  37.  
  38.     <?php if (!$is_admin): ?>
  39.         <div id="authorize">
  40.                   <ul><?php global $user; if ($user->uid != 0) { print '<li class="first">' .t('Logged in as '). '<a href="' .url('user/'.$user->uid). '">' .$user->name. '</a></li>'; print '<li><a href="' .url('user/logout'). '">' .t('Logout'). '</a></li>'; } else { print '<li class="first"><a href="' .url('user'). '">' .t('Login'). '</a></li>'; print '<li><a href="' .url('user/register'). '">' .t('Register'). '</a></li>'; } ?></ul>
  41.         </div>
  42.     <?php endif; ?>
  43.  
  44.       </div><!-- end header-wrapper -->
  45. </div> <!-- /header -->
  46. <div style="clear:both"></div>
  47.  
  48. <div id="menu">
  49. <div id="rounded-menu-left"></div>
  50.  <?php if ($main_menu || $page['superfish_menu']): ?>
  51.       <div id="<?php print $main_menu ? 'nav' : 'superfish' ; ?>">
  52.         <?php
  53.                          if ($main_menu) {
  54.                   print theme('links__system_main_menu', array('links' => $main_menu));  
  55.                       }
  56.                       elseif (!empty($page['superfish_menu'])) {
  57.                         print render ($page['superfish_menu']);
  58.                       }
  59.         ?>
  60.       </div> <!-- end primary -->
  61.     <?php endif; ?>
  62. <div id="rounded-menu-right"></div>
  63. </div> <!-- end menu -->
  64. <div style="clear:both"></div>
  65.  
  66. <?php if ($page['highlighted']): ?><div id="mission-wrapper"><div id="mission">
  67. <?php print render ($page['highlighted']); ?>
  68. </div></div>
  69. <?php endif; ?>
  70.  
  71.  <?php if($page['preface_first'] || $page['preface_middle'] || $page['preface_last']) : ?>
  72.     <div style="clear:both"></div>
  73.     <div id="preface-wrapper" class="in<?php print (bool) $page['preface_first'] + (bool) $page['preface_middle'] + (bool) $page['preface_last']; ?>">
  74.           <?php if($page['preface_first']) : ?>
  75.           <div class="column A">
  76.             <?php print render ($page['preface_first']); ?>
  77.           </div>
  78.           <?php endif; ?>
  79.           <?php if($page['preface_middle']) : ?>
  80.           <div class="column B">
  81.             <?php print render ($page['preface_middle']); ?>
  82.           </div>
  83.           <?php endif; ?>
  84.           <?php if($page['preface_last']) : ?>
  85.           <div class="column C">
  86.             <?php print render ($page['preface_last']); ?>
  87.           </div>
  88.           <?php endif; ?>
  89.       <div style="clear:both"></div>
  90.     </div>
  91.     <?php endif; ?>
  92.  
  93. <div style="clear:both"></div>
  94. <div id="wrapper">
  95.  
  96.     <?php if ($page['sidebar_first']): ?>
  97.       <div id="sidebar-left" class="column sidebar"><div class="section">
  98.         <?php print render($page['sidebar_first']); ?>
  99.       </div></div> <!-- end sidebar-first -->
  100.     <?php endif; ?>
  101.  
  102. <div id="content">
  103.             <a id="main-content"></a>
  104.             <?php if ($page['content_top']) : ?><div class="content-top"><?php print render ($page['content_top']); ?></div>
  105.             <?php endif; ?>
  106.            
  107.             <?php if ($show_messages) { print $messages; }; ?>
  108.             <?php print render($title_prefix); ?>
  109.                 <?php if ($title): ?>
  110.                         <h1 class="title" id="page-title">
  111.                             <?php print $title; ?>
  112.                         </h1>
  113.                      <?php endif; ?>
  114.             <?php print render($title_suffix); ?>
  115.             <?php if ($tabs): ?>
  116.                     <div class="tabs">
  117.                         <?php print render($tabs); ?>
  118.                     </div>
  119.             <?php endif; ?>
  120.             <?php print render($page['help']); ?>
  121.             <?php if ($action_links): ?>
  122.                     <ul class="action-links">
  123.                         <?php print render($action_links); ?>
  124.                     </ul>
  125.             <?php endif; ?>
  126.               <?php if ($page['content']) : ?><div class="content-middle"><?php print render ($page['content']); ?></div>
  127.             <?php endif; ?>
  128.             <?php if ($page['content_bottom']) : ?><div class="content-bottom"><?php print render ($page['content_bottom']); ?></div>
  129.             <?php endif; ?>
  130.  
  131. </div> <!-- end content -->
  132.  
  133.     <?php if ($page['sidebar_second']): ?>
  134.       <div id="sidebar-right" class="column sidebar"><div class="section">
  135.         <?php print render($page['sidebar_second']); ?>
  136.       </div></div> <!-- end sidebar-second -->
  137.     <?php endif; ?>
  138. <div style="clear:both"></div>
  139. </div> <!-- end wrapper -->
  140.  
  141.  
  142. <?php if($page['bottom_first'] || $page['bottom_middle'] || $page['bottom_last']) : ?>
  143.     <div style="clear:both"></div>
  144.     <div id="bottom-teaser" class="in<?php print (bool) $page['bottom_first'] + (bool) $page['bottom_middle'] + (bool) $page['bottom_last']; ?>">
  145.           <?php if($page['bottom_first']) : ?>
  146.           <div class="column A">
  147.             <?php print render ($page['bottom_first']); ?>
  148.           </div>
  149.           <?php endif; ?>
  150.           <?php if($page['bottom_middle']) : ?>
  151.           <div class="column B">
  152.             <?php print render ($page['bottom_middle']); ?>
  153.           </div>
  154.           <?php endif; ?>
  155.           <?php if($page['bottom_last']) : ?>
  156.           <div class="column C">
  157.             <?php print render ($page['bottom_last']); ?>
  158.           </div>
  159.           <?php endif; ?>
  160.       <div style="clear:both"></div>
  161.     </div> <!-- end bottom first etc. -->
  162.     <?php endif; ?>
  163.  
  164.  
  165.  <?php if($page['bottom_1'] || $page['bottom_2'] || $page['bottom_3'] || $page['bottom_4']) : ?>
  166.     <div style="clear:both"></div><!-- Do not touch -->
  167.     <div id="bottom-wrapper" class="in<?php print (bool) $page['bottom_1'] + (bool) $page['bottom_2'] + (bool) $page['bottom_3'] + (bool) $page['bottom_4']; ?>">
  168.           <?php if($page['bottom_1']) : ?>
  169.           <div class="column A">
  170.             <?php print render ($page['bottom_1']); ?>
  171.           </div>
  172.           <?php endif; ?>
  173.           <?php if($page['bottom_2']) : ?>
  174.           <div class="column B">
  175.             <?php print render ($page['bottom_2']); ?>
  176.           </div>
  177.           <?php endif; ?>
  178.           <?php if($page['bottom_3']) : ?>
  179.           <div class="column C">
  180.             <?php print render ($page['bottom_3']); ?>
  181.           </div>
  182.           <?php endif; ?>
  183.           <?php if($page['bottom_4']) : ?>
  184.           <div class="column D">
  185.             <?php print render ($page['bottom_4']); ?>
  186.           </div>
  187.           <?php endif; ?>
  188.       <div style="clear:both"></div>
  189.     </div><!-- end bottom -->
  190.     <?php endif; ?>
  191.  
  192. <div style="clear:both"></div>
  193. <div id="footer-wrapper">
  194. <?php if ($page['footer']): ?>
  195. <div id="footer">
  196.  <?php print render ($page['footer']); ?>
  197. </div>
  198. <?php endif; ?>
  199. <?php if($secondary_menu) : ?>
  200. <div id="subnav-wrapper">
  201. <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'subnav', 'class' => array('links', 'clearfix')))); ?>
  202. </div>
  203. <?php endif; ?>
  204. </div> <!-- end footer wrapper -->
  205.  
  206. <div style="clear:both"></div>
  207. <div id="notice"><p>Theme by <a href="http://www.danetsoft.com">Danetsoft</a> and <a href="http://www.danpros.com">Danang Probo Sayekti</a> inspired by <a href="http://www.maksimer.no">Maksimer</a></p></div>
  208. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement