PATH:
home
/
letacommog
/
letaweb
/
admin
/
widgets
/
views
/
modules
<?php if ($this->comment_disabled == 0) { echo "<p>Comments are disabled for this item.</p>"; } else { ?> <div class="comment"> <div class="comment_box"> <ul class="comment_list"> <?php foreach ($this->list_data as $comment) { $this->includeViewFile('newscomment_item', array('comment' => $comment,'news_id'=>$this->news_id)); } ?> </ul> </div> <div class="comment_form_wrap"> <H2><?php echo Yii::t('module', 'Leave your comment') ?></H2> <?php $form = new NewsCommentForm(); $form->module_id = $this->page_id; $form->news_id = $this->news_id; $form->parent_id = 0; $this->includeViewFile('newscomment_form', array('form' => $form,'news_id'=>$this->news_id)); ?> </div> </div> <script type="text/javascript"> $(document).ready(function() { //$('#<?php echo $this->page_id ?> form').forms({type:'comment'}); $('#<?php echo $this->page_id ?>').delegate('.replay_comment_btn', 'click', function(event) { event.preventDefault(); var href = $(this).attr('href'); if( $(href).is(':hidden') ) $(href).show(); else $(href).hide(); }); $('#<?php echo $this->page_id ?>').delegate('.comment_form', 'submit', function(event) { var url = $(this).attr('action'); var method = $(this).attr('method'); var form = this; $.ajax({ url:url, data: $(this).serialize(), method : method, beforeSend: function() { $('button[type="submit"]', form).button('loading'); }, complete: function() { $('button[type="submit"]', form).button('reset'); }, success: function(json) { $('.alert, .text-danger').remove(); json = $.parseJSON(json); if (json['h']) { location = json['redirect']; } else if (json['html']) { var comment_form_wrap = $(form).parents('.comment_form_wrap'); if(comment_form_wrap.length && comment_form_wrap.parent().hasClass('reply_container')) { comment_form_wrap.parent().before(json['html']); }else if(comment_form_wrap.parent().hasClass('comment')) { $('#<?php echo $this->page_id ?> ul.comment_list').append(json['html']); } } else if (json['errors']) { $('button[type="submit"]', form).button('reset'); for (i in json['errors']) { var element = $('input[name="NewsCommentForm[' + i.replace('_', '-') + ']"],textarea[name="NewsCommentForm[' + i.replace('_', '-') + ']"]', form); if ($(element).parent().hasClass('input-group')) { $(element).parent().after('<div class="text-danger">' + json['errors'][i][0] + '</div>'); } else { $(element).after('<div class="text-danger">' + json['errors'][i][0] + '</div>'); } } } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); event.preventDefault(); return false; }); }); </script> <?php } ?>
[+]
..
[-] contactform.php
[edit]
[-] ihover.php
[edit]
[-] modal.php
[edit]
[-] news_slideshow.php
[edit]
[-] news_gallery_item1.php
[edit]
[-] facebookvideo.php
[edit]
[-] social_buttons.php
[edit]
[-] share_buttons_item0.php
[edit]
[-] audio_player.php
[edit]
[-] mini_news_list_item5.php
[edit]
[-] simplelist.php
[edit]
[+]
contactform
[-] spacer.php
[edit]
[-] newsdetail_item3.php
[edit]
[-] share_buttons.php
[edit]
[-] cycleslider.php
[edit]
[-] facebookcomment.php
[edit]
[-] video.php
[edit]
[-] linklist.php
[edit]
[-] newslist.php
[edit]
[-] newsdetail_item2.php
[edit]
[-] facebooklike.php
[edit]
[-] newscategory.php
[edit]
[-] newscomment.php
[edit]
[-] mini_news_list_item4.php
[edit]
[-] recentnews_item.php
[edit]
[-] news_gallery_item0.php
[edit]
[-] share_buttons_item1.php
[edit]
[-] share_buttons_item6.php
[edit]
[-] image.php
[edit]
[-] pricetable.php
[edit]
[-] gallery.php
[edit]
[-] menu_functions.php
[edit]
[-] youtube.php
[edit]
[-] newscomment_item.php
[edit]
[-] statcounter.php
[edit]
[-] icon.php
[edit]
[-] facebookpost.php
[edit]
[-] facebookpage.php
[edit]
[+]
script
[+]
productlist
[-] menu.php
[edit]
[-] flash.php
[edit]
[-] typedtext.php
[edit]
[-] news_monthlist.php
[edit]
[-] countdown.php
[edit]
[-] carousel.php
[edit]
[+]
newslist
[-] iframe.php
[edit]
[-] newsdetail_item1.php
[edit]
[-] linklist_functions.php
[edit]
[-] rssfeed.php
[edit]
[-] navbar.php
[edit]
[-] embed.php
[edit]
[-] infobox.php
[edit]
[-] common_functions.php
[edit]
[-] infobanner.php
[edit]
[-] html.php
[edit]
[-] share_buttons_item5.php
[edit]
[-] text.php
[edit]
[-] share_buttons_item2.php
[edit]
[-] newsdetail.php
[edit]
[-] title.php
[edit]
[-] mailchimp.php
[edit]
[-] recentnews.php
[edit]
[-] testmodule.php
[edit]
[-] slideshow.php
[edit]
[-] button.php
[edit]
[-] newscomment_form.php
[edit]
[-] googlemap.php
[edit]
[-] backtotop.php
[edit]
[-] alert.php
[edit]
[-] fancytext.php
[edit]
[-] tagcloud.php
[edit]
[-] facebooksend.php
[edit]
[-] ecommerce_top_bar.php
[edit]
[-] news_gallery_item2.php
[edit]
[-] share_buttons_item3.php
[edit]
[-] newscomment_reply_form.php
[edit]
[-] share_buttons_item4.php
[edit]
[-] infotable.php
[edit]
[-] progress_bar.php
[edit]
[-] newsdetail_item0.php
[edit]
[-] line.php
[edit]
[-] news_gallery.php
[edit]