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
div { | |
width: 500px; | |
height: 100px; | |
background-image: | |
-webkit-linear-gradient(right, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%), | |
-webkit-linear-gradient(top, rgba(255,200,0,1) 0%,rgba(255,200,0,0) 100%); | |
} |
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 | |
/** | |
* Save custom post metadata fields in WordPress. | |
*/ | |
function my_custom_save_post(){ | |
global $post; | |
// Populate this array with the names of your fields. | |
// Should match ID/name attributes in your form. |
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 | |
$args = array( 'name__like' => "a", 'get' => 'all', 'parent' => 9, 'order' => 'ASC'); | |
$categories = get_terms( 'category', $args ); | |
foreach($categories as $category) { | |
$categoryImage = new CategoryImagesII(); | |
?> |
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); |
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 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
<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
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
<?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
<?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) { |