예제 #1
0
 /**
  * Parse templatevar title
  *
  * @param string $format defines in which format the title is shown
  */
 function parse_title($format = '')
 {
     if (is_array($this->currentItem)) {
         $itemtitle = $this->currentItem['title'];
     } elseif (is_object($this->currentItem)) {
         $itemtitle = $this->currentItem->title;
     }
     switch ($format) {
         case 'xml':
             //				echo stringToXML ($this->currentItem->title);
             echo stringToXML($itemtitle);
             break;
         case 'attribute':
             //				echo stringToAttribute ($this->currentItem->title);
             echo stringToAttribute($itemtitle);
             break;
         case 'raw':
             //				echo $this->currentItem->title;
             echo $itemtitle;
             break;
         default:
             //				$this->highlightAndParse($this->currentItem->title);
             $this->highlightAndParse($itemtitle);
             break;
     }
 }
예제 #2
0
 /**
  * Parse skinvar previtemtitle
  * (include itemtitle of prev item)
  */
 function parse_previtemtitle($format = '')
 {
     global $itemtitleprev;
     switch ($format) {
         case 'xml':
             echo stringToXML($itemtitleprev);
             break;
         case 'attribute':
             echo stringToAttribute($itemtitleprev);
             break;
         case 'raw':
             echo $itemtitleprev;
             break;
         default:
             echo htmlspecialchars($itemtitleprev, ENT_QUOTES);
             break;
     }
 }