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_show_item_metadata(array $options = array(), $item = null) | |
{ | |
$item = $item ? $item : get_current_item(); | |
if ($dcFieldsList = get_theme_option('display_dublin_core_fields')) { | |
$otherElementSets = array(); |
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="element-set"> | |
<h2><?php echo html_escape(__($setName)); ?></h2> | |
<?php foreach ($elementsInSet as $info): | |
$elementName = $info['elementName']; | |
if ($setName == 'Dublin Core') { | |
switch($elementName) { | |
// Check if $elementName is 'Description' | |
case 'Description': | |
$elementName = 'Header'; // Change value of $elementName to 'Header' | |
break; |
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 | |
/** | |
* Filters 'excerpt_more' to provide a 'Continue reading' link. | |
*/ | |
function custom_excerpt_more($more) { | |
global $post; | |
$more = '…. <a href="'. get_permalink($post->ID) . '">Continue reading.</a>'; | |
return $more; | |
} |
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 | |
/** | |
* Helper to only retrieve files with particular MIME types. Defaults include: | |
* | |
* - HTML (text/html) | |
* - XML (application/xml) | |
* - PDF (application/pdf) | |
* - RTF (text/rtf) | |
* - MS Word (application/msword) |
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 queue_theme_assets() { | |
queue_js('modernizr.min'); | |
$respondSrc = src('respond.min.js', 'javascripts'); | |
$modernizrLoad = "Modernizr.load([{test: Modernizr.mq(), nope: " . "['$respondSrc']}]);"; | |
queue_js_string($modernizrLoad); | |
__v()->headScript()->appendFile(src('selectivizr.min.js', 'javascripts'), 'text/javascript', array('conditional' => 'lt IE 9')); |
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
diff --git a/views/shared/javascripts/neatline_map.js b/views/shared/javascripts/neatline_map.js | |
index 8894897..253d73a 100644 | |
--- a/views/shared/javascripts/neatline_map.js | |
+++ b/views/shared/javascripts/neatline_map.js | |
@@ -848,6 +848,17 @@ | |
} | |
); | |
+ this.imrm = new OpenLayers.Layer.XYZ( | |
+ "Imperium Romanum", |
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> | |
<meta charset="utf-8"> | |
<title>CSS Layout</title> | |
<style type="text/css" media="screen"> | |
</style> |
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 | |
/** | |
* Adds and displays the following JavaScript assets: | |
* | |
* - Modernizr - http://modernizr.com/ | |
* - Respond.js - https://github.com/scottjehl/Respond | |
* - Selectivizr - http://selectivizr.com/ | |
* | |
* Be sure to put copies of each in your theme's 'javascripts' directory. |
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 | |
/** | |
* Finds a Neatline record by slug or ID. | |
* | |
* Checks for existence of 'slug' in URL, then tries to find a Neatline | |
* record with that slug. If there is no 'slug' parameter, it falls back | |
* to Omeka_Controller_Action::findById() | |
* | |
* @throws Omeka_Controller_Exception_404 |