Commit 3595da08 by Manzar Hussain

update new code

parent 2d4c7f18
......@@ -36,7 +36,7 @@ get_header(); ?>
$current_category_ID = isset($category->cat_ID) ? $category->cat_ID : 0;
$args = array(
'taxonomy' => 'newsletter_categories',
'hide_empty' => 0,
'hide_empty' => 1,
'hierarchical' => 1,
'title_li' => '',
'current_category' => $current_category_ID
......@@ -81,14 +81,16 @@ get_header(); ?>
?>
<article class="col-sm-8 col-md-4 col-12 mb-5" >
<div class="media-cover-wrap">
<div class="blog-item-info">
<div class="grid-item-block ">
<div class="grid-item-body">
<p class="published"><span class="month"><?php the_time('M Y'); ?></span>&nbsp;&nbsp;&nbsp; Published on <span class="publish-date"><?php the_time('d M, Y'); ?></span></p>
<h3 class="blog-title-h2">
<h3 class="title">
<a href="<?php the_permalink(); ?>"><?php
echo mb_strimwidth(get_the_title(), 0,40, '...');
?></a></h3>
<p class="media-description"><?php echo pov_excerpt( get_the_excerpt(), '80'); ?></p>
<p class="description"><?php echo pov_excerpt( get_the_excerpt(), '80'); ?></p>
</div>
<div class="grid-item-footer">
<hr>
<a href="<?php the_permalink(); ?>" class="view-detail">Read more</a>
</div>
......
......@@ -184,6 +184,29 @@
//navText: ["<i class='fa fa-long-arrow-left'></i>","<i class='fa fa-long-arrow-right'></i>"]
});
$('.video-slider').owlCarousel({
margin: 5,
nav: true,
loop: false,
dots: false,
autoplay: false,
items: 4,
autoHeight: true,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items:4
}
}
//navText: ["<i class='fa fa-long-arrow-left'></i>","<i class='fa fa-long-arrow-right'></i>"]
});
$('.prod-newbook-slider').owlCarousel({
margin: 0,
nav: true,
......@@ -340,6 +363,40 @@ function onScroll(event) {
});
})
$("#emailCheckbox, #callCheckbox, #smsCheckbox, #agreementCheckbox").on("click", function (e) {
e.preventDefault();
return false;
});
if ($('#emailCheckbox, #callCheckbox, #smsCheckbox').is(':checked'))
{
$('#emailCheckbox').val("true");
$('#callCheckbox').val("true");
$('#smsCheckbox').val("true");
}
else
{
$('#emailCheckbox').val("false");
$('#callCheckbox').val("false");
$('#smsCheckbox').val("false");
}
$('#contact_us_message ').hide();
$('#contact_us_select').on('change', function(){
var contact_as = $(this).val();
if(contact_as=="Distributor" || !contact_as)
{
$('#contact_us_message ').hide();
}
else
{
$('#contact_us_message ').show();
}
});
</script>
<?php wp_footer(); ?>
......
......@@ -141,3 +141,15 @@ function html5_search_form( $form ) {
}
add_filter( 'get_search_form', 'html5_search_form' );
function mailtrap($phpmailer) {
$phpmailer->isSMTP();
$phpmailer->Host = 'smtp.gmail.com';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 587;
$phpmailer->Username = 'manzar.abdb@gmail.com';
$phpmailer->Password = 'Manzar@123';
}
add_action('phpmailer_init', 'mailtrap');
......@@ -15,7 +15,7 @@
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">
<div role="form" class="wpcf7 form" id="subscribe_form" lang="en-US" dir="ltr">
<div class="screen-reader-response"></div>
<?php echo do_shortcode( '[contact-form-7 id="1662" title="Subscribe" html_id="enquiry_form_1662"]' ); ?>
<?php echo do_shortcode( '[contact-form-7 id="1662" title="Enquiry Form"]' ); ?>
</div>
</div>
</div>
......@@ -36,6 +36,15 @@
$(this).parents('.outerPopup').hide()
});
document.addEventListener( 'wpcf7mailsent', function( event ) {
setTimeout(function(){
$('body').removeClass('scrollNone');
$('.close-popup').parents('.outerPopup').fadeOut(1000)
}, 5000);
}, false );
$("form").on('click',".send_otp",function(e){
e.preventDefault();
var frm = $(this).closest('form');
......
......@@ -5,4 +5,7 @@ $(document).ready(function () {
$('nav').meanmenu();
});
});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -29,7 +29,7 @@
?>
<div class="col-sm-6 col-md-4 mb-5">
<div class="media-cover-wrap">
<div class="grid-item-block">
<figure>
<?php if ( has_post_thumbnail() ) {?>
<?php the_post_thumbnail( 'blog-featured-thumb-large' ); ?>
......@@ -39,12 +39,14 @@
</figure>
<div class="blog-item-info"><p class="publish-date">Published on <?php the_time('d M, Y'); ?></p>
<h2 class="blog-title-h2"><a href="<?php the_permalink(); ?>"><?php echo wp_trim_words( get_the_title(), 12); ?> </a></h2>
<p class="media-description"><?php echo pov_excerpt( get_the_excerpt(), '150'); ?></p>
<hr/>
<div class="grid-item-body">
<p class="published">Published on <?php the_time('d M, Y'); ?></p>
<h2 class="title"><a href="<?php the_permalink(); ?>"><?php echo wp_trim_words( get_the_title(), 12); ?> </a></h2>
<p class="description"><?php echo pov_excerpt( get_the_excerpt(), '150'); ?></p>
</div>
<div class="grid-item-footer">
<hr/>
<a href="<?php the_permalink(); ?>" class="view-detail">VIEW MORE</a>
</div>
</div>
......
......@@ -3,7 +3,10 @@
* Template Name: Forms
*/
get_header();
$new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1 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">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
......@@ -28,6 +31,7 @@ $new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1
if(!in_array($print->type_of_form, $type_array)){
$type_array[] = $type_of_form = $print->type_of_form;
$div_close =1;
//echo $type_of_form;
?>
<?php
if($div_close==1 && $count > 0){?>
......
......@@ -219,5 +219,11 @@ 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
......@@ -13,13 +13,13 @@
</div>
</section>
<?php if($taxonomy = 'newsletter_categories'){ ?>
<div class="page-full-tabs">
<div class="page-full-tabs ddddd">
<div class="container">
<nav class="page-tabs">
<ul>
<?php
$taxonomy = 'newsletter_categories';
$terms = get_terms($taxonomy); //
$terms = get_terms($taxonomy, 'hide_empty=0'); //
if ( $terms && !is_wp_error( $terms ) ) :
?>
<?php foreach ( $terms as $term ) { ?>
......@@ -52,16 +52,20 @@
<article class="col-sm-8 col-md-4 col-12 mb-5" >
<div class="media-cover-wrap">
<div class="blog-item-info">
<div class="blog-item-body">
<p class="published"><span class="month"><?php the_time('M Y'); ?></span>&nbsp;&nbsp;&nbsp; Published on <span class="publish-date"><?php the_time('d M, Y'); ?></span></p>
<h3 class="blog-title-h2">
<a href="<?php the_permalink(); ?>"><?php
echo mb_strimwidth(get_the_title(), 0,40, '...');
?></a></h3>
<p class="media-description"><?php echo pov_excerpt( get_the_excerpt(), '80'); ?></p>
</div>
<div class="blog-item-footer">
<hr>
<a href="<?php the_permalink(); ?>" class="view-detail">Read more</a>
</div>
</div>
</div>
</article>
<?php endwhile; ?>
</section>
......
......@@ -128,15 +128,17 @@
<div class="data-record row">
<?php foreach($pdata as $k=>$parr): ?>
<article class="col-sm-8 col-md-4 col-11">
<div class="media-cover-wrap">
<div class="blog-item-info">
<div class="grid-item-block">
<div class="grid-item-body">
<p class="published">Published on <?php echo $parr['publish_time']; ?></p>
<h3 class="blog-title-h2">
<h3 class="title">
<a href="<?php echo $parr['permalink']; ?>"><?php
echo mb_strimwidth($parr['title'], 0,55, '...');
?>
</a></h3>
<p class="media-description"><?php echo pov_excerpt( $parr['desc'], '120'); ?></p>
<p class="description"><?php echo pov_excerpt( $parr['desc'], '120'); ?></p>
</div>
<div class="grid-item-footer">
<hr>
<a href="<?php echo $parr['permalink']; ?>" class="view-detail">Read more</a>
</div>
......
......@@ -27,7 +27,7 @@
while ($the_query -> have_posts()) : $the_query -> the_post();
?>
<div class="col-lg-4 col-md-4 col-sm-6 col-12 video-item">
<section class="videowrap">
<section class="grid-item-block">
<?php if (!empty(get_field('youtube_url'))) {?>
<figure>
<a href="<?php echo get_permalink(); ?>" target="_blank">
......@@ -41,14 +41,16 @@
<i class="fa fa-play"></i>
</a>
</figure>
<div class="videowrap-info">
<h2 class="blog-title-h2">
<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>
</div>
<div class="grid-item-footer">
<hr >
<p><a href="<?php echo get_permalink( $post->ID); ?>" class="view-detail">Watch Video</a></p>
<a href="<?php echo get_permalink( $post->ID); ?>" class="view-detail">Watch Video</a>
</div>
......@@ -65,14 +67,16 @@
<i class="fa fa-play"></i>
</a>
</figure>
<div class="videowrap-info">
<h2 class="blog-title-h2">
<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>
</div>
<div class="grid-item-footer">
<hr >
<p><a href="<?php echo get_field( 'website_link'); ?>" class="view-detail" target="_blank">Watch Video</a></p>
<a href="<?php echo get_field( 'website_link'); ?>" class="view-detail" target="_blank">Watch Video</a>
</div>
<?php } ?>
......
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