~alliancecsf-dev/authpuppy/trunk

« back to all changes in this revision

Viewing changes to apps/frontend/templates/layout.php

  • Committer: Geneviève Bastien
  • Date: 2011-06-16 21:12:48 UTC
  • Revision ID: gbastien@versatic.net-20110616211248-1rrqpli62of3clbt
A few quick and easy bug fixes (see ChangeLog)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                if (!is_null($site_url)): ?>
44
44
                </a>
45
45
                <?php endif;  ?>
 
46
                
 
47
                <?php if (apAuthpuppyConfig::getConfigOption("show_node_info", false)): ?>
 
48
                  <br/>
 
49
                  <?php echo __('There are %1% active nodes in the network.', array('%1%' => Doctrine_Core::getTable('Node')->getActiveNodes()->count())) ?><br/>
 
50
              <?php echo __('There are %1% active connections.', array('%1%' => Doctrine_Core::getTable('Connection')->getActiveConnections()->count())) ?>
 
51
                <?php endif; ?>
 
52
                
46
53
        </div>
47
54
 
48
55
        <div id="content" class="span-16">
49
56
            <?php if ($sf_user->hasFlash('notice')): ?>
50
 
                <div class="notice"><?php echo $sf_user->getFlash('notice') ?></div>
 
57
                <div class="notice"><?php echo __($sf_user->getFlash('notice')) ?></div>
51
58
            <?php endif; ?>
52
59
     
53
60
            <?php if ($sf_user->hasFlash('error')): ?>
54
 
                <div class="error"><?php echo $sf_user->getFlash('error') ?></div>
 
61
                <div class="error"><?php echo __($sf_user->getFlash('error')) ?></div>
55
62
            <?php endif; ?>
56
63
            <?php echo $sf_content ?>
57
64
        </div>
62
69
            <?php $languages = apAuthpuppyConfig::getConfigOption("available_languages", array());
63
70
              if (count($languages) > 1) {
64
71
                include_component('home', 'language');
65
 
              } ?>
66
 
            
 
72
              } ?>  
67
73
        </div>
68
74
 
69
75
         <div id="footer" class="span-24 last">