2021-04-27 22:21:26 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2021-04-29 00:56:02 +02:00
|
|
|
* Author: Jorge - vitrubio.net
|
|
|
|
* URL: https://vitrubio.net
|
2021-04-27 22:21:26 +02:00
|
|
|
*
|
|
|
|
* FoundationPress functions and definitions
|
|
|
|
*
|
|
|
|
* Set up the theme and provides some helper functions, which are used in the
|
|
|
|
* theme as custom template tags. Others are attached to action and filter
|
|
|
|
* hooks in WordPress to change core functionality.
|
|
|
|
*
|
|
|
|
* @link https://codex.wordpress.org/Theme_Development
|
2021-04-28 01:20:47 +02:00
|
|
|
* @package arcHIVE-theme
|
|
|
|
* @since arcHIVE-theme 1.0.0
|
2021-04-27 22:21:26 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** Various clean up functions */
|
|
|
|
require_once( 'library/cleanup.php' );
|
|
|
|
|
|
|
|
/** Required for Foundation to work properly */
|
|
|
|
require_once( 'library/foundation.php' );
|
|
|
|
|
|
|
|
/** Format comments */
|
|
|
|
require_once( 'library/class-foundationpress-comments.php' );
|
|
|
|
|
|
|
|
/** Register all navigation menus */
|
|
|
|
require_once( 'library/navigation.php' );
|
|
|
|
|
2022-03-21 12:29:31 +01:00
|
|
|
/** Add menu walkers */
|
|
|
|
require_once( 'library/class-foundationpress-menu-walkers.php' );
|
2021-04-27 22:21:26 +02:00
|
|
|
|
|
|
|
/** Create widget areas in sidebar and footer */
|
|
|
|
require_once( 'library/widget-areas.php' );
|
|
|
|
|
|
|
|
/** Return entry meta information for posts */
|
|
|
|
require_once( 'library/entry-meta.php' );
|
|
|
|
|
|
|
|
/** Enqueue scripts */
|
|
|
|
require_once( 'library/enqueue-scripts.php' );
|
|
|
|
|
|
|
|
/** Add theme support */
|
|
|
|
require_once( 'library/theme-support.php' );
|
|
|
|
|
|
|
|
/** Add Nav Options to Customer */
|
2021-04-29 00:56:02 +02:00
|
|
|
//require_once( 'library/custom-nav.php' );
|
2021-04-27 22:21:26 +02:00
|
|
|
|
|
|
|
/** Change WP's sticky post class */
|
|
|
|
require_once( 'library/sticky-posts.php' );
|
|
|
|
|
|
|
|
/** Configure responsive image sizes */
|
|
|
|
require_once( 'library/responsive-images.php' );
|
|
|
|
|
|
|
|
/** Gutenberg editor support */
|
|
|
|
require_once( 'library/gutenberg.php' );
|
|
|
|
|
2021-04-30 01:12:57 +02:00
|
|
|
/** Catch post first image */
|
|
|
|
require_once( 'library/catch-first-image.php' );
|
|
|
|
|
|
|
|
/** Reduce the excerpt length */
|
|
|
|
require_once( 'library/excerpt-mods.php' );
|
|
|
|
|
2021-04-27 22:21:26 +02:00
|
|
|
/** If your site requires protocol relative url's for theme assets, uncomment the line below */
|
|
|
|
// require_once( 'library/class-foundationpress-protocol-relative-theme-assets.php' );
|