Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/application/modules/default/views/scripts/index/index.phtml
2010-10-03 01:38:49 +02:00

55 lines
No EOL
1.1 KiB
PHTML

<h1><?=ucfirst($this->app['url']) ?></h1>
<p><?=$this->translate('START_TXT') ?></p>
<?php
function get_gravatar( $email, $s = 80, $d = '404', $r = 'g', $img = false, $atts = array() ) {
$url = 'http://www.gravatar.com/avatar/';
$url .= md5( strtolower( trim( $email ) ) );
$url .= "?s=$s&d=$d&r=$r";
if ( $img ) {
$url = '<img src="' . $url . '"';
foreach ( $atts as $key => $val )
$url .= ' ' . $key . '="' . $val . '"';
$url .= ' />';
}
return $url;
}
//echo '<img src="'. get_gravatar('someone@somewhere.com') .'" />'
?>
<p>Translated: <?=$this->translate('uw:example', 'home', 'about', true) ?></p>
<form>
<fieldset>
<label for="t1">Text</label>
<input type="text" id="t1" /><br />
<label for="ta1">Areaaaa</label>
<textarea id="ta1"></textarea><br />
<input type="submit" />
</fieldset>
</form>
<table>
<tr>
<th>abc</th>
<th>bab</th>
</tr>
<tr>
<td>abc</td>
<td>bbb</td>
</tr>
</table>
<?php
$user = new User(array('firstName' => 'Kalle', 'lastName' => 'Andersson'));
$user->save();
?>