Skip to content
Permalink
Browse files

fixed map event date (eae60c7)

  • Loading branch information...
following5 committed Aug 26, 2017
1 parent 7887929 commit ff90092e1bc57f87e945d6c41f86ef81acf17236
Showing with 4 additions and 1 deletion.
  1. +2 −0 htdocs/map2.php
  2. +2 −1 htdocs/templates2/ocstyle/map2.tpl
@@ -311,6 +311,7 @@ function output_cachexml($sWaypoint)
IFNULL(`trans_size_text`.`text`, `cache_size`.`name`) AS `size`,
`caches`.`difficulty`, `caches`.`terrain`,
`caches`.`date_created`, `caches`.`is_publishdate`,
`caches`.`date_hidden`,
IFNULL(`stat_caches`.`toprating`, 0) AS `toprating`,
IF(`caches`.`user_id`='&1', 1, 0) AS `owner`,
`user`.`username`, `user`.`user_id`,
@@ -395,6 +396,7 @@ function output_cachexml($sWaypoint)
echo 'terrain="' . xmlentities($rCache['terrain'] / 2) . '" ';
echo 'listed_since="' . xmlentities(strftime($opt['locale'][$opt['template']['locale']]['format']['date'], strtotime($rCache['date_created']))) . '" ';
echo 'is_publishdate="' . xmlentities($rCache['is_publishdate']) . '" ';
echo 'hidden_on="' . xmlentities(strftime($opt['locale'][$opt['template']['locale']]['format']['date'], strtotime($rCache['date_hidden']))) . '" ';
echo 'toprating="' . xmlentities($rCache['toprating']) . '" ';
echo 'geokreties="' . xmlentities($nGeokretyCount) . '" ';
echo 'found="' . xmlentities(($nFoundCount > 0) ? 1 : 0) . '" ';
@@ -1159,6 +1159,7 @@ function parseXML_GetHTML(xmlobject)
var nTerrain = aCaches[0].getAttribute("terrain");
var sListedSince = aCaches[0].getAttribute("listed_since");
var bIsPublishdate = aCaches[0].getAttribute("is_publishdate");
var sHiddenOn = aCaches[0].getAttribute("hidden_on");
var nTopRating = aCaches[0].getAttribute("toprating");
var nGeoKreties = aCaches[0].getAttribute("geokreties");
var bFound = aCaches[0].getAttribute("found");
@@ -1191,7 +1192,7 @@ function parseXML_GetHTML(xmlobject)
sHtml += "<tr><td colspan='3' height='3px'></td></tr>";
sHtml += "<tr><td colspan='2'>" + xmlentities(sTypeText) + " (" + xmlentities(sSizeText) + ")</td><td align='right' rowspan='2'>" + (bOconly==1 ? "{$help_oconly}<img src='resource2/ocstyle/images/misc/is_oconly_small.png' alt='OConly' title='OConly' /></a>" : "") + "</td></tr>";
sHtml += "<tr><td colspan='2'>" + (nTypeId == 6 ? "{t escape=js}Event date:{/t}" : (bIsPublishdate == true ? "{t escape=js}Published on:{/t}" : "{t escape=js}Listed since:{/t}")) + " " + xmlentities(sListedSince) + "</td></tr>";
sHtml += "<tr><td colspan='2'>" + (nTypeId == 6 ? "{t escape=js}Event date:{/t}" : (bIsPublishdate == true ? "{t escape=js}Published on:{/t}" : "{t escape=js}Listed since:{/t}")) + " " + xmlentities(nTypeId == 6 ? sHiddenOn : sListedSince) + "</td></tr>";
sAddHtml = "";
if (bOwner==1)

0 comments on commit ff90092

Please sign in to comment.
You can’t perform that action at this time.