This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="item"> | |
<h2 class="item-title"><a href="http://example.com/items/show/1" rel="permalink">Item Title</a></h2> | |
<a href="http://example.com/items/show/1" class="image" rel="permalink"><img src="image.jpg"></a> | |
<p class="item-description">Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Fermentum vehicula | |
consectetur…. <a href="http://example.com/items/show/1">See more</a>.</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function display_recent_neatline_exhibits() { | |
$html = ''; | |
// Get our recent exhibits, limited to five. | |
$neatlineExhibits = get_records('NeatlineExhibit', array('recent' => true), 5); | |
// Set them for the loop. | |
set_loop_records('NeatlineExhibit', $neatlineExhibits); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<address class="vcard"> | |
<span class="org fn"> | |
<a class="url organization-name" href="http://scholarslab.org">Scholars’ Lab</a> | |
<a class="organization-unit extended-address" href="http://lib.virginia.edu">University of Virginia Library</a> | |
</span> | |
<span class="street-address">P.O. Box 400129</span>, | |
<span class="locality">Charlottesville</span>, <abbr title="Virginia" class="region">VA</abbr> <span class="postal-code">22904-4129</span> | |
<span class="tel">434.243.8800 <abbr class="type" title="work">(T)</abbr></span> | |
<span class="tel">434.924.1431 <abbr class="type" title="fax">(F)</abbr></span> | |
<ul class="elsewhere"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8"; | |
html, | |
body, | |
div, | |
span, | |
applet, | |
object, | |
iframe, | |
h1, | |
h2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns a color based on a base color and color rule. | |
* | |
* $base-color: The color you want to start with. | |
* $color-rule: complementary, analogous, split-complementary, triad, right-triangle | |
* $color-direction: positive (clockwise around color wheel) or negative (counterclockwise) | |
*/ | |
@function color-wheel($base-color, $color-rule, $color-direction: 'positive') { | |
$degrees: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Colors | |
$default-color : rgb(75,75,75); | |
$default-color-light : rgba($default-color, 0.75); | |
$default-color-lighter : rgba($default-color, 0.5); | |
$default-color-lightest : rgba($default-color, 0.1); | |
$link-color : darken(rgb(100,200,200), 10%); | |
$link-visited-color : darken($link-color, 10%); | |
$link-hover-color : adjust-hue($link-color, 0); | |
$link-focus-color : $link-hover-color; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function custom_item_browse_sql($select, $params) { | |
$sortField = 'Dublin Core,Title'; // 'Element Set Name, Element Name' | |
$sortDir = 'ASC'; //ASC or DESC | |
if (!isset($params['sort_field'])) { | |
$select->reset('order'); | |
get_db()->getTable('Item')->applySorting($select, $sortField, $sortDir); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Dropdowns</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$('header nav li').hover( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Converts the advanced search output into acceptable input for findBy(). | |
* | |
* @see Omeka_Db_Table::findBy() | |
* @param array $query HTTP query string array | |
* @return array Array of findBy() parameters | |
*/ | |
function neatlinetime_convert_search_filters($query) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
#map { height: 500px; } | |
</style> | |
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAzygx7txI_uXKJX1JD_czX7iH8BGRubI0&sensor=false"> | |
</script> |