<div class="page">

  <h1><?php 
echo render_title($resource->getTitle(array('cultureFallback' => true)));
?>
</h1>

  <div>
    <?php 
echo render_value($resource->getContent(array('cultureFallback' => true)));
?>
  </div>

  <?php 
if (SecurityCheck::hasPermission($sf_user, array('module' => 'staticpage', 'action' => 'update'))) {
    ?>
    <div class="actions section">

      <h2 class="element-invisible"><?php 
    echo __('Actions');
    ?>
</h2>

      <div class="content">
        <ul class="links">
          <li><?php 
    echo link_to(__('Edit'), array($resource, 'module' => 'staticpage', 'action' => 'edit'), array('title' => __('Edit this page')));
    ?>
</li>
        </ul>
      </div>
<?php

echo get_component('user', 'aclMenu');
?>

<h1><?php 
echo __('View user profile');
?>
</h1>

<?php 
echo link_to_if(SecurityCheck::HasPermission($sf_user, array('module' => 'user', 'action' => 'edit')), '<h1 class="label">' . render_title($resource) . '</h1>', array($resource, 'module' => 'user', 'action' => 'edit'), array('title' => __('Edit user')));
?>

<div class="section">

  <?php 
echo render_show(__('User name'), $resource->username);
?>

  <?php 
echo render_show(__('Email'), $resource->email);
?>

  <?php 
if (!$sf_user->hasCredential('administrator')) {
    ?>
    <div class="field">
      <h3><?php 
    echo __('Password');
    ?>