/** * If Neatline Text is enabled and Neatline is in fullscreen, gets the narrative markup. * * @param array $args Array of arguments, with `exhibit`. */ public function hookNeatlinePublicTemplates($args) { if ($args['exhibit']->hasWidget(self::ID)) { $action = Zend_Controller_Front::getInstance()->getRequest()->getActionName(); if ($action == "fullscreen") { echo nl_getNarrativeMarkup(); } } }
<!-- Exhibit title: --> <h1><?php echo nl_getExhibitField('title'); ?> </h1> <!-- "View Fullscreen" link: --> <?php echo nl_getExhibitLink(null, 'fullscreen', __('View Fullscreen'), array('class' => 'nl-fullscreen')); ?> <!-- Exhibit and description : --> <?php echo nl_getExhibitMarkup(); echo nl_getNarrativeMarkup(); ?> <!-- <div id="faceting"> <div class="AdditionalCareers">Additional Careers</div> <div class="AntiSemiticRhetoric">Anti-Semitic Rhetoric</div> <div class="Bartering">Bartering</div> <div class="BusinessPractices">Business Practices</div> <div class="ConflictViolenceCommunal">Conflict/Violence -- Communal</div> <div class="ConflictViolencePersonal">Conflict/Violence -- Personal</div> <div class="ContextualResource">Contextual Resource</div> <div class="CulturalExchange">Cultural Exchange</div> <div class="Family">Family</div> <div class="LiteraryArtisticDepiction">Literary or Artistic Depiction</div> <div class="NonPeddlingBackground">Non-Peddling Background</div> <div class="PeddlingBackground">Peddling Background</div>
<?php /* vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 cc=80; */ /** * @package omeka * @subpackage neatline * @copyright 2012 Rector and Board of Visitors, University of Virginia * @license http://www.apache.org/licenses/LICENSE-2.0.html */ ?> <?php //this verify if has or not a narrative, to use a special css $empty_narrative = "\n<div id=\"neatline-narrative\">\n </div>\n"; $narrative = nl_getNarrativeMarkup(); if ($narrative != $empty_narrative) { queue_css_file('dist/production/neatline-public-narrative'); } //echo head(array( //'title' => nl_getExhibitField('title'), // 'bodyclass' => 'neatline fullscreen' //)); ?> <!DOCTYPE html> <html lang="<?php echo get_html_lang(); ?> "> <head> <meta charset="utf-8">