WordPress.org

Plugin Directory

Changeset 551031


Ignore:
Timestamp:
05/30/12 19:01:56 (2 years ago)
Author:
chriswallace
Message:

Added typecase badge.

Location:
typecase/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • typecase/trunk/README.txt

    r541378 r551031  
    55Requires at least: 3.1 
    66Tested up to: 3.3.2 
    7 Stable tag: 0.3.7 
     7Stable tag: 0.3.8 
    88License: GPLv2 
    99 
     
    5656== Changelog == 
    5757 
    58 = 0.3.7 = 
    59 * Fixed font weight and character set loading 
    60 * Added support for jQuery 1.6.1 by switching on() to live() 
    61 * Added ability to symlink to Typecase without breaking the plugin 
    62 * Added new class_exists() wrapper to determine if Typecase & Typecase Pro are both installed 
    63  
    6458= 0.3.4 = 
    6559* Fixed bug where fonts would eventually be hidden in Firefox on Windows. 
  • typecase/trunk/typecase.php

    r541378 r551031  
    44Plugin URI: http://upthemes.com 
    55Description: A plugin that makes it dead simple to add custom webfonts to your website. 
    6 Version: 0.3.7 
     6Version: 0.3.8 
    77Author: UpThemes 
    88Author URI: http://upthemes.com 
     
    1313if ( !defined( 'ABSPATH' ) ) 
    1414    return; 
     15 
     16if( !class_exists('Typecase') ): 
    1517 
    1618$typecase_file = __FILE__; 
     
    8688        }else{ 
    8789            add_action('wp_head',array(&$this,'display_frontend')); 
     90 
     91            if( !file_exists( dirname(TYPECASE_FILE) . '/pro.php' ) ) 
     92              add_action('wp_footer',array(&$this,'set_typecase_badge')); 
     93 
    8894        } 
    8995    } 
     
    527533    } 
    528534 
     535    /** 
     536     * Adds a pretty Typecase badge to the front-end of the website 
     537     * 
     538     * @uses plugins_url() 
     539     * 
     540     */ 
     541    public function set_typecase_badge(){ 
     542      $image = plugins_url( 'images/typecase_banner.png', TYPECASE_FILE ); 
     543        echo "<a href=\"http://upthemes.com/plugins/typecase/\"><img src=\"$image\" style=\"display:inline !important;position:fixed !important;right:0 !important;bottom:0 !important;z-index:9999 !important;\"></a>"; 
     544    } 
     545 
    529546} 
    530547 
     
    542559    $typecase = Typecase::init(); 
    543560} 
     561 
     562endif; 
Note: See TracChangeset for help on using the changeset viewer.