|
@@ 346-349 (lines=4) @@
|
| 343 |
|
*/ |
| 344 |
|
function Smallworld_sociallinks($num, $name) |
| 345 |
|
{ |
| 346 |
|
if (0 == $num) { |
| 347 |
|
$image = '<img title="Msn" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/msn.png">'; |
| 348 |
|
$link = '<a title="Msn" id="Smallworld_socialnetwork" target="_blank" href="http://members.msn.com/' . $name . '">'; |
| 349 |
|
} |
| 350 |
|
if (1 == $num) { |
| 351 |
|
$image = '<img title="facebook" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/facebook.png">'; |
| 352 |
|
$link = '<a title="facebook" id="Smallworld_socialnetwork" target="_blank" href="http://www.facebook.com/' . $name . '">'; |
|
@@ 350-353 (lines=4) @@
|
| 347 |
|
$image = '<img title="Msn" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/msn.png">'; |
| 348 |
|
$link = '<a title="Msn" id="Smallworld_socialnetwork" target="_blank" href="http://members.msn.com/' . $name . '">'; |
| 349 |
|
} |
| 350 |
|
if (1 == $num) { |
| 351 |
|
$image = '<img title="facebook" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/facebook.png">'; |
| 352 |
|
$link = '<a title="facebook" id="Smallworld_socialnetwork" target="_blank" href="http://www.facebook.com/' . $name . '">'; |
| 353 |
|
} |
| 354 |
|
if (2 == $num) { |
| 355 |
|
$image = '<img title="GooglePlus" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/googleplus.png">'; |
| 356 |
|
$link = '<a title="GooglePlus" id="Smallworld_socialnetwork" target="_blank" href="https://plus.google.com/' . $name . '">'; |
|
@@ 354-357 (lines=4) @@
|
| 351 |
|
$image = '<img title="facebook" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/facebook.png">'; |
| 352 |
|
$link = '<a title="facebook" id="Smallworld_socialnetwork" target="_blank" href="http://www.facebook.com/' . $name . '">'; |
| 353 |
|
} |
| 354 |
|
if (2 == $num) { |
| 355 |
|
$image = '<img title="GooglePlus" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/googleplus.png">'; |
| 356 |
|
$link = '<a title="GooglePlus" id="Smallworld_socialnetwork" target="_blank" href="https://plus.google.com/' . $name . '">'; |
| 357 |
|
} |
| 358 |
|
if (3 == $num) { |
| 359 |
|
$image = '<img title="Icq" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/icq.png">'; |
| 360 |
|
$link = '<a title="icq" id="Smallworld_socialnetwork" target="_blank" href="http://www.icq.com/people/' . $name . '/">'; |
|
@@ 358-361 (lines=4) @@
|
| 355 |
|
$image = '<img title="GooglePlus" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/googleplus.png">'; |
| 356 |
|
$link = '<a title="GooglePlus" id="Smallworld_socialnetwork" target="_blank" href="https://plus.google.com/' . $name . '">'; |
| 357 |
|
} |
| 358 |
|
if (3 == $num) { |
| 359 |
|
$image = '<img title="Icq" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/icq.png">'; |
| 360 |
|
$link = '<a title="icq" id="Smallworld_socialnetwork" target="_blank" href="http://www.icq.com/people/' . $name . '/">'; |
| 361 |
|
} |
| 362 |
|
if (4 == $num) { |
| 363 |
|
$image = '<img title="Skype" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/skype.png">'; |
| 364 |
|
$link = '<a title="Skype" id="Smallworld_socialnetwork" target="_blank" href="skype:' . $name . '?userinfo">'; |
|
@@ 362-365 (lines=4) @@
|
| 359 |
|
$image = '<img title="Icq" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/icq.png">'; |
| 360 |
|
$link = '<a title="icq" id="Smallworld_socialnetwork" target="_blank" href="http://www.icq.com/people/' . $name . '/">'; |
| 361 |
|
} |
| 362 |
|
if (4 == $num) { |
| 363 |
|
$image = '<img title="Skype" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/skype.png">'; |
| 364 |
|
$link = '<a title="Skype" id="Smallworld_socialnetwork" target="_blank" href="skype:' . $name . '?userinfo">'; |
| 365 |
|
} |
| 366 |
|
if (5 == $num) { |
| 367 |
|
$image = '<img title="Twitter" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/twitter.png">'; |
| 368 |
|
$link = '<a title="Twitter" id="Smallworld_socialnetwork" target="_blank" href="http://twitter.com/#!/' . $name . '">'; |
|
@@ 366-369 (lines=4) @@
|
| 363 |
|
$image = '<img title="Skype" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/skype.png">'; |
| 364 |
|
$link = '<a title="Skype" id="Smallworld_socialnetwork" target="_blank" href="skype:' . $name . '?userinfo">'; |
| 365 |
|
} |
| 366 |
|
if (5 == $num) { |
| 367 |
|
$image = '<img title="Twitter" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/twitter.png">'; |
| 368 |
|
$link = '<a title="Twitter" id="Smallworld_socialnetwork" target="_blank" href="http://twitter.com/#!/' . $name . '">'; |
| 369 |
|
} |
| 370 |
|
if (6 == $num) { |
| 371 |
|
$image = '<img title="MySpace" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/myspace.png">'; |
| 372 |
|
$link = '<a title="MySpace" id="Smallworld_socialnetwork" target="_blank" href="http://www.myspace.com/' . $name . '">'; |
|
@@ 370-373 (lines=4) @@
|
| 367 |
|
$image = '<img title="Twitter" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/twitter.png">'; |
| 368 |
|
$link = '<a title="Twitter" id="Smallworld_socialnetwork" target="_blank" href="http://twitter.com/#!/' . $name . '">'; |
| 369 |
|
} |
| 370 |
|
if (6 == $num) { |
| 371 |
|
$image = '<img title="MySpace" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/myspace.png">'; |
| 372 |
|
$link = '<a title="MySpace" id="Smallworld_socialnetwork" target="_blank" href="http://www.myspace.com/' . $name . '">'; |
| 373 |
|
} |
| 374 |
|
if (7 == $num) { |
| 375 |
|
$image = '<img title="Xoops" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/xoops.png">'; |
| 376 |
|
$link = '<a title="Xoops" id="Smallworld_socialnetwork" target="_blank" href="https://xoops.org/modules/profile/userinfo.php?uid=' . $name . '">'; |
|
@@ 374-377 (lines=4) @@
|
| 371 |
|
$image = '<img title="MySpace" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/myspace.png">'; |
| 372 |
|
$link = '<a title="MySpace" id="Smallworld_socialnetwork" target="_blank" href="http://www.myspace.com/' . $name . '">'; |
| 373 |
|
} |
| 374 |
|
if (7 == $num) { |
| 375 |
|
$image = '<img title="Xoops" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/xoops.png">'; |
| 376 |
|
$link = '<a title="Xoops" id="Smallworld_socialnetwork" target="_blank" href="https://xoops.org/modules/profile/userinfo.php?uid=' . $name . '">'; |
| 377 |
|
} |
| 378 |
|
if (8 == $num) { |
| 379 |
|
$image = '<img title="Yahoo Messenger" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/yahoo.png">'; |
| 380 |
|
$link = '<a title="Yahoo Messenger" id="Smallworld_socialnetwork" target="_blank" href="ymsgr:sendim?' . $name . '">'; |
|
@@ 378-381 (lines=4) @@
|
| 375 |
|
$image = '<img title="Xoops" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/xoops.png">'; |
| 376 |
|
$link = '<a title="Xoops" id="Smallworld_socialnetwork" target="_blank" href="https://xoops.org/modules/profile/userinfo.php?uid=' . $name . '">'; |
| 377 |
|
} |
| 378 |
|
if (8 == $num) { |
| 379 |
|
$image = '<img title="Yahoo Messenger" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/yahoo.png">'; |
| 380 |
|
$link = '<a title="Yahoo Messenger" id="Smallworld_socialnetwork" target="_blank" href="ymsgr:sendim?' . $name . '">'; |
| 381 |
|
} |
| 382 |
|
if (9 == $num) { |
| 383 |
|
$image = '<img title="Youtube" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/youtube.png">'; |
| 384 |
|
$link = '<a title="Youtube" id="Smallworld_socialnetwork" target="_blank" href="http://www.youtube.com/user/' . $name . '">'; |
|
@@ 382-385 (lines=4) @@
|
| 379 |
|
$image = '<img title="Yahoo Messenger" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/yahoo.png">'; |
| 380 |
|
$link = '<a title="Yahoo Messenger" id="Smallworld_socialnetwork" target="_blank" href="ymsgr:sendim?' . $name . '">'; |
| 381 |
|
} |
| 382 |
|
if (9 == $num) { |
| 383 |
|
$image = '<img title="Youtube" id="Smallworld_socialnetworkimg" src="' . XOOPS_URL . '/modules/smallworld/assets/images/socialnetworkicons/youtube.png">'; |
| 384 |
|
$link = '<a title="Youtube" id="Smallworld_socialnetwork" target="_blank" href="http://www.youtube.com/user/' . $name . '">'; |
| 385 |
|
} |
| 386 |
|
return $image . $link; |
| 387 |
|
} |
| 388 |
|
|