Skip to content

Commit

Permalink
change templating in _config.php file, add minor styling
Browse files Browse the repository at this point in the history
  • Loading branch information
unclecheese committed Sep 6, 2012
1 parent 28e52ec commit 45eec5a
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 35 deletions.
14 changes: 7 additions & 7 deletions _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
You can modify the date display by assigning new date templates to any of the following
date scenarios. Use the above date format keys.
'OneDay' => '$StartMonth%{sMonShort}. %{sDayNumShort}, %{sYearFull}'
'SameMonthSameYear' => '%{sMonShort}. %{sDayNumShort} - %{eDayNumShort}, %{eYearFull}'
'DiffMonthSameYear' => '%{sMonShort}. %{sDayNumShort} - %{eMonShort}. %{eDayNumShort}, %{eYearFull}'
'DiffMonthDiffYear' => '%{sMonShort}. %{sDayNumShort}, %{sYearFull} - %{eMonShort} %{eDayNumShort}, %{eYearFull}'
'OneDay' => '$StartMonthNameShort. $StartDayNumberShort, $StartYearFull'
'SameMonthSameYear' => '$StartMonthNameShort. $StartDayNumberShort - $EndDatNumberShort, $EndYearFull'
'DiffMonthSameYear' => '$StartMonthNameShort. $StartDayNumberShort - $EndMonthNameShort. $EndDayNumberShort, $EndYearFull'
'DiffMonthDiffYear' => '$StartMonthNameShort. $StartDayNumberShort, $StartYearFull - $EndMonthNameShort $EndDayNumberShort, $EndYearFull'
'OneDayHeader' => '%{sMonFull} %{sDayNumShort}%{sDaySuffix}, %{sYearFull}'
'MonthHeader' => '%{sMonFull}, %{sYearFull}'
'YearHeader' => '%{sYearFull}'
'OneDayHeader' => '$StartMonthNameFull $StartDayNumberShort$StartDaySuffix, $StartYearFull'
'MonthHeader' => '$StartMonthNameFull, $StartYearFull'
'YearHeader' => '$StartYearFull'
*/
);
8 changes: 4 additions & 4 deletions css/calendar.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

.event-calendar-events ul, .event-calendar-events ul li { list-style:none; margin:0; padding:0; }
#event-calendar-events ul, .event-calendar-events ul li { list-style:none; margin:0; padding:0; }

