createOption('option1','If no argument given, how does the link look?','text','[Printer friendly version]'); $this->createOption('option12','Open in a new window?','yesno','yes'); $this->createOption('option2','Text for the print link','text',"Click here to print this page"); $this->createOption('option3','Text for the no print message','text',"(this box will not be printed)"); $this->createOption('option4','Which template should be used to display an item?','text',"detailed"); $this->createOption('option5','Header file (you can also use the complete path
or leave it blank for no use)','text',"./header.inc"); $this->createOption('option6','Footer file (you can also use the complete path
or leave it blank for no use)','text',"./footer.inc"); $this->createOption('fontSelector1','Font selector: allow people to choose font and font size?','yesno','yes'); $this->createOption('fontSelector2','Font selector: main text','text',"Choose the font and size of the text:"); $this->createOption('fontSelector3','Font selector: smaller font button','text',"smaller"); $this->createOption('fontSelector4','Font selector: bigger font button','text',"bigger"); } function doTemplateVar(&$item, $look) { global $manager, $blog, $CONF, $DIR_PLUGINS; $extra12 = $this->getOption('option12'); if ($blogName) { $b =& $manager->getBlog(getBlogIDFromName($params[2])); } else if ($blog) { $b =& $blog; } else { $b =& $manager->getBlog($CONF['DefaultBlog']); } if (! $b) { echo "Wrong"; } if ($look == "") { $look = $this->getOption('option1'); } $adminURL = $this->getAdminURL(); $curItem = $item->itemid; echo "".$look.""; } } ?>