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

Changeset 1855

Show
Ignore:
Timestamp:
07/27/2010 04:49:56 PM (6 weeks ago)
Author:
johnnyoffline
Message:

Fixed a bug where global slots in the layout were editable in Admin areas, because the edit = false flag was never introduced into the templates even after ticket #36 was declared fixed and closed. Also, moved the reset stylesheet up to the sandbox level so that it can be optional for people. Created a new scoped reset style in a-reset that will be used to scope resets to our controls exclusively. Thanks Daniel Lohse. Going to give this a try

Location:
plugins/apostrophePlugin/branches/features/css
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/features/css/data/generator/sfDoctrineModule/aAdmin/template/templates/_assets.php

    r1849 r1855  
     1[?php use_helper('I18N','jQuery','a')?] 
     2 
    13[?php slot('body_class') ?]a-admin a-admin-generator [?php echo $sf_params->get('module'); ?] [?php echo $sf_params->get('action');?] [?php end_slot() ?] 
    24 
     
    46 
    57        [?php use_stylesheet('<?php echo $this->params['css'] ?>', 'first') ?]  
    6  
    7 <?php else: ?>  
    8  
    9         [?php use_stylesheet('/apostrophePlugin/css/a.css', 'first') ?] 
    10  
    11         [?php use_javascript('/apostrophePlugin/js/aControls.js') ?] 
    12         [?php use_javascript('/apostrophePlugin/js/aUI.js') ?] 
    13  
    14         [?php use_stylesheet('<?php echo sfConfig::get('sf_jquery_web_dir') ?>/css/<?php echo sfConfig::get('sf_jquery_ui_css', 'ui-apostrophe/jquery-ui-1.7.3.custom.css') ?>', 'first') # JQ Date Picker Styles (This is the custome Apostrophe styles for the JQ Date Picker) ?] 
    15         [?php use_javascript('<?php echo sfConfig::get('sf_jquery_web_dir') ?>/js/plugins/<?php echo sfConfig::get('sf_jquery_ui', 'jquery-ui-1.7.3.custom.min.js') ?>', 'last') # JQ Date Picker JS (This can/should be consolidated with sfJqueryReloadedPlugin/js/jquery-ui-sortable...) ?] 
    16         [?php use_javascript('<?php echo sfConfig::get('sf_jquery_web_dir') ?>/js/plugins/jquery.autocomplete.min.js', 'last') # Autocomplete Plugin for Time Picker JS ?] 
    17  
     8         
    189<?php endif; ?> 
    1910 
  • plugins/apostrophePlugin/branches/features/css/modules/a/templates/_footer.php

    r1681 r1855  
     1<?php use_helper('a') ?> 
     2<?php $page = aTools::getCurrentNonAdminPage() ?> 
     3         
    14<?php if (has_slot('a-footer')): ?> 
    25  <?php include_slot('a-footer') ?> 
    36<?php else: ?> 
    4   <?php a_slot('footer', 'aRichText', array("global" => true)) ?> 
     7  <?php a_slot('footer', 'aRichText', array( 
     8                'global' => true, 
     9                'edit' => isset($page) ? true : false, 
     10        )) ?> 
    511<?php endif ?> 
     12 
    613<?php // Feel free to shut this off in app.yml or override the footer partial in your app ?> 
    714<?php if (sfConfig::get('app_a_credit', true)): ?> 
  • plugins/apostrophePlugin/branches/features/css/modules/a/templates/layout.php

    r1681 r1855  
    5757          <?php include_slot('a-logo') ?> 
    5858        <?php else: ?> 
    59           <?php a_slot("logo", 'aButton', array("global" => true, "width" => 360, "flexHeight" => true, "resizeType" => "s", "link" => "/", "defaultImage" => "/apostrophePlugin/images/cmstest-sample-logo.png")) ?> 
     59          <?php a_slot('logo', 'aButton', array( 
     60                                                'global' => true,  
     61                                                'edit' => isset($page) ? true : false,                           
     62                                                'width' => 360,  
     63                                                'flexHeight' => true,  
     64                                                'resizeType' => 's',  
     65                                                'link' => '/',  
     66                                                'defaultImage' => '/apostrophePlugin/images/cmstest-sample-logo.png' 
     67                                        )) ?> 
    6068        <?php endif ?> 
    6169      </div> 
  • plugins/apostrophePlugin/branches/features/css/modules/aUserAdmin/config/generator.yml

    r1818 r1855  
    22  class: sfDoctrineGenerator 
    33  param: 
    4     model_class:           sfGuardUser 
    5     theme:                 aAdmin 
    6     non_verbose_templates: true 
    7     with_show:             false 
    8     singular:              ~ 
    9     plural:                ~ 
    10     route_prefix:          a_user_admin 
    11     with_doctrine_route:     1 
    12     i18n_catalogue: apostrophe 
     4    model_class:            sfGuardUser 
     5    theme:                  aAdmin 
     6    non_verbose_templates:  true 
     7    with_show:              false 
     8    singular:               ~ 
     9    plural:                 ~ 
     10    route_prefix:           a_user_admin 
     11    with_doctrine_route:    1 
     12    i18n_catalogue:         apostrophe 
    1313 
    1414    config: 
  • plugins/apostrophePlugin/branches/features/css/web/css/a-reset.css

    r1703 r1855  
    1 /* Eric Meyer's Reset CSS  
     1/* Apostrophe UI Reset based on Eric Meyer's Reset CSS  
    22-- http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ 
    33-------------------------------------------------------------------------- */ 
    4 * { margin: 0; padding: 0; font-weight: normal; } /* Safari seems to ignore a lot of the reset style sheet and I am not sure why. */ 
    5  
    6 html, body, div, span, applet, object, iframe,  
    7 h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,  
    8 abbr, acronym, address, big, cite, code, del, dfn,  
    9 em, font, img, ins, kbd, q, s, samp, small, strike,  
    10 strong, sub, sup, tt, var, b, u, i, center,  
    11 dl, dt, dd, ol, ul, li, fieldset, form, label,  
    12 legend, table, caption, tbody, tfoot, thead, tr, th, td  
    13 {  
    14         margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline;  
    15 } 
    16  
    17 :focus { outline: 0; } /* remember to define focus styles! */ 
    18  
    19 ins { text-decoration: none; } /* remember to highlight inserts somehow! */ 
    20 del { text-decoration: line-through; } 
    21  
    22 table { border-collapse: separate; border-spacing: 0; } /* tables still need 'cellspacing="0"' in the markup */ 
    23  
    24 blockquote:before, blockquote:after, q:before, q:after { content: ""; } 
    25  
    26 blockquote, q { quotes: "" ""; } 
     4.a-ui div, .a-ui span, .a-ui applet, .a-ui object, .a-ui iframe, .a-ui h1, .a-ui h2, .a-ui h3, .a-ui h4, .a-ui h5, .a-ui h6, .a-ui p, .a-ui blockquote, .a-ui pre, .a-ui a, .a-ui abbr, .a-ui acronym,.a-ui address,.a-ui big, .a-ui cite, .a-ui code, .a-ui del, .a-ui dfn, .a-ui em, .a-ui font, .a-ui img, .a-ui ins, .a-ui kbd, .a-ui q, .a-ui s, .a-ui samp, .a-ui small, .a-ui strike, .a-ui strong, .a-ui sub, .a-ui sup, .a-ui tt, .a-ui var, .a-ui b, .a-ui u, .a-ui i, .a-ui center, .a-ui dl, .a-ui dt, .a-ui dd, .a-ui ol, .a-ui ul, .a-ui li, .a-ui fieldset, .a-ui form, .a-ui label, .a-ui legend, .a-ui table, .a-ui caption, .a-ui tbody, .a-ui tfoot, .a-ui thead, .a-ui tr, .a-ui th, .a-ui td  { margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }