add files

This commit is contained in:
Andrey Kuvshinov
2025-07-09 21:21:17 +03:00
commit 8fc8cbae32
596 changed files with 207566 additions and 0 deletions

50
amp/_content-popular.php Normal file
View File

@@ -0,0 +1,50 @@
<div class="partners">
<div class="partners__header">
Самое читаемое
</div>
<div class="row">
<?php
global $wpdb;
$i = 0;
$current = get_the_ID();
$top = array_slice((array)json_decode(get_option('ppp_options')), 0, 4);
$notin = implode(",", array_map(function($item){return $item->id;},$top));
if(has_tag(103565, get_queried_object_id())){
$featured = $wpdb->get_results("select id from wp_posts where id not in (".$notin.") and post_type in ('anew', 'yellow') and id != ".get_queried_object_id()." and post_status = 'publish' and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_hide_on_website' AND meta_value = '1' ) and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_only_link_access' AND meta_value = '1' ) and id in (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = 103565 ) order by post_date desc limit 11", OBJECT);
}else{
$featured = $wpdb->get_results("select id from wp_posts where id not in (".$notin.") and post_type in ('anew', 'yellow') and id != ".get_queried_object_id()." and post_status = 'publish' and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_hide_on_website' AND meta_value = '1' ) and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_only_link_access' AND meta_value = '1' ) and id not in (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = 103565 ) and id in (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = ".get_post_primary_category_id(get_queried_object_id()).") order by post_date desc limit 11", OBJECT);
}
$items = array_merge($top, $featured);
$has_with_tag = false;
foreach ($items as $item):
if(has_tag(7840, $item->id)){
if($has_with_tag === true){
continue;
}
$has_with_tag = true;
}
$post = get_post($item->id);
if ($item->id == $current){ continue; }
?>
<div class="col-12 col-md-4" data-id="<?php echo $id; ?>">
<a class="partners__item d-flex d-lg-block" href="<?php echo get_permalink($post); ?>?utm_from=must-amp">
<span class="partners__frame">
<amp-img width="142px" height="80px" src="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post), 'thumbnail' )[0]; ?>" alt="<?php echo htmlspecialchars($post->post_title); ?>">
<noscript>
<img width="142px" height="80px" src="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post), 'thumbnail' )[0]; ?>" alt="<?php echo htmlspecialchars($post->post_title); ?>" />
</noscript>
</amp-img>
</span>
<strong class="partners__item__title">
<?php echo $post->post_title; ?>
</strong>
</a>
</div>
<?php endforeach; ?>
</div>
</div>

8
amp/content-partners.php Normal file
View File

@@ -0,0 +1,8 @@
<div class="partners">
<amp-embed type="smi2"
width="auto"
height="330"
layout="fixed-height"
data-blockid="94892">
</amp-embed>
</div>

50
amp/content-popular.php Normal file
View File

@@ -0,0 +1,50 @@
<div class="partners">
<div class="partners__header">
Самое читаемое
</div>
<div class="row">
<?php
global $wpdb;
$i = 0;
$current = get_the_ID();
$top = array_slice((array)json_decode(get_option('ppp_options')), 0, 4);
$notin = implode(",", array_map(function($item){return (int)$item->id;},$top));
if(has_tag(103565, get_queried_object_id())){
$featured = $wpdb->get_results("select id from wp_posts where id not in (".$notin.") and 2=2 and post_type in ('anew', 'yellow') and id != ".get_queried_object_id()." and post_status = 'publish' and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_hide_on_website' AND meta_value = '1' ) and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_only_link_access' AND meta_value = '1' ) and id in (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = 103565 ) order by post_date desc limit 11", OBJECT);
}else{
$featured = $wpdb->get_results("select id from wp_posts where id not in (".$notin.") and 3=3 and post_type in ('anew', 'yellow') and id != ".get_queried_object_id()." and post_status = 'publish' and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_hide_on_website' AND meta_value = '1' ) and id not in (SELECT post_id FROM wp_postmeta WHERE meta_key = '_only_link_access' AND meta_value = '1' ) and id not in (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = 103565 ) and id in (SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = ".get_post_primary_category_id(get_queried_object_id()).") order by post_date desc limit 11", OBJECT);
}
$items = array_merge($top, $featured);
$has_with_tag = false;
foreach ($items as $item):
if(has_tag(7840, $item->id)){
if($has_with_tag === true){
continue;
}
$has_with_tag = true;
}
$post = get_post($item->id);
if ($item->id == $current){ continue; }
?>
<div class="col-12 col-md-4" data-id="<?php echo $id; ?>">
<a class="partners__item d-flex d-lg-block" href="<?php echo get_permalink($post); ?>?utm_from=must-amp">
<span class="partners__frame">
<amp-img width="142px" height="80px" src="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post), 'thumbnail' )[0]; ?>" alt="<?php echo htmlspecialchars($post->post_title); ?>">
<noscript>
<img width="142px" height="80px" src="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post), 'thumbnail' )[0]; ?>" alt="<?php echo htmlspecialchars($post->post_title); ?>" />
</noscript>
</amp-img>
</span>
<strong class="partners__item__title">
<?php echo $post->post_title; ?>
</strong>
</a>
</div>
<?php endforeach; ?>
</div>
</div>

