Skip to content
Merged
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
9 changes: 9 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ function mitlib_widgets_init() {
'after_title' => '</h2>',
) );

register_sidebar( array(
'name' => __( 'Below Hours Grid Area', 'twentytwelve' ),
'id' => 'sidebar-below-hours-grid',
'description' => __( 'Appears below the grid of library hours, allowing for widgets to describe locations that do not appear on the grid.', 'twentytwelve' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s locations-more" role="complementary">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
add_action( 'widgets_init', 'mitlib_widgets_init' );

Expand Down
21 changes: 4 additions & 17 deletions page-hours-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,23 +376,10 @@
</table>

<!-- TABLE ENDS -->

<div class="locations-more">
<h3>Locations without hours</h3>
<!-- Building 9 -->
<h4>Building 9 book drop</h4>
<p><a href="/locations/#!building-9">Map:&nbsp; 9-Samuel Tak Lee Building</a></p>
<!-- DIRC -->
<h4><a href="/dirc">Digital Instruction Resource Center (DIRC)</a></h4>
<p><a href="/locations/#!digital-instruction-resource-center-dirc">Map:&nbsp; 14N-132</a></p>
<!-- STATA -->
<h4>Stata Center Book Drop</h4>
<p><a href="/locations/#!stata">Map:&nbsp; 32-Student Street</a></p>
<!-- Physics Reading Room -->
<h4>Physics Reading Room</h4>
<p>Building 4-332 | 617.253.1791<br>
<a href="mailto:jytqtran@mit.edu">Tan-Quy Tran</a>, Reading Room Assistant</p>
</div> <!-- end div.locations-more -->

<?php if ( is_active_sidebar( 'sidebar-below-hours-grid' ) ) : ?>
<?php dynamic_sidebar( 'sidebar-below-hours-grid' ); ?>
<?php endif; ?>

</div> <!-- end .content-page -->
</div> <!-- end #content -->
Expand Down