2019-05-23 12:30:31 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Kickoff theme setup and build
|
|
|
|
*/
|
|
|
|
|
2021-07-02 10:24:48 -04:00
|
|
|
namespace WP_73k;
|
2019-05-23 12:30:31 -04:00
|
|
|
|
2021-07-02 10:24:48 -04:00
|
|
|
define( 'WP_73k_VERSION', wp_get_theme()->version );
|
|
|
|
define( 'WP_73k_DIR', __DIR__ );
|
|
|
|
define( 'WP_73k_URL', get_template_directory_uri() );
|
2019-05-23 12:30:31 -04:00
|
|
|
|
2021-07-04 18:16:33 -04:00
|
|
|
/**
|
|
|
|
* Function to support inline SVG icons by name with div wrapper
|
|
|
|
*/
|
2021-07-04 09:26:44 -04:00
|
|
|
function svg_icon_use($icon_name, $div_class) {
|
2021-07-04 18:16:33 -04:00
|
|
|
$output = "<div class=\"$div_class $icon_name\"><svg class=\"$icon_name\" aria-hidden=\"true\">";
|
|
|
|
$output .= "<use xlink:href=\"" . get_stylesheet_directory_uri() . "/dist/images/icons.svg#$icon_name\"></use>";
|
|
|
|
return $output . "</svg></div>";
|
2021-07-04 09:26:44 -04:00
|
|
|
};
|
|
|
|
|
2021-07-04 18:16:33 -04:00
|
|
|
/**
|
|
|
|
* Autoloader for browersync
|
|
|
|
*/
|
2021-07-02 10:24:48 -04:00
|
|
|
require_once( WP_73k_DIR . '/vendor/autoload.php' );
|
2019-10-24 23:06:18 -04:00
|
|
|
|
|
|
|
\A7\autoload( __DIR__ . '/src' );
|