Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: Few more smileys tweaks to page plugin deleted: smiley_pack/.smiley_pack.php.kate-swp modified: .gitignore Commented out bits that don't seem relevant to friendica-addons. Somebody should do this properly, but I'm not confident. new file: .gitignore .gitignore file a few new smilieys, plus case-insensitivty for a couple of core smileys * master:
|
@ -0,0 +1,23 @@
|
|||
favicon.*
|
||||
.htconfig.php
|
||||
\#*
|
||||
include/jquery-1.4.2.min.js
|
||||
*.log
|
||||
*.out
|
||||
*.version*
|
||||
#favicon.*
|
||||
#home.html
|
||||
#addon
|
||||
*~
|
||||
|
||||
#ignore documentation, it should be newly built
|
||||
#doc/api
|
||||
|
||||
#ignore reports, should be generted with every build
|
||||
report/
|
||||
|
||||
#ignore config files from eclipse, we don't want IDE files in our repository
|
||||
.project
|
||||
.buildpath
|
||||
.externalToolBuilders
|
||||
.settings
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Page
|
||||
* Description: Shows lists of community pages (improved performance over 'pages)
|
||||
* Description: Shows lists of community pages (improved performance over 'pages')
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <mike@macgirvin.com>
|
||||
* based on pages plugin by
|
||||
|
@ -50,7 +50,7 @@ function page_page_end($a,&$b) {
|
|||
$contacts = page_getpage($a->user['uid']);
|
||||
|
||||
foreach($contacts as $contact) {
|
||||
$page .= '<li style="list-style-type: none;" class="tool"><img height="16" width="16" src="' . $contact['micro'] .'" alt="' . $contact['url'] . '" /> <a href="'.$a->get_baseurl().'/redir/'.$contact["id"].'" class="label" target="external-link">'.
|
||||
$page .= '<li style="list-style-type: none;" class="tool"><img height="20" width="20" src="' . $contact['micro'] .'" alt="' . $contact['url'] . '" /> <a href="'.$a->get_baseurl().'/redir/'.$contact["id"].'" title="' . $contact['url'] . '" class="label" target="external-link">'.
|
||||
$contact["name"]."</a></li>";
|
||||
}
|
||||
$page .= "</ul></div></div>";
|
||||
|
|
After Width: | Height: | Size: 951 B |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 925 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 303 B |
|
@ -21,6 +21,15 @@ function smiley_pack__uninstall() {
|
|||
|
||||
function smiley_pack_smilies(&$a,&$b) {
|
||||
|
||||
#Smileys are split into various directories by the intended range of emotions. This is in case we get too big and need to modularise things. We can then cut and paste the right lines, move the right directory, and just change the name of the addon to happy_smilies or whatever.
|
||||
|
||||
#Be careful with invocation strings. If you have a smiley called foo, and another called foobar, typing :foobar will call foo. Avoid this with clever naming, using ~ instead of :
|
||||
#when all else fails.
|
||||
|
||||
|
||||
|
||||
#Animal smileys.
|
||||
|
||||
$b['texts'][] = ':bunnyflowers';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bunnyflowers.gif' . '" alt="' . ':bunnyflowers' . '" />';
|
||||
|
||||
|
@ -84,6 +93,21 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':dog';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dog.gif' . '" alt="' . ':dog' . '" />';
|
||||
|
||||
$b['texts'][] = ':elephant';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/elephant.gif' . '" alt="' . ':elephant' . '" />';
|
||||
|
||||
$b['texts'][] = ':fish';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/fish.gif' . '" alt="' . ':fish' . '" />';
|
||||
|
||||
$b['texts'][] = ':giraffe';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/giraffe.gif' . '" alt="' . ':giraffe' . '" />';
|
||||
|
||||
$b['texts'][] = ':pig';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/pig.gif' . '" alt="' . ':pig' . '" />';
|
||||
|
||||
|
||||
|
||||
#Baby Smileys
|
||||
|
||||
$b['texts'][] = ':baby';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/baby.gif' . '" alt="' . ':baby' . '" />';
|
||||
|
@ -98,7 +122,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':stork';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/stork.gif' . '" alt="' . ':stork' . '" />';
|
||||
|
||||
|
||||
|
||||
#Confused Smileys
|
||||
$b['texts'][] = ':confused';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/confused.gif' . '" alt="' . ':confused' . '" />';
|
||||
|
||||
|
@ -108,12 +133,20 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':stupid';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/stupid.gif' . '" alt="' . ':stupid' . '" />';
|
||||
|
||||
$b['texts'][] = ':dazed';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/dazed.gif' . '" alt="' . ':dazed' . '" />';
|
||||
|
||||
|
||||
#Cool Smileys
|
||||
|
||||
$b['texts'][] = ':affro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/cool/affro.gif' . '" alt="' . ':affro' . '" />';
|
||||
|
||||
$b['texts'][] = ':cool';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/cool/cool.gif' . '" alt="' . ':cool' . '" />';
|
||||
|
||||
#Devil/Angel Smileys
|
||||
|
||||
$b['texts'][] = ':angel';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/angel.gif' . '" alt="' . ':angel' . '" />';
|
||||
|
||||
|
@ -141,6 +174,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':graveside';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/graveside.gif' . '" alt="' . ':graveside' . '" />';
|
||||
|
||||
#Unpleasent smileys.
|
||||
|
||||
$b['texts'][] = ':toilet';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/toilet.gif' . '" alt="' . ':toilet' . '" />';
|
||||
|
||||
|
@ -150,21 +185,32 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':vomit';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/vomit.gif' . '" alt="' . ':vomit' . '" />';
|
||||
|
||||
$b['texts'][] = ':fartblush';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/fartblush.gif' . '" alt="' . ':fartblush' . '" />';
|
||||
|
||||
#Drinks
|
||||
|
||||
$b['texts'][] = ':tea';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/drink/tea.gif' . '" alt="' . ':tea' . '" />';
|
||||
|
||||
$b['texts'][] = ':drool';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/drool/drool.gif' . '" alt="' . ':drool' . '" />';
|
||||
|
||||
#Sad smileys
|
||||
|
||||
$b['texts'][] = ':crying';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/crying.png' . '" alt="' . ':crying' . '" />';
|
||||
|
||||
$b['texts'][] = ':prisoner';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/prisoner.gif' . '" alt="' . ':prisoner' . '" />';
|
||||
|
||||
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
|
||||
|
||||
$b['texts'][] = ':smoking';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/smoking/smoking.gif' . '" alt="' . ':smoking' . '" />';
|
||||
|
||||
#Sport smileys
|
||||
|
||||
$b['texts'][] = ':basketball';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/basketball.gif' . '" alt="' . ':basketball' . '" />';
|
||||
|
||||
|
@ -207,6 +253,7 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':horseriding';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/horseriding.gif' . '" alt="' . ':horseriding' . '" />';
|
||||
|
||||
#Love smileys
|
||||
|
||||
$b['texts'][] = ':iloveyou';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/iloveyou.gif' . '" alt="' . ':iloveyou' . '" />';
|
||||
|
@ -226,6 +273,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':loveheart';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/loveheart.gif' . '" alt="' . ':loveheart' . '" />';
|
||||
|
||||
#Tired/Sleep smileys
|
||||
|
||||
$b['texts'][] = ':countsheep';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/countsheep.gif' . '" alt="' . ':countsheep' . '" />';
|
||||
|
||||
|
@ -235,6 +284,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':pillow';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/pillow.gif' . '" alt="' . ':pillow' . '" />';
|
||||
|
||||
#Fight/Flame/Violent smileys
|
||||
|
||||
$b['texts'][] = ':2guns';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/2guns.gif' . '" alt="' . ':2guns' . '" />';
|
||||
|
||||
|
@ -292,6 +343,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':acid';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/acid.gif' . '" alt="' . ':acid' . '" />';
|
||||
|
||||
#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys
|
||||
|
||||
$b['texts'][] = ':alienmonster';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/alienmonster.gif' . '" alt="' . ':alienmonster' . '" />';
|
||||
|
||||
|
@ -313,6 +366,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':mummy';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/mummy.gif' . '" alt="' . ':mummy' . '" />';
|
||||
|
||||
#Food smileys
|
||||
|
||||
$b['texts'][] = ':apple';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/apple.gif' . '" alt="' . ':apple' . '" />';
|
||||
|
||||
|
@ -337,6 +392,10 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':cooking';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/cooking.gif' . '" alt="' . ':cooking' . '" />';
|
||||
|
||||
$b['texts'][] = ':fryegg';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/fryegg.gif' . '" alt="' . ':fryegg' . '" />';
|
||||
|
||||
#Happy smileys
|
||||
|
||||
$b['texts'][] = ':cloud9';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/happy/cloud9.gif' . '" alt="' . ':cloud9' . '" />';
|
||||
|
@ -344,6 +403,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':tearsofjoy';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/happy/tearsofjoy.gif' . '" alt="' . ':tearsofjoy' . '" />';
|
||||
|
||||
#Repsect smileys
|
||||
|
||||
$b['texts'][] = ':bow';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/bow.gif' . '" alt="' . ':bow' . '" />';
|
||||
|
||||
|
@ -356,6 +417,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':number1';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/number1.gif' . '" alt="' . ':number1' . '" />';
|
||||
|
||||
#Laugh smileys
|
||||
|
||||
$b['texts'][] = ':hahaha';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/hahaha.gif' . '" alt="' . ':hahaha' . '" />';
|
||||
|
||||
|
@ -365,6 +428,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':rofl';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/rofl.gif' . '" alt="' . ':rofl' . '" />';
|
||||
|
||||
#Music smileys
|
||||
|
||||
$b['texts'][] = ':dj';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/dj.gif' . '" alt="' . ':dj' . '" />';
|
||||
|
||||
|
@ -383,6 +448,8 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':violin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/violin.gif' . '" alt="' . ':violin' . '" />';
|
||||
|
||||
#Smileys that used to be in core
|
||||
|
||||
$b['texts'][] = ':headbang';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headbang.gif' . '" alt="' . ':headbang' . '" />';
|
||||
|
||||
|
@ -404,5 +471,15 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':headdesk';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headdesk.gif' . '" alt="' . ':headdesk' . '" />';
|
||||
|
||||
#These two are still in core, so oldcore isn't strictly right, but we don't want too many directories
|
||||
|
||||
$b['texts'][] = ':-d';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/laughing.gif' . '" alt="' . ':-d' . '" />';
|
||||
|
||||
$b['texts'][] = ':-o';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/surprised.gif' . '" alt="' . ':-o' . '" />';
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|