/**
  * Answer the plugin content for a block
  * 
  * @param object BlockSiteComponent $block
  * @return string
  * @access public
  * @since 5/23/07
  */
 function getPluginContent($block)
 {
     ob_start();
     $harmoni = Harmoni::instance();
     $pluginManager = Services::getService('PluginManager');
     $plugin = $pluginManager->getPlugin($block->getAsset());
     print $plugin->executeAndGetExtendedMarkup(true);
     // print out attribution based on block settings
     $attribution = new AttributionPrinter($block);
     $attributionDisplay = $attribution->getAttributionMarkUp();
     if (!is_null($attributionDisplay) && strlen($attributionDisplay)) {
         print $attributionDisplay;
     }
     return ob_get_clean();
 }
 /**
  * Answer the plugin content for a block
  * 
  * @param object BlockSiteComponent $block
  * @return string
  * @access public
  * @since 5/23/07
  */
 function getPluginContent($block)
 {
     ob_start();
     $harmoni = Harmoni::instance();
     $pluginManager = Services::getService('PluginManager');
     $plugin = $pluginManager->getPlugin($block->getAsset());
     print $plugin->executeAndGetExtendedMarkup(false);
     // print out attribution based on block settings
     $attribution = new AttributionPrinter($block);
     $attributionDisplay = $attribution->getAttributionMarkUp();
     if (!is_null($attributionDisplay) && strlen($attributionDisplay)) {
         print $attributionDisplay;
     }
     if ($plugin->supportsVersioning() && $block->showHistory()) {
         print "\n<div style='text-align: right;'>";
         print "\n\t<a href='" . $this->getHistoryUrl($block->getId()) . "'>";
         print _("history");
         print "</a>";
         print "\n</div>";
     }
     print "\n<div style='clear: both'></div>";
     return ob_get_clean();
 }
 /**
  * Answer the plugin content for a block
  * 
  * @param object BlockSiteComponent $block
  * @return string
  * @access public
  * @since 5/23/07
  */
 function getPluginContent($block, $inMenu = false)
 {
     ob_start();
     $harmoni = Harmoni::instance();
     $pluginManager = Services::getService('PluginManager');
     $plugin = $pluginManager->getPlugin($block->getAsset());
     print "\n<div class='plugin_content'>";
     print $plugin->executeAndGetMarkup($this->showPluginControls());
     print "\n</div>";
     if ($block->showComments() && !$inMenu) {
         $cm = CommentManager::instance();
         print "\n<div class='comments'>";
         print "\n\t<a href='" . $this->getDetailUrl($block->getId()) . "#";
         $harmoni->request->startNamespace("comments");
         print RequestContext::name('top') . "'>";
         $harmoni->request->endNamespace();
         print str_replace("%1", $cm->getNumComments($block->getAsset()), _("Discuss (%1 posts) &raquo;"));
         print "</a>";
         print "\n</div>";
     }
     // print out attribution based on block settings
     $attribution = new AttributionPrinter($block);
     $attributionDisplay = $attribution->getAttributionMarkUp();
     if (!is_null($attributionDisplay) && strlen($attributionDisplay)) {
         print $attributionDisplay;
     }
     if (!$inMenu) {
         print "\n<div class='extended_content_link' id='extended_content_link:" . $block->getId() . "' ";
         print " style='text-align: right;";
         if (!$plugin->hasExtendedMarkup()) {
             print " display: none;";
         }
         print "'>";
         print "\n\t<a href='" . $this->getDetailUrl($block->getId()) . "'>";
         print $plugin->getExtendedLinkLabel();
         print "</a>";
         print "\n</div>";
     }
     print $this->getHistoryLink($block, $plugin);
     print "\n<div class='no_float_spacer'></div>";
     return ob_get_clean();
 }