Changeset 2836376
- Timestamp:
- 12/20/2022 04:18:10 AM (3 years ago)
- Location:
- font-resizer-with-post-reading-time/trunk
- Files:
-
- 2 edited
-
index.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
font-resizer-with-post-reading-time/trunk/index.php
r2834659 r2836376 1 1 <?php 2 2 /* 3 Plugin Name: Font Resizer With Post Reading Time 3 Plugin Name: Font Resizer With Post Reading Time [GWE] 4 4 Plugin URI: https://getwebexperts.com/font-resizer-with-post-reading-time 5 5 Description: With this plugin, you can easily display post reading time and a font resizing option on every single blog page. 6 Version: 1.0. 46 Version: 1.0.5 7 7 Author: Get Web Experts 8 8 Author URI: https://getwebexperts.com/ … … 16 16 17 17 $fsc_disable_options = array( 18 __('FSC Default', 'font-size-change'), 18 19 __('Font Size Resizer', 'font-size-change'), 19 20 __('Post Reading Time', 'font-size-change'), … … 62 63 function fsc_display_frontend($content) 63 64 { 64 error_reporting(0);65 65 $fsc_disable = get_option('fsc_disable_option'); 66 66 $fsc_reading_time_pre_text = esc_attr(get_option('fsc_reading_time_pre_text')); … … 256 256 break; 257 257 case 'checkbox': 258 $fsc_count = 0; 258 259 foreach ($fsc_disable_options as $fsc_disable_option) { 260 $fsc_count++; 259 261 $selected_d = ''; 260 262 … … 262 264 $selected_d = 'checked'; 263 265 } 264 printf('<input type="checkbox" name="fsc_disable_option[]" value="%s" %s /> %s <br/>', $fsc_disable_option, $selected_d, $fsc_disable_option); 266 if ($fsc_disable_option === 'FSC Default') { 267 $selected_d = 'checked'; 268 } 269 printf('<input type="checkbox fsc_checkbox' . $fsc_count . '" name="fsc_disable_option[]" value="%s" %s /> <span class="fsc_checkbox' . $fsc_count . '">%s</span> <br/>', $fsc_disable_option, $selected_d, $fsc_disable_option); 265 270 } 266 271 break; -
font-resizer-with-post-reading-time/trunk/readme.txt
r2834659 r2836376 1 === Font Resizer With Post Reading Time ===1 === Font Resizer With Post Reading Time [GWE] === 2 2 Contributors: mukulwp 3 3 Donate link: https://getwebexperts.com/ … … 6 6 Requires PHP: 7.0 7 7 Tested up to: 6.1.1 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.