Merge pull request #159 from following5/w3w-windowsize

increased 'other coordinate systems' window and enabled scrollbars, for W3W coords
This commit is contained in:
bohrsty 2015-05-21 14:10:51 +02:00
commit 14aac6eb77
3 changed files with 6 additions and 2 deletions

View File

@ -573,7 +573,7 @@ class coordinate
),
));
$result = file_get_contents('http://api.what3words.com/position', false, $context);
$result = @file_get_contents('http://api.what3words.com/position', false, $context);
if ($result === false) {
return false;
}

View File

@ -45,11 +45,15 @@
{$coordRD|escape}</p>
</div>
{/if}
{if $coordW3Wde}
<div style="margin-top:4px;">
<p style="color: 5890a8"><b>what3words</b> <small>(deutsch)</small><br />
<a href="http://w3w.co/{$coordW3Wde|escape}">{$coordW3Wde|escape}</a></p>
</div>
{/if}
{if $coordW3Wen}
<div style="margin-top:4px;">
<p style="color: 5890a8"><b>what3words</b> <small>(english)</small><br />
<a href="http://w3w.co/{$coordW3Wen|escape}">{$coordW3Wen|escape}</a></p>
</div>
{/if}

View File

@ -185,7 +185,7 @@
</td></tr>
<tr><td style="vertical-align:top; width:370px">
<p style="line-height: 1.6em;">
<img src="resource2/{$opt.template.style}/images/viewcache/map.png" class="icon16" alt="" title="" align="middle" />&nbsp;<a href="#" onclick="window.open('coordinates.php?lat={$cache.latitude}&lon={$cache.longitude}&popup=y&wp={$cache.wpoc}','{t escape=js}Coordinates{/t}','width=280,height=430,resizable=no,scrollbars=0')">{t}Convert coordinates{/t}</a><br />
<img src="resource2/{$opt.template.style}/images/viewcache/map.png" class="icon16" alt="" title="" align="middle" />&nbsp;<a href="#" onclick="window.open('coordinates.php?lat={$cache.latitude}&lon={$cache.longitude}&popup=y&wp={$cache.wpoc}','{t escape=js}Coordinates{/t}','width=280,height=500,resizable=no,scrollbars=1')">{t}Convert coordinates{/t}</a><br />
<!-- <img src="resource2/{$opt.template.style}/images/viewcache/box.png" class="icon16" alt="" title="" align="middle" />&nbsp;Cache type: <b>Traditional</b><br /> -->
<img src="resource2/{$opt.template.style}/images/viewcache/package_green.png" class="icon16" alt="" title="" align="middle" />&nbsp;{t}Size{/t}: <b>{$cache.sizeName|escape}</b><br />
<img src="resource2/{$opt.template.style}/images/viewcache/page.png" class="icon16" alt="" title="" align="middle" />