Skip to content

Instantly share code, notes, and snippets.

View WaltRiceJr's full-sized avatar

Walt Rice, Jr. WaltRiceJr

  • R&R Computer Solutions
  • Philadelphia, Pennsylvania, USA
View GitHub Profile
<h3><?php echo metadata('item', array('Dublin Core','Title')); ?></h3>
<div id="primary">
<!-- Items metadata -->
<div id="item-metadata">
<?php echo all_element_texts('item'); ?>
</div>
<?php if(metadata('item','Collection Name')): ?>
@WaltRiceJr
WaltRiceJr / mail.cfm
Last active October 26, 2016 16:00 — forked from cflove/mail.cfm
Fixed MIME closing boundary for multipart/alternative section
<cfparam name="attributes.type" default="">
<!--- Original from http://cflove.org/2013/02/using-amazon-ses-api-sendrawemail-with-coldfusion.cfm --->
<!--- Modified by WaltRiceJr@gmail.com --->
<cfswitch expression="#thisTag.ExecutionMode#">
<cfcase value="start">
</cfcase>
<cfdefaultcase>
@WaltRiceJr
WaltRiceJr / custom_exhibit_functions.php
Last active August 29, 2015 13:56
Custom Omeka Exhibit code to skip empty pages / section headers
/**
* Check if the provided exhibit page is empty (layout type = text, no text)
*
* @param ExhibitPage $exhibitPage
* @return boolean
**/
function my_exhibit_builder_exhibit_page_is_empty($exhibitPage)
{
if ($exhibitPage->layout == 'text') {
$entries = $exhibitPage->getPageEntries();