Wp-Pro-Quiz - Version 0.32

Version Description

  • CSS Update for Themes "Respo", "editor" and "twentyfourteen"
  • fixed white space problem in front quiz view
  • fixed bug in Import handler
  • Fixed bug (Illegal string offset '\')
  • Translation for italian have been added (Thanks Pacaldi)
  • Translation for slovak have been added (Thanks Martin D.)
Download this release

Release Info

Developer xeno010
Plugin Icon 128x128 Wp-Pro-Quiz
Version 0.32
Comparing to
See all releases

Code changes from version 0.31 to 0.32

README.md CHANGED
@@ -54,6 +54,7 @@ A powerful and beautiful quiz plugin for WordPress.
54
  - German / deutsch
55
  - Greek / ελληνικά (Thanks Ζαχαρίας Σ.)
56
  - Indonesian / Bahasa Indonesia (Thanks dieka91 and Creative Computer Club)
 
57
  - Norwegian / norsk (Thanks Stein Ivar J.)
58
  - Persian / فارسی (Thanks Behrooz N.)
59
  - Russian / русский (Thanks Sergei B. and Alex A.)
54
  - German / deutsch
55
  - Greek / ελληνικά (Thanks Ζαχαρίας Σ.)
56
  - Indonesian / Bahasa Indonesia (Thanks dieka91 and Creative Computer Club)
57
+ - Italian / Italiano (Thanks Pacaldi)
58
  - Norwegian / norsk (Thanks Stein Ivar J.)
59
  - Persian / فارسی (Thanks Behrooz N.)
60
  - Russian / русский (Thanks Sergei B. and Alex A.)
css/wpProQuiz_front.css CHANGED
@@ -210,6 +210,9 @@
210
  font-weight: normal;
211
  display: inline;
212
  }
 
 
 
