Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Add XML Button to Panel
brady
New
/*
Extension Name: Feed Button in Panel
Extension Url: http://lussumo.com/docs/
Description: Adds XML button to the panel
Version: 1.0
Author: BJ
Author Url: http://lussumo.com/docs/
*/
if (in_array($Context->SelfUrl, array("index.php"))) {
$Panel->AddList("Feeds");
$Panel->AddListItem("Feeds", "<img src=\"http://www.scripting.com/images/xml.gif\" border=\"0\" />", "./feeds/?Type=atom", "", $Position = "1", $Attributes = "");
}
0
This discussion has been closed.
Comments
I had it html, but the image URL didn't appear.
the image url should probably be changed by the user upon installation, so they host their own XML button
the difference is your escaping, with the slashes.
<?php if (in_array($Context->SelfUrl, array("index.php"))) { $Panel->AddList("Sponsors"); $Panel->AddListItem("Sponsors", "<img src=\"../images/ttw.gif\" border=\"0\" />", "http://www.toptenwholesale.com", "", $Position = "1", $Attributes = ""); } ?>