예제 #1
0
파일: roll.php 프로젝트: alencarmo/OCF
 function afterView(&$base)
 {
     static $alreadyExecuted = FALSE;
     if ($base && $base->applyAfterView()) {
         View::assign("navBar", Roll::composeNavBarPieces($base->getNavBarPieces()));
         if (!($title = $base->getPageTitle())) {
             $title = Object::getPageTitle();
         }
         $title = htmlspecialchars($title);
         if (!($description = $base->getPageDescription())) {
             $description = Object::getPageDescription();
         }
         $description = htmlspecialchars($description);
         if (!($keywords = $base->getPageKeywords())) {
             $keywords = Object::getPageKeywords();
         }
         $keywords = htmlspecialchars($keywords);
         View::assign("title", $title);
         View::assign("description", $description);
         View::assign("keywords", $keywords);
         View::assign("customMetaTags", "");
         $alreadyExecuted = TRUE;
     } else {
         View::assign("title", "");
         View::assign("description", "");
         View::assign("keywords", "");
     }
 }
예제 #2
0
파일: item.php 프로젝트: alencarmo/OCF
 function applyAfterView()
 {
     global $gorumroll;
     View::assign("customMetaTags", "");
     View::assign("navBar", "");
     if ($gorumroll->method != "showdetails") {
         return TRUE;
     }
     if ($customAdMeta = G::getAttr($this->cid, "appcategory", "customAdMeta")) {
         $customAdMeta = $this->prepareCustomMetaTags($customAdMeta);
         View::assign("customMetaTags", $customAdMeta);
         View::assign("navBar", Roll::composeNavBarPieces($this->getNavBarPieces()));
         return FALSE;
     }
     return TRUE;
 }