Advertisement
Guest User

Untitled

a guest
Feb 4th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. page--front.tpl.php
  2.  
  3. ?>
  4. <?php if (!$in_overlay): // hide in overlay ?>
  5.  
  6. <?php if ($page['leaderboard']): ?>
  7. <div id="leaderboard" class="clearfix">
  8. <?php print render($page['leaderboard']); ?>
  9. </div>
  10. <?php endif; ?>
  11.  
  12. <?php if ($secondary_menu_links): ?>
  13. <div id="secondary-menu-wrapper" class="clearfix">
  14. <div class="secondary-menu-inner"><?php print $secondary_menu_links; ?></div>
  15. </div>
  16. <?php endif; ?>
  17. <div id="header" class="clearfix">
  18.  
  19. <?php if ($site_logo || $site_name || $site_slogan): ?>
  20. <div id="branding">
  21.  
  22. <?php if ($site_logo or $site_name): ?>
  23. <?php if ($title): ?>
  24. <div class="logo-site-name"><strong>
  25. <?php if ($site_logo): ?><span id="logo"><?php print $site_logo; ?></span><?php endif; ?>
  26. <?php if ($site_name): ?><span id="site-name"><?php print $site_name; ?></span><?php endif; ?>
  27. </strong></div>
  28. <?php else: /* Use h1 when the content title is empty */ ?>
  29. <h1 class="logo-site-name">
  30. <?php if ($site_logo): ?><span id="logo"><?php print $site_logo; ?></span><?php endif; ?>
  31. <?php if ($site_name): ?><span id="site-name"><?php print $site_name; ?></span><?php endif; ?>
  32. </h1>
  33. <?php endif; ?>
  34. <?php endif; ?>
  35.  
  36. <?php if ($site_slogan): ?>
  37. <div id="site-slogan"><?php print $site_slogan; ?></div>
  38. <?php endif; ?>
  39.  
  40. </div> <!-- /branding -->
  41. <?php endif; ?>
  42. <?php if ($page['header']): ?>
  43. <div id="header-blocks"><?php print render($page['header']); ?></div>
  44. <?php endif; ?>
  45.  
  46. </div> <!-- /header -->
  47.  
  48.  
  49. <?php if ($main_menu_links): ?>
  50. <div id="main-menu-wrapper" class="clearfix">
  51. <div class="main-menu-inner"><?php print $main_menu_links; ?></div>
  52. </div>
  53. <?php endif; ?>
  54.  
  55. <?php endif; // end hide in overlay ?>
  56.  
  57. <?php print $breadcrumb; ?>
  58. <?php print $messages; ?>
  59. <?php print render($page['help']); ?>
  60.  
  61. <?php if ($page['secondary_content'] && !$in_overlay): // hide in overlay ?>
  62. <div id="secondary-content">
  63. <?php print render($page['secondary_content']); ?>
  64. </div>
  65. <?php endif; ?>
  66.  
  67. <div id="columns" class="clear clearfix">
  68. <div id="content-column">
  69. <div class="content-inner">
  70.  
  71. <?php if ($page['highlighted']): ?>
  72. <div id="highlighted"><?php print render($page['highlighted']); ?></div>
  73. <?php endif; ?>
  74.  
  75. <div id="main-content">
  76. <?php print render($title_prefix); ?>
  77. <?php if ($title): ?>
  78. <h1 id="page-title"><?php print $title; ?></h1>
  79. <?php endif; ?>
  80. <?php print render($title_suffix); ?>
  81.  
  82. <?php if ($tabs): ?>
  83. <div class="local-tasks"><?php print render($tabs); ?></div>
  84. <?php endif; ?>
  85.  
  86. <?php if ($action_links): ?>
  87. <ul class="action-links"><?php print render($action_links); ?></ul>
  88. <?php endif; ?>
  89.  
  90. <div id="content">
  91. <?php print render($page['content']); ?>
  92. </div>
  93. </div>
  94.  
  95. </div>
  96. </div>
  97.  
  98. <?php if ($page['sidebar_first']): ?>
  99. <div id="sidebar-first" class="sidebar"><?php print render($page['sidebar_first']); ?></div>
  100. <?php endif; ?>
  101.  
  102. <?php if ($page['sidebar_second']): ?>
  103. <div id="sidebar-second" class="sidebar"><?php print render($page['sidebar_second']); ?></div>
  104. <?php endif; ?>
  105.  
  106. </div> <!-- /columns -->
  107.  
  108. <?php if (!$in_overlay): // hide in overlay ?>
  109.  
  110. <?php if ($page['tertiary_content']): ?>
  111. <div id="tertiary-content">
  112. <?php print render($page['tertiary_content']); ?>
  113. </div>
  114. <?php endif; ?>
  115.  
  116. <?php if ($page['footer'] || $feed_icons): ?>
  117. <div id="footer">
  118. <?php print render($page['footer']); ?>
  119. <?php /*?><?php print $feed_icons; ?><?php */?>
  120. </div>
  121. <?php endif; ?>
  122.  
  123. <?php endif; // end hide in overlay ?>
  124.  
  125.  
  126. page.css
  127.  
  128. #container {
  129. width: 960px;
  130. height: 863px;
  131. }
  132.  
  133. #container {
  134. background-image: url(../images/lucento_bg.jpg);
  135. background-repeat:no-repeat;
  136. background-position: center top;
  137. }
  138.  
  139.  
  140.  
  141. /* Column wrappers */
  142. #columns {
  143. padding-left: 10px;
  144. }
  145. .columns-inner {}
  146.  
  147. /* Content wrappers */
  148. #content-column {}
  149. .content-inner {}
  150.  
  151. /* Main content wrappers*/
  152. #main-content {}
  153. #content {}
  154.  
  155.  
  156. /**********************************************************
  157. * Header Elements
  158. **********************************************************/
  159. /* #header wraps #branding and #header-blocks. */
  160. #header {
  161. background-image: url(../images/brushed_steel_topc.png);
  162. background-repeat:no-repeat;
  163. background-position: center top;
  164. width: 960px;
  165. height: 208px;
  166. /*background-color: #1f1f1f;
  167. border-top: 30px solid #3e3e3e;
  168. border-bottom: 3px solid #3e3e3e;
  169. height: 120px;*/
  170. }
  171.  
  172. /* #branding wraps #logo, #site-name and #site-slogan. */
  173. #branding {
  174. float: left; /* LTR */
  175. }
  176.  
  177. /* h1 is for the front page only, all others use the div. */
  178. #branding h1 {
  179. font-size: 1em; /* reset h1, do not change! */
  180. }
  181.  
  182. /* Logo and site_name wrapper. */
  183. .logo-site-name {}
  184. div.logo-site-name,
  185. h1.logo-site-name {}
  186.  
  187. /* Remove display:block if you want the site name inline with the logo. */
  188. .logo-site-name span {
  189. display: block;
  190. }
  191.  
  192. /* Logo. */
  193. #logo {
  194. position: relative;
  195. float: left;
  196. margin-left: 20px;
  197. margin-top: 40px;
  198. z-index: 10;
  199. }
  200.  
  201. #site-name {
  202. font-weight: bold; /* Bold or else the line heights vary. */
  203. font-size: 4em;
  204. line-height: 1.5;
  205. position: relative;
  206. float: left;
  207. margin-top: 25px;
  208. }
  209.  
  210. /* Override default pseudo class styles. */
  211. #site-name a:link,
  212. #site-name a:visited {
  213. text-decoration:none;
  214. color: #ffffff;
  215. }
  216.  
  217. #site-name a:hover,
  218. #site-name a:focus,
  219. #site-name a:active {}
  220.  
  221. /* Site slogan. */
  222. #site-slogan {
  223. position: relative;
  224. font-family: Arial, Helvetica, sans-serif;
  225. font-size: 20px;
  226. font-weight: bold;
  227. margin-left: 200px;
  228. z-index: 30;
  229. color: #212121;
  230. }
  231.  
  232. .........
  233.  
  234. /*drupal 7, genesis theme*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement