/**
  *
  * @param \Contentinum\Options\PageOptions $pageOptions
  * @param Zend\View\HelperPluginManager $viewHelperManager
  */
 protected function setAssets($layout, $pageOptions, $viewHelperManager)
 {
     $am = new \Contentinum\Assets\Manager();
     $am->set($pageOptions->getAssets());
     $layout->stylesheets = $am->getStylesheets();
     $layout->scripthead = $am->getHeadLink();
     $layout->scriptInline = $am->getInlineLink();
     $str = '';
     if (null !== ($scripts = $pageOptions->getBodyFooterScript())) {
         foreach ($scripts['prepend'] as $key => $script) {
             $str .= $am->getInlineLinkScript($script);
         }
         $layout->prependScripts = $str;
     }
 }
 /**
  *
  * @param \Contentinum\Options\PageOptions $pageOptions            
  * @param Zend\View\HelperPluginManager $viewHelperManager            
  */
 protected function setAssets($layout, $pageOptions, $viewHelperManager)
 {
     $am = new \Contentinum\Assets\Manager();
     $am->set($pageOptions->getAssets());
     $layout->stylesheets = $am->getStylesheets();
     $layout->scripthead = $am->getHeadLink();
     $layout->scriptInline = $am->getInlineLink();
 }