Plugin Directory

Changeset 2836376


Ignore:
Timestamp:
12/20/2022 04:18:10 AM (3 years ago)
Author:
mukulwp
Message:

Fix Some PHP Bug and Update Plugin Name

Location:
font-resizer-with-post-reading-time/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • font-resizer-with-post-reading-time/trunk/index.php

    r2834659 r2836376  
    11<?php
    22/*
    3 Plugin Name: Font Resizer With Post Reading Time
     3Plugin Name: Font Resizer With Post Reading Time [GWE]
    44Plugin URI: https://getwebexperts.com/font-resizer-with-post-reading-time
    55Description: With this plugin, you can easily display post reading time and a font resizing option on every single blog page.
    6 Version: 1.0.4
     6Version: 1.0.5
    77Author: Get Web Experts
    88Author URI: https://getwebexperts.com/
     
    1616
    1717$fsc_disable_options = array(
     18    __('FSC Default', 'font-size-change'),
    1819    __('Font Size Resizer', 'font-size-change'),
    1920    __('Post Reading Time', 'font-size-change'),
     
    6263function fsc_display_frontend($content)
    6364{
    64     error_reporting(0);
    6565    $fsc_disable = get_option('fsc_disable_option');
    6666    $fsc_reading_time_pre_text = esc_attr(get_option('fsc_reading_time_pre_text'));
     
    256256                        break;
    257257                        case 'checkbox':
     258                        $fsc_count = 0;
    258259                        foreach ($fsc_disable_options as $fsc_disable_option) {
     260                            $fsc_count++;
    259261                            $selected_d = '';
    260262
     
    262264                                $selected_d = 'checked';
    263265                            }
    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);
    265270                        }
    266271                        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] ===
    22Contributors: mukulwp
    33Donate link: https://getwebexperts.com/
     
    66Requires PHP: 7.0
    77Tested up to: 6.1.1
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.