function head_links()
 {
     qa_html_theme_base::head_links();
     $colours = array('aquamarine', 'chocolate', 'darkolivegreen', 'deepskyblue', 'greenyellow', 'lightcoral', 'lightcyan', 'palegreen', 'thistle', 'tomato', 'turquoise', 'wheat');
     $this->output('<style>.cd-top {background:' . $colours[rand(0, count($colours) - 1)] . ' url(' . $this->rooturl . 'elements/cd-top-arrow.svg) no-repeat center 50%;}</style>');
     // Random back-to-top colours
 }
示例#2
0
 public function head_links()
 {
     qa_html_theme_base::head_links();
     $this->output('<link rel="search" type="application/opensearchdescription+xml" title="' . qa_html(qa_opt('site_title')) . '" href="' . qa_path_html('opensearch.xml') . '"/>');
 }
示例#3
0
 function head_links()
 {
     qa_html_theme_base::head_links();
     $this->output('<LINK REL="search" TYPE="application/opensearchdescription+xml" TITLE="' . qa_html(qa_opt('site_title')) . '" HREF="' . qa_path_html('opensearch.xml') . '"/>');
 }