This gist is just a quick reminder for myself of how to install Font Awesome into Ole Fredrik's FoundationPress.
bower install font-awesome --save
| <?php | |
| function cptui_register_my_taxes_region() { | |
| /** | |
| * Taxonomy: Regions. | |
| */ | |
| $labels = array( | |
| "name" => __( "Regions", "twentyseventeen" ), | |
| "singular_name" => __( "Region", "twentyseventeen" ), |
| function isValidDate(value, userFormat) { | |
| // Set default format if format is not provided | |
| userFormat = userFormat || 'mm/dd/yyyy'; | |
| // Find custom delimiter by excluding the | |
| // month, day and year characters | |
| var delimiter = /[^mdy]/.exec(userFormat)[0]; | |
| // Create an array with month, day and year |
| export const DAYS_IN_MONTH = [null, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
| function daysInMonth(year, month) { | |
| // isValidDate checked that year and month are integers already. | |
| // February of leap years. Assumes that the Gregorian calendar extends | |
| // infinitely in the future and in the past. | |
| if (month === 2 && (year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0))) { | |
| return 29 | |
| } |
| jQuery(document).ready(function($) { | |
| // If a copy clickable input is clicked | |
| // input value will be highlighted and copied to clipboard | |
| $('body').on('click', 'input.js-click-to-copy-input', function(e) { | |
| copy_input( this ); | |
| }); | |
| // If a button to copy an input is clicked | |
| // associated input value will be highlighted and copied to clipboard | |
| $('body').on('click', 'a.js-click-to-copy-link', function(e) { |
This gist is just a quick reminder for myself of how to install Font Awesome into Ole Fredrik's FoundationPress.
bower install font-awesome --save
This gist is just a quick reminder for myself of how to install Ken Wheeler's Slick into Ole Fredrik's FoundationPress.
bower install --save slick-carousel
| <div class="meta"> | |
| <div id="copy"> | |
| <div class="wrapper"> | |
| <span class="wrap">Copyright ©<?php echo date("Y"); ?></span> | |
| <span class="space">‐</span> | |
| <span class="wrap"><?php bloginfo( 'name' ); ?></span> | |
| <span class="space">‐</span> | |
| <span class="wrap">All Rights Reserved</span> | |
| </div><!-- @end .wrapper --> | |
| </div><!-- @end #copy --> |
The library can be installed from here [https://github.com/dimsemenov/Magnific-Popup].
via Bower bower install magnific-popup --save
| // Header fixed positioning and animation | |
| header.site-header.fixed { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right:0; | |
| transition: all 0.3s; | |
| transform: translateY(0); | |
| opacity: 0; | |
| $animation: move-down-fixed-header ease-in 0.3s normal forwards; |