Changeset 350158
- Timestamp:
- 02/24/2011 02:38:53 AM (15 years ago)
- Location:
- readability/trunk
- Files:
-
- 2 edited
-
readability.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
readability/trunk/readability.php
r350144 r350158 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 56 Version: 0.1-beta6 7 7 Author: Piotr Sochalewski 8 8 Author URI: http://www.sproject.name/ … … 82 82 // Return only if word count isn't low. 83 83 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); 89 92 $content = $typography->process($content); 93 } 90 94 91 95 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 5 5 Requires at least: 2.9 6 6 Tested up to: 3.1 7 Stable tag: 0.1-beta 57 Stable tag: 0.1-beta6 8 8 9 9 == Description == … … 24 24 25 25 == Changelog == 26 27 = 0.1-beta6 = 28 * Everything works even if you have wp-Typography installed. 26 29 27 30 = 0.1-beta5 =
Note: See TracChangeset
for help on using the changeset viewer.