autosender
This commit is contained in:
@@ -5,14 +5,34 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
$nn = 0;?>
|
$nn = 0;
|
||||||
|
|
||||||
|
$category = get_queried_object();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
$query = new WP_Query( [
|
||||||
|
|
||||||
|
|
||||||
|
'orderby' => 'meta_value_date',
|
||||||
|
'order' => 'ASC',
|
||||||
|
'meta_key' => 'startevent',
|
||||||
|
'post_type' => 'post',
|
||||||
|
'category_name' => $category->name
|
||||||
|
|
||||||
|
] );
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
<li><a href="https://vetandlife.ru">Главная</li>
|
||||||
<li> - <?single_cat_title()?></li>
|
<li> - <?single_cat_title()?></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -21,7 +41,9 @@ $nn = 0;?>
|
|||||||
<?php if(have_posts()) :?>
|
<?php if(have_posts()) :?>
|
||||||
<div class="search-card-box">
|
<div class="search-card-box">
|
||||||
|
|
||||||
<?php while(have_posts()) : the_post();?>
|
<?php while(have_posts()) :
|
||||||
|
the_post();
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -31,10 +53,9 @@ $nn = 0;?>
|
|||||||
<?if ( has_post_thumbnail() ) :?>
|
<?if ( has_post_thumbnail() ) :?>
|
||||||
<img class="search-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" width="180" alt="<?the_title();?>">
|
<img class="search-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" width="180" alt="<?the_title();?>">
|
||||||
<?endif?>
|
<?endif?>
|
||||||
<div><?the_excerpt();?></div>
|
<!--<div class="mini-card-body">
|
||||||
<div class="mini-card-body">
|
|
||||||
<div class="news_date"><?the_time('j F Y, G:i');?></div>
|
<div class="news_date"><?the_time('j F Y, G:i');?></div>
|
||||||
</div>
|
</div>-->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ $nn = 0;?>
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</a></li>
|
<li><a href="https://vetandlife.ru">Главная</a></li>
|
||||||
<li> - <?single_cat_title()?></li>
|
<li> - <?single_cat_title()?></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ $nn = 0;?>
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</a></li>
|
<li><a href="https://vetandlife.ru">Главная</a></li>
|
||||||
<li> - <?single_cat_title()?></li>
|
<li> - <?single_cat_title()?></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ if (file_exists($votes_file)){
|
|||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
<li><a href="https://vetandlife.ru">Главная</li>
|
||||||
<li> - <?single_cat_title()?></li>
|
<li> - <?single_cat_title()?></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use PHPMailer\PHPMailer\PHPMailer;
|
||||||
|
|
||||||
//setlocale(LC_ALL, 'ru_RU', 'ru_RU.UTF-8', 'ru', 'russian');
|
//setlocale(LC_ALL, 'ru_RU', 'ru_RU.UTF-8', 'ru', 'russian');
|
||||||
|
|
||||||
define('IMGURL', 'http://img.vetandlife.ru/');
|
define('IMGURL', 'http://img.vetandlife.ru/');
|
||||||
@@ -8,10 +10,27 @@ define("COOK_VALUE", "7895");
|
|||||||
define('VIJ_CACHE', ABSPATH.'wp-content/themes/vij/cache/');
|
define('VIJ_CACHE', ABSPATH.'wp-content/themes/vij/cache/');
|
||||||
define('BASE_VIJ', ABSPATH.'wp-content/themes/vij/');
|
define('BASE_VIJ', ABSPATH.'wp-content/themes/vij/');
|
||||||
|
|
||||||
|
require '/vhosts/beta/vendor/autoload.php';
|
||||||
|
|
||||||
|
|
||||||
require get_template_directory().'/src/calend-block.php';
|
require get_template_directory().'/src/calend-block.php';
|
||||||
require get_template_directory().'/src/calendar.php';
|
require get_template_directory().'/src/calendar.php';
|
||||||
require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php';
|
|
||||||
|
//require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php';
|
||||||
|
|
||||||
|
function vij_send_smtp_email( PHPMailer $phpmailer ) {
|
||||||
|
$phpmailer->isSMTP();
|
||||||
|
$phpmailer->Host = 'smtp.yandex.ru';
|
||||||
|
$phpmailer->SMTPAuth = true;
|
||||||
|
$phpmailer->Port = 465;
|
||||||
|
$phpmailer->Username = 'info@vetandlife.ru';
|
||||||
|
$phpmailer->Password = 'B9c8P6y9';
|
||||||
|
$phpmailer->SMTPSecure = 'ssl';
|
||||||
|
$phpmailer->From = 'info@vetandlife.ru';
|
||||||
|
$phpmailer->FromName = 'Ветеринария и жизнь';
|
||||||
|
}
|
||||||
|
|
||||||
|
add_action( 'phpmailer_init', 'vij_send_smtp_email' );
|
||||||
|
|
||||||
db_config(DB_NAME, 'mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASSWORD);
|
db_config(DB_NAME, 'mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASSWORD);
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
<li><a href="https://vetandlife.ru">Главная</li>
|
||||||
<li>-<li>
|
<li>-<li>
|
||||||
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
||||||
<li>-<li>
|
<li>-<li>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
<li><a href="https://vetandlife.ru">Главная</li>
|
||||||
<li>-<li>
|
<li>-<li>
|
||||||
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
||||||
<li>-<li>
|
<li>-<li>
|
||||||
|
|||||||
Reference in New Issue
Block a user