Commit 65b48bda by Manzar Hussain

update code

parent 860550ec
......@@ -26,6 +26,7 @@ get_header(); ?>
<div class="sidebar-box about-img-bottom">
<img src="<?php the_field('about-image-2'); ?>" class="img-fluid" />
</div>
</div>
</div>
</div>
......
......@@ -24,7 +24,7 @@ $results_1 = array('Acount opening');
<div class="row">
<div class="col-lg-3 col-md-6">Select Type of Form</div>
<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>
<?php
foreach( $results_1 as $value ) { ?>
......
......@@ -4,9 +4,6 @@
*/
get_header();
$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">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
......
......@@ -219,11 +219,5 @@ if($visibility== 'Yes'){
</div>
</section>
</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(); ?>
\ No newline at end of file
......@@ -19,9 +19,18 @@ get_header(); ?>
<div class="row media-cover-content">
<ul class="clearfix">
<?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);
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>
<div class="media-cover-wrap">
......@@ -29,12 +38,17 @@ get_header(); ?>
<?php the_post_thumbnail('full', array('class'=>'img-fluid')); ?>
</div>
<h2 class="media-coverage-title-h2"><?php the_title(); ?></h2>
<?php if(get_field('page_excerpt')){?>
<p class="media-description">
<?php echo get_the_content(); ?></p>
<?php echo get_field('page_excerpt'); ?>
</p>
<?php } ?>
<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>
<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>
</li>
<?php endwhile; ?>
......
......@@ -14,27 +14,39 @@ get_header();
<h1 class="page-title-cus">MEDIA COVERAGE TV</h1>
</div>
</section>
<style>._4605 {display:none;}</style>
<div class="container">
<div class="media-cover-content">
<ul class="clearfix row media_coverage_con">
<?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);
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-img">
<?php the_post_thumbnail('full', array('class'=>'img-fluid')); ?>
</div>
<h2 class="media-coverage-title-h2"><?php the_title(); ?></h2>
<?php if(get_field('page_excerpt')){?>
<p class="media-description">
<?php echo get_the_content(); ?></p>
<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>
<?php echo get_field('page_excerpt'); ?>
</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>
</li>
<?php endwhile; ?>
......
......@@ -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(); ?>
<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">
<h1 class="page-title-cus">Partner</h1>
<h1 class="page-title-cus">Distributor</h1>
</div>
</section>
<div class="container mt-5 ">
......
......@@ -15,87 +15,118 @@
<section class="video-section section-padding">
<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
$pageURL = '';
$newWindow = false;
$the_query = new WP_Query( array(
'post_type'=>'video',
'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)
);
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">
<section class="grid-item-block">
<?php if (!empty(get_field('youtube_url'))) {?>
<figure>
<a href="<?php echo get_permalink(); ?>" target="_blank">
<?php if (get_field('video_thumbnail') ) {
$image = get_field('video_thumbnail');
?>
<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>
<div class="grid-item-block">
<div class="video-item">
<?php $image = get_field('video_thumbnail'); ?>
<figure style="background-image:url(<?php echo $image['url']; ?>)">
<a href="<?php echo $pageURL; ?>" ></a>
</figure>
<div class="grid-item-body">
<h2 class="title">
<a href="<?php echo get_permalink(); ?>" ><?php
echo mb_strimwidth(get_the_title(), 0,80, '...');
?></a>
</h2>
<p class="published">Published on <?php the_time('d M, Y'); ?></p>
<h2 class="title-2">
<a href="<?php echo $pageURL; ?>" >
<?php echo wp_trim_words( the_title(), 10); ?>
</a></h2>
</div>
<div class="grid-item-footer">
<hr >
<a href="<?php echo get_permalink( $post->ID); ?>" class="view-detail">Watch Video</a>
<a href="<?php echo $pageURL; ?>" class="btn-video-link"
<?php if($newWindow==true) {?>target="_blank" <?php }?>
>WATCH VIDEO <i class="fa fa-play"></i></a>
</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 {?>
<figure>
<a href="<?php echo get_field( 'website_link'); ?>" target="_blank">
<?php if (get_field('video_thumbnail') ) {
$image = get_field('video_thumbnail');
if (!empty(get_field('youtube_url'))) {
$pageURL = get_permalink();
} else {
$pageURL = get_field( 'website_link');
$newWindow = true;
}
?>
<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>
<div class="grid-item-block">
<div class="video-item">
<?php $image = get_field('video_thumbnail'); ?>
<figure style="background-image:url(<?php echo $image['url']; ?>)">
<a href="<?php echo $pageURL; ?>" ></a>
</figure>
<div class="grid-item-body">
<h2 class="title">
<a href="<?php echo get_field( 'website_link'); ?>" ><?php
echo mb_strimwidth(get_the_title(), 0,80, '...');
?></a>
</h2>
<p class="published">Published on <?php the_time('d M, Y'); ?></p>
<h2 class="title-2">
<a href="<?php echo $pageURL; ?>" >
<?php echo wp_trim_words( the_title(), 10); ?>
</a></h2>
</div>
<div class="grid-item-footer">
<hr >
<a href="<?php echo get_field( 'website_link'); ?>" class="view-detail" target="_blank">Watch Video</a>
<a href="<?php echo $pageURL; ?>" class="btn-video-link"
<?php if($newWindow==true) {?>target="_blank" <?php }?>
>WATCH VIDEO <i class="fa fa-play"></i></a>
</div>
<?php } ?>
</section>
</div>
<?php endwhile; ?>
</div>
<div class="pagination-custom">
<?php
$big = 999999999; // need an unlikely integer
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();
endwhile;
?>
</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