Changeset 6

Show
Ignore:
Timestamp:
09/29/07 23:00:57 (1 year ago)
Author:
francois
Message:

added basic sfGuard customization and user registering

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/apps/frontend/config/app.yml

    r4 r6  
    1 # default values 
    2 #all: 
     1all: 
     2  sfSimpleForumPlugin: 
     3    forum_name:             Motile forums 
     4    display_categories:     true 
     5    use_feeds:              true  # requires sfFeed2Plugin 
     6    count_views:            true  # count each time a topic is viewed. Turn off to increase performance 
     7    max_per_block:          10    # maximum number of links displayed in a block 
     8    include_breadcrumb:     true  # include breadcrumb slot content. Turn off if you don't use the breadcrumb. 
     9    breadcrumb_separator:   ' ยป ' # separator for breadcrumb trail 
     10    max_per_page:           10    # maximum threads or messages per page 
     11    pages_displayed:        5     # maximum pages displayed by the pager navigation 
     12    feed_max:               10    # maximum messages served by feed 
     13    show_author_details:    false # display number of messages of post authors 
     14    allow_new_topic_outside_forum: true 
  • trunk/apps/frontend/config/view.yml

    r4 r6  
    1010    language:     en 
    1111 
    12   stylesheets:    [main
     12  stylesheets:    [main, forum
    1313 
    1414  javascripts:    [] 
  • trunk/apps/frontend/templates/layout.php

    r5 r6  
     1<?php use_helper('I18N') ?> 
    12<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    23<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
     
    1314<body> 
    1415 
    15 <div class="sfSimpleForum"> 
    16   <?php include_slot('forum_navigation') ?> 
     16<div class="sfSimpleForum" id="header"> 
     17  <ul id="main_nav"> 
     18    <?php if ($sf_user->isAuthenticated()): ?> 
     19      <?php echo __('Signed in as %user%', array('%user%' => $sf_user->getGuardUser()->getUsername() )) ?> 
     20      (<?php echo link_to(__('Sign out'), 'sfGuardAuth/signout') ?>) 
     21    <?php else: ?> 
     22      <li><?php echo link_to(__('Sign in'), 'sfGuardAuth/signin') ?></li> 
     23      <li><?php echo link_to(__('Register'), 'sfGuardAuth/register') ?></li> 
     24    <?php endif; ?> 
     25  </ul> 
     26  <div id="main_title"> 
     27    <?php echo link_to(image_tag('motile.gif', 'align=absbottom') . ' Motile', 'sfSimpleForum/forumList') ?> 
     28  </div> 
    1729</div> 
    1830 
    19 <?php echo $sf_data->getRaw('sf_content') ?> 
     31<div class="sfSimpleForum" id="content"> 
     32   
     33  <div id="breadcrumb"> 
     34    <?php include_slot('forum_navigation') ?> 
     35  </div> 
     36   
     37  <?php echo $sf_data->getRaw('sf_content') ?> 
     38   
     39  <div id="footer"> 
     40    <?php echo __('Powered by %sfSimpleForum%', array('%sfSimpleForum%' => link_to('Motile', 'http://trac.symfony-project.com/wiki/sfSimpleForumPlugin'))) ?> 
     41  </div> 
     42   
     43</div> 
    2044 
    2145</body>