32
amp/featured-image.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
/**
* Post featured image template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
$featured_image = $this->get( 'featured_image' );
if ( empty( $featured_image ) ) {
return;
}
$amp_html = $featured_image['amp_html'];
$caption = $featured_image['caption'];
?>
<?php if ( show_thumbnail() ) : ?>
<figure class="amp-wp-article-featured-image wp-caption">
<?php the_post_thumbnail("thumb-1200"); ?>
<?php //echo $amp_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</figure>
<?php endif; ?>

52
amp/footer.php Normal file
View File

@@ -0,0 +1,52 @@
<?php
/**
* Footer template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
?>
<footer class="amp-wp-footer">
<div>
<h2><?php echo esc_html( wptexturize( $this->get( 'blog_name' ) ) ); ?></h2>
<a href="#top" class="back-to-top"><?php esc_html_e( 'Back to top', 'amp' ); ?></a>
</div>
</footer>
<amp-analytics id="1qazxsw2<?=get_the_ID()?>" type="googleanalytics">
<script type="application/json">
{
"requests": {
"nextpage": "<?php get_permalink(get_the_ID()); ?>?amp=1"
},
"vars": {
"account": "UA-50205759-1"
},
"triggers": {
"trackScrollThrough": {
"on": "amp-next-page-scroll",
"request": "nextpage"
},
"trackClickThrough": {
"on": "amp-next-page-click",
"request": "nextpage"
},
"trackPageview": {
"on": "visible",
"request": "pageview"
}
}
}
</script>
</amp-analytics>

42
amp/header-bar.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
/**
* Header bar template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
?>
<header id="top" class="amp-wp-header">
<div>
<a href="<?php echo esc_url( $this->get( 'home_url' ) ); ?>">
<?php $site_icon_url = $this->get( 'site_icon_url' ); ?>
<?php if ( $site_icon_url ) : ?>
<amp-img src="<?php echo esc_url( $site_icon_url ); ?>" width="32" height="32" class="amp-wp-site-icon"></amp-img>
<?php endif; ?>
<span class="amp-site-title">
<?php echo esc_html( wptexturize( $this->get( 'blog_name' ) ) ); ?>
</span>
</a>
<?php $canonical_link_url = $this->get( 'post_canonical_link_url' ); ?>
<?php if ( $canonical_link_url ) : ?>
<?php $canonical_link_text = $this->get( 'post_canonical_link_text' ); ?>
<a class="amp-wp-canonical-link" href="<?php echo esc_url( $canonical_link_url ); ?>">
<?php echo esc_html( $canonical_link_text ); ?>
</a>
<?php endif; ?>
</div>
</header>

21
amp/header.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Header template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$this->load_parts( [ 'header-bar' ] );

25
amp/html-end.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
/**
* HTML end template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
?>
<?php do_action( 'amp_post_template_footer', $this ); ?>
</body>
</html>

36
amp/html-start.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
/**
* HTML start template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
?>
<!doctype html>
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
<head>
<title><?php the_title(); ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<?php do_action( 'amp_post_template_head', $this ); ?>
<style amp-custom>
<?php $this->load_parts( [ 'style' ] ); ?>
<?php do_action( 'amp_post_template_css', $this ); ?>
</style>
<script async custom-element="amp-next-page" src="https://cdn.ampproject.org/v0/amp-next-page-1.0.js"></script>
</head>
<body class="<?php echo esc_attr( $this->get( 'body_class' ) ); ?>">
<?php do_action( 'amp_post_template_body_open', $this ); ?>

30
amp/meta-author.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* Post author template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$post_author = $this->get( 'post_author' );
?>
<?php if ( $post_author ) : ?>
<div class="amp-wp-meta amp-wp-byline">
<?php if ( function_exists( 'get_avatar_url' ) ) : ?>
<amp-img src="<?php echo esc_url( get_avatar_url( $post_author->user_email, [ 'size' => 24 ] ) ); ?>" alt="<?php echo esc_attr( $post_author->display_name ); ?>" width="24" height="24" layout="fixed"></amp-img>
<?php endif; ?>
<span class="amp-wp-author author vcard"><?php echo esc_html( $post_author->display_name ); ?></span>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Post comments link template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$comments_link_url = $this->get( 'comments_link_url' );
?>
<?php if ( $comments_link_url ) : ?>
<?php $comments_link_text = $this->get( 'comments_link_text' ); ?>
<div class="amp-wp-meta amp-wp-comments-link">
<a href="<?php echo esc_url( $comments_link_url ); ?>">
<?php echo esc_html( $comments_link_text ); ?>
</a>
</div>
<?php endif; ?>

47
amp/meta-taxonomy.php Normal file
View File

@@ -0,0 +1,47 @@
<?php
/**
* Post taxonomy term list template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$categories = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'amp' ), '', $this->ID );
?>
<?php if ( $categories ) : ?>
<div class="amp-wp-meta amp-wp-tax-category">
<?php
/* translators: %s: list of categories. */
printf( esc_html__( 'Categories: %s', 'amp' ), $categories ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</div>
<?php endif; ?>
<?php
$tags = get_the_tag_list(
'',
_x( ', ', 'Used between list items, there is a space after the comma.', 'amp' ),
'',
$this->ID
);
?>
<?php if ( $tags && ! is_wp_error( $tags ) ) : ?>
<div class="amp-wp-meta amp-wp-tax-tag">
<?php
/* translators: %s: list of tags. */
printf( esc_html__( 'Tags: %s', 'amp' ), $tags ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</div>
<?php endif; ?>

26
amp/meta-time.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
/**
* Post date template part.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
?>
<div class="amp-wp-meta amp-wp-posted-on">
<time datetime="<?php echo esc_attr( date( 'c', $this->get( 'post_publish_timestamp' ) ) ); ?>">
<?php echo esc_attr( date( 'd.m.Y H:i', $this->get( 'post_publish_timestamp' ) ) ); ?>
</time>
</div>

41
amp/page.php Normal file
View File

@@ -0,0 +1,41 @@
<?php
/**
* Page view template.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$this->load_parts( [ 'html-start' ] );
?>
<?php $this->load_parts( [ 'header' ] ); ?>
<article class="amp-wp-article">
<header class="amp-wp-article-header">
<h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1>
</header>
<?php $this->load_parts( [ 'featured-image' ] ); ?>
<div class="amp-wp-article-content">
<?php echo $this->get( 'post_amp_content' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
</article>
<?php $this->load_parts( [ 'footer' ] ); ?>
<?php
$this->load_parts( [ 'html-end' ] );

82
amp/single.php Normal file
View File

@@ -0,0 +1,82 @@
<?php
/**
* Single view template.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$this->load_parts( [ 'html-start' ] );
?>
<?php $this->load_parts( [ 'header' ] ); ?>
<article class="amp-wp-article">
<header class="amp-wp-article-header">
<h1 class="amp-wp-title"><?php echo esc_html( $this->get( 'post_title' ) ); ?></h1>
<?php $this->load_parts( apply_filters( 'amp_post_article_header_meta', [ 'meta-author', 'meta-time' ] ) ); ?>
</header>
<?php if (has_secondary_title()): ?>
<h2 class="profile_onenews__subtitle mb-4">
<?= get_secondary_title(); ?>
</h2>
<?php endif; ?>
<?php
if ( function_exists( 'get_disclaimer' ) ) {
echo get_disclaimer();
}
?>
<?= get_first_pharagraph( get_the_content() ) ?>
<?php $this->load_parts( [ 'featured-image' ] ); ?>
<div class="amp-wp-article-content">
<?php echo $this->get( 'post_amp_content' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
<div class="partners">
<?php if((int)get_option('show_ad') == 1): ?>
<amp-ad width="320" height="250"
type="adfox"
data-owner-id="242477"
data-adfox-params='{
"p1": "cizsc",
"p2": "fqzb"
}'>
<div placeholder></div>
<div fallback></div>
</amp-ad>
<?php endif; ?>
</div>
<?php $this->load_parts( [ 'content-partners' ] ); ?>
<?php $this->load_parts( [ 'content-popular' ] ); ?>
<footer class="amp-wp-article-footer">
<?php $this->load_parts( apply_filters( 'amp_post_article_footer_meta', [ 'meta-taxonomy', 'meta-comments-link' ] ) ); ?>
</footer>
</article>
<?php //$this->load_parts( [ 'footer' ] ); ?>
<?php
$this->load_parts( [ 'html-end' ] );

477
amp/style.php Normal file
View File

@@ -0,0 +1,477 @@
<?php
/**
* Style template.
*
* 🚫🚫🚫
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
* 🚫🚫🚫
*
* @package AMP
*/
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
/**
* Context.
*
* @var AMP_Post_Template $this
*/
$content_max_width = absint( $this->get( 'content_max_width' ) );
$theme_color = $this->get_customizer_setting( 'theme_color' );
$text_color = $this->get_customizer_setting( 'text_color' );
$muted_text_color = $this->get_customizer_setting( 'muted_text_color' );
$border_color = $this->get_customizer_setting( 'border_color' );
$link_color = $this->get_customizer_setting( 'link_color' );
$header_background_color = $this->get_customizer_setting( 'header_background_color' );
$header_color = $this->get_customizer_setting( 'header_color' );
?>
/* Generic WP styling */
.alignright {
float: right;
}
.alignleft {
float: left;
}
.aligncenter {
display: block;
text-align: center;
margin-left: auto;
margin-right: auto;
}
.amp-wp-enforced-sizes {
/** Our sizes fallback is 100vw, and we have a padding on the container; the max-width here prevents the element from overflowing. **/
max-width: 100%;
margin: 0 auto;
}
<?php echo file_get_contents( AMP__DIR__ . '/assets/css/amp-default.css' ); // phpcs:ignore WordPress.WP.AlternativeFunctions ?>
/* Template Styles */
.amp-wp-content,
.amp-wp-title-bar div {
<?php if ( $content_max_width > 0 ) : ?>
margin: 0 auto;
max-width: <?php echo sprintf( '%dpx', $content_max_width ); ?>;
<?php endif; ?>
}
html {
background: <?php echo sanitize_hex_color( $header_background_color ); ?>;
}
body {
background: <?php echo sanitize_hex_color( $theme_color ); ?>;
color: <?php echo sanitize_hex_color( $text_color ); ?>;
font-family: Georgia, 'Times New Roman', Times, Serif;
font-weight: 300;
line-height: 1.75em;
}
p,
ol,
ul,
figure {
margin: 0 0 1em;
padding: 0;
}
a,
a:visited {
color: <?php echo sanitize_hex_color( $link_color ); ?>;
}
a:hover,
a:active,
a:focus {
color: <?php echo sanitize_hex_color( $text_color ); ?>;
}
/* Quotes */
blockquote {
color: <?php echo sanitize_hex_color( $text_color ); ?>;
background: rgba(127,127,127,.125);
border-<?php echo is_rtl() ? 'right' : 'left'; ?>: 2px solid <?php echo sanitize_hex_color( $link_color ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
margin: 8px 0 24px 0;
padding: 16px;
}
blockquote p:last-child {
margin-bottom: 0;
}
/* UI Fonts */
.amp-wp-meta,
.amp-wp-header div,
.amp-wp-title,
.wp-caption-text,
.amp-wp-tax-category,
.amp-wp-tax-tag,
.amp-wp-comments-link,
.amp-wp-footer p,
.back-to-top {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
}
/* Header */
.amp-wp-header {
background-color: <?php echo sanitize_hex_color( $header_background_color ); ?>;
}
.amp-wp-header div {
color: <?php echo sanitize_hex_color( $header_color ); ?>;
font-size: 1em;
font-weight: 400;
margin: 0 auto;
max-width: calc(840px - 32px);
padding: .875em 16px;
position: relative;
}
.amp-wp-header a {
color: <?php echo sanitize_hex_color( $header_color ); ?>;
text-decoration: none;
}
<?php if ( $this->get( 'post_canonical_link_url' ) || is_customize_preview() ) : ?>
.amp-wp-header .amp-wp-canonical-link {
font-size: 0.8em;
text-decoration: underline;
position: absolute;
<?php
$distance = 18;
if ( $this->get( 'site_icon_url' ) ) {
$distance += 32 + 10; // Width of site icon with margin.
}
printf( '%s: %dpx;', is_rtl() ? 'left' : 'right', $distance ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
}
<?php endif; ?>
.amp-wp-header .amp-wp-site-icon {
/** site icon is 32px **/
background-color: <?php echo sanitize_hex_color( $header_color ); ?>;
border: 1px solid <?php echo sanitize_hex_color( $header_color ); ?>;
border-radius: 50%;
position: absolute;
<?php echo is_rtl() ? 'left' : 'right'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>: 18px;
top: 10px;
}
/* Article */
.amp-wp-article {
color: <?php echo sanitize_hex_color( $text_color ); ?>;
font-weight: 400;
margin: 1.5em auto;
max-width: 840px;
overflow-wrap: break-word;
word-wrap: break-word;
}
/* Article Header */
.amp-wp-article-header {
align-items: center;
align-content: stretch;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 1.5em 16px 0;
}
.amp-wp-title {
color: <?php echo sanitize_hex_color( $text_color ); ?>;
display: block;
flex: 1 0 100%;
font-weight: 900;
margin: 0 0 .625em;
width: 100%;
}
/* Article Meta */
.amp-wp-meta {
color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;
display: inline-block;
flex: 2 1 50%;
font-size: .875em;
line-height: 1.5em;
margin: 0 0 1.5em;
padding: 0;
}
.amp-wp-article-header .amp-wp-meta:last-of-type {
text-align: <?php echo is_rtl() ? 'left' : 'right'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
}
.amp-wp-article-header .amp-wp-meta:first-of-type {
text-align: <?php echo is_rtl() ? 'right' : 'left'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
}
.amp-wp-byline amp-img,
.amp-wp-byline .amp-wp-author {
display: inline-block;
vertical-align: middle;
}
.amp-wp-byline amp-img {
border: 1px solid <?php echo sanitize_hex_color( $link_color ); ?>;
border-radius: 50%;
position: relative;
margin-<?php echo is_rtl() ? 'left' : 'right'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>: 6px;
}
.amp-wp-posted-on {
text-align: <?php echo is_rtl() ? 'left' : 'right'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
}
/* Featured image */
.amp-wp-article-featured-image {
margin: 0 0 1em;
}
.amp-wp-article-featured-image amp-img {
margin: 0 auto;
}
.amp-wp-article-featured-image.wp-caption .wp-caption-text {
margin: 0 18px;
}
/* Article Content */
.amp-wp-article-content {
margin: 0 16px;
}
.amp-wp-article-content ul,
.amp-wp-article-content ol {
margin-<?php echo is_rtl() ? 'right' : 'left'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>: 1em;
}
.amp-wp-article-content .wp-caption {
max-width: 100%;
}
.amp-wp-article-content amp-img {
margin: 0 auto;
}
.amp-wp-article-content amp-img.alignright {
margin: 0 0 1em 16px;
}
.amp-wp-article-content amp-img.alignleft {
margin: 0 16px 1em 0;
}
/* Captions */
.wp-caption {
padding: 0;
}
.wp-caption.alignleft {
margin-right: 16px;
}
.wp-caption.alignright {
margin-left: 16px;
}
.wp-caption .wp-caption-text {
border-bottom: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;
color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;
font-size: .875em;
line-height: 1.5em;
margin: 0;
padding: .66em 10px .75em;
}
/* AMP Media */
.alignwide,
.alignfull {
clear: both;
}
amp-carousel {
background: <?php echo sanitize_hex_color( $border_color ); ?>;
margin: 0 -16px 1.5em;
}
amp-iframe,
amp-youtube,
amp-instagram,
amp-vine {
background: <?php echo sanitize_hex_color( $border_color ); ?>;
margin: 0 -16px 1.5em;
}
.amp-wp-article-content amp-carousel amp-img {
border: none;
}
amp-carousel > amp-img > img {
object-fit: contain;
}
.amp-wp-iframe-placeholder {
background: <?php echo sanitize_hex_color( $border_color ); ?> url( <?php echo esc_url( $this->get( 'placeholder_image_url' ) ); ?> ) no-repeat center 40%;
background-size: 48px 48px;
min-height: 48px;
}
/* Article Footer Meta */
.amp-wp-article-footer .amp-wp-meta {
display: block;
}
.amp-wp-tax-category,
.amp-wp-tax-tag {
color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;
font-size: .875em;
line-height: 1.5em;
margin: 1.5em 16px;
}
.amp-wp-comments-link {
color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;
font-size: .875em;
line-height: 1.5em;
text-align: center;
margin: 2.25em 0 1.5em;
}
.amp-wp-comments-link a {
border-style: solid;
border-color: <?php echo sanitize_hex_color( $border_color ); ?>;
border-width: 1px 1px 2px;
border-radius: 4px;
background-color: transparent;
color: <?php echo sanitize_hex_color( $link_color ); ?>;
cursor: pointer;
display: block;
font-size: 14px;
font-weight: 600;
line-height: 18px;
margin: 0 auto;
max-width: 200px;
padding: 11px 16px;
text-decoration: none;
width: 50%;
-webkit-transition: background-color 0.2s ease;
transition: background-color 0.2s ease;
}
/* AMP Footer */
.amp-wp-footer {
border-top: 1px solid <?php echo sanitize_hex_color( $border_color ); ?>;
margin: calc(1.5em - 1px) 0 0;
}
.amp-wp-footer div {
margin: 0 auto;
max-width: calc(840px - 32px);
padding: 1.25em 16px 1.25em;
position: relative;
}
.amp-wp-footer h2 {
font-size: 1em;
line-height: 1.375em;
margin: 0 0 .5em;
}
.amp-wp-footer p {
color: <?php echo sanitize_hex_color( $muted_text_color ); ?>;
font-size: .8em;
line-height: 1.5em;
margin: 0 85px 0 0;
}
.amp-wp-footer a {
text-decoration: none;
}
.back-to-top {
bottom: 1.275em;
font-size: .8em;
font-weight: 600;
line-height: 2em;
position: absolute;
<?php echo is_rtl() ? 'left' : 'right'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>: 16px;
}
.partners__header {
background: #ececec;
border-top: 2px solid #000;
font-size: 18px;
line-height: 1;
font-weight: 700;
text-transform: uppercase;
padding: 11px 15px;
margin-bottom: 5vw;
}
.row {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
}
.col-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
margin:0 5vw 0 5vw;
}
.partners__item.d-flex {
box-sizing:border-box;
color:rgb(0, 0, 0);
cursor:pointer;
display:flex;
font-size:14px;
font-weight:400;
line-height:21px;
margin:0px;
max-width:90vw;
padding:0 0 20px 0;
}
.partners__item.d-flex .partners__frame {
position: relative;
overflow: hidden;
min-width: 80px;
width: 80px;
height: 80px;
display:flex;
}
.partners__item__title {
display: inline-block;
line-height: 1.2;
margin: 0 0 0 1.25rem;
font-size: 1rem;
}