Changeset 1430832
- Timestamp:
- 06/05/2016 01:06:38 PM (10 years ago)
- Location:
- buddypress-sticker/trunk
- Files:
-
- 12 edited
-
bp-sticker.php (modified) (4 diffs)
-
css/bp-sticker.css (modified) (1 diff)
-
images/sticons/(V).png (modified) (previous)
-
images/sticons/CLAP.png (modified) (previous)
-
images/sticons/EX.png (modified) (previous)
-
images/sticons/LIKE.png (modified) (previous)
-
images/sticons/POO.png (modified) (previous)
-
images/sticons/QE.png (modified) (previous)
-
images/sticons/UNLIKE.png (modified) (previous)
-
images/sticons/ZZZ.png (modified) (previous)
-
js/bp-sticker.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-sticker/trunk/bp-sticker.php
r1221429 r1430832 3 3 /* 4 4 * Plugin Name: Bp Stickers 5 * Version: 1. 35 * Version: 1.4 6 6 * Author: asghar hatampoor 7 7 * Author URI: http://webcaffe.ir … … 12 12 13 13 if ( !defined( 'BPST_PLUGIN_VERSION' ) ) 14 define( 'BPST_PLUGIN_VERSION', '1. 3.0' );14 define( 'BPST_PLUGIN_VERSION', '1.4.0' ); 15 15 16 16 if ( !defined( 'BPST_PLUGIN_DIRNAME' ) ) … … 93 93 $filename = preg_replace('/.[^.]*$/', '', $codes); 94 94 $icon = BPST_PLUGIN_URL. 'images/sticons/'. $imgs.''; 95 $html.="<img src='$icon' data-code=':$filename:' class=' smiley' /> ";95 $html.="<img src='$icon' data-code=':$filename:' class='bpsmiley' /> "; 96 96 } 97 97 $html .="</div>"; … … 102 102 103 103 function replace_with_st(){ 104 $dir = BPST_PLUGIN_DIR."images/sticons/"; 105 if ($opendir = opendir($dir)) { 104 $images_dir = BPST_PLUGIN_DIR."images/sticons/"; 105 if ($opendir = opendir($images_dir)) { 106 $file_display = array( 107 'jpg', 108 'jpeg', 109 'png', 110 'gif' 111 ); 106 112 $images=array(); 113 $times = array(); 107 114 while (($file = readdir($opendir)) !==FALSE) { 108 if($file != "." && $file != "..") { 109 $images["$file"]=$file; 115 $file_type = strtolower(end(explode('.', $file))); 116 117 if($file != "." && $file != ".."&& in_array($file_type, $file_display) == true) { 118 $images["$file"]=$file; 119 $times[] = filemtime($images_dir . $file) . ',' . $file; 110 120 } 111 } 112 } 121 } 122 123 closedir($opendir); 124 } 113 125 126 array_multisort($images, SORT_NUMERIC, $times); 114 127 return $images; 115 128 } -
buddypress-sticker/trunk/css/bp-sticker.css
r1221429 r1430832 1 1 2 2 3 . smiley{3 .bpsmiley{ 4 4 display: inline !important; 5 5 border: medium none !important; -
buddypress-sticker/trunk/js/bp-sticker.js
r1221429 r1430832 35 35 }); 36 36 jq(document).ready(function(){ 37 jq('. smiley').live('click',function(){37 jq('.bpsmiley').live('click',function(){ 38 38 39 39 var $this=$(this); -
buddypress-sticker/trunk/readme.txt
r1221429 r1430832 3 3 Tags: BuddyPress, activity, Sticker, message 4 4 Requires at least: 3.8 5 Tested up to: 4. 26 Stable tag: 1. 3.05 Tested up to: 4.5 6 Stable tag: 1.4.0 7 7 8 8 BuddyPress stickers Allow Users to add stickers in activity posts and message by clicking on icons … … 35 35 36 36 == Changelog == 37 = 1.4.0 = 38 - Added new stickers. 39 - Fixed css . 40 - Fixed show stickers sort by date . 41 37 42 = 1.3.0 = 38 43 - Fixed ajax load stickers in comment.
Note: See TracChangeset
for help on using the changeset viewer.