450, 'height' => 35, //'title' => '', // override $TITLE (i.e. pagename) 'colorscheme' => 'light', // or "dark" 'show_faces' => "false", 'layout' => "standard", // or "button_count" 'action' => "like", // or "recommend" ); } function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); extract($args); //$iframe = ""; $urlargs = array( "layout" => $layout, "show_faces" => $show_faces, "width" => $width, "action" => "like", // or "recommend" "colorscheme" => $colorscheme, "height" => $height ); $pagename = $request->getArg('pagename'); $url = "http://www.facebook.com/plugins/like.php?" . "href=" . urlencode(WikiUrl($pagename, $urlargs, true)); $url = str_replace("%3D", "=", $url); $params = array("src" => $url, "scrolling" => 'no', "frameborder" => '0', "style" => "border:none; overflow:hidden; " . "width:$width" . "px; height:$height" . "px;", "allowtransparency" => "true"); return HTML::iframe($params); } } // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: