Changeset 3261754
- Timestamp:
- 03/25/2025 07:06:38 PM (12 months ago)
- Location:
- affiliate-boost
- Files:
-
- 6 edited
-
tags/1.0.3/readme.txt (modified) (1 diff)
-
trunk/admin-settings.php (modified) (4 diffs)
-
trunk/affiliate-boost.php (modified) (1 diff)
-
trunk/frontend-functions.php (modified) (1 diff)
-
trunk/languages/affiliate-boost.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
affiliate-boost/tags/1.0.3/readme.txt
r3252106 r3261754 1 1 === Affiliate Boost === 2 Contributors: luizjr, dotes 2 Contributors: luizjr, dotes, viajando-com-eles 3 3 Tags: affiliate, conversion, booking, travel, monetization 4 4 Requires at least: 4.7 -
affiliate-boost/trunk/admin-settings.php
r3251683 r3261754 20 20 } 21 21 22 function abpdotes_sanitize_post_ids($value) { 23 $post_ids = array_map('intval', explode(',', $value)); // Transforma os valores em um array de inteiros 24 return implode(',', $post_ids); // Retorna os IDs separados por vírgula 25 } 26 22 27 // Registra as opções antigas com sanitização 23 28 add_option('abpdotes_delay', 10); // Tempo de espera padrão em s … … 25 30 add_option('abpdotes_event_trigger', 'click'); // Evento padrão: "Primeiro Clique" 26 31 add_option('abpdotes_onoff', 'active'); 32 add_option('abpdotes_exclude_posts', ''); // Adiciona a opção para armazenar os IDs dos posts a excluir 27 33 28 34 // Registra as opções no banco de dados com sanitização … … 31 37 register_setting('abpdotes_options_group', 'abpdotes_event_trigger', 'abpdotes_sanitize_event_trigger'); 32 38 register_setting('abpdotes_options_group', 'abpdotes_onoff', 'abpdotes_sanitize_onoff'); 39 register_setting('abpdotes_options_group', 'abpdotes_exclude_posts', 'abpdotes_sanitize_post_ids'); 33 40 } 34 41 … … 72 79 </select> 73 80 </p> 81 <p> 82 <label><?php esc_html_e('Excluir Evento de Afiliado nos Posts (IDs separados por vírgula):', 'affiliate-boost'); ?></label><br> 83 <input type="text" name="abpdotes_exclude_posts" value="<?php echo esc_attr(get_option('abpdotes_exclude_posts')); ?>" /><br /> 84 <p class="description"><?php esc_html_e('Insira os IDs dos posts nos quais você não deseja que o link de afiliado seja aberto. Separe os IDs com vírgulas.', 'affiliate-boost'); ?></p> 85 </p> 86 74 87 <?php submit_button(); ?> 75 88 </form> -
affiliate-boost/trunk/affiliate-boost.php
r3251683 r3261754 3 3 Plugin Name: Affiliate Boost 4 4 Description: Plugin para maximizar conversões redirecionando usuários para links de afiliados configuráveis, com integração fácil e opções de personalização. 5 Version: 1.0. 35 Version: 1.0.4 6 6 Author: Luiz Jr. Fernandes / Guilherme Tetamanti 7 7 License: GPLv2 or later -
affiliate-boost/trunk/frontend-functions.php
r3251683 r3261754 38 38 } 39 39 40 41 // Verifica se o post atual está na lista de exclusão 42 $exclude_posts = explode(',', get_option('abpdotes_exclude_posts', '')); 43 if (is_single() && in_array(get_the_ID(), $exclude_posts)) { 44 return; // Se o post está na lista de exclusão, não injeta o script 45 } 46 47 40 48 wp_enqueue_script('affiliate-boost-js', plugins_url('assets/js/affiliate-boost.js', __FILE__), array('jquery'), '1.0', true); 41 49 -
affiliate-boost/trunk/languages/affiliate-boost.pot
r3251683 r3261754 1 1 # Copyright (C) 2025 Luiz Jr. Fernandes / Guilherme Tetamanti 2 2 # This file is distributed under the same license as the Affiliate Boost plugin. 3 #, fuzzy 3 4 msgid "" 4 5 msgstr "" … … 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 1-30T15:20:43+01:00\n"13 "POT-Creation-Date: 2025-03-25 15:47-0300\n" 13 14 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.11.0\n"15 "X-Generator: Poedit 2.4.2\n" 15 16 "X-Domain: affiliate-boost\n" 16 17 -
affiliate-boost/trunk/readme.txt
r3252106 r3261754 1 1 === Affiliate Boost === 2 Contributors: luizjr, dotes 2 Contributors: luizjr, dotes, viajando-com-eles 3 3 Tags: affiliate, conversion, booking, travel, monetization 4 4 Requires at least: 4.7 5 5 Tested up to: 6.7 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.