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
Homebrew build logs for mysql on macOS 10.11.6 | |
Build date: 2016-09-27 16:14:56 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 echo $view->form('search-form', $options['form_attributes']); ?> | |
<?php echo $view->formText('query', $_GET['query']); ?> | |
<?php if ($options['show_advanced']): ?> | |
<fieldset id="advanced-form"> | |
<fieldset id="query-types"> | |
<p><?php echo __('Search using this query type:'); ?></p> | |
<?php echo $view->formRadio('query_type', $_GET['query_type'], null, $validQueryTypes); ?> | |
</fieldset> | |
<?php if($validRecordTypes): ?> | |
<fieldset id="record-types"> |
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
<form id="search-form" name="search-form" method="get" action="/~knguyen/omeka/admin/search"> | |
<input type="text" name="query" id="query" value=""> | |
<fieldset id="advanced-form"> | |
<fieldset id="query-types"> | |
<p>Search using this query type:</p> | |
<label><input type="radio" name="query_type" id="query_type-full_text" value="full_text" checked="checked">Full text</label><br> | |
<label><input type="radio" name="query_type" id="query_type-boolean" value="boolean">Boolean</label><br> | |
<label><input type="radio" name="query_type" id="query_type-exact_match" value="exact_match">Exact match</label> | |
</fieldset> | |
<fieldset id="record-types"> |
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
<style> | |
quick-filter-wrapper { | |
height: 25px; | |
background: #e2e2e2; /* Fallback */ | |
background: url('../images/dropdown-arrow.png') no-repeat right center; /* Fallback */ | |
background: url('../images/dropdown-arrow.png') no-repeat right center, linear-gradient(top, #f8f8f8, #e2e2e2); | |
background: url('../images/dropdown-arrow.png') no-repeat right center, -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#e2e2e2)); | |
background: url('../images/dropdown-arrow.png') no-repeat right center, -webkit-linear-gradient(top, #f8f8f8, #e2e2e2); | |
background: url('../images/dropdown-arrow.png') no-repeat right center, -moz-linear-gradient(top, #f8f8f8, #e2e2e2); |
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 | |
/* | |
Template Name: Archived Table of Contents | |
*/ | |
?> | |
<?php get_header(); ?> | |
<div class="front-page twelve columns offset-by-two omega"> |
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
<li>Time Period | |
<?php | |
$db = get_db(); | |
$timePeriodId = $db->getTable('Element')->findByElementSetNameAndElementName('Item Type Metadata', 'Time Period')->id; | |
$timePeriodTexts = explode("\n", $db->getTable('SimpleVocabTerm')->findByElementId($timePeriodId)->terms); | |
if($timePeriodTexts) { | |
echo '<ul class="sub-menu">'; | |
foreach($timePeriodTexts as $timePeriodText) { | |
echo '<li>' . bc_link_to_items_with_element_text($timePeriodText, array(), 'browse', $timePeriodId, $timePeriodText) . '</li>'; | |
} |
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
function bc_link_to_items_with_element_text($text = null, $props = array(), $action = 'browse', $elementId = null, $elementText = null) { | |
$queryParams = array(); | |
$queryParams['advanced']['element_id'] = $elementId; | |
$queryParams['advanced']['type'] = 'contains'; | |
$queryParams['advanced']['terms'] = $elementText; | |
if ($text === null) { | |
$text = $elementText; | |
} | |
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 if($multiItems = multicollections_get_items_in_collection(10, 'Book')): | |
foreach($multiItems as $multiItem) { | |
if($fullsizeHtml = item_fullsize(array('class' => 'theme-book-cover', 'alt' => item('Dublin Core','Title')))) { | |
echo '<div class="theme-book">'; | |
echo '<a href="'.item('permalink').'">'.$fullsizeHtml.'</a>'; | |
echo '<p class="theme-book-meta three columns omega"><span class="theme-book-title">'.link_to_item().'</span><br><span class="theme-book-author">by '.item('Dublin Core','Creator').'</span></p>'; | |
echo '</div>'; | |
} | |
} | |
endif; |
NewerOlder