Commit 3595da08 by Manzar Hussain

update new code

parent 2d4c7f18
...@@ -36,7 +36,7 @@ get_header(); ?> ...@@ -36,7 +36,7 @@ get_header(); ?>
$current_category_ID = isset($category->cat_ID) ? $category->cat_ID : 0; $current_category_ID = isset($category->cat_ID) ? $category->cat_ID : 0;
$args = array( $args = array(
'taxonomy' => 'newsletter_categories', 'taxonomy' => 'newsletter_categories',
'hide_empty' => 0, 'hide_empty' => 1,
'hierarchical' => 1, 'hierarchical' => 1,
'title_li' => '', 'title_li' => '',
'current_category' => $current_category_ID 'current_category' => $current_category_ID
...@@ -81,18 +81,20 @@ get_header(); ?> ...@@ -81,18 +81,20 @@ get_header(); ?>
?> ?>
<article class="col-sm-8 col-md-4 col-12 mb-5" > <article class="col-sm-8 col-md-4 col-12 mb-5" >
<div class="media-cover-wrap"> <div class="grid-item-block ">
<div class="blog-item-info"> <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> <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 <a href="<?php the_permalink(); ?>"><?php
echo mb_strimwidth(get_the_title(), 0,40, '...'); echo mb_strimwidth(get_the_title(), 0,40, '...');
?></a></h3> ?></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>
<hr>
<a href="<?php the_permalink(); ?>" class="view-detail">Read more</a>
</div>
</div> </div>
<div class="grid-item-footer">
<hr>
<a href="<?php the_permalink(); ?>" class="view-detail">Read more</a>
</div>
</div>
</article> </article>
<?php endwhile; ?> <?php endwhile; ?>
</div> </div>
......
...@@ -184,6 +184,29 @@ ...@@ -184,6 +184,29 @@
//navText: ["<i class='fa fa-long-arrow-left'></i>","<i class='fa fa-long-arrow-right'></i>"] //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({ $('.prod-newbook-slider').owlCarousel({
margin: 0, margin: 0,
nav: true, nav: true,
...@@ -339,6 +362,40 @@ function onScroll(event) { ...@@ -339,6 +362,40 @@ function onScroll(event) {
'userId' : <?php echo rand(0,1000); ?> //this number must be replaced with an actual User ID 'userId' : <?php echo rand(0,1000); ?> //this number must be replaced with an actual User ID
}); });
}) })
$("#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> </script>
......
...@@ -141,3 +141,15 @@ function html5_search_form( $form ) { ...@@ -141,3 +141,15 @@ function html5_search_form( $form ) {
} }
add_filter( 'get_search_form', 'html5_search_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');
...@@ -68,9 +68,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe> ...@@ -68,9 +68,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe>
<div class="col-2 col-sm-2 col-md-2 col-lg-7 menu"> <div class="col-2 col-sm-2 col-md-2 col-lg-7 menu">
<div id="navigation"> <div id="navigation">
<nav class="main-menu navbar navbar-expand-lg navbar-light bg-light"> <nav class="main-menu navbar navbar-expand-lg navbar-light bg-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'theme_location' => 'primary-menu' ) ); ?> <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'theme_location' => 'primary-menu' ) ); ?>
</div> </div>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab"> <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 role="form" class="wpcf7 form" id="subscribe_form" lang="en-US" dir="ltr">
<div class="screen-reader-response"></div> <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> </div>
</div> </div>
...@@ -35,6 +35,15 @@ ...@@ -35,6 +35,15 @@
$('body').removeClass('scrollNone'); $('body').removeClass('scrollNone');
$(this).parents('.outerPopup').hide() $(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){ $("form").on('click',".send_otp",function(e){
e.preventDefault(); e.preventDefault();
......
...@@ -5,4 +5,7 @@ $(document).ready(function () { ...@@ -5,4 +5,7 @@ $(document).ready(function () {
$('nav').meanmenu(); $('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 @@ ...@@ -29,7 +29,7 @@
?> ?>
<div class="col-sm-6 col-md-4 mb-5"> <div class="col-sm-6 col-md-4 mb-5">
<div class="media-cover-wrap"> <div class="grid-item-block">
<figure> <figure>
<?php if ( has_post_thumbnail() ) {?> <?php if ( has_post_thumbnail() ) {?>
<?php the_post_thumbnail( 'blog-featured-thumb-large' ); ?> <?php the_post_thumbnail( 'blog-featured-thumb-large' ); ?>
...@@ -39,12 +39,14 @@ ...@@ -39,12 +39,14 @@
</figure> </figure>
<div class="blog-item-info"><p class="publish-date">Published on <?php the_time('d M, Y'); ?></p> <div class="grid-item-body">
<h2 class="blog-title-h2"><a href="<?php the_permalink(); ?>"><?php echo wp_trim_words( get_the_title(), 12); ?> </a></h2> <p class="published">Published on <?php the_time('d M, Y'); ?></p>
<p class="media-description"><?php echo pov_excerpt( get_the_excerpt(), '150'); ?></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/> <hr/>
<a href="<?php the_permalink(); ?>" class="view-detail">VIEW MORE</a> <a href="<?php the_permalink(); ?>" class="view-detail">VIEW MORE</a>
</div> </div>
</div> </div>
......
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
* Template Name: Forms * Template Name: Forms
*/ */
get_header(); 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"> <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(); ?>
...@@ -28,6 +31,7 @@ $new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1 ...@@ -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)){ if(!in_array($print->type_of_form, $type_array)){
$type_array[] = $type_of_form = $print->type_of_form; $type_array[] = $type_of_form = $print->type_of_form;
$div_close =1; $div_close =1;
//echo $type_of_form;
?> ?>
<?php <?php
if($div_close==1 && $count > 0){?> if($div_close==1 && $count > 0){?>
......
...@@ -219,5 +219,11 @@ if($visibility== 'Yes'){ ...@@ -219,5 +219,11 @@ 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
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
</div> </div>
</section> </section>
<?php if($taxonomy = 'newsletter_categories'){ ?> <?php if($taxonomy = 'newsletter_categories'){ ?>
<div class="page-full-tabs"> <div class="page-full-tabs ddddd">
<div class="container"> <div class="container">
<nav class="page-tabs"> <nav class="page-tabs">
<ul> <ul>
<?php <?php
$taxonomy = 'newsletter_categories'; $taxonomy = 'newsletter_categories';
$terms = get_terms($taxonomy); // $terms = get_terms($taxonomy, 'hide_empty=0'); //
if ( $terms && !is_wp_error( $terms ) ) : if ( $terms && !is_wp_error( $terms ) ) :
?> ?>
<?php foreach ( $terms as $term ) { ?> <?php foreach ( $terms as $term ) { ?>
...@@ -52,15 +52,19 @@ ...@@ -52,15 +52,19 @@
<article class="col-sm-8 col-md-4 col-12 mb-5" > <article class="col-sm-8 col-md-4 col-12 mb-5" >
<div class="media-cover-wrap"> <div class="media-cover-wrap">
<div class="blog-item-info"> <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> <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="blog-title-h2">
<a href="<?php the_permalink(); ?>"><?php <a href="<?php the_permalink(); ?>"><?php
echo mb_strimwidth(get_the_title(), 0,40, '...'); echo mb_strimwidth(get_the_title(), 0,40, '...');
?></a></h3> ?></a></h3>
<p class="media-description"><?php echo pov_excerpt( get_the_excerpt(), '80'); ?></p> <p class="media-description"><?php echo pov_excerpt( get_the_excerpt(), '80'); ?></p>
</div>
<div class="blog-item-footer">
<hr> <hr>
<a href="<?php the_permalink(); ?>" class="view-detail">Read more</a> <a href="<?php the_permalink(); ?>" class="view-detail">Read more</a>
</div> </div>
</div>
</div> </div>
</article> </article>
<?php endwhile; ?> <?php endwhile; ?>
......
...@@ -128,15 +128,17 @@ ...@@ -128,15 +128,17 @@
<div class="data-record row"> <div class="data-record row">
<?php foreach($pdata as $k=>$parr): ?> <?php foreach($pdata as $k=>$parr): ?>
<article class="col-sm-8 col-md-4 col-11"> <article class="col-sm-8 col-md-4 col-11">
<div class="media-cover-wrap"> <div class="grid-item-block">
<div class="blog-item-info"> <div class="grid-item-body">
<p class="published">Published on <?php echo $parr['publish_time']; ?></p> <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 <a href="<?php echo $parr['permalink']; ?>"><?php
echo mb_strimwidth($parr['title'], 0,55, '...'); echo mb_strimwidth($parr['title'], 0,55, '...');
?> ?>
</a></h3> </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> <hr>
<a href="<?php echo $parr['permalink']; ?>" class="view-detail">Read more</a> <a href="<?php echo $parr['permalink']; ?>" class="view-detail">Read more</a>
</div> </div>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
while ($the_query -> have_posts()) : $the_query -> the_post(); while ($the_query -> have_posts()) : $the_query -> the_post();
?> ?>
<div class="col-lg-4 col-md-4 col-sm-6 col-12 video-item"> <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'))) {?> <?php if (!empty(get_field('youtube_url'))) {?>
<figure> <figure>
<a href="<?php echo get_permalink(); ?>" target="_blank"> <a href="<?php echo get_permalink(); ?>" target="_blank">
...@@ -41,14 +41,16 @@ ...@@ -41,14 +41,16 @@
<i class="fa fa-play"></i> <i class="fa fa-play"></i>
</a> </a>
</figure> </figure>
<div class="videowrap-info"> <div class="grid-item-body">
<h2 class="blog-title-h2"> <h2 class="title">
<a href="<?php echo get_permalink(); ?>" ><?php <a href="<?php echo get_permalink(); ?>" ><?php
echo mb_strimwidth(get_the_title(), 0,80, '...'); echo mb_strimwidth(get_the_title(), 0,80, '...');
?></a> ?></a>
</h2> </h2>
</div>
<div class="grid-item-footer">
<hr > <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> </div>
...@@ -65,14 +67,16 @@ ...@@ -65,14 +67,16 @@
<i class="fa fa-play"></i> <i class="fa fa-play"></i>
</a> </a>
</figure> </figure>
<div class="videowrap-info"> <div class="grid-item-body">
<h2 class="blog-title-h2"> <h2 class="title">
<a href="<?php echo get_field( 'website_link'); ?>" ><?php <a href="<?php echo get_field( 'website_link'); ?>" ><?php
echo mb_strimwidth(get_the_title(), 0,80, '...'); echo mb_strimwidth(get_the_title(), 0,80, '...');
?></a> ?></a>
</h2> </h2>
</div>
<div class="grid-item-footer">
<hr > <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> </div>
<?php } ?> <?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