Skip to content

Instantly share code, notes, and snippets.

<?php echo head(array(
'title' => nl_getExhibitField('title'),
'bodyclass' => 'neatline show'
)); ?>
<!-- Exhibit title: -->
<h1><?php echo nl_getExhibitField('title'); ?></h1>
<!-- "View Fullscreen" link: -->
<?php echo nl_getExhibitLink(
<?php echo head(array(
'title' => nl_getExhibitField('title'),
'bodyclass' => 'neatline show'
)); ?>
<!-- Narrative -->
<div id="neatline-narrative" class="narrative">
<!-- Content. -->
<h1>Project Gemini over Baja California Sur</h1>
<!-- Texts. -->
<?php echo all_element_texts('item'); ?>
<!-- Files. -->
<?php if (metadata('item', 'has files')): ?>
<h3><?php echo __('Files'); ?></h3>
<?php echo files_for_item(); ?>
<?php endif; ?>
<hr />
<!-- Title. -->
<?php echo metadata('item', array('Dublin Core', 'Title')); ?>
<!-- Thumbnail. -->
<?php echo files_for_item(); ?>
<!-- Title. -->
<?php echo metadata('item', array('Dublin Core', 'Title')); ?>
<!-- Text. -->
<?php echo metadata('item', array('Item Type Metadata', 'Text')); ?>
{
"Layer Group Name": [
{
"title": "First MBTiles Layer",
"id": "something-unique",
"type": "XYZ",
"properties": {
"urls": [
require 'capistrano/ext/multistage'
require 'omeka-recipes'
set :scm, :git
set :application, "labs"
set :repository, "git://github.com/omeka/Omeka.git"
set :branch, 'stable-2.1'
set :deploy_to, "/usr/local/projects/#{application}"
set :default_stage, "production"
set :keep_releases, 1
var overlay = $('#overlay');
var map = $('#map');
// Cache the right border of the overlay.
var overlayWidth = overlay.outerWidth() + overlay.offset().left;
var position = function() {
// Map width = window width + overlay width.
var a = 'javascripts/oversoul/';
var v = 'javascripts/vendor/';
load(
// jQuery and Underscore.
v+'jquery/jquery.js',
v+'underscore/underscore.js'
CREATE TABLE IF NOT EXISTS neatline_data_records (
id int(10) unsigned not null auto_increment,
item_id int(10) unsigned NULL,
exhibit_id int(10) unsigned NULL,
title tinytext COLLATE utf8_unicode_ci NULL,
slug varchar(100) NULL,
description mediumtext COLLATE utf8_unicode_ci NULL,
start_date tinytext COLLATE utf8_unicode_ci NULL,
end_date tinytext COLLATE utf8_unicode_ci NULL,
geocoverage mediumtext COLLATE utf8_unicode_ci NULL,