page.tpl.php in Drupal for Facebook 5
File
themes/fb_fbml/page.tpl.php
View source
<?php
print $styles;
if ($fbjs) {
?>
<script><!--
// Javascript
var Drupal = Drupal || {};
/**
* Extends the current object with the parameter. Works recursively.
*/
Drupal.extend = function(obj) {
for (var i in obj) {
if (this[i]) {
Drupal.extend.apply(this[i], [obj[i]]);
}
else {
this[i] = obj[i];
}
}
};
--></script>
<?php
print $js_settings;
?>
<?php
print $fbjs;
?>
<?php
}
?>
<div class="page-wrap <?php
print $body_classes;
?>">
<div id="canvas-header" class="header">
<?php
print $breadcrumb;
print $header;
if ($logo || $site_name) {
print '<h1><a href="' . url('<front>') . '" title="' . $site_name . '">';
if ($logo) {
print '<img src="' . check_url($logo) . '" alt="' . $site_name . '" id="logo" />';
}
print $site_name . '</a>';
if (!$site_name) {
print $title;
}
print '</h1>';
}
if ($site_name) {
?>
<h1><?php
print $title;
?></h1>
<?php
}
?>
<div id="end-canvas-header"><!-- IE needs help --></div>
</div>
<?php
print $tabs;
?>
<div id="content-wrap" class="content-wrap">
<div id="content-main" class="content-main">
<?php
print $messages;
print $content;
if ($content_footer) {
?>
<div id="content-footer" class="content-footer">
<?php
print $content_footer;
?>
</div>
<?php
}
?>
</div>
<?php
if ($sidebar_right) {
?>
<div id="sidebar-right" class="sidebar-right">
<?php
print $sidebar_right;
print $admin;
?>
</div>
<?php
}
?>
<div class="clear"></div>
</div>
<?php
if ($canvas_footer) {
?>
<div id="canvas-footer" class="canvas-footer">
<?php
print $canvas_footer;
?>
</div>
<?php
}
?>
</div>