Esempio n. 1
0
 protected function assignTemplate()
 {
     parent::assignTemplate();
     $this->vars['root'] = $this->request->base . $this->base;
     $this->vars['kindTitle'] = $this->kindTitle;
     $this->vars['children'] = $this->children;
     $uri = $this->request->pageUri;
     if (strlen($uri) > 1 && substr($uri, -1) == '/') {
         $uri = substr($uri, 0, -1);
     }
     $this->links[] = array('rel' => 'alternate', 'href' => $uri . '.rdf', 'type' => 'application/rdf+xml');
 }
Esempio n. 2
0
 protected function assignTemplate()
 {
     parent::assignTemplate();
     if (!isset($this->vars['page_type'])) {
         $this->vars['page_type'] = '';
     }
     $this->vars['series'] = $this->series;
     $this->vars['episodes'] = $this->episodes;
     $this->vars['clips'] = null;
     if (isset($this->object['template'])) {
         $this->vars['custom'] = $this->object['template'];
         if (isset($this->object['template']['pageType'])) {
             $this->vars['page_type'] .= ' ' . $this->object['template']['pageType'];
         }
     }
 }
Esempio n. 3
0
 protected function assignTemplate()
 {
     parent::assignTemplate();
     if (!isset($this->vars['page_type'])) {
         $this->vars['page_type'] = '';
     }
     $uri = $this->request->pageUri;
     if (strlen($uri) > 1 && substr($uri, -1) == '/') {
         $uri = substr($uri, 0, -1);
     }
     $this->links[] = array('rel' => 'alternate', 'type' => 'application/rdf+xml', 'href' => $uri . '.rdf');
     $this->links[] = array('rel' => 'alternate', 'type' => 'application/json', 'href' => $uri . '.json');
     if (!$this->player) {
         if (isset($this->object['template'])) {
             $this->vars['custom'] = $this->object['template'];
             if (isset($this->object['template']['pageType'])) {
                 $this->vars['page_type'] .= ' ' . $this->object['template']['pageType'];
             }
         }
     }
     $this->vars['version'] = $this->version;
 }