Changeset 361384
- Timestamp:
- 03/17/2011 07:52:22 PM (14 years ago)
- Location:
- small-caps/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
small-caps/trunk/readme.txt
r66131 r361384 4 4 Tags: smallcaps, abbr, typography 5 5 Requires at least: 2.0.2 6 Tested up to: 6 Tested up to: 3.1 7 7 Stable tag: trunk 8 8 … … 11 11 == Description == 12 12 13 Encloses capitalized words with three or characters more within `<abbr> </abbr>` tags, so that abbr tags could be styled to display small caps—for typographical effect. More here: http://ckunte.com/archives/small-caps .13 Encloses capitalized words with three or characters more within `<abbr> </abbr>` tags, so that abbr tags could be styled to display small caps—for typographical effect. 14 14 15 15 == Installation == … … 17 17 1. Upload `small-caps.php` to the `/wp-content/plugins/` folder. 18 18 2. Activate the plugin through the 'Plugins' menu in WordPress. 19 3. Add the following styling to your style.css file:19 3. The following styling is now part of the plugin code: 20 20 21 21 abbr { text-transform:lowercase; font-variant:small-caps } 22 22 23 Optional: If you prefer t his to be automatically added to the header of your template, across the themes without editing them yourself manually to add the above styling, then, you may uncomment lines 32 through to 38 in the plugin file `small-caps.php`.23 Optional: If you prefer to custom-style the appearance of small caps, then, you may comment lines 27 through to 33 in the plugin file `small-caps.php`, and then add the custom styling in your theme's style.css file. 24 24 25 25 == Frequently Asked Questions == -
small-caps/trunk/small-caps.php
r59659 r361384 4 4 Plugin URI: http://wordpress.org/extend/plugins/small-caps/ 5 5 Description: Small caps for capitalized words. This plugin looks for sequences of 3 or more uppercase letters or numbers, such as CSS, HTML and W3C, and wraps an `<abbr>` tag around them. Credits to <a href="http://webtypography.net/">Webtypography</a> for the function, and for inspiration. 6 Version: 1.0 7 Author: Ch etanKunte8 Author URI: http://ckunte. com/6 Version: 1.0.1 7 Author: Chyetanya Kunte 8 Author URI: http://ckunte.net/ 9 9 */ 10 10 // … … 23 23 } 24 24 // 25 // Adding styling to template's head section.26 // Intentionally excluded for users' freedom to style.27 // See: http://ckunte.com/archives/small-caps28 //29 25 // Styling abbr to lowercase first, and then to small-caps. 30 26 // 31 // Uncomment following lines (take out those //s, if you prefer automatic styling as specified below. 32 // function ckunte_smallcaps_wp_head () { 33 // echo "\n<style type=\"text/css\">abbr{text-transform:lowercase; font-variant:small-caps;}</style>\n"; 34 // } 35 // 36 // if (function_exists('add_action')) { 37 // add_action( 'wp_head', 'ckunte_smallcaps_wp_head' ); 38 // } 39 // 27 function ckunte_smallcaps_wp_head () { 28 echo "\n<style type=\"text/css\">abbr{text-transform:lowercase; font-variant:small-caps;}</style>\n"; 29 } 30 31 if (function_exists('add_action')) { 32 add_action( 'wp_head', 'ckunte_smallcaps_wp_head' ); 33 } 34 40 35 ?>
Note: See TracChangeset
for help on using the changeset viewer.