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,22 +19,36 @@ get_header(); ?> ...@@ -19,22 +19,36 @@ 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">
<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>
<p class="media-description"> <?php if(get_field('page_excerpt')){?>
<?php echo get_the_content(); ?></p> <p class="media-description">
<?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>
<p class="media-description"> <?php if(get_field('page_excerpt')){?>
<?php echo get_the_content(); ?></p> <p class="media-description">
<hr/> <?php echo get_field('page_excerpt'); ?>
</p>
<?php } ?>
<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>
<hr/>
<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; ?>
......
...@@ -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 ">
......
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