first
This commit is contained in:
16
wp-content/themes/simple-theme/blog-posts/blog-banner.php
Normal file
16
wp-content/themes/simple-theme/blog-posts/blog-banner.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$banner_heading = isset($args['banner_heading']) ? $args['banner_heading'] : 'Зарегистрируйтесь и получите';
|
||||
$paragraph_text = isset($args['paragraph_text']) ? $args['paragraph_text'] : 'доступ к бесплатным сервисам и 16 страховым компаниям';
|
||||
|
||||
?>
|
||||
<div class="gift-for-registration">
|
||||
<div class="gift-for-registration__content">
|
||||
<h2><?php echo $banner_heading ?></h2>
|
||||
<?php if ($paragraph_text) {
|
||||
echo '<p>' . $paragraph_text . '</p>';
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<a class="btn" href="#">Зарегистрироваться</a>
|
||||
</div>
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
$post_link = get_permalink();
|
||||
$post_tags = get_the_tags();
|
||||
$post_title = get_the_title();
|
||||
?>
|
||||
<li class="latest-articles__item">
|
||||
<a href="<?= $post_link ?>" class="readingnow-post__container">
|
||||
<article class="readingnow-post__body">
|
||||
<p class="readingnow-post__heading"><?= $post_title ?></p>
|
||||
<div class="readingnow-post__tags">
|
||||
<div class="readingnow-post_avatar">
|
||||
<img src="<?= get_avatar_url(get_the_author_meta('ID')); ?>" alt="">
|
||||
</div>
|
||||
<div class="article-card-author"><?= get_the_author($post); ?></div>
|
||||
<div class="article-card-date"><?= get_the_date('d.m.Y', $post); ?></div>
|
||||
<div class="spacer"></div>
|
||||
<?php
|
||||
if ( shortcode_exists( 'epvc_views' ) ) {
|
||||
echo do_shortcode('[epvc_views]');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
</li>
|
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
$post_tags = get_the_tags();
|
||||
$post_link = get_permalink();
|
||||
$post_thumbnail_url = get_the_post_thumbnail_url();
|
||||
$post_excerpt = get_the_excerpt();
|
||||
$post_title = get_the_title();
|
||||
?>
|
||||
<a tabindex="0" href="<?= $post_link ?>" class="desktop-element flex article-card-outer xs12 sm8 md8 lg6">
|
||||
<div class="article-card v-card v-card--link v-sheet theme--light rounded-0 emphasis">
|
||||
<div class="layout article-card-body column fill-height" style="background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.533) 0%, rgba(0, 0, 0, 0) 100%), url(<?= $post_thumbnail_url ?>) !important; background-size: cover, cover; background-repeat: no-repeat, no-repeat; background-position: center center, center center;max-height: 280px;">
|
||||
<div class="spacer"></div>
|
||||
<div class="article-card-tags">
|
||||
<?php if (!empty($post_tags)) : ?>
|
||||
<?php foreach ($post_tags as $tag) : ?>
|
||||
<span class="article-card-tag">#<?= $tag->name ?></span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="article-card-title" style="height: auto; max-width: none; margin-bottom: 0;">
|
||||
<h3><?= $post_title ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layout article-card-body column ovrd" style="flex: 0 1 0; padding: 0 37px; flex-direction: column;">
|
||||
<div class="article-card-preview ovrd" style="margin-top: 10px;margin-bottom:10px;"><?= $post_excerpt ?></div>
|
||||
|
||||
<div class="article-card-ad-row layout align-center">
|
||||
<div class="v-image v-responsive theme--light" style="height: 16px; width: 16px; flex: 0 0 auto;">
|
||||
<div class="v-responsive__sizer" style="padding-bottom: 100%;"></div>
|
||||
<div class="v-image__image v-image__image--cover" style="background-image: url('<?= get_avatar_url(get_the_author_ID()); ?>'); background-position: center center;"></div>
|
||||
<div class="v-responsive__content"></div>
|
||||
</div>
|
||||
<div class="article-card-author ovrd"><?= get_the_author($post); ?></div>
|
||||
<div class="article-card-date ovrd"><?= get_the_date('d.m.Y', $post); ?></div>
|
||||
</div>
|
||||
|
||||
<div class="spacer"></div><svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M11.9237 5.76655C11.8165 5.61991 9.26224 2.17578 5.99994 2.17578C2.73765 2.17578 0.183235 5.61991 0.0761486 5.76641C-0.0253829 5.90554 -0.0253829 6.09423 0.0761486 6.23336C0.183235 6.38001 2.73765 9.82413 5.99994 9.82413C9.26224 9.82413 11.8165 6.37999 11.9237 6.23348C12.0254 6.09438 12.0254 5.90554 11.9237 5.76655ZM5.99994 9.03293C3.59691 9.03293 1.51564 6.74699 0.899533 5.99969C1.51484 5.25173 3.59176 2.96699 5.99994 2.96699C8.40285 2.96699 10.484 5.25252 11.1004 6.00023C10.485 6.74817 8.40813 9.03293 5.99994 9.03293Z" fill="#FFF"></path>
|
||||
<path d="M5.99961 3.62646C4.69081 3.62646 3.62598 4.6913 3.62598 6.0001C3.62598 7.3089 4.69081 8.37374 5.99961 8.37374C7.3084 8.37374 8.37324 7.3089 8.37324 6.0001C8.37324 4.6913 7.3084 3.62646 5.99961 3.62646ZM5.99961 7.58251C5.12703 7.58251 4.4172 6.87266 4.4172 6.0001C4.4172 5.12755 5.12705 4.41769 5.99961 4.41769C6.87216 4.41769 7.58201 5.12755 7.58201 6.0001C7.58201 6.87266 6.87218 7.58251 5.99961 7.58251Z" fill="#FFF"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
<a tabindex="0" href="<?= $post_link ?>" class="mobile-element flex article-card-outer xs12 sm4 md4 lg3">
|
||||
<div class="article-card v-card v-card--link v-sheet theme--light rounded-0" style="background-size: cover, cover; background-repeat: no-repeat, no-repeat; background-position: center center, center center;">
|
||||
<div class="v-image v-responsive theme--light">
|
||||
<div class="v-responsive__sizer" style="padding-bottom: 100%;"></div>
|
||||
<div class="v-image__image v-image__image--cover" style="background-image: url(<?= $post_thumbnail_url ?>); background-position: center center;"></div>
|
||||
<div class="v-responsive__content"></div>
|
||||
</div>
|
||||
<div class="layout article-card-body column fill-height">
|
||||
<!---->
|
||||
<div class="article-card-tags">
|
||||
<?php if (!empty($post_tags)) : ?>
|
||||
<?php foreach ($post_tags as $tag) : ?>
|
||||
<span class="article-card-tag <?= $tag->slug . '__tag'?>">#<?= $tag->name ?></span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<article class="article-card-title"><?= $post_title ?></article>
|
||||
<div class="article-card-preview"><?= $post_excerpt ?></div>
|
||||
<div class="layout align-center" style="flex: 0 1 0%;">
|
||||
<div class="v-image v-responsive theme--light" style="height: 16px; width: 16px; flex: 0 0 auto;">
|
||||
<div class="v-responsive__sizer" style="padding-bottom: 100%;"></div>
|
||||
<div class="v-image__image v-image__image--cover" style="background-image: url('<?= get_avatar_url(get_the_author_meta('ID')); ?>'); background-position: center center;"></div>
|
||||
<div class="v-responsive__content"></div>
|
||||
</div>
|
||||
<div class="article-card-author"><?= get_the_author($post); ?></div>
|
||||
<div class="article-card-date"><?= get_the_date('d.m.Y', $post); ?></div>
|
||||
<div class="spacer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
$post_link = get_permalink();
|
||||
$post_tags = get_the_tags();
|
||||
$post_thumbnail_url = get_the_post_thumbnail_url();
|
||||
$post_excerpt = get_the_excerpt();
|
||||
$post_title = get_the_title();
|
||||
?>
|
||||
<a tabindex="0" href="<?= $post_link ?>" class="flex article-card-outer xs12 sm4 md3 lg3">
|
||||
<div class="article-card v-card v-card--link v-sheet theme--light" style="background-size: cover, cover; background-repeat: no-repeat, no-repeat; background-position: center center, center center;">
|
||||
<div class="v-image v-responsive theme--light">
|
||||
<div class="v-responsive__sizer" style="padding-bottom: 100%;"></div>
|
||||
<div class="v-image__image v-image__image--cover" style="background-image: url(<?= $post_thumbnail_url ?>); background-position: center center;"></div>
|
||||
<div class="v-responsive__content"></div>
|
||||
</div>
|
||||
<div class="layout article-card-body column fill-height">
|
||||
<!---->
|
||||
<div class="article-card-tags">
|
||||
<?php if (!empty($post_tags)) : ?>
|
||||
<?php foreach ($post_tags as $tag) : ?>
|
||||
<span class="article-card-tag <?= $tag->slug . '__tag'?>">#<?= $tag->name ?></span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<article class="article-card-title"><?= $post_title ?></article>
|
||||
<div class="article-card-preview"><?= $post_excerpt ?></div>
|
||||
<div class="layout align-center" style="flex: 0 1 0%;">
|
||||
<div class="v-image v-responsive theme--light" style="height: 16px; width: 16px; flex: 0 0 auto;">
|
||||
<div class="v-responsive__sizer" style="padding-bottom: 100%;"></div>
|
||||
<div class="v-image__image v-image__image--cover" style="background-image: url('<?= get_avatar_url(get_the_author_meta('ID')); ?>'); background-position: center center;"></div>
|
||||
<div class="v-responsive__content"></div>
|
||||
</div>
|
||||
<div class="article-card-author"><?= get_the_author($post); ?></div>
|
||||
<div class="article-card-date"><?= get_the_date('d.m.Y', $post); ?></div>
|
||||
<div class="spacer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
25
wp-content/themes/simple-theme/blog-posts/blog-register.php
Normal file
25
wp-content/themes/simple-theme/blog-posts/blog-register.php
Normal file
@ -0,0 +1,25 @@
|
||||
<div class="block-registration">
|
||||
<div class="block-registration__content">
|
||||
Зарегистрируйтесь и бесплатно оцените все возможности заработка
|
||||
<?php
|
||||
$tags_list = get_the_tags(get_the_ID());
|
||||
|
||||
if (array_search('osago', array_column($tags_list, 'slug')) !== false
|
||||
or
|
||||
array_search('kasko', array_column($tags_list, 'slug')) !== false
|
||||
or array_search('ipoteka', array_column($tags_list, 'slug')) !== false
|
||||
or array_search('mini-kasko', array_column($tags_list, 'slug')) !== false) {
|
||||
echo " на страховании";
|
||||
}
|
||||
|
||||
if (array_search('fin-offers', array_column($tags_list, 'slug')) !== false) {
|
||||
echo " на финансовых офферах";
|
||||
}
|
||||
|
||||
if (array_search('hr-offers', array_column($tags_list, 'slug')) !== false) {
|
||||
echo " на подборе персонала";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a class="btn inverted" href="#">Зарегистрироваться</a>
|
||||
</div>
|
153
wp-content/themes/simple-theme/blog-posts/blog-telegram.php
Normal file
153
wp-content/themes/simple-theme/blog-posts/blog-telegram.php
Normal file
@ -0,0 +1,153 @@
|
||||
<!--<div class="block-telegram">
|
||||
<div class="block-telegram__content">
|
||||
<?=get_field('telegram_text','options');?>
|
||||
</div>
|
||||
<a class="btn inverted" href="https://t.me/joinchat/TZvpUlJfAZfdZjuf">Присоединяюсь</a>
|
||||
</div>-->
|
||||
|
||||
<?php
|
||||
global $post;
|
||||
$ipoteka = 0;
|
||||
$banki = 0;
|
||||
foreach(get_the_tags($post->ID) as $tag) {
|
||||
if ($tag->name == 'ипотека') {
|
||||
$ipoteka = 1;
|
||||
}
|
||||
if ($tag->name == 'Фин_офферы') {
|
||||
$banki = 1;
|
||||
}
|
||||
if ($tag->name == 'вебмастеру') {
|
||||
$banki = 1;
|
||||
}
|
||||
//echo $tag->name;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
// БАНКИ
|
||||
if ($banki == 1) {
|
||||
$title_bank = get_field('title_bank', 'options');
|
||||
if( have_rows('props_bank', 'options') ):
|
||||
// Loop through rows.
|
||||
?>
|
||||
<div class="partner_block">
|
||||
<?php if ($title_bank) : ?>
|
||||
<h2><?php echo $title_bank; ?></h2>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
while( have_rows('props_bank', 'options') ) : the_row();
|
||||
// Load sub field value.
|
||||
$name_bank = get_sub_field('name_bank');
|
||||
$bebefit_bank = get_sub_field('bebefit_bank');
|
||||
$logo_bank = get_sub_field('logo_bank');
|
||||
// Do something...
|
||||
?>
|
||||
<div class="partner_wrap">
|
||||
<div class="partner_left">
|
||||
<?php if ($logo_bank) : ?>
|
||||
<div class="partner_logo">
|
||||
<img src="<?php echo $logo_bank; ?>">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="partner_right">
|
||||
<?php if ($name_bank) : ?>
|
||||
<div class="partner_name">
|
||||
<?php echo $name_bank; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="partner_actions">
|
||||
<div>
|
||||
<span>Комиссионное вознаграждение</span>
|
||||
<?php if ($bebefit_bank) : ?>
|
||||
<p>до <?php echo $bebefit_bank; ?> ₽</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<a class="partner_btn btn w-100 text-center" href="#" target="_blank">Больше офферов</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// End loop.
|
||||
endwhile;
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
// No value.
|
||||
else :
|
||||
// Do something...
|
||||
endif;
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
// ИПОТЕКИ
|
||||
if ($ipoteka == 1) {
|
||||
$title_ipoteka = get_field('title_ipoteka', 'options');
|
||||
if( have_rows('props_ipoteka', 'options') ):
|
||||
// Loop through rows.
|
||||
?>
|
||||
<div class="partner_block">
|
||||
<?php if ($title_ipoteka) : ?>
|
||||
<h2><?php echo $title_ipoteka; ?></h2>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
while( have_rows('props_ipoteka', 'options') ) : the_row();
|
||||
// Load sub field value.
|
||||
$year_ipoteka = get_sub_field('year_ipoteka');
|
||||
$rating_ipoteka = get_sub_field('rating_ipoteka');
|
||||
$cost_ipoteka = get_sub_field('cost_ipoteka');
|
||||
$pay_ipoteka = get_sub_field('pay_ipoteka');
|
||||
$logo_ipoteka = get_sub_field('logo_ipoteka');
|
||||
// Do something...
|
||||
?>
|
||||
<div class="partner_wrap ipoteka">
|
||||
<div class="partner_top">
|
||||
<div class="partner_logo">
|
||||
<?php if ($logo_ipoteka) : ?>
|
||||
<img src="<?php echo $logo_ipoteka; ?>">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="partner_cost">
|
||||
<?php if ($cost_ipoteka) : ?>
|
||||
<strong><?php echo $cost_ipoteka; ?></strong> руб.
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="partner_pay">
|
||||
<span>Ваша комиссия</span>
|
||||
<?php if ($pay_ipoteka) : ?>
|
||||
<p><?php echo $pay_ipoteka; ?> ₽</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="partner_bottom partner_actions">
|
||||
<div>
|
||||
<?php if ($year_ipoteka) : ?>
|
||||
<span>Страхуют дома после <?php echo $year_ipoteka; ?> г.</span>
|
||||
<?php endif; ?>
|
||||
<?php if ($rating_ipoteka) : ?>
|
||||
<p>Рейтинг: <strong><?php echo $rating_ipoteka; ?></strong></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<a class="partner_btn btn w-100 text-center" href="#" target="_blank">Купить полис</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
// End loop.
|
||||
endwhile;
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
// No value.
|
||||
else :
|
||||
// Do something...
|
||||
endif;
|
||||
|
||||
}
|
||||
?>
|
@ -0,0 +1,14 @@
|
||||
<li class="alm-item<?php if ( ! has_post_thumbnail() ) { echo ' no-img'; } ?>">
|
||||
<?php
|
||||
$name = get_the_author_meta('display_name');
|
||||
if ( has_post_thumbnail() ) {
|
||||
the_post_thumbnail( 'alm-thumbnail' );
|
||||
}
|
||||
?>
|
||||
<h3>
|
||||
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
||||
</h3>
|
||||
<p class="entry-meta"><?php the_time( 'F d, Y' ); ?></p>
|
||||
<?php the_excerpt(); ?>
|
||||
<p class=""><?php echo $name; ?></p>
|
||||
</li>
|
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
echo'<div class="banner-banki">CPA, Рефералка, Арбитражнику, Вебмастеру - виджет с финансовыми офферам</div>';
|
||||
$title_bank = get_field('title_bank', 'options');
|
||||
if( have_rows('props_bank', 'options') ):
|
||||
// Loop through rows.
|
||||
?>
|
||||
<div class="partner_block">
|
||||
<?php if ($title_bank) : ?>
|
||||
<div class="partner_block-title"><?php echo $title_bank; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
while( have_rows('props_bank', 'options') ) : the_row();
|
||||
// Load sub field value.
|
||||
$name_bank = get_sub_field('name_bank');
|
||||
$name_cart = get_sub_field('name_cart');
|
||||
$bebefit_bank = get_sub_field('bebefit_bank');
|
||||
$logo_bank = get_sub_field('logo_bank');
|
||||
// Do something...
|
||||
?>
|
||||
<div class="partner__wrap">
|
||||
<?php if ($logo_bank) : ?>
|
||||
<div class="partner__logo">
|
||||
<img src="<?php echo $logo_bank; ?>">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="partner__name-container">
|
||||
<?php if ($name_bank) : ?>
|
||||
<p class="partner__name">
|
||||
<?php echo $name_bank; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if ($name_cart) : ?>
|
||||
<p class="partner-cart__name">
|
||||
<?php echo $name_cart; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="partner__actions-container">
|
||||
<div class="partner__benefit">
|
||||
<span class="partner__benefit-header">Комиссионное вознаграждение</span>
|
||||
<?php if ($bebefit_bank) : ?>
|
||||
<p class="partner__benefit-text">до <?php echo $bebefit_bank; ?> ₽</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="partner__btn-container">
|
||||
<a class="partner_btn btn w-100 text-center" href="https://agents.pampadu.ru/#/register" target="_blank">Больше офферов</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// End loop.
|
||||
endwhile;
|
||||
?>
|
||||
<a class="partner_btn btn w-100 text-center partner_btn-big" href="https://agents.pampadu.ru/#/register" target="_blank">И еще 7 предложений по 35 банкам</a>
|
||||
</div>
|
||||
<?php
|
||||
// No value.
|
||||
else :
|
||||
// Do something...
|
||||
endif;
|
||||
|
||||
|
||||
?>
|
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo'<div class="banner-banki">Ипотека, Риэлторам, Страхование - виджет с офферами страхования ипотеки</div>';
|
Reference in New Issue
Block a user