Commit 65b48bda by Manzar Hussain

update code

parent 860550ec
...@@ -26,6 +26,7 @@ get_header(); ?> ...@@ -26,6 +26,7 @@ get_header(); ?>
<div class="sidebar-box about-img-bottom"> <div class="sidebar-box about-img-bottom">
<img src="<?php the_field('about-image-2'); ?>" class="img-fluid" /> <img src="<?php the_field('about-image-2'); ?>" class="img-fluid" />
</div> </div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -24,7 +24,7 @@ $results_1 = array('Acount opening'); ...@@ -24,7 +24,7 @@ $results_1 = array('Acount opening');
<div class="row"> <div class="row">
<div class="col-lg-3 col-md-6">Select Type of Form</div> <div class="col-lg-3 col-md-6">Select Type of Form</div>
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<select name="type_of_form" id="type_of_form" class="required"> <select name="tye_of_form" id="type_of_form" class="required">
<option value="">Select Type of Form</option> <option value="">Select Type of Form</option>
<?php <?php
foreach( $results_1 as $value ) { ?> foreach( $results_1 as $value ) { ?>
......
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
*/ */
get_header(); get_header();
$new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1 AND type='forms' order by ordering"); $new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1 AND type='forms' order by ordering");
/*echo "<pre>";
echo print_r($new_result);
echo "</pre>";exit;*/
?> ?>
<div id="full-content" class="about-page"> <div id="full-content" class="about-page">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
......
...@@ -219,11 +219,5 @@ if($visibility== 'Yes'){ ...@@ -219,11 +219,5 @@ if($visibility== 'Yes'){
</div> </div>
</section> </section>
</div> </div>
<div class="row">
<div class="col-lg-12 col-md-12 mt-5 mb-5">
<h3 class="text-uppercase text-center section-title">Address</h3>
<p class="text-center">Marcellus Investment Managers <br>929, DBS Business Centre, Kanakia Wall Street<br>Andheri-Kurla Road, Andheri – East, Mumbai - 400 093 <br><span>&#9742;&nbsp;+91-2262676872</span></p>
</div>
</div>
<?php get_footer(); ?> <?php get_footer(); ?>
\ No newline at end of file
...@@ -19,9 +19,18 @@ get_header(); ?> ...@@ -19,9 +19,18 @@ get_header(); ?>
<div class="row media-cover-content"> <div class="row media-cover-content">
<ul class="clearfix"> <ul class="clearfix">
<?php <?php
$args = array('post_type' => 'media_coverage','meta_value' =>'online_interview', 'posts_per_page' => 5, 'orderby' => 'id', 'paged' => $paged,'order' => 'DESC'); $args = array('post_type' => 'media_coverage','meta_value' =>'online_interview', 'posts_per_page' => 10, 'orderby' => 'id', 'paged' => $paged,'order' => 'DESC');
$loop = new WP_Query($args); $loop = new WP_Query($args);
while ($loop->have_posts()) : $loop->the_post(); while ($loop->have_posts()) : $loop->the_post();
$link = '';
$newWindow = false;
if((get_field('article_publish')=='External') || (get_field('article_publish')=='')) {
$link = get_field('article_url');
$newWindow = true;
} else if((get_field('article_publish')=='Internal')) {
$link = get_permalink();
}
?> ?>
<li> <li>
<div class="media-cover-wrap"> <div class="media-cover-wrap">
...@@ -29,12 +38,17 @@ get_header(); ?> ...@@ -29,12 +38,17 @@ get_header(); ?>
<?php the_post_thumbnail('full', array('class'=>'img-fluid')); ?> <?php the_post_thumbnail('full', array('class'=>'img-fluid')); ?>
</div> </div>
<h2 class="media-coverage-title-h2"><?php the_title(); ?></h2> <h2 class="media-coverage-title-h2"><?php the_title(); ?></h2>
<?php if(get_field('page_excerpt')){?>
<p class="media-description"> <p class="media-description">
<?php echo get_the_content(); ?></p> <?php echo get_field('page_excerpt'); ?>
</p>
<?php } ?>
<hr/> <hr/>
<p class="published">Published on <span class="publish-date"><?php the_time('d M, Y'); ?> by</span><span class="publish-by"> <?php echo get_field('article_by'); ?></span></p> <p class="published">Published on <span class="publish-date"><?php the_time('d M, Y'); ?> by</span><span class="publish-by"> <?php echo get_field('article_by'); ?></span></p>
<a href="<?php echo get_field('article_url'); ?>" target="_blank" class="article-link">VIEW FULL ARTICLE</a> <a href="<?php echo $link; ?>" <?php if($newWindow==true) {?>target="_blank" <?php }?> class="article-link">VIEW FULL ARTICLE</a>
</div> </div>
</li> </li>
<?php endwhile; ?> <?php endwhile; ?>
......
...@@ -14,27 +14,39 @@ get_header(); ...@@ -14,27 +14,39 @@ get_header();
<h1 class="page-title-cus">MEDIA COVERAGE TV</h1> <h1 class="page-title-cus">MEDIA COVERAGE TV</h1>
</div> </div>
</section> </section>
<style>._4605 {display:none;}</style>
<div class="container"> <div class="container">
<div class="media-cover-content"> <div class="media-cover-content">
<ul class="clearfix row media_coverage_con"> <ul class="clearfix row media_coverage_con">
<?php <?php
$args = array('post_type' => 'media_coverage', 'meta_name' => 'tv','posts_per_page' =>3, 'paged' => $paged, 'orderby' => 'id', 'order' => 'DESC'); $args = array('post_type' => 'media_coverage', 'meta_name' => 'tv','posts_per_page' =>10, 'paged' => $paged, 'orderby' => 'id', 'order' => 'DESC');
$loop = new WP_Query($args); $loop = new WP_Query($args);
while ($loop->have_posts()) : $loop->the_post(); while ($loop->have_posts()) : $loop->the_post();
$link = '';
$newWindow = false;
if((get_field('article_publish')=='External') || (get_field('article_publish')=='')) {
$link = get_field('article_url');
$newWindow = true;
} else if((get_field('article_publish')=='Internal')) {
$link = get_permalink();
}
?> ?>
<li> <li class="_<?php echo get_the_ID(); ?>">
<div class="media-cover-wrap"> <div class="media-cover-wrap">
<div class="media-img"> <div class="media-img">
<?php the_post_thumbnail('full', array('class'=>'img-fluid')); ?> <?php the_post_thumbnail('full', array('class'=>'img-fluid')); ?>
</div> </div>
<h2 class="media-coverage-title-h2"><?php the_title(); ?></h2> <h2 class="media-coverage-title-h2"><?php the_title(); ?></h2>
<?php if(get_field('page_excerpt')){?>
<p class="media-description"> <p class="media-description">
<?php echo get_the_content(); ?></p> <?php echo get_field('page_excerpt'); ?>
<hr/> </p>
<p class="published">Published on <span class="publish-date"><?php the_time('d M, Y'); ?> by</span><span class="publish-by"> <?php echo get_field('article_by'); ?></span></p> <?php } ?>
<a href="<?php echo get_field('article_url'); ?>" target="_blank" class="article-link">VIEW FULL ARTICLE</a> <p class="published">Published on <span class="publish-date"><?php the_time('d M, Y'); ?> by</span><span class="publish-by"> <?php echo get_field('article_by'); ?></span></p>
<hr/>
<a href="<?php echo $link; ?>" <?php if($newWindow==true) {?>target="_blank" <?php }?> class="article-link">VIEW FULL ARTICLE</a>
</div> </div>
</li> </li>
<?php endwhile; ?> <?php endwhile; ?>
......
...@@ -9,7 +9,7 @@ $new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1 ...@@ -9,7 +9,7 @@ $new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<section style="background-image: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/about-banner-bg.jpg');" class="about-banner-bg"> <section style="background-image: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/about-banner-bg.jpg');" class="about-banner-bg">
<div class="container"> <div class="container">
<h1 class="page-title-cus">Partner</h1> <h1 class="page-title-cus">Distributor</h1>
</div> </div>
</section> </section>
<div class="container mt-5 "> <div class="container mt-5 ">
......
...@@ -15,87 +15,118 @@ ...@@ -15,87 +15,118 @@
<section class="video-section section-padding"> <section class="video-section section-padding">
<div class="container"> <div class="container">
<div class="row "> <h2 class="sec-title">Marcellus Webinars <span class="small">– detailed discussions of our portfolio performance and philosophy with our team</span></h2>
<div class="owl-carousel owl-theme video-slider">
<?php <?php
$pageURL = '';
$newWindow = false;
$the_query = new WP_Query( array( $the_query = new WP_Query( array(
'post_type'=>'video', 'post_type'=>'video',
'order'=> 'desc', 'order'=> 'desc',
'posts_per_page'=>9, 'posts_per_page'=>-1,
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'video_type',
'value' => 'Marcellus Webinars',
'compare' => '='
)
),
'paged' => get_query_var('paged') ? get_query_var('paged') : 1) 'paged' => get_query_var('paged') ? get_query_var('paged') : 1)
); );
while ($the_query -> have_posts()) : $the_query -> the_post(); while ($the_query -> have_posts()) : $the_query -> the_post();
if (!empty(get_field('youtube_url'))) {
$pageURL = get_permalink();
} else {
$pageURL = get_field( 'website_link');
$newWindow = true;
}
?> ?>
<div class="col-lg-4 col-md-4 col-sm-6 col-12 video-item"> <div class="grid-item-block">
<section class="grid-item-block">
<?php if (!empty(get_field('youtube_url'))) {?> <div class="video-item">
<figure> <?php $image = get_field('video_thumbnail'); ?>
<a href="<?php echo get_permalink(); ?>" target="_blank"> <figure style="background-image:url(<?php echo $image['url']; ?>)">
<?php if (get_field('video_thumbnail') ) {
$image = get_field('video_thumbnail');
?> <a href="<?php echo $pageURL; ?>" ></a>
<img src="<?php echo $image['url'] ?>" alt="<?php the_title(); ?>" />
<?php } else { ?>
<img src="<?php echo get_template_directory_uri() ?>/images/featured_default_image.jpg" alt="<?php the_title(); ?>" />
<?php } ?>
<i class="fa fa-play"></i>
</a>
</figure> </figure>
<div class="grid-item-body"> <div class="grid-item-body">
<h2 class="title"> <p class="published">Published on <?php the_time('d M, Y'); ?></p>
<a href="<?php echo get_permalink(); ?>" ><?php <h2 class="title-2">
echo mb_strimwidth(get_the_title(), 0,80, '...'); <a href="<?php echo $pageURL; ?>" >
?></a> <?php echo wp_trim_words( the_title(), 10); ?>
</h2>
</a></h2>
</div> </div>
<div class="grid-item-footer"> <div class="grid-item-footer">
<hr > <a href="<?php echo $pageURL; ?>" class="btn-video-link"
<a href="<?php echo get_permalink( $post->ID); ?>" class="view-detail">Watch Video</a> <?php if($newWindow==true) {?>target="_blank" <?php }?>
>WATCH VIDEO <i class="fa fa-play"></i></a>
</div> </div>
</div>
</div>
<?php
endwhile;
?>
</div>
</div>
<div class="container">
<h2 class="sec-title">Marcellus Snippets <span class="small">– short videos that highlight a specific facet of our philosophy</span></h2>
<div class="owl-carousel owl-theme video-slider">
<?php
$pageURL = '';
$newWindow = false;
$the_query = new WP_Query( array(
'post_type'=>'video',
'order'=> 'desc',
'posts_per_page'=>-1,
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'video_type',
'value' => 'Marcellus Snippets',
'compare' => '='
)
),
'paged' => get_query_var('paged') ? get_query_var('paged') : 1)
);
while ($the_query -> have_posts()) : $the_query -> the_post();
<?php } else {?> if (!empty(get_field('youtube_url'))) {
<figure> $pageURL = get_permalink();
<a href="<?php echo get_field( 'website_link'); ?>" target="_blank"> } else {
<?php if (get_field('video_thumbnail') ) { $pageURL = get_field( 'website_link');
$image = get_field('video_thumbnail'); $newWindow = true;
}
?> ?>
<img src="<?php echo $image['url'] ?>" alt="<?php the_title(); ?>" />
<?php } else { ?> <div class="grid-item-block">
<img src="<?php echo get_template_directory_uri() ?>/images/featured_default_image.jpg" alt="<?php the_title(); ?>" /> <div class="video-item">
<?php } ?> <?php $image = get_field('video_thumbnail'); ?>
<i class="fa fa-play"></i> <figure style="background-image:url(<?php echo $image['url']; ?>)">
</a> <a href="<?php echo $pageURL; ?>" ></a>
</figure> </figure>
<div class="grid-item-body"> <div class="grid-item-body">
<h2 class="title"> <p class="published">Published on <?php the_time('d M, Y'); ?></p>
<a href="<?php echo get_field( 'website_link'); ?>" ><?php <h2 class="title-2">
echo mb_strimwidth(get_the_title(), 0,80, '...'); <a href="<?php echo $pageURL; ?>" >
?></a> <?php echo wp_trim_words( the_title(), 10); ?>
</h2>
</a></h2>
</div> </div>
<div class="grid-item-footer"> <div class="grid-item-footer">
<hr > <a href="<?php echo $pageURL; ?>" class="btn-video-link"
<a href="<?php echo get_field( 'website_link'); ?>" class="view-detail" target="_blank">Watch Video</a> <?php if($newWindow==true) {?>target="_blank" <?php }?>
>WATCH VIDEO <i class="fa fa-play"></i></a>
</div> </div>
<?php } ?>
</section>
</div> </div>
<?php endwhile; ?>
</div> </div>
<div class="pagination-custom">
<?php <?php
$big = 999999999; // need an unlikely integer endwhile;
echo paginate_links( array(
'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $the_query->max_num_pages
) );
wp_reset_postdata();
?> ?>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment