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 | |
| /** | |
| * Converts the advanced search output into acceptable input for findBy(). | |
| * | |
| * @see Omeka_Db_Table::findBy() | |
| * @param array $query HTTP query string array | |
| * @return array Array of findBy() parameters | |
| */ | |
| function neatlinetime_convert_search_filters($query) { |
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> |
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
| <?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
| <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 | |
| $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
| <?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
| /** | |
| * 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
| #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
| <?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; | |
| } |