213
  .wpProQuiz_questionListItem input {
214
  float: none !important;
215
  display: inline !important;
@@ -471,6 +474,7 @@ span.wpProQuiz_catPercent {
471
  width: auto !important;
472
  border-collapse: separate !important;
473
  border-spacing: 2px !important;
 
474
  }
475
  .wpProQuiz_forms td {
476
  vertical-align: top !important;
@@ -489,4 +493,10 @@ span.wpProQuiz_catPercent {
489
  }
490
  .wpProQuiz_resultForm {
491
  display: none;
 
 
 
 
 
 
492
  }
210
  font-weight: normal;
211
  display: inline;
212
  }
213
+ .wpProQuiz_questionListItem label {
214
+ float: none;
215
+ }
216
  .wpProQuiz_questionListItem input {
217
  float: none !important;
218
  display: inline !important;
474
  width: auto !important;
475
  border-collapse: separate !important;
476
  border-spacing: 2px !important;
477
+ border: 0;
478
  }
479
  .wpProQuiz_forms td {
480
  vertical-align: top !important;
493
  }
494
  .wpProQuiz_resultForm {
495
  display: none;
496
+ }
497
+ .wpProQuiz_quiz input[type="checkbox"] {
498
+ -webkit-appearance: checkbox;
499
+ }
500
+ .wpProQuiz_quiz input[type="radio"] {
501
+ -webkit-appearance: radio;
502
  }
css/wpProQuiz_front.min.css CHANGED
@@ -1 +1 @@
1
- .wpProQuiz_answerCorrect{background:#6db46d !important;font-weight:bold !important}.wpProQuiz_answerCorrect label{font-weight:bold !important}.wpProQuiz_answerIncorrect{background:#ff9191 !important;font-weight:bold !important}.wpProQuiz_content{margin-top:10px !important;margin-bottom:10px !important}.wpProQuiz_content h2{margin-bottom:10px !important}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0 !important}.wpProQuiz_button,.wpProQuiz_button:hover{margin:0 !important;padding:5px 10px !important;background:#13455b !important;border-radius:11px !important;color:white !important;font-weight:bold !important;border:1px solid #13455b !important;box-shadow:1px 1px 1px #333 !important;text-shadow:none !important;filter:none !important;float:none}.wpProQuiz_question_page{margin-bottom:10px !important}.wpProQuiz_question_page span{font-weight:bold !important}.wpProQuiz_questionListItem:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px !important;margin-bottom:0 !important}.wpProQuiz_questionListItem{padding:3px !important;margin-bottom:5px !important;background-image:none !important;margin-left:0 !important;list-style:none !important;border:0 !important}.wpProQuiz_questionListItem>table{border-collapse:collapse !important;margin:0 !important;padding:0 !important;width:100%}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList,.wpProQuiz_catOverview ol{list-style:none !important;padding:0 !important;margin:0 !important}.wpProQuiz_list{border:0 !important}.wpProQuiz_questionList{margin-bottom:10px !important;background:#f8faf5 !important;border:1px solid #c3d1a3 !important;padding:5px !important;list-style:none !important}.wpProQuiz_listItem{position:relative !important;border:0 !important;background-image:none !important}.wpProQuiz_response{background:#f8faf5 !important;border:1px solid #c4c4c4 !important;padding:5px !important;margin-bottom:15px !important;box-shadow:1px 1px 2px #AAA !important}.wpProQuiz_response span{font-weight:bold !important}.wpProQuiz_sort{width:25px !important}.wpProQuiz_results h3{margin-bottom:10px !important}.wpProQuiz_sort_correct_answer{font-weight:bold !important;margin-right:5px !important;display:none !important}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px !important;border:1px solid lightGrey !important;box-shadow:2px 2px 1px #EEE;background-color:#f8faf5 !important;cursor:move}.wpProQuiz_time_limit .time{font-weight:bold !important;margin-top:5px !important;margin-bottom:5px !important}.wpProQuiz_time_limit .wpProQuiz_progress{height:10px !important;background-color:blue !important;margin-bottom:5px !important}.wpProQuiz_time_limit_expired{font-weight:bold !important;font-size:15px !important;text-align:center !important}.wpProQuiz_question_text{margin-bottom:10px !important}.wpProQuiz_tipp>div{padding:10px !important;background-color:#ddecff !important;border:1px dotted #363636 !important;border-radius:10px !important;position:absolute !important;bottom:5px !important;left:5px !important;right:5px !important;box-shadow:2px 2px 5px 0 #313131 !important;z-index:99999 !important}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString>h3{margin-bottom:10px !important;margin-top:0 !important}.wpProQuiz_matrixSortString{background:#f8faf5 !important;border:1px solid #c3d1a3 !important;padding:5px !important}.wpProQuiz_sortStringList{padding:10px !important;border:0 !important}.wpProQuiz_sortStringList>li{float:left !important;margin-left:5px !important;margin-right:5px !important;margin-bottom:5px !important}.wpProQuiz_sortStringItem{margin:0 !important;background-image:none !important;list-style:none !important}.wpProQuiz_maxtrixSortCriterion{padding:5px !important}.wpProQuiz_placehold{background-color:#ffffc2 !important;list-style:none !important;background-image:none !important;padding:5px !important;height:30px !important;min-width:50px !important;margin:0 !important}.wpProQuiz_maxtrixSortText{padding:5px !important}.wpProQuiz_mextrixTr>td{border:1px solid #d1d1d1 !important;padding:5px !important;vertical-align:middle !important}.wpProQuiz_points{font-weight:bold !important;text-align:center !important;margin-bottom:20px !important}.wpProQuiz_cloze input[type="text"]{background:transparent;border:0 !important;border-bottom:1px solid !important;height:18px !important;margin:0 !important;padding:0 4px 0 4px !important;color:black !important;border-radius:0 !important;box-shadow:0 0 !important}.wpProQuiz_cloze input:focus{outline:none !important}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0 !important;font-weight:normal;display:inline}.wpProQuiz_questionListItem input{float:none !important;display:inline !important}.wpProQuiz_resultsList{border:0 !important}.wpProQuiz_resultsList>li{background-image:none !important;padding:0 !important;margin:0 !important;list-style-type:none !important;border:0 !important}.wpProQuiz_lock,.wpProQuiz_prerequisite,.wpProQuiz_startOnlyRegisteredUser,.wpProQuiz_loadQuiz{border:1px dotted #ffc3c3 !important;background-color:#fff7f7 !important}.wpProQuiz_lock p,.wpProQuiz_prerequisite p,.wpProQuiz_startOnlyRegisteredUser p,.wpProQuiz_loadQuiz p{margin:20px !important;font-weight:bold !important}.wpProQuiz_toplistTable{width:100% !important;border:1px solid #c3d1a3 !important;border-collapse:collapse !important;margin:0 !important}.wpProQuiz_toplistTable caption{caption-side:top !important;text-align:right !important;padding-bottom:2px !important;color:gray !important;margin:0 !important;font-size:11px !important}.wpProQuiz_toplistTable thead tr{background:#9bbb59 !important;padding:5px !important;color:white !important;font-weight:bold !important}.wpProQuiz_toplistTable tbody td:first-child{font-weight:bold !important}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px !important;text-align:center !important;border:0 !important}.wpProQuiz_toplistTable th{background:#9bbb59 !important}.wpProQuiz_toplistTrOdd{background-color:#ebf1de !important}.wpProQuiz_addToplist{margin-top:10px !important;background-color:#f5faea !important;padding:10px !important;border:1px solid #c3d1a3 !important}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0 !important;background-color:#fcffb3 !important;margin-bottom:5px !important;border-radius:5px !important;padding:5px !important;font-weight:bold !important;color:dimGray !important}.wpProQuiz_resultTable{margin:15px auto !important;width:400px !important;border:1px solid #c4c4c4 !important;padding:15px !important;font-weight:bold !important}.wpProQuiz_resultTable table{width:100% !important;border-collapse:collapse !important;margin:0 !important;border:0 !important}.wpProQuiz_resultName{width:100px !important;border-right:1px solid #868686 !important;padding:10px 0 !important;border-bottom:0 !important;border-top:0 !important;border-left:0 !important}.wpProQuiz_resultValue{padding:0 !important;border:0 !important}.wpProQuiz_resultValue div{color:black !important;text-align:right !important;box-shadow:1px 1px 3px 1px #c4c4c4 !important;display:inline-block !important;height:18px !important;zoom:1 !important;*display:inline !important;margin-right:3px !important;vertical-align:middle !important}.wpProQuiz_addBox label{display:inline !important}.wpProQuiz_addBox input[type="text"]{margin:0 !important}.wpProQuiz_reviewQuestion{max-height:100px;overflow:hidden;border:1px solid #c3d1a3;background-color:#f8faf5;position:relative}.wpProQuiz_box{border:1px solid #c3d1a3;background-color:#f8faf5}.wpProQuiz_checkPage h3{margin:10px 0 10px 0}.wpProQuiz_reviewQuestion ol,.wpProQuiz_checkPage ol{list-style-type:none !important;margin:0 !important;padding:5px 12px 0 5px !important;zoom:1 !important;position:relative !important;border:0 !important}.wpProQuiz_reviewQuestion ol:after{content:".";display:block;height:0;clear:both;visibility:hidden}.wpProQuiz_reviewQuestionTarget{font-weight:bold;border-color:#7db1d3 !important;box-shadow:0 0 2px 1px #c4c4c4}.wpProQuiz_reviewQuestion li,.wpProQuiz_checkPage li{float:left !important;margin:0 5px 5px 0 !important;border:1px solid #cfcfcf;padding:5px 0 5px 0 !important;width:30px !important;text-align:center !important;background-color:white;cursor:pointer !important;list-style-type:none !important;background-image:none !important}.wpProQuiz_reviewQuestion div{position:absolute;right:0;background-color:#b8b8b8;top:0;height:20px;width:10px;border:0;border-radius:10px;cursor:move}.wpProQuiz_reviewLegend{padding:5px !important;margin-bottom:8px !important}.wpProQuiz_reviewLegend ol{list-style-type:none !important;padding:0 !important;margin:0 !important;border:0 !important}.wpProQuiz_reviewLegend li{float:left !important;padding-right:5px !important;list-style-type:none !important;margin:0 !important;border:0 !important;background-image:none !important}.wpProQuiz_reviewColor{height:10px !important;width:10px !important;display:inline-block !important;margin-right:2px !important}.wpProQuiz_button2{border:1px solid #dadada !important;background:whiteSmoke !important;color:#303030 !important;border-radius:4px !important;padding:3px 5px !important;box-shadow:1px 1px 1px #a7a7a7 !important;text-shadow:none !important;filter:none !important;margin:0 !important;font-weight:normal !important}.wpProQuiz_button2:hover{background:#ebebeb !important}.wpProQuiz_reviewDiv{margin:20px 0 20px 0 !important}.wpProQuiz_header{margin:0 !important}.wpProQuiz_catOverview{margin-top:10px;margin-bottom:20px}.wpProQuiz_catOverview li{list-style:none !important;padding:0 !important;clear:left !important;border-bottom:1px dashed #aaa;height:1.05em !important;margin:10px 0 0 0 !important;position:relative !important}.wpProQuiz_catOverview span{background:#fff !important;padding:0 3px 0 0 !important;float:left !important;position:absolute !important;text-decoration:none !important}span.wpProQuiz_catPercent{font-weight:bold !important;padding-left:5px !important;color:#000 !important;right:0 !important}.wpProQuiz_forms{margin:20px 0 20px 0 !important}.wpProQuiz_required{color:#F00 !important;font-weight:bold !important}.wpProQuiz_invalidate{border:1px solid #ffcfcf !important;background:#ffebe8 !important;padding:4px !important;margin:4px 0 4px 0 !important;display:none}.wpProQuiz_forms table{width:auto !important;border-collapse:separate !important;border-spacing:2px !important}.wpProQuiz_forms td{vertical-align:top !important;padding:0 0 8px 0 !important;margin:0 !important;border:0 !important;background:none !important}.wpProQuiz_forms input,.wpProQuiz_forms textarea,.wpProQuiz_forms label,.wpProQuiz_forms select{margin:0 !important;float:none !important;display:inline !important}.wpProQuiz_forms select{width:auto !important}.wpProQuiz_resultForm{display:none}
1
+ .wpProQuiz_answerCorrect{background:#6db46d !important;font-weight:bold !important}.wpProQuiz_answerCorrect label{font-weight:bold !important}.wpProQuiz_answerIncorrect{background:#ff9191 !important;font-weight:bold !important}.wpProQuiz_content{margin-top:10px !important;margin-bottom:10px !important}.wpProQuiz_content h2{margin-bottom:10px !important}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0 !important}.wpProQuiz_button,.wpProQuiz_button:hover{margin:0 !important;padding:5px 10px !important;background:#13455b !important;border-radius:11px !important;color:white !important;font-weight:bold !important;border:1px solid #13455b !important;box-shadow:1px 1px 1px #333 !important;text-shadow:none !important;filter:none !important;float:none}.wpProQuiz_question_page{margin-bottom:10px !important}.wpProQuiz_question_page span{font-weight:bold !important}.wpProQuiz_questionListItem:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px !important;margin-bottom:0 !important}.wpProQuiz_questionListItem{padding:3px !important;margin-bottom:5px !important;background-image:none !important;margin-left:0 !important;list-style:none !important;border:0 !important}.wpProQuiz_questionListItem>table{border-collapse:collapse !important;margin:0 !important;padding:0 !important;width:100%}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList,.wpProQuiz_catOverview ol{list-style:none !important;padding:0 !important;margin:0 !important}.wpProQuiz_list{border:0 !important}.wpProQuiz_questionList{margin-bottom:10px !important;background:#f8faf5 !important;border:1px solid #c3d1a3 !important;padding:5px !important;list-style:none !important}.wpProQuiz_listItem{position:relative !important;border:0 !important;background-image:none !important}.wpProQuiz_response{background:#f8faf5 !important;border:1px solid #c4c4c4 !important;padding:5px !important;margin-bottom:15px !important;box-shadow:1px 1px 2px #AAA !important}.wpProQuiz_response span{font-weight:bold !important}.wpProQuiz_sort{width:25px !important}.wpProQuiz_results h3{margin-bottom:10px !important}.wpProQuiz_sort_correct_answer{font-weight:bold !important;margin-right:5px !important;display:none !important}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px !important;border:1px solid lightGrey !important;box-shadow:2px 2px 1px #EEE;background-color:#f8faf5 !important;cursor:move}.wpProQuiz_time_limit .time{font-weight:bold !important;margin-top:5px !important;margin-bottom:5px !important}.wpProQuiz_time_limit .wpProQuiz_progress{height:10px !important;background-color:blue !important;margin-bottom:5px !important}.wpProQuiz_time_limit_expired{font-weight:bold !important;font-size:15px !important;text-align:center !important}.wpProQuiz_question_text{margin-bottom:10px !important}.wpProQuiz_tipp>div{padding:10px !important;background-color:#ddecff !important;border:1px dotted #363636 !important;border-radius:10px !important;position:absolute !important;bottom:5px !important;left:5px !important;right:5px !important;box-shadow:2px 2px 5px 0 #313131 !important;z-index:99999 !important}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString>h3{margin-bottom:10px !important;margin-top:0 !important}.wpProQuiz_matrixSortString{background:#f8faf5 !important;border:1px solid #c3d1a3 !important;padding:5px !important}.wpProQuiz_sortStringList{padding:10px !important;border:0 !important}.wpProQuiz_sortStringList>li{float:left !important;margin-left:5px !important;margin-right:5px !important;margin-bottom:5px !important}.wpProQuiz_sortStringItem{margin:0 !important;background-image:none !important;list-style:none !important}.wpProQuiz_maxtrixSortCriterion{padding:5px !important}.wpProQuiz_placehold{background-color:#ffffc2 !important;list-style:none !important;background-image:none !important;padding:5px !important;height:30px !important;min-width:50px !important;margin:0 !important}.wpProQuiz_maxtrixSortText{padding:5px !important}.wpProQuiz_mextrixTr>td{border:1px solid #d1d1d1 !important;padding:5px !important;vertical-align:middle !important}.wpProQuiz_points{font-weight:bold !important;text-align:center !important;margin-bottom:20px !important}.wpProQuiz_cloze input[type="text"]{background:transparent;border:0 !important;border-bottom:1px solid !important;height:18px !important;margin:0 !important;padding:0 4px 0 4px !important;color:black !important;border-radius:0 !important;box-shadow:0 0 !important}.wpProQuiz_cloze input:focus{outline:none !important}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0 !important;font-weight:normal;display:inline}.wpProQuiz_questionListItem label{float:none}.wpProQuiz_questionListItem input{float:none !important;display:inline !important}.wpProQuiz_resultsList{border:0 !important}.wpProQuiz_resultsList>li{background-image:none !important;padding:0 !important;margin:0 !important;list-style-type:none !important;border:0 !important}.wpProQuiz_lock,.wpProQuiz_prerequisite,.wpProQuiz_startOnlyRegisteredUser,.wpProQuiz_loadQuiz{border:1px dotted #ffc3c3 !important;background-color:#fff7f7 !important}.wpProQuiz_lock p,.wpProQuiz_prerequisite p,.wpProQuiz_startOnlyRegisteredUser p,.wpProQuiz_loadQuiz p{margin:20px !important;font-weight:bold !important}.wpProQuiz_toplistTable{width:100% !important;border:1px solid #c3d1a3 !important;border-collapse:collapse !important;margin:0 !important}.wpProQuiz_toplistTable caption{caption-side:top !important;text-align:right !important;padding-bottom:2px !important;color:gray !important;margin:0 !important;font-size:11px !important}.wpProQuiz_toplistTable thead tr{background:#9bbb59 !important;padding:5px !important;color:white !important;font-weight:bold !important}.wpProQuiz_toplistTable tbody td:first-child{font-weight:bold !important}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px !important;text-align:center !important;border:0 !important}.wpProQuiz_toplistTable th{background:#9bbb59 !important}.wpProQuiz_toplistTrOdd{background-color:#ebf1de !important}.wpProQuiz_addToplist{margin-top:10px !important;background-color:#f5faea !important;padding:10px !important;border:1px solid #c3d1a3 !important}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0 !important;background-color:#fcffb3 !important;margin-bottom:5px !important;border-radius:5px !important;padding:5px !important;font-weight:bold !important;color:dimGray !important}.wpProQuiz_resultTable{margin:15px auto !important;width:400px !important;border:1px solid #c4c4c4 !important;padding:15px !important;font-weight:bold !important}.wpProQuiz_resultTable table{width:100% !important;border-collapse:collapse !important;margin:0 !important;border:0 !important}.wpProQuiz_resultName{width:100px !important;border-right:1px solid #868686 !important;padding:10px 0 !important;border-bottom:0 !important;border-top:0 !important;border-left:0 !important}.wpProQuiz_resultValue{padding:0 !important;border:0 !important}.wpProQuiz_resultValue div{color:black !important;text-align:right !important;box-shadow:1px 1px 3px 1px #c4c4c4 !important;display:inline-block !important;height:18px !important;zoom:1 !important;*display:inline !important;margin-right:3px !important;vertical-align:middle !important}.wpProQuiz_addBox label{display:inline !important}.wpProQuiz_addBox input[type="text"]{margin:0 !important}.wpProQuiz_reviewQuestion{max-height:100px;overflow:hidden;border:1px solid #c3d1a3;background-color:#f8faf5;position:relative}.wpProQuiz_box{border:1px solid #c3d1a3;background-color:#f8faf5}.wpProQuiz_checkPage h3{margin:10px 0 10px 0}.wpProQuiz_reviewQuestion ol,.wpProQuiz_checkPage ol{list-style-type:none !important;margin:0 !important;padding:5px 12px 0 5px !important;zoom:1 !important;position:relative !important;border:0 !important}.wpProQuiz_reviewQuestion ol:after{content:".";display:block;height:0;clear:both;visibility:hidden}.wpProQuiz_reviewQuestionTarget{font-weight:bold;border-color:#7db1d3 !important;box-shadow:0 0 2px 1px #c4c4c4}.wpProQuiz_reviewQuestion li,.wpProQuiz_checkPage li{float:left !important;margin:0 5px 5px 0 !important;border:1px solid #cfcfcf;padding:5px 0 5px 0 !important;width:30px !important;text-align:center !important;background-color:white;cursor:pointer !important;list-style-type:none !important;background-image:none !important}.wpProQuiz_reviewQuestion div{position:absolute;right:0;background-color:#b8b8b8;top:0;height:20px;width:10px;border:0;border-radius:10px;cursor:move}.wpProQuiz_reviewLegend{padding:5px !important;margin-bottom:8px !important}.wpProQuiz_reviewLegend ol{list-style-type:none !important;padding:0 !important;margin:0 !important;border:0 !important}.wpProQuiz_reviewLegend li{float:left !important;padding-right:5px !important;list-style-type:none !important;margin:0 !important;border:0 !important;background-image:none !important}.wpProQuiz_reviewColor{height:10px !important;width:10px !important;display:inline-block !important;margin-right:2px !important}.wpProQuiz_button2{border:1px solid #dadada !important;background:whiteSmoke !important;color:#303030 !important;border-radius:4px !important;padding:3px 5px !important;box-shadow:1px 1px 1px #a7a7a7 !important;text-shadow:none !important;filter:none !important;margin:0 !important;font-weight:normal !important}.wpProQuiz_button2:hover{background:#ebebeb !important}.wpProQuiz_reviewDiv{margin:20px 0 20px 0 !important}.wpProQuiz_header{margin:0 !important}.wpProQuiz_catOverview{margin-top:10px;margin-bottom:20px}.wpProQuiz_catOverview li{list-style:none !important;padding:0 !important;clear:left !important;border-bottom:1px dashed #aaa;height:1.05em !important;margin:10px 0 0 0 !important;position:relative !important}.wpProQuiz_catOverview span{background:#fff !important;padding:0 3px 0 0 !important;float:left !important;position:absolute !important;text-decoration:none !important}span.wpProQuiz_catPercent{font-weight:bold !important;padding-left:5px !important;color:#000 !important;right:0 !important}.wpProQuiz_forms{margin:20px 0 20px 0 !important}.wpProQuiz_required{color:#F00 !important;font-weight:bold !important}.wpProQuiz_invalidate{border:1px solid #ffcfcf !important;background:#ffebe8 !important;padding:4px !important;margin:4px 0 4px 0 !important;display:none}.wpProQuiz_forms table{width:auto !important;border-collapse:separate !important;border-spacing:2px !important;border:0}.wpProQuiz_forms td{vertical-align:top !important;padding:0 0 8px 0 !important;margin:0 !important;border:0 !important;background:none !important}.wpProQuiz_forms input,.wpProQuiz_forms textarea,.wpProQuiz_forms label,.wpProQuiz_forms select{margin:0 !important;float:none !important;display:inline !important}.wpProQuiz_forms select{width:auto !important}.wpProQuiz_resultForm{display:none}.wpProQuiz_quiz input[type="checkbox"]{-webkit-appearance:checkbox}.wpProQuiz_quiz input[type="radio"]{-webkit-appearance:radio}
js/jquery.ui.touch-punch.min.js CHANGED
@@ -1,11 +1,11 @@
1
- /*
2
- * jQuery UI Touch Punch 0.2.2
3
  *
4
- * Copyright 2011, Dave Furfero
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
6
  *
7
  * Depends:
8
  * jquery.ui.widget.js
9
  * jquery.ui.mouse.js
10
  */
11
- (function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery);
1
+ /*!
2
+ * jQuery UI Touch Punch 0.2.3
3
  *
4
+ * Copyright 2011–2014, Dave Furfero
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
6
  *
7
  * Depends:
8
  * jquery.ui.widget.js
9
  * jquery.ui.mouse.js
10
  */
11
+ !function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);
js/wpProQuiz_admin.js CHANGED
@@ -880,6 +880,10 @@ jQuery(document).ready(function($) {
880
  var fieldName = $(this).find('.formFieldName').val();
881
  var type = $(this).find('[name="form[][type]"] option:selected');
882
  var name = $(this).find('[name="form[][fieldname]"]').val();
 
 
 
 
883
 
884
  if(index >= 0 && !isEmpty(fieldName))
885
  $formVariables.append($('<li><span>$form{' + index + '}</span> - ' + fieldName + '</li>'));
880
  var fieldName = $(this).find('.formFieldName').val();
881
  var type = $(this).find('[name="form[][type]"] option:selected');
882
  var name = $(this).find('[name="form[][fieldname]"]').val();
883
+
884
+ //is deleted?
885
+ if($(this).find('input[name="form[][form_delete]"]').val() == 1)
886
+ return;
887
 
888
  if(index >= 0 && !isEmpty(fieldName))
889
  $formVariables.append($('<li><span>$form{' + index + '}</span> - ' + fieldName + '</li>'));
js/wpProQuiz_admin.min.js CHANGED
@@ -16,24 +16,24 @@ deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name
16
  !1;var b="",b=void 0==tinymce.editors.text||tinymce.editors.text.isHidden()?a('textarea[name="text"]').val():tinymce.editors.text.getContent();if(d(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var c=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!e.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return c=!1});if(!c)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},
17
  resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(b){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})},generateFormIds:function(){var b=0;a("#form_table tbody > tr").each(function(){a(this).find('[name^="form[]"]').each(function(){var c=a(this).attr("name").substr(6);a(this).attr("name","form["+b+"]"+c)});++b})},updateFormIds:function(){var b=
18
  -1,c=a(".emailFormVariables option:selected").val(),e=a(".formVariables").empty(),f=a(".emailFormVariables").empty().append('<option value="-1"></option>');-1<a(".emailFormVariables").data("default")&&(c=a(".emailFormVariables").data("default"),a(".emailFormVariables").data("default",-1));a("#form_table tbody > tr").each(function(){a(this).children().first().text(b);var c=a(this).find(".formFieldName").val(),l=a(this).find('[name="form[][type]"] option:selected'),g=a(this).find('[name="form[][fieldname]"]').val();
19
- 0<=b&&!d(c)&&e.append(a("<li><span>$form{"+b+"}</span> - "+c+"</li>"));4==l.val()&&f.append(a('<option value="'+b+'">'+g+"</option>"));b++});a('.emailFormVariables option[value="'+c+'"]').prop("selected",!0)}},d=function(b){b=a.trim(b);return!b||0===b.length};(function(){a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});a(".addResult").click(function(){e.addResult()});a(".deleteResult").click(function(a){e.deleteResult(this)});
20
- a('input[name="resultTextGrade[prozent][]"]').keyup(function(a){e.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(b){e.validInput()?e.generateFormIds():b.preventDefault();a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('input[name="template"]').click(function(b){if("0"==
21
- a('select[name="templateSaveList"]').val()&&d(a('input[name="templateName"]').val()))return alert(wpProQuizLocalize.temploate_no_name),b.preventDefault(),!1;e.generateFormIds();a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('select[name="templateSaveList"]').change(function(){var b=a('input[name="templateName"]');"0"==a(this).val()?b.show():b.hide()}).change();a('input[name="quizRunOnce"]').change(function(b){this.checked?(a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):
22
- a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(b){!this.checked||"1"!=this.value&&"3"!=this.value?a("#wpProQuiz_quiz_run_once_cookie").hide():a("#wpProQuiz_quiz_run_once_cookie").show()});a('input[name="resetQuizLock"]').click(function(a){e.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(b){var c=a(this),d=a(document).width(),c=c.siblings().outerWidth(!0);b.pageX+c>d&&(b=d-(b.pageX+c+30),a(this).next().css("left",b+"px"));a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});
23
- a('input[name="showMaxQuestion"]').change(function(){this.checked?a("#wpProQuiz_showMaxBox").show():a("#wpProQuiz_showMaxBox").hide()});a("#btnPrerequisiteAdd").click(function(){a('select[name="quizList"] option:selected').removeAttr("selected").appendTo('select[name="prerequisiteList[]"]')});a("#btnPrerequisiteDelete").click(function(){a('select[name="prerequisiteList[]"] option:selected').removeAttr("selected").appendTo('select[name="quizList"]')});a('input[name="prerequisite"]').change(function(){this.checked?
24
- a("#prerequisiteBox").show():a("#prerequisiteBox").hide()}).change();a('input[name="toplistDataAddMultiple"]').change(function(){this.checked?a("#toplistDataAddBlockBox").show():a("#toplistDataAddBlockBox").hide()}).change();a('input[name="toplistActivated"]').change(function(){this.checked?a("#toplistBox > tr:gt(0)").show():a("#toplistBox > tr:gt(0)").hide()}).change();a('input[name="showReviewQuestion"]').change(function(){this.checked?a(".wpProQuiz_reviewQuestionOptions").show():a(".wpProQuiz_reviewQuestionOptions").hide()}).change();
25
- a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change();a('input[name="showMaxQuestion"]').change();a("#form_add").click(function(){a("#form_table tbody > tr:eq(0)").clone(!0).appendTo("#form_table tbody").show();e.updateFormIds()});a('input[name="form_delete"]').click(function(){var b=a(this).parents("tr");"0"!=b.find('input[name="form[][form_id]"]').val()?(b.find('input[name="form[][form_delete]"]').val(1),
26
- b.hide()):b.remove();e.updateFormIds()});a("#form_table tbody").sortable({handle:".form_move",update:e.updateFormIds});a(".form_move").click(function(){return!1});a('select[name="form[][type]"]').change(function(){switch(Number(a(this).val())){case 7:case 8:a(this).siblings(".editDropDown").show();break;default:a(this).siblings(".editDropDown, .dropDownEditBox").hide()}}).change();a(".editDropDown").click(function(){a(".dropDownEditBox").not(a(this).siblings(".dropDownEditBox").toggle()).hide();return!1});
27
- a(".dropDownEditBox input").click(function(){a(this).parent().hide()});a('.formFieldName, select[name="form[][type]"]').change(function(){e.updateFormIds()});a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){e.addCategory()});a('input[name="emailNotification"]').change(function(){var b=a("#adminEmailSettings tr:gt(0)");0<a('input[name="emailNotification"]:checked').val()?b.show():b.hide()}).change();
28
- a('input[name="userEmailNotification"]').change(function(){var b=a("#userEmailSettings tr:gt(0)");0<a('input[name="userEmailNotification"]:checked').val()?b.show():b.hide()}).change();e.updateFormIds();a('input[name="email[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("adminEmailEditor","tmce"):switchEditors.go("adminEmailEditor","html")}).change();a('input[name="userEmail[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("userEmailEditor",
29
- "tmce"):switchEditors.go("userEmailEditor","html")}).change()})()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",e=!0,d={loadStatistics:function(b){var c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics";b={action:"wp_pro_quiz_load_statistics",userId:b};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a.post(c,b,d.setStatistics,"json")},setStatistics:function(b){var d=
30
- a(".wpProQuiz_statistics_table"),e=d.find("tbody");if("wpProQuiz_typeOverview"!=c){var f=function(a,b,f){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);a.find(".wpProQuiz_cPoints").text(b.cPoints);1==f&&d.find(".wpProQuiz_cResult").text(b.result+"%")};f(d,b.clear,!1);a.each(b.items,function(a,b){f(e.find("#wpProQuiz_tr_"+b.id),b,!1)});f(d.find("tfoot"),b.global,!0);
31
- a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content, .wpProQuiz_statistics_table").show()}},loadOverview:function(){a(".wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a("#wpProQuiz_loadData").show();var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",h={action:"wp_pro_quiz_load_statistics",overview:!0,pageLimit:a("#wpProQuiz_pageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),
32
- page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(e)};a.post(b,h,function(b){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==c){var f=a('<tr><th><a href="#">---</a></th><th class="wpProQuiz_points">---</th><th class="wpProQuiz_cCorrect" style="color: green;">---</th><th class="wpProQuiz_cIncorrect" style="color: red;">---</th><th class="wpProQuiz_cTip">---</th><th class="wpProQuiz_cResult" style="font-weight: bold;">---</th></tr>');a.each(b.items,function(b,
33
- c){var d=f.clone();d.find("a").text(c.userName).data("userId",c.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});c.completed?(d.find(".wpProQuiz_points").text(c.cPoints),d.find(".wpProQuiz_cCorrect").text(c.cCorrect+" ("+c.pCorrect+"%)"),d.find(".wpProQuiz_cIncorrect").text(c.cIncorrect+" ("+c.pIncorrect+"%)"),d.find(".wpProQuiz_cTip").text(c.cTip),d.find(".wpProQuiz_cResult").text(c.result+"%")):d.find("th").removeAttr("style");
34
- a("#wpProQuiz_statistics_overview_data").append(d)});void 0!=b.page&&(d.setPageNav(b.page),e=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},loadFormOverview:function(){a("#wpProQuiz_tabFormOverview").show()},changeTab:function(b){c=b;"wpProQuiz_typeRegisteredUser"==b?d.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==b?d.loadStatistics(0):"wpProQuiz_typeForm"==b?d.loadFormOverview():d.loadOverview()},resetStatistic:function(b){var e="wpProQuiz_typeRegisteredUser"==
35
- c?a("#userSelect").val():0,n=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(n,{action:"wp_pro_quiz_statistics",userId:e,complete:b},function(a){d.changeTab(c)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var c=1;c<=b;c++)a(document.createElement("option")).val(c).text(c).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1<a("#wpProQuiz_currentPage option").length&&
36
- a("#wpProQuiz_pageRight").show()}};(function(){a(".wpProQuiz_tab").click(function(b){b=a(this);if(b.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==b.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");d.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){d.changeTab("wpProQuiz_typeRegisteredUser")});
37
  a(".wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);e=!0;d.changeTab(c);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
38
  1!=a("#wpProQuiz_currentPage option").length&&(a("#wpProQuiz_currentPage option:first-child:selected").length?a("#wpProQuiz_pageRight").show():a("#wpProQuiz_currentPage option:last-child:selected").length?a("#wpProQuiz_pageLeft").show():a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").show());d.changeTab(c)});a("#wpProQuiz_pageRight").click(function(){a("#wpProQuiz_currentPage option:selected").next().attr("selected","selected");a("#wpProQuiz_currentPage").change();return!1});a("#wpProQuiz_pageLeft").click(function(){a("#wpProQuiz_currentPage option:selected").prev().attr("selected",
39
  "selected");a("#wpProQuiz_currentPage").change();return!1});d.changeTab("wpProQuiz_typeAnonymeUser")})()};a.fn.wpProQuiz_toplist=function(){var c=a("#wpProQuiz_sorting"),e=a("#wpProQuiz_pageLimit"),d=a("#wpProQuiz_currentPage"),b=a("#wpProQuiz_loadData"),h=a("#wpProQuiz_pageLeft"),n=a("#wpProQuiz_pageRight"),f=a("#wpProQuiz_toplistTable tbody"),p=a("#wpProQuiz_toplistTable tbody tr:eq(0)").clone(),l=a("#wpProQuiz_content"),g={loadData:function(f){var p=(window.location.pathname+window.location.search).replace("admin.php",
16
  !1;var b="",b=void 0==tinymce.editors.text||tinymce.editors.text.isHidden()?a('textarea[name="text"]').val():tinymce.editors.text.getContent();if(d(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var c=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!e.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return c=!1});if(!c)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},
17
  resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(b){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})},generateFormIds:function(){var b=0;a("#form_table tbody > tr").each(function(){a(this).find('[name^="form[]"]').each(function(){var c=a(this).attr("name").substr(6);a(this).attr("name","form["+b+"]"+c)});++b})},updateFormIds:function(){var b=
18
  -1,c=a(".emailFormVariables option:selected").val(),e=a(".formVariables").empty(),f=a(".emailFormVariables").empty().append('<option value="-1"></option>');-1<a(".emailFormVariables").data("default")&&(c=a(".emailFormVariables").data("default"),a(".emailFormVariables").data("default",-1));a("#form_table tbody > tr").each(function(){a(this).children().first().text(b);var c=a(this).find(".formFieldName").val(),l=a(this).find('[name="form[][type]"] option:selected'),g=a(this).find('[name="form[][fieldname]"]').val();
19
+ 1!=a(this).find('input[name="form[][form_delete]"]').val()&&(0<=b&&!d(c)&&e.append(a("<li><span>$form{"+b+"}</span> - "+c+"</li>")),4==l.val()&&f.append(a('<option value="'+b+'">'+g+"</option>")),b++)});a('.emailFormVariables option[value="'+c+'"]').prop("selected",!0)}},d=function(b){b=a.trim(b);return!b||0===b.length};(function(){a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});a(".addResult").click(function(){e.addResult()});
20
+ a(".deleteResult").click(function(a){e.deleteResult(this)});a('input[name="resultTextGrade[prozent][]"]').keyup(function(a){e.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(b){e.validInput()?e.generateFormIds():b.preventDefault();a('select[name="prerequisiteList[]"] option').attr("selected",
21
+ "selected")});a('input[name="template"]').click(function(b){if("0"==a('select[name="templateSaveList"]').val()&&d(a('input[name="templateName"]').val()))return alert(wpProQuizLocalize.temploate_no_name),b.preventDefault(),!1;e.generateFormIds();a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('select[name="templateSaveList"]').change(function(){var b=a('input[name="templateName"]');"0"==a(this).val()?b.show():b.hide()}).change();a('input[name="quizRunOnce"]').change(function(b){this.checked?
22
+ (a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(b){!this.checked||"1"!=this.value&&"3"!=this.value?a("#wpProQuiz_quiz_run_once_cookie").hide():a("#wpProQuiz_quiz_run_once_cookie").show()});a('input[name="resetQuizLock"]').click(function(a){e.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(b){var c=a(this),d=a(document).width(),c=c.siblings().outerWidth(!0);
23
+ b.pageX+c>d&&(b=d-(b.pageX+c+30),a(this).next().css("left",b+"px"));a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});a('input[name="showMaxQuestion"]').change(function(){this.checked?a("#wpProQuiz_showMaxBox").show():a("#wpProQuiz_showMaxBox").hide()});a("#btnPrerequisiteAdd").click(function(){a('select[name="quizList"] option:selected').removeAttr("selected").appendTo('select[name="prerequisiteList[]"]')});a("#btnPrerequisiteDelete").click(function(){a('select[name="prerequisiteList[]"] option:selected').removeAttr("selected").appendTo('select[name="quizList"]')});
24
+ a('input[name="prerequisite"]').change(function(){this.checked?a("#prerequisiteBox").show():a("#prerequisiteBox").hide()}).change();a('input[name="toplistDataAddMultiple"]').change(function(){this.checked?a("#toplistDataAddBlockBox").show():a("#toplistDataAddBlockBox").hide()}).change();a('input[name="toplistActivated"]').change(function(){this.checked?a("#toplistBox > tr:gt(0)").show():a("#toplistBox > tr:gt(0)").hide()}).change();a('input[name="showReviewQuestion"]').change(function(){this.checked?
25
+ a(".wpProQuiz_reviewQuestionOptions").show():a(".wpProQuiz_reviewQuestionOptions").hide()}).change();a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change();a('input[name="showMaxQuestion"]').change();a("#form_add").click(function(){a("#form_table tbody > tr:eq(0)").clone(!0).appendTo("#form_table tbody").show();e.updateFormIds()});a('input[name="form_delete"]').click(function(){var b=a(this).parents("tr");
26
+ "0"!=b.find('input[name="form[][form_id]"]').val()?(b.find('input[name="form[][form_delete]"]').val(1),b.hide()):b.remove();e.updateFormIds()});a("#form_table tbody").sortable({handle:".form_move",update:e.updateFormIds});a(".form_move").click(function(){return!1});a('select[name="form[][type]"]').change(function(){switch(Number(a(this).val())){case 7:case 8:a(this).siblings(".editDropDown").show();break;default:a(this).siblings(".editDropDown, .dropDownEditBox").hide()}}).change();a(".editDropDown").click(function(){a(".dropDownEditBox").not(a(this).siblings(".dropDownEditBox").toggle()).hide();
27
+ return!1});a(".dropDownEditBox input").click(function(){a(this).parent().hide()});a('.formFieldName, select[name="form[][type]"]').change(function(){e.updateFormIds()});a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){e.addCategory()});a('input[name="emailNotification"]').change(function(){var b=a("#adminEmailSettings tr:gt(0)");0<a('input[name="emailNotification"]:checked').val()?b.show():
28
+ b.hide()}).change();a('input[name="userEmailNotification"]').change(function(){var b=a("#userEmailSettings tr:gt(0)");0<a('input[name="userEmailNotification"]:checked').val()?b.show():b.hide()}).change();e.updateFormIds();a('input[name="email[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("adminEmailEditor","tmce"):switchEditors.go("adminEmailEditor","html")}).change();a('input[name="userEmail[html]"]').change(function(){if(void 0==switchEditors)return!1;
29
+ this.checked?switchEditors.go("userEmailEditor","tmce"):switchEditors.go("userEmailEditor","html")}).change()})()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",e=!0,d={loadStatistics:function(b){var c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics";b={action:"wp_pro_quiz_load_statistics",userId:b};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a.post(c,
30
+ b,d.setStatistics,"json")},setStatistics:function(b){var d=a(".wpProQuiz_statistics_table"),e=d.find("tbody");if("wpProQuiz_typeOverview"!=c){var f=function(a,b,f){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);a.find(".wpProQuiz_cPoints").text(b.cPoints);1==f&&d.find(".wpProQuiz_cResult").text(b.result+"%")};f(d,b.clear,!1);a.each(b.items,function(a,b){f(e.find("#wpProQuiz_tr_"+
31
+ b.id),b,!1)});f(d.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content, .wpProQuiz_statistics_table").show()}},loadOverview:function(){a(".wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a("#wpProQuiz_loadData").show();var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",h={action:"wp_pro_quiz_load_statistics",overview:!0,pageLimit:a("#wpProQuiz_pageLimit").val(),
32
+ onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(e)};a.post(b,h,function(b){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==c){var f=a('<tr><th><a href="#">---</a></th><th class="wpProQuiz_points">---</th><th class="wpProQuiz_cCorrect" style="color: green;">---</th><th class="wpProQuiz_cIncorrect" style="color: red;">---</th><th class="wpProQuiz_cTip">---</th><th class="wpProQuiz_cResult" style="font-weight: bold;">---</th></tr>');
33
+ a.each(b.items,function(b,c){var d=f.clone();d.find("a").text(c.userName).data("userId",c.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});c.completed?(d.find(".wpProQuiz_points").text(c.cPoints),d.find(".wpProQuiz_cCorrect").text(c.cCorrect+" ("+c.pCorrect+"%)"),d.find(".wpProQuiz_cIncorrect").text(c.cIncorrect+" ("+c.pIncorrect+"%)"),d.find(".wpProQuiz_cTip").text(c.cTip),d.find(".wpProQuiz_cResult").text(c.result+"%")):
34
+ d.find("th").removeAttr("style");a("#wpProQuiz_statistics_overview_data").append(d)});void 0!=b.page&&(d.setPageNav(b.page),e=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},loadFormOverview:function(){a("#wpProQuiz_tabFormOverview").show()},changeTab:function(b){c=b;"wpProQuiz_typeRegisteredUser"==b?d.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==b?d.loadStatistics(0):"wpProQuiz_typeForm"==b?d.loadFormOverview():d.loadOverview()},resetStatistic:function(b){var e=
35
+ "wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():0,n=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(n,{action:"wp_pro_quiz_statistics",userId:e,complete:b},function(a){d.changeTab(c)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var c=1;c<=b;c++)a(document.createElement("option")).val(c).text(c).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
36
+ 1<a("#wpProQuiz_currentPage option").length&&a("#wpProQuiz_pageRight").show()}};(function(){a(".wpProQuiz_tab").click(function(b){b=a(this);if(b.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==b.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");d.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){d.changeTab("wpProQuiz_typeRegisteredUser")});
37
  a(".wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);e=!0;d.changeTab(c);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
38
  1!=a("#wpProQuiz_currentPage option").length&&(a("#wpProQuiz_currentPage option:first-child:selected").length?a("#wpProQuiz_pageRight").show():a("#wpProQuiz_currentPage option:last-child:selected").length?a("#wpProQuiz_pageLeft").show():a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").show());d.changeTab(c)});a("#wpProQuiz_pageRight").click(function(){a("#wpProQuiz_currentPage option:selected").next().attr("selected","selected");a("#wpProQuiz_currentPage").change();return!1});a("#wpProQuiz_pageLeft").click(function(){a("#wpProQuiz_currentPage option:selected").prev().attr("selected",
39
  "selected");a("#wpProQuiz_currentPage").change();return!1});d.changeTab("wpProQuiz_typeAnonymeUser")})()};a.fn.wpProQuiz_toplist=function(){var c=a("#wpProQuiz_sorting"),e=a("#wpProQuiz_pageLimit"),d=a("#wpProQuiz_currentPage"),b=a("#wpProQuiz_loadData"),h=a("#wpProQuiz_pageLeft"),n=a("#wpProQuiz_pageRight"),f=a("#wpProQuiz_toplistTable tbody"),p=a("#wpProQuiz_toplistTable tbody tr:eq(0)").clone(),l=a("#wpProQuiz_content"),g={loadData:function(f){var p=(window.location.pathname+window.location.search).replace("admin.php",
languages/wp-pro-quiz-it_IT.mo ADDED
Binary file
languages/wp-pro-quiz-it_IT.po ADDED
@@ -0,0 +1,3053 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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