Beispiel #1
0
 /**
  * The standard tags that should be included in the <head> tag
  * including a meta description for the front page
  *
  * @return string HTML fragment.
  */
 public function standard_head_html()
 {
     global $SITE, $PAGE;
     $output = parent::standard_head_html();
     if ($PAGE->pagelayout == 'frontpage') {
         $summary = s(strip_tags(format_text($SITE->summary, FORMAT_HTML)));
         if (!empty($summary)) {
             $output .= "<meta name=\"description\" content=\"{$summary}\" />\n";
         }
     }
     return $output;
 }