Forked from Chris Coyier's Pen Guest Post on CSS-Tricks.
A Pen by Scott Fennell on CodePen.
<?php | |
/** | |
* Return the EXIF date for a jpeg attachment post. | |
* | |
* @return string The Exif time on which the image was taken. | |
*/ | |
function sjf_deh_get_exif_date() { | |
// Grab the current post. |
<?php | |
/** | |
* Hooks onto an attachment post just after it's created and alters the post date to reflect the EXIF time. | |
* | |
* @param int $attachment_ID The ID of the post we're altering. | |
* @return int The ID of the post we're altering. | |
*/ | |
function sjf_deh_exif_add( $attachment_ID ) { | |
<a class="screen-reader-text skip-link" href="#loop"><?php _e( 'Skip to content', 'anchorage' ); ?></a> |
/* Assistive text */ | |
.screen-reader-text { | |
position: absolute; | |
font-size: 0; | |
opacity: 0; | |
z-index: -1; | |
} | |
.screen-reader-text:active, | |
.screen-reader-text:focus { |
<?php | |
/** | |
* Output JS to smooth scroll internal links | |
*/ | |
function anchorage_smooth_scroll() { | |
?> | |
<script> | |
// Once the document is ready... |
<?php | |
/** | |
* Establish a routine of tasks to perform when this plugin is updated. | |
* | |
* @package WordPress | |
* @subpackage sjf-et | |
* @since SJF ET 1.5.5 | |
*/ |
<?php | |
/** | |
* Grab the transient key for a request. | |
* | |
* @param string $request_url The url for an http request to ecwid. | |
* @return string The transient key for an http request to ecwid. | |
*/ | |
public function get_transient_key( $request_url ) { |
Forked from Chris Coyier's Pen Guest Post on CSS-Tricks.
A Pen by Scott Fennell on CodePen.