Changeset 3482385
- Timestamp:
- 03/14/2026 06:57:30 AM (3 weeks ago)
- Location:
- pap-afiliados-pro/trunk
- Files:
-
- 8 edited
-
blocks/papafpro-linker-format/index.js (modified) (4 diffs)
-
blocks/papafpro-linker/index.js (modified) (4 diffs)
-
includes/class-papafpro-template-render.php (modified) (2 diffs)
-
languages/pap-afiliados-pro-pt_BR.mo (modified) (previous)
-
languages/pap-afiliados-pro-pt_BR.po (modified) (2 diffs)
-
languages/pap-afiliados-pro.pot (modified) (2 diffs)
-
pap-afiliados-pro.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pap-afiliados-pro/trunk/blocks/papafpro-linker-format/index.js
r3469054 r3482385 115 115 }, 116 116 createElement('h4', { style: { marginTop: 0 } }, 117 __('Inser irPAP Link', 'pap-afiliados-pro')117 __('Insert PAP Link', 'pap-afiliados-pro') 118 118 ), 119 119 120 120 // Search input. 121 121 createElement(TextControl, { 122 label: __(' Buscar Produto', 'pap-afiliados-pro'),122 label: __('Search Product', 'pap-afiliados-pro'), 123 123 value: searchTerm, 124 124 onChange: function(val) { … … 130 130 } 131 131 }, 132 placeholder: __(' Nome do produto...', 'pap-afiliados-pro')132 placeholder: __('Product name...', 'pap-afiliados-pro') 133 133 }), 134 134 … … 152 152 // Manual URL input. 153 153 createElement(TextControl, { 154 label: __('O u insira URL manual', 'pap-afiliados-pro'),154 label: __('Or enter URL manually', 'pap-afiliados-pro'), 155 155 value: customUrl, 156 156 onChange: setCustomUrl, … … 163 163 onClick: function() { applyLink(customUrl, 0, ''); }, 164 164 style: { marginTop: '8px' } 165 }, __('Inser irLink', 'pap-afiliados-pro')) : null165 }, __('Insert Link', 'pap-afiliados-pro')) : null 166 166 ) 167 167 ) : null -
pap-afiliados-pro/trunk/blocks/papafpro-linker/index.js
r3469054 r3482385 26 26 registerBlockType('papafpro/linker', { 27 27 title: __('PAP Linker', 'pap-afiliados-pro'), 28 description: __('Inser ir link de afiliado rastreável.', 'pap-afiliados-pro'),28 description: __('Insert trackable affiliate link.', 'pap-afiliados-pro'), 29 29 icon: 'admin-links', 30 30 category: 'widgets', … … 94 94 createElement(InspectorControls, null, 95 95 createElement(PanelBody, { 96 title: __(' Configurações do Link', 'pap-afiliados-pro'),96 title: __('Link Settings', 'pap-afiliados-pro'), 97 97 initialOpen: true 98 98 }, 99 99 // Search field. 100 100 createElement(TextControl, { 101 label: __(' Buscar Produto', 'pap-afiliados-pro'),101 label: __('Search Product', 'pap-afiliados-pro'), 102 102 value: searchTerm, 103 103 onChange: setSearchTerm, 104 placeholder: __(' Digite para buscar...', 'pap-afiliados-pro')104 placeholder: __('Type to search...', 'pap-afiliados-pro') 105 105 }), 106 106 … … 129 129 style: { padding: '8px', background: '#f0f0f0', borderRadius: '4px', marginTop: '8px' } 130 130 }, 131 __('Produ toID:', 'pap-afiliados-pro') + ' ' + attributes.productId131 __('Product ID:', 'pap-afiliados-pro') + ' ' + attributes.productId 132 132 ) : null, 133 133 134 134 // Manual URL override. 135 135 createElement(TextControl, { 136 label: __('URL ( sobrescreve produto)', 'pap-afiliados-pro'),136 label: __('URL (overrides product)', 'pap-afiliados-pro'), 137 137 value: attributes.url, 138 138 onChange: function(val) { setAttributes({ url: val }); }, … … 162 162 value: attributes.text, 163 163 onChange: function(val) { setAttributes({ text: val }); }, 164 placeholder: __(' Texto do link...', 'pap-afiliados-pro'),164 placeholder: __('Link text...', 'pap-afiliados-pro'), 165 165 className: 'papafpro-linker-text-input' 166 166 }) -
pap-afiliados-pro/trunk/includes/class-papafpro-template-render.php
r3469054 r3482385 303 303 // Badge Marketplace (conditional). 304 304 if ( $show_marketplace && ! empty( $marketplace ) ) { 305 $output .= '<div class="papafpro-card__badge papafpro-card__badge--marketplace">'; 306 $output .= esc_html( $marketplace ); 307 $output .= '</div>'; 305 $marketplace_label = $this->get_marketplace_label( $marketplace ); 306 $output .= '<div class="papafpro-card__badge papafpro-card__badge--marketplace">'; 307 $output .= esc_html( $marketplace_label ); 308 $output .= '</div>'; 308 309 } 309 310 … … 537 538 538 539 /** 540 * Map marketplace key to display label. 541 * 542 * Converts the stored key (e.g. 'mercadolivre') to the human-readable 543 * label (e.g. 'Mercado Livre') for badge rendering. 544 * 545 * @since 2.0.2 546 * @access private 547 * @param string $key Marketplace key from post meta. 548 * @return string Display label. 549 */ 550 private function get_marketplace_label( $key ) { 551 $labels = array( 552 'amazon' => 'Amazon', 553 'mercadolivre' => 'Mercado Livre', 554 'shopee' => 'Shopee', 555 'aliexpress' => 'AliExpress', 556 'magalu' => 'Magazine Luiza', 557 'outros' => __( 'Other', 'pap-afiliados-pro' ), 558 ); 559 560 return isset( $labels[ $key ] ) ? $labels[ $key ] : $key; 561 } 562 563 /** 539 564 * Gera a string de variáveis CSS inline para o atributo style do card. 540 565 * -
pap-afiliados-pro/trunk/languages/pap-afiliados-pro-pt_BR.po
r3469054 r3482385 4 4 msgid "" 5 5 msgstr "" 6 "Project-Id-Version: PAP Afiliados Pro 2.0. 0\n"6 "Project-Id-Version: PAP Afiliados Pro 2.0.3\n" 7 7 "Report-Msgid-Bugs-To: https://pap-afiliados-pro.com.br\n" 8 "POT-Creation-Date: 2026-0 2-18T00:00:00+00:00\n"9 "PO-Revision-Date: 2026-0 2-23 00:00+0000\n"8 "POT-Creation-Date: 2026-03-13T00:00:00+00:00\n" 9 "PO-Revision-Date: 2026-03-13 00:00+0000\n" 10 10 "Last-Translator: Fernando Pimenta\n" 11 11 "Language-Team: Brazilian Portuguese\n" … … 1635 1635 msgstr "Documentação online em fernandopimenta.blog.br" 1636 1636 1637 #: blocks/papafpro-linker/index.js:28 1638 msgid "Insert trackable affiliate link." 1639 msgstr "Inserir link de afiliado rastreável." 1640 1641 #: blocks/papafpro-linker/index.js:96 1642 msgid "Link Settings" 1643 msgstr "Configurações do Link" 1644 1645 #: blocks/papafpro-linker/index.js:101 1646 #: blocks/papafpro-linker-format/index.js:122 1647 msgid "Search Product" 1648 msgstr "Buscar Produto" 1649 1650 #: blocks/papafpro-linker/index.js:104 1651 msgid "Type to search..." 1652 msgstr "Digite para buscar..." 1653 1654 #: blocks/papafpro-linker/index.js:131 1655 msgid "Product ID:" 1656 msgstr "Produto ID:" 1657 1658 #: blocks/papafpro-linker/index.js:136 1659 msgid "URL (overrides product)" 1660 msgstr "URL (sobrescreve produto)" 1661 1662 #: blocks/papafpro-linker/index.js:164 1663 msgid "Link text..." 1664 msgstr "Texto do link..." 1665 1666 #: blocks/papafpro-linker-format/index.js:117 1667 msgid "Insert PAP Link" 1668 msgstr "Inserir PAP Link" 1669 1670 #: blocks/papafpro-linker-format/index.js:132 1671 msgid "Product name..." 1672 msgstr "Nome do produto..." 1673 1674 #: blocks/papafpro-linker-format/index.js:154 1675 msgid "Or enter URL manually" 1676 msgstr "Ou insira URL manual" 1677 1678 #: blocks/papafpro-linker-format/index.js:165 1679 msgid "Insert Link" 1680 msgstr "Inserir Link" 1681 -
pap-afiliados-pro/trunk/languages/pap-afiliados-pro.pot
r3469054 r3482385 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: PAP Afiliados Pro 2.0. 0\n"5 "Project-Id-Version: PAP Afiliados Pro 2.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://pap-afiliados-pro.com.br\n" 7 "POT-Creation-Date: 2026-0 2-23T00:00:00+00:00\n"7 "POT-Creation-Date: 2026-03-13T00:00:00+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 1631 1631 msgstr "" 1632 1632 1633 #: blocks/papafpro-linker/index.js:28 1634 msgid "Insert trackable affiliate link." 1635 msgstr "" 1636 1637 #: blocks/papafpro-linker/index.js:96 1638 msgid "Link Settings" 1639 msgstr "" 1640 1641 #: blocks/papafpro-linker/index.js:101 1642 #: blocks/papafpro-linker-format/index.js:122 1643 msgid "Search Product" 1644 msgstr "" 1645 1646 #: blocks/papafpro-linker/index.js:104 1647 msgid "Type to search..." 1648 msgstr "" 1649 1650 #: blocks/papafpro-linker/index.js:131 1651 msgid "Product ID:" 1652 msgstr "" 1653 1654 #: blocks/papafpro-linker/index.js:136 1655 msgid "URL (overrides product)" 1656 msgstr "" 1657 1658 #: blocks/papafpro-linker/index.js:164 1659 msgid "Link text..." 1660 msgstr "" 1661 1662 #: blocks/papafpro-linker-format/index.js:117 1663 msgid "Insert PAP Link" 1664 msgstr "" 1665 1666 #: blocks/papafpro-linker-format/index.js:132 1667 msgid "Product name..." 1668 msgstr "" 1669 1670 #: blocks/papafpro-linker-format/index.js:154 1671 msgid "Or enter URL manually" 1672 msgstr "" 1673 1674 #: blocks/papafpro-linker-format/index.js:165 1675 msgid "Insert Link" 1676 msgstr "" 1677 -
pap-afiliados-pro/trunk/pap-afiliados-pro.php
r3469054 r3482385 4 4 * Plugin URI: https://pap-afiliados-pro.com.br 5 5 * Description: Professional affiliate link management for Brazilian marketplaces (Amazon, Mercado Livre, Shopee, AliExpress, and others). 6 * Version: 2.0. 26 * Version: 2.0.3 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 24 24 * Constantes do plugin. 25 25 */ 26 define( 'PAPAFPRO_VERSION', '2.0. 2' );26 define( 'PAPAFPRO_VERSION', '2.0.3' ); 27 27 define( 'PAPAFPRO_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 28 28 define( 'PAPAFPRO_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
pap-afiliados-pro/trunk/readme.txt
r3469054 r3482385 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.0. 27 Stable tag: 2.0.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 131 131 == Changelog == 132 132 133 = 2.0.3 = 134 * Fixed: Marketplace badge for "Mercado Livre" displayed without space ("MERCADOLIVRE") 135 * Fixed: Several UI strings were hardcoded in Portuguese instead of English, causing untranslated labels on translate.wordpress.org 136 * i18n: Regenerated .pot, updated .po/.mo translation files 137 133 138 = 2.0.2 = 134 139 * Added: Preset ID column in Template Builder preset list … … 171 176 == Upgrade Notice == 172 177 178 = 2.0.3 = 179 Fixes marketplace badge display for Mercado Livre and corrects hardcoded Portuguese strings for proper translation support. 180 173 181 = 2.0.2 = 174 182 Preset UX improvements: ID column, name-based lookup in shortcodes, native table layout.
Note: See TracChangeset
for help on using the changeset viewer.