fixed scroll images
This commit is contained in:
@@ -5,8 +5,8 @@ use PHPMailer\PHPMailer\PHPMailer;
|
||||
//setlocale(LC_ALL, 'ru_RU', 'ru_RU.UTF-8', 'ru', 'russian');
|
||||
|
||||
define('IMGURL', 'http://img.vetandlife.ru/');
|
||||
define("COOK_GOLOS", "_ya_id_76543_w");
|
||||
define("COOK_VALUE", "7895");
|
||||
define("COOK_GOLOS", "_ya_id_76577_w");
|
||||
define("COOK_VALUE", "7896");
|
||||
define('VIJ_CACHE', ABSPATH.'wp-content/themes/vij/cache/');
|
||||
define('BASE_VIJ', ABSPATH.'wp-content/themes/vij/');
|
||||
|
||||
@@ -48,6 +48,11 @@ require get_template_directory().'/src/perevod.php';
|
||||
require get_template_directory().'/lang.php';
|
||||
require get_template_directory().'/blocks/card_post_id.php';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php';
|
||||
|
||||
function vij_send_smtp_email( PHPMailer $phpmailer ) {
|
||||
@@ -129,6 +134,14 @@ add_filter('category_template', function (){
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//свой шаблон для категории
|
||||
add_filter( 'single_template', function ( $single_template ) {
|
||||
|
||||
@@ -646,9 +659,9 @@ add_action( 'init', function () {
|
||||
}, 0);
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_action( 'pre_get_posts', function ($query) {
|
||||
|
||||
if ( ! is_admin() && $query->is_main_query() && is_category() ) {
|
||||
@@ -671,6 +684,16 @@ add_action( 'pre_get_posts', function ($query) {
|
||||
});
|
||||
|
||||
|
||||
function print_menu_shortcode($atts=[], $content = null) {
|
||||
$shortcode_atts = shortcode_atts([ 'name' => '', 'class' => '' ], $atts);
|
||||
$name = $shortcode_atts['name'];
|
||||
$class = $shortcode_atts['class'];
|
||||
return wp_nav_menu( array( 'menu' => $name, 'menu_class' => $class, 'echo' => false ) );
|
||||
}
|
||||
|
||||
add_shortcode('menu', 'print_menu_shortcode');
|
||||
|
||||
|
||||
function add_text_to_the_feed_end( $content ){
|
||||
$content .= '
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user