/** * fr_get_meta * Returns a specific META type. * * @since 1.0.0 * @version 1.0.0 **/ function fr_get_meta($type = false) { // Check ACF is enabled. $acf = function_exists('register_field_group'); // Set site name. $site_name = get_bloginfo('blogname') ? ' | ' . get_bloginfo('blogname') : null; // Type of meta. if ($type) { switch ($type) { case 'title': echo $acf && get_field('seo_meta_title') ? get_field('seo_meta_title') . $site_name : fr_body_title(); break; case 'keywords': echo $acf && get_field('seo_meta_keywords') ? get_field('seo_meta_keywords') : ''; break; case 'description': echo $acf && get_field('seo_meta_description') ? get_field('seo_meta_description') : ''; break; } } }
"> <meta name="description" content="<?php fr_get_meta('description'); ?> "> <meta name="robots" content="INDEX, FOLLOW"> <!-- ============================================================================== --> <!-- MOBILE META --> <!-- ============================================================================== --> <!-- Viewport --> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <!-- Android --> <meta name="mobile-web-app-capable" content="yes"> <!-- iOS --> <meta name="apple-mobile-web-app-title" content="<?php fr_body_title(); ?> "> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <!-- ============================================================================== --> <!-- STYLES --> <!-- ============================================================================== --> <link rel="stylesheet" href="<?php echo CSS . 'build.css'; ?> " media="all"> <!-- ============================================================================== --> <!-- ICONS --> <!-- ============================================================================== --> <!-- Favicon -->