Changeset 342
- Timestamp:
- 03/02/10 10:17:11 (2 years ago)
- File:
-
- 1 edited
-
trunk/views/pages/display.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/views/pages/display.ctp
r340 r342 39 39 echo '</p>'; 40 40 41 /* 41 42 if ( $data['Page']['discution'] == 1 ): // discutions 42 43 $i = 1; … … 60 61 echo $form->create('Discution', array('action'=>'add')); 61 62 echo $form->hidden('Discution.page_id', array('value'=>$data['Page']['id'])) . "\n"; 62 ?> 63 <fieldset> 64 <legend>Add comment:</legend> 65 <?php 63 64 echo '<fieldset>'; 65 echo '<legend>Add comment:</legend>'; 66 66 if ($session->read('Auth.User.username') ): 67 67 echo $session->read('Auth.User.username') . ' escribe:'; … … 78 78 echo $form->input('Discution.comment', array('type'=>'textarea', 'cols'=>70, 'rows'=>10, 'label'=>False)); 79 79 echo $form->end('Add comment'); 80 */ 80 81 ?> 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 82 87 </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.
