To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
09/08/10 14:48:02 (21 months ago)
Author:
johnnyoffline
Message:

1. Added _doNotEdit.php partial to layout.php for easy toggling of the editing message for staging sites after we launch production
2. Added app.yml flag app_a_do_not_edit true/false for toggling the doNotEdit partial
3. Moved .a-options to a-components.css from a-area-slot.css. Cleaned up the CSS so that it's less specific to areas because it's being re-used for the page settings and add page menus as well as variant options etc.
4. Fixed menu toggle for Add Page so that you can actually add a page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/a/templates/layout.php

    r2142 r2149  
    3535<body class="<?php if (has_slot('body_class')): ?><?php include_slot('body_class') ?><?php endif ?><?php if (($sf_user->isAuthenticated())): ?> logged-in<?php endif ?>"> 
    3636 
    37   <?php // Everyone gets this now, but internally it determines which controls you should ?> 
    38   <?php // actually see ?> 
    39    
     37        <?php include_partial('a/doNotEdit') ?> 
    4038  <?php include_partial('a/globalTools') ?> 
    4139 
    4240        <div id="a-wrapper" class="a-wrapper"> 
     41 
    4342    <?php // Note that just about everything can be suppressed or replaced by setting a ?> 
    4443    <?php // Symfony slot. Use them - don't write zillions of layouts or do layout stuff ?> 
     
    6059        <?php else: ?> 
    6160          <?php a_slot('logo', 'aButton', array( 
     61                                                'edit' => (isset($page) && $sf_user->hasCredential('cms_admin')) ? true : false,                                 
     62                                                'defaultImage' => '/apostrophePlugin/images/cmstest-sample-logo.png', 
     63                                                'link' => '/',  
    6264                                                'global' => true,  
    63                                                 'edit' => (isset($page) && $sf_user->hasCredential('cms_admin')) ? true : false,                                 
    6465                                                'width' => 360,  
    6566                                                'flexHeight' => true,  
    6667                                                'resizeType' => 's',  
    67                                                 'link' => '/',  
    68                                                 'defaultImage' => '/apostrophePlugin/images/cmstest-sample-logo.png' 
    6968                                        )) ?> 
    7069        <?php endif ?> 
     
    7271    <?php endif ?> 
    7372 
    74     <?php // Perhaps we want some of this on non-CMS pages like 'reorganize' but we can't ?> 
    75     <?php // spew PHP warnings, so fix that before you take away this if ?> 
    7673     <?php if (has_slot('a-tabs')): ?> 
    7774       <?php include_slot('a-tabs') ?> 
     
    9895          <?php include_partial('a/footer') ?> 
    9996        </div> 
     97 
    10098        <?php // Drop in the document.ready stuff at the bottom. ?> 
    10199        <?php // If we try to do this sooner, it works for the template but ?> 
    102100        <?php // doesn't yet know about any js calls relating to the layout. ?> 
    103101  <?php a_include_js_calls() ?> 
     102 
    104103</body> 
    105104</html>