#blog-side-info {
text-align: center; } }
-@media print {
- #addthis_wrapper, #copyright, #respond, #blog-side-info-wrapper, #footer_address, #action-items, #crumb-line, .no-featured, aside, header, nav, footer {
- display: none; }
- #blog-posts-over, #blog-posts-over p {
- page-break-before: always; }
- img {
- page-break-before: always; }
- h1, h2, h3, h4, h5, h6 {
- page-break-before: always; } }
-
h1, h2, h3, h4, h5, h6 {
clear: both; }
/* Header for posts*/
function glm_get_header() {
global $post;
-
+ $post_id = $post->ID;
echo '<div';
// inherit featured image from parent pages
- if ( $post->post_parent ){
+ if ( $post->post_parent && !has_post_thumbnail($post->ID)){
$post_id = $post->post_parent;
}
- else
- $post_id = $post->ID;
if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full");
$(document).on('change', '#arriveOff', function () {
currentDate = $("#arriveOff").val();
currentDate = new Date(currentDate);
+
+ // this section is used to circumvent issues with selecting the last day of the month without a proper rollover to the following month.
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
currentDate.setDate(currentDate.getDate());
+
dd = currentDate.getDate() + 1;
if (dd <= 9) {
dd = '0' + dd;
$(document).on('change', '#arriveOff', function () {
currentDate = $("#arriveOff").val();
currentDate = new Date(currentDate);
+
+ // this section is used to circumvent issues with selecting the last day of the month without a proper rollover to the following month.
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
currentDate.setDate(currentDate.getDate());
+
dd = currentDate.getDate() + 1;
if (dd <= 9) {
dd = '0' + dd;
text-align: center;
}
}
-@media print {
- #addthis_wrapper, #copyright, #respond, #blog-side-info-wrapper, #footer_address, #action-items, #crumb-line,.no-featured, aside, header, nav, footer{
- display: none;
- }
- #blog-posts-over, #blog-posts-over p{
- page-break-before: always;
- }
- img{
- page-break-before: always;
- }
- h1, h2, h3, h4, h5, h6{
- page-break-before: always;
- }
-
-}
-
// End Search and Posts