simplelogin-8.x-1.0/templates/page--simplelogin.tpl.php

templates/page--simplelogin.tpl.php
<?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 endif; ?>
  <?php endif; ?>
  <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 endif; ?>
  	<?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 endif; ?>
  </div>
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc