Plugin Directory

Changeset 1180254


Ignore:
Timestamp:
06/13/2015 03:38:24 PM (11 years ago)
Author:
manski
Message:

Updated to version 1.4.1

Location:
font-emoticons/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • font-emoticons/trunk/FontEmoticonsPlugin.php

    r1180231 r1180254  
    88class FontEmoticonsPlugin
    99{
    10     const VERSION = '1.4.0';
     10    const VERSION = '1.4.1';
    1111
    1212    // Should be unique enough to not usually appear in a text and must not have any meaning in regex.
     
    8989            $replaceEmotCallback = array($this, 'replace_emots');
    9090
     91            # Common Wordpress filters
    9192            add_filter('the_content', $replaceEmotCallback, 500);
    9293            add_filter('the_excerpt', $replaceEmotCallback, 500);
     
    9697            add_filter('widget_text', $replaceEmotCallback, 500);
    9798
    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
    99104            add_filter('bbp_get_topic_content', $replaceEmotCallback, 500);
    100105            add_filter('bbp_get_reply_content', $replaceEmotCallback, 500);
  • font-emoticons/trunk/font-emoticons.php

    r1180231 r1180254  
    44Plugin URI: https://wordpress.org/plugins/font-emoticons/
    55Description: Replace the standard WP Smileys with font icons.
    6 Version: 1.4.0
     6Version: 1.4.1
    77Author: Sebastian Krysmanski
    88Author URI: http://manski.net
  • font-emoticons/trunk/readme.txt

    r1180231 r1180254  
    44Requires at least: 3.0.0
    55Tested up to: 4.2.2
    6 Stable tag: 1.4.0
     6Stable tag: 1.4.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     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
    7376= 1.4.0 =
    7477* Feature: Implemented rudimentary bbpress support. I don't use bbpress, so some parts may still no display emoticons correctly. (issue #10)
     
    99102* First release.
    100103
     104== Use In Themes/Plugins ==
     105Font Emoticons are supported in most places where user defined text is displayed. However, there may be places in a
     106plugin or theme that are not supported by Font Emoticons.
     107
     108In these cases, just apply the filter **wp_font_emots_replace** to the text that should display Font Emoticons.
     109
     110For example, you would change the following PHP code:
     111
     112`<?php echo get_the_author_meta( 'description' ); ?>`
     113
     114to this code:
     115
     116`<?php echo apply_filters('wp_font_emots_replace', get_the_author_meta( 'description' )); ?>`
     117
     118That's it.
     119
    101120== Font Licenses ==
    102121The emoticons used in this plugin are based on the fonts "Fontelico" and "Font Awesome".
Note: See TracChangeset for help on using the changeset viewer.