1<?php 2 3/** 4 * Define your actions here. 5 * 6 * action: 7 * Action name. Also the name of the associated gif image. 8 * Save your icons in /YOUR/TEMPLATE/DIRECTORY/images/p/actions/ 9 * 10 * url: 11 * The submission link. 12 * %PAGEURL% will be substituted for the wiki page url. 13 * %PAGETITLE% will be substituted for the wiki page title. 14 * 15 * textlabel: 16 * The link text that will show up in your wiki action menu. 17 * 18 * enabled: 19 * Turn off actions by setting this to something other then 1 (suggested: 0). 20 * 21 * 22 * @author: Louis Wolf <louiswolf@chirripo.nl> 23 * @homepage: http://blog.chirripo.nl 24 */ 25 26function tpl_sidebar_actions() { 27 $actions = array ( 28 array ( 29 'action' => 'digg', 30 'url' => 'http://digg.com/submit?phase=2&url=%PAGEURL%&title=%PAGETITLE%', 31 'textlabel' => 'Digg this!', 32 'enabled' => 1, 33 ), 34 array ( 35 'action' => 'delicious', 36 'url' => 'http://del.icio.us/post?url=%PAGEURL%&title=%PAGETITLE%', 37 'textlabel' => 'Del.Icio.Us', 38 'enabled' => 1, 39 ), 40 array ( 41 'action' => 'googlebookmarks', 42 'url' => 'http://www.google.com/bookmarks/mark?op=add&bkmk=%PAGEURL%&title=%PAGETITLE%', 43 'textlabel' => 'Google bookmarks', 44 'enabled' => 1, 45 ), 46 array ( 47 'action' => 'twitter', 48 'url' => 'http://twitter.com/home?status=%PAGETITLE%+-+%PAGEURL%', 49 'textlabel' => 'Twitter', 50 'enabled' => 1, 51 ), 52 array ( 53 'action' => 'stumbleupon', 54 'url' => 'http://www.stumbleupon.com/submit?url=%PAGEURL%&title=%PAGEURL%', 55 'textlabel' => 'Stumble upon', 56 'enabled' => 1, 57 ), 58 array ( 59 'action' => 'facebook', 60 'url' => 'http://www.facebook.com/share.php?v=4&src=bm&u=%PAGEURL%&t=%PAGETITLE%', 61 'textlabel' => 'Facebook', 62 'enabled' => 1, 63 ) 64 ); 65 66 return $actions; 67} 68 69?> 70