-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodalframe-page.tpl.php
44 lines (42 loc) · 1.73 KB
/
modalframe-page.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
// $Id: modalframe-page.tpl.php,v 1.1.2.4 2009/06/19 16:20:04 markuspetrux Exp $
/**
* @file
* Template file for a Modal Frame based on jQuery UI dialog.
*
* This template provides the same exact variables provided to page.tpl.php,
* and serves the same purpose, with the exeption that this template does not
* render regions such as head, left and right because the main purpose of this
* template is to render a frame that is displayed on a modal jQuery UI dialog.
*
* @see modalframe_theme_registry_alter()
* @see modalframe_preprocess_page()
* @see template_preprocess_page()
* @see template_preprocess()
* @see theme()
*/
?><!DOCTYPE html>
<html dir="<?php print $language->dir; ?>" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<?php print $head; ?>
<title><?php print (!empty($title) ? strip_tags($title) : $head_title); ?></title>
<?php print $styles; ?>
<?php print $scripts; ?>
</head>
<body>
<div class="modalframe-page-wrapper">
<div class="modalframe-page-container clear-block">
<div class="modalframe-page-content">
<?php if(arg(1) == 'login') print t('Log in or <a href="@href" class="@class">sign up</a> to become a member.', array('@href' => base_path().'cmtls/register', '@class' => 'modalframe-processed')); ?>
<?php if(arg(1) == 'register') print t('Register or <a href="@href" class="@class">log in</a> if you already have an account.', array('@href' => base_path().'cmtls/login', '@class' => 'modalframe-processed')); ?>
<?php if ($show_messages && $messages): print $messages; endif; ?>
<?php print $help; ?>
<div class="clear-block">
<?php print $content; ?>
</div>
</div>
</div>
</div>
<?php print $closure; ?>
</body>
</html>