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 | |
/** | |
* Show Item Metadata function that loops through an internal array of labels | |
* and their associated fields. | |
* | |
* @param Item|null $item | |
* @return string The HTML for the item metadata. | |
*/ | |
function berlin_show_item_metadata($item = null) |
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 | |
add_filter(array('ElementForm', 'Item', 'Dublin Core', 'Title'), 'remove_form_item_title'); | |
function remove_form_item_title($components, $args) { | |
$components['html'] = ''; // Set the html component to an empty string. | |
return $components; | |
} |
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
#search-form { | |
position:relative; | |
@include trailer(1); | |
input { | |
margin:0; | |
&[type=text] { | |
color: #555; | |
width:100%; | |
border: 0; |
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
/** | |
* Show or hide the button depending on the scroll position. | |
*/ | |
function animateButton() { | |
var button = $('#back-to-top'); | |
var scrollPosition = $(window).scrollTop(); | |
if (scrollPosition > 400) { | |
button.fadeIn(); | |
} else { | |
button.fadeOut(); |
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 if ($collection = get_collection_by_id(@$_GET['collection'])) { | |
echo $collection->name; | |
echo $collection->description; | |
} ?> |
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 | |
$string = '$(document).ready(function() {projekktor(".projekktor").setFile(' . $playlist . ');});'; | |
queue_js_string($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
<meta name="viewport" content="width=device-width"> |
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 | |
/** | |
* Unset elements if there is not current authenticated user. | |
*/ | |
function filter_elements($elementsBySet) { | |
/* An array of elements in sets to be hidden from non-authenticated users. */ | |
$hiddenElements = array( | |
'Dublin Core' => array( |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>CSS Practice</title> | |
<style type="text/css"> | |
</style> | |
</head> | |
<body> | |
<h1>CSS Practice</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
#map { height: 500px; } | |
</style> | |
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAzygx7txI_uXKJX1JD_czX7iH8BGRubI0&sensor=false"> | |
</script> |