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

Show
Ignore:
Timestamp:
07/27/10 16:16:09 (22 months ago)
Author:
johnnyoffline
Message:

I continued to work with a namespaced reset style. It uses the class .a-ui to scope a partial reset. I also tried to create a logged-in/logged-out separation of the styles but there are pieces of styles needed for logged in and logged out in every separate stylesheet despite the breakdown. really considering a further re-write. Throwing everything out and starting from the ground up. haha psych. but this is really difficult. my previous fix with ticket #36 needed another tweak, needed to check if you could edit the slot at all in addition to if there is a page- see footer partial or the layout.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/branches/features/css/lib/helper/aHelper.php

    r1859 r1861  
    99{ 
    1010  $response = sfContext::getInstance()->getResponse(); 
     11  $user = sfContext::getInstance()->getUser(); 
    1112 
    1213  sfContext::getInstance()->getConfiguration()->loadHelpers( 
     
    1718  if (sfConfig::get('app_a_use_bundled_stylesheet', true)) 
    1819  { 
    19     $response->addStylesheet('/apostrophePlugin/css/a-reset.css'); 
     20         
     21                // This could be used as a way to manage what styles are included when logged in / out.  
     22                // But it really seems like we use pieces of every one of these when logged in and out. 
     23                if ($user->isAuthenticated())  
     24                {  
     25            $response->addStylesheet('/apostrophePlugin/css/a-reset.css'); 
     26                }  
     27 
    2028    $response->addStylesheet('/apostrophePlugin/css/a-utility.css'); 
    2129    $response->addStylesheet('/apostrophePlugin/css/a-forms.css');