2020-07-01 20:47:02 +02:00
|
|
|
<?php require "inc.php"; ?>
|
2019-03-17 16:03:43 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
2020-07-01 20:47:02 +02:00
|
|
|
<ShortName>LibreQR</ShortName>
|
|
|
|
<Description><?= $loc['opensearch_actionName'] ?></Description>
|
2019-08-13 21:17:08 +02:00
|
|
|
<?php
|
2020-03-15 21:19:01 +01:00
|
|
|
foreach($themeDimensionsIcons as $dimIcon) {
|
|
|
|
echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $instPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
|
|
|
|
} ?>
|
2020-03-17 14:02:31 +01:00
|
|
|
<Language>*</Language>
|
2019-03-17 16:03:43 +01:00
|
|
|
<InputEncoding>UTF-8</InputEncoding>
|
2020-03-17 14:02:31 +01:00
|
|
|
<?php
|
|
|
|
$redondancy = htmlspecialchars((isset($_GET['redondancy'])) ? $_GET['redondancy'] : 'H');
|
|
|
|
$margin = htmlspecialchars((isset($_GET['margin'])) ? $_GET['margin'] : '2');
|
|
|
|
$size = htmlspecialchars((isset($_GET['size'])) ? $_GET['size'] : '4');
|
|
|
|
$bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : '%23FFFFFF'));
|
|
|
|
$mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : '%23000000'));
|
|
|
|
?>
|
|
|
|
<Url type="text/html" template="<?= $instPath; ?>">
|
|
|
|
<Param name="txt" value="{searchTerms}"/>
|
|
|
|
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
|
|
|
<Param name="margin" value="<?= $margin ?>"/>
|
|
|
|
<Param name="size" value="<?= $size ?>"/>
|
|
|
|
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
|
|
|
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
|
|
|
</Url>
|
|
|
|
<Url type="application/opensearchdescription+xml" rel="self" template="<?= $instPath; ?>opensearch.php">
|
|
|
|
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
|
|
|
<Param name="margin" value="<?= $margin ?>"/>
|
|
|
|
<Param name="size" value="<?= $size ?>"/>
|
|
|
|
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
|
|
|
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
|
|
|
</Url>
|
2019-03-17 16:03:43 +01:00
|
|
|
</OpenSearchDescription>
|