├── .gitignore ├── 404.php ├── README.md ├── archive.php ├── assets ├── images │ ├── apple-icon-touch.png │ ├── login-logo.png │ └── win8-tile-icon.png ├── scripts │ └── scripts.js └── styles │ ├── login.css │ └── style.css ├── comments.php ├── favicon.png ├── footer.php ├── foundation-sites ├── LICENSE └── dist │ ├── css │ ├── foundation-float.css │ ├── foundation-float.css.map │ ├── foundation-float.min.css │ ├── foundation-float.min.css.map │ ├── foundation-prototype.css │ ├── foundation-prototype.css.map │ ├── foundation-prototype.min.css │ ├── foundation-prototype.min.css.map │ ├── foundation-rtl.css │ ├── foundation-rtl.css.map │ ├── foundation-rtl.min.css │ ├── foundation-rtl.min.css.map │ ├── foundation.css │ ├── foundation.css.map │ ├── foundation.min.css │ └── foundation.min.css.map │ └── js │ ├── foundation.cjs.js │ ├── foundation.cjs.js.map │ ├── foundation.d.ts │ ├── foundation.es6.js │ ├── foundation.es6.js.map │ ├── foundation.esm.js │ ├── foundation.esm.js.map │ ├── foundation.js │ ├── foundation.js.map │ ├── foundation.min.js │ ├── foundation.min.js.map │ └── plugins │ ├── foundation.abide.js │ ├── foundation.abide.js.map │ ├── foundation.abide.min.js │ ├── foundation.abide.min.js.map │ ├── foundation.accordion.js │ ├── foundation.accordion.js.map │ ├── foundation.accordion.min.js │ ├── foundation.accordion.min.js.map │ ├── foundation.accordionMenu.js │ ├── foundation.accordionMenu.js.map │ ├── foundation.accordionMenu.min.js │ ├── foundation.accordionMenu.min.js.map │ ├── foundation.core.js │ ├── foundation.core.js.map │ ├── foundation.core.min.js │ ├── foundation.core.min.js.map │ ├── foundation.drilldown.js │ ├── foundation.drilldown.js.map │ ├── foundation.drilldown.min.js │ ├── foundation.drilldown.min.js.map │ ├── foundation.dropdown.js │ ├── foundation.dropdown.js.map │ ├── foundation.dropdown.min.js │ ├── foundation.dropdown.min.js.map │ ├── foundation.dropdownMenu.js │ ├── foundation.dropdownMenu.js.map │ ├── foundation.dropdownMenu.min.js │ ├── foundation.dropdownMenu.min.js.map │ ├── foundation.equalizer.js │ ├── foundation.equalizer.js.map │ ├── foundation.equalizer.min.js │ ├── foundation.equalizer.min.js.map │ ├── foundation.interchange.js │ ├── foundation.interchange.js.map │ ├── foundation.interchange.min.js │ ├── foundation.interchange.min.js.map │ ├── foundation.magellan.js │ ├── foundation.magellan.js.map │ ├── foundation.magellan.min.js │ ├── foundation.magellan.min.js.map │ ├── foundation.offcanvas.js │ ├── foundation.offcanvas.js.map │ ├── foundation.offcanvas.min.js │ ├── foundation.offcanvas.min.js.map │ ├── foundation.orbit.js │ ├── foundation.orbit.js.map │ ├── foundation.orbit.min.js │ ├── foundation.orbit.min.js.map │ ├── foundation.responsiveAccordionTabs.js │ ├── foundation.responsiveAccordionTabs.js.map │ ├── foundation.responsiveAccordionTabs.min.js │ ├── foundation.responsiveAccordionTabs.min.js.map │ ├── foundation.responsiveMenu.js │ ├── foundation.responsiveMenu.js.map │ ├── foundation.responsiveMenu.min.js │ ├── foundation.responsiveMenu.min.js.map │ ├── foundation.responsiveToggle.js │ ├── foundation.responsiveToggle.js.map │ ├── foundation.responsiveToggle.min.js │ ├── foundation.responsiveToggle.min.js.map │ ├── foundation.reveal.js │ ├── foundation.reveal.js.map │ ├── foundation.reveal.min.js │ ├── foundation.reveal.min.js.map │ ├── foundation.slider.js │ ├── foundation.slider.js.map │ ├── foundation.slider.min.js │ ├── foundation.slider.min.js.map │ ├── foundation.smoothScroll.js │ ├── foundation.smoothScroll.js.map │ ├── foundation.smoothScroll.min.js │ ├── foundation.smoothScroll.min.js.map │ ├── foundation.sticky.js │ ├── foundation.sticky.js.map │ ├── foundation.sticky.min.js │ ├── foundation.sticky.min.js.map │ ├── foundation.tabs.js │ ├── foundation.tabs.js.map │ ├── foundation.tabs.min.js │ ├── foundation.tabs.min.js.map │ ├── foundation.toggler.js │ ├── foundation.toggler.js.map │ ├── foundation.toggler.min.js │ ├── foundation.toggler.min.js.map │ ├── foundation.tooltip.js │ ├── foundation.tooltip.js.map │ ├── foundation.tooltip.min.js │ ├── foundation.tooltip.min.js.map │ ├── foundation.util.box.js │ ├── foundation.util.box.js.map │ ├── foundation.util.box.min.js │ ├── foundation.util.box.min.js.map │ ├── foundation.util.imageLoader.js │ ├── foundation.util.imageLoader.js.map │ ├── foundation.util.imageLoader.min.js │ ├── foundation.util.imageLoader.min.js.map │ ├── foundation.util.keyboard.js │ ├── foundation.util.keyboard.js.map │ ├── foundation.util.keyboard.min.js │ ├── foundation.util.keyboard.min.js.map │ ├── foundation.util.mediaQuery.js │ ├── foundation.util.mediaQuery.js.map │ ├── foundation.util.mediaQuery.min.js │ ├── foundation.util.mediaQuery.min.js.map │ ├── foundation.util.motion.js │ ├── foundation.util.motion.js.map │ ├── foundation.util.motion.min.js │ ├── foundation.util.motion.min.js.map │ ├── foundation.util.nest.js │ ├── foundation.util.nest.js.map │ ├── foundation.util.nest.min.js │ ├── foundation.util.nest.min.js.map │ ├── foundation.util.timer.js │ ├── foundation.util.timer.js.map │ ├── foundation.util.timer.min.js │ ├── foundation.util.timer.min.js.map │ ├── foundation.util.touch.js │ ├── foundation.util.touch.js.map │ ├── foundation.util.touch.min.js │ ├── foundation.util.touch.min.js.map │ ├── foundation.util.triggers.js │ ├── foundation.util.triggers.js.map │ ├── foundation.util.triggers.min.js │ └── foundation.util.triggers.min.js.map ├── functions.php ├── functions ├── admin.php ├── cleanup.php ├── comments.php ├── custom-post-type.php ├── disable-emoji.php ├── editor-styles.php ├── enqueue-scripts.php ├── login.php ├── menu.php ├── page-navi.php ├── related-posts.php ├── sidebar.php ├── theme-support.php └── translation │ ├── README │ ├── da_DK.po │ ├── de_DE.mo │ ├── de_DE.po │ ├── default.mo │ ├── default.po │ ├── es_ES.mo │ ├── es_ES.po │ ├── fr_FR.mo │ ├── fr_FR.po │ ├── he_IL.mo │ ├── he_IL.po │ ├── hr.mo │ ├── hr.po │ ├── it_IT.mo │ ├── it_IT.po │ ├── nl_NL.mo │ ├── nl_NL.po │ ├── pl_PL.mo │ ├── pl_PL.po │ ├── pt_BR.mo │ ├── pt_PT.mo │ ├── pt_PT.po │ ├── ru_RU.mo │ ├── ru_RU.po │ ├── sv_SE.mo │ ├── sv_SE.po │ ├── translation.php │ ├── zh_CN.mo │ └── zh_CN.po ├── header.php ├── index.php ├── page.php ├── parts ├── content-byline.php ├── content-missing.php ├── content-offcanvas.php ├── loop-archive-grid.php ├── loop-archive.php ├── loop-page.php ├── loop-single.php ├── nav-offcanvas-topbar.php ├── nav-offcanvas.php ├── nav-title-bar.php └── nav-topbar.php ├── screenshot.png ├── search.php ├── searchform.php ├── sidebar.php ├── single.php ├── style.css └── template-full-width.php /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | assets/scss/.sass-cache/* 3 | node_modules/ 4 | bower_components/ -------------------------------------------------------------------------------- /404.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 | 12 |
13 | 14 |
15 | 16 |
17 | 18 |
19 |

20 |
21 | 22 |
23 |

24 |
25 | 26 | 29 | 30 |
31 | 32 |
33 | 34 |
35 | 36 |
37 | 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Currently using Foundation 6.5.3. -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 | 12 |
13 | 14 |
15 | 16 |
17 |

18 | ', '
');?> 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /assets/images/apple-icon-touch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JeremyEnglert/JointsWP-CSS/8f7b61063f6e5aad77fbcf68f8387905b5e4d750/assets/images/apple-icon-touch.png -------------------------------------------------------------------------------- /assets/images/login-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JeremyEnglert/JointsWP-CSS/8f7b61063f6e5aad77fbcf68f8387905b5e4d750/assets/images/login-logo.png -------------------------------------------------------------------------------- /assets/images/win8-tile-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JeremyEnglert/JointsWP-CSS/8f7b61063f6e5aad77fbcf68f8387905b5e4d750/assets/images/win8-tile-icon.png -------------------------------------------------------------------------------- /assets/scripts/scripts.js: -------------------------------------------------------------------------------- 1 | jQuery(document).foundation(); 2 | /* 3 | These functions make sure WordPress 4 | and Foundation play nice together. 5 | */ 6 | jQuery(document).ready(function(){// Remove empty P tags created by WP inside of Accordion and Orbit 7 | jQuery('.accordion p:empty, .orbit p:empty').remove();// Adds Flex Video to YouTube and Vimeo Embeds 8 | jQuery('iframe[src*="youtube.com"], iframe[src*="vimeo.com"]').each(function(){if(jQuery(this).innerWidth()/jQuery(this).innerHeight()>1.5){jQuery(this).wrap("
");}else{jQuery(this).wrap("
");}});}); 9 | 10 | /* 11 | Insert Custom JS Below 12 | */ -------------------------------------------------------------------------------- /assets/styles/login.css: -------------------------------------------------------------------------------- 1 | .login h1 a{ 2 | background:url(../images/login-logo.png) no-repeat top; 3 | width:326px; 4 | height:67px; 5 | text-indent:-9999px; 6 | overflow:hidden; 7 | padding-bottom:15px; 8 | display:block 9 | } -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | 16 | 17 | 18 |

19 | ' . get_the_title() . '' 24 | ); 25 | ?> 26 |

27 | 28 | 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 29 | 38 | 39 | 40 |
    41 | 42 |
43 | 44 | 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 45 | 54 | 55 | 56 | 57 | 58 | 62 |

63 | 64 | 65 | 'button')); ?> 66 | 67 |
-------------------------------------------------------------------------------- /favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JeremyEnglert/JointsWP-CSS/8f7b61063f6e5aad77fbcf68f8387905b5e4d750/favicon.png -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 26 | 27 |
28 | 29 |
30 | 31 |
32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /foundation-sites/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2017 ZURB, inc. 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.accordion.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./foundation.core"),require("./foundation.util.keyboard"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","./foundation.util.keyboard","jquery"],t):"object"==typeof exports?exports["foundation.accordion"]=t(require("./foundation.core"),require("./foundation.util.keyboard"),require("jquery")):(e.__FOUNDATION_EXTERNAL__=e.__FOUNDATION_EXTERNAL__||{},e.__FOUNDATION_EXTERNAL__["foundation.accordion"]=t(e.__FOUNDATION_EXTERNAL__["foundation.core"],e.__FOUNDATION_EXTERNAL__["foundation.util.keyboard"],e.jQuery))}(window,function(n,o,i){return function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}({"./foundation.core":function(e,t){e.exports=n},"./foundation.util.keyboard":function(e,t){e.exports=o},"./js/entries/plugins/foundation.accordion.js":function(e,t,n){"use strict";n.r(t);var o=n("./foundation.core");n.d(t,"Foundation",function(){return o.Foundation});var i=n("./js/foundation.accordion.js");n.d(t,"Accordion",function(){return i.Accordion}),o.Foundation.plugin(i.Accordion,"Accordion")},"./js/foundation.accordion.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Accordion",function(){return f});var o=n("jquery"),r=n.n(o),c=n("./foundation.core"),a=n("./foundation.util.keyboard");function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n');u.options.submenuToggle?(n.addClass("has-submenu-toggle"),n.children("a").after('")):n.attr({"aria-controls":i,"aria-expanded":o,id:e}),t.attr({"aria-labelledby":e,"aria-hidden":!o,role:"group",id:i})}),this.$element.find("li").attr({role:"treeitem"});var e=this.$element.find(".is-active");if(e.length){u=this;e.each(function(){u.down(a()(this))})}this._events()}},{key:"_events",value:function(){var r=this;this.$element.find("li").each(function(){var n=a()(this).children("[data-submenu]");n.length&&(r.options.submenuToggle?a()(this).children(".submenu-toggle").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(e){r.toggle(n)}):a()(this).children("a").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(e){e.preventDefault(),r.toggle(n)}))}).on("keydown.zf.accordionmenu",function(n){var t,i,o=a()(this),u=o.parent("ul").children("li"),e=o.children("[data-submenu]");u.each(function(e){if(a()(this).is(o))return t=u.eq(Math.max(0,e-1)).find("a").first(),i=u.eq(Math.min(e+1,u.length-1)).find("a").first(),a()(this).children("[data-submenu]:visible").length&&(i=o.find("li:first-child").find("a").first()),a()(this).is(":first-child")?t=o.parents("li").first().find("a").first():t.parents("li").first().children("[data-submenu]:visible").length&&(t=t.parents("li").find("li:last-child").find("a").first()),void(a()(this).is(":last-child")&&(i=o.parents("li").first().next("li").find("a").first()))}),s.Keyboard.handleKey(n,"AccordionMenu",{open:function(){e.is(":hidden")&&(r.down(e),e.find("li").first().find("a").first().focus())},close:function(){e.length&&!e.is(":hidden")?r.up(e):o.parent("[data-submenu]").length&&(r.up(o.parent("[data-submenu]")),o.parents("li").first().find("a").first().focus())},up:function(){return t.focus(),!0},down:function(){return i.focus(),!0},toggle:function(){return!r.options.submenuToggle&&(o.children("[data-submenu]").length?(r.toggle(o.children("[data-submenu]")),!0):void 0)},closeAll:function(){r.hideAll()},handled:function(e){e&&n.preventDefault(),n.stopImmediatePropagation()}})})}},{key:"hideAll",value:function(){this.up(this.$element.find("[data-submenu]"))}},{key:"showAll",value:function(){this.down(this.$element.find("[data-submenu]"))}},{key:"toggle",value:function(e){e.is(":animated")||(e.is(":hidden")?this.down(e):this.up(e))}},{key:"down",value:function(e){var n=this;if(!this.options.multiOpen){var t=e.parentsUntil(this.$element).add(e).add(e.find(".is-active")),i=this.$element.find(".is-active").not(t);this.up(i)}e.addClass("is-active").attr({"aria-hidden":!1}),this.options.submenuToggle?e.prev(".submenu-toggle").attr({"aria-expanded":!0}):e.parent(".is-accordion-submenu-parent").attr({"aria-expanded":!0}),e.slideDown(this.options.slideSpeed,function(){n.$element.trigger("down.zf.accordionMenu",[e])})}},{key:"up",value:function(e){var n=this,t=e.find("[data-submenu]"),i=e.add(t);t.slideUp(0),i.removeClass("is-active").attr("aria-hidden",!0),this.options.submenuToggle?i.prev(".submenu-toggle").attr("aria-expanded",!1):i.parent(".is-accordion-submenu-parent").attr("aria-expanded",!1),e.slideUp(this.options.slideSpeed,function(){n.$element.trigger("up.zf.accordionMenu",[e])})}},{key:"_destroy",value:function(){this.$element.find("[data-submenu]").slideDown(0).css("display",""),this.$element.find("a").off("click.zf.accordionMenu"),this.$element.find("[data-is-parent-link]").detach(),this.options.submenuToggle&&(this.$element.find(".has-submenu-toggle").removeClass("has-submenu-toggle"),this.$element.find(".submenu-toggle").remove()),r.Nest.Burn(this.$element,"accordion")}}])&&u(n.prototype,i),o&&u(n,o),t}();p.defaults={parentLink:!1,slideSpeed:250,submenuToggle:!1,submenuToggleText:"Toggle menu",multiOpen:!0}},2:function(e,n,t){e.exports=t("./js/entries/plugins/foundation.accordionMenu.js")},jquery:function(e,n){e.exports=u}})}); 2 | //# sourceMappingURL=foundation.accordionMenu.min.js.map 3 | -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.equalizer.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./foundation.core"),require("./foundation.util.imageLoader"),require("./foundation.util.mediaQuery"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","./foundation.util.imageLoader","./foundation.util.mediaQuery","jquery"],t):"object"==typeof exports?exports["foundation.equalizer"]=t(require("./foundation.core"),require("./foundation.util.imageLoader"),require("./foundation.util.mediaQuery"),require("jquery")):(e.__FOUNDATION_EXTERNAL__=e.__FOUNDATION_EXTERNAL__||{},e.__FOUNDATION_EXTERNAL__["foundation.equalizer"]=t(e.__FOUNDATION_EXTERNAL__["foundation.core"],e.__FOUNDATION_EXTERNAL__["foundation.util.imageLoader"],e.__FOUNDATION_EXTERNAL__["foundation.util.mediaQuery"],e.jQuery))}(window,function(i,n,o,r){return function(i){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=i,o.c=n,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=6)}({"./foundation.core":function(e,t){e.exports=i},"./foundation.util.imageLoader":function(e,t){e.exports=n},"./foundation.util.mediaQuery":function(e,t){e.exports=o},"./js/entries/plugins/foundation.equalizer.js":function(e,t,i){"use strict";i.r(t);var n=i("./foundation.core");i.d(t,"Foundation",function(){return n.Foundation});var o=i("./js/foundation.equalizer.js");i.d(t,"Equalizer",function(){return o.Equalizer}),n.Foundation.plugin(o.Equalizer,"Equalizer")},"./js/foundation.equalizer.js":function(e,t,i){"use strict";i.r(t),i.d(t,"Equalizer",function(){return c});var n=i("jquery"),h=i.n(n),r=i("./foundation.util.mediaQuery"),u=i("./foundation.util.imageLoader"),a=i("./foundation.core");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;io;if((this.scrollPos=o)"),o=new e.plugin(n,this.options);for(var i in o.options)if(o.options.hasOwnProperty(i)&&"zfPlugin"!==i){var r=o.options[i];this.allOptions[i]=r}o.destroy()}catch(t){}}}},{key:"_events",value:function(){this._changedZfMediaQueryHandler=this._checkMediaQueries.bind(this),l()(window).on("changed.zf.mediaquery",this._changedZfMediaQueryHandler)}},{key:"_checkMediaQueries",value:function(){var e,n=this;l.a.each(this.rules,function(t){a.MediaQuery.atLeast(t)&&(e=t)}),e&&(this.currentPlugin instanceof this.rules[e].plugin||(l.a.each(h,function(t,e){n.$element.removeClass(e.cssClass)}),this.$element.addClass(this.rules[e].cssClass),this.currentPlugin&&(!this.currentPlugin.$element.data("zfPlugin")&&this.storezfData&&this.currentPlugin.$element.data("zfPlugin",this.storezfData),this.currentPlugin.destroy()),this._handleMarkup(this.rules[e].cssClass),this.currentPlugin=new this.rules[e].plugin(this.$element,{}),this.storezfData=this.currentPlugin.$element.data("zfPlugin")))}},{key:"_handleMarkup",value:function(t){var n=this,e="accordion",o=l()("[data-tabs-content="+this.$element.attr("id")+"]");if(o.length&&(e="tabs"),e!==t){var i=n.allOptions.linkClass?n.allOptions.linkClass:"tabs-title",r=n.allOptions.panelClass?n.allOptions.panelClass:"tabs-panel";this.$element.removeAttr("role");var a=this.$element.children("."+i+",[data-accordion-item]").removeClass(i).removeClass("accordion-item").removeAttr("data-accordion-item"),s=a.children("a").removeClass("accordion-title");if("tabs"===e?(o=o.children("."+r).removeClass(r).removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby")).children("a").removeAttr("role").removeAttr("aria-controls").removeAttr("aria-selected"):o=a.children("[data-tab-content]").removeClass("accordion-content"),o.css({display:"",visibility:""}),a.css({display:"",visibility:""}),"accordion"===t)o.each(function(t,e){l()(e).appendTo(a.get(t)).addClass("accordion-content").attr("data-tab-content","").removeClass("is-active").css({height:""}),l()("[data-tabs-content="+n.$element.attr("id")+"]").after('
').detach(),a.addClass("accordion-item").attr("data-accordion-item",""),s.addClass("accordion-title")});else if("tabs"===t){var u=l()("[data-tabs-content="+n.$element.attr("id")+"]"),c=l()("#tabs-placeholder-"+n.$element.attr("id"));c.length?(u=l()('
').insertAfter(c).attr("data-tabs-content",n.$element.attr("id")),c.remove()):u=l()('
').insertAfter(n.$element).attr("data-tabs-content",n.$element.attr("id")),o.each(function(t,e){var n=l()(e).appendTo(u).addClass(r),o=s.get(t).hash.slice(1),i=l()(e).attr("id")||Object(d.GetYoDigits)(6,"accordion");o!==i&&(""!==o?l()(e).attr("id",o):(o=i,l()(e).attr("id",o),l()(s.get(t)).attr("href",l()(s.get(t)).attr("href").replace("#","")+"#"+o))),l()(a.get(t)).hasClass("is-active")&&n.addClass("is-active")}),a.addClass(i)}}}},{key:"_destroy",value:function(){this.currentPlugin&&this.currentPlugin.destroy(),l()(window).off("changed.zf.mediaquery",this._changedZfMediaQueryHandler)}}])&&u(n.prototype,o),i&&u(n,i),e}();b.defaults={}},11:function(t,e,n){t.exports=n("./js/entries/plugins/foundation.responsiveAccordionTabs.js")},jquery:function(t,e){t.exports=a}})}); 2 | //# sourceMappingURL=foundation.responsiveAccordionTabs.min.js.map 3 | -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.responsiveMenu.min.js: -------------------------------------------------------------------------------- 1 | !function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("./foundation.accordionMenu"),require("./foundation.core"),require("./foundation.drilldown"),require("./foundation.dropdownMenu"),require("./foundation.util.mediaQuery"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.accordionMenu","./foundation.core","./foundation.drilldown","./foundation.dropdownMenu","./foundation.util.mediaQuery","jquery"],e):"object"==typeof exports?exports["foundation.responsiveMenu"]=e(require("./foundation.accordionMenu"),require("./foundation.core"),require("./foundation.drilldown"),require("./foundation.dropdownMenu"),require("./foundation.util.mediaQuery"),require("jquery")):(n.__FOUNDATION_EXTERNAL__=n.__FOUNDATION_EXTERNAL__||{},n.__FOUNDATION_EXTERNAL__["foundation.responsiveMenu"]=e(n.__FOUNDATION_EXTERNAL__["foundation.accordionMenu"],n.__FOUNDATION_EXTERNAL__["foundation.core"],n.__FOUNDATION_EXTERNAL__["foundation.drilldown"],n.__FOUNDATION_EXTERNAL__["foundation.dropdownMenu"],n.__FOUNDATION_EXTERNAL__["foundation.util.mediaQuery"],n.jQuery))}(window,function(t,o,r,i,u,s){return function(t){var o={};function r(n){if(o[n])return o[n].exports;var e=o[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=t,r.c=o,r.d=function(n,e,t){r.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(e,"a",e),e},r.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r.p="",r(r.s=12)}({"./foundation.accordionMenu":function(n,e){n.exports=t},"./foundation.core":function(n,e){n.exports=o},"./foundation.drilldown":function(n,e){n.exports=r},"./foundation.dropdownMenu":function(n,e){n.exports=i},"./foundation.util.mediaQuery":function(n,e){n.exports=u},"./js/entries/plugins/foundation.responsiveMenu.js":function(n,e,t){"use strict";t.r(e);var o=t("./foundation.core");t.d(e,"Foundation",function(){return o.Foundation});var r=t("./js/foundation.responsiveMenu.js");t.d(e,"ResponsiveMenu",function(){return r.ResponsiveMenu}),o.Foundation.plugin(r.ResponsiveMenu,"ResponsiveMenu")},"./js/foundation.responsiveMenu.js":function(n,e,t){"use strict";t.r(e),t.d(e,"ResponsiveMenu",function(){return h});var o=t("jquery"),u=t.n(o),s=t("./foundation.util.mediaQuery"),a=t("./foundation.core"),r=t("./foundation.dropdownMenu"),i=t("./foundation.drilldown"),f=t("./foundation.accordionMenu");function c(n){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function d(n,e){for(var t=0;t').appendTo(document.head);var e,t,n,r=o()(".foundation-mq").css("font-family");for(var i in n={},e="string"==typeof(t=r)&&(t=t.trim().slice(1,-1))?n=t.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):n)e.hasOwnProperty(i)&&this.queries.push({name:i,value:"only screen and (min-width: ".concat(e[i],")")});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(e){var t=this.get(e);return!!t&&window.matchMedia(t).matches},is:function(e){return 1<(e=e.trim().split(" ")).length&&"only"===e[1]?e[0]===this._getCurrentSize():this.atLeast(e[0])},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){var n=this.queries[t];if(e===n.name)return n.value}return null},_getCurrentSize:function(){for(var e,t=0;tli, > li > ul, .menu, .menu > li, [data-submenu] > li')\n .removeClass(`${subMenuClass} ${subItemClass} ${hasSubClass} is-submenu-item submenu is-active`)\n .removeAttr('data-submenu').css('display', '');\n\n }\n}\n\nexport {Nest};\n","module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;"],"sourceRoot":""} -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.util.nest.min.js: -------------------------------------------------------------------------------- 1 | !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("./foundation.core"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","jquery"],n):"object"==typeof exports?exports["foundation.util.nest"]=n(require("./foundation.core"),require("jquery")):(e.__FOUNDATION_EXTERNAL__=e.__FOUNDATION_EXTERNAL__||{},e.__FOUNDATION_EXTERNAL__["foundation.util.nest"]=n(e.__FOUNDATION_EXTERNAL__["foundation.core"],e.jQuery))}(window,function(t,r){return function(t){var r={};function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=r,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=26)}({"./foundation.core":function(e,n){e.exports=t},"./js/entries/plugins/foundation.util.nest.js":function(e,n,t){"use strict";t.r(n);var r=t("./foundation.core");t.d(n,"Foundation",function(){return r.Foundation});var o=t("./js/foundation.util.nest.js");t.d(n,"Nest",function(){return o.Nest}),r.Foundation.Nest=o.Nest},"./js/foundation.util.nest.js":function(e,n,t){"use strict";t.r(n),t.d(n,"Nest",function(){return o});var r=t("jquery"),a=t.n(r),o={Feather:function(e){var t=1li, > li > ul, .menu, .menu > li, [data-submenu] > li").removeClass("".concat(t," ").concat(r," ").concat(o," is-submenu-item submenu is-active")).removeAttr("data-submenu").css("display","")}}},26:function(e,n,t){e.exports=t("./js/entries/plugins/foundation.util.nest.js")},jquery:function(e,n){e.exports=r}})}); 2 | //# sourceMappingURL=foundation.util.nest.min.js.map 3 | -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.util.timer.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack://__FOUNDATION_EXTERNAL__.[name]/webpack/universalModuleDefinition","webpack://__FOUNDATION_EXTERNAL__.[name]/webpack/bootstrap","webpack://__FOUNDATION_EXTERNAL__.[name]/external {\"root\":[\"__FOUNDATION_EXTERNAL__\",\"foundation.core\"],\"amd\":\"./foundation.core\",\"commonjs\":\"./foundation.core\",\"commonjs2\":\"./foundation.core\"}","webpack://__FOUNDATION_EXTERNAL__.[name]/./js/entries/plugins/foundation.util.timer.js","webpack://__FOUNDATION_EXTERNAL__.[name]/./js/foundation.util.timer.js","webpack://__FOUNDATION_EXTERNAL__.[name]/external {\"root\":[\"jQuery\"],\"amd\":\"jquery\",\"commonjs\":\"jquery\",\"commonjs2\":\"jquery\"}"],"names":["Foundation","Timer","elem","options","cb","_this","duration","nameSpace","Object","keys","data","remain","start","timer","isPaused","restart","clearTimeout","Date","now","setTimeout","infinite","trigger","pause","end"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE;AACzE,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;AClFA,8D;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAEAA,2DAAU,CAACC,KAAX,GAAmBA,4DAAnB;;;;;;;;;;;;;ACJA;AAAA;AAAA;AAAA;AAAa;;AAEb;;AAEA,SAASA,KAAT,CAAeC,IAAf,EAAqBC,OAArB,EAA8BC,EAA9B,EAAkC;AAChC,MAAIC,KAAK,GAAG,IAAZ;AAAA,MACIC,QAAQ,GAAGH,OAAO,CAACG,QADvB;AAAA,MACgC;AAC5BC,WAAS,GAAGC,MAAM,CAACC,IAAP,CAAYP,IAAI,CAACQ,IAAL,EAAZ,EAAyB,CAAzB,KAA+B,OAF/C;AAAA,MAGIC,MAAM,GAAG,CAAC,CAHd;AAAA,MAIIC,KAJJ;AAAA,MAKIC,KALJ;;AAOA,OAAKC,QAAL,GAAgB,KAAhB;;AAEA,OAAKC,OAAL,GAAe,YAAW;AACxBJ,UAAM,GAAG,CAAC,CAAV;AACAK,gBAAY,CAACH,KAAD,CAAZ;AACA,SAAKD,KAAL;AACD,GAJD;;AAMA,OAAKA,KAAL,GAAa,YAAW;AACtB,SAAKE,QAAL,GAAgB,KAAhB,CADsB,CAEtB;;AACAE,gBAAY,CAACH,KAAD,CAAZ;AACAF,UAAM,GAAGA,MAAM,IAAI,CAAV,GAAcL,QAAd,GAAyBK,MAAlC;AACAT,QAAI,CAACQ,IAAL,CAAU,QAAV,EAAoB,KAApB;AACAE,SAAK,GAAGK,IAAI,CAACC,GAAL,EAAR;AACAL,SAAK,GAAGM,UAAU,CAAC,YAAU;AAC3B,UAAGhB,OAAO,CAACiB,QAAX,EAAoB;AAClBf,aAAK,CAACU,OAAN,GADkB,CACF;;AACjB;;AACD,UAAIX,EAAE,IAAI,OAAOA,EAAP,KAAc,UAAxB,EAAoC;AAAEA,UAAE;AAAK;AAC9C,KALiB,EAKfO,MALe,CAAlB;AAMAT,QAAI,CAACmB,OAAL,yBAA8Bd,SAA9B;AACD,GAdD;;AAgBA,OAAKe,KAAL,GAAa,YAAW;AACtB,SAAKR,QAAL,GAAgB,IAAhB,CADsB,CAEtB;;AACAE,gBAAY,CAACH,KAAD,CAAZ;AACAX,QAAI,CAACQ,IAAL,CAAU,QAAV,EAAoB,IAApB;AACA,QAAIa,GAAG,GAAGN,IAAI,CAACC,GAAL,EAAV;AACAP,UAAM,GAAGA,MAAM,IAAIY,GAAG,GAAGX,KAAV,CAAf;AACAV,QAAI,CAACmB,OAAL,0BAA+Bd,SAA/B;AACD,GARD;AASD;;;;;;;;;;;;;;;;;;;;;;;;;AC7CD,oD","file":"foundation.util.timer.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"./foundation.core\"), require(\"jquery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"./foundation.core\", \"jquery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"foundation.util.timer\"] = factory(require(\"./foundation.core\"), require(\"jquery\"));\n\telse\n\t\troot[\"__FOUNDATION_EXTERNAL__\"] = root[\"__FOUNDATION_EXTERNAL__\"] || {}, root[\"__FOUNDATION_EXTERNAL__\"][\"foundation.util.timer\"] = factory(root[\"__FOUNDATION_EXTERNAL__\"][\"foundation.core\"], root[\"jQuery\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 27);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;","import { Foundation } from './foundation.core';\n\nimport { Timer } from '../../foundation.util.timer';\n\nFoundation.Timer = Timer;\n\nexport { Foundation, Timer };\n","'use strict';\n\nimport $ from 'jquery';\n\nfunction Timer(elem, options, cb) {\n var _this = this,\n duration = options.duration,//options is an object for easily adding features later.\n nameSpace = Object.keys(elem.data())[0] || 'timer',\n remain = -1,\n start,\n timer;\n\n this.isPaused = false;\n\n this.restart = function() {\n remain = -1;\n clearTimeout(timer);\n this.start();\n }\n\n this.start = function() {\n this.isPaused = false;\n // if(!elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things.\n clearTimeout(timer);\n remain = remain <= 0 ? duration : remain;\n elem.data('paused', false);\n start = Date.now();\n timer = setTimeout(function(){\n if(options.infinite){\n _this.restart();//rerun the timer.\n }\n if (cb && typeof cb === 'function') { cb(); }\n }, remain);\n elem.trigger(`timerstart.zf.${nameSpace}`);\n }\n\n this.pause = function() {\n this.isPaused = true;\n //if(elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things.\n clearTimeout(timer);\n elem.data('paused', true);\n var end = Date.now();\n remain = remain - (end - start);\n elem.trigger(`timerpaused.zf.${nameSpace}`);\n }\n}\n\nexport {Timer};\n","module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;"],"sourceRoot":""} -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.util.timer.min.js: -------------------------------------------------------------------------------- 1 | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("./foundation.core"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","jquery"],e):"object"==typeof exports?exports["foundation.util.timer"]=e(require("./foundation.core"),require("jquery")):(t.__FOUNDATION_EXTERNAL__=t.__FOUNDATION_EXTERNAL__||{},t.__FOUNDATION_EXTERNAL__["foundation.util.timer"]=e(t.__FOUNDATION_EXTERNAL__["foundation.core"],t.jQuery))}(window,function(n,r){return function(n){var r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=27)}({"./foundation.core":function(t,e){t.exports=n},"./js/entries/plugins/foundation.util.timer.js":function(t,e,n){"use strict";n.r(e);var r=n("./foundation.core");n.d(e,"Foundation",function(){return r.Foundation});var o=n("./js/foundation.util.timer.js");n.d(e,"Timer",function(){return o.Timer}),r.Foundation.Timer=o.Timer},"./js/foundation.util.timer.js":function(t,e,n){"use strict";n.r(e),n.d(e,"Timer",function(){return r});n("jquery");function r(e,t,n){var r,o,i=this,u=t.duration,a=Object.keys(e.data())[0]||"timer",f=-1;this.isPaused=!1,this.restart=function(){f=-1,clearTimeout(o),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(o),f=f<=0?u:f,e.data("paused",!1),r=Date.now(),o=setTimeout(function(){t.infinite&&i.restart(),n&&"function"==typeof n&&n()},f),e.trigger("timerstart.zf.".concat(a))},this.pause=function(){this.isPaused=!0,clearTimeout(o),e.data("paused",!0);var t=Date.now();f-=t-r,e.trigger("timerpaused.zf.".concat(a))}}},27:function(t,e,n){t.exports=n("./js/entries/plugins/foundation.util.timer.js")},jquery:function(t,e){t.exports=r}})}); 2 | //# sourceMappingURL=foundation.util.timer.min.js.map 3 | -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.util.timer.min.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack://__FOUNDATION_EXTERNAL__.[name]/webpack/universalModuleDefinition","webpack://__FOUNDATION_EXTERNAL__.[name]/webpack/bootstrap","webpack:/__FOUNDATION_EXTERNAL__.[name]/external {\"root\":[\"__FOUNDATION_EXTERNAL__\",\"foundation.core\"],\"amd\":\"./foundation.core\",\"commonjs\":\"./foundation.core\",\"commonjs2\":\"./foundation.core\"}","webpack://__FOUNDATION_EXTERNAL__.[name]/js/entries/plugins/foundation.util.timer.js","webpack://__FOUNDATION_EXTERNAL__.[name]/js/foundation.util.timer.js","webpack:/__FOUNDATION_EXTERNAL__.[name]/external {\"root\":[\"jQuery\"],\"amd\":\"jquery\",\"commonjs\":\"jquery\",\"commonjs2\":\"jquery\"}"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__foundation_core__","__WEBPACK_EXTERNAL_MODULE_jquery__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__webpack_exports__","_foundation_core__WEBPACK_IMPORTED_MODULE_0__","_foundation_util_timer__WEBPACK_IMPORTED_MODULE_1__","Foundation","Timer","elem","options","cb","start","timer","_this","this","duration","nameSpace","keys","data","remain","isPaused","restart","clearTimeout","Date","now","setTimeout","infinite","trigger","concat","pause","end"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,qBAAAA,QAAA,WACA,mBAAAC,QAAAA,OAAAC,IACAD,OAAA,CAAA,oBAAA,UAAAJ,GACA,iBAAAC,QACAA,QAAA,yBAAAD,EAAAG,QAAA,qBAAAA,QAAA,YAEAJ,EAAA,wBAAAA,EAAA,yBAAA,GAAyEA,EAAA,wBAAA,yBAAAC,EAAAD,EAAA,wBAAA,mBAAAA,EAAA,SARzE,CASCO,OAAA,SAAAC,EAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAV,QAGA,IAAAC,EAAAO,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAZ,QAAA,IAUA,OANAa,EAAAH,GAAAI,KAAAb,EAAAD,QAAAC,EAAAA,EAAAD,QAAAS,GAGAR,EAAAW,GAAA,EAGAX,EAAAD,QA0DA,OArDAS,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAjB,EAAAkB,EAAAC,GACAV,EAAAW,EAAApB,EAAAkB,IACAG,OAAAC,eAAAtB,EAAAkB,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAzB,GACA,oBAAA0B,QAAAA,OAAAC,aACAN,OAAAC,eAAAtB,EAAA0B,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAAtB,EAAA,aAAA,CAAiD4B,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,GAAA,EAAAE,GAAA,iBAAAF,GAAAA,GAAAA,EAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAFAxB,EAAAgB,EAAAO,GACAX,OAAAC,eAAAU,EAAA,UAAA,CAAyCT,YAAA,EAAAK,MAAAA,IACzC,EAAAE,GAAA,iBAAAF,EAAA,IAAA,IAAAM,KAAAN,EAAAnB,EAAAQ,EAAAe,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAvB,EAAA2B,EAAA,SAAAnC,GACA,IAAAkB,EAAAlB,GAAAA,EAAA8B,WACA,WAA2B,OAAA9B,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAQ,EAAAQ,EAAAE,EAAA,IAAAA,GACAA,GAIAV,EAAAW,EAAA,SAAAiB,EAAAC,GAAsD,OAAAjB,OAAAkB,UAAAC,eAAA1B,KAAAuB,EAAAC,IAGtD7B,EAAAgC,EAAA,GAIAhC,EAAAA,EAAAiC,EAAA,wCClFAzC,EAAAD,QAAAM,gFCAAG,EAAAgB,EAAAkB,GAAA,IAAAC,EAAAnC,EAAA,qBAAAA,EAAAQ,EAAA0B,EAAA,aAAA,WAAA,OAAAC,EAAA,aAAA,IAAAC,EAAApC,EAAA,iCAAAA,EAAAQ,EAAA0B,EAAA,QAAA,WAAA,OAAAE,EAAA,QAIAC,EAAAA,WAAWC,MAAQA,EAAAA,oECJnBtC,EAAAgB,EAAAkB,GAAAlC,EAAAQ,EAAA0B,EAAA,QAAA,WAAA,OAAAI,IAAAtC,EAAA,UAIA,SAASsC,EAAMC,EAAMC,EAASC,GAC5B,IAIIC,EACAC,EALAC,EAAQC,KACRC,EAAWN,EAAQM,SACnBC,EAAYnC,OAAOoC,KAAKT,EAAKU,QAAQ,IAAM,QAC3CC,GAAU,EAIdL,KAAKM,UAAW,EAEhBN,KAAKO,QAAU,WACbF,GAAU,EACVG,aAAaV,GACbE,KAAKH,SAGPG,KAAKH,MAAQ,WACXG,KAAKM,UAAW,EAEhBE,aAAaV,GACbO,EAASA,GAAU,EAAIJ,EAAWI,EAClCX,EAAKU,KAAK,UAAU,GACpBP,EAAQY,KAAKC,MACbZ,EAAQa,WAAW,WACdhB,EAAQiB,UACTb,EAAMQ,UAEJX,GAAoB,mBAAPA,GAAqBA,KACrCS,GACHX,EAAKmB,QAAL,iBAAAC,OAA8BZ,KAGhCF,KAAKe,MAAQ,WACXf,KAAKM,UAAW,EAEhBE,aAAaV,GACbJ,EAAKU,KAAK,UAAU,GACpB,IAAIY,EAAMP,KAAKC,MACfL,GAAmBW,EAAMnB,EACzBH,EAAKmB,QAAL,kBAAAC,OAA+BZ,6GC3CnCvD,EAAAD,QAAAO","file":"foundation.util.timer.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"./foundation.core\"), require(\"jquery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"./foundation.core\", \"jquery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"foundation.util.timer\"] = factory(require(\"./foundation.core\"), require(\"jquery\"));\n\telse\n\t\troot[\"__FOUNDATION_EXTERNAL__\"] = root[\"__FOUNDATION_EXTERNAL__\"] || {}, root[\"__FOUNDATION_EXTERNAL__\"][\"foundation.util.timer\"] = factory(root[\"__FOUNDATION_EXTERNAL__\"][\"foundation.core\"], root[\"jQuery\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 27);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;","import { Foundation } from './foundation.core';\n\nimport { Timer } from '../../foundation.util.timer';\n\nFoundation.Timer = Timer;\n\nexport { Foundation, Timer };\n","'use strict';\n\nimport $ from 'jquery';\n\nfunction Timer(elem, options, cb) {\n var _this = this,\n duration = options.duration,//options is an object for easily adding features later.\n nameSpace = Object.keys(elem.data())[0] || 'timer',\n remain = -1,\n start,\n timer;\n\n this.isPaused = false;\n\n this.restart = function() {\n remain = -1;\n clearTimeout(timer);\n this.start();\n }\n\n this.start = function() {\n this.isPaused = false;\n // if(!elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things.\n clearTimeout(timer);\n remain = remain <= 0 ? duration : remain;\n elem.data('paused', false);\n start = Date.now();\n timer = setTimeout(function(){\n if(options.infinite){\n _this.restart();//rerun the timer.\n }\n if (cb && typeof cb === 'function') { cb(); }\n }, remain);\n elem.trigger(`timerstart.zf.${nameSpace}`);\n }\n\n this.pause = function() {\n this.isPaused = true;\n //if(elem.data('paused')){ return false; }//maybe implement this sanity check if used for other things.\n clearTimeout(timer);\n elem.data('paused', true);\n var end = Date.now();\n remain = remain - (end - start);\n elem.trigger(`timerpaused.zf.${nameSpace}`);\n }\n}\n\nexport {Timer};\n","module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;"]} -------------------------------------------------------------------------------- /foundation-sites/dist/js/plugins/foundation.util.touch.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./foundation.core"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","jquery"],t):"object"==typeof exports?exports["foundation.util.touch"]=t(require("./foundation.core"),require("jquery")):(e.__FOUNDATION_EXTERNAL__=e.__FOUNDATION_EXTERNAL__||{},e.__FOUNDATION_EXTERNAL__["foundation.util.touch"]=t(e.__FOUNDATION_EXTERNAL__["foundation.core"],e.jQuery))}(window,function(n,o){return function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=28)}({"./foundation.core":function(e,t){e.exports=n},"./js/entries/plugins/foundation.util.touch.js":function(e,t,n){"use strict";n.r(t);var o=n("jquery"),i=n.n(o),u=n("./js/foundation.util.touch.js");n.d(t,"Touch",function(){return u.Touch});var r=n("./foundation.core");n.d(t,"Foundation",function(){return r.Foundation}),u.Touch.init(i.a),window.Foundation.Touch=u.Touch},"./js/foundation.util.touch.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Touch",function(){return f});var o=n("jquery"),i=n.n(o);function u(e,t){for(var n=0;n=i.a.spotSwipe.moveThreshold&&s<=i.a.spotSwipe.timeThreshold&&(t=0get_item_quantity(5); // specify number of items 33 | $items = $feed->get_items(0, $limit); // create an array of items 34 | } 35 | if ($limit == 0) echo '
' . __( 'The RSS Feed is either empty or unavailable.', 'jointswp' ) . '
'; // fallback message 36 | else foreach ($items as $item) { ?> 37 | 38 |

39 | 40 | get_title(); ?> 41 | 42 |

43 |

44 | get_description(), 0, 200); ?> 45 |

46 | Developed by Your Site Name.', 'jointswp'); 66 | } 67 | 68 | // adding it to the admin area 69 | add_filter('admin_footer_text', 'joints_custom_admin_footer'); -------------------------------------------------------------------------------- /functions/cleanup.php: -------------------------------------------------------------------------------- 1 | widgets['WP_Widget_Recent_Comments'])) { 58 | remove_action('wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style')); 59 | } 60 | } 61 | 62 | // Remove injected CSS from gallery 63 | function joints_gallery_style($css) { 64 | return preg_replace("!!s", '', $css); 65 | } 66 | 67 | // This removes the annoying […] to a Read More link 68 | function joints_excerpt_more($more) { 69 | global $post; 70 | // edit here if you like 71 | return ''. __('... Read more »', 'jointswp') .''; 72 | } 73 | 74 | // Stop WordPress from using the sticky class (which conflicts with Foundation), and style WordPress sticky posts using the .wp-sticky class instead 75 | function remove_sticky_class($classes) { 76 | if(in_array('sticky', $classes)) { 77 | $classes = array_diff($classes, array("sticky")); 78 | $classes[] = 'wp-sticky'; 79 | } 80 | 81 | return $classes; 82 | } 83 | add_filter('post_class','remove_sticky_class'); 84 | 85 | //This is a modified the_author_posts_link() which just returns the link. This is necessary to allow usage of the usual l10n process with printf() 86 | function joints_get_the_author_posts_link() { 87 | global $authordata; 88 | if ( !is_object( $authordata ) ) 89 | return false; 90 | $link = sprintf( 91 | '', 92 | get_author_posts_url( $authordata->ID, $authordata->user_nicename ), 93 | esc_attr( sprintf( __( 'Posts by %s', 'jointswp' ), get_the_author() ) ), // No further l10n needed, core will take care of this one 94 | get_the_author() 95 | ); 96 | return $link; 97 | } -------------------------------------------------------------------------------- /functions/comments.php: -------------------------------------------------------------------------------- 1 | 5 |
  • > 6 |
    7 |
    8 | 9 |
    10 |
    11 |
    12 |
    13 | 17 | on 18 | 19 | 20 |
    21 | comment_approved == '0') : ?> 22 |
    23 |

    24 |
    25 | 26 |
    27 | 28 |
    29 | $depth, 'max_depth' => $args['max_depth']))) ?> 30 |
    31 |
    32 |
    33 | 34 | array( 22 | 'name' => __('Custom Types', 'jointswp'), /* This is the Title of the Group */ 23 | 'singular_name' => __('Custom Post', 'jointswp'), /* This is the individual type */ 24 | 'all_items' => __('All Custom Posts', 'jointswp'), /* the all items menu item */ 25 | 'add_new' => __('Add New', 'jointswp'), /* The add new menu item */ 26 | 'add_new_item' => __('Add New Custom Type', 'jointswp'), /* Add New Display Title */ 27 | 'edit' => __( 'Edit', 'jointswp' ), /* Edit Dialog */ 28 | 'edit_item' => __('Edit Post Types', 'jointswp'), /* Edit Display Title */ 29 | 'new_item' => __('New Post Type', 'jointswp'), /* New Display Title */ 30 | 'view_item' => __('View Post Type', 'jointswp'), /* View Display Title */ 31 | 'search_items' => __('Search Post Type', 'jointswp'), /* Search Custom Type Title */ 32 | 'not_found' => __('Nothing found in the Database.', 'jointswp'), /* This displays if there are no entries yet */ 33 | 'not_found_in_trash' => __('Nothing found in Trash', 'jointswp'), /* This displays if there is nothing in the trash */ 34 | 'parent_item_colon' => '' 35 | ), /* end of arrays */ 36 | 'description' => __( 'This is the example custom post type', 'jointswp' ), /* Custom Type Description */ 37 | 'public' => true, 38 | 'publicly_queryable' => true, 39 | 'exclude_from_search' => false, 40 | 'show_ui' => true, 41 | 'query_var' => true, 42 | 'menu_position' => 8, /* this is what order you want it to appear in on the left hand side menu */ 43 | 'menu_icon' => 'dashicons-book', /* the icon for the custom post type menu. uses built-in dashicons (CSS class name) */ 44 | 'rewrite' => array( 'slug' => 'custom_type', 'with_front' => false ), /* you can specify its url slug */ 45 | 'has_archive' => 'custom_type', /* you can rename the slug here */ 46 | 'capability_type' => 'post', 47 | 'hierarchical' => false, 48 | /* the next one is important, it tells what's enabled in the post editor */ 49 | 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'sticky') 50 | ) /* end of options */ 51 | ); /* end of register post type */ 52 | 53 | /* this adds your post categories to your custom post type */ 54 | register_taxonomy_for_object_type('category', 'custom_type'); 55 | /* this adds your post tags to your custom post type */ 56 | register_taxonomy_for_object_type('post_tag', 'custom_type'); 57 | 58 | } 59 | 60 | // adding the function to the Wordpress init 61 | add_action( 'init', 'custom_post_example'); 62 | 63 | /* 64 | for more information on taxonomies, go here: 65 | http://codex.wordpress.org/Function_Reference/register_taxonomy 66 | */ 67 | 68 | // now let's add custom categories (these act like categories) 69 | register_taxonomy( 'custom_cat', 70 | array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */ 71 | array('hierarchical' => true, /* if this is true, it acts like categories */ 72 | 'labels' => array( 73 | 'name' => __( 'Custom Categories', 'jointswp' ), /* name of the custom taxonomy */ 74 | 'singular_name' => __( 'Custom Category', 'jointswp' ), /* single taxonomy name */ 75 | 'search_items' => __( 'Search Custom Categories', 'jointswp' ), /* search title for taxomony */ 76 | 'all_items' => __( 'All Custom Categories', 'jointswp' ), /* all title for taxonomies */ 77 | 'parent_item' => __( 'Parent Custom Category', 'jointswp' ), /* parent title for taxonomy */ 78 | 'parent_item_colon' => __( 'Parent Custom Category:', 'jointswp' ), /* parent taxonomy title */ 79 | 'edit_item' => __( 'Edit Custom Category', 'jointswp' ), /* edit custom taxonomy title */ 80 | 'update_item' => __( 'Update Custom Category', 'jointswp' ), /* update title for taxonomy */ 81 | 'add_new_item' => __( 'Add New Custom Category', 'jointswp' ), /* add new title for taxonomy */ 82 | 'new_item_name' => __( 'New Custom Category Name', 'jointswp' ) /* name title for taxonomy */ 83 | ), 84 | 'show_admin_column' => true, 85 | 'show_ui' => true, 86 | 'query_var' => true, 87 | 'rewrite' => array( 'slug' => 'custom-slug' ), 88 | ) 89 | ); 90 | 91 | // now let's add custom tags (these act like categories) 92 | register_taxonomy( 'custom_tag', 93 | array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */ 94 | array('hierarchical' => false, /* if this is false, it acts like tags */ 95 | 'labels' => array( 96 | 'name' => __( 'Custom Tags', 'jointswp' ), /* name of the custom taxonomy */ 97 | 'singular_name' => __( 'Custom Tag', 'jointswp' ), /* single taxonomy name */ 98 | 'search_items' => __( 'Search Custom Tags', 'jointswp' ), /* search title for taxomony */ 99 | 'all_items' => __( 'All Custom Tags', 'jointswp' ), /* all title for taxonomies */ 100 | 'parent_item' => __( 'Parent Custom Tag', 'jointswp' ), /* parent title for taxonomy */ 101 | 'parent_item_colon' => __( 'Parent Custom Tag:', 'jointswp' ), /* parent taxonomy title */ 102 | 'edit_item' => __( 'Edit Custom Tag', 'jointswp' ), /* edit custom taxonomy title */ 103 | 'update_item' => __( 'Update Custom Tag', 'jointswp' ), /* update title for taxonomy */ 104 | 'add_new_item' => __( 'Add New Custom Tag', 'jointswp' ), /* add new title for taxonomy */ 105 | 'new_item_name' => __( 'New Custom Tag Name', 'jointswp' ) /* name title for taxonomy */ 106 | ), 107 | 'show_admin_column' => true, 108 | 'show_ui' => true, 109 | 'query_var' => true, 110 | ) 111 | ); 112 | 113 | /* 114 | looking for custom meta boxes? 115 | check out this fantastic tool: 116 | https://github.com/CMB2/CMB2 117 | */ 118 | -------------------------------------------------------------------------------- /functions/disable-emoji.php: -------------------------------------------------------------------------------- 1 | __( 'The Main Menu', 'jointswp' ), // Main nav in header 6 | 'offcanvas-nav' => __( 'The Off-Canvas Menu', 'jointswp' ), // Off-Canvas nav 7 | 'footer-links' => __( 'Footer Links', 'jointswp' ) // Secondary nav in footer 8 | ) 9 | ); 10 | 11 | // The Top Menu 12 | function joints_top_nav() { 13 | wp_nav_menu(array( 14 | 'container' => false, // Remove nav container 15 | 'menu_id' => 'main-nav', // Adding custom nav id 16 | 'menu_class' => 'medium-horizontal menu', // Adding custom nav class 17 | 'items_wrap' => '
      %3$s
    ', 18 | 'theme_location' => 'main-nav', // Where it's located in the theme 19 | 'depth' => 5, // Limit the depth of the nav 20 | 'fallback_cb' => false, // Fallback function (see below) 21 | 'walker' => new Topbar_Menu_Walker() 22 | )); 23 | } 24 | 25 | // Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker 26 | class Topbar_Menu_Walker extends Walker_Nav_Menu { 27 | function start_lvl(&$output, $depth = 0, $args = Array() ) { 28 | $indent = str_repeat("\t", $depth); 29 | $output .= "\n$indent
      \n"; 30 | } 31 | } 32 | 33 | // The Off Canvas Menu 34 | function joints_off_canvas_nav() { 35 | wp_nav_menu(array( 36 | 'container' => false, // Remove nav container 37 | 'menu_id' => 'offcanvas-nav', // Adding custom nav id 38 | 'menu_class' => 'vertical menu accordion-menu', // Adding custom nav class 39 | 'items_wrap' => '
        %3$s
      ', 40 | 'theme_location' => 'offcanvas-nav', // Where it's located in the theme 41 | 'depth' => 5, // Limit the depth of the nav 42 | 'fallback_cb' => false, // Fallback function (see below) 43 | 'walker' => new Off_Canvas_Menu_Walker() 44 | )); 45 | } 46 | 47 | class Off_Canvas_Menu_Walker extends Walker_Nav_Menu { 48 | function start_lvl(&$output, $depth = 0, $args = Array() ) { 49 | $indent = str_repeat("\t", $depth); 50 | $output .= "\n$indent
        \n"; 51 | } 52 | } 53 | 54 | // The Footer Menu 55 | function joints_footer_links() { 56 | wp_nav_menu(array( 57 | 'container' => 'false', // Remove nav container 58 | 'menu_id' => 'footer-links', // Adding custom nav id 59 | 'menu_class' => 'menu', // Adding custom nav class 60 | 'theme_location' => 'footer-links', // Where it's located in the theme 61 | 'depth' => 0, // Limit the depth of the nav 62 | 'fallback_cb' => '' // Fallback function 63 | )); 64 | } /* End Footer Menu */ 65 | 66 | // Header Fallback Menu 67 | function joints_main_nav_fallback() { 68 | wp_page_menu( array( 69 | 'show_home' => true, 70 | 'menu_class' => '', // Adding custom nav class 71 | 'include' => '', 72 | 'exclude' => '', 73 | 'echo' => true, 74 | 'link_before' => '', // Before each link 75 | 'link_after' => '' // After each link 76 | )); 77 | } 78 | 79 | // Footer Fallback Menu 80 | function joints_footer_links_fallback() { 81 | /* You can put a default here if you like */ 82 | } 83 | 84 | // Add Foundation active class to menu 85 | function required_active_nav_class( $classes, $item ) { 86 | if ( $item->current == 1 || $item->current_item_ancestor == true ) { 87 | $classes[] = 'active'; 88 | } 89 | return $classes; 90 | } 91 | add_filter( 'nav_menu_css_class', 'required_active_nav_class', 10, 2 ); -------------------------------------------------------------------------------- /functions/page-navi.php: -------------------------------------------------------------------------------- 1 | str_replace( $big, '%#%', html_entity_decode( get_pagenum_link( $big ) ) ), 9 | 'current' => max( 1, get_query_var( 'paged' ) ), 10 | 'total' => $wp_query->max_num_pages, 11 | 'mid_size' => 5, 12 | 'prev_next' => true, 13 | 'prev_text' => __( '«', 'jointswp' ), 14 | 'next_text' => __( '»', 'jointswp' ), 15 | 'type' => 'list', 16 | ) ); 17 | $paginate_links = str_replace( "
          ", "
            ", $paginate_links ); 18 | $paginate_links = str_replace( '
          • ', "
          • ", $paginate_links ); 19 | $paginate_links = str_replace( "
          • ", "
          • ", $paginate_links ); 20 | $paginate_links = str_replace( '', '', $paginate_links ); 21 | $paginate_links = str_replace( "
          • ", "
          • ", $paginate_links ); 22 | $paginate_links = preg_replace( '/\s*page-numbers/', '', $paginate_links ); 23 | // Display the pagination if more than one page is found. 24 | if ( $paginate_links ) { 25 | echo ''; 28 | } 29 | } -------------------------------------------------------------------------------- /functions/related-posts.php: -------------------------------------------------------------------------------- 1 | ID ); 7 | if($tags) { 8 | foreach( $tags as $tag ) { 9 | $tag_arr .= $tag->slug . ','; 10 | } 11 | $args = array( 12 | 'tag' => $tag_arr, 13 | 'numberposts' => 3, /* you can change this to show more */ 14 | 'post__not_in' => array($post->ID) 15 | ); 16 | $related_posts = get_posts( $args ); 17 | if($related_posts) { 18 | echo __( '

            Related Posts

            ', 'jointswp' ); 19 | echo '