Plugin Directory

Changeset 3097701


Ignore:
Timestamp:
06/05/2024 06:22:05 AM (22 months ago)
Author:
allaffiliates
Message:

updated to version 1.1.5

Location:
linkgenius
Files:
2 added
14 edited
10 copied

Legend:

Unmodified
Added
Removed
  • linkgenius/tags/1.1.5/includes/Discloser.php

    r2969592 r3097701  
    2626        });
    2727        add_action('shutdown', function() {
    28             ob_end_flush();
     28            if (ob_get_length() > 0) {
     29                ob_end_flush();
     30            }
    2931        }, 0);
    3032    }
  • linkgenius/tags/1.1.5/includes/Editor.php

    r2970836 r3097701  
    150150     */
    151151    function replace_linkgenius_tag_with_link($content) {
    152         $pattern = '/<linkgenius-link.*?linkgenius_id="(?<id>[0-9]+)".*?>(?<text>.*?)<\/linkgenius-link>/';
     152        $pattern = '/<linkgenius-link.*?linkgenius_id="(?<id>[0-9]+)"(?<atts>.*?)>(?<text>.*?)<\/linkgenius-link>/';
    153153        return preg_replace_callback($pattern, function($matches) {
    154154            $id = $matches['id'] ?? "";
    155             return do_shortcode("[linkgenius-link id={$id}]{$matches['text']}[/linkgenius-link]");
     155            return do_shortcode("[linkgenius-link id={$id} extra_atts='".esc_attr($matches['atts'])."']{$matches['text']}[/linkgenius-link]");
    156156        }, $content);
    157157    }
  • linkgenius/tags/1.1.5/includes/LinkBuilder.php

    r3064466 r3097701  
    1818    }
    1919
    20     public function get_link($link_id, $text) {
     20    public function get_link($link_id, $text, $additional_attributes = []) {
     21
    2122        [
    2223          "attributes" => $attributes,
     
    2526        ] = $this->get_link_data($link_id);
    2627        // Output the link
     28        $attributes = array_merge($additional_attributes, $attributes);
    2729        $output = array_reduce(array_keys($attributes??[]), fn($carry, $k) => $carry . " ".$k . "='". $attributes[$k]."'", "<a")
    2830            .">".$text.$after_text."</a>".$after_output;
  • linkgenius/tags/1.1.5/includes/Metabox.php

    r3064466 r3097701  
    278278            $fields = array_merge($fields, array(
    279279                array(
    280                     'name'  => __('Default Disclosure Tooltip', 'linkgenius'),
     280                    'name'  => __('Disclosure Tooltip', 'linkgenius'),
    281281                    'id'    => 'disclosure_tooltip',
    282282                    'type'  => 'text',
     
    288288                    'id'    => 'disclosure_text_after',
    289289                    'type'  => 'text',
    290                     'desc'  => 'after_link_text_desc',
     290                    'desc'  => __('default_after_link_text_desc', 'linkgenius'),
    291291                    'default' => $defaults['disclosure_text_after']
    292292                ),
  • linkgenius/tags/1.1.5/includes/Shortcode.php

    r2993080 r3097701  
    1212    function linkgenius_link_shortcode($atts, $content) {
    1313        $atts = shortcode_atts(array(
    14           'id' => ''
     14          'id' => '',
     15          'extra_atts' => ''
    1516        ), $atts);
    16      
     17       
    1718        $link_id = intval($atts['id']);
    18         return LinkBuilder::instance()->get_link($link_id, $content) ?? "Link not found";
     19        $extra_atts = shortcode_parse_atts(htmlspecialchars_decode($atts['extra_atts']));
     20        return LinkBuilder::instance()->get_link($link_id, $content, $extra_atts) ?? "Link not found";
    1921    }
    2022   
  • linkgenius/tags/1.1.5/languages/linkgenius-fallback.po

    r3064466 r3097701  
    4646msgstr ""
    4747
    48 #: includes/Metabox.php:386
     48#: includes/Metabox.php:391
    4949msgid "Intro text autolink"
    5050msgstr "Automatically create links to this LinkGenius link on if Keywords or URLs occur in the page or post content. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=autolink\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature."
    5151
    52 #: includes/Metabox.php:107
    53 #: includes/Metabox.php:389
     52#: includes/Metabox.php:112
     53#: includes/Metabox.php:394
    5454#: assets/app/src/linkgenius-taxonomy-selector.js:72
    5555#: assets/js/editor/editor.js:2
     
    5757msgstr ""
    5858
    59 #: includes/Metabox.php:401
     59#: includes/Metabox.php:406
    6060msgid "Keywords"
    6161msgstr ""
    6262
    63 #: includes/Metabox.php:404
     63#: includes/Metabox.php:409
    6464msgid "Enter keywords that will automatically create a link to this LinkGenius link if they occur in the page or post content. One keyword per line, case-insensitive."
    6565msgstr ""
    6666
    67 #: includes/Metabox.php:407
     67#: includes/Metabox.php:412
    6868msgid "URLs"
    6969msgstr ""
    7070
    71 #: includes/Metabox.php:410
     71#: includes/Metabox.php:415
    7272msgid "Enter URLs that will automatically be replaced with this LinkGenius link. One url per line."
    7373msgstr ""
    7474
    75 #: includes/Metabox.php:425
     75#: includes/Metabox.php:430
    7676msgid "Intro text expiration"
    7777msgstr "Make this link expire after a certain date or number of clicks. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=expiration\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature."
    7878
    79 #: includes/Metabox.php:431
     79#: includes/Metabox.php:436
    8080msgid "Date after which link expires. (optional)"
    8181msgstr ""
    8282
    83 #: includes/Metabox.php:434
     83#: includes/Metabox.php:439
    8484msgid "Expiration Clicks"
    8585msgstr ""
    8686
    87 #: includes/Metabox.php:443
     87#: includes/Metabox.php:448
    8888msgid "Number of clicks after which the link expires. (optional)"
    8989msgstr ""
    9090
    91 #: includes/Metabox.php:452
     91#: includes/Metabox.php:457
    9292msgid "Redirect After Expiry"
    9393msgstr ""
    9494
    95 #: includes/Metabox.php:455
     95#: includes/Metabox.php:460
    9696msgid "The url to redirect to after link expired (used only if date or clicks are set)."
    9797msgstr ""
     
    141141
    142142#: includes/Metabox.php:60
    143 #: includes/Metabox.php:85
    144 #: includes/Metabox.php:161
    145 #: includes/Metabox.php:265
     143#: includes/Metabox.php:86
     144#: includes/Metabox.php:166
     145#: includes/Metabox.php:270
    146146msgid "Default (%s)"
    147147msgstr ""
    148148
    149 #: includes/Metabox.php:98
     149#: includes/Metabox.php:103
    150150msgid "Target URL*"
    151151msgstr ""
    152152
    153 #: includes/Metabox.php:104
     153#: includes/Metabox.php:109
    154154msgid "The target (affiliate) link."
    155155msgstr ""
    156156
    157 #: includes/Metabox.php:116
     157#: includes/Metabox.php:121
    158158msgid "The order for the link, used when displaying all links of a tag or category"
    159159msgstr ""
    160160
    161 #: includes/Metabox.php:122
     161#: includes/Metabox.php:127
    162162msgid "Link Prefix"
    163163msgstr ""
    164164
    165 #: includes/Metabox.php:126
     165#: includes/Metabox.php:131
    166166msgid "The prefix for your link, for example <i>go, recommends, out, link, affiliate</i>. The link will look like <b>%1$sprefix/slug</b>."
    167167msgstr ""
    168168
    169 #: includes/Metabox.php:144
     169#: includes/Metabox.php:149
    170170msgid "Defaults"
    171171msgstr ""
    172172
    173 #: includes/Metabox.php:146
     173#: includes/Metabox.php:151
    174174msgid "Intro default general setings"
    175175msgstr ""
    176176
    177 #: includes/Metabox.php:151
     177#: includes/Metabox.php:156
    178178msgid "Redirect Type"
    179179msgstr ""
     
    181181#: includes/Metabox.php:60
    182182#: includes/Metabox.php:61
    183 #: includes/Metabox.php:161
    184 #: includes/Metabox.php:162
    185 #: includes/Metabox.php:352
     183#: includes/Metabox.php:166
     184#: includes/Metabox.php:167
     185#: includes/Metabox.php:357
    186186msgid "Enabled"
    187187msgstr ""
     
    189189#: includes/Metabox.php:60
    190190#: includes/Metabox.php:62
    191 #: includes/Metabox.php:161
    192 #: includes/Metabox.php:163
     191#: includes/Metabox.php:166
     192#: includes/Metabox.php:168
    193193msgid "Disabled"
    194194msgstr ""
    195195
    196 #: includes/Metabox.php:225
     196#: includes/Metabox.php:230
    197197msgid "Default Link appearance"
    198198msgstr ""
    199199
    200 #: includes/Metabox.php:180
     200#: includes/Metabox.php:185
    201201msgid "Intro text appearance"
    202202msgstr "Determine how the link will appear in your content."
    203203
    204 #: includes/Metabox.php:183
     204#: includes/Metabox.php:188
    205205msgid "Global CSS Classes"
    206206msgstr ""
    207207
    208 #: includes/Metabox.php:183
     208#: includes/Metabox.php:188
    209209msgid "CSS Classes"
    210210msgstr ""
    211211
    212 #: includes/Metabox.php:186
     212#: includes/Metabox.php:191
    213213msgid "Comma separated list of CSS classes"
    214214msgstr ""
    215215
    216 #: includes/Metabox.php:192
     216#: includes/Metabox.php:197
    217217msgid "Open in New Tab"
    218218msgstr ""
    219219
    220 #: includes/Metabox.php:194
     220#: includes/Metabox.php:199
    221221msgid "Open the URL in a new tab when clicked. Done by adding target=\"_blank\" tag."
    222222msgstr ""
    223223
    224 #: includes/Metabox.php:197
     224#: includes/Metabox.php:202
    225225msgid "Parameter Forwarding"
    226226msgstr ""
    227227
    228 #: includes/Metabox.php:201
     228#: includes/Metabox.php:206
    229229msgid "Sponsored Attribute"
    230230msgstr ""
    231231
    232 #: includes/Metabox.php:205
     232#: includes/Metabox.php:210
    233233msgid "Nofollow Attribute"
    234234msgstr ""
    235235
    236 #: includes/Metabox.php:210
     236#: includes/Metabox.php:215
    237237msgid "Global Additional Rel Tags"
    238238msgstr ""
    239239
    240 #: includes/Metabox.php:210
     240#: includes/Metabox.php:215
    241241msgid "Additional Rel Tags"
    242242msgstr ""
    243243
    244 #: includes/Metabox.php:213
     244#: includes/Metabox.php:218
    245245msgid "Comma separated list of additional rel tags"
    246246msgstr ""
    247247
    248 #: includes/Metabox.php:240
     248#: includes/Metabox.php:245
    249249msgid "None"
    250250msgstr ""
    251251
    252 #: includes/Metabox.php:241
     252#: includes/Metabox.php:246
    253253msgid "Tooltip"
    254254msgstr ""
    255255
    256 #: includes/Metabox.php:242
    257 #: includes/Metabox.php:282
    258 #: includes/Metabox.php:324
     256#: includes/Metabox.php:247
     257#: includes/Metabox.php:287
     258#: includes/Metabox.php:329
    259259msgid "Text After Link"
    260260msgstr ""
    261261
    262 #: includes/Metabox.php:243
     262#: includes/Metabox.php:248
    263263msgid "Content Statement"
    264264msgstr ""
    265265
    266 #: includes/Metabox.php:248
     266#: includes/Metabox.php:253
    267267msgid "Intro text disclosure"
    268268msgstr "Show an (affiliate link) disclosure statement when this link appears in your content."
    269269
    270 #: includes/Metabox.php:261
     270#: includes/Metabox.php:266
    271271msgid "Disclosure Type"
    272272msgstr ""
    273273
    274 #: includes/Metabox.php:275
    275 msgid "Default Disclosure Tooltip"
    276 msgstr ""
    277 
    278 #: includes/Metabox.php:278
     274#: includes/Metabox.php:280
     275msgid "Disclosure Tooltip"
     276msgstr "Disclosure Tooltip"
     277
     278#: includes/Metabox.php:283
    279279msgid "default_tooltip_desc"
    280 msgstr ""
    281 
    282 #: includes/Metabox.php:294
     280msgstr "The default tooltip that will be displayed when the disclosure type is Tooltip."
     281
     282#: includes/Metabox.php:299
    283283msgid "Content Disclosure Location"
    284284msgstr ""
    285285
    286 #: includes/Metabox.php:298
     286#: includes/Metabox.php:303
    287287msgid "End of Post"
    288288msgstr ""
    289289
    290 #: includes/Metabox.php:299
     290#: includes/Metabox.php:304
    291291msgid "Beginning of Post"
    292292msgstr ""
    293293
    294 #: includes/Metabox.php:300
     294#: includes/Metabox.php:305
    295295msgid "Custom (Via Shortcode or Action)"
    296296msgstr ""
    297297
    298 #: includes/Metabox.php:305
     298#: includes/Metabox.php:310
    299299msgid "Content Disclosure Text"
    300300msgstr ""
    301301
    302 #: includes/Metabox.php:314
     302#: includes/Metabox.php:319
    303303msgid "Disclosure Text"
    304304msgstr ""
    305305
    306 #: includes/Metabox.php:318
    307 #: includes/Metabox.php:329
     306#: includes/Metabox.php:323
     307#: includes/Metabox.php:334
    308308msgid "Default: %s"
    309309msgstr ""
    310310
    311 #: includes/Metabox.php:327
    312 msgid "after_link_text_desc"
    313 msgstr ""
    314 
    315 #: includes/Metabox.php:347
     311#: includes/Metabox.php:290
     312msgid "default_after_link_text_desc"
     313msgstr "The default text that will be displayed after the link if the disclosure type is After Link."
     314
     315#: includes/Metabox.php:352
    316316msgid "Intro text GA tracking"
    317317msgstr "Track clicks with Google Analytics. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=tracking\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature."
    318318
    319 #: includes/Metabox.php:356
     319#: includes/Metabox.php:361
    320320msgid "Event Name"
    321321msgstr ""
    322322
    323 #: includes/Metabox.php:364
     323#: includes/Metabox.php:369
    324324msgid "Event Parameters"
    325325msgstr ""
     
    356356msgstr "This page contains affiliate links managed using the <a href=\"https://all-affiliates.com/linkgenius\" target=\"_blank\"/>LinkGenius</a> plugin. If you click through and purchase an item, I may earn a commission. See my terms of service for details."
    357357
    358 #: includes/Shortcode.php:59
     358#: includes/Shortcode.php:61
    359359msgid "You must specify a category or tag"
    360360msgstr ""
     
    462462msgstr ""
    463463
    464 #: includes/Metabox.php:87
     464#: includes/Metabox.php:88
    465465msgid "Slug*"
    466466msgstr ""
     
    470470msgstr ""
    471471
    472 #: includes/Metabox.php:428
     472#: includes/Metabox.php:433
    473473msgid "Expiration Date"
    474474msgstr ""
     
    489489#: includes/CPT.php:468
    490490msgid "Intro text useragent"
    491 msgstr ""
     491msgstr "Redirect to different URLs based on the visitor's useragent. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=useragent\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature.
    492492
    493493#: includes/CPT.php:474
     
    499499msgstr ""
    500500
    501 #: includes/Metabox.php:94
    502 msgid "<a href=\"#\" id=\"copy_url\">Copy</a><p>The url to link to in your content.</p>"
    503 msgstr ""
    504 
    505 #: includes/Metabox.php:130
     501#: includes/Metabox.php:135
    506502msgid "Mimimum Role Linkmanagement"
    507503msgstr ""
    508504
    509 #: includes/Metabox.php:133
     505#: includes/Metabox.php:138
    510506msgid "Administrator"
    511507msgstr ""
    512508
    513 #: includes/Metabox.php:134
     509#: includes/Metabox.php:139
    514510msgid "Editor"
    515511msgstr ""
    516512
    517 #: includes/Metabox.php:135
     513#: includes/Metabox.php:140
    518514msgid "Author"
    519515msgstr ""
    520516
    521 #: includes/Metabox.php:136
     517#: includes/Metabox.php:141
    522518msgid "Contributor"
    523519msgstr ""
    524520
    525 #: includes/Metabox.php:137
     521#: includes/Metabox.php:142
    526522msgid "Subscriber"
    527523msgstr ""
    528524
    529 #: includes/Metabox.php:140
     525#: includes/Metabox.php:145
    530526msgid "The minimum role a user needs in order to create, edit or delete LinkGenius Links. The settings page will remain visible for administrators only."
    531527msgstr ""
    532528
    533 #: includes/Metabox.php:226
    534 #: includes/Metabox.php:256
     529#: includes/Metabox.php:231
     530#: includes/Metabox.php:261
    535531msgid "Default settings, can be overriden per individual link."
    536532msgstr ""
    537533
    538 #: includes/Metabox.php:255
     534#: includes/Metabox.php:260
    539535msgid "Default disclosure settings"
    540536msgstr ""
    541537
    542 #: includes/Metabox.php:291
     538#: includes/Metabox.php:296
    543539msgid "Content disclosure settings"
    544540msgstr ""
    545541
    546 #: includes/Metabox.php:398
     542#: includes/Metabox.php:403
    547543msgid "A lower order means earlier execution when dealing with conflicting keywords or urls"
    548544msgstr ""
     
    589585msgstr ""
    590586
    591 #: includes/Metabox.php:167
     587#: includes/Metabox.php:172
    592588msgid "No Branding"
    593589msgstr ""
    594590
    595 #: includes/Metabox.php:169
     591#: includes/Metabox.php:174
    596592msgid "When enabled affiliate url of LinkGenius Links will be outputted in content instead of the slug."
    597593msgstr ""
    598594
    599 #: includes/Metabox.php:368
     595#: includes/Metabox.php:373
    600596msgid "Default:&#10;%s"
    601597msgstr ""
    602598
    603 #: includes/Metabox.php:370
     599#: includes/Metabox.php:375
    604600msgid "You can use the variables %s"
    605601msgstr ""
     602
     603#: includes/Metabox.php:94
     604msgid "Used for the URL you can link to."
     605msgstr ""
     606
     607#: includes/Metabox.php:97
     608msgid "<p>LinkGenius Link URL: <a id=\"linkgenius_url\" href=\"%1$s\" target=\"_blank\">%1$s</a><br><a href=\"#\" id=\"copy_linkgenius_url\">Copy Url</a></p>"
     609msgstr ""
     610
     611#: includes/Metabox.php:332
     612msgid "after_link_text_desc"
     613msgstr ""
  • linkgenius/tags/1.1.5/languages/linkgenius.pot

    r3064466 r3097701  
    1 # Copyright (C) 2023 all-affiliates.com
     1# Copyright (C) 2024 all-affiliates.com
    22# This file is distributed under the GPL2.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: LinkGenius 1.1.3\n"
     5"Project-Id-Version: LinkGenius 1.1.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/linkgenius\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-11-18T10:47:18+00:00\n"
     12"POT-Creation-Date: 2024-06-04T14:22:37+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
     
    149149
    150150#: includes/Metabox.php:60
    151 #: includes/Metabox.php:85
    152 #: includes/Metabox.php:161
    153 #: includes/Metabox.php:265
     151#: includes/Metabox.php:86
     152#: includes/Metabox.php:166
     153#: includes/Metabox.php:270
    154154msgid "Default (%s)"
    155155msgstr ""
     
    157157#: includes/Metabox.php:60
    158158#: includes/Metabox.php:61
    159 #: includes/Metabox.php:161
    160 #: includes/Metabox.php:162
    161 #: includes/Metabox.php:352
     159#: includes/Metabox.php:166
     160#: includes/Metabox.php:167
     161#: includes/Metabox.php:357
    162162msgid "Enabled"
    163163msgstr ""
     
    165165#: includes/Metabox.php:60
    166166#: includes/Metabox.php:62
    167 #: includes/Metabox.php:161
    168 #: includes/Metabox.php:163
     167#: includes/Metabox.php:166
     168#: includes/Metabox.php:168
    169169msgid "Disabled"
    170170msgstr ""
     
    182182msgstr ""
    183183
    184 #: includes/Metabox.php:87
     184#: includes/Metabox.php:88
    185185msgid "Slug*"
    186186msgstr ""
    187187
    188188#: includes/Metabox.php:94
    189 msgid "<a href=\"#\" id=\"copy_url\">Copy</a><p>The url to link to in your content.</p>"
    190 msgstr ""
    191 
    192 #: includes/Metabox.php:98
     189msgid "Used for the URL you can link to."
     190msgstr ""
     191
     192#: includes/Metabox.php:97
     193msgid "<p>LinkGenius Link URL: <a id=\"linkgenius_url\" href=\"%1$s\" target=\"_blank\">%1$s</a><br><a href=\"#\" id=\"copy_linkgenius_url\">Copy Url</a></p>"
     194msgstr ""
     195
     196#: includes/Metabox.php:103
    193197msgid "Target URL*"
    194198msgstr ""
    195199
    196 #: includes/Metabox.php:104
     200#: includes/Metabox.php:109
    197201msgid "The target (affiliate) link."
    198202msgstr ""
    199203
    200 #: includes/Metabox.php:107
    201 #: includes/Metabox.php:389
     204#: includes/Metabox.php:112
     205#: includes/Metabox.php:394
    202206#: assets/app/src/linkgenius-taxonomy-selector.js:72
    203207#: assets/js/editor/editor.js:2
     
    205209msgstr ""
    206210
    207 #: includes/Metabox.php:116
     211#: includes/Metabox.php:121
    208212msgid "The order for the link, used when displaying all links of a tag or category"
    209213msgstr ""
    210214
    211 #: includes/Metabox.php:122
     215#: includes/Metabox.php:127
    212216msgid "Link Prefix"
    213217msgstr ""
    214218
    215 #: includes/Metabox.php:126
     219#: includes/Metabox.php:131
    216220msgid "The prefix for your link, for example <i>go, recommends, out, link, affiliate</i>. The link will look like <b>%1$sprefix/slug</b>."
    217221msgstr ""
    218222
    219 #: includes/Metabox.php:130
     223#: includes/Metabox.php:135
    220224msgid "Mimimum Role Linkmanagement"
    221225msgstr ""
    222226
    223 #: includes/Metabox.php:133
     227#: includes/Metabox.php:138
    224228msgid "Administrator"
    225229msgstr ""
    226230
    227 #: includes/Metabox.php:134
     231#: includes/Metabox.php:139
    228232msgid "Editor"
    229233msgstr ""
    230234
    231 #: includes/Metabox.php:135
     235#: includes/Metabox.php:140
    232236msgid "Author"
    233237msgstr ""
    234238
    235 #: includes/Metabox.php:136
     239#: includes/Metabox.php:141
    236240msgid "Contributor"
    237241msgstr ""
    238242
    239 #: includes/Metabox.php:137
     243#: includes/Metabox.php:142
    240244msgid "Subscriber"
    241245msgstr ""
    242246
    243 #: includes/Metabox.php:140
     247#: includes/Metabox.php:145
    244248msgid "The minimum role a user needs in order to create, edit or delete LinkGenius Links. The settings page will remain visible for administrators only."
    245249msgstr ""
    246250
    247 #: includes/Metabox.php:144
     251#: includes/Metabox.php:149
    248252msgid "Defaults"
    249253msgstr ""
    250254
    251 #: includes/Metabox.php:146
     255#: includes/Metabox.php:151
    252256msgid "Intro default general setings"
    253257msgstr ""
    254258
    255 #: includes/Metabox.php:151
     259#: includes/Metabox.php:156
    256260msgid "Redirect Type"
    257261msgstr ""
    258262
    259 #: includes/Metabox.php:167
     263#: includes/Metabox.php:172
    260264msgid "No Branding"
    261265msgstr ""
    262266
    263 #: includes/Metabox.php:169
     267#: includes/Metabox.php:174
    264268msgid "When enabled affiliate url of LinkGenius Links will be outputted in content instead of the slug."
    265269msgstr ""
    266270
    267 #: includes/Metabox.php:180
     271#: includes/Metabox.php:185
    268272msgid "Intro text appearance"
    269273msgstr ""
    270274
    271 #: includes/Metabox.php:183
     275#: includes/Metabox.php:188
    272276msgid "Global CSS Classes"
    273277msgstr ""
    274278
    275 #: includes/Metabox.php:183
     279#: includes/Metabox.php:188
    276280msgid "CSS Classes"
    277281msgstr ""
    278282
    279 #: includes/Metabox.php:186
     283#: includes/Metabox.php:191
    280284msgid "Comma separated list of CSS classes"
    281285msgstr ""
    282286
    283 #: includes/Metabox.php:192
     287#: includes/Metabox.php:197
    284288msgid "Open in New Tab"
    285289msgstr ""
    286290
    287 #: includes/Metabox.php:194
     291#: includes/Metabox.php:199
    288292msgid "Open the URL in a new tab when clicked. Done by adding target=\"_blank\" tag."
    289293msgstr ""
    290294
    291 #: includes/Metabox.php:197
     295#: includes/Metabox.php:202
    292296msgid "Parameter Forwarding"
    293297msgstr ""
    294298
    295 #: includes/Metabox.php:201
     299#: includes/Metabox.php:206
    296300msgid "Sponsored Attribute"
    297301msgstr ""
    298302
    299 #: includes/Metabox.php:205
     303#: includes/Metabox.php:210
    300304msgid "Nofollow Attribute"
    301305msgstr ""
    302306
    303 #: includes/Metabox.php:210
     307#: includes/Metabox.php:215
    304308msgid "Global Additional Rel Tags"
    305309msgstr ""
    306310
    307 #: includes/Metabox.php:210
     311#: includes/Metabox.php:215
    308312msgid "Additional Rel Tags"
    309313msgstr ""
    310314
    311 #: includes/Metabox.php:213
     315#: includes/Metabox.php:218
    312316msgid "Comma separated list of additional rel tags"
    313317msgstr ""
    314318
    315 #: includes/Metabox.php:225
     319#: includes/Metabox.php:230
    316320msgid "Default Link appearance"
    317321msgstr ""
    318322
    319 #: includes/Metabox.php:226
    320 #: includes/Metabox.php:256
     323#: includes/Metabox.php:231
     324#: includes/Metabox.php:261
    321325msgid "Default settings, can be overriden per individual link."
    322326msgstr ""
    323327
    324 #: includes/Metabox.php:240
     328#: includes/Metabox.php:245
    325329msgid "None"
    326330msgstr ""
    327331
    328 #: includes/Metabox.php:241
     332#: includes/Metabox.php:246
    329333msgid "Tooltip"
    330334msgstr ""
    331335
    332 #: includes/Metabox.php:242
    333 #: includes/Metabox.php:282
    334 #: includes/Metabox.php:324
     336#: includes/Metabox.php:247
     337#: includes/Metabox.php:287
     338#: includes/Metabox.php:329
    335339msgid "Text After Link"
    336340msgstr ""
    337341
    338 #: includes/Metabox.php:243
     342#: includes/Metabox.php:248
    339343msgid "Content Statement"
    340344msgstr ""
    341345
    342 #: includes/Metabox.php:248
     346#: includes/Metabox.php:253
    343347msgid "Intro text disclosure"
    344348msgstr ""
    345349
    346 #: includes/Metabox.php:255
     350#: includes/Metabox.php:260
    347351msgid "Default disclosure settings"
    348352msgstr ""
    349353
    350 #: includes/Metabox.php:261
     354#: includes/Metabox.php:266
    351355msgid "Disclosure Type"
    352356msgstr ""
    353357
    354 #: includes/Metabox.php:275
    355 msgid "Default Disclosure Tooltip"
    356 msgstr ""
    357 
    358 #: includes/Metabox.php:278
     358#: includes/Metabox.php:280
     359msgid "Disclosure Tooltip"
     360msgstr ""
     361
     362#: includes/Metabox.php:283
    359363msgid "default_tooltip_desc"
    360364msgstr ""
    361365
    362 #: includes/Metabox.php:291
     366#: includes/Metabox.php:290
     367msgid "default_after_link_text_desc"
     368msgstr ""
     369
     370#: includes/Metabox.php:296
    363371msgid "Content disclosure settings"
    364372msgstr ""
    365373
    366 #: includes/Metabox.php:294
     374#: includes/Metabox.php:299
    367375msgid "Content Disclosure Location"
    368376msgstr ""
    369377
    370 #: includes/Metabox.php:298
     378#: includes/Metabox.php:303
    371379msgid "End of Post"
    372380msgstr ""
    373381
    374 #: includes/Metabox.php:299
     382#: includes/Metabox.php:304
    375383msgid "Beginning of Post"
    376384msgstr ""
    377385
    378 #: includes/Metabox.php:300
     386#: includes/Metabox.php:305
    379387msgid "Custom (Via Shortcode or Action)"
    380388msgstr ""
    381389
    382 #: includes/Metabox.php:305
     390#: includes/Metabox.php:310
    383391msgid "Content Disclosure Text"
    384392msgstr ""
    385393
    386 #: includes/Metabox.php:314
     394#: includes/Metabox.php:319
    387395msgid "Disclosure Text"
    388396msgstr ""
    389397
    390 #: includes/Metabox.php:318
    391 #: includes/Metabox.php:329
     398#: includes/Metabox.php:323
     399#: includes/Metabox.php:334
    392400msgid "Default: %s"
    393401msgstr ""
    394402
    395 #: includes/Metabox.php:327
     403#: includes/Metabox.php:332
    396404msgid "after_link_text_desc"
    397405msgstr ""
    398406
    399 #: includes/Metabox.php:347
     407#: includes/Metabox.php:352
    400408msgid "Intro text GA tracking"
    401409msgstr ""
    402410
    403 #: includes/Metabox.php:356
     411#: includes/Metabox.php:361
    404412msgid "Event Name"
    405413msgstr ""
    406414
    407 #: includes/Metabox.php:364
     415#: includes/Metabox.php:369
    408416msgid "Event Parameters"
    409417msgstr ""
    410418
    411 #: includes/Metabox.php:368
     419#: includes/Metabox.php:373
    412420msgid "Default:&#10;%s"
    413421msgstr ""
    414422
    415 #: includes/Metabox.php:370
     423#: includes/Metabox.php:375
    416424msgid "You can use the variables %s"
    417425msgstr ""
    418426
    419 #: includes/Metabox.php:386
     427#: includes/Metabox.php:391
    420428msgid "Intro text autolink"
    421429msgstr ""
    422430
    423 #: includes/Metabox.php:398
     431#: includes/Metabox.php:403
    424432msgid "A lower order means earlier execution when dealing with conflicting keywords or urls"
    425433msgstr ""
    426434
    427 #: includes/Metabox.php:401
     435#: includes/Metabox.php:406
    428436msgid "Keywords"
    429437msgstr ""
    430438
    431 #: includes/Metabox.php:404
     439#: includes/Metabox.php:409
    432440msgid "Enter keywords that will automatically create a link to this LinkGenius link if they occur in the page or post content. One keyword per line, case-insensitive."
    433441msgstr ""
    434442
    435 #: includes/Metabox.php:407
     443#: includes/Metabox.php:412
    436444msgid "URLs"
    437445msgstr ""
    438446
    439 #: includes/Metabox.php:410
     447#: includes/Metabox.php:415
    440448msgid "Enter URLs that will automatically be replaced with this LinkGenius link. One url per line."
    441449msgstr ""
    442450
    443 #: includes/Metabox.php:425
     451#: includes/Metabox.php:430
    444452msgid "Intro text expiration"
    445453msgstr ""
    446454
    447 #: includes/Metabox.php:428
     455#: includes/Metabox.php:433
    448456msgid "Expiration Date"
    449457msgstr ""
    450458
    451 #: includes/Metabox.php:431
     459#: includes/Metabox.php:436
    452460msgid "Date after which link expires. (optional)"
    453461msgstr ""
    454462
    455 #: includes/Metabox.php:434
     463#: includes/Metabox.php:439
    456464msgid "Expiration Clicks"
    457465msgstr ""
    458466
    459 #: includes/Metabox.php:443
     467#: includes/Metabox.php:448
    460468msgid "Number of clicks after which the link expires. (optional)"
    461469msgstr ""
    462470
    463 #: includes/Metabox.php:452
     471#: includes/Metabox.php:457
    464472msgid "Redirect After Expiry"
    465473msgstr ""
    466474
    467 #: includes/Metabox.php:455
     475#: includes/Metabox.php:460
    468476msgid "The url to redirect to after link expired (used only if date or clicks are set)."
    469477msgstr ""
     
    500508msgstr ""
    501509
    502 #: includes/Shortcode.php:59
     510#: includes/Shortcode.php:61
    503511msgid "You must specify a category or tag"
    504512msgstr ""
  • linkgenius/tags/1.1.5/linkgenius.php

    r3064466 r3097701  
    44Plugin URI: https://all-affiliates.com/linkgenius/
    55Description: LinkGenius is a powerful (affiliate) link management plugin. With LinkGenius, you can effortlessly organize, optimize, and track your (affiliate) links, unlocking a new level of efficiency.
    6 Version: 1.1.4
     6Version: 1.1.5
    77Author: all-affiliates.com
    88Author URI: https://all-affiliates.com
  • linkgenius/tags/1.1.5/readme.txt

    r3064527 r3097701  
    66Tested up to: 6.5
    77Requires PHP: 7.4
    8 Stable tag: 1.1.4
     8Stable tag: 1.1.5
    99License: GPL2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    111111== Changelog ==
    112112
     113= 1.1.5 =
     114- Added ability to pass additional link-attributes to the linkgenius-link shortcode and tag
     115- Added and updated translations
     116- Removed potential notice of buffer close, when maximum memory limit is reached
     117
    113118= 1.1.4 =
    114119- Added linkgenius_additional_headers filter to allow adding or modifying additional headers on redirect
    115120- Improved copy to clipboard functionality for unusual permalinks
    116121- Introduced variables for tracking and destinations
     122- Tested on WordPress 6.5
    117123
    118124= 1.1.3 =
  • linkgenius/trunk/includes/Discloser.php

    r2969592 r3097701  
    2626        });
    2727        add_action('shutdown', function() {
    28             ob_end_flush();
     28            if (ob_get_length() > 0) {
     29                ob_end_flush();
     30            }
    2931        }, 0);
    3032    }
  • linkgenius/trunk/includes/Editor.php

    r2970836 r3097701  
    150150     */
    151151    function replace_linkgenius_tag_with_link($content) {
    152         $pattern = '/<linkgenius-link.*?linkgenius_id="(?<id>[0-9]+)".*?>(?<text>.*?)<\/linkgenius-link>/';
     152        $pattern = '/<linkgenius-link.*?linkgenius_id="(?<id>[0-9]+)"(?<atts>.*?)>(?<text>.*?)<\/linkgenius-link>/';
    153153        return preg_replace_callback($pattern, function($matches) {
    154154            $id = $matches['id'] ?? "";
    155             return do_shortcode("[linkgenius-link id={$id}]{$matches['text']}[/linkgenius-link]");
     155            return do_shortcode("[linkgenius-link id={$id} extra_atts='".esc_attr($matches['atts'])."']{$matches['text']}[/linkgenius-link]");
    156156        }, $content);
    157157    }
  • linkgenius/trunk/includes/LinkBuilder.php

    r3064466 r3097701  
    1818    }
    1919
    20     public function get_link($link_id, $text) {
     20    public function get_link($link_id, $text, $additional_attributes = []) {
     21
    2122        [
    2223          "attributes" => $attributes,
     
    2526        ] = $this->get_link_data($link_id);
    2627        // Output the link
     28        $attributes = array_merge($additional_attributes, $attributes);
    2729        $output = array_reduce(array_keys($attributes??[]), fn($carry, $k) => $carry . " ".$k . "='". $attributes[$k]."'", "<a")
    2830            .">".$text.$after_text."</a>".$after_output;
  • linkgenius/trunk/includes/Metabox.php

    r3064466 r3097701  
    278278            $fields = array_merge($fields, array(
    279279                array(
    280                     'name'  => __('Default Disclosure Tooltip', 'linkgenius'),
     280                    'name'  => __('Disclosure Tooltip', 'linkgenius'),
    281281                    'id'    => 'disclosure_tooltip',
    282282                    'type'  => 'text',
     
    288288                    'id'    => 'disclosure_text_after',
    289289                    'type'  => 'text',
    290                     'desc'  => 'after_link_text_desc',
     290                    'desc'  => __('default_after_link_text_desc', 'linkgenius'),
    291291                    'default' => $defaults['disclosure_text_after']
    292292                ),
  • linkgenius/trunk/includes/Shortcode.php

    r2993080 r3097701  
    1212    function linkgenius_link_shortcode($atts, $content) {
    1313        $atts = shortcode_atts(array(
    14           'id' => ''
     14          'id' => '',
     15          'extra_atts' => ''
    1516        ), $atts);
    16      
     17       
    1718        $link_id = intval($atts['id']);
    18         return LinkBuilder::instance()->get_link($link_id, $content) ?? "Link not found";
     19        $extra_atts = shortcode_parse_atts(htmlspecialchars_decode($atts['extra_atts']));
     20        return LinkBuilder::instance()->get_link($link_id, $content, $extra_atts) ?? "Link not found";
    1921    }
    2022   
  • linkgenius/trunk/languages/linkgenius-fallback.po

    r3064466 r3097701  
    4646msgstr ""
    4747
    48 #: includes/Metabox.php:386
     48#: includes/Metabox.php:391
    4949msgid "Intro text autolink"
    5050msgstr "Automatically create links to this LinkGenius link on if Keywords or URLs occur in the page or post content. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=autolink\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature."
    5151
    52 #: includes/Metabox.php:107
    53 #: includes/Metabox.php:389
     52#: includes/Metabox.php:112
     53#: includes/Metabox.php:394
    5454#: assets/app/src/linkgenius-taxonomy-selector.js:72
    5555#: assets/js/editor/editor.js:2
     
    5757msgstr ""
    5858
    59 #: includes/Metabox.php:401
     59#: includes/Metabox.php:406
    6060msgid "Keywords"
    6161msgstr ""
    6262
    63 #: includes/Metabox.php:404
     63#: includes/Metabox.php:409
    6464msgid "Enter keywords that will automatically create a link to this LinkGenius link if they occur in the page or post content. One keyword per line, case-insensitive."
    6565msgstr ""
    6666
    67 #: includes/Metabox.php:407
     67#: includes/Metabox.php:412
    6868msgid "URLs"
    6969msgstr ""
    7070
    71 #: includes/Metabox.php:410
     71#: includes/Metabox.php:415
    7272msgid "Enter URLs that will automatically be replaced with this LinkGenius link. One url per line."
    7373msgstr ""
    7474
    75 #: includes/Metabox.php:425
     75#: includes/Metabox.php:430
    7676msgid "Intro text expiration"
    7777msgstr "Make this link expire after a certain date or number of clicks. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=expiration\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature."
    7878
    79 #: includes/Metabox.php:431
     79#: includes/Metabox.php:436
    8080msgid "Date after which link expires. (optional)"
    8181msgstr ""
    8282
    83 #: includes/Metabox.php:434
     83#: includes/Metabox.php:439
    8484msgid "Expiration Clicks"
    8585msgstr ""
    8686
    87 #: includes/Metabox.php:443
     87#: includes/Metabox.php:448
    8888msgid "Number of clicks after which the link expires. (optional)"
    8989msgstr ""
    9090
    91 #: includes/Metabox.php:452
     91#: includes/Metabox.php:457
    9292msgid "Redirect After Expiry"
    9393msgstr ""
    9494
    95 #: includes/Metabox.php:455
     95#: includes/Metabox.php:460
    9696msgid "The url to redirect to after link expired (used only if date or clicks are set)."
    9797msgstr ""
     
    141141
    142142#: includes/Metabox.php:60
    143 #: includes/Metabox.php:85
    144 #: includes/Metabox.php:161
    145 #: includes/Metabox.php:265
     143#: includes/Metabox.php:86
     144#: includes/Metabox.php:166
     145#: includes/Metabox.php:270
    146146msgid "Default (%s)"
    147147msgstr ""
    148148
    149 #: includes/Metabox.php:98
     149#: includes/Metabox.php:103
    150150msgid "Target URL*"
    151151msgstr ""
    152152
    153 #: includes/Metabox.php:104
     153#: includes/Metabox.php:109
    154154msgid "The target (affiliate) link."
    155155msgstr ""
    156156
    157 #: includes/Metabox.php:116
     157#: includes/Metabox.php:121
    158158msgid "The order for the link, used when displaying all links of a tag or category"
    159159msgstr ""
    160160
    161 #: includes/Metabox.php:122
     161#: includes/Metabox.php:127
    162162msgid "Link Prefix"
    163163msgstr ""
    164164
    165 #: includes/Metabox.php:126
     165#: includes/Metabox.php:131
    166166msgid "The prefix for your link, for example <i>go, recommends, out, link, affiliate</i>. The link will look like <b>%1$sprefix/slug</b>."
    167167msgstr ""
    168168
    169 #: includes/Metabox.php:144
     169#: includes/Metabox.php:149
    170170msgid "Defaults"
    171171msgstr ""
    172172
    173 #: includes/Metabox.php:146
     173#: includes/Metabox.php:151
    174174msgid "Intro default general setings"
    175175msgstr ""
    176176
    177 #: includes/Metabox.php:151
     177#: includes/Metabox.php:156
    178178msgid "Redirect Type"
    179179msgstr ""
     
    181181#: includes/Metabox.php:60
    182182#: includes/Metabox.php:61
    183 #: includes/Metabox.php:161
    184 #: includes/Metabox.php:162
    185 #: includes/Metabox.php:352
     183#: includes/Metabox.php:166
     184#: includes/Metabox.php:167
     185#: includes/Metabox.php:357
    186186msgid "Enabled"
    187187msgstr ""
     
    189189#: includes/Metabox.php:60
    190190#: includes/Metabox.php:62
    191 #: includes/Metabox.php:161
    192 #: includes/Metabox.php:163
     191#: includes/Metabox.php:166
     192#: includes/Metabox.php:168
    193193msgid "Disabled"
    194194msgstr ""
    195195
    196 #: includes/Metabox.php:225
     196#: includes/Metabox.php:230
    197197msgid "Default Link appearance"
    198198msgstr ""
    199199
    200 #: includes/Metabox.php:180
     200#: includes/Metabox.php:185
    201201msgid "Intro text appearance"
    202202msgstr "Determine how the link will appear in your content."
    203203
    204 #: includes/Metabox.php:183
     204#: includes/Metabox.php:188
    205205msgid "Global CSS Classes"
    206206msgstr ""
    207207
    208 #: includes/Metabox.php:183
     208#: includes/Metabox.php:188
    209209msgid "CSS Classes"
    210210msgstr ""
    211211
    212 #: includes/Metabox.php:186
     212#: includes/Metabox.php:191
    213213msgid "Comma separated list of CSS classes"
    214214msgstr ""
    215215
    216 #: includes/Metabox.php:192
     216#: includes/Metabox.php:197
    217217msgid "Open in New Tab"
    218218msgstr ""
    219219
    220 #: includes/Metabox.php:194
     220#: includes/Metabox.php:199
    221221msgid "Open the URL in a new tab when clicked. Done by adding target=\"_blank\" tag."
    222222msgstr ""
    223223
    224 #: includes/Metabox.php:197
     224#: includes/Metabox.php:202
    225225msgid "Parameter Forwarding"
    226226msgstr ""
    227227
    228 #: includes/Metabox.php:201
     228#: includes/Metabox.php:206
    229229msgid "Sponsored Attribute"
    230230msgstr ""
    231231
    232 #: includes/Metabox.php:205
     232#: includes/Metabox.php:210
    233233msgid "Nofollow Attribute"
    234234msgstr ""
    235235
    236 #: includes/Metabox.php:210
     236#: includes/Metabox.php:215
    237237msgid "Global Additional Rel Tags"
    238238msgstr ""
    239239
    240 #: includes/Metabox.php:210
     240#: includes/Metabox.php:215
    241241msgid "Additional Rel Tags"
    242242msgstr ""
    243243
    244 #: includes/Metabox.php:213
     244#: includes/Metabox.php:218
    245245msgid "Comma separated list of additional rel tags"
    246246msgstr ""
    247247
    248 #: includes/Metabox.php:240
     248#: includes/Metabox.php:245
    249249msgid "None"
    250250msgstr ""
    251251
    252 #: includes/Metabox.php:241
     252#: includes/Metabox.php:246
    253253msgid "Tooltip"
    254254msgstr ""
    255255
    256 #: includes/Metabox.php:242
    257 #: includes/Metabox.php:282
    258 #: includes/Metabox.php:324
     256#: includes/Metabox.php:247
     257#: includes/Metabox.php:287
     258#: includes/Metabox.php:329
    259259msgid "Text After Link"
    260260msgstr ""
    261261
    262 #: includes/Metabox.php:243
     262#: includes/Metabox.php:248
    263263msgid "Content Statement"
    264264msgstr ""
    265265
    266 #: includes/Metabox.php:248
     266#: includes/Metabox.php:253
    267267msgid "Intro text disclosure"
    268268msgstr "Show an (affiliate link) disclosure statement when this link appears in your content."
    269269
    270 #: includes/Metabox.php:261
     270#: includes/Metabox.php:266
    271271msgid "Disclosure Type"
    272272msgstr ""
    273273
    274 #: includes/Metabox.php:275
    275 msgid "Default Disclosure Tooltip"
    276 msgstr ""
    277 
    278 #: includes/Metabox.php:278
     274#: includes/Metabox.php:280
     275msgid "Disclosure Tooltip"
     276msgstr "Disclosure Tooltip"
     277
     278#: includes/Metabox.php:283
    279279msgid "default_tooltip_desc"
    280 msgstr ""
    281 
    282 #: includes/Metabox.php:294
     280msgstr "The default tooltip that will be displayed when the disclosure type is Tooltip."
     281
     282#: includes/Metabox.php:299
    283283msgid "Content Disclosure Location"
    284284msgstr ""
    285285
    286 #: includes/Metabox.php:298
     286#: includes/Metabox.php:303
    287287msgid "End of Post"
    288288msgstr ""
    289289
    290 #: includes/Metabox.php:299
     290#: includes/Metabox.php:304
    291291msgid "Beginning of Post"
    292292msgstr ""
    293293
    294 #: includes/Metabox.php:300
     294#: includes/Metabox.php:305
    295295msgid "Custom (Via Shortcode or Action)"
    296296msgstr ""
    297297
    298 #: includes/Metabox.php:305
     298#: includes/Metabox.php:310
    299299msgid "Content Disclosure Text"
    300300msgstr ""
    301301
    302 #: includes/Metabox.php:314
     302#: includes/Metabox.php:319
    303303msgid "Disclosure Text"
    304304msgstr ""
    305305
    306 #: includes/Metabox.php:318
    307 #: includes/Metabox.php:329
     306#: includes/Metabox.php:323
     307#: includes/Metabox.php:334
    308308msgid "Default: %s"
    309309msgstr ""
    310310
    311 #: includes/Metabox.php:327
    312 msgid "after_link_text_desc"
    313 msgstr ""
    314 
    315 #: includes/Metabox.php:347
     311#: includes/Metabox.php:290
     312msgid "default_after_link_text_desc"
     313msgstr "The default text that will be displayed after the link if the disclosure type is After Link."
     314
     315#: includes/Metabox.php:352
    316316msgid "Intro text GA tracking"
    317317msgstr "Track clicks with Google Analytics. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=tracking\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature."
    318318
    319 #: includes/Metabox.php:356
     319#: includes/Metabox.php:361
    320320msgid "Event Name"
    321321msgstr ""
    322322
    323 #: includes/Metabox.php:364
     323#: includes/Metabox.php:369
    324324msgid "Event Parameters"
    325325msgstr ""
     
    356356msgstr "This page contains affiliate links managed using the <a href=\"https://all-affiliates.com/linkgenius\" target=\"_blank\"/>LinkGenius</a> plugin. If you click through and purchase an item, I may earn a commission. See my terms of service for details."
    357357
    358 #: includes/Shortcode.php:59
     358#: includes/Shortcode.php:61
    359359msgid "You must specify a category or tag"
    360360msgstr ""
     
    462462msgstr ""
    463463
    464 #: includes/Metabox.php:87
     464#: includes/Metabox.php:88
    465465msgid "Slug*"
    466466msgstr ""
     
    470470msgstr ""
    471471
    472 #: includes/Metabox.php:428
     472#: includes/Metabox.php:433
    473473msgid "Expiration Date"
    474474msgstr ""
     
    489489#: includes/CPT.php:468
    490490msgid "Intro text useragent"
    491 msgstr ""
     491msgstr "Redirect to different URLs based on the visitor's useragent. <strong><a href=\"https://all-affiliates.com/linkgenius/pro?utm_source=plugin&utm_medium=editor&utm_campain=useragent\" target=\"_blank\">Get LinkGenius Pro</a></strong> to unlock this feature.
    492492
    493493#: includes/CPT.php:474
     
    499499msgstr ""
    500500
    501 #: includes/Metabox.php:94
    502 msgid "<a href=\"#\" id=\"copy_url\">Copy</a><p>The url to link to in your content.</p>"
    503 msgstr ""
    504 
    505 #: includes/Metabox.php:130
     501#: includes/Metabox.php:135
    506502msgid "Mimimum Role Linkmanagement"
    507503msgstr ""
    508504
    509 #: includes/Metabox.php:133
     505#: includes/Metabox.php:138
    510506msgid "Administrator"
    511507msgstr ""
    512508
    513 #: includes/Metabox.php:134
     509#: includes/Metabox.php:139
    514510msgid "Editor"
    515511msgstr ""
    516512
    517 #: includes/Metabox.php:135
     513#: includes/Metabox.php:140
    518514msgid "Author"
    519515msgstr ""
    520516
    521 #: includes/Metabox.php:136
     517#: includes/Metabox.php:141
    522518msgid "Contributor"
    523519msgstr ""
    524520
    525 #: includes/Metabox.php:137
     521#: includes/Metabox.php:142
    526522msgid "Subscriber"
    527523msgstr ""
    528524
    529 #: includes/Metabox.php:140
     525#: includes/Metabox.php:145
    530526msgid "The minimum role a user needs in order to create, edit or delete LinkGenius Links. The settings page will remain visible for administrators only."
    531527msgstr ""
    532528
    533 #: includes/Metabox.php:226
    534 #: includes/Metabox.php:256
     529#: includes/Metabox.php:231
     530#: includes/Metabox.php:261
    535531msgid "Default settings, can be overriden per individual link."
    536532msgstr ""
    537533
    538 #: includes/Metabox.php:255
     534#: includes/Metabox.php:260
    539535msgid "Default disclosure settings"
    540536msgstr ""
    541537
    542 #: includes/Metabox.php:291
     538#: includes/Metabox.php:296
    543539msgid "Content disclosure settings"
    544540msgstr ""
    545541
    546 #: includes/Metabox.php:398
     542#: includes/Metabox.php:403
    547543msgid "A lower order means earlier execution when dealing with conflicting keywords or urls"
    548544msgstr ""
     
    589585msgstr ""
    590586
    591 #: includes/Metabox.php:167
     587#: includes/Metabox.php:172
    592588msgid "No Branding"
    593589msgstr ""
    594590
    595 #: includes/Metabox.php:169
     591#: includes/Metabox.php:174
    596592msgid "When enabled affiliate url of LinkGenius Links will be outputted in content instead of the slug."
    597593msgstr ""
    598594
    599 #: includes/Metabox.php:368
     595#: includes/Metabox.php:373
    600596msgid "Default:&#10;%s"
    601597msgstr ""
    602598
    603 #: includes/Metabox.php:370
     599#: includes/Metabox.php:375
    604600msgid "You can use the variables %s"
    605601msgstr ""
     602
     603#: includes/Metabox.php:94
     604msgid "Used for the URL you can link to."
     605msgstr ""
     606
     607#: includes/Metabox.php:97
     608msgid "<p>LinkGenius Link URL: <a id=\"linkgenius_url\" href=\"%1$s\" target=\"_blank\">%1$s</a><br><a href=\"#\" id=\"copy_linkgenius_url\">Copy Url</a></p>"
     609msgstr ""
     610
     611#: includes/Metabox.php:332
     612msgid "after_link_text_desc"
     613msgstr ""
  • linkgenius/trunk/languages/linkgenius.pot

    r3064466 r3097701  
    1 # Copyright (C) 2023 all-affiliates.com
     1# Copyright (C) 2024 all-affiliates.com
    22# This file is distributed under the GPL2.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: LinkGenius 1.1.3\n"
     5"Project-Id-Version: LinkGenius 1.1.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/linkgenius\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-11-18T10:47:18+00:00\n"
     12"POT-Creation-Date: 2024-06-04T14:22:37+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
     
    149149
    150150#: includes/Metabox.php:60
    151 #: includes/Metabox.php:85
    152 #: includes/Metabox.php:161
    153 #: includes/Metabox.php:265
     151#: includes/Metabox.php:86
     152#: includes/Metabox.php:166
     153#: includes/Metabox.php:270
    154154msgid "Default (%s)"
    155155msgstr ""
     
    157157#: includes/Metabox.php:60
    158158#: includes/Metabox.php:61
    159 #: includes/Metabox.php:161
    160 #: includes/Metabox.php:162
    161 #: includes/Metabox.php:352
     159#: includes/Metabox.php:166
     160#: includes/Metabox.php:167
     161#: includes/Metabox.php:357
    162162msgid "Enabled"
    163163msgstr ""
     
    165165#: includes/Metabox.php:60
    166166#: includes/Metabox.php:62
    167 #: includes/Metabox.php:161
    168 #: includes/Metabox.php:163
     167#: includes/Metabox.php:166
     168#: includes/Metabox.php:168
    169169msgid "Disabled"
    170170msgstr ""
     
    182182msgstr ""
    183183
    184 #: includes/Metabox.php:87
     184#: includes/Metabox.php:88
    185185msgid "Slug*"
    186186msgstr ""
    187187
    188188#: includes/Metabox.php:94
    189 msgid "<a href=\"#\" id=\"copy_url\">Copy</a><p>The url to link to in your content.</p>"
    190 msgstr ""
    191 
    192 #: includes/Metabox.php:98
     189msgid "Used for the URL you can link to."
     190msgstr ""
     191
     192#: includes/Metabox.php:97
     193msgid "<p>LinkGenius Link URL: <a id=\"linkgenius_url\" href=\"%1$s\" target=\"_blank\">%1$s</a><br><a href=\"#\" id=\"copy_linkgenius_url\">Copy Url</a></p>"
     194msgstr ""
     195
     196#: includes/Metabox.php:103
    193197msgid "Target URL*"
    194198msgstr ""
    195199
    196 #: includes/Metabox.php:104
     200#: includes/Metabox.php:109
    197201msgid "The target (affiliate) link."
    198202msgstr ""
    199203
    200 #: includes/Metabox.php:107
    201 #: includes/Metabox.php:389
     204#: includes/Metabox.php:112
     205#: includes/Metabox.php:394
    202206#: assets/app/src/linkgenius-taxonomy-selector.js:72
    203207#: assets/js/editor/editor.js:2
     
    205209msgstr ""
    206210
    207 #: includes/Metabox.php:116
     211#: includes/Metabox.php:121
    208212msgid "The order for the link, used when displaying all links of a tag or category"
    209213msgstr ""
    210214
    211 #: includes/Metabox.php:122
     215#: includes/Metabox.php:127
    212216msgid "Link Prefix"
    213217msgstr ""
    214218
    215 #: includes/Metabox.php:126
     219#: includes/Metabox.php:131
    216220msgid "The prefix for your link, for example <i>go, recommends, out, link, affiliate</i>. The link will look like <b>%1$sprefix/slug</b>."
    217221msgstr ""
    218222
    219 #: includes/Metabox.php:130
     223#: includes/Metabox.php:135
    220224msgid "Mimimum Role Linkmanagement"
    221225msgstr ""
    222226
    223 #: includes/Metabox.php:133
     227#: includes/Metabox.php:138
    224228msgid "Administrator"
    225229msgstr ""
    226230
    227 #: includes/Metabox.php:134
     231#: includes/Metabox.php:139
    228232msgid "Editor"
    229233msgstr ""
    230234
    231 #: includes/Metabox.php:135
     235#: includes/Metabox.php:140
    232236msgid "Author"
    233237msgstr ""
    234238
    235 #: includes/Metabox.php:136
     239#: includes/Metabox.php:141
    236240msgid "Contributor"
    237241msgstr ""
    238242
    239 #: includes/Metabox.php:137
     243#: includes/Metabox.php:142
    240244msgid "Subscriber"
    241245msgstr ""
    242246
    243 #: includes/Metabox.php:140
     247#: includes/Metabox.php:145
    244248msgid "The minimum role a user needs in order to create, edit or delete LinkGenius Links. The settings page will remain visible for administrators only."
    245249msgstr ""
    246250
    247 #: includes/Metabox.php:144
     251#: includes/Metabox.php:149
    248252msgid "Defaults"
    249253msgstr ""
    250254
    251 #: includes/Metabox.php:146
     255#: includes/Metabox.php:151
    252256msgid "Intro default general setings"
    253257msgstr ""
    254258
    255 #: includes/Metabox.php:151
     259#: includes/Metabox.php:156
    256260msgid "Redirect Type"
    257261msgstr ""
    258262
    259 #: includes/Metabox.php:167
     263#: includes/Metabox.php:172
    260264msgid "No Branding"
    261265msgstr ""
    262266
    263 #: includes/Metabox.php:169
     267#: includes/Metabox.php:174
    264268msgid "When enabled affiliate url of LinkGenius Links will be outputted in content instead of the slug."
    265269msgstr ""
    266270
    267 #: includes/Metabox.php:180
     271#: includes/Metabox.php:185
    268272msgid "Intro text appearance"
    269273msgstr ""
    270274
    271 #: includes/Metabox.php:183
     275#: includes/Metabox.php:188
    272276msgid "Global CSS Classes"
    273277msgstr ""
    274278
    275 #: includes/Metabox.php:183
     279#: includes/Metabox.php:188
    276280msgid "CSS Classes"
    277281msgstr ""
    278282
    279 #: includes/Metabox.php:186
     283#: includes/Metabox.php:191
    280284msgid "Comma separated list of CSS classes"
    281285msgstr ""
    282286
    283 #: includes/Metabox.php:192
     287#: includes/Metabox.php:197
    284288msgid "Open in New Tab"
    285289msgstr ""
    286290
    287 #: includes/Metabox.php:194
     291#: includes/Metabox.php:199
    288292msgid "Open the URL in a new tab when clicked. Done by adding target=\"_blank\" tag."
    289293msgstr ""
    290294
    291 #: includes/Metabox.php:197
     295#: includes/Metabox.php:202
    292296msgid "Parameter Forwarding"
    293297msgstr ""
    294298
    295 #: includes/Metabox.php:201
     299#: includes/Metabox.php:206
    296300msgid "Sponsored Attribute"
    297301msgstr ""
    298302
    299 #: includes/Metabox.php:205
     303#: includes/Metabox.php:210
    300304msgid "Nofollow Attribute"
    301305msgstr ""
    302306
    303 #: includes/Metabox.php:210
     307#: includes/Metabox.php:215
    304308msgid "Global Additional Rel Tags"
    305309msgstr ""
    306310
    307 #: includes/Metabox.php:210
     311#: includes/Metabox.php:215
    308312msgid "Additional Rel Tags"
    309313msgstr ""
    310314
    311 #: includes/Metabox.php:213
     315#: includes/Metabox.php:218
    312316msgid "Comma separated list of additional rel tags"
    313317msgstr ""
    314318
    315 #: includes/Metabox.php:225
     319#: includes/Metabox.php:230
    316320msgid "Default Link appearance"
    317321msgstr ""
    318322
    319 #: includes/Metabox.php:226
    320 #: includes/Metabox.php:256
     323#: includes/Metabox.php:231
     324#: includes/Metabox.php:261
    321325msgid "Default settings, can be overriden per individual link."
    322326msgstr ""
    323327
    324 #: includes/Metabox.php:240
     328#: includes/Metabox.php:245
    325329msgid "None"
    326330msgstr ""
    327331
    328 #: includes/Metabox.php:241
     332#: includes/Metabox.php:246
    329333msgid "Tooltip"
    330334msgstr ""
    331335
    332 #: includes/Metabox.php:242
    333 #: includes/Metabox.php:282
    334 #: includes/Metabox.php:324
     336#: includes/Metabox.php:247
     337#: includes/Metabox.php:287
     338#: includes/Metabox.php:329
    335339msgid "Text After Link"
    336340msgstr ""
    337341
    338 #: includes/Metabox.php:243
     342#: includes/Metabox.php:248
    339343msgid "Content Statement"
    340344msgstr ""
    341345
    342 #: includes/Metabox.php:248
     346#: includes/Metabox.php:253
    343347msgid "Intro text disclosure"
    344348msgstr ""
    345349
    346 #: includes/Metabox.php:255
     350#: includes/Metabox.php:260
    347351msgid "Default disclosure settings"
    348352msgstr ""
    349353
    350 #: includes/Metabox.php:261
     354#: includes/Metabox.php:266
    351355msgid "Disclosure Type"
    352356msgstr ""
    353357
    354 #: includes/Metabox.php:275
    355 msgid "Default Disclosure Tooltip"
    356 msgstr ""
    357 
    358 #: includes/Metabox.php:278
     358#: includes/Metabox.php:280
     359msgid "Disclosure Tooltip"
     360msgstr ""
     361
     362#: includes/Metabox.php:283
    359363msgid "default_tooltip_desc"
    360364msgstr ""
    361365
    362 #: includes/Metabox.php:291
     366#: includes/Metabox.php:290
     367msgid "default_after_link_text_desc"
     368msgstr ""
     369
     370#: includes/Metabox.php:296
    363371msgid "Content disclosure settings"
    364372msgstr ""
    365373
    366 #: includes/Metabox.php:294
     374#: includes/Metabox.php:299
    367375msgid "Content Disclosure Location"
    368376msgstr ""
    369377
    370 #: includes/Metabox.php:298
     378#: includes/Metabox.php:303
    371379msgid "End of Post"
    372380msgstr ""
    373381
    374 #: includes/Metabox.php:299
     382#: includes/Metabox.php:304
    375383msgid "Beginning of Post"
    376384msgstr ""
    377385
    378 #: includes/Metabox.php:300
     386#: includes/Metabox.php:305
    379387msgid "Custom (Via Shortcode or Action)"
    380388msgstr ""
    381389
    382 #: includes/Metabox.php:305
     390#: includes/Metabox.php:310
    383391msgid "Content Disclosure Text"
    384392msgstr ""
    385393
    386 #: includes/Metabox.php:314
     394#: includes/Metabox.php:319
    387395msgid "Disclosure Text"
    388396msgstr ""
    389397
    390 #: includes/Metabox.php:318
    391 #: includes/Metabox.php:329
     398#: includes/Metabox.php:323
     399#: includes/Metabox.php:334
    392400msgid "Default: %s"
    393401msgstr ""
    394402
    395 #: includes/Metabox.php:327
     403#: includes/Metabox.php:332
    396404msgid "after_link_text_desc"
    397405msgstr ""
    398406
    399 #: includes/Metabox.php:347
     407#: includes/Metabox.php:352
    400408msgid "Intro text GA tracking"
    401409msgstr ""
    402410
    403 #: includes/Metabox.php:356
     411#: includes/Metabox.php:361
    404412msgid "Event Name"
    405413msgstr ""
    406414
    407 #: includes/Metabox.php:364
     415#: includes/Metabox.php:369
    408416msgid "Event Parameters"
    409417msgstr ""
    410418
    411 #: includes/Metabox.php:368
     419#: includes/Metabox.php:373
    412420msgid "Default:&#10;%s"
    413421msgstr ""
    414422
    415 #: includes/Metabox.php:370
     423#: includes/Metabox.php:375
    416424msgid "You can use the variables %s"
    417425msgstr ""
    418426
    419 #: includes/Metabox.php:386
     427#: includes/Metabox.php:391
    420428msgid "Intro text autolink"
    421429msgstr ""
    422430
    423 #: includes/Metabox.php:398
     431#: includes/Metabox.php:403
    424432msgid "A lower order means earlier execution when dealing with conflicting keywords or urls"
    425433msgstr ""
    426434
    427 #: includes/Metabox.php:401
     435#: includes/Metabox.php:406
    428436msgid "Keywords"
    429437msgstr ""
    430438
    431 #: includes/Metabox.php:404
     439#: includes/Metabox.php:409
    432440msgid "Enter keywords that will automatically create a link to this LinkGenius link if they occur in the page or post content. One keyword per line, case-insensitive."
    433441msgstr ""
    434442
    435 #: includes/Metabox.php:407
     443#: includes/Metabox.php:412
    436444msgid "URLs"
    437445msgstr ""
    438446
    439 #: includes/Metabox.php:410
     447#: includes/Metabox.php:415
    440448msgid "Enter URLs that will automatically be replaced with this LinkGenius link. One url per line."
    441449msgstr ""
    442450
    443 #: includes/Metabox.php:425
     451#: includes/Metabox.php:430
    444452msgid "Intro text expiration"
    445453msgstr ""
    446454
    447 #: includes/Metabox.php:428
     455#: includes/Metabox.php:433
    448456msgid "Expiration Date"
    449457msgstr ""
    450458
    451 #: includes/Metabox.php:431
     459#: includes/Metabox.php:436
    452460msgid "Date after which link expires. (optional)"
    453461msgstr ""
    454462
    455 #: includes/Metabox.php:434
     463#: includes/Metabox.php:439
    456464msgid "Expiration Clicks"
    457465msgstr ""
    458466
    459 #: includes/Metabox.php:443
     467#: includes/Metabox.php:448
    460468msgid "Number of clicks after which the link expires. (optional)"
    461469msgstr ""
    462470
    463 #: includes/Metabox.php:452
     471#: includes/Metabox.php:457
    464472msgid "Redirect After Expiry"
    465473msgstr ""
    466474
    467 #: includes/Metabox.php:455
     475#: includes/Metabox.php:460
    468476msgid "The url to redirect to after link expired (used only if date or clicks are set)."
    469477msgstr ""
     
    500508msgstr ""
    501509
    502 #: includes/Shortcode.php:59
     510#: includes/Shortcode.php:61
    503511msgid "You must specify a category or tag"
    504512msgstr ""
  • linkgenius/trunk/linkgenius.php

    r3064466 r3097701  
    44Plugin URI: https://all-affiliates.com/linkgenius/
    55Description: LinkGenius is a powerful (affiliate) link management plugin. With LinkGenius, you can effortlessly organize, optimize, and track your (affiliate) links, unlocking a new level of efficiency.
    6 Version: 1.1.4
     6Version: 1.1.5
    77Author: all-affiliates.com
    88Author URI: https://all-affiliates.com
  • linkgenius/trunk/readme.txt

    r3064527 r3097701  
    66Tested up to: 6.5
    77Requires PHP: 7.4
    8 Stable tag: 1.1.4
     8Stable tag: 1.1.5
    99License: GPL2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    111111== Changelog ==
    112112
     113= 1.1.5 =
     114- Added ability to pass additional link-attributes to the linkgenius-link shortcode and tag
     115- Added and updated translations
     116- Removed potential notice of buffer close, when maximum memory limit is reached
     117
    113118= 1.1.4 =
    114119- Added linkgenius_additional_headers filter to allow adding or modifying additional headers on redirect
    115120- Improved copy to clipboard functionality for unusual permalinks
    116121- Introduced variables for tracking and destinations
     122- Tested on WordPress 6.5
    117123
    118124= 1.1.3 =
Note: See TracChangeset for help on using the changeset viewer.