Plugin Directory

Changeset 2998174


Ignore:
Timestamp:
11/18/2023 10:58:07 PM (2 years ago)
Author:
natata7
Message:

Update to version 1.1 from GitHub

Location:
mixtape
Files:
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mixtape/tags/1.1/assets/css/mixtape-front.css

    r2994803 r2998174  
    1414    height: 22px;
    1515    width: 22px;
    16     fill: #E42029;
     16    fill: var(--mixtape--main-color, #E42029);
    1717}
    1818
     
    154154
    155155#mixtape_reported_text .mixtape_mistake_inner {
    156     color: #E42029;
     156    color: var(--mixtape--main-color, #E42029);
    157157    font-weight: normal;
    158158}
     
    212212    border: none;
    213213    color: #fff;
    214     background: #E42029;
     214    background: var(--mixtape--main-color, #E42029);
    215215    text-decoration: none;
    216216    user-select: none;
     
    412412    width: 0;
    413413    height: 0;
    414     border-left: 152px solid #E42029;
     414    border-left: 152px solid var(--mixtape--main-color, #E42029);
    415415    border-right: 0;
    416416    border-top: 95px solid transparent;
     
    425425    width: 0;
    426426    height: 0;
    427     border-right: 152px solid #E42029;
     427    border-right: 152px solid var(--mixtape--main-color, #E42029);
    428428    border-left: 0;
    429429    border-top: 95px solid transparent;
     
    452452    width: 0;
    453453    height: 0;
    454     border-bottom: 95px solid #E42029;
     454    border-bottom: 95px solid var(--mixtape--main-color, #E42029);
    455455    border-top: 0;
    456456    border-left: 152px solid transparent;
     
    481481    /*background: url(../img/letter-back.svg) no-repeat;*/
    482482    /*background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2NDBweCIgaGVpZ2h0PSI0MDBweCIgdmlld0JveD0iMCAwIDY0MCA0MDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0MCA0MDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxyZWN0IHg9IjAiIGZpbGw9IiNCMjI0NDMiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDAwIi8+PHBvbHlsaW5lIGlkPSJ0b3AxIiBkaXNwbGF5PSJub25lIiBmaWxsPSIjQjIyNDQzIiBwb2ludHM9IjAsMCAzMjAsMjAwIDY0MCwwICIvPjwvc3ZnPg==);*/
    483     background-color: #E42029;
     483    background-color: var(--mixtape--main-color, #E42029);
    484484    background-repeat: no-repeat;
    485485    background-size: 100% 100%;
     
    512512    /*background: url(../img/letter-t2.svg) no-repeat;*/
    513513    /*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);
    515515    border-top: 0;
    516516    border-left: 152px solid transparent;
     
    544544    width: 0;
    545545    height: 0;
    546     border-bottom: 95px solid #E42029;
     546    border-bottom: 95px solid var(--mixtape--main-color, #E42029);
    547547    border-top: 0;
    548548    border-left: 152px solid transparent;
     
    629629    width: 100%;
    630630    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);
    631647}
    632648
  • mixtape/tags/1.1/assets/js/mixtape-front.js

    r2994803 r2998174  
    306306  }
    307307
    308   var getPointerEvent = function (event) {
    309     return event.originalEvent.targetTouches
    310       ? event.originalEvent.targetTouches[0]
    311       : event;
    312   };
     308  var reportButton;
    313309
    314310  window.mixtape = $.extend(window.mixtape, {
     
    332328          }
    333329          mixtape.animateLetter();
     330          mixtape.hideReportButton();
    334331        }
    335332      });
     
    349346          if (report) {
    350347            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();
    351359          }
    352360        }
     
    10401048      sel.extend(initialSel.focusNode, initialSel.focusOffset);
    10411049    },
     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    },
    10421087  });
    10431088
  • mixtape/tags/1.1/gulpfile.js

    r2994803 r2998174  
    1515    .pipe(gulp.dest("languages/mixtape.pot"));
    1616});
     17
     18gulp.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  
    44msgstr ""
    55"Project-Id-Version: Mixtape\n"
    6 "POT-Creation-Date: 2023-11-15 20:51+0000\n"
     6"POT-Creation-Date: 2023-11-18 22:38+0000\n"
    77"PO-Revision-Date: \n"
    88"Last-Translator: \n"
     
    5858msgstr "Ваш коментар (необов’язково)"
    5959
     60#: src/class-mixtape-abstract.php:318
     61msgid "Report an error"
     62msgstr "Повідомити про помилку"
     63
    6064#: src/class-mixtape-admin.php:65
    6165msgid "Administrator"
  • mixtape/tags/1.1/languages/mixtape.pot

    r2996697 r2998174  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2023-11-15 20:51+0000\n"
     9"POT-Creation-Date: 2023-11-18 22:38+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"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"
     
    4747msgstr ""
    4848
     49#: src/class-mixtape-abstract.php:318
     50msgid "Report an error"
     51msgstr ""
     52
    4953#: src/class-mixtape-admin.php:65
    5054msgid "Administrator"
  • mixtape/tags/1.1/mixtape.php

    r2996697 r2998174  
    33 * Plugin Name: Mixtape
    44 * Description: Mixtape allows visitors to effortlessly notify site staff about found spelling errors.
    5  * Version: 1.0.1
     5 * Version: 1.1
    66 * License: MIT License
    77 * License URI: http://opensource.org/licenses/MIT
  • mixtape/tags/1.1/readme.md

    r2996697 r2998174  
    77**License:** GPLv2 or later 
    88**Contributors:** natata7 
    9 **Stable tag:** 1.0.
     9**Stable tag:** 1.
    1010**License URI:** <http://www.gnu.org/licenses/gpl-2.0.html>
    1111
     
    33331. Go to Settings > Mixtape and set options.
    3434
     35### 1.1 ###
     36
     37* Add: the ability to send a bug report from a mobile device.
     38
    3539### 1.0 ###
    3640
  • mixtape/tags/1.1/readme.txt

    r2996697 r2998174  
    55Tested up to: 6.4.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.1
    88Contributors: natata7
    99License: GPLv2 or later
     
    28282. Activate and follow the settings link in the notice you will see at the top. Tick desired checkboxes, save, and that's it!
    2929
     30== 1.1 ==
     31
     32* Add: the ability to send a bug report from a mobile device.
     33
    3034== 1.0 ==
    3135
  • mixtape/tags/1.1/src/class-mixtape-abstract.php

    r2994803 r2998174  
    314314            true
    315315        );
    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 );
    317321    }
    318322
  • mixtape/tags/1.1/src/class-mixtape-front.php

    r2994803 r2998174  
    162162        echo '
    163163        <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'] ) . '; }
    171165        </style>
    172166        ';
  • mixtape/trunk/assets/css/mixtape-front.css

    r2994803 r2998174  
    1414    height: 22px;
    1515    width: 22px;
    16     fill: #E42029;
     16    fill: var(--mixtape--main-color, #E42029);
    1717}
    1818
     
    154154
    155155#mixtape_reported_text .mixtape_mistake_inner {
    156     color: #E42029;
     156    color: var(--mixtape--main-color, #E42029);
    157157    font-weight: normal;
    158158}
     
    212212    border: none;
    213213    color: #fff;
    214     background: #E42029;
     214    background: var(--mixtape--main-color, #E42029);
    215215    text-decoration: none;
    216216    user-select: none;
     
    412412    width: 0;
    413413    height: 0;
    414     border-left: 152px solid #E42029;
     414    border-left: 152px solid var(--mixtape--main-color, #E42029);
    415415    border-right: 0;
    416416    border-top: 95px solid transparent;
     
    425425    width: 0;
    426426    height: 0;
    427     border-right: 152px solid #E42029;
     427    border-right: 152px solid var(--mixtape--main-color, #E42029);
    428428    border-left: 0;
    429429    border-top: 95px solid transparent;
     
    452452    width: 0;
    453453    height: 0;
    454     border-bottom: 95px solid #E42029;
     454    border-bottom: 95px solid var(--mixtape--main-color, #E42029);
    455455    border-top: 0;
    456456    border-left: 152px solid transparent;
     
    481481    /*background: url(../img/letter-back.svg) no-repeat;*/
    482482    /*background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2NDBweCIgaGVpZ2h0PSI0MDBweCIgdmlld0JveD0iMCAwIDY0MCA0MDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDY0MCA0MDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxyZWN0IHg9IjAiIGZpbGw9IiNCMjI0NDMiIHdpZHRoPSI2NDAiIGhlaWdodD0iNDAwIi8+PHBvbHlsaW5lIGlkPSJ0b3AxIiBkaXNwbGF5PSJub25lIiBmaWxsPSIjQjIyNDQzIiBwb2ludHM9IjAsMCAzMjAsMjAwIDY0MCwwICIvPjwvc3ZnPg==);*/
    483     background-color: #E42029;
     483    background-color: var(--mixtape--main-color, #E42029);
    484484    background-repeat: no-repeat;
    485485    background-size: 100% 100%;
     
    512512    /*background: url(../img/letter-t2.svg) no-repeat;*/
    513513    /*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);
    515515    border-top: 0;
    516516    border-left: 152px solid transparent;
     
    544544    width: 0;
    545545    height: 0;
    546     border-bottom: 95px solid #E42029;
     546    border-bottom: 95px solid var(--mixtape--main-color, #E42029);
    547547    border-top: 0;
    548548    border-left: 152px solid transparent;
     
    629629    width: 100%;
    630630    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);
    631647}
    632648
  • mixtape/trunk/assets/js/mixtape-front.js

    r2994803 r2998174  
    306306  }
    307307
    308   var getPointerEvent = function (event) {
    309     return event.originalEvent.targetTouches
    310       ? event.originalEvent.targetTouches[0]
    311       : event;
    312   };
     308  var reportButton;
    313309
    314310  window.mixtape = $.extend(window.mixtape, {
     
    332328          }
    333329          mixtape.animateLetter();
     330          mixtape.hideReportButton();
    334331        }
    335332      });
     
    349346          if (report) {
    350347            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();
    351359          }
    352360        }
     
    10401048      sel.extend(initialSel.focusNode, initialSel.focusOffset);
    10411049    },
     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    },
    10421087  });
    10431088
  • mixtape/trunk/gulpfile.js

    r2994803 r2998174  
    1515    .pipe(gulp.dest("languages/mixtape.pot"));
    1616});
     17
     18gulp.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  
    44msgstr ""
    55"Project-Id-Version: Mixtape\n"
    6 "POT-Creation-Date: 2023-11-15 20:51+0000\n"
     6"POT-Creation-Date: 2023-11-18 22:38+0000\n"
    77"PO-Revision-Date: \n"
    88"Last-Translator: \n"
     
    5858msgstr "Ваш коментар (необов’язково)"
    5959
     60#: src/class-mixtape-abstract.php:318
     61msgid "Report an error"
     62msgstr "Повідомити про помилку"
     63
    6064#: src/class-mixtape-admin.php:65
    6165msgid "Administrator"
  • mixtape/trunk/languages/mixtape.pot

    r2996697 r2998174  
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2023-11-15 20:51+0000\n"
     9"POT-Creation-Date: 2023-11-18 22:38+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"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"
     
    4747msgstr ""
    4848
     49#: src/class-mixtape-abstract.php:318
     50msgid "Report an error"
     51msgstr ""
     52
    4953#: src/class-mixtape-admin.php:65
    5054msgid "Administrator"
  • mixtape/trunk/mixtape.php

    r2996697 r2998174  
    33 * Plugin Name: Mixtape
    44 * Description: Mixtape allows visitors to effortlessly notify site staff about found spelling errors.
    5  * Version: 1.0.1
     5 * Version: 1.1
    66 * License: MIT License
    77 * License URI: http://opensource.org/licenses/MIT
  • mixtape/trunk/readme.md

    r2996697 r2998174  
    77**License:** GPLv2 or later 
    88**Contributors:** natata7 
    9 **Stable tag:** 1.0.
     9**Stable tag:** 1.
    1010**License URI:** <http://www.gnu.org/licenses/gpl-2.0.html>
    1111
     
    33331. Go to Settings > Mixtape and set options.
    3434
     35### 1.1 ###
     36
     37* Add: the ability to send a bug report from a mobile device.
     38
    3539### 1.0 ###
    3640
  • mixtape/trunk/readme.txt

    r2996697 r2998174  
    55Tested up to: 6.4.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.1
    88Contributors: natata7
    99License: GPLv2 or later
     
    28282. Activate and follow the settings link in the notice you will see at the top. Tick desired checkboxes, save, and that's it!
    2929
     30== 1.1 ==
     31
     32* Add: the ability to send a bug report from a mobile device.
     33
    3034== 1.0 ==
    3135
  • mixtape/trunk/src/class-mixtape-abstract.php

    r2994803 r2998174  
    314314            true
    315315        );
    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 );
    317321    }
    318322
  • mixtape/trunk/src/class-mixtape-front.php

    r2994803 r2998174  
    162162        echo '
    163163        <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'] ) . '; }
    171165        </style>
    172166        ';
Note: See TracChangeset for help on using the changeset viewer.