<?php use_helper('I18N', 'My'); special_append_to_page_title('All Tags'); ?> <h1><?php echo __('All Tags'); ?> </h1> <ul class="tag_cloud all_tags"> <?php foreach ($tags as $tag) { ?> <li class="rank_<?php echo $tag['rank']; ?> "><?php echo link_to($tag['tag'], 'tag/show?tag=' . $tag['tag'], array('title' => __(":count snippet(s) with tag ':tag'", array(':count' => $tag['count'], ':tag' => $tag['tag'])))); ?> </li> <?php } ?> </ul>
<?php use_helper('I18N', 'Validation', 'Javascript', 'Cryptographp', 'My'); special_append_to_page_title('Post Snippet'); ?> <h1><?php echo __('Post Snippet'); ?> </h1> <?php echo form_tag('snippet/update', array('class' => 'form')); ?> <?php echo input_hidden_tag('id', $sf_params->get('id')); ?> <?php if (!$sf_user->isAuthenticated()) { ?> <div class="row"> <?php echo label_for('name', __('Name') . required()); ?> <?php echo input_tag('name', $sf_params->get('name')); ?> <?php echo form_error('name'); ?> </div>
<?php use_helper('I18N', 'Validation', 'My'); special_append_to_page_title('Sign In'); ?> <h1><?php echo __('Sign In'); ?> </h1> <?php echo form_tag('@sf_guard_signin', array('class' => 'form')); ?> <div class="row"> <?php echo label_for('username', __('Username') . required()); ?> <?php echo input_tag('username', $sf_params->get('username')); ?> <br /> <?php echo form_error('username', 'class=error'); ?> </div> <div class="row"> <?php echo label_for('password', __('Password') . required()); ?> <?php
<?php use_helper('I18N', 'My'); special_append_to_page_title(__('All Languages')); ?> <h1><?php echo __('All Languages'); ?> </h1> <ul class="tag_cloud all_tags"> <?php foreach ($languages as $language) { ?> <li class="rank_<?php echo $language['rank']; ?> "><?php echo link_to($language['language'], 'language/show?language=' . $language['language'], array('title' => __(":count snippet(s) with ':language' code", array(':count' => $language['count'], ':language' => $language['language'])))); ?> </li> <?php } ?> </ul>
<?php use_helper('I18N', 'My'); special_append_to_page_title(__('Tags') . ' : ' . $sf_params->get('tag')); ?> <h1><?php echo __('Snippets tagged with "%tag%".', array('%tag%' => $sf_params->get('tag'))); ?> </h1> <?php include_partial('snippet/list', array('pager' => $pager));
<?php use_helper('I18N', 'My'); special_append_to_page_title($code->getTitle()); ?> <h1> <span><?php echo $code->getTitle(); ?> </span> <?php if ($code->getMC() == 'true') { ?> <?php echo image_tag('flag_blue.png', array('alt' => __('Managed Content'), 'title' => __('Managed Content'))); ?> <?php } ?> <?php if ($sf_user->isAuthenticated() && myUtils::isUserRecord('SnippetPeer', $code->getId(), $sf_user->getGuardUser()->getId())) { ?> <?php echo link_to(image_tag('page_edit.png', array('alt' => __('Edit'), 'title' => __('Edit'))), 'snippet/edit?id=' . $code->getId()); ?> <?php echo link_to(image_tag('page_delete.png', array('alt' => __('Delete'), 'title' => __('Delete'))), 'snippet/delete?id=' . $code->getId(), array('confirm' => 'Are you sure you want to delete this snippet?')); ?>
<?php use_helper('I18N', 'Validation', 'My'); special_append_to_page_title('Password Request'); ?> <h1><?php echo __('Password Request'); ?> </h1> <?php echo form_tag('sfGuardAuth/password', array('class' => 'form')); ?> <div class="row"> <?php echo label_for('email', __('Email') . required()); ?> <?php echo input_tag('email', $sf_params->get('email')); ?> <?php echo form_error('email'); ?> </div> <div class="row right_col"> <?php echo submit_tag(__('Submit')); ?> </div> </form>