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 my_custom_coins_title($coinsTitle) | |
| { | |
| global $post; | |
| $affiliation = get_post_meta($post->ID, 'affiliation', true); | |
| $issue = get_post_meta($post->ID, 'issue', true); | |
| $volume = get_post_meta($post->ID, 'volume', true); | |
| $pub_date = get_post_meta($post->ID, 'pub_date', true); |
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 | |
| /** | |
| * Custom Post Type for People | |
| */ | |
| function people_register_post_types() { | |
| register_post_type( 'people', | |
| array( | |
| 'labels' => array( | |
| 'name' => __( 'People' ), |
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 sanitize_string($string) { | |
| $string = strtolower($string); | |
| // Gets rid of spaces | |
| $sanitized = preg_replace('/\s/', '', $string); | |
| // Gets rid of non-alphanumerics | |
| $sanitized = preg_replace( '/[^A-Za-z0-9_]/', '', $string ); |
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 | |
| /** | |
| * Change the link around images files in Omeka to point to the | |
| * fullsize image, not the archival image. | |
| * | |
| * Uses the 'display_file' filter in Omeka 1.5. | |
| */ | |
| function link_images_to_fullsize($html, $file, $callback, $options, $wrapperAttributes) { |
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 my_custom_coins_title($coinsTitle) | |
| { | |
| global $post; | |
| // Starts the coins title value again. | |
| $coinsTitle = 'ctx_ver=Z39.88-2004' | |
| . '&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc' | |
| . '&rfr_id=info%3Asid%2Focoins.info%3Agenerator' |
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
| GEM | |
| remote: http://rubygems.org/ | |
| specs: | |
| addressable (2.2.7) | |
| chunky_png (1.2.5) | |
| compass (0.12.1) | |
| chunky_png (~> 1.2) | |
| fssm (>= 0.2.7) | |
| sass (~> 3.1) | |
| compass-susy-plugin (0.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
| <header> | |
| <p class="kicker">Latest Post</p> | |
| <h1>Post Title</h1> | |
| <p class="byline"><time datetime="2011-03-25">March 25, 2011</time></p> | |
| </header> |
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 head(array('title' => item('Dublin Core', 'Title'), 'bodyid'=>'items','bodyclass' => 'show')); ?> | |
| <div id="primary"> | |
| <!-- Our item view navigation. Sets a parameter on $_GET, so we can change what gets displayed accordingly. --> | |
| <a href="<?php echo abs_item_uri(); ?>?view=transcript">View Transcript</a> | <a href="<?php echo abs_item_uri(); ?>">View Metadata</a> | |
| <h1><?php echo item('Dublin Core', 'Title'); ?></h1> | |
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 add_post_title_class($classes) { | |
| global $post; | |
| if ($postTitle = sanitize_title($post->post_title)) { | |
| $classes[] = $postTitle; | |
| } | |
| return $classes; |
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 | |
| $page = (get_query_var('page')) ? get_query_var('page') : 1; | |
| $args = array( | |
| 'posts_per_page' => '10', | |
| 'cat' => '-592, -614', | |
| 'post_status' => 'publish', | |
| 'paged=' . $page | |
| ); | |
| query_posts($args); |