Changeset 3357536
- Timestamp:
- 09/07/2025 09:25:06 PM (7 months ago)
- Location:
- custom-smart-modal/trunk
- Files:
-
- 3 edited
-
admin/settings.php (modified) (7 diffs)
-
custom-welcome-modal.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-smart-modal/trunk/admin/settings.php
r3357533 r3357536 2 2 3 3 if ( ! defined('ABSPATH') ) { exit; } 4 5 // Add settings link to plugins page 6 add_filter('plugin_action_links_' . plugin_basename(dirname(__FILE__, 2) . '/custom-welcome-modal.php'), 'custsmmo_add_plugin_action_links'); 7 8 function custsmmo_add_plugin_action_links($links) { 9 $menu_location = get_option('custsmmo_menu_location', 'sidebar'); 10 11 if ($menu_location === 'appearance') { 12 $settings_link = '<a href="' . esc_url(admin_url('themes.php?page=custsmmo-smart-modal')) . '">' . __('Settings', 'custom-smart-modal') . '</a>'; 13 } else { 14 $settings_link = '<a href="' . esc_url(admin_url('admin.php?page=custsmmo-smart-modal')) . '">' . __('Settings', 'custom-smart-modal') . '</a>'; 15 } 16 17 // Add the settings link to the beginning of the array 18 array_unshift($links, $settings_link); 19 20 return $links; 21 } 4 22 5 23 add_action('admin_init', 'custsmmo_register_plugin_settings'); … … 63 81 'type' => 'integer', 64 82 'sanitize_callback' => 'custsmmo_sanitize_int', 65 'default' => 100083 'default' => 2500 66 84 )); 67 85 register_setting('custsmmo_options_group', 'custsmmo_side_spacing', array( … … 165 183 <p>If you need help, have questions or have improvement suggestions, please reach out!</p> 166 184 <p><a href="mailto:[email protected]">[email protected]</a></p> 167 <b><p>To disable the modal please delete the sentence and turn off start as visible checkbox</p></b>185 <b><p>To disable the modal please delete the welcome message and turn off start as visible checkbox</p></b> 168 186 <form method="post" action="options.php"> 169 187 <?php settings_fields('custsmmo_options_group'); ?> … … 178 196 <table class="form-table"> 179 197 <tr valign="top"> 180 <th scope="row"> Sentence</th>198 <th scope="row">Welcome Message</th> 181 199 <td> 182 200 <input type="text" name="custsmmo_sentence" value="<?php echo esc_attr(get_option('custsmmo_sentence')); ?>" size="50"/> … … 345 363 <td> 346 364 <span class="description">1000 milliseconds = 1 second.</span><br> 347 <input type="number" name="custsmmo_delay_before_close" value="<?php echo esc_attr(get_option('custsmmo_delay_before_close', 1000)); ?>" min="0" step="100" />365 <input type="number" name="custsmmo_delay_before_close" value="<?php echo esc_attr(get_option('custsmmo_delay_before_close', 2500)); ?>" min="0" step="100" /> 348 366 <span class="description">How long to wait after all words are visible before closing the modal.</span> 349 367 </td> … … 407 425 plugin_dir_url(dirname(__FILE__)) . 'css/admin-style.css', 408 426 array(), 409 '1.0'427 defined('CUSTSMMO_VERSION') ? CUSTSMMO_VERSION : '1.1' 410 428 ); 411 429 … … 415 433 plugin_dir_url(__FILE__) . 'js/admin-settings.js', 416 434 array('jquery'), 417 defined('CUSTSMMO_VERSION') ? CUSTSMMO_VERSION : '1. 0',435 defined('CUSTSMMO_VERSION') ? CUSTSMMO_VERSION : '1.1', 418 436 true 419 437 ); -
custom-smart-modal/trunk/custom-welcome-modal.php
r3357533 r3357536 2 2 /** 3 3 * Plugin Name: Custom Smart Modal 4 * Description: A simple yet powerful way to add elegance to your website .4 * Description: A simple yet powerful way to add elegance to your website with a customizable animated welcome modal. 5 5 * Requires at least: 6.4 6 6 * Requires PHP: 7.4 7 7 * Author: Martin Dimitrov 8 8 * Author URI: https://martindimitrov.dk 9 * Version: 1. 09 * Version: 1.1 10 10 * License: GPLv2 or later 11 11 * Text Domain: custom-smart-modal … … 17 17 18 18 if ( ! defined( 'CUSTSMMO_VERSION' ) ) { 19 define( 'CUSTSMMO_VERSION', '1. 0' );19 define( 'CUSTSMMO_VERSION', '1.1' ); 20 20 } 21 21 -
custom-smart-modal/trunk/readme.txt
r3357533 r3357536 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1. 08 Stable tag: 1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 64 64 == Changelog == 65 65 66 = 1.1 = 67 * Minor updates: Updated Delay Before Close default value, added shortcode for settings page under plugins and updated description text. 68 66 69 = 1.0 = 67 70 * Initial release: animated modal, full settings panel, TranslatePress support, responsive design. 68 71 69 72 == Upgrade Notice == 73 74 = 1.1 = 75 Plese update to latest version 1.1 to address all new updates. 70 76 71 77 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.