uawdijnntqw1x1x1
IP : 216.73.216.239
Hostname : webm041.cluster026.gra.hosting.ovh.net
Kernel : Linux webm041.cluster026.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
monikamovk
/
www
/
JAZlV
/
..
/
wp-content
/
themes
/
vertex
/
tpl-homepage.php
/
/
<?php /* Template Name: Homepage */ get_header(); $slider = array( 'post_type' => 'post', 'category_name' => 'slide', 'posts_per_page' => -1, 'ignore_sticky_posts' => true ); $the_query = new WP_Query( $slider ); if ( $the_query->have_posts() ) : ?> <div class="home-slider"> <div id="slider" class="sl-slider-wrapper"> <div class="sl-slider"> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); $trans = array( array('horizontal','-25','-25','2','2'), array('vertical','10','-15','1.5','1.5'), array('horizontal','3','3','2','1'), array('vertical','-25','-25','2','2'), array('horizontal','-5','10','2','1') ); $random_key = array_rand($trans,2); $arr = $trans[$random_key[0]]; ?> <div class="sl-slide" data-orientation="<?php echo $arr[0]; ?>" data-slice1-rotation="<?php echo $arr[1]; ?>" data-slice2-rotation="<?php echo $arr[2]; ?>" data-slice1-scale="<?php echo $arr[3]; ?>" data-slice2-scale="<?php echo $arr[4]; ?>"> <div class="sl-slide-inner"> <div class="bg-img" style="background-image: url(<?php echo esc_url( $thumbnail[0] ); ?>); "><a href="<?php the_permalink(); ?>"></a></div> </div> </div> <?php endwhile; wp_reset_postdata(); ?> </div><!-- /sl-slider --> <nav id="nav-arrows" class="nav-arrows"> <span class="nav-arrow-prev"><?php echo __('Previous','vertex'); ?></span> <span class="nav-arrow-next"><?php echo __('Next','vertex'); ?></span> </nav> </div><!-- /slider-wrapper --> </div><!-- home-slider --> <?php endif; ?> <div class="feature-text-area"> <div class="container"> <h3><?php echo (vertex_setting('vertex_hometext') !='' ? sanitize_text_field( vertex_setting('vertex_hometext') ) : ''); ?></h3> </div><!-- container --> </div><!-- feature-text-area --> <?php $port_args = array( 'post_type' => 'post', 'posts_per_page' => 6, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), 'ignore_sticky_posts' => true, 'category_name' => 'featured', ); $port_query = new WP_Query( $port_args ); if ( $port_query->have_posts() ) : ?> <div class="home-portfolio"> <div class="container"> <?php while ( $port_query->have_posts() ) : $port_query->the_post(); ?> <div class="portfolio-box"> <div class="port-image"> <?php if ( 'video' == get_post_format( get_the_ID() ) ) : echo vertex_get_video( get_the_ID() ); else : $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(600,600) ); echo '<a href="'.esc_url( get_permalink() ).'" style="background-image: url('. esc_url( $thumbnail[0] ).')"></a>'; endif; ?> </div> <div class="port-body"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <div class="port-cats"> <?php the_category(', '); ?></div> </div> </div> <?php endwhile; wp_reset_postdata(); ?> <div class="clear"></div> </div><!-- container --> </div><!-- home-portfolio --> <?php endif; ?> <?php $blog_args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), 'category_name' => 'blog' ); $blog = new WP_Query( $blog_args ); if ( $blog->have_posts() ) : ?> <div class="blog"> <div class="container"> <div class="blog-posts"> <?php while ( $blog->have_posts() ) : $blog->the_post(); ?> <div class="blog-post-box <?php echo (is_sticky() ? 'sticky-post': ''); ?>"> <div class="blog-post-feature"> <?php if ( 'video' == get_post_format( get_the_ID() ) ) : echo vertex_get_video( get_the_ID() ); else : $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(600,600) ); echo '<div class="blog-post-image"> <a href="'.esc_url(get_permalink()).'" style="background-image: url('.esc_url($thumbnail[0]).')"></a> </div>'; endif; ?> </div> <div class="blog-post-info"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <div class="blog-post-meta"> <?php the_time(get_option('date_format') ); ?> | <a href="<?php comments_link(); ?>"><?php comments_number( __('0 Comments','vertex'), __(' 1 Comment','vertex'), '% '.__('Comments','vertex') ); ?></a></div> <div class="blog-post-excerpt"> <p><?php echo wp_trim_words( get_the_excerpt(), 25, '...' ) ?></p> </div> </div> </div> <?php endwhile; wp_reset_postdata(); ?> </div><!-- blog-posts --> </div><!-- container --> </div><!-- blog --> <?php endif; ?> <?php get_footer(); ?>
/home/monikamovk/www/JAZlV/../wp-content/themes/vertex/tpl-homepage.php