Changeset 2998174
- Timestamp:
- 11/18/2023 10:58:07 PM (2 years ago)
- Location:
- mixtape
- Files:
-
- 22 edited
- 1 copied
-
tags/1.1 (copied) (copied from mixtape/trunk)
-
tags/1.1/assets/css/mixtape-front.css (modified) (10 diffs)
-
tags/1.1/assets/js/mixtape-front.js (modified) (4 diffs)
-
tags/1.1/gulpfile.js (modified) (1 diff)
-
tags/1.1/languages/mixtape-uk.mo (modified) (previous)
-
tags/1.1/languages/mixtape-uk.po (modified) (2 diffs)
-
tags/1.1/languages/mixtape.pot (modified) (2 diffs)
-
tags/1.1/mixtape.php (modified) (1 diff)
-
tags/1.1/readme.md (modified) (2 diffs)
-
tags/1.1/readme.txt (modified) (2 diffs)
-
tags/1.1/src/class-mixtape-abstract.php (modified) (1 diff)
-
tags/1.1/src/class-mixtape-front.php (modified) (1 diff)
-
trunk/assets/css/mixtape-front.css (modified) (10 diffs)
-
trunk/assets/js/mixtape-front.js (modified) (4 diffs)
-
trunk/gulpfile.js (modified) (1 diff)
-
trunk/languages/mixtape-uk.mo (modified) (previous)
-
trunk/languages/mixtape-uk.po (modified) (2 diffs)
-
trunk/languages/mixtape.pot (modified) (2 diffs)
-
trunk/mixtape.php (modified) (1 diff)
-
trunk/readme.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/class-mixtape-abstract.php (modified) (1 diff)
-
trunk/src/class-mixtape-front.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mixtape/tags/1.1/assets/css/mixtape-front.css
r2994803 r2998174 14 14 height: 22px; 15 15 width: 22px; 16 fill: #E42029;16 fill: var(--mixtape--main-color, #E42029); 17 17 } 18 18 … … 154 154 155 155 #mixtape_reported_text .mixtape_mistake_inner { 156 color: #E42029;156 color: var(--mixtape--main-color, #E42029); 157 157 font-weight: normal; 158 158 } … … 212 212 border: none; 213 213 color: #fff; 214 background: #E42029;214 background: var(--mixtape--main-color, #E42029); 215 215 text-decoration: none; 216 216 user-select: none; … … 412 412 width: 0; 413 413 height: 0; 414 border-left: 152px solid #E42029;414 border-left: 152px solid var(--mixtape--main-color, #E42029); 415 415 border-right: 0; 416 416 border-top: 95px solid transparent; … … 425 425 width: 0; 426 426 height: 0; 427 border-right: 152px solid #E42029;427 border-right: 152px solid var(--mixtape--main-color, #E42029); 428 428 border-left: 0; 429 429 border-top: 95px solid transparent; … … 452 452 width: 0; 453 453 height: 0; 454 border-bottom: 95px solid #E42029;454 border-bottom: 95px solid var(--mixtape--main-color, #E42029); 455 455 border-top: 0; 456 456 border-left: 152px solid transparent; … … 481 481 /*background: url(../img/letter-back.svg) no-repeat;*/ 482 482 /*background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2NDBweCIgaGVpZ2h0PSI0MDBweCIgdmlld0JveD0iMCAwIDY0MCA0MDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0MCA0MDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxyZWN0IHg9IjAiIGZpbGw9IiNCMjI0NDMiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDAwIi8+PHBvbHlsaW5lIGlkPSJ0b3AxIiBkaXNwbGF5PSJub25lIiBmaWxsPSIjQjIyNDQzIiBwb2ludHM9IjAsMCAzMjAsMjAwIDY0MCwwICIvPjwvc3ZnPg==);*/ 483 background-color: #E42029;483 background-color: var(--mixtape--main-color, #E42029); 484 484 background-repeat: no-repeat; 485 485 background-size: 100% 100%; … … 512 512 /*background: url(../img/letter-t2.svg) no-repeat;*/ 513 513 /*background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2NDBweCIgaGVpZ2h0PSIyMDBweCIgdmlld0JveD0iMCAwIDY0MCAyMDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0MCAyMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIGlkPSJ0b3AyIiBmaWxsPSIjOTcxRTNGIiBwb2ludHM9IjAsMjAwIDY0MCwyMDAgMzIwLDAgIi8+PC9zdmc+);*/ 514 border-bottom: 95px solid #E42029;514 border-bottom: 95px solid var(--mixtape--main-color, #E42029); 515 515 border-top: 0; 516 516 border-left: 152px solid transparent; … … 544 544 width: 0; 545 545 height: 0; 546 border-bottom: 95px solid #E42029;546 border-bottom: 95px solid var(--mixtape--main-color, #E42029); 547 547 border-top: 0; 548 548 border-left: 152px solid transparent; … … 629 629 width: 100%; 630 630 position: relative; 631 box-sizing: border-box; 632 } 633 634 .mixtape-report-button{ 635 padding: 22px 25px; 636 margin: 0 5px; 637 font-weight: 600; 638 border: 1px solid var(--mixtape--main-color, #E42029); 639 background: #fff; 640 text-decoration: none; 641 user-select: none; 642 font-weight: 400; 643 font-size: 16px; 644 line-height: 100%; 645 min-width: 150px; 646 color: var(--mixtape--main-color, #E42029); 631 647 } 632 648 -
mixtape/tags/1.1/assets/js/mixtape-front.js
r2994803 r2998174 306 306 } 307 307 308 var getPointerEvent = function (event) { 309 return event.originalEvent.targetTouches 310 ? event.originalEvent.targetTouches[0] 311 : event; 312 }; 308 var reportButton; 313 309 314 310 window.mixtape = $.extend(window.mixtape, { … … 332 328 } 333 329 mixtape.animateLetter(); 330 mixtape.hideReportButton(); 334 331 } 335 332 }); … … 349 346 if (report) { 350 347 mixtape.showDialog(report); 348 } 349 } 350 }); 351 352 document.addEventListener("selectionchange", function () { 353 if ($("#mixtape_dialog.dialog--open").length === 0) { 354 var selection = window.getSelection().toString().trim(); 355 if (selection !== "" && window.innerWidth < 1024) { 356 mixtape.showReportButton(); 357 } else { 358 mixtape.hideReportButton(); 351 359 } 352 360 } … … 1040 1048 sel.extend(initialSel.focusNode, initialSel.focusOffset); 1041 1049 }, 1050 1051 showReportButton: function () { 1052 if (!reportButton) { 1053 reportButton = $("<button>") 1054 .text(mixtape.reportError) 1055 .addClass("mixtape-report-button") 1056 .on("click", function () { 1057 const report = mixtape.getSelectionData(); 1058 if (report) { 1059 mixtape.showDialog(report); 1060 } 1061 }); 1062 1063 $("body").append(reportButton); 1064 } 1065 1066 const selection = window.getSelection(); 1067 const range = selection.getRangeAt(0); 1068 const rect = range.getBoundingClientRect(); 1069 1070 const buttonHeight = reportButton.outerHeight(); 1071 1072 const topPosition = rect.top + window.scrollY - 20 - buttonHeight; 1073 1074 reportButton.css({ 1075 top: topPosition + "px", 1076 left: rect.left + window.scrollX + "px", 1077 position: "absolute", 1078 }); 1079 }, 1080 1081 hideReportButton: function () { 1082 if (reportButton) { 1083 reportButton.remove(); 1084 reportButton = null; 1085 } 1086 }, 1042 1087 }); 1043 1088 -
mixtape/tags/1.1/gulpfile.js
r2994803 r2998174 15 15 .pipe(gulp.dest("languages/mixtape.pot")); 16 16 }); 17 18 gulp.task("phpcs", function () { 19 return gulp 20 .src(["src/**/*.php", "!src/vendor/**/*.*"]) 21 22 .pipe( 23 phpcs({ 24 bin: "vendor/bin/phpcs", 25 }) 26 ) 27 28 .pipe(phpcs.reporter("log")); 29 }); -
mixtape/tags/1.1/languages/mixtape-uk.po
r2996697 r2998174 4 4 msgstr "" 5 5 "Project-Id-Version: Mixtape\n" 6 "POT-Creation-Date: 2023-11-1 5 20:51+0000\n"6 "POT-Creation-Date: 2023-11-18 22:38+0000\n" 7 7 "PO-Revision-Date: \n" 8 8 "Last-Translator: \n" … … 58 58 msgstr "Ваш коментар (необов’язково)" 59 59 60 #: src/class-mixtape-abstract.php:318 61 msgid "Report an error" 62 msgstr "Повідомити про помилку" 63 60 64 #: src/class-mixtape-admin.php:65 61 65 msgid "Administrator" -
mixtape/tags/1.1/languages/mixtape.pot
r2996697 r2998174 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2023-11-1 5 20:51+0000\n"9 "POT-Creation-Date: 2023-11-18 22:38+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 47 47 msgstr "" 48 48 49 #: src/class-mixtape-abstract.php:318 50 msgid "Report an error" 51 msgstr "" 52 49 53 #: src/class-mixtape-admin.php:65 50 54 msgid "Administrator" -
mixtape/tags/1.1/mixtape.php
r2996697 r2998174 3 3 * Plugin Name: Mixtape 4 4 * Description: Mixtape allows visitors to effortlessly notify site staff about found spelling errors. 5 * Version: 1. 0.15 * Version: 1.1 6 6 * License: MIT License 7 7 * License URI: http://opensource.org/licenses/MIT -
mixtape/tags/1.1/readme.md
r2996697 r2998174 7 7 **License:** GPLv2 or later 8 8 **Contributors:** natata7 9 **Stable tag:** 1. 0.19 **Stable tag:** 1.1 10 10 **License URI:** <http://www.gnu.org/licenses/gpl-2.0.html> 11 11 … … 33 33 1. Go to Settings > Mixtape and set options. 34 34 35 ### 1.1 ### 36 37 * Add: the ability to send a bug report from a mobile device. 38 35 39 ### 1.0 ### 36 40 -
mixtape/tags/1.1/readme.txt
r2996697 r2998174 5 5 Tested up to: 6.4.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 0.17 Stable tag: 1.1 8 8 Contributors: natata7 9 9 License: GPLv2 or later … … 28 28 2. Activate and follow the settings link in the notice you will see at the top. Tick desired checkboxes, save, and that's it! 29 29 30 == 1.1 == 31 32 * Add: the ability to send a bug report from a mobile device. 33 30 34 == 1.0 == 31 35 -
mixtape/tags/1.1/src/class-mixtape-abstract.php
r2994803 r2998174 314 314 true 315 315 ); 316 wp_localize_script( 'mixtape-front', 'mixtape', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); 316 $localized_data = array( 317 'ajaxurl' => admin_url( 'admin-ajax.php' ), 318 'reportError' => __( 'Report an error', 'mixtape' ), 319 ); 320 wp_localize_script( 'mixtape-front', 'mixtape', $localized_data ); 317 321 } 318 322 -
mixtape/tags/1.1/src/class-mixtape-front.php
r2994803 r2998174 162 162 echo ' 163 163 <style type="text/css"> 164 .mixtape-test, .mixtape_mistake_inner {color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 165 #mixtape_dialog h2::before, #mixtape_dialog .mixtape_action, .mixtape-letter-back {background-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important; } 166 #mixtape_reported_text:before, #mixtape_reported_text:after {border-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 167 .mixtape-letter-front .front-left {border-left-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 168 .mixtape-letter-front .front-right {border-right-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 169 .mixtape-letter-front .front-bottom, .mixtape-letter-back > .mixtape-letter-back-top, .mixtape-letter-top {border-bottom-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 170 .mixtape-logo svg {fill: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 164 body {--mixtape--main-color:' . esc_html( $this->options['color_scheme'] ) . '; } 171 165 </style> 172 166 '; -
mixtape/trunk/assets/css/mixtape-front.css
r2994803 r2998174 14 14 height: 22px; 15 15 width: 22px; 16 fill: #E42029;16 fill: var(--mixtape--main-color, #E42029); 17 17 } 18 18 … … 154 154 155 155 #mixtape_reported_text .mixtape_mistake_inner { 156 color: #E42029;156 color: var(--mixtape--main-color, #E42029); 157 157 font-weight: normal; 158 158 } … … 212 212 border: none; 213 213 color: #fff; 214 background: #E42029;214 background: var(--mixtape--main-color, #E42029); 215 215 text-decoration: none; 216 216 user-select: none; … … 412 412 width: 0; 413 413 height: 0; 414 border-left: 152px solid #E42029;414 border-left: 152px solid var(--mixtape--main-color, #E42029); 415 415 border-right: 0; 416 416 border-top: 95px solid transparent; … … 425 425 width: 0; 426 426 height: 0; 427 border-right: 152px solid #E42029;427 border-right: 152px solid var(--mixtape--main-color, #E42029); 428 428 border-left: 0; 429 429 border-top: 95px solid transparent; … … 452 452 width: 0; 453 453 height: 0; 454 border-bottom: 95px solid #E42029;454 border-bottom: 95px solid var(--mixtape--main-color, #E42029); 455 455 border-top: 0; 456 456 border-left: 152px solid transparent; … … 481 481 /*background: url(../img/letter-back.svg) no-repeat;*/ 482 482 /*background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2NDBweCIgaGVpZ2h0PSI0MDBweCIgdmlld0JveD0iMCAwIDY0MCA0MDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0MCA0MDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxyZWN0IHg9IjAiIGZpbGw9IiNCMjI0NDMiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDAwIi8+PHBvbHlsaW5lIGlkPSJ0b3AxIiBkaXNwbGF5PSJub25lIiBmaWxsPSIjQjIyNDQzIiBwb2ludHM9IjAsMCAzMjAsMjAwIDY0MCwwICIvPjwvc3ZnPg==);*/ 483 background-color: #E42029;483 background-color: var(--mixtape--main-color, #E42029); 484 484 background-repeat: no-repeat; 485 485 background-size: 100% 100%; … … 512 512 /*background: url(../img/letter-t2.svg) no-repeat;*/ 513 513 /*background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2NDBweCIgaGVpZ2h0PSIyMDBweCIgdmlld0JveD0iMCAwIDY0MCAyMDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0MCAyMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIGlkPSJ0b3AyIiBmaWxsPSIjOTcxRTNGIiBwb2ludHM9IjAsMjAwIDY0MCwyMDAgMzIwLDAgIi8+PC9zdmc+);*/ 514 border-bottom: 95px solid #E42029;514 border-bottom: 95px solid var(--mixtape--main-color, #E42029); 515 515 border-top: 0; 516 516 border-left: 152px solid transparent; … … 544 544 width: 0; 545 545 height: 0; 546 border-bottom: 95px solid #E42029;546 border-bottom: 95px solid var(--mixtape--main-color, #E42029); 547 547 border-top: 0; 548 548 border-left: 152px solid transparent; … … 629 629 width: 100%; 630 630 position: relative; 631 box-sizing: border-box; 632 } 633 634 .mixtape-report-button{ 635 padding: 22px 25px; 636 margin: 0 5px; 637 font-weight: 600; 638 border: 1px solid var(--mixtape--main-color, #E42029); 639 background: #fff; 640 text-decoration: none; 641 user-select: none; 642 font-weight: 400; 643 font-size: 16px; 644 line-height: 100%; 645 min-width: 150px; 646 color: var(--mixtape--main-color, #E42029); 631 647 } 632 648 -
mixtape/trunk/assets/js/mixtape-front.js
r2994803 r2998174 306 306 } 307 307 308 var getPointerEvent = function (event) { 309 return event.originalEvent.targetTouches 310 ? event.originalEvent.targetTouches[0] 311 : event; 312 }; 308 var reportButton; 313 309 314 310 window.mixtape = $.extend(window.mixtape, { … … 332 328 } 333 329 mixtape.animateLetter(); 330 mixtape.hideReportButton(); 334 331 } 335 332 }); … … 349 346 if (report) { 350 347 mixtape.showDialog(report); 348 } 349 } 350 }); 351 352 document.addEventListener("selectionchange", function () { 353 if ($("#mixtape_dialog.dialog--open").length === 0) { 354 var selection = window.getSelection().toString().trim(); 355 if (selection !== "" && window.innerWidth < 1024) { 356 mixtape.showReportButton(); 357 } else { 358 mixtape.hideReportButton(); 351 359 } 352 360 } … … 1040 1048 sel.extend(initialSel.focusNode, initialSel.focusOffset); 1041 1049 }, 1050 1051 showReportButton: function () { 1052 if (!reportButton) { 1053 reportButton = $("<button>") 1054 .text(mixtape.reportError) 1055 .addClass("mixtape-report-button") 1056 .on("click", function () { 1057 const report = mixtape.getSelectionData(); 1058 if (report) { 1059 mixtape.showDialog(report); 1060 } 1061 }); 1062 1063 $("body").append(reportButton); 1064 } 1065 1066 const selection = window.getSelection(); 1067 const range = selection.getRangeAt(0); 1068 const rect = range.getBoundingClientRect(); 1069 1070 const buttonHeight = reportButton.outerHeight(); 1071 1072 const topPosition = rect.top + window.scrollY - 20 - buttonHeight; 1073 1074 reportButton.css({ 1075 top: topPosition + "px", 1076 left: rect.left + window.scrollX + "px", 1077 position: "absolute", 1078 }); 1079 }, 1080 1081 hideReportButton: function () { 1082 if (reportButton) { 1083 reportButton.remove(); 1084 reportButton = null; 1085 } 1086 }, 1042 1087 }); 1043 1088 -
mixtape/trunk/gulpfile.js
r2994803 r2998174 15 15 .pipe(gulp.dest("languages/mixtape.pot")); 16 16 }); 17 18 gulp.task("phpcs", function () { 19 return gulp 20 .src(["src/**/*.php", "!src/vendor/**/*.*"]) 21 22 .pipe( 23 phpcs({ 24 bin: "vendor/bin/phpcs", 25 }) 26 ) 27 28 .pipe(phpcs.reporter("log")); 29 }); -
mixtape/trunk/languages/mixtape-uk.po
r2996697 r2998174 4 4 msgstr "" 5 5 "Project-Id-Version: Mixtape\n" 6 "POT-Creation-Date: 2023-11-1 5 20:51+0000\n"6 "POT-Creation-Date: 2023-11-18 22:38+0000\n" 7 7 "PO-Revision-Date: \n" 8 8 "Last-Translator: \n" … … 58 58 msgstr "Ваш коментар (необов’язково)" 59 59 60 #: src/class-mixtape-abstract.php:318 61 msgid "Report an error" 62 msgstr "Повідомити про помилку" 63 60 64 #: src/class-mixtape-admin.php:65 61 65 msgid "Administrator" -
mixtape/trunk/languages/mixtape.pot
r2996697 r2998174 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 2023-11-1 5 20:51+0000\n"9 "POT-Creation-Date: 2023-11-18 22:38+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 47 47 msgstr "" 48 48 49 #: src/class-mixtape-abstract.php:318 50 msgid "Report an error" 51 msgstr "" 52 49 53 #: src/class-mixtape-admin.php:65 50 54 msgid "Administrator" -
mixtape/trunk/mixtape.php
r2996697 r2998174 3 3 * Plugin Name: Mixtape 4 4 * Description: Mixtape allows visitors to effortlessly notify site staff about found spelling errors. 5 * Version: 1. 0.15 * Version: 1.1 6 6 * License: MIT License 7 7 * License URI: http://opensource.org/licenses/MIT -
mixtape/trunk/readme.md
r2996697 r2998174 7 7 **License:** GPLv2 or later 8 8 **Contributors:** natata7 9 **Stable tag:** 1. 0.19 **Stable tag:** 1.1 10 10 **License URI:** <http://www.gnu.org/licenses/gpl-2.0.html> 11 11 … … 33 33 1. Go to Settings > Mixtape and set options. 34 34 35 ### 1.1 ### 36 37 * Add: the ability to send a bug report from a mobile device. 38 35 39 ### 1.0 ### 36 40 -
mixtape/trunk/readme.txt
r2996697 r2998174 5 5 Tested up to: 6.4.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 0.17 Stable tag: 1.1 8 8 Contributors: natata7 9 9 License: GPLv2 or later … … 28 28 2. Activate and follow the settings link in the notice you will see at the top. Tick desired checkboxes, save, and that's it! 29 29 30 == 1.1 == 31 32 * Add: the ability to send a bug report from a mobile device. 33 30 34 == 1.0 == 31 35 -
mixtape/trunk/src/class-mixtape-abstract.php
r2994803 r2998174 314 314 true 315 315 ); 316 wp_localize_script( 'mixtape-front', 'mixtape', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); 316 $localized_data = array( 317 'ajaxurl' => admin_url( 'admin-ajax.php' ), 318 'reportError' => __( 'Report an error', 'mixtape' ), 319 ); 320 wp_localize_script( 'mixtape-front', 'mixtape', $localized_data ); 317 321 } 318 322 -
mixtape/trunk/src/class-mixtape-front.php
r2994803 r2998174 162 162 echo ' 163 163 <style type="text/css"> 164 .mixtape-test, .mixtape_mistake_inner {color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 165 #mixtape_dialog h2::before, #mixtape_dialog .mixtape_action, .mixtape-letter-back {background-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important; } 166 #mixtape_reported_text:before, #mixtape_reported_text:after {border-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 167 .mixtape-letter-front .front-left {border-left-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 168 .mixtape-letter-front .front-right {border-right-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 169 .mixtape-letter-front .front-bottom, .mixtape-letter-back > .mixtape-letter-back-top, .mixtape-letter-top {border-bottom-color: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 170 .mixtape-logo svg {fill: ' . esc_html( $this->options['color_scheme'] ) . ' !important;} 164 body {--mixtape--main-color:' . esc_html( $this->options['color_scheme'] ) . '; } 171 165 </style> 172 166 ';
Note: See TracChangeset
for help on using the changeset viewer.