Changeset 76
- Timestamp:
- 02/24/06 14:58:03 (3 years ago)
- Files:
-
- trunk/apps/frontend/config/view.yml (modified) (1 diff)
- trunk/apps/frontend/lib/myTagFilter.class.php (modified) (2 diffs)
- trunk/apps/frontend/modules/user/templates/loginSuccess.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/apps/frontend/config/view.yml
r72 r76 12 12 stylesheets: [main, layout] 13 13 14 javascripts: [ sf/js/prototype]14 javascripts: [/sf/js/prototype/prototype.js] 15 15 16 16 has_layout: on trunk/apps/frontend/lib/myTagFilter.class.php
r69 r76 21 21 public function execute ($filterChain) 22 22 { 23 static $loaded;24 25 23 // execute this filter only once 26 if (sfConfig::get('app_universe') && !isset($loaded))24 if (sfConfig::get('app_universe') && $this->isFirstCall()) 27 25 { 28 // load the filter29 $loaded = true;30 31 26 // is there a tag in the hostname? 32 27 $request = $this->getContext()->getRequest(); … … 40 35 41 36 // add a custom stylesheet 42 $ request->setAttribute('app/tag_filter', $tag, 'helper/asset/auto/stylesheet');37 $this->getContext()->getResponse()->addStylesheet($tag); 43 38 44 39 // is the tag a culture? trunk/apps/frontend/modules/user/templates/loginSuccess.php
r69 r76 54 54 if (Element.visible('new_account')) 55 55 { 56 Effect.BlindUp('new_account');56 ".visual_effect('BlindUp', 'new_account')." 57 57 $('login_form').action = '".url_for('@login')."'; 58 58 } 59 59 else 60 60 { 61 Effect.BlindDown('new_account');61 ".visual_effect('BlindDown', 'new_account')." 62 62 $('login_form').action = '".url_for('@add_account')."'; 63 63 }
