The library can be installed from here [https://github.com/dimsemenov/Magnific-Popup].
via Bower bower install magnific-popup --save
| <?php | |
| /* | |
| * WordPress: Page Post Screen Columns | |
| * | |
| * To add a custom column for pages, hook the manage_pages_columns filter. | |
| */ | |
| define("SHOW_ICON", true); | |
| if (SHOW_ICON) { | |
| /* |
| // 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; |
The library can be installed from here [https://github.com/dimsemenov/Magnific-Popup].
via Bower bower install magnific-popup --save
| <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 --> |
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
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
| 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) { |
| 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 | |
| } |
| 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 |