<input type="text" name="antispam_math_result" id="f_antispam_math_result" tabindex="5" size="3" /> </p> <p class="lighter padded-to-label"> <?php echo l("An asterisk (*) denotes a required field."); ?> <?php printf(l('%s syntax allowed.'), a('Markdown', array('class' => 'external', 'href' => Wikipedia::lookup_url('Markdown')))); ?> </p> <p class="padded-to-label"> <input type="checkbox" name="followup_email_notify" id="f_followup_email_notify" value="1" /> <label for="f_followup_email_notify"> <?php echo l('Notify me of followup comments via e-mail'); ?> </label> </p> <p class="form-left padded-to-label"> <input type="hidden" name="post_id" value="<?php echo $this->article->id; ?> " /> <input type="submit" name="submit" id="submit" tabindex="6" value="<?php echo localized("Send"); ?> " /> </p> </form> </div>
<?php $navbar_sections = array(array('title' => localized('Blog'), "url" => $this->url_to(array('controller' => 'diario'))), array('title' => localized('Projects'), "url" => $this->url_to(array('controller' => 'projects'))), array('title' => localized('Photos'), "url" => $this->url_to(array('controller' => 'photos'))), array('title' => localized('About'), "url" => $this->url_to(array('controller' => 'about')))); if (Login::is_logged_in()) { $navbar_sections[] = array('title' => localized('Meta'), "url" => $this->url_to(array('controller' => 'meta'))); $navbar_sections[] = array('title' => localized('Backend'), "url" => $this->url_to(array('controller' => 'backend'))); } ?> <h1>emeraldion lodge</h1> <nav> <ul id="navbar"> <?php $i = 0; $navbar_length = count($navbar_sections); foreach ($navbar_sections as $navbar_section) { $classname = 'navitem'; $accesskey = 'a'; //accesskey($navbar_section['title']); $url_items = explode("/", $navbar_section["url"]); if ($url_items[count($url_items) - 2] == $_REQUEST['controller']) { $classname .= " here"; } if ($i == 0) { $classname .= " navfirst"; } else { if ($i == $navbar_length - 1) { $classname .= " navlast"; } } ?> <li>
<?php $this->set_title('Emeraldion Lodge - ' . l('Login')); ?> <script type="text/javascript"> /*<![CDATA[*/ $(function(jq){ $('#f_username').focus(); $('#f_leave_me_registered').click(function(){ if ($(this).attr('checked')) $('#leave_me_registered_warning').show(); }); }); /*]]>*/ </script> <div id="login-pane"> <h2><?php echo localized("Login"); ?> </h2> <form action="<?php echo $this->url_to(array('action' => 'login')); ?> " method="post"> <p class="form-left"> <label class="left-aligned" for="f_username"><?php echo l("Username"); ?> :</label> <input class="labeled required character" type="text" name="username" id="f_username" size="12" /> </p> <p class="form-left"> <label class="left-aligned" for="f_password"><?php
/** * @fn l($str) * @short Shorthand method for the Localization::localize method. */ function l($str) { return localized($str); }
<input class="labeled" type="text" name="email" id="f_email" size="24" /> </p> <p class="form-left padded-to-label"> <label for="f_antispam_math_result" class="required"> <?php echo localized("Antispam question:"); ?> <?php echo Antispam::$first_operand; ?> + <?php echo Antispam::$second_operand; ?> = ? </label> <input type="text" name="antispam_math_result" id="f_antispam_math_result" size="3" /> </p> <p class="lighter padded-to-label"> <?php echo localized("An asterisk (*) denotes a required field."); ?> </p> <p class="form-left padded-to-label"> <input type="submit" name="submit" value="<?php echo l("Send request"); ?> " /> </p> </form> </div>