This file contains 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 | |
/** | |
* Create ACF options page under custom post type menu | |
* | |
* @since 1.0.0 | |
*/ | |
if ( function_exists( 'acf_add_options_sub_page' ) ){ | |
acf_add_options_sub_page(array( | |
'title' => 'Event Settings', | |
'parent' => 'edit.php?post_type=events', |
This file contains 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
/* | |
* Copyright (C) 2007 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
!window.requestAnimationFrame && (window.requestAnimationFrame = null) | |
!window.cancelAnimationFrame && (window.cancelAnimationFrame = null) |
This file contains 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
/** | |
* jQuery.reduce - a jQuery plugin for functional programming | |
* @author Alex Batalov, John Hunter | |
* use: $('.elements').reduce(function(memo){return memo + $(this).height()}, 0); | |
* fnReduce is called with arguments: [valueInitial, value, i, arr] | |
* | |
* created 2010-09-17 | |
* modiffied 2013-12-09 | |
*/ |