Changeset 350144
- Timestamp:
- 02/24/2011 01:01:38 AM (15 years ago)
- Location:
- readability/trunk
- Files:
-
- 48 added
- 4 edited
-
php-typography (added)
-
php-typography/change_log-php.txt (added)
-
php-typography/diacritics (added)
-
php-typography/diacritics/en-US.php (added)
-
php-typography/lang (added)
-
php-typography/lang/bg_BG.php (added)
-
php-typography/lang/ca.php (added)
-
php-typography/lang/cs_CZ.php (added)
-
php-typography/lang/cy.php (added)
-
php-typography/lang/da_DK.php (added)
-
php-typography/lang/de_DE.php (added)
-
php-typography/lang/el.php (added)
-
php-typography/lang/en-GB.php (added)
-
php-typography/lang/en-US.php (added)
-
php-typography/lang/es_ES.php (added)
-
php-typography/lang/et.php (added)
-
php-typography/lang/eu.php (added)
-
php-typography/lang/fi.php (added)
-
php-typography/lang/fr_FR.php (added)
-
php-typography/lang/gl_ES.php (added)
-
php-typography/lang/hr.php (added)
-
php-typography/lang/hu_HU.php (added)
-
php-typography/lang/id_ID.php (added)
-
php-typography/lang/is_IS.php (added)
-
php-typography/lang/it_IT.php (added)
-
php-typography/lang/lt_LT.php (added)
-
php-typography/lang/nn_NO.php (added)
-
php-typography/lang/pl_PL.php (added)
-
php-typography/lang/pt_PT.php (added)
-
php-typography/lang/ro_RO.php (added)
-
php-typography/lang/ru_RU.php (added)
-
php-typography/lang/sk_SK.php (added)
-
php-typography/lang/sl_SI.php (added)
-
php-typography/lang/sr_RS.php (added)
-
php-typography/lang/sv_VE.php (added)
-
php-typography/lang/tr.php (added)
-
php-typography/lang/uk.php (added)
-
php-typography/lang/zh_CN.php (added)
-
php-typography/lang_unformatted (added)
-
php-typography/lang_unformatted/hyph-la.tex (added)
-
php-typography/lang_unformatted/hyph-no.tex (added)
-
php-typography/lang_unformatted/template.txt (added)
-
php-typography/php-parser (added)
-
php-typography/php-parser/change_log_parser.txt (added)
-
php-typography/php-parser/parseHTML.php (added)
-
php-typography/php-parser/parseText.php (added)
-
php-typography/php-parser/php-parser.php (added)
-
php-typography/php-typography.php (added)
-
readability.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
screenshot-1.png (modified) (previous)
-
style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
readability/trunk/readability.php
r349814 r350144 4 4 Plugin URI: http://www.sproject.name/download/wp-readability/ 5 5 Description: Plugin which lets you to show posts in stylish, legible pop-up window, like in Safari. 6 Version: 0.1-beta 46 Version: 0.1-beta5 7 7 Author: Piotr Sochalewski 8 8 Author URI: http://www.sproject.name/ … … 40 40 41 41 // Nice const. Probably I don't need this now. 42 // $locale = defined(WPLANG) ? WPLANG : 'en_US';42 // $locale = defined(WPLANG) ? WPLANG : 'en_US'; 43 43 } 44 44 … … 82 82 // Return only if word count isn't low. 83 83 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); 87 90 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>'; 90 92 91 <div style="width: 650px; display:none;"><div id="readability" style="width: 650px; "><h1>$title</h1>$content</div></div>92 93 END;94 93 } 95 94 } -
readability/trunk/readme.txt
r349814 r350144 5 5 Requires at least: 2.9 6 6 Tested up to: 3.1 7 Stable tag: 0.1-beta 47 Stable tag: 0.1-beta5 8 8 9 9 == Description == … … 24 24 25 25 == Changelog == 26 27 = 0.1-beta5 = 28 * Better typography thanks to PHP Typography, 29 * Fixed CSS. 26 30 27 31 = 0.1-beta4 = -
readability/trunk/style.css
r344678 r350144 1 1 #readability { 2 text-align: justify;3 2 padding: 70px; 3 width: 650px; 4 4 } 5 5 … … 15 15 } 16 16 17 /* For safety */18 17 #readability p, #readability h1, #readability h2, #readability h3, #readability h4, #readability h5, #readability h6 { 19 18 width: 650px; 19 text-align: justify !important; 20 20 }
Note: See TracChangeset
for help on using the changeset viewer.