Plugin Directory

Changeset 350158


Ignore:
Timestamp:
02/24/2011 02:38:53 AM (15 years ago)
Author:
sproject
Message:

0.1-beta6

Location:
readability/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • readability/trunk/readability.php

    r350144 r350158  
    44Plugin URI: http://www.sproject.name/download/wp-readability/
    55Description: Plugin which lets you to show posts in stylish, legible pop-up window, like in Safari.
    6 Version: 0.1-beta5
     6Version: 0.1-beta6
    77Author: Piotr Sochalewski
    88Author URI: http://www.sproject.name/
     
    8282    // Return only if word count isn't low.
    8383    if(str_word_count($content) > 100) {
    84         // Great typography by PHP Typography
    85         include('php-typography/php-typography.php');
    86         $typography = new phpTypography();
    87         if (defined(WPLANG))
    88             $typography->set_hyphenation_language(WPLANG);
     84        // Great typography by PHP Typography.
     85        // Only if wp-Typography is not activated.
     86        require_once('wp-admin/includes/plugin.php');
     87        if (!is_plugin_active('wp-typography/wp-typography.php')) {
     88            include('php-typography/php-typography.php');
     89            $typography = new phpTypography();
     90            if (defined(WPLANG))
     91                $typography->set_hyphenation_language(WPLANG);
    8992        $content = $typography->process($content);
     93        }
    9094
    9195        return '<small><a href="#readability" id="areadability">Readability</a></small><div style="width: 650px; display:none;"><div id="readability"><h1>'.$title.'</h1>'.$content.'</div></div>';
  • readability/trunk/readme.txt

    r350144 r350158  
    55Requires at least: 2.9
    66Tested up to: 3.1
    7 Stable tag: 0.1-beta5
     7Stable tag: 0.1-beta6
    88
    99== Description ==
     
    2424
    2525== Changelog ==
     26
     27= 0.1-beta6 =
     28* Everything works even if you have wp-Typography installed.
    2629
    2730= 0.1-beta5 =
Note: See TracChangeset for help on using the changeset viewer.