logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: squirrelmail/templates/default image.tpl, NONE, 1.1 login.tpl, 1.7, 1.: msg#00121

Subject: CVS: squirrelmail/templates/default image.tpl, NONE, 1.1 login.tpl, 1.7, 1.8
Update of /cvsroot/squirrelmail/squirrelmail/templates/default
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7536/templates/default

Modified Files:
        login.tpl 
Added Files:
        image.tpl 
Log Message:
Remove HTML from login src and add image template

--- NEW FILE ---
<?php

/**
  * image.tpl
  *
  * Template for constructing an image.
  *
  * The following variables are available in this template:
  *      + $src     - the image source path
  *      + $class   - CSS class name (optional; may not be present)
  *      + $alt     - alternative link text
  *                   (optional; may not be present)
  *      + $title   - the image's title attribute value
  *                   (optional; may not be present)
  *      + $width   - the width the image should be shown in
  *                   (optional; may not be present)
  *      + $height  - the height the image should be shown in
  *                   (optional; may not be present)
  *      + $align   - the image's alignment attribute value
  *                   (optional; may not be present)
  *      + $border  - the image's border attribute value
  *                   (optional; may not be present)
  *      + $hspace  - the image's hspace attribute value
  *                   (optional; may not be present)
  *      + $vspace  - the image's vspace attribute value
  *                   (optional; may not be present)
  *      + $onclick - onClick JavaScript handler (optional; may not be present)
  *
  * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id: image.tpl,v 1.1 2006/12/30 21:41:41 pdontthink Exp $
  * @package squirrelmail
  * @subpackage templates
  */


// retrieve the template vars
//
extract($t);


?><img src="<?php echo $src ?>"<?php if (!empty($class)) echo ' class="' . 
$class . '"'; ?><?php if (!empty($alt)) echo ' alt="' . $alt . '"'; ?><?php if 
(!empty($title)) echo ' title="' . $title . '"'; ?><?php if (!empty($onclick)) 
echo ' onclick="' . $onclick . '"'; ?><?php if (!empty($width)) echo ' width="' 
. $width . '"'; ?><?php if (!empty($height)) echo ' height="' . $height . '"'; 
?><?php if (!empty($align)) echo ' align="' . $align . '"'; ?><?php if 
(!empty($border)) echo ' border="' . $border . '"'; ?><?php if 
(!empty($hspace)) echo ' hspace="' . $hspace . '"'; ?><?php if 
(!empty($vspace)) echo ' vspace="' . $vspace . '"'; ?> />

Index: login.tpl
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/templates/default/login.tpl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -r1.7 -r1.8
--- login.tpl   21 Sep 2006 15:19:44 -0000      1.7
+++ login.tpl   30 Dec 2006 21:41:41 -0000      1.8
@@ -33,7 +33,7 @@
 <table cellspacing="0">
  <tr>
   <td class="sqm_loginTop" colspan="2">
-   <?php echo $logo_str; ?>
+   <?php echo $logo_str; if (!empty($logo_str)) echo '<br />'; ?>
    <?php echo $sm_attribute_str; ?>
   </td>
  </tr>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>