Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/common/javascript/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ KGOMapLoader.prototype.showDefaultCallout = function() {
for (var id in this.placemarks) {
count++;
thePlacemark = id;
break;
//break;
}

if (count == 1) {
Expand Down
4 changes: 3 additions & 1 deletion app/modules/admin/css/compliant-computer.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ nav ul ul a {
-webkit-box-shadow: 1px 1px 3px #999;
-moz-box-shadow: 1px 1px 3px #999;
padding: 18px 16px;
overflow:auto;
width:610px;
}
#content h1 {
font-size: 30px;
Expand Down Expand Up @@ -691,7 +693,7 @@ h1 img {
}

#adminSections {
height:30px;
min-height:30px;
margin: 0;
padding: 0 0 10px 0;
border-bottom: 1px solid #ddd;
Expand Down
1 change: 1 addition & 0 deletions app/modules/admin/javascript/modules-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function processModuleSections(data) {
}
$("#adminSections").append(li);
});
$("#adminSections").append('<div style="clear:both"></div>');
}

function processModuleData(data) {
Expand Down
2 changes: 1 addition & 1 deletion app/modules/athletics/config/admin-module.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"BASE_URL":{"key":"BASE_URL","labelKey":"ATHLETICS_ADMIN_SCHEDULE_URL_TITLE", "descriptionKey":"ATHLETICS_ADMIN_SCHEDULE_URL_DESCRIPTION", "type":"text","omitBlankValue":true},
"RETRIEVER_CLASS":{"labelKey":"ATHLETICS_ADMIN_SCHEDULE_RETRIEVER_TITLE", "descriptionKey":"ATHLETICS_ADMIN_SCHEDULE_RETRIEVER_DESCRIPTION", "type":"select","optionsMethod":["AthleticEventsDataModel","getAthleticScheduleRetrievers"],"omitBlankValue":true},
"SPORT":{"key":"SPORT","labelKey":"ATHLETICS_ADMIN_SCHEDULE_SPORT_TITLE", "descriptionKey":"ATHLETICS_ADMIN_SCHEDULE_SPORT_DESCRIPTION", "type":"text","showIf":["RETRIEVER_CLASS","CSTVDataRetriever"],"omitBlankValue":true},
"PARSER_CLASS":{"labelKey":"ATHLETICS_ADMIN_SCHEDULE_PARSER_TITLE", "descriptionKey":"ATHLETICS_ADMIN_SCHEDULE_PARSER_DESCRIPTION", "type":"text","omitBlankValue":true,"showIf":["RETRIEVER_CLASS","URLDataRetriever"],"default":"ICSDataParser"}
"PARSER_CLASS":{"labelKey":"ATHLETICS_ADMIN_SCHEDULE_PARSER_TITLE", "descriptionKey":"ATHLETICS_ADMIN_SCHEDULE_PARSER_DESCRIPTION", "type":"text","omitBlankValue":true,"showIf":["RETRIEVER_CLASS","URLDataRetriever"],"default":"ICSAthleticParser"}
},
"sectionindex":"string",
"sectionsmethod":"loadScheduleData",
Expand Down
17 changes: 11 additions & 6 deletions app/modules/photos/PhotosWebModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ private function getSectionsFromFeeds($feeds) {
}

protected function timeText($photo, $timeOnly=false) {
includePackage('Calendar');
return DateFormatter::formatDate($photo->getPublished(), DateFormatter::SHORT_STYLE, DateFormatter::SHORT_STYLE);
if ($photo->getPublished()) {
includePackage('Calendar');
return DateFormatter::formatDate($photo->getPublished(), DateFormatter::SHORT_STYLE, DateFormatter::SHORT_STYLE);
} else {
return "";
}
}

protected function initializeForPage() {
Expand Down Expand Up @@ -132,10 +136,11 @@ protected function initializeForPage() {
$controller = $this->getFeed($album);
$id = base64_decode($this->getArg('id'));
$photo = $controller->getPhoto($id);
$this->assign('photoURL', $photo->getUrl());
$this->assign('photoTitle', $photo->getTitle());
$this->assign('photoAuthor', $photo->getAuthor());
$this->assign('photoDate', $this->timeText($photo));
$this->assign('photoURL', $photo->getUrl());
$this->assign('photoTitle', $photo->getTitle());
$this->assign('photoAuthor', $photo->getAuthor());
$this->assign('photoDate', $this->timeText($photo));
$this->assign('photoDescription', $photo->getDescription());

break;
}
Expand Down
9 changes: 8 additions & 1 deletion app/modules/photos/templates/show.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
<div class="nonfocal">
<h1 class="slugline">{$photoTitle}</h1>
<p class="fineprint">
{if $photoDescription}
<br/>
{$photoDescription}
{/if}
{$photoAuthor}<br/>
{$photoDate}
{if $photoDate}
<br/>
{$photoDate}
{/if}
</p>
{include file="findInclude:common/templates/share.tpl" shareURL={$storyURL} shareRemark={$shareRemark} shareEmailURL={$shareEmailURL}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/DataResponse/HTTPDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function parseHTTPResponseHeaders($http_response_header) {
}
}

if (!$this->responseCode) {
if (!$this->responseCode && substr($this->requestURL,0,4) === "http") {
$this->responseError = 'Error Retrieving Data';
}
}
Expand Down
6 changes: 6 additions & 0 deletions lib/DateTime/DateFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public static function formatDate($date, $dateStyle, $timeStyle) {
}

private static function getTimeConstant($timeStyle) {
if (!is_numeric($timeStyle)) {
return $timeStyle;
}
switch ($timeStyle)
{
case self::NO_STYLE:
Expand All @@ -73,6 +76,9 @@ private static function getTimeConstant($timeStyle) {
}

private static function getDateConstant($dateStyle) {
if (!is_numeric($dateStyle)) {
return $dateStyle;
}
switch ($dateStyle)
{
case self::NO_STYLE:
Expand Down
2 changes: 1 addition & 1 deletion lib/Maps/GoogleJSMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private function getPathJS()
$coord = $this->mapProjector->projectPoint($coord);
}
$template->appendValues(array(
'___ID___' => $marker->getId(),
'___ID___' => $placemark->getId(),
'___LATITUDE___' => $coord['lat'],
'___LONGITUDE___' => $coord['lon'],
'___PATHSTRING___' => $coordString,
Expand Down