Plugin Directory

Changeset 3040906


Ignore:
Timestamp:
02/25/2024 09:16:58 PM (2 years ago)
Author:
Lwangaman
Message:

Update to version 8.2 from GitHub

Location:
bibleget-io
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bibleget-io/tags/8.2/bibleget-io.php

    r3040715 r3040906  
    44 * Plugin URI: https://www.bibleget.io/
    55 * Description: Easily insert Bible quotes from a choice of Bible versions into your articles or pages with the "Bible quote" block or with the shortcode [bibleget].
    6  * Version: 8.1
     6 * Version: 8.2
    77 * Requires at least: 5.6
    88 * Requires PHP: 7.4
     
    3131
    3232
    33 define("BIBLEGETPLUGINVERSION", "v8_1");
     33define("BIBLEGETPLUGINVERSION", "v8_2");
    3434
    3535if (!defined('ABSPATH')) {
  • bibleget-io/tags/8.2/js/gutenberg.js

    r3040715 r3040906  
    77const BGET = BibleGetGlobal.BGETConstants;
    88//console.log(BibleGetGlobal);
    9 class Incrementer {
    10     static i = 0;
    11     static incr = () => ++this.i;
    12 }
    13 const { incr } = Incrementer;
    149
    1510const getKeyByValue = (object, value) => Object.keys(object).find((key) => object[key] === value);
    1611
    17 ((blocks, element, i18n, editor, components, ServerSideRender, $) => {
     12(async (blocks, element, i18n, editor, components, ServerSideRender, $) => {
    1813    //define the same attributes as the shortcode, but now in JSON format
    1914    const { registerBlockType } = blocks; //Blocks API
     
    6762            "optgroup",
    6863            { label: label },
    69             options.map(function (item, index) {
     64            options.map((item) => {
    7065                return createElement(
    7166                    Option,
    72                     Object.assign(
    73                         {},
    74                         { key: `${item.label.replace(/\s/g, "")}-${index}` },
    75                         item
    76                     )
     67                    item
    7768                );
    7869            })
     
    10293                value: value,
    10394            },
    104             options.map(function (item, index) {
     95            options.map((item) => {
    10596                if ("options" in item) {
    10697                    return createElement(
    10798                        OptionGroup,
    108                         Object.assign(
    109                             {},
    110                             { key: `${item.label.replace(/\s/g, "")}-${index}` },
    111                             item
    112                         )
     99                        item
    113100                    );
    114101                }
    115102                return createElement(
    116103                    Option,
    117                     Object.assign(
    118                         {},
    119                         { key: `${item.label.replace(/\s/g, "")}-${index}` },
    120                         item
    121                     )
     104                    item
    122105                );
    123106            })
     
    126109
    127110    const websafe_fonts = [
    128         { fontFamily: "Arial", fallback: "Helvetica", genericFamily: "sans-serif" },
     111        {
     112            fontFamily: "Arial",
     113            fallback: "Helvetica",
     114            genericFamily: "sans-serif" },
    129115        {
    130116            fontFamily: "Arial Black",
     
    142128            genericFamily: "monospace",
    143129        },
    144         { fontFamily: "Georgia", genericFamily: "serif" },
    145         { fontFamily: "Impact", fallback: "Charcoal", genericFamily: "sans-serif" },
     130        {
     131            fontFamily: "Georgia",
     132            genericFamily: "serif"
     133        },
     134        {
     135            fontFamily:"Impact",
     136            fallback: "Charcoal",
     137            genericFamily: "sans-serif"
     138        },
    146139        {
    147140            fontFamily: "Lucida Console",
     
    159152            genericFamily: "serif",
    160153        },
    161         { fontFamily: "Tahoma", fallback: "Geneva", genericFamily: "sans-serif" },
     154        {
     155            fontFamily: "Tahoma",
     156            fallback: "Geneva",
     157            genericFamily: "sans-serif"
     158        },
    162159        {
    163160            fontFamily: "Times New Roman",
     
    170167            genericFamily: "sans-serif",
    171168        },
    172         { fontFamily: "Verdana", fallback: "Geneva", genericFamily: "sans-serif" },
     169        {
     170            fontFamily: "Verdana",
     171            fallback: "Geneva",
     172            genericFamily: "sans-serif"
     173        }
    173174    ];
    174175
    175176    const fontOptions = [];
    176     websafe_fonts.forEach((fontObj, idx) =>
     177    websafe_fonts.forEach((fontObj) =>
    177178        fontOptions.push({
    178179            label: fontObj.fontFamily + " [websafe]",
     
    189190    ) {
    190191        BibleGetGlobal.GFonts.items.forEach(value => fontOptions.push({ label: value.family, value: value.family.replace(/ /g,"+") }) );
     192    } else {
     193        const googlefonts_fallback = await fetch('../wp-content/plugins/bibleget-io/js/googlefonts-fallback.json').then(result => result.json());
     194        googlefonts_fallback.forEach(value => fontOptions.push({ label: value.replace(/\+/g," "), value: value }));
    191195    }
    192196
     
    267271            const changeQuery = (QUERY) => {
    268272                //BibleGetGlobal.BGETProperties['QUERY'].default = QUERY;
    269                 setAttributes({ QUERY });
     273                return setAttributes({ QUERY });
    270274            }
    271275
     
    282286                }
    283287                //BibleGetGlobal.BGETProperties['VERSION'].default = VERSION;
    284                 setAttributes({ VERSION });
     288                return setAttributes({ VERSION });
    285289            }
    286290
     
    291295                    ? BGET.PREFERORIGIN.HEBREW
    292296                    : BGET.PREFERORIGIN.GREEK;
    293                 setAttributes({ PREFERORIGIN });
     297                return setAttributes({ PREFERORIGIN });
    294298            }
    295299
     
    297301            const changePopup = (POPUP) => {
    298302                //BibleGetGlobal.BGETProperties['POPUP'].default = POPUP;
    299                 setAttributes({ POPUP });
     303                return setAttributes({ POPUP });
    300304            }
    301305
     
    304308                    "LAYOUTPREFS_SHOWBIBLEVERSION"
    305309                ].default = LAYOUTPREFS_SHOWBIBLEVERSION;
    306                 setAttributes({ LAYOUTPREFS_SHOWBIBLEVERSION });
     310                return setAttributes({ LAYOUTPREFS_SHOWBIBLEVERSION });
    307311            }
    308312
     
    324328                    "LAYOUTPREFS_BIBLEVERSIONALIGNMENT"
    325329                ].default = LAYOUTPREFS_BIBLEVERSIONALIGNMENT;
    326                 setAttributes({ LAYOUTPREFS_BIBLEVERSIONALIGNMENT });
     330                return setAttributes({ LAYOUTPREFS_BIBLEVERSIONALIGNMENT });
    327331            }
    328332
     
    332336                    "LAYOUTPREFS_BIBLEVERSIONPOSITION"
    333337                ].default = LAYOUTPREFS_BIBLEVERSIONPOSITION;
    334                 setAttributes({ LAYOUTPREFS_BIBLEVERSIONPOSITION });
     338                return setAttributes({ LAYOUTPREFS_BIBLEVERSIONPOSITION });
    335339            }
    336340
     
    340344                    "LAYOUTPREFS_BIBLEVERSIONWRAP"
    341345                ].default = LAYOUTPREFS_BIBLEVERSIONWRAP;
    342                 setAttributes({ LAYOUTPREFS_BIBLEVERSIONWRAP });
     346                return setAttributes({ LAYOUTPREFS_BIBLEVERSIONWRAP });
    343347            }
    344348
     
    358362                    "LAYOUTPREFS_BOOKCHAPTERALIGNMENT"
    359363                ].default = LAYOUTPREFS_BOOKCHAPTERALIGNMENT;
    360                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERALIGNMENT });
     364                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERALIGNMENT });
    361365            }
    362366
     
    366370                    "LAYOUTPREFS_BOOKCHAPTERPOSITION"
    367371                ].default = LAYOUTPREFS_BOOKCHAPTERPOSITION;
    368                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERPOSITION });
     372                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERPOSITION });
    369373            }
    370374
     
    374378                    "LAYOUTPREFS_BOOKCHAPTERWRAP"
    375379                ].default = LAYOUTPREFS_BOOKCHAPTERWRAP;
    376                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERWRAP });
     380                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERWRAP });
    377381            }
    378382
     
    381385                    "LAYOUTPREFS_BOOKCHAPTERFULLQUERY"
    382386                ].default = LAYOUTPREFS_BOOKCHAPTERFULLQUERY;
    383                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERFULLQUERY });
     387                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERFULLQUERY });
    384388            }
    385389
     
    406410                    "LAYOUTPREFS_BOOKCHAPTERFORMAT"
    407411                ].default = LAYOUTPREFS_BOOKCHAPTERFORMAT;
    408                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
     412                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
    409413            }
    410414
     
    431435                    "LAYOUTPREFS_BOOKCHAPTERFORMAT"
    432436                ].default = LAYOUTPREFS_BOOKCHAPTERFORMAT;
    433                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
     437                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
    434438            }
    435439
     
    438442                    "LAYOUTPREFS_SHOWVERSENUMBERS"
    439443                ].default = LAYOUTPREFS_SHOWVERSENUMBERS;
    440                 setAttributes({ LAYOUTPREFS_SHOWVERSENUMBERS });
     444                return setAttributes({ LAYOUTPREFS_SHOWVERSENUMBERS });
    441445            }
    442446
     
    454458                    "PARAGRAPHSTYLES_BORDERWIDTH"
    455459                ].default = PARAGRAPHSTYLES_BORDERWIDTH;
    456                 setAttributes({ PARAGRAPHSTYLES_BORDERWIDTH });
     460                return setAttributes({ PARAGRAPHSTYLES_BORDERWIDTH });
    457461            }
    458462
     
    470474                    "PARAGRAPHSTYLES_BORDERRADIUS"
    471475                ].default = PARAGRAPHSTYLES_BORDERRADIUS;
    472                 setAttributes({ PARAGRAPHSTYLES_BORDERRADIUS });
     476                return setAttributes({ PARAGRAPHSTYLES_BORDERRADIUS });
    473477            }
    474478
     
    487491                    "PARAGRAPHSTYLES_BORDERSTYLE"
    488492                ].default = PARAGRAPHSTYLES_BORDERSTYLE;
    489                 setAttributes({ PARAGRAPHSTYLES_BORDERSTYLE });
     493                return setAttributes({ PARAGRAPHSTYLES_BORDERSTYLE });
    490494            }
    491495
     
    504508                    "PARAGRAPHSTYLES_BORDERCOLOR"
    505509                ].default = PARAGRAPHSTYLES_BORDERCOLOR;
    506                 setAttributes({ PARAGRAPHSTYLES_BORDERCOLOR });
     510                return setAttributes({ PARAGRAPHSTYLES_BORDERCOLOR });
    507511            }
    508512
     
    521525                    "PARAGRAPHSTYLES_BACKGROUNDCOLOR"
    522526                ].default = PARAGRAPHSTYLES_BACKGROUNDCOLOR;
    523                 setAttributes({ PARAGRAPHSTYLES_BACKGROUNDCOLOR });
     527                return setAttributes({ PARAGRAPHSTYLES_BACKGROUNDCOLOR });
    524528            }
    525529
     
    554558                    "PARAGRAPHSTYLES_MARGINTOPBOTTOM"
    555559                ].default = PARAGRAPHSTYLES_MARGINTOPBOTTOM;
    556                 setAttributes({ PARAGRAPHSTYLES_MARGINTOPBOTTOM });
     560                return setAttributes({ PARAGRAPHSTYLES_MARGINTOPBOTTOM });
    557561            }
    558562
     
    587591                    "PARAGRAPHSTYLES_MARGINLEFTRIGHT"
    588592                ].default = PARAGRAPHSTYLES_MARGINLEFTRIGHT;
    589                 setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHT });
     593                return setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHT });
    590594            }
    591595
     
    617621                    "PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT"
    618622                ].default = PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT;
    619                 setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT });
     623                return setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT });
    620624            }
    621625
     
    636640                    "PARAGRAPHSTYLES_PADDINGTOPBOTTOM"
    637641                ].default = PARAGRAPHSTYLES_PADDINGTOPBOTTOM;
    638                 setAttributes({ PARAGRAPHSTYLES_PADDINGTOPBOTTOM });
     642                return setAttributes({ PARAGRAPHSTYLES_PADDINGTOPBOTTOM });
    639643            }
    640644
     
    655659                    "PARAGRAPHSTYLES_PADDINGLEFTRIGHT"
    656660                ].default = PARAGRAPHSTYLES_PADDINGLEFTRIGHT;
    657                 setAttributes({ PARAGRAPHSTYLES_PADDINGLEFTRIGHT });
     661                return setAttributes({ PARAGRAPHSTYLES_PADDINGLEFTRIGHT });
    658662            }
    659663
     
    673677                    "PARAGRAPHSTYLES_LINEHEIGHT"
    674678                ].default = PARAGRAPHSTYLES_LINEHEIGHT;
    675                 setAttributes({ PARAGRAPHSTYLES_LINEHEIGHT });
     679                return setAttributes({ PARAGRAPHSTYLES_LINEHEIGHT });
    676680            }
    677681
     
    687691                    "PARAGRAPHSTYLES_WIDTH"
    688692                ].default = PARAGRAPHSTYLES_WIDTH;
    689                 setAttributes({ PARAGRAPHSTYLES_WIDTH });
     693                return setAttributes({ PARAGRAPHSTYLES_WIDTH });
    690694            }
    691695
     
    747751                            "VERSIONSTYLES_BOLD"
    748752                        ].default = VERSIONSTYLES_BOLD;
    749                         setAttributes({ VERSIONSTYLES_BOLD });
    750                         break;
     753                        return setAttributes({ VERSIONSTYLES_BOLD });
    751754                    case BGET.TEXTSTYLE.ITALIC:
    752755                        BibleGetGlobal.BGETProperties[
    753756                            "VERSIONSTYLES_ITALIC"
    754757                        ].default = VERSIONSTYLES_ITALIC;
    755                         setAttributes({ VERSIONSTYLES_ITALIC });
    756                         break;
     758                        return setAttributes({ VERSIONSTYLES_ITALIC });
    757759                    case BGET.TEXTSTYLE.UNDERLINE:
    758760                        BibleGetGlobal.BGETProperties[
    759761                            "VERSIONSTYLES_UNDERLINE"
    760762                        ].default = VERSIONSTYLES_UNDERLINE;
    761                         setAttributes({ VERSIONSTYLES_UNDERLINE });
    762                         break;
     763                        return setAttributes({ VERSIONSTYLES_UNDERLINE });
    763764                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    764765                        BibleGetGlobal.BGETProperties[
    765766                            "VERSIONSTYLES_STRIKETHROUGH"
    766767                        ].default = VERSIONSTYLES_STRIKETHROUGH;
    767                         setAttributes({ VERSIONSTYLES_STRIKETHROUGH });
    768                         break;
     768                        return setAttributes({ VERSIONSTYLES_STRIKETHROUGH });
    769769                }
    770770            }
     
    788788                    "VERSIONSTYLES_FONTSIZE"
    789789                ].default = VERSIONSTYLES_FONTSIZE;
    790                 setAttributes({ VERSIONSTYLES_FONTSIZE });
     790                return setAttributes({ VERSIONSTYLES_FONTSIZE });
    791791            }
    792792
     
    809809                    "VERSIONSTYLES_FONTSIZEUNIT"
    810810                ].default = VERSIONSTYLES_FONTSIZEUNIT;
    811                 setAttributes({ VERSIONSTYLES_FONTSIZEUNIT });
     811                return setAttributes({ VERSIONSTYLES_FONTSIZEUNIT });
    812812            }
    813813
     
    826826                    "VERSIONSTYLES_TEXTCOLOR"
    827827                ].default = VERSIONSTYLES_TEXTCOLOR;
    828                 setAttributes({ VERSIONSTYLES_TEXTCOLOR });
     828                return setAttributes({ VERSIONSTYLES_TEXTCOLOR });
    829829            }
    830830
     
    886886                            "BOOKCHAPTERSTYLES_BOLD"
    887887                        ].default = BOOKCHAPTERSTYLES_BOLD;
    888                         setAttributes({ BOOKCHAPTERSTYLES_BOLD });
    889                         break;
     888                        return setAttributes({ BOOKCHAPTERSTYLES_BOLD });
    890889                    case BGET.TEXTSTYLE.ITALIC:
    891890                        BibleGetGlobal.BGETProperties[
    892891                            "BOOKCHAPTERSTYLES_ITALIC"
    893892                        ].default = BOOKCHAPTERSTYLES_ITALIC;
    894                         setAttributes({ BOOKCHAPTERSTYLES_ITALIC });
    895                         break;
     893                        return setAttributes({ BOOKCHAPTERSTYLES_ITALIC });
    896894                    case BGET.TEXTSTYLE.UNDERLINE:
    897895                        BibleGetGlobal.BGETProperties[
    898896                            "BOOKCHAPTERSTYLES_UNDERLINE"
    899897                        ].default = BOOKCHAPTERSTYLES_UNDERLINE;
    900                         setAttributes({ BOOKCHAPTERSTYLES_UNDERLINE });
    901                         break;
     898                        return setAttributes({ BOOKCHAPTERSTYLES_UNDERLINE });
    902899                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    903900                        BibleGetGlobal.BGETProperties[
    904901                            "BOOKCHAPTERSTYLES_STRIKETHROUGH"
    905902                        ].default = BOOKCHAPTERSTYLES_STRIKETHROUGH;
    906                         setAttributes({ BOOKCHAPTERSTYLES_STRIKETHROUGH });
    907                         break;
     903                        return setAttributes({ BOOKCHAPTERSTYLES_STRIKETHROUGH });
    908904                }
    909905            }
     
    927923                    "BOOKCHAPTERSTYLES_FONTSIZE"
    928924                ].default = BOOKCHAPTERSTYLES_FONTSIZE;
    929                 setAttributes({ BOOKCHAPTERSTYLES_FONTSIZE });
     925                return setAttributes({ BOOKCHAPTERSTYLES_FONTSIZE });
    930926            }
    931927
     
    948944                    "BOOKCHAPTERSTYLES_FONTSIZEUNIT"
    949945                ].default = BOOKCHAPTERSTYLES_FONTSIZEUNIT;
    950                 setAttributes({ BOOKCHAPTERSTYLES_FONTSIZEUNIT });
     946                return setAttributes({ BOOKCHAPTERSTYLES_FONTSIZEUNIT });
    951947            }
    952948
     
    965961                    "BOOKCHAPTERSTYLES_TEXTCOLOR"
    966962                ].default = BOOKCHAPTERSTYLES_TEXTCOLOR;
    967                 setAttributes({ BOOKCHAPTERSTYLES_TEXTCOLOR });
     963                return setAttributes({ BOOKCHAPTERSTYLES_TEXTCOLOR });
    968964            }
    969965
     
    10251021                            "VERSENUMBERSTYLES_BOLD"
    10261022                        ].default = VERSENUMBERSTYLES_BOLD;
    1027                         setAttributes({ VERSENUMBERSTYLES_BOLD });
    1028                         break;
     1023                        return setAttributes({ VERSENUMBERSTYLES_BOLD });
    10291024                    case BGET.TEXTSTYLE.ITALIC:
    10301025                        BibleGetGlobal.BGETProperties[
    10311026                            "VERSENUMBERSTYLES_ITALIC"
    10321027                        ].default = VERSENUMBERSTYLES_ITALIC;
    1033                         setAttributes({ VERSENUMBERSTYLES_ITALIC });
    1034                         break;
     1028                        return setAttributes({ VERSENUMBERSTYLES_ITALIC });
    10351029                    case BGET.TEXTSTYLE.UNDERLINE:
    10361030                        BibleGetGlobal.BGETProperties[
    10371031                            "VERSENUMBERSTYLES_UNDERLINE"
    10381032                        ].default = VERSENUMBERSTYLES_UNDERLINE;
    1039                         setAttributes({ VERSENUMBERSTYLES_UNDERLINE });
    1040                         break;
     1033                        return setAttributes({ VERSENUMBERSTYLES_UNDERLINE });
    10411034                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    10421035                        BibleGetGlobal.BGETProperties[
    10431036                            "VERSENUMBERSTYLES_STRIKETHROUGH"
    10441037                        ].default = VERSENUMBERSTYLES_STRIKETHROUGH;
    1045                         setAttributes({ VERSENUMBERSTYLES_STRIKETHROUGH });
    1046                         break;
     1038                        return setAttributes({ VERSENUMBERSTYLES_STRIKETHROUGH });
    10471039                }
    10481040            }
     
    10661058                    "VERSENUMBERSTYLES_FONTSIZE"
    10671059                ].default = VERSENUMBERSTYLES_FONTSIZE;
    1068                 setAttributes({ VERSENUMBERSTYLES_FONTSIZE });
     1060                return setAttributes({ VERSENUMBERSTYLES_FONTSIZE });
    10691061            }
    10701062
     
    10871079                    "VERSENUMBERSTYLES_FONTSIZEUNIT"
    10881080                ].default = VERSENUMBERSTYLES_FONTSIZEUNIT;
    1089                 setAttributes({ VERSENUMBERSTYLES_FONTSIZEUNIT });
     1081                return setAttributes({ VERSENUMBERSTYLES_FONTSIZEUNIT });
    10901082            }
    10911083
     
    11041096                    "VERSENUMBERSTYLES_TEXTCOLOR"
    11051097                ].default = VERSENUMBERSTYLES_TEXTCOLOR;
    1106                 setAttributes({ VERSENUMBERSTYLES_TEXTCOLOR });
     1098                return setAttributes({ VERSENUMBERSTYLES_TEXTCOLOR });
    11071099            }
    11081100
     
    12401232                    "VERSENUMBERSTYLES_VALIGN"
    12411233                ].default = VERSENUMBERSTYLES_VALIGN;
    1242                 setAttributes({ VERSENUMBERSTYLES_VALIGN });
     1234                return setAttributes({ VERSENUMBERSTYLES_VALIGN });
    12431235            }
    12441236
     
    13661358                            "VERSETEXTSTYLES_BOLD"
    13671359                        ].default = VERSETEXTSTYLES_BOLD;
    1368                         setAttributes({ VERSETEXTSTYLES_BOLD });
    1369                         break;
     1360                        return setAttributes({ VERSETEXTSTYLES_BOLD });
    13701361                    case BGET.TEXTSTYLE.ITALIC:
    13711362                        BibleGetGlobal.BGETProperties[
    13721363                            "VERSETEXTSTYLES_ITALIC"
    13731364                        ].default = VERSETEXTSTYLES_ITALIC;
    1374                         setAttributes({ VERSETEXTSTYLES_ITALIC });
    1375                         break;
     1365                        return setAttributes({ VERSETEXTSTYLES_ITALIC });
    13761366                    case BGET.TEXTSTYLE.UNDERLINE:
    13771367                        BibleGetGlobal.BGETProperties[
    13781368                            "VERSETEXTSTYLES_UNDERLINE"
    13791369                        ].default = VERSETEXTSTYLES_UNDERLINE;
    1380                         setAttributes({ VERSETEXTSTYLES_UNDERLINE });
    1381                         break;
     1370                        return setAttributes({ VERSETEXTSTYLES_UNDERLINE });
    13821371                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    13831372                        BibleGetGlobal.BGETProperties[
    13841373                            "VERSETEXTSTYLES_STRIKETHROUGH"
    13851374                        ].default = VERSETEXTSTYLES_STRIKETHROUGH;
    1386                         setAttributes({ VERSETEXTSTYLES_STRIKETHROUGH });
    1387                         break;
     1375                        return setAttributes({ VERSETEXTSTYLES_STRIKETHROUGH });
    13881376                }
    13891377            }
     
    14071395                    "VERSETEXTSTYLES_FONTSIZE"
    14081396                ].default = VERSETEXTSTYLES_FONTSIZE;
    1409                 setAttributes({ VERSETEXTSTYLES_FONTSIZE });
     1397                return setAttributes({ VERSETEXTSTYLES_FONTSIZE });
    14101398            }
    14111399
     
    14281416                    "VERSETEXTSTYLES_FONTSIZEUNIT"
    14291417                ].default = VERSETEXTSTYLES_FONTSIZEUNIT;
    1430                 setAttributes({ VERSETEXTSTYLES_FONTSIZEUNIT });
     1418                return setAttributes({ VERSETEXTSTYLES_FONTSIZEUNIT });
    14311419            }
    14321420
     
    14431431                );
    14441432                BibleGetGlobal.BGETProperties["VERSETEXTSTYLES_TEXTCOLOR"].default = VERSETEXTSTYLES_TEXTCOLOR;
    1445                 setAttributes({ VERSETEXTSTYLES_TEXTCOLOR });
     1433                return setAttributes({ VERSETEXTSTYLES_TEXTCOLOR });
    14461434            }
    14471435
     
    14741462                );
    14751463                BibleGetGlobal.BGETProperties["PARAGRAPHSTYLES_FONTFAMILY"].default = PARAGRAPHSTYLES_FONTFAMILY;
    1476                 setAttributes({ PARAGRAPHSTYLES_FONTFAMILY });
     1464                return setAttributes({ PARAGRAPHSTYLES_FONTFAMILY });
    14771465            }
    14781466
     
    15061494                        .appendTo("body")
    15071495                        .dialog({
    1508                             close: function () {
    1509                                 $(this).dialog("destroy").remove();
     1496                            close: () => {
     1497                                dlg.dialog("destroy").remove();
    15101498                            },
    15111499                            dialogClass: "bibleGetSearchDlg",
     
    15291517                        .appendTo("body")
    15301518                        .dialog({
    1531                             close: function () {
    1532                                 $(this).dialog("destroy").remove();
     1519                            close: () => {
     1520                                dlg.dialog("destroy").remove();
    15331521                            },
    15341522                            dialogClass: "bibleGetSearchDlg",
     
    15771565                                        .appendTo("body")
    15781566                                        .dialog({
    1579                                             close: function () {
    1580                                                 $(this).dialog("destroy").remove();
     1567                                            close: () => {
     1568                                                dlgNoResults.dialog("destroy").remove();
    15811569                                            },
    15821570                                            dialogClass: "bibleGetSearchDlg",
     
    17041692                                                        "click",
    17051693                                                        "button",
    1706                                                         function () {
     1694                                                        (ev) => {
     1695                                                            const tgt = ev.currentTarget;
    17071696                                                            //First check the context of the button that was clicked: control panel or searchResultsContents
    17081697                                                            let $filterLabel,
     
    17121701                                                                REFRESH = false;
    17131702                                                            switch (
    1714                                                                 $(this)
     1703                                                                $(tgt)
    17151704                                                                    .parents(".searchResultsFlexChild")
    17161705                                                                    .attr("id")
     
    17471736                                                                            : "";
    17481737
    1749                                                                     switch ($(this).attr("id")) {
     1738                                                                    switch ($(tgt).attr("id")) {
    17501739                                                                        case "ORDER_RESULTS_BY":
    17511740                                                                            REFRESH = true;
     
    18311820                                                                case "searchResultsContents":
    18321821                                                                    //alert('button was clicked! it is in the context of the searchResultsContents');
    1833                                                                     //alert($(this).next().prop('tagName') );
     1822                                                                    //alert($(tgt).next().prop('tagName') );
    18341823                                                                    if (
    1835                                                                         $(this).next("input[type=hidden]").length !=
    1836                                                                         0
     1824                                                                        $(tgt).next("input[type=hidden]").length != 0
    18371825                                                                    ) {
    18381826                                                                        //showSpinner();
    1839                                                                         let currentRef = $(this)
     1827                                                                        let currentRef = $(tgt)
    18401828                                                                            .parent("td")
    18411829                                                                            .next("td")
    18421830                                                                            .text();
    18431831                                                                        if (
    1844                                                                             $quotesArr.includes(bookChapterVerse) ===
    1845                                                                             false
     1832                                                                            $quotesArr.includes(bookChapterVerse) === false
    18461833                                                                        ) {
    1847                                                                             $(this)
     1834                                                                            $(tgt)
    18481835                                                                                .addClass("disabled")
    18491836                                                                                .prop("disabled", true);
    1850                                                                             let $inputval = $(this)
     1837                                                                            let $inputval = $(tgt)
    18511838                                                                                .next("input[type=hidden]")
    18521839                                                                                .val();
     
    18771864                                                    );
    18781865                                                },
    1879                                                 close: function () {
     1866                                                close: () => {
    18801867                                                    $("#searchResultsContainer").off("click");
    1881                                                     $(this).dialog("destroy").remove();
     1868                                                    dlg.dialog("destroy").remove();
    18821869                                                },
    18831870                                                dialogClass: "bibleGetSearchDlg",
     
    21292116            return createElement(
    21302117                "div",
    2131                 { key: `bibleQuoteWrapperDiv-${incr()}` },
     2118                {},
    21322119                //Preview a block with a PHP render callback
    21332120                createElement(ServerSideRender, {
     
    33263313    });
    33273314
    3328     $(document).on("click", ".bibleget-popup-trigger", function () {
    3329         const popup_content = he.decode($(this).attr("data-popupcontent"));
     3315    $(document).on("click", ".bibleget-popup-trigger", (ev) => {
     3316        const tgt = ev.currentTarget;
     3317        const popup_content = he.decode($(tgt).attr("data-popupcontent"));
    33303318        const dlg = $(
    33313319            '<div class="bibleget-quote-div bibleget-popup">' +
     
    33363324            width: $(window).width() * 0.8,
    33373325            maxHeight: $(window).height() * 0.8,
    3338             title: $(this).text(),
     3326            title: $(tgt).text(),
    33393327            create: () => {
    33403328                // style fix for WordPress admin
     
    33453333                dlg.dialog("destroy");
    33463334                $(".bibleget-quote-div.bibleget-popup").remove();
    3347             },
     3335            }
    33483336        });
    33493337        return false;
  • bibleget-io/tags/8.2/js/jquery.fontselect.js

    r3040715 r3040906  
    306306(async ($) => {
    307307
    308     const google_fonts = [
    309         "Aclonica",
    310         "Allan",
    311         "Annie+Use+Your+Telescope",
    312         "Anonymous+Pro",
    313         "Allerta+Stencil",
    314         "Allerta",
    315         "Amaranth",
    316         "Anton",
    317         "Architects+Daughter",
    318         "Arimo",
    319         "Artifika",
    320         "Arvo",
    321         "Asset",
    322         "Astloch",
    323         "Bangers",
    324         "Bentham",
    325         "Bevan",
    326         "Bigshot+One",
    327         "Bowlby+One",
    328         "Bowlby+One+SC",
    329         "Brawler",
    330         "Buda",
    331         "Cabin",
    332         "Calligraffitti",
    333         "Candal",
    334         "Cantarell",
    335         "Cardo",
    336         "Carter One",
    337         "Caudex",
    338         "Cedarville+Cursive",
    339         "Cherry+Cream+Soda",
    340         "Chewy",
    341         "Coda",
    342         "Coming+Soon",
    343         "Copse",
    344         "Corben",
    345         "Cousine",
    346         "Covered+By+Your+Grace",
    347         "Crafty+Girls",
    348         "Crimson+Text",
    349         "Crushed",
    350         "Cuprum",
    351         "Damion",
    352         "Dancing+Script",
    353         "Dawning+of+a+New+Day",
    354         "Didact+Gothic",
    355         "Droid+Sans",
    356         "Droid+Sans+Mono",
    357         "Droid+Serif",
    358         "EB+Garamond",
    359         "Expletus+Sans",
    360         "Fontdiner+Swanky",
    361         "Forum",
    362         "Francois+One",
    363         "Geo",
    364         "Give+You+Glory",
    365         "Goblin+One",
    366         "Goudy+Bookletter+1911",
    367         "Gravitas+One",
    368         "Gruppo",
    369         "Hammersmith+One",
    370         "Holtwood+One+SC",
    371         "Homemade+Apple",
    372         "Inconsolata",
    373         "Indie+Flower",
    374         "IM+Fell+DW+Pica",
    375         "IM+Fell+DW+Pica+SC",
    376         "IM+Fell+Double+Pica",
    377         "IM+Fell+Double+Pica+SC",
    378         "IM+Fell+English",
    379         "IM+Fell+English+SC",
    380         "IM+Fell+French+Canon",
    381         "IM+Fell+French+Canon+SC",
    382         "IM+Fell+Great+Primer",
    383         "IM+Fell+Great+Primer+SC",
    384         "Irish+Grover",
    385         "Irish+Growler",
    386         "Istok+Web",
    387         "Josefin+Sans",
    388         "Josefin+Slab",
    389         "Judson",
    390         "Jura",
    391         "Just+Another+Hand",
    392         "Just+Me+Again+Down+Here",
    393         "Kameron",
    394         "Kenia",
    395         "Kranky",
    396         "Kreon",
    397         "Kristi",
    398         "La+Belle+Aurore",
    399         "Lato",
    400         "League+Script",
    401         "Lekton",
    402         "Limelight",
    403         "Lobster",
    404         "Lobster Two",
    405         "Lora",
    406         "Love+Ya+Like+A+Sister",
    407         "Loved+by+the+King",
    408         "Luckiest+Guy",
    409         "Maiden+Orange",
    410         "Mako",
    411         "Maven+Pro",
    412         "Meddon",
    413         "MedievalSharp",
    414         "Megrim",
    415         "Merriweather",
    416         "Metrophobic",
    417         "Michroma",
    418         "Miltonian Tattoo",
    419         "Miltonian",
    420         "Modern Antiqua",
    421         "Monofett",
    422         "Molengo",
    423         "Mountains of Christmas",
    424         "Muli",
    425         "Neucha",
    426         "Neuton",
    427         "News+Cycle",
    428         "Nixie+One",
    429         "Nobile",
    430         "Nova+Cut",
    431         "Nova+Flat",
    432         "Nova+Mono",
    433         "Nova+Oval",
    434         "Nova+Round",
    435         "Nova+Script",
    436         "Nova+Slim",
    437         "Nova+Square",
    438         "Nunito",
    439         "OFL+Sorts+Mill+Goudy+TT",
    440         "Old+Standard+TT",
    441         "Open+Sans",
    442         "Open+Sans+Condensed",
    443         "Orbitron",
    444         "Oswald",
    445         "Over+the+Rainbow",
    446         "Reenie+Beanie",
    447         "Pacifico",
    448         "Patrick+Hand",
    449         "Paytone+One",
    450         "Permanent+Marker",
    451         "Philosopher",
    452         "Play",
    453         "Playfair+Display",
    454         "Podkova",
    455         "PT+Sans",
    456         "PT+Sans+Narrow",
    457         "PT+Serif",
    458         "PT+Serif Caption",
    459         "Puritan",
    460         "Quattrocento",
    461         "Quattrocento+Sans",
    462         "Radley",
    463         "Raleway",
    464         "Redressed",
    465         "Rock+Salt",
    466         "Rokkitt",
    467         "Roboto",
    468         "Ruslan+Display",
    469         "Schoolbell",
    470         "Shadows+Into+Light",
    471         "Shanti",
    472         "Sigmar+One",
    473         "Six+Caps",
    474         "Slackey",
    475         "Smythe",
    476         "Sniglet",
    477         "Special+Elite",
    478         "Stardos+Stencil",
    479         "Sue+Ellen+Francisco",
    480         "Sunshiney",
    481         "Swanky+and+Moo+Moo",
    482         "Syncopate",
    483         "Tangerine",
    484         "Tenor+Sans",
    485         "Terminal+Dosis+Light",
    486         "The+Girl+Next+Door",
    487         "Tinos",
    488         "Ubuntu",
    489         "Ultra",
    490         "Unkempt",
    491         "UnifrakturCook",
    492         "UnifrakturMaguntia",
    493         "Varela",
    494         "Varela Round",
    495         "Vibur",
    496         "Vollkorn",
    497         "VT323",
    498         "Waiting+for+the+Sunrise",
    499         "Wallpoet",
    500         "Walter+Turncoat",
    501         "Wire+One",
    502         "Yanone+Kaffeesatz",
    503         "Yeseva+One",
    504         "Zeyada",
    505     ];
    506 
    507308    $.fontselect = {
    508309        settings: {
     
    518319        //console.log('Google Font API key not detected, using fallback list...');
    519320        //console.warn(ex);
    520     }) || google_fonts;
     321    }) || await fetch('../wp-content/plugins/bibleget-io/js/googlefonts-fallback.json').then(result => result.json());
    521322    //console.log('length of google fonts after api call: ' + $.fontselect.google_fonts.length);
    522323
  • bibleget-io/tags/8.2/vendor/composer/installed.php

    r3040715 r3040906  
    22    'root' => array(
    33        'name' => 'johnrdorazio/bibleget-wordpress',
    4         'pretty_version' => '8.1',
    5         'version' => '8.1.0.0',
    6         'reference' => '6321cd234b2d083d3bc1aa4915dfce35fa572cc5',
     4        'pretty_version' => '8.2',
     5        'version' => '8.2.0.0',
     6        'reference' => '442a7919a8a39ee149b5136f453972f664554573',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'johnrdorazio/bibleget-wordpress' => array(
    14             'pretty_version' => '8.1',
    15             'version' => '8.1.0.0',
    16             'reference' => '6321cd234b2d083d3bc1aa4915dfce35fa572cc5',
     14            'pretty_version' => '8.2',
     15            'version' => '8.2.0.0',
     16            'reference' => '442a7919a8a39ee149b5136f453972f664554573',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • bibleget-io/trunk/bibleget-io.php

    r3040715 r3040906  
    44 * Plugin URI: https://www.bibleget.io/
    55 * Description: Easily insert Bible quotes from a choice of Bible versions into your articles or pages with the "Bible quote" block or with the shortcode [bibleget].
    6  * Version: 8.1
     6 * Version: 8.2
    77 * Requires at least: 5.6
    88 * Requires PHP: 7.4
     
    3131
    3232
    33 define("BIBLEGETPLUGINVERSION", "v8_1");
     33define("BIBLEGETPLUGINVERSION", "v8_2");
    3434
    3535if (!defined('ABSPATH')) {
  • bibleget-io/trunk/js/gutenberg.js

    r3040715 r3040906  
    77const BGET = BibleGetGlobal.BGETConstants;
    88//console.log(BibleGetGlobal);
    9 class Incrementer {
    10     static i = 0;
    11     static incr = () => ++this.i;
    12 }
    13 const { incr } = Incrementer;
    149
    1510const getKeyByValue = (object, value) => Object.keys(object).find((key) => object[key] === value);
    1611
    17 ((blocks, element, i18n, editor, components, ServerSideRender, $) => {
     12(async (blocks, element, i18n, editor, components, ServerSideRender, $) => {
    1813    //define the same attributes as the shortcode, but now in JSON format
    1914    const { registerBlockType } = blocks; //Blocks API
     
    6762            "optgroup",
    6863            { label: label },
    69             options.map(function (item, index) {
     64            options.map((item) => {
    7065                return createElement(
    7166                    Option,
    72                     Object.assign(
    73                         {},
    74                         { key: `${item.label.replace(/\s/g, "")}-${index}` },
    75                         item
    76                     )
     67                    item
    7768                );
    7869            })
     
    10293                value: value,
    10394            },
    104             options.map(function (item, index) {
     95            options.map((item) => {
    10596                if ("options" in item) {
    10697                    return createElement(
    10798                        OptionGroup,
    108                         Object.assign(
    109                             {},
    110                             { key: `${item.label.replace(/\s/g, "")}-${index}` },
    111                             item
    112                         )
     99                        item
    113100                    );
    114101                }
    115102                return createElement(
    116103                    Option,
    117                     Object.assign(
    118                         {},
    119                         { key: `${item.label.replace(/\s/g, "")}-${index}` },
    120                         item
    121                     )
     104                    item
    122105                );
    123106            })
     
    126109
    127110    const websafe_fonts = [
    128         { fontFamily: "Arial", fallback: "Helvetica", genericFamily: "sans-serif" },
     111        {
     112            fontFamily: "Arial",
     113            fallback: "Helvetica",
     114            genericFamily: "sans-serif" },
    129115        {
    130116            fontFamily: "Arial Black",
     
    142128            genericFamily: "monospace",
    143129        },
    144         { fontFamily: "Georgia", genericFamily: "serif" },
    145         { fontFamily: "Impact", fallback: "Charcoal", genericFamily: "sans-serif" },
     130        {
     131            fontFamily: "Georgia",
     132            genericFamily: "serif"
     133        },
     134        {
     135            fontFamily:"Impact",
     136            fallback: "Charcoal",
     137            genericFamily: "sans-serif"
     138        },
    146139        {
    147140            fontFamily: "Lucida Console",
     
    159152            genericFamily: "serif",
    160153        },
    161         { fontFamily: "Tahoma", fallback: "Geneva", genericFamily: "sans-serif" },
     154        {
     155            fontFamily: "Tahoma",
     156            fallback: "Geneva",
     157            genericFamily: "sans-serif"
     158        },
    162159        {
    163160            fontFamily: "Times New Roman",
     
    170167            genericFamily: "sans-serif",
    171168        },
    172         { fontFamily: "Verdana", fallback: "Geneva", genericFamily: "sans-serif" },
     169        {
     170            fontFamily: "Verdana",
     171            fallback: "Geneva",
     172            genericFamily: "sans-serif"
     173        }
    173174    ];
    174175
    175176    const fontOptions = [];
    176     websafe_fonts.forEach((fontObj, idx) =>
     177    websafe_fonts.forEach((fontObj) =>
    177178        fontOptions.push({
    178179            label: fontObj.fontFamily + " [websafe]",
     
    189190    ) {
    190191        BibleGetGlobal.GFonts.items.forEach(value => fontOptions.push({ label: value.family, value: value.family.replace(/ /g,"+") }) );
     192    } else {
     193        const googlefonts_fallback = await fetch('../wp-content/plugins/bibleget-io/js/googlefonts-fallback.json').then(result => result.json());
     194        googlefonts_fallback.forEach(value => fontOptions.push({ label: value.replace(/\+/g," "), value: value }));
    191195    }
    192196
     
    267271            const changeQuery = (QUERY) => {
    268272                //BibleGetGlobal.BGETProperties['QUERY'].default = QUERY;
    269                 setAttributes({ QUERY });
     273                return setAttributes({ QUERY });
    270274            }
    271275
     
    282286                }
    283287                //BibleGetGlobal.BGETProperties['VERSION'].default = VERSION;
    284                 setAttributes({ VERSION });
     288                return setAttributes({ VERSION });
    285289            }
    286290
     
    291295                    ? BGET.PREFERORIGIN.HEBREW
    292296                    : BGET.PREFERORIGIN.GREEK;
    293                 setAttributes({ PREFERORIGIN });
     297                return setAttributes({ PREFERORIGIN });
    294298            }
    295299
     
    297301            const changePopup = (POPUP) => {
    298302                //BibleGetGlobal.BGETProperties['POPUP'].default = POPUP;
    299                 setAttributes({ POPUP });
     303                return setAttributes({ POPUP });
    300304            }
    301305
     
    304308                    "LAYOUTPREFS_SHOWBIBLEVERSION"
    305309                ].default = LAYOUTPREFS_SHOWBIBLEVERSION;
    306                 setAttributes({ LAYOUTPREFS_SHOWBIBLEVERSION });
     310                return setAttributes({ LAYOUTPREFS_SHOWBIBLEVERSION });
    307311            }
    308312
     
    324328                    "LAYOUTPREFS_BIBLEVERSIONALIGNMENT"
    325329                ].default = LAYOUTPREFS_BIBLEVERSIONALIGNMENT;
    326                 setAttributes({ LAYOUTPREFS_BIBLEVERSIONALIGNMENT });
     330                return setAttributes({ LAYOUTPREFS_BIBLEVERSIONALIGNMENT });
    327331            }
    328332
     
    332336                    "LAYOUTPREFS_BIBLEVERSIONPOSITION"
    333337                ].default = LAYOUTPREFS_BIBLEVERSIONPOSITION;
    334                 setAttributes({ LAYOUTPREFS_BIBLEVERSIONPOSITION });
     338                return setAttributes({ LAYOUTPREFS_BIBLEVERSIONPOSITION });
    335339            }
    336340
     
    340344                    "LAYOUTPREFS_BIBLEVERSIONWRAP"
    341345                ].default = LAYOUTPREFS_BIBLEVERSIONWRAP;
    342                 setAttributes({ LAYOUTPREFS_BIBLEVERSIONWRAP });
     346                return setAttributes({ LAYOUTPREFS_BIBLEVERSIONWRAP });
    343347            }
    344348
     
    358362                    "LAYOUTPREFS_BOOKCHAPTERALIGNMENT"
    359363                ].default = LAYOUTPREFS_BOOKCHAPTERALIGNMENT;
    360                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERALIGNMENT });
     364                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERALIGNMENT });
    361365            }
    362366
     
    366370                    "LAYOUTPREFS_BOOKCHAPTERPOSITION"
    367371                ].default = LAYOUTPREFS_BOOKCHAPTERPOSITION;
    368                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERPOSITION });
     372                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERPOSITION });
    369373            }
    370374
     
    374378                    "LAYOUTPREFS_BOOKCHAPTERWRAP"
    375379                ].default = LAYOUTPREFS_BOOKCHAPTERWRAP;
    376                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERWRAP });
     380                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERWRAP });
    377381            }
    378382
     
    381385                    "LAYOUTPREFS_BOOKCHAPTERFULLQUERY"
    382386                ].default = LAYOUTPREFS_BOOKCHAPTERFULLQUERY;
    383                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERFULLQUERY });
     387                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERFULLQUERY });
    384388            }
    385389
     
    406410                    "LAYOUTPREFS_BOOKCHAPTERFORMAT"
    407411                ].default = LAYOUTPREFS_BOOKCHAPTERFORMAT;
    408                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
     412                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
    409413            }
    410414
     
    431435                    "LAYOUTPREFS_BOOKCHAPTERFORMAT"
    432436                ].default = LAYOUTPREFS_BOOKCHAPTERFORMAT;
    433                 setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
     437                return setAttributes({ LAYOUTPREFS_BOOKCHAPTERFORMAT });
    434438            }
    435439
     
    438442                    "LAYOUTPREFS_SHOWVERSENUMBERS"
    439443                ].default = LAYOUTPREFS_SHOWVERSENUMBERS;
    440                 setAttributes({ LAYOUTPREFS_SHOWVERSENUMBERS });
     444                return setAttributes({ LAYOUTPREFS_SHOWVERSENUMBERS });
    441445            }
    442446
     
    454458                    "PARAGRAPHSTYLES_BORDERWIDTH"
    455459                ].default = PARAGRAPHSTYLES_BORDERWIDTH;
    456                 setAttributes({ PARAGRAPHSTYLES_BORDERWIDTH });
     460                return setAttributes({ PARAGRAPHSTYLES_BORDERWIDTH });
    457461            }
    458462
     
    470474                    "PARAGRAPHSTYLES_BORDERRADIUS"
    471475                ].default = PARAGRAPHSTYLES_BORDERRADIUS;
    472                 setAttributes({ PARAGRAPHSTYLES_BORDERRADIUS });
     476                return setAttributes({ PARAGRAPHSTYLES_BORDERRADIUS });
    473477            }
    474478
     
    487491                    "PARAGRAPHSTYLES_BORDERSTYLE"
    488492                ].default = PARAGRAPHSTYLES_BORDERSTYLE;
    489                 setAttributes({ PARAGRAPHSTYLES_BORDERSTYLE });
     493                return setAttributes({ PARAGRAPHSTYLES_BORDERSTYLE });
    490494            }
    491495
     
    504508                    "PARAGRAPHSTYLES_BORDERCOLOR"
    505509                ].default = PARAGRAPHSTYLES_BORDERCOLOR;
    506                 setAttributes({ PARAGRAPHSTYLES_BORDERCOLOR });
     510                return setAttributes({ PARAGRAPHSTYLES_BORDERCOLOR });
    507511            }
    508512
     
    521525                    "PARAGRAPHSTYLES_BACKGROUNDCOLOR"
    522526                ].default = PARAGRAPHSTYLES_BACKGROUNDCOLOR;
    523                 setAttributes({ PARAGRAPHSTYLES_BACKGROUNDCOLOR });
     527                return setAttributes({ PARAGRAPHSTYLES_BACKGROUNDCOLOR });
    524528            }
    525529
     
    554558                    "PARAGRAPHSTYLES_MARGINTOPBOTTOM"
    555559                ].default = PARAGRAPHSTYLES_MARGINTOPBOTTOM;
    556                 setAttributes({ PARAGRAPHSTYLES_MARGINTOPBOTTOM });
     560                return setAttributes({ PARAGRAPHSTYLES_MARGINTOPBOTTOM });
    557561            }
    558562
     
    587591                    "PARAGRAPHSTYLES_MARGINLEFTRIGHT"
    588592                ].default = PARAGRAPHSTYLES_MARGINLEFTRIGHT;
    589                 setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHT });
     593                return setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHT });
    590594            }
    591595
     
    617621                    "PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT"
    618622                ].default = PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT;
    619                 setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT });
     623                return setAttributes({ PARAGRAPHSTYLES_MARGINLEFTRIGHTUNIT });
    620624            }
    621625
     
    636640                    "PARAGRAPHSTYLES_PADDINGTOPBOTTOM"
    637641                ].default = PARAGRAPHSTYLES_PADDINGTOPBOTTOM;
    638                 setAttributes({ PARAGRAPHSTYLES_PADDINGTOPBOTTOM });
     642                return setAttributes({ PARAGRAPHSTYLES_PADDINGTOPBOTTOM });
    639643            }
    640644
     
    655659                    "PARAGRAPHSTYLES_PADDINGLEFTRIGHT"
    656660                ].default = PARAGRAPHSTYLES_PADDINGLEFTRIGHT;
    657                 setAttributes({ PARAGRAPHSTYLES_PADDINGLEFTRIGHT });
     661                return setAttributes({ PARAGRAPHSTYLES_PADDINGLEFTRIGHT });
    658662            }
    659663
     
    673677                    "PARAGRAPHSTYLES_LINEHEIGHT"
    674678                ].default = PARAGRAPHSTYLES_LINEHEIGHT;
    675                 setAttributes({ PARAGRAPHSTYLES_LINEHEIGHT });
     679                return setAttributes({ PARAGRAPHSTYLES_LINEHEIGHT });
    676680            }
    677681
     
    687691                    "PARAGRAPHSTYLES_WIDTH"
    688692                ].default = PARAGRAPHSTYLES_WIDTH;
    689                 setAttributes({ PARAGRAPHSTYLES_WIDTH });
     693                return setAttributes({ PARAGRAPHSTYLES_WIDTH });
    690694            }
    691695
     
    747751                            "VERSIONSTYLES_BOLD"
    748752                        ].default = VERSIONSTYLES_BOLD;
    749                         setAttributes({ VERSIONSTYLES_BOLD });
    750                         break;
     753                        return setAttributes({ VERSIONSTYLES_BOLD });
    751754                    case BGET.TEXTSTYLE.ITALIC:
    752755                        BibleGetGlobal.BGETProperties[
    753756                            "VERSIONSTYLES_ITALIC"
    754757                        ].default = VERSIONSTYLES_ITALIC;
    755                         setAttributes({ VERSIONSTYLES_ITALIC });
    756                         break;
     758                        return setAttributes({ VERSIONSTYLES_ITALIC });
    757759                    case BGET.TEXTSTYLE.UNDERLINE:
    758760                        BibleGetGlobal.BGETProperties[
    759761                            "VERSIONSTYLES_UNDERLINE"
    760762                        ].default = VERSIONSTYLES_UNDERLINE;
    761                         setAttributes({ VERSIONSTYLES_UNDERLINE });
    762                         break;
     763                        return setAttributes({ VERSIONSTYLES_UNDERLINE });
    763764                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    764765                        BibleGetGlobal.BGETProperties[
    765766                            "VERSIONSTYLES_STRIKETHROUGH"
    766767                        ].default = VERSIONSTYLES_STRIKETHROUGH;
    767                         setAttributes({ VERSIONSTYLES_STRIKETHROUGH });
    768                         break;
     768                        return setAttributes({ VERSIONSTYLES_STRIKETHROUGH });
    769769                }
    770770            }
     
    788788                    "VERSIONSTYLES_FONTSIZE"
    789789                ].default = VERSIONSTYLES_FONTSIZE;
    790                 setAttributes({ VERSIONSTYLES_FONTSIZE });
     790                return setAttributes({ VERSIONSTYLES_FONTSIZE });
    791791            }
    792792
     
    809809                    "VERSIONSTYLES_FONTSIZEUNIT"
    810810                ].default = VERSIONSTYLES_FONTSIZEUNIT;
    811                 setAttributes({ VERSIONSTYLES_FONTSIZEUNIT });
     811                return setAttributes({ VERSIONSTYLES_FONTSIZEUNIT });
    812812            }
    813813
     
    826826                    "VERSIONSTYLES_TEXTCOLOR"
    827827                ].default = VERSIONSTYLES_TEXTCOLOR;
    828                 setAttributes({ VERSIONSTYLES_TEXTCOLOR });
     828                return setAttributes({ VERSIONSTYLES_TEXTCOLOR });
    829829            }
    830830
     
    886886                            "BOOKCHAPTERSTYLES_BOLD"
    887887                        ].default = BOOKCHAPTERSTYLES_BOLD;
    888                         setAttributes({ BOOKCHAPTERSTYLES_BOLD });
    889                         break;
     888                        return setAttributes({ BOOKCHAPTERSTYLES_BOLD });
    890889                    case BGET.TEXTSTYLE.ITALIC:
    891890                        BibleGetGlobal.BGETProperties[
    892891                            "BOOKCHAPTERSTYLES_ITALIC"
    893892                        ].default = BOOKCHAPTERSTYLES_ITALIC;
    894                         setAttributes({ BOOKCHAPTERSTYLES_ITALIC });
    895                         break;
     893                        return setAttributes({ BOOKCHAPTERSTYLES_ITALIC });
    896894                    case BGET.TEXTSTYLE.UNDERLINE:
    897895                        BibleGetGlobal.BGETProperties[
    898896                            "BOOKCHAPTERSTYLES_UNDERLINE"
    899897                        ].default = BOOKCHAPTERSTYLES_UNDERLINE;
    900                         setAttributes({ BOOKCHAPTERSTYLES_UNDERLINE });
    901                         break;
     898                        return setAttributes({ BOOKCHAPTERSTYLES_UNDERLINE });
    902899                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    903900                        BibleGetGlobal.BGETProperties[
    904901                            "BOOKCHAPTERSTYLES_STRIKETHROUGH"
    905902                        ].default = BOOKCHAPTERSTYLES_STRIKETHROUGH;
    906                         setAttributes({ BOOKCHAPTERSTYLES_STRIKETHROUGH });
    907                         break;
     903                        return setAttributes({ BOOKCHAPTERSTYLES_STRIKETHROUGH });
    908904                }
    909905            }
     
    927923                    "BOOKCHAPTERSTYLES_FONTSIZE"
    928924                ].default = BOOKCHAPTERSTYLES_FONTSIZE;
    929                 setAttributes({ BOOKCHAPTERSTYLES_FONTSIZE });
     925                return setAttributes({ BOOKCHAPTERSTYLES_FONTSIZE });
    930926            }
    931927
     
    948944                    "BOOKCHAPTERSTYLES_FONTSIZEUNIT"
    949945                ].default = BOOKCHAPTERSTYLES_FONTSIZEUNIT;
    950                 setAttributes({ BOOKCHAPTERSTYLES_FONTSIZEUNIT });
     946                return setAttributes({ BOOKCHAPTERSTYLES_FONTSIZEUNIT });
    951947            }
    952948
     
    965961                    "BOOKCHAPTERSTYLES_TEXTCOLOR"
    966962                ].default = BOOKCHAPTERSTYLES_TEXTCOLOR;
    967                 setAttributes({ BOOKCHAPTERSTYLES_TEXTCOLOR });
     963                return setAttributes({ BOOKCHAPTERSTYLES_TEXTCOLOR });
    968964            }
    969965
     
    10251021                            "VERSENUMBERSTYLES_BOLD"
    10261022                        ].default = VERSENUMBERSTYLES_BOLD;
    1027                         setAttributes({ VERSENUMBERSTYLES_BOLD });
    1028                         break;
     1023                        return setAttributes({ VERSENUMBERSTYLES_BOLD });
    10291024                    case BGET.TEXTSTYLE.ITALIC:
    10301025                        BibleGetGlobal.BGETProperties[
    10311026                            "VERSENUMBERSTYLES_ITALIC"
    10321027                        ].default = VERSENUMBERSTYLES_ITALIC;
    1033                         setAttributes({ VERSENUMBERSTYLES_ITALIC });
    1034                         break;
     1028                        return setAttributes({ VERSENUMBERSTYLES_ITALIC });
    10351029                    case BGET.TEXTSTYLE.UNDERLINE:
    10361030                        BibleGetGlobal.BGETProperties[
    10371031                            "VERSENUMBERSTYLES_UNDERLINE"
    10381032                        ].default = VERSENUMBERSTYLES_UNDERLINE;
    1039                         setAttributes({ VERSENUMBERSTYLES_UNDERLINE });
    1040                         break;
     1033                        return setAttributes({ VERSENUMBERSTYLES_UNDERLINE });
    10411034                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    10421035                        BibleGetGlobal.BGETProperties[
    10431036                            "VERSENUMBERSTYLES_STRIKETHROUGH"
    10441037                        ].default = VERSENUMBERSTYLES_STRIKETHROUGH;
    1045                         setAttributes({ VERSENUMBERSTYLES_STRIKETHROUGH });
    1046                         break;
     1038                        return setAttributes({ VERSENUMBERSTYLES_STRIKETHROUGH });
    10471039                }
    10481040            }
     
    10661058                    "VERSENUMBERSTYLES_FONTSIZE"
    10671059                ].default = VERSENUMBERSTYLES_FONTSIZE;
    1068                 setAttributes({ VERSENUMBERSTYLES_FONTSIZE });
     1060                return setAttributes({ VERSENUMBERSTYLES_FONTSIZE });
    10691061            }
    10701062
     
    10871079                    "VERSENUMBERSTYLES_FONTSIZEUNIT"
    10881080                ].default = VERSENUMBERSTYLES_FONTSIZEUNIT;
    1089                 setAttributes({ VERSENUMBERSTYLES_FONTSIZEUNIT });
     1081                return setAttributes({ VERSENUMBERSTYLES_FONTSIZEUNIT });
    10901082            }
    10911083
     
    11041096                    "VERSENUMBERSTYLES_TEXTCOLOR"
    11051097                ].default = VERSENUMBERSTYLES_TEXTCOLOR;
    1106                 setAttributes({ VERSENUMBERSTYLES_TEXTCOLOR });
     1098                return setAttributes({ VERSENUMBERSTYLES_TEXTCOLOR });
    11071099            }
    11081100
     
    12401232                    "VERSENUMBERSTYLES_VALIGN"
    12411233                ].default = VERSENUMBERSTYLES_VALIGN;
    1242                 setAttributes({ VERSENUMBERSTYLES_VALIGN });
     1234                return setAttributes({ VERSENUMBERSTYLES_VALIGN });
    12431235            }
    12441236
     
    13661358                            "VERSETEXTSTYLES_BOLD"
    13671359                        ].default = VERSETEXTSTYLES_BOLD;
    1368                         setAttributes({ VERSETEXTSTYLES_BOLD });
    1369                         break;
     1360                        return setAttributes({ VERSETEXTSTYLES_BOLD });
    13701361                    case BGET.TEXTSTYLE.ITALIC:
    13711362                        BibleGetGlobal.BGETProperties[
    13721363                            "VERSETEXTSTYLES_ITALIC"
    13731364                        ].default = VERSETEXTSTYLES_ITALIC;
    1374                         setAttributes({ VERSETEXTSTYLES_ITALIC });
    1375                         break;
     1365                        return setAttributes({ VERSETEXTSTYLES_ITALIC });
    13761366                    case BGET.TEXTSTYLE.UNDERLINE:
    13771367                        BibleGetGlobal.BGETProperties[
    13781368                            "VERSETEXTSTYLES_UNDERLINE"
    13791369                        ].default = VERSETEXTSTYLES_UNDERLINE;
    1380                         setAttributes({ VERSETEXTSTYLES_UNDERLINE });
    1381                         break;
     1370                        return setAttributes({ VERSETEXTSTYLES_UNDERLINE });
    13821371                    case BGET.TEXTSTYLE.STRIKETHROUGH:
    13831372                        BibleGetGlobal.BGETProperties[
    13841373                            "VERSETEXTSTYLES_STRIKETHROUGH"
    13851374                        ].default = VERSETEXTSTYLES_STRIKETHROUGH;
    1386                         setAttributes({ VERSETEXTSTYLES_STRIKETHROUGH });
    1387                         break;
     1375                        return setAttributes({ VERSETEXTSTYLES_STRIKETHROUGH });
    13881376                }
    13891377            }
     
    14071395                    "VERSETEXTSTYLES_FONTSIZE"
    14081396                ].default = VERSETEXTSTYLES_FONTSIZE;
    1409                 setAttributes({ VERSETEXTSTYLES_FONTSIZE });
     1397                return setAttributes({ VERSETEXTSTYLES_FONTSIZE });
    14101398            }
    14111399
     
    14281416                    "VERSETEXTSTYLES_FONTSIZEUNIT"
    14291417                ].default = VERSETEXTSTYLES_FONTSIZEUNIT;
    1430                 setAttributes({ VERSETEXTSTYLES_FONTSIZEUNIT });
     1418                return setAttributes({ VERSETEXTSTYLES_FONTSIZEUNIT });
    14311419            }
    14321420
     
    14431431                );
    14441432                BibleGetGlobal.BGETProperties["VERSETEXTSTYLES_TEXTCOLOR"].default = VERSETEXTSTYLES_TEXTCOLOR;
    1445                 setAttributes({ VERSETEXTSTYLES_TEXTCOLOR });
     1433                return setAttributes({ VERSETEXTSTYLES_TEXTCOLOR });
    14461434            }
    14471435
     
    14741462                );
    14751463                BibleGetGlobal.BGETProperties["PARAGRAPHSTYLES_FONTFAMILY"].default = PARAGRAPHSTYLES_FONTFAMILY;
    1476                 setAttributes({ PARAGRAPHSTYLES_FONTFAMILY });
     1464                return setAttributes({ PARAGRAPHSTYLES_FONTFAMILY });
    14771465            }
    14781466
     
    15061494                        .appendTo("body")
    15071495                        .dialog({
    1508                             close: function () {
    1509                                 $(this).dialog("destroy").remove();
     1496                            close: () => {
     1497                                dlg.dialog("destroy").remove();
    15101498                            },
    15111499                            dialogClass: "bibleGetSearchDlg",
     
    15291517                        .appendTo("body")
    15301518                        .dialog({
    1531                             close: function () {
    1532                                 $(this).dialog("destroy").remove();
     1519                            close: () => {
     1520                                dlg.dialog("destroy").remove();
    15331521                            },
    15341522                            dialogClass: "bibleGetSearchDlg",
     
    15771565                                        .appendTo("body")
    15781566                                        .dialog({
    1579                                             close: function () {
    1580                                                 $(this).dialog("destroy").remove();
     1567                                            close: () => {
     1568                                                dlgNoResults.dialog("destroy").remove();
    15811569                                            },
    15821570                                            dialogClass: "bibleGetSearchDlg",
     
    17041692                                                        "click",
    17051693                                                        "button",
    1706                                                         function () {
     1694                                                        (ev) => {
     1695                                                            const tgt = ev.currentTarget;
    17071696                                                            //First check the context of the button that was clicked: control panel or searchResultsContents
    17081697                                                            let $filterLabel,
     
    17121701                                                                REFRESH = false;
    17131702                                                            switch (
    1714                                                                 $(this)
     1703                                                                $(tgt)
    17151704                                                                    .parents(".searchResultsFlexChild")
    17161705                                                                    .attr("id")
     
    17471736                                                                            : "";
    17481737
    1749                                                                     switch ($(this).attr("id")) {
     1738                                                                    switch ($(tgt).attr("id")) {
    17501739                                                                        case "ORDER_RESULTS_BY":
    17511740                                                                            REFRESH = true;
     
    18311820                                                                case "searchResultsContents":
    18321821                                                                    //alert('button was clicked! it is in the context of the searchResultsContents');
    1833                                                                     //alert($(this).next().prop('tagName') );
     1822                                                                    //alert($(tgt).next().prop('tagName') );
    18341823                                                                    if (
    1835                                                                         $(this).next("input[type=hidden]").length !=
    1836                                                                         0
     1824                                                                        $(tgt).next("input[type=hidden]").length != 0
    18371825                                                                    ) {
    18381826                                                                        //showSpinner();
    1839                                                                         let currentRef = $(this)
     1827                                                                        let currentRef = $(tgt)
    18401828                                                                            .parent("td")
    18411829                                                                            .next("td")
    18421830                                                                            .text();
    18431831                                                                        if (
    1844                                                                             $quotesArr.includes(bookChapterVerse) ===
    1845                                                                             false
     1832                                                                            $quotesArr.includes(bookChapterVerse) === false
    18461833                                                                        ) {
    1847                                                                             $(this)
     1834                                                                            $(tgt)
    18481835                                                                                .addClass("disabled")
    18491836                                                                                .prop("disabled", true);
    1850                                                                             let $inputval = $(this)
     1837                                                                            let $inputval = $(tgt)
    18511838                                                                                .next("input[type=hidden]")
    18521839                                                                                .val();
     
    18771864                                                    );
    18781865                                                },
    1879                                                 close: function () {
     1866                                                close: () => {
    18801867                                                    $("#searchResultsContainer").off("click");
    1881                                                     $(this).dialog("destroy").remove();
     1868                                                    dlg.dialog("destroy").remove();
    18821869                                                },
    18831870                                                dialogClass: "bibleGetSearchDlg",
     
    21292116            return createElement(
    21302117                "div",
    2131                 { key: `bibleQuoteWrapperDiv-${incr()}` },
     2118                {},
    21322119                //Preview a block with a PHP render callback
    21332120                createElement(ServerSideRender, {
     
    33263313    });
    33273314
    3328     $(document).on("click", ".bibleget-popup-trigger", function () {
    3329         const popup_content = he.decode($(this).attr("data-popupcontent"));
     3315    $(document).on("click", ".bibleget-popup-trigger", (ev) => {
     3316        const tgt = ev.currentTarget;
     3317        const popup_content = he.decode($(tgt).attr("data-popupcontent"));
    33303318        const dlg = $(
    33313319            '<div class="bibleget-quote-div bibleget-popup">' +
     
    33363324            width: $(window).width() * 0.8,
    33373325            maxHeight: $(window).height() * 0.8,
    3338             title: $(this).text(),
     3326            title: $(tgt).text(),
    33393327            create: () => {
    33403328                // style fix for WordPress admin
     
    33453333                dlg.dialog("destroy");
    33463334                $(".bibleget-quote-div.bibleget-popup").remove();
    3347             },
     3335            }
    33483336        });
    33493337        return false;
  • bibleget-io/trunk/js/jquery.fontselect.js

    r3040715 r3040906  
    306306(async ($) => {
    307307
    308     const google_fonts = [
    309         "Aclonica",
    310         "Allan",
    311         "Annie+Use+Your+Telescope",
    312         "Anonymous+Pro",
    313         "Allerta+Stencil",
    314         "Allerta",
    315         "Amaranth",
    316         "Anton",
    317         "Architects+Daughter",
    318         "Arimo",
    319         "Artifika",
    320         "Arvo",
    321         "Asset",
    322         "Astloch",
    323         "Bangers",
    324         "Bentham",
    325         "Bevan",
    326         "Bigshot+One",
    327         "Bowlby+One",
    328         "Bowlby+One+SC",
    329         "Brawler",
    330         "Buda",
    331         "Cabin",
    332         "Calligraffitti",
    333         "Candal",
    334         "Cantarell",
    335         "Cardo",
    336         "Carter One",
    337         "Caudex",
    338         "Cedarville+Cursive",
    339         "Cherry+Cream+Soda",
    340         "Chewy",
    341         "Coda",
    342         "Coming+Soon",
    343         "Copse",
    344         "Corben",
    345         "Cousine",
    346         "Covered+By+Your+Grace",
    347         "Crafty+Girls",
    348         "Crimson+Text",
    349         "Crushed",
    350         "Cuprum",
    351         "Damion",
    352         "Dancing+Script",
    353         "Dawning+of+a+New+Day",
    354         "Didact+Gothic",
    355         "Droid+Sans",
    356         "Droid+Sans+Mono",
    357         "Droid+Serif",
    358         "EB+Garamond",
    359         "Expletus+Sans",
    360         "Fontdiner+Swanky",
    361         "Forum",
    362         "Francois+One",
    363         "Geo",
    364         "Give+You+Glory",
    365         "Goblin+One",
    366         "Goudy+Bookletter+1911",
    367         "Gravitas+One",
    368         "Gruppo",
    369         "Hammersmith+One",
    370         "Holtwood+One+SC",
    371         "Homemade+Apple",
    372         "Inconsolata",
    373         "Indie+Flower",
    374         "IM+Fell+DW+Pica",
    375         "IM+Fell+DW+Pica+SC",
    376         "IM+Fell+Double+Pica",
    377         "IM+Fell+Double+Pica+SC",
    378         "IM+Fell+English",
    379         "IM+Fell+English+SC",
    380         "IM+Fell+French+Canon",
    381         "IM+Fell+French+Canon+SC",
    382         "IM+Fell+Great+Primer",
    383         "IM+Fell+Great+Primer+SC",
    384         "Irish+Grover",
    385         "Irish+Growler",
    386         "Istok+Web",
    387         "Josefin+Sans",
    388         "Josefin+Slab",
    389         "Judson",
    390         "Jura",
    391         "Just+Another+Hand",
    392         "Just+Me+Again+Down+Here",
    393         "Kameron",
    394         "Kenia",
    395         "Kranky",
    396         "Kreon",
    397         "Kristi",
    398         "La+Belle+Aurore",
    399         "Lato",
    400         "League+Script",
    401         "Lekton",
    402         "Limelight",
    403         "Lobster",
    404         "Lobster Two",
    405         "Lora",
    406         "Love+Ya+Like+A+Sister",
    407         "Loved+by+the+King",
    408         "Luckiest+Guy",
    409         "Maiden+Orange",
    410         "Mako",
    411         "Maven+Pro",
    412         "Meddon",
    413         "MedievalSharp",
    414         "Megrim",
    415         "Merriweather",
    416         "Metrophobic",
    417         "Michroma",
    418         "Miltonian Tattoo",
    419         "Miltonian",
    420         "Modern Antiqua",
    421         "Monofett",
    422         "Molengo",
    423         "Mountains of Christmas",
    424         "Muli",
    425         "Neucha",
    426         "Neuton",
    427         "News+Cycle",
    428         "Nixie+One",
    429         "Nobile",
    430         "Nova+Cut",
    431         "Nova+Flat",
    432         "Nova+Mono",
    433         "Nova+Oval",
    434         "Nova+Round",
    435         "Nova+Script",
    436         "Nova+Slim",
    437         "Nova+Square",
    438         "Nunito",
    439         "OFL+Sorts+Mill+Goudy+TT",
    440         "Old+Standard+TT",
    441         "Open+Sans",
    442         "Open+Sans+Condensed",
    443         "Orbitron",
    444         "Oswald",
    445         "Over+the+Rainbow",
    446         "Reenie+Beanie",
    447         "Pacifico",
    448         "Patrick+Hand",
    449         "Paytone+One",
    450         "Permanent+Marker",
    451         "Philosopher",
    452         "Play",
    453         "Playfair+Display",
    454         "Podkova",
    455         "PT+Sans",
    456         "PT+Sans+Narrow",
    457         "PT+Serif",
    458         "PT+Serif Caption",
    459         "Puritan",
    460         "Quattrocento",
    461         "Quattrocento+Sans",
    462         "Radley",
    463         "Raleway",
    464         "Redressed",
    465         "Rock+Salt",
    466         "Rokkitt",
    467         "Roboto",
    468         "Ruslan+Display",
    469         "Schoolbell",
    470         "Shadows+Into+Light",
    471         "Shanti",
    472         "Sigmar+One",
    473         "Six+Caps",
    474         "Slackey",
    475         "Smythe",
    476         "Sniglet",
    477         "Special+Elite",
    478         "Stardos+Stencil",
    479         "Sue+Ellen+Francisco",
    480         "Sunshiney",
    481         "Swanky+and+Moo+Moo",
    482         "Syncopate",
    483         "Tangerine",
    484         "Tenor+Sans",
    485         "Terminal+Dosis+Light",
    486         "The+Girl+Next+Door",
    487         "Tinos",
    488         "Ubuntu",
    489         "Ultra",
    490         "Unkempt",
    491         "UnifrakturCook",
    492         "UnifrakturMaguntia",
    493         "Varela",
    494         "Varela Round",
    495         "Vibur",
    496         "Vollkorn",
    497         "VT323",
    498         "Waiting+for+the+Sunrise",
    499         "Wallpoet",
    500         "Walter+Turncoat",
    501         "Wire+One",
    502         "Yanone+Kaffeesatz",
    503         "Yeseva+One",
    504         "Zeyada",
    505     ];
    506 
    507308    $.fontselect = {
    508309        settings: {
     
    518319        //console.log('Google Font API key not detected, using fallback list...');
    519320        //console.warn(ex);
    520     }) || google_fonts;
     321    }) || await fetch('../wp-content/plugins/bibleget-io/js/googlefonts-fallback.json').then(result => result.json());
    521322    //console.log('length of google fonts after api call: ' + $.fontselect.google_fonts.length);
    522323
  • bibleget-io/trunk/vendor/composer/installed.php

    r3040715 r3040906  
    22    'root' => array(
    33        'name' => 'johnrdorazio/bibleget-wordpress',
    4         'pretty_version' => '8.1',
    5         'version' => '8.1.0.0',
    6         'reference' => '6321cd234b2d083d3bc1aa4915dfce35fa572cc5',
     4        'pretty_version' => '8.2',
     5        'version' => '8.2.0.0',
     6        'reference' => '442a7919a8a39ee149b5136f453972f664554573',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'johnrdorazio/bibleget-wordpress' => array(
    14             'pretty_version' => '8.1',
    15             'version' => '8.1.0.0',
    16             'reference' => '6321cd234b2d083d3bc1aa4915dfce35fa572cc5',
     14            'pretty_version' => '8.2',
     15            'version' => '8.2.0.0',
     16            'reference' => '442a7919a8a39ee149b5136f453972f664554573',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.