Skip to content

Instantly share code, notes, and snippets.

Walt Rice, Jr. WaltRiceJr

Block or report user

Report or block WaltRiceJr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View show-template.php
<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 Oct 26, 2016 — forked from cflove/mail.cfm
Fixed MIME closing boundary for multipart/alternative section
View mail.cfm
<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 Aug 29, 2015
Custom Omeka Exhibit code to skip empty pages / section headers
View custom_exhibit_functions.php
/**
* 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();
You can’t perform that action at this time.