Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
d617737
updated swedish language files
chrillep Aug 22, 2014
2549022
fix bug
dungps Feb 5, 2016
e5e3c5e
remove duplicate string for $return and make all $status ucwords() an…
chrillep Feb 5, 2016
5b97b5f
responsive style
thanhluu Feb 6, 2016
f4397e2
remove test code
thanhluu Feb 6, 2016
b3a0097
Merge pull request #180 from chrillep/master
Feb 6, 2016
8e89e02
Merge pull request #179 from chrillep/patch-4
Feb 6, 2016
c414747
update changlelog and version
dungps Feb 6, 2016
243e56d
fix settings layout
dungps Feb 6, 2016
e707b24
fix bug style for ask question form
thanhluu Feb 6, 2016
32a2949
update language file and gitattributes
dungps Feb 6, 2016
8187d70
Merge branch 'master' of https://github.com/designwall/dw-question-an…
dungps Feb 6, 2016
0bf387f
update gitattributes file
dungps Feb 6, 2016
0da20fe
fix error message
thanhluu Feb 10, 2016
0e97cbb
fix bug
thanhluu Feb 10, 2016
876818f
add grunt to make pot file
thanhluu Feb 11, 2016
78c07de
update polish language
thanhluu Feb 11, 2016
6976b7e
complete french language
hamdouni Feb 11, 2016
0f88196
update ru language
thanhluu Feb 12, 2016
61a463d
Merge pull request #182 from hamdouni/master
Feb 15, 2016
d8c5428
fix bug style on single question
thanhluu Feb 15, 2016
3134888
fix string can not translate
dungps Feb 15, 2016
88ad54e
fix some string cannot translate, fix permission pending and private …
dungps Feb 16, 2016
2c3b9ab
add filter query args, fix some string cannot translate, add more set…
dungps Feb 16, 2016
d2f8c2a
fix cannot show anonymous name
dungps Feb 16, 2016
cfde0a5
fix button upload email logo
dungps Feb 16, 2016
547da65
change class best answer
dungps Feb 16, 2016
a16a84d
style for best answer button
thanhluu Feb 16, 2016
29fea6e
min-height for answer
thanhluu Feb 16, 2016
0ecda68
add post class function
dungps Feb 16, 2016
6b71ac0
Merge branch 'master' of https://github.com/designwall/dw-question-an…
dungps Feb 16, 2016
6548c82
fix bug style
thanhluu Feb 16, 2016
e02639a
Merge branch 'master' of https://github.com/designwall/dw-question-an…
thanhluu Feb 16, 2016
7c77b5b
fix bug style
thanhluu Feb 16, 2016
f6d6e44
fix pending question title
dungps Feb 16, 2016
1bb08fb
update email setting, fix best answer
dungps Feb 16, 2016
9867689
Merge branch 'master' of https://github.com/designwall/dw-question-an…
dungps Feb 16, 2016
cb28caf
fix question status filter
dungps Feb 16, 2016
0e84ee2
fix bug
dungps Feb 16, 2016
6491a81
fix anonymous name
dungps Feb 16, 2016
be80d89
fix bug
dungps Feb 16, 2016
fd87523
update layout setting page
dungps Feb 16, 2016
ad8f195
update general setting layout
dungps Feb 16, 2016
d7661d5
update general setting layout
dungps Feb 17, 2016
3e9eb51
add setting answers per page, change general setting layout
dungps Feb 17, 2016
28659b5
update version template, enable html in comment
dungps Feb 17, 2016
6475121
update general setting layout
dungps Feb 17, 2016
7985047
add avatar comment author
dungps Feb 17, 2016
95d3535
update template, add option forward email for admin
dungps Feb 17, 2016
5952ca0
fix bug
dungps Feb 17, 2016
8706b5e
fix bug style
dungps Feb 17, 2016
b41fd36
fix bug
dungps Feb 17, 2016
cc161f1
fix bug style
thanhluu Feb 17, 2016
14236d7
Merge branch 'master' of https://github.com/designwall/dw-question-an…
thanhluu Feb 17, 2016
4ebfeb9
fix language
dungps Feb 17, 2016
9b7698e
update dummy data
dungps Feb 17, 2016
92fb872
make pot
thanhluu Feb 17, 2016
a130adc
Merge branch 'master' of https://github.com/designwall/dw-question-an…
thanhluu Feb 17, 2016
b2e9921
update git attribute
dungps Feb 17, 2016
f100346
remove function
dungps Feb 17, 2016
d1a8d46
update version plugin
dungps Feb 17, 2016
935e0b5
fix fatal error in comment
dungps Feb 18, 2016
a9db919
auto flush rewrite rule after active or upgrade plugin
dungps Feb 18, 2016
a7e7951
update upgrade function
dungps Feb 18, 2016
cd1cef7
update upgrade function
dungps Feb 18, 2016
045112d
update language file
dungps Feb 18, 2016
49998a1
Update Welcome.php
thanhluu Feb 23, 2016
b3ed557
fix bug style
thanhluu Feb 25, 2016
4b3a82a
fix bug style
thanhluu Feb 25, 2016
0908ed5
Fix bug style
thanhluu Feb 25, 2016
3023871
Fix bug style
thanhluu Feb 25, 2016
1a8b097
added Dutch translation
wwitting Feb 25, 2016
d767d2b
Merge pull request #183 from wwitting/master
dungps Feb 26, 2016
305a35f
fix issue about secure
dungps Mar 8, 2016
7954483
Merge branch 'master' of https://github.com/designwall/dw-question-an…
dungps Mar 8, 2016
c93e6ef
update version
dungps Mar 9, 2016
1e8c240
fix bug style, change delete question/answer/comment to trash
dungps Mar 14, 2016
21f12e5
fix bug not show submit comment button
dungps Mar 14, 2016
0589356
update template
dungps Mar 14, 2016
637ef7c
fix bug
dungps Mar 14, 2016
3f22548
Update dwqa-pt_BR.po
henriquemeira Mar 14, 2016
b8c1451
Update dwqa-pt_BR.po
henriquemeira Mar 15, 2016
9d04cdc
Delete dwqa-pt_BR.mo
henriquemeira Mar 15, 2016
18e9b72
Added files via upload
henriquemeira Mar 15, 2016
f7a8e36
Merge pull request #186 from henriquemeira/master
dungps Mar 17, 2016
23dc503
addressed some security issues, and fix some bug
dungps Mar 17, 2016
e56b448
Merge branch 'master' of https://github.com/designwall/dw-question-an…
dungps Mar 17, 2016
ebc1d53
update version and readme
dungps Mar 17, 2016
10da9af
update comment template
dungps Mar 17, 2016
be94771
update language file
dungps Mar 17, 2016
3605e5a
add dismiss button for message
dungps Mar 18, 2016
829d836
update language file'
dungps Mar 18, 2016
3091d64
update readme
dungps Mar 18, 2016
87439bf
update version
dungps Mar 18, 2016
5c3296a
update readme
dungps Mar 18, 2016
8f00753
fix Notice in admin panel
dungps Mar 18, 2016
569d9e6
address some secure issue
dungps Mar 25, 2016
0bd9b20
address some secure issue
dungps Mar 25, 2016
dbd9db8
fix format text
dungps May 11, 2016
737d8bb
update readme
dungps May 11, 2016
4f05f71
Bug fix: question list order when question have new answer
Pumpkjn May 31, 2016
6b7b987
Handle array for post_type
Ellipsis753 Jul 7, 2016
d32d7ab
Merge pull request #193 from Ellipsis753/patch-1
dungps Jul 13, 2016
c9032df
after new question is inserted hook
MrVibe Jul 14, 2016
47f7a12
Hook to add custom information fields to the question form
MrVibe Jul 14, 2016
17296b0
improved German Translation with focus on the fronted
bwl21 Jul 14, 2016
28e5531
Updated last translator
bwl21 Jul 14, 2016
541576c
Merge pull request #197 from bwl21/master
dungps Jul 15, 2016
1639e44
Merge pull request #196 from MrVibe/master
dungps Jul 15, 2016
65a65f3
update main file
dungps Jul 16, 2016
faf3296
Merge branch 'master' of https://github.com/designwall/dw-question-an…
dungps Jul 16, 2016
a2f249c
add style for rtl language
dungps Jul 16, 2016
e655f7a
fix notification
dungps Jul 17, 2016
e4ae625
compatible with Genesis Theme, Advanced Ads, Facebook Comments, fix n…
dungps Jul 18, 2016
16a20b1
fix question listing when use the_excerpt() function; prevent send no…
dungps Jul 18, 2016
1b68781
update language files
dungps Jul 18, 2016
c26ae4c
support get template from child theme, add filter to user link, remov…
dungps Aug 11, 2016
650c76a
fix avatar, answer link not working in notifitions
dungps Aug 11, 2016
e3c5a44
Addressed some security issues, Time of question and answer show not …
dungps Aug 17, 2016
f6bf702
update .gitattributes
dungps Aug 17, 2016
6c82bcf
fix load template function
dungps Aug 17, 2016
bb42390
Luvitas: 2017-08-08
liuwanthang Aug 8, 2017
9f10300
- add anonymous vote
liuwanthang Aug 9, 2017
0d77227
- fix lại anonymous vote
liuwanthang Aug 9, 2017
dd03143
- add Akismet antispam
liuwanthang Aug 17, 2017
77c1a91
- add akismet autospam
liuwanthang Aug 17, 2017
6f6c9ae
update languagues RU, IT
liuwanthang Aug 23, 2017
390cce9
- update Akismet integrate
liuwanthang Aug 23, 2017
5a5046d
Fix comment redirect(clear duplicate refresh)
liuwanthang Oct 5, 2017
922de6a
Reupload
liuwanthang Oct 5, 2017
b82bb41
Merge remote-tracking branch 'remotes/origin/Luvitas'
liuwanthang Oct 6, 2017
8aac9c1
Update buddypress
liuwanthang Oct 6, 2017
c18dfb9
Update Version
liuwanthang Oct 6, 2017
360f5b1
Update readme.txt
liuwanthang Oct 6, 2017
846b917
fix permission notice warning
liuwanthang Oct 10, 2017
5cc89d3
fix save permission
liuwanthang Oct 10, 2017
619664b
Update permission reset
liuwanthang Oct 10, 2017
09fe9b2
fix warning
liuwanthang Oct 11, 2017
d810a17
Fix bug
liuwanthang Oct 11, 2017
140e00c
Update Version 1.4.7
liuwanthang Oct 11, 2017
1322a2e
fix empty answer integrate buddypress
liuwanthang Nov 16, 2017
19d150a
fix bug count vote
liuwanthang Nov 16, 2017
59f1cf5
Fix comment vote
liuwanthang Nov 17, 2017
56ee12b
remove function get_page
liuwanthang Dec 18, 2017
a66a1c0
integrate yoast breadscrumb
liuwanthang Dec 18, 2017
bc0cc4e
update new version
liuwanthang Dec 18, 2017
5ca8fc9
fix bug count vote in post_status private
liuwanthang Dec 28, 2017
673d560
fix bug with arabic language
liuwanthang Jan 17, 2018
b708299
update readme.txt
liuwanthang Jan 17, 2018
e411971
update readme
liuwanthang Jan 17, 2018
b12f25c
fix bug php 7.2
liuwanthang Feb 23, 2018
ac7fdba
update version 1.5.0
liuwanthang Feb 23, 2018
f4b84ba
update readme.txt
liuwanthang Feb 23, 2018
9387161
fix notice User
liuwanthang Mar 15, 2018
37ab12f
fix search page
liuwanthang Mar 15, 2018
ab5803d
update version & readme.txt prepare 1.5.1
liuwanthang Mar 16, 2018
e2a7c7f
add option delay email
liuwanthang May 30, 2018
3634600
change readme
liuwanthang May 30, 2018
ea72953
fix admin forward
liuwanthang Jun 4, 2018
f5d2d30
change struture data (relationship QA from post_meta to posts)
liuwanthang Jul 12, 2018
39f1252
fix close default comment error
liuwanthang Jul 12, 2018
dcb3243
fix bug hunman time diff
liuwanthang Jul 12, 2018
5f43360
fix bug
liuwanthang Jul 12, 2018
5671e55
update version
liuwanthang Jul 12, 2018
215bb8e
update readme
liuwanthang Jul 12, 2018
3b81c20
add auto bloging from designwall
liuwanthang Jul 18, 2018
f03c254
Fix paginate link shortcode category
liuwanthang Aug 13, 2018
b18cc1e
Chang text domain to dw-question-answer
liuwanthang Aug 14, 2018
45dcd0b
update pot file
liuwanthang Aug 14, 2018
f873a6c
Fix count posts
liuwanthang Aug 27, 2018
904f9e6
fix answer id on singular dwqa answer
liuwanthang Sep 17, 2018
6e7f9d0
only show blog from designwall on general settings
liuwanthang Sep 17, 2018
1f0c108
Change auto blog to live site
liuwanthang Sep 17, 2018
8ed4890
change version
liuwanthang Sep 17, 2018
e4bf768
Fix bug permission
liuwanthang Sep 26, 2018
d89afba
fix bug email
liuwanthang Oct 25, 2018
6f73591
update prepare release
liuwanthang Nov 1, 2018
d9aaefa
update
liuwanthang Nov 5, 2018
03f4bb2
fix question filter on buddypress tab
liuwanthang Nov 28, 2018
8dfd968
remove sanitize_title in Notification
liuwanthang Feb 21, 2019
5cab3cd
remove replace class
liuwanthang Mar 5, 2019
d67b0d4
remove captcha & old function
liuwanthang Mar 15, 2019
a4b67d5
update
liuwanthang Mar 15, 2019
3f1b5bd
fix bug upgrades.php
liuwanthang May 17, 2019
20b8667
prepare release 1.5.7
liuwanthang Aug 20, 2019
624959a
fix bug remove_cap when deactive plugin
liuwanthang Aug 20, 2019
892ceb8
fixbug gutenberg editor with [dwqa-submit-question-form] shortcode
liuwanthang Sep 23, 2019
e40f997
fixbug restore filter content
liuwanthang Dec 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.gitattributes export-ignore
.gitignore export-ignore
.editorconfig export-ignore
codesniffer.ruleset.xml export-ignore
phpunit.xml export-ignore
.travis.yml export-ignore
/tools export-ignore
screenshot-1.png export-ignore
screenshot-2.png export-ignore
screenshot-3.png export-ignore
screenshot-4.png export-ignore
screenshot-5.png export-ignore
thumbnail.png export-ignore
banner.png export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ tests/clover.xml

