Plugin Directory

Changeset 657541


Ignore:
Timestamp:
01/23/2013 06:57:40 PM (13 years ago)
Author:
bobbravo2
Message:

added constants to control output

File:
1 edited

Legend:

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

    r620031 r657541  
    88Author URI: http://mycircletree.com/
    99*/
    10 
     10defined ('WP_FONTSIZE_CSS') or define('WP_FONTSIZE_CSS', true);
     11defined ('WP_FONTSIZE_HTML') or define('WP_FONTSIZE_HTML', true);
    1112class wp_fontsize {
    1213    const SESSION_KEY = 'wp_fontsize';
     
    115116        </style>
    116117    <?php }
    117     private function html () {  ?>
     118    public static function html () {  ?>
    118119        <div class="wp_fontsize_wrapper" id="wp_fontsize_wrapper">
    119120        <label title="Adjust the font size of the website">Font Size:</label>
     
    173174    function  footer () {
    174175        ob_start(array($this, 'min'));
    175         $this->html();
    176         $this->css();
     176        if (WP_FONTSIZE_HTML)
     177            $this->html();
     178        if (WP_FONTSIZE_CSS)
     179            $this->css();
    177180        $this->js();
    178181        ob_end_flush();
Note: See TracChangeset for help on using the changeset viewer.