Changeset 1180254
- Timestamp:
- 06/13/2015 03:38:24 PM (11 years ago)
- Location:
- font-emoticons/trunk
- Files:
-
- 3 edited
-
FontEmoticonsPlugin.php (modified) (3 diffs)
-
font-emoticons.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
font-emoticons/trunk/FontEmoticonsPlugin.php
r1180231 r1180254 8 8 class FontEmoticonsPlugin 9 9 { 10 const VERSION = '1.4. 0';10 const VERSION = '1.4.1'; 11 11 12 12 // Should be unique enough to not usually appear in a text and must not have any meaning in regex. … … 89 89 $replaceEmotCallback = array($this, 'replace_emots'); 90 90 91 # Common Wordpress filters 91 92 add_filter('the_content', $replaceEmotCallback, 500); 92 93 add_filter('the_excerpt', $replaceEmotCallback, 500); … … 96 97 add_filter('widget_text', $replaceEmotCallback, 500); 97 98 98 # bbpress 99 # Custom Plugin Filter 100 # Can be used by theme/plugin authors to replace emoticons in not supported places. 101 add_filter('wp_font_emots_replace', $replaceEmotCallback, 500); 102 103 # bbpress filters 99 104 add_filter('bbp_get_topic_content', $replaceEmotCallback, 500); 100 105 add_filter('bbp_get_reply_content', $replaceEmotCallback, 500); -
font-emoticons/trunk/font-emoticons.php
r1180231 r1180254 4 4 Plugin URI: https://wordpress.org/plugins/font-emoticons/ 5 5 Description: Replace the standard WP Smileys with font icons. 6 Version: 1.4. 06 Version: 1.4.1 7 7 Author: Sebastian Krysmanski 8 8 Author URI: http://manski.net -
font-emoticons/trunk/readme.txt
r1180231 r1180254 4 4 Requires at least: 3.0.0 5 5 Tested up to: 4.2.2 6 Stable tag: 1.4. 06 Stable tag: 1.4.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == Changelog == 72 72 73 = 1.4.1 = 74 * Feature: Added general purpose filter called `wp_font_emots_replace`. This filter can be used to replace emoticons in places not supported by this plugin. 75 73 76 = 1.4.0 = 74 77 * Feature: Implemented rudimentary bbpress support. I don't use bbpress, so some parts may still no display emoticons correctly. (issue #10) … … 99 102 * First release. 100 103 104 == Use In Themes/Plugins == 105 Font Emoticons are supported in most places where user defined text is displayed. However, there may be places in a 106 plugin or theme that are not supported by Font Emoticons. 107 108 In these cases, just apply the filter **wp_font_emots_replace** to the text that should display Font Emoticons. 109 110 For example, you would change the following PHP code: 111 112 `<?php echo get_the_author_meta( 'description' ); ?>` 113 114 to this code: 115 116 `<?php echo apply_filters('wp_font_emots_replace', get_the_author_meta( 'description' )); ?>` 117 118 That's it. 119 101 120 == Font Licenses == 102 121 The emoticons used in this plugin are based on the fonts "Fontelico" and "Font Awesome".
Note: See TracChangeset
for help on using the changeset viewer.