To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2142
|
r2149
|
|
| 35 | 35 | <body class="<?php if (has_slot('body_class')): ?><?php include_slot('body_class') ?><?php endif ?><?php if (($sf_user->isAuthenticated())): ?> logged-in<?php endif ?>"> |
| 36 | 36 | |
| 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') ?> |
| 40 | 38 | <?php include_partial('a/globalTools') ?> |
| 41 | 39 | |
| 42 | 40 | <div id="a-wrapper" class="a-wrapper"> |
| | 41 | |
| 43 | 42 | <?php // Note that just about everything can be suppressed or replaced by setting a ?> |
| 44 | 43 | <?php // Symfony slot. Use them - don't write zillions of layouts or do layout stuff ?> |
| … |
… |
|
| 60 | 59 | <?php else: ?> |
| 61 | 60 | <?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' => '/', |
| 62 | 64 | 'global' => true, |
| 63 | | 'edit' => (isset($page) && $sf_user->hasCredential('cms_admin')) ? true : false, |
| 64 | 65 | 'width' => 360, |
| 65 | 66 | 'flexHeight' => true, |
| 66 | 67 | 'resizeType' => 's', |
| 67 | | 'link' => '/', |
| 68 | | 'defaultImage' => '/apostrophePlugin/images/cmstest-sample-logo.png' |
| 69 | 68 | )) ?> |
| 70 | 69 | <?php endif ?> |
| … |
… |
|
| 72 | 71 | <?php endif ?> |
| 73 | 72 | |
| 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 ?> |
| 76 | 73 | <?php if (has_slot('a-tabs')): ?> |
| 77 | 74 | <?php include_slot('a-tabs') ?> |
| … |
… |
|
| 98 | 95 | <?php include_partial('a/footer') ?> |
| 99 | 96 | </div> |
| | 97 | |
| 100 | 98 | <?php // Drop in the document.ready stuff at the bottom. ?> |
| 101 | 99 | <?php // If we try to do this sooner, it works for the template but ?> |
| 102 | 100 | <?php // doesn't yet know about any js calls relating to the layout. ?> |
| 103 | 101 | <?php a_include_js_calls() ?> |
| | 102 | |
| 104 | 103 | </body> |
| 105 | 104 | </html> |
Download in other formats: