version ); define( 'WP_73k_DIR', __DIR__ ); define( 'WP_73k_URL', get_template_directory_uri() ); /** * Function to support inline SVG icons by name with div wrapper */ function svg_icon_use($icon_name, $div_class) { $output = "
"; $output .= ""; return $output . "
"; }; /** * Social helpers */ require_once( WP_73k_DIR . '/socials.php' ); function socials_str($socials) { $out_str = '
'; foreach ($socials as $i=>$social) { $pad = $i == 0 ? 'pe-1' : ($i == (count($socials) - 1) ? 'ps-1' : 'px-1'); $out_str .= ''; $out_str .= svg_icon_use($social['icon'], "icon baseline") . ""; } return $out_str . '
'; } /** * Autoloader for browersync */ require_once( WP_73k_DIR . '/vendor/autoload.php' ); \A7\autoload( __DIR__ . '/src' );