Dotclear

Changeset 933


Ignore:
Timestamp:
03/24/09 13:53:31 (14 years ago)
Author:
brol
Message:

Ajout de <fieldset /> dans page.html et post.html + correction mineure dans style.css.
Ajout dans _head.html du code pour cacher le formulaire de commentaires.

Location:
themes/freshy2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • themes/freshy2/style.css

    r923 r933  
    400400 
    401401#commentform p { 
    402      margin:0 0 .5em 0; 
    403      padding:0; 
    404 } 
     402     /*margin:0 0 .5em 0; 
     403     padding:0;*/ 
     404} 
     405 
     406#comment-form fieldset {border:none;} 
    405407 
    406408.comment-preview { 
  • themes/freshy2/tpl/_head.html

    r633 r933  
    1212{{tpl:include src="user_head.html"}} 
    1313{{tpl:SysBehavior behavior="publicHeadContent"}} 
     14 
     15<script type="text/javascript"> 
     16//<![CDATA[ 
     17$(function() { 
     18     if ($('body.dc-post, body.dc-page').length == 0) { return; } 
     19     if ($('#pr').length > 0) { return; } 
     20      
     21     var link = $('<a href="#">' + $('#comment-form h3:first').text() + '</a>').click(function() { 
     22          $('#comment-form fieldset').show(200); 
     23          $('#c_name').focus(); 
     24          $(this).parent().html($(this).text()); 
     25          return false; 
     26     }); 
     27     $('#comment-form h3:first').empty().append(link); 
     28     $('#comment-form fieldset').hide(); 
     29}); 
     30//]]> 
     31</script> 
  • themes/freshy2/tpl/page.html

    r733 r933  
    182182 
    183183          <h3>{{tpl:lang Add a comment}}</h3> 
    184            
     184      <fieldset>          
    185185        <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
    186186        {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
     
    220220            <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" /> 
    221221            <tpl:IfCommentPreview><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreview></p> 
    222            </form> 
     222         </fieldset> 
     223        </form> 
    223224         </tpl:EntryIf> 
    224225 
  • themes/freshy2/tpl/post.html

    r856 r933  
    197197 
    198198          <h3>{{tpl:lang Add a comment}}</h3> 
     199      <fieldset> 
    199200        <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
    200201        {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
     
    234235            <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" /> 
    235236            <tpl:IfCommentPreview><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreview></p> 
    236            </form> 
     237         </fieldset> 
     238        </form> 
    237239         </tpl:EntryIf> 
    238240 
Note: See TracChangeset for help on using the changeset viewer.

Sites map