# Grunt
node_modules
tools/node_modules

# Vendor
vendor
Expand Down
3 changes: 3 additions & 0 deletions assets/css/dwqa-akismet-button-report-spam.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.dwqa_report_spam{
cursor:pointer;
}
Binary file added assets/img/dw-widgets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 18 additions & 80 deletions assets/js/admin-settings-page.js
Original file line number Diff line number Diff line change
@@ -1,90 +1,28 @@
jQuery(document).ready(function($) {
$('.dwqa-reset-email-template').on('click', function(event) {
event.preventDefault();
var template = $(this).data('template');
var editor = $(this).closest('.tab-pane').find('.wp-editor-area').attr('id');
tinyMCE.execCommand('mceFocus', false, editor);
$.ajax({
url: dwqa.template_folder + template,
type: 'GET',
dataType: 'html'
}).done(function(html) {
if ($('#' + editor).closest('.wp-editor-wrap').hasClass('tmce-active')) {
tinyMCE.get(editor).setContent(html);
} else {
$('#' + editor).val(html);
}
});

});

$('.reset-permission').on('click', function(event) {
event.preventDefault();
if (confirm(dwqa.reset_permission_confirm_text)) {
var nonce = $('#reset-permission-nonce').val();
var type = $(this).data('type');

$.ajax({
url: dwqa.ajax_url,
type: 'POST',
dataType: 'json',
data: {
action: 'dwqa-reset-permission-default',
nonce: nonce,
type: type
}
}).done(function() {
window.location.href = window.location.href;
});

}
});


var refererField = $('[name="_wp_http_referer"]');
var updateHashInUrl = function() {
var url = refererField.val();
if (location.hash.length > 0) {

if (url.match(/#(\S*)/)) {
refererField.val(url.replace(/#(\S*)/g, location.hash));
} else {
refererField.val(url + location.hash);
function hide_item(element,element2) {
if ($(element).is(':checked')) {
$(element2).attr('disabled','disabled');
if ($(element2).is(':checked')) {
$(element2).removeAttr('checked');
}
} else {
$(element2).removeAttr('disabled');
}
}

$('.dwqa-notification-settings .nav-tabs li').click(function(event) {
event.preventDefault();
var tab = $(this).find('a:first').attr('href');
window.location.hash = tab;
$('.dwqa-notification-settings .nav-tabs li').removeClass('active');
$('.dwqa-notification-settings .tab-content .tab-pane').removeClass('active');
$(tab).addClass('active');
$(this).addClass('active');
updateHashInUrl();
$('.dwqa-mail-templates .progress-bar .progress-bar-inner').stop().css('width', 0).animate({
width: '70%'
},
600,
function() {
$(this).css('width', '100%').fadeOut(200, function() {
$(this).css({
width: '0%'
}).show();
});;
}
);
hide_item('#dwqa_options_dwqa_show_all_answers','#dwqa_setting_answers_per_page');
hide_item('#dwqa_options_dwqa_disable_question_status','#dwqa_options_enable_show_status_icon');

$('#dwqa_options_dwqa_show_all_answers').on('change',function() {
hide_item(this,'#dwqa_setting_answers_per_page');
});

$(document).ready(function($) {
updateHashInUrl();
if ($('.dwqa-notification-settings').length > 0 && location.hash.length > 0) {
var tab = window.location.hash;
$('.dwqa-notification-settings .nav-tabs li').removeClass('active');
$('.dwqa-notification-settings .tab-content .tab-pane').removeClass('active');
$('.dwqa-notification-settings .nav-tabs li a[href="' + tab + '"]').parent().addClass('active');
$('.dwqa-notification-settings .tab-content ' + tab + '.tab-pane').addClass('active');
}
$('#dwqa_options_dwqa_disable_question_status').on('change',function(){
hide_item(this,'#dwqa_options_enable_show_status_icon');
});

$('#dwqa-message').on('click', function(e){
document.cookie = "qa-pro-notice=off";
});
});
30 changes: 30 additions & 0 deletions assets/js/dwqa-akismet-button-report-spam.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
jQuery(document).ready(function($){
$('.dwqa_report_spam').on('click', function(){
if(confirm("Are you sure?")){
var post_id = $(this).data("post");
var nonce = $(this).data("nonce");
var dwqa_this = $(this);
// console.log('abc');
$.ajax({
url: dwqa.ajax_url,
type: 'POST',
dataType: 'json',
data: {
action: 'dwqa_report_spam_to_admin',
nonce: nonce,
post_id: post_id,
},
success: function( data ) {
console.log( data );
if (data.success) {
alert(data.data.message);
dwqa_this.remove();
}else{
alert(data.data.message);
}
}
});
}
});

});
Loading