Skip to content
Snippets Groups Projects
Commit a0f751f3 authored by Kevin Abel's avatar Kevin Abel
Browse files

More syntax fixes. Should work once cache on google is clean.

parent a3441beb
No related branches found
No related tags found
No related merge requests found
......@@ -3,18 +3,18 @@ class UNL_Search_CSEGenerator
{
public static function generateCSE($url)
{
$xml = '
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
<GoogleCustomizations>
<CustomSearchEngine>
<Title>UNL Custom Search Engine for '. htmlentities($url, ENT_QUOTES) . '</Title>
<Description>This custom search engine was automatically generated by the UNL Web Developer Network.</Description>
<Context>
<BackgroundLabels>
<Label name="_cse_localsite" mode="FILTER"/>
<Label name="_cse_exclude_localsite" mode="EXCLUDE"/>
<Label name="_cse_localsite" mode="FILTER" />
<Label name="_cse_exclude_localsite" mode="ELIMINATE" />
</BackgroundLabels>
</Context>
<LookAndFeel nonprofit="true"/>
<LookAndFeel nonprofit="true" />
</CustomSearchEngine>';
$xml .= '
<Annotations>';
......@@ -27,11 +27,11 @@ class UNL_Search_CSEGenerator
foreach (UNL_Search_CSEGenerator::getExcludedSites($url) as $exclude) {
$xml .= "
<Annotation about=\"$exclude*\">
<Label name=\"_cse_exclude_localsite\"/>
<Label name=\"_cse_exclude_localsite\" />
</Annotation>";
}
$xml .= '
</Annotations>
$xml .= '
</Annotations>
</GoogleCustomizations>';
return $xml;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment