Changeset 525103
- Timestamp:
- 03/29/2012 04:02:15 PM (14 years ago)
- Location:
- simplesmileyreplace/trunk
- Files:
-
- 2 edited
-
SimpleSmileyReplace.php (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simplesmileyreplace/trunk/SimpleSmileyReplace.php
r520719 r525103 2 2 /* 3 3 Plugin Name: SimpleSmileyReplace 4 Plugin URI: http://brokenlibrarian.org/tinyplugins/ ?page_id=155 Description: Replaces standard smilies with one from a theme folder6 Version: 0. 34 Plugin URI: http://brokenlibrarian.org/tinyplugins/simplesmileyreplace/ 5 Description: Replaces standard smilies with ones from a theme folder 6 Version: 0.4 7 7 Author: Christian Wagner 8 8 Author URI: http://brokenlibrarian.org/tinyplugins/ 9 License: WTFPL9 License: Apache v2 10 10 */ 11 11 ?> … … 29 29 <?php 30 30 31 function simple_replace_smilies_src ($img_src, $img, $siteurl) {31 function simple_replace_smilies_src ($img_src, $img, $siteurl) { 32 32 return get_bloginfo('template_url').'/images/smilies/'.$img; 33 }33 } 34 34 35 if (file_exists(get_theme_root().'/'.get_template().'/images/smilies/')) 36 { add_filter('smilies_src','simple_replace_smilies_src',1,10); } 37 35 if (file_exists(get_theme_root().'/'.get_template().'/images/smilies/')) { 36 add_filter('smilies_src','simple_replace_smilies_src',1,10); 37 } 38 38 39 ?> -
simplesmileyreplace/trunk/readme.txt
r520719 r525103 1 === SimpleSmileyReplace===1 === SimpleSmileyReplace === 2 2 Contributors: brokenlibrarian 3 3 Donate link: http://brokenlibrarian.org/tinyplugins/ … … 5 5 Requires at least: 3.3.1 6 6 Tested up to: 3.3.1 7 Stable tag: 0. 37 Stable tag: 0.4 8 8 9 9 == Description == 10 10 11 SimpleSmileyReplace is a plugin that checks for the existence of a "images/smilies/" folder in a theme. If that folder exists, WordPress uses the smiley files in that folder instead. The plugin assumes that the smilies have the usual filenames ("icon_rolleyes.gif", etc).11 SimpleSmileyReplace is a plugin that checks for the existence of a _images/smilies/_ folder in a theme. If that folder exists, WordPress uses the smiley files in that folder instead. The plugin assumes that the smilies have the usual filenames (_icon_rolleyes.gif_, etc). 12 12 13 13 It has no extra requirements and has been tested on the twentyeleven and twentyten themes. 14 14 15 http://brokenlibrarian.org/tinyplugins/ 16 brokenlibrarian@gmail.com 15 http://brokenlibrarian.org/tinyplugins/ 16 brokenlibrarian@gmail.com 17 17 3/17/2012 18 18 19 19 == Installation == 20 20 21 1. Create a folder named `/wp-content/themes/[ThemeName]/images/smilies/`and put a complete set of custom smilies in it, with the standard WordPress filenames.22 2. Upload the SimpleSmileyReplace folder to your `/wp-content/plugins/`folder and activate it.21 1. Create a folder named _/wp-content/themes/[ThemeName]/images/smilies/_ and put a complete set of custom smilies in it, with the standard WordPress filenames. 22 2. Upload the SimpleSmileyReplace folder to your _/wp-content/plugins/_ folder and activate it. 23 23 3. No further configuration is required. The smiley codes and filenames are unaltered, only the location of the files is changed. 24 24 25 25 == Frequently Asked Questions == 26 26 27 = What are the standard WordPress filenames?=27 = What are the standard WordPress filenames? = 28 28 29 An up-to-date list of smilies and filenames can be found in `/wp-includes/functions.php` by searching for the `$wpsmiliestrans`variable. As of WordPress version 3.3.1, this is the list (cut-and-pasted):29 An up-to-date list of smilies and filenames can be found in _/wp-includes/functions.php_ by searching for the _$wpsmiliestrans_ variable. As of WordPress version 3.3.1, this is the list (cut-and-pasted): 30 30 31 ` 31 32 :mrgreen: => icon_mrgreen.gif 32 33 :neutral: => icon_neutral.gif … … 72 73 :!: => icon_exclaim.gif 73 74 :?: => icon_question.gif 75 ` 74 76 75 77 == Screenshots == … … 79 81 == Changelog == 80 82 83 = 0.4 = 84 * readme and source code cleanup, no other changes 85 81 86 = 0.3 = 82 87 * initial release … … 84 89 == Upgrade Notice == 85 90 91 = 0.4 = 92 * optional update, code cleanup, no changes 93 86 94 = 0.3 = 87 initial release95 * initial release 88 96 89 == License==97 == License == 90 98 91 99 Copyright 2012 Christian Wagner
Note: See TracChangeset
for help on using the changeset viewer.