.event-calendar-events > ul { border-top:1px solid #ccc; }

.event-calendar-events .vevent { padding:0 0 1em; margin:0 0 1em; border-bottom:1px solid #ccc; }
#event-calendar-events .vevent { padding:0 0 1em; margin:0 0 1em; border-bottom:1px solid #ccc; }

.event-calendar-other-dates { margin:1em 0 0; }
.event-calendar-other-dates ul, .event-calendar-other-dates ul li { list-style:none; margin:0; padding:0; }
.event-calendar-other-dates h4 { margin:0; }

.vevent .dates { font-weight:700; }

.calendar-view-more.loading {color: #ccc;}

25 changes: 14 additions & 11 deletions css/calendar_widget.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@

.calendar-widget { margin:0 0 2em; }
.calendar-widget table { width:100%; border-collapse:collapse; border:1px solid #ddd; border-spacing:0; margin:0; }
.calendar-widget table td, .calendar-widget table th { border:1px solid #ddd; }
.calendar-widget-table { margin:0 0 2em; }
.calendar-widget-table table { width:100%; border-collapse:collapse; border:1px solid #ddd; border-spacing:0; margin:0; }
.calendar-widget-table table td, .calendar-widget table th { border:1px solid #ddd; }

.calendar-widget thead th { text-align:center; padding:5px; font-size:1.2em; }
.calendar-widget-table thead th { text-align:center; padding:5px; font-size:1.2em; }

.calendar-widget tbody td { background-color:#fff; padding:4px; width:13%; font-size:1em; }
.calendar-widget-table tbody td { background-color:#fff; padding:4px; width:13%; font-size:1em; }

.calendar-widget tbody .calendar-header td { background-color:#555; color:#fff; border-color:#555; }
.calendar-widget-table tbody .calendar-header td { background-color:#555; color:#fff; border-color:#555; }

.calendar-widget tbody .calendar-day { text-align:right; }
.calendar-widget tbody .show-week { width:9%; text-align:center; }
.calendar-widget tbody .calendar-day:hover, .calendar-widget tbody .show-week:hover, .calendar-widget tbody .selected { background-color:#d9edf7; cursor:pointer; color:#3a87ad; }
.calendar-widget tbody .out-of-month { background-color:#eee; color:#999; }
.calendar-widget tbody .today { font-weight:700; color:#3a87ad; }
.calendar-widget-table tbody .calendar-day { text-align:right; }
.calendar-widget-table tbody .show-week { width:9%; text-align:center; }
.calendar-widget-table tbody .calendar-day:hover,
.calendar-widget tbody .show-week:hover,
.calendar-widget tbody .selected { background-color:#d9edf7; cursor:pointer; color:#3a87ad; }
.calendar-widget-table tbody .out-of-month { background-color:#eee; color:#999; }
.calendar-widget-table tbody .today { font-weight:700; color:#3a87ad; }
.calendar-widget-table tbody .hasEvent {background-image:url(../images/dot.png);background-repeat:no-repeat;background-position:center;}
2 changes: 1 addition & 1 deletion javascript/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(function() {
url: $t.attr('href'),
success: function(data) {
$t.remove();
$('#events').append(data);
$('#event-calendar-events').append(data);
fetching = false;
}

Expand Down
10 changes: 0 additions & 10 deletions javascript/calendar_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,9 @@
var monthName = this.settings.calMonthsLabels[this.month]
var html = '<table class="calendar-widget-table">';
html += '<thead>';
<<<<<<< HEAD
html += '<tr><th colspan="8"><a class="prev" href="javascript:void(0);"> &laquo; </a>';
html += '<a href="javascript:void(0);" class="show-month">'+monthName + "&nbsp;" + this.year + '</a>';
html += '<a class="next" href="javascript:void(0);"> &raquo; </a></th></tr>';
=======
html += '<tr><th colspan="8"><a class="prev" href="javascript:void(0);"> << </a>';
html += '<a href="javascript:void(0);" class="show-month">'+monthName + "&nbsp;" + this.year + '</a>';
html += '<a class="next" href="javascript:void(0);"> >> </a></th></tr>';
>>>>>>> bidstuff
html += '</thead>';
html += '<tbody>';
html += '<tr class="calendar-header">';
Expand Down Expand Up @@ -210,11 +204,7 @@
cell++;

}
<<<<<<< HEAD
html += "<td class='show-week'>&laquo;</td>";
=======
html += "<td class='show-week'>&lt;&lt;</td>";
>>>>>>> bidstuff
html += '</tr><tr>';
}
html += '</tr></tbody></table>';
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/EventList.ss
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
<% end_loop %>
</ul>
<% if MoreEvents %>
<a href="$MoreLink" class="calendar-view-more"><% _t('Calendar.VIEWMOREEVENTS','View more...') %></a>
<a href="$MoreLink" class="calendar-view-more"><% _t('Calendar.VIEWMOREEVENTS','View more events...') %></a>
<% end_if %>
2 changes: 1 addition & 1 deletion templates/Layout/Calendar.ss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $Content

<h2>$DateHeader</h2>
<% if Events %>
<div class="event-calendar-events">
<div id="event-calendar-events">
<% include EventList %>
</div>
<% else %>
Expand Down
2 changes: 2 additions & 0 deletions templates/Layout/CalendarEvent.ss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$CalendarWidget
$MonthJumper
<p><a href="$Parent.Link">&laquo; Back to $Parent.Title</a></p>
<div class="vevent">
<h3 class="summary">$Title</h3>
Expand Down

0 comments on commit 45eec5a

Please sign in to comment.