This file contains 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
# Caveats | |
# I'm no shell expert | |
# This is in Bash on a Mac running Mojave | |
# You may need to read the whole thing before using | |
# | |
# Explanation | |
# (hopefully intelligible to the advanced beginner or low intermediate Bash user) | |
# | |
# * Slashes at the line ends tell the shell to consider the next line part of the command | |
# |
This file contains 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 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 | |
/** | |
* Returns a string detailing the parameters of a given query array. | |
* | |
* @param array A search array | |
* @return string HTML | |
*/ | |
function dibny_display_filters($query = null) | |
{ | |
$html = ''; |
This file contains 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')); ?> | |
<?php $collectionName = collection('Name', get_collection_for_item()); | |
if ($collectionName == 'Media Reports and Commentary'): ?> | |
<div id="primary"> | |
<h5><?php echo item('Dublin Core', 'Title'); ?></h5> |