function wpcom_amp_add_blavatar($metadata, $post) { if (!function_exists('blavatar_domain')) { return $metadata; } if (!isset($metadata['publisher'])) { return $metadata; } if (isset($metadata['publisher']['logo'])) { return $metadata; } $size = 60; $metadata['publisher']['logo'] = array('@type' => 'ImageObject', 'url' => blavatar_url(blavatar_domain(site_url()), 'img', $size, staticize_subdomain('https://wordpress.com/i/emails/blavatar.png')), 'width' => $size, 'height' => $size); return $metadata; }
<style type="text/css"> <?php global $Options; $displayFont = $Options->get('padpress_warp', 'display_font'); $skin = $Options->get('padpress_warp', 'color_skin'); if ($skin !== 'default') { $skin_path = staticize_subdomain(PADPRESS_THEME_DIR . "/assets/css/skins/{$skin}.css"); if (file_exists($skin_path)) { include $skin_path; } } if ($displayFont !== '0') { ?> #entry .entry .alignleft, #entry .entry .alignright, #entry .entry .aligncenter, #entry .entry img.alignleft, #entry .entry img.alignright, #entry #comments .comments-title, #cover header.cover-title, #contents .section-header h1, #contents .grid-item .post-title, .entries-archive .section-header h1, .entries-archive .archive-entries-container .entry .inner h1, entries-archive .archive-entries-container .entry:nth-child(2) .inner h1, #entry .entry .entry-title h1 { font-family: <?php echo $displayFont; ?> ;
?> </title> <meta charset="UTF-8"> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?> " type="text/css" media="screen" title="no title" charset="utf-8"> <?php include PADPRESS_THEME_DIR . "/views/_fontstyles.php"; ?> <?php global $Options; $skin = $Options->get('padpress_warp', 'skin'); if ($skin) { $url = staticize_subdomain(get_bloginfo('template_directory') . "/assets/css/skins/{$skin}.css"); ?> <link rel="stylesheet" href="<?php echo $url; ?> " type="text/css" media="screen" charset="utf-8"> <?php } ?> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " />
function wpcom_amp_add_fallback_image_to_metadata($metadata) { $metadata['image'] = array('@type' => 'ImageObject', 'url' => staticize_subdomain('https://wordpress.com/i/blank.jpg'), 'width' => 200, 'height' => 200); return $metadata; }
/** * Prints out a link to the selected skin css file. * * @return void * @author Armando Sosa */ function skinStyle() { global $Options; $skin = $Options->get('padpress_warp', 'skin'); if ($skin) { $url = staticize_subdomain(get_bloginfo('template_directory') . "/assets/css/skins/{$skin}.css"); echo '<link rel="alternate" href="' . $url . '" type="text/css" media="screen" title="no title" charset="utf-8">'; } }