Changeset 620025
- Timestamp:
- 11/01/2012 09:50:56 PM (13 years ago)
- Location:
- wp-fontsize/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp_fontsize.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-fontsize/trunk/readme.txt
r592080 r620025 3 3 Tags: font size, ajax, frontend, font size adjust, fontsize 4 4 Requires at least: 3.0.0 5 Tested up to: 3.4. 15 Tested up to: 3.4.2 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 and font size changes your heart desires! 17 17 18 ** How it works**19 1. Click on the fontsize buttons20 1. AJAX Request to validate & save the new size21 1. jQuery Changes the body class for instant results22 1. Subsequent page navigation maintains the size without any Flash of Wrong Sized Text (FOWST)18 **How it works** 19 1.Click on the fontsize buttons 20 1.AJAX Request to validate & save the new size 21 1.jQuery Changes the body class for instant results 22 1.Subsequent page navigation maintains the size without any Flash of Wrong Sized Text (FOWST) 23 23 24 24 == Installation == -
wp-fontsize/trunk/wp_fontsize.php
r620016 r620025 5 5 Description: Adds Stateful Fontsize Adjustment Classes to the body of the Website 6 6 Author: Circle Tree, LLC 7 Version: 0.6. 17 Version: 0.6.2 8 8 Author URI: http://mycircletree.com/ 9 9 */ 10 /** 11 * maximum font size step number 12 */ 13 defined('WP_FONTSIZE_MAX') or define('WP_FONTSIZE_MAX', 7); 14 /** 15 * minimum step number 16 */ 17 defined('WP_FONTSIZE_MIN') or define('WP_FONTSIZE_MIN', 1); 18 /** 19 * Default font size step number 20 */ 21 defined('WP_FONTSIZE_DEFAULT') or define('WP_FONTSIZE_DEFAULT', 3); 10 22 11 class wp_fontsize { 23 12 const SESSION_KEY = 'wp_fontsize'; 24 const MAX_SIZE = WP_FONTSIZE_MAX;25 const DEFAULT_SIZE = WP_FONTSIZE_DEFAULT;26 const MIN_SIZE = WP_FONTSIZE_MIN;13 const MAX_SIZE = 7; 14 const DEFAULT_SIZE = 3; 15 const MIN_SIZE = 1; 27 16 private $font_size; 28 17 function __construct () {
Note: See TracChangeset
for help on using the changeset viewer.