Plugin Directory

Changeset 350144


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

0.1-beta5

Location:
readability/trunk
Files:
48 added
4 edited

Legend:

Unmodified
Added
Removed
  • readability/trunk/readability.php

    r349814 r350144  
    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-beta4
     6Version: 0.1-beta5
    77Author: Piotr Sochalewski
    88Author URI: http://www.sproject.name/
     
    4040
    4141    // Nice const. Probably I don't need this now.
    42     //$locale = defined(WPLANG) ? WPLANG : 'en_US';
     42    // $locale = defined(WPLANG) ? WPLANG : 'en_US';
    4343}
    4444
     
    8282    // Return only if word count isn't low.
    8383    if(str_word_count($content) > 100) {
    84         // Space control
    85         // Prevent single character words from residing at the end of a line of text
    86         $content = str_ireplace(array('a ', 'i ', 'o ', 'u ', 'w ', 'z '), array('a ', 'i ', 'o ', 'u ', 'w ', 'z '), $content);
     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);
     89        $content = $typography->process($content);
    8790
    88         return <<<END
    89     <small><a href="#readability" id="areadability">Readability</a></small>
     91        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>';
    9092
    91     <div style="width: 650px; display:none;"><div id="readability" style="width: 650px; "><h1>$title</h1>$content</div></div>
    92 
    93 END;
    9493    }
    9594}
  • readability/trunk/readme.txt

    r349814 r350144  
    55Requires at least: 2.9
    66Tested up to: 3.1
    7 Stable tag: 0.1-beta4
     7Stable tag: 0.1-beta5
    88
    99== Description ==
     
    2424
    2525== Changelog ==
     26
     27= 0.1-beta5 =
     28* Better typography thanks to PHP Typography,
     29* Fixed CSS.
    2630
    2731= 0.1-beta4 =
  • readability/trunk/style.css

    r344678 r350144  
    11#readability {
    2     text-align: justify;
    32    padding: 70px;
     3    width: 650px;
    44}
    55
     
    1515}
    1616
    17 /* For safety */
    1817#readability p, #readability h1, #readability h2, #readability h3, #readability h4, #readability h5, #readability h6 {
    1918    width: 650px;
     19    text-align: justify !important;
    2020}
Note: See TracChangeset for help on using the changeset viewer.