Changeset 342


Ignore:
Timestamp:
03/02/10 10:17:11 (2 years ago)
Author:
aarkerio
Message:

Small Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/views/pages/display.ctp

    r340 r342  
    3939echo '</p>'; 
    4040 
     41/* 
    4142if ( $data['Page']['discution'] == 1 ):  // discutions 
    4243   $i = 1; 
     
    6061  echo $form->create('Discution', array('action'=>'add')); 
    6162  echo $form->hidden('Discution.page_id', array('value'=>$data['Page']['id'])) . "\n"; 
    62 ?> 
    63 <fieldset> 
    64 <legend>Add comment:</legend> 
    65 <?php  
     63 
     64echo '<fieldset>'; 
     65echo '<legend>Add comment:</legend>'; 
    6666  if ($session->read('Auth.User.username') ): 
    6767       echo $session->read('Auth.User.username') . '  escribe:'; 
     
    7878   echo $form->input('Discution.comment', array('type'=>'textarea', 'cols'=>70, 'rows'=>10, 'label'=>False)); 
    7979   echo $form->end('Add comment');  
     80*/ 
    8081?> 
    81 </fieldset> 
     82 
     83<div id="disqus_thread"></div> 
     84<script type="text/javascript" src="http://disqus.com/forums/mononeurona/embed.js"></script> 
     85<noscript><a href="http://disqus.com/forums/mononeurona/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a> 
     86 
    8287</div> 
    83 <?php endif; ?> 
     88<?php  
     89#endif;  
     90?> 
     91 
     92<script type="text/javascript"> 
     93        //<![CDATA[ 
     94        (function() { 
     95            var links = document.getElementsByTagName('a'); 
     96            var query = '?'; 
     97            for(var i = 0; i < links.length; i++) { 
     98                if(links[i].href.indexOf('#disqus_thread') >= 0) { 
     99                    query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&'; 
     100                } 
     101            } 
     102            document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/mononeurona/get_num_replies.js' + query + '"></' + 'script>'); 
     103        })(); 
     104//]]> 
     105</script> 
Note: See TracChangeset for help on using the changeset viewer.