You are here

page--simplelogin.tpl.php in SimpleLogin 7

File

templates/page--simplelogin.tpl.php
View source
<?php

/**
 * @file
 * Customize login page HTML structure.
 */
$path = drupal_get_path_alias();
?>
<div class="loginregis">  
  <?php

if ($path == 'user/password' || $path == 'user/register') {
  ?>
    <?php

  print l(t('Login'), 'user/login', array(
    'attributes' => array(
      'class' => array(
        'signup',
      ),
    ),
  ));
  ?>
  <?php

}
else {
  ?>
    <?php

  if (variable_get('user_register')) {
    ?>
      <?php

    print l(t('Sign-up'), 'user/register', array(
      'attributes' => array(
        'class' => array(
          'signup',
        ),
      ),
    ));
    ?>
    <?php

  }
  ?>
  <?php

}
?>
  <div class="ex-center-position">
  	<?php

if (isset($logo)) {
  ?>
  	  <a href="<?php

  print $front_page;
  ?>" title="<?php

  print t('Home');
  ?>" rel="home" class="login-logo">
  	  	<img src="<?php

  print $logo;
  ?>" alt="<?php

  print $site_name;
  ?>" />
  	  </a>
  	<?php

}
else {
  ?>
  	  <h3><?php

  print $site_name;
  ?></h3>
  	<?php

}
?>
  	<?php

print $messages;
?>
  	<?php

print render($page['content']);
?>
  	<?php

if ($path == 'user' || $path == 'user/login') {
  ?>
  	  <p><?php

  print t('Forgot password?');
  ?> <?php

  print l(t('Click here'), 'user/password');
  ?></p>
  	<?php

}
?>
  </div>
</div>