Plugin Directory

Changeset 620016


Ignore:
Timestamp:
11/01/2012 09:29:54 PM (13 years ago)
Author:
bobbravo2
Message:

added defines check to allow theme authors to override the defaults without breaking upgradability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-fontsize/trunk/wp_fontsize.php

    r620012 r620016  
    88Author URI: http://mycircletree.com/
    99*/
    10 
     10/**
     11 * maximum font size step number
     12 */
     13defined('WP_FONTSIZE_MAX') or define('WP_FONTSIZE_MAX', 7);
     14/**
     15 * minimum step number
     16 */
     17defined('WP_FONTSIZE_MIN') or define('WP_FONTSIZE_MIN', 1);
     18/**
     19 * Default font size step number
     20 */
     21defined('WP_FONTSIZE_DEFAULT') or define('WP_FONTSIZE_DEFAULT', 3);
    1122class wp_fontsize {
    1223    const SESSION_KEY = 'wp_fontsize';
    13     const MAX_SIZE = 7;
    14     const DEFAULT_SIZE  = 3;
    15     const MIN_SIZE = 1;
     24    const MAX_SIZE = WP_FONTSIZE_MAX;
     25    const DEFAULT_SIZE  = WP_FONTSIZE_DEFAULT;
     26    const MIN_SIZE = WP_FONTSIZE_MIN;
    1627    private $font_size;
    1728    function  __construct () {
Note: See TracChangeset for help on using the changeset viewer.