Commit d4d18368 by Manzar Hussain

update code

parent 65b48bda
......@@ -233,6 +233,7 @@
window.onload = function(){
//console.log("cookies",$.cookie("popup_trigger"));
if ($.cookie("popup_trigger") == null) {
$('body').addClass('scrollNone');
$('.outerPopup').show();
......
......@@ -132,5 +132,7 @@
alert( "The contact form ID is 123." );
}
}, false ); */
</script>
\ No newline at end of file
......@@ -289,6 +289,7 @@ function video() {
add_action( 'init', 'video', 0 );
register_taxonomy(
'videos_categories',
'video',
......@@ -303,3 +304,63 @@ function video() {
);
register_taxonomy_for_object_type( 'categories', 'video' );
function newsletter_for_partners() {
// Set UI labels for Custom Post Type
$labels = array(
'name' => _x( 'Newsletter for Partners', 'Post Type General Name', 'twentytwenty' ),
'singular_name' => _x( 'Newsletter for Partners', 'Post Type Singular Name', 'twentytwenty' ),
'menu_name' => __( 'Newsletter for Partners', 'twentytwenty' ),
'parent_item_colon' => __( 'Parent Newsletter for Partners', 'twentytwenty' ),
'all_items' => __( 'All Newsletter for Partners', 'twentytwenty' ),
'view_item' => __( 'View Newsletter for Partners', 'twentytwenty' ),
'add_new_item' => __( 'Add New Newsletter for Partners', 'twentytwenty' ),
'add_new' => __( 'Add New', 'twentytwenty' ),
'edit_item' => __( 'Edit Newsletter for Partners', 'twentytwenty' ),
'update_item' => __( 'Update Newsletter for Partners', 'twentytwenty' ),
'search_items' => __( 'Search Newsletter for Partners', 'twentytwenty' ),
'not_found' => __( 'Not Found', 'twentytwenty' ),
'not_found_in_trash' => __( 'Not found in Trash', 'twentytwenty' ),
);
// Set other options for Custom Post Type
$args = array(
'label' => __( 'Newsletter for Partners', 'twentytwenty' ),
'description' => __( 'Newsletter for Partners', 'twentytwenty' ),
'labels' => $labels,
// Features this CPT supports in Post Editor
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
/* A hierarchical CPT is like Pages and can have
* Parent and child items. A non-hierarchical CPT
* is like Posts.
*/
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
'show_in_rest' => true,
);
// Registering your Custom Post Type
register_post_type( 'newsletterPartners', $args );
}
/* Hook into the 'init' action so that the function
* Containing our post type registration is not
* unnecessarily executed.
*/
add_action( 'init', 'newsletter_for_partners', 0 );
\ No newline at end of file
<?php get_header(); ?>
<div id="full-content" class="">
<section style="background: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;" class="media-banner-bg">
<div class="container">
<h1 class="page-title-cus"><?php if(is_page(108)) { echo 'Newsletter'; } else { the_title(); } ?></h1>
</div>
</section>
<div class="container posRelative">
<div class="floatingDiv">
<div id="stickyShare">
<div class="addthis_inline_share_toolbox"></div>
</div>
</div>
<div class="row blog-details">
<div class="col-md-8 col-12">
<article class="single-blog-content">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<div class="disclaimer">
<p>Disclaimer</p>
<div class="disclaimer_content">
<?php if (get_field('disclaimer_note') ) { ?>
<?php echo get_field('disclaimer_note'); ?>
<?php } else { ?>
<p>Marcellus Investment Managers is regulated by the Securities and Exchange Board of India as a
provider of Portfolio Management Services and as an Investment Advisor.</p>
<p>The information provided on this Newsletter does not, and is not intended to, constitute
investment advice; instead, all information, content, and materials available on this newsletter are
for general informational purposes only.  Information on this website may not constitute the
most up-to-date information. The enclosed material is neither investment research, nor
investment advice. The contents and information in this document may include inaccuracies or
typographical errors and all liability with respect to actions taken or not taken based on the
contents of this Newsletter are hereby expressly disclaimed.  The content on this Newsletter is
provided &quot;as is;&quot; no representations are made that the content is error-free.</p>
<p>No reader, user, or browser of this Newsletter should act or refrain from acting on the basis of
information on this Newsletter without first seeking independent advice in that regard. Use of,
and access to, this website or any of the links or resources contained within the site do not create
an portfolio manager -client relationship between the reader, user, or browser and website
authors, contributors and their respective employers.  The views expressed at, or through, this
site are those of the individual authors writing in their individual capacities only.</p>
<?php } ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</article>
<section>
<div class="nxt-prev-nav clearfix">
<?php
// print_r( get_previous_post());
$prevPost = get_previous_post();
$nextPost = get_next_post();
$prevTitle = get_the_title( get_previous_post() );
$nextTitle = get_the_title( get_next_post() );
$prevDate = get_the_date($prevPost->post_date );
$nextDate = get_the_date($nextPost->post_date );
$previous_link_url = get_permalink( get_previous_post() );
$next_link_url = get_permalink( get_next_post() );
$prevThumb = get_the_post_thumbnail_url( get_previous_post(), 'thumbnail-size' );
$nextThumb = get_the_post_thumbnail_url( get_next_post(), 'thumbnail-size' );
if( empty($prevThumb)) {
$prevThumb = get_template_directory_uri().'/images/featured_default_image.jpg';
}
if( empty($nextThumb) ){
$nextThumb = get_template_directory_uri().'/images/featured_default_image.jpg';
}
?>
<div class="row">
<div class="col-lg-6 col-md-6 col-6 prev">
<?php if ($prevPost) { ?>
<div class="navigation-post">
<p class="nav-label"><a href="<?php echo $previous_link_url ?>">Prev Newsletter</a></p>
<div class="content">
<h5 class="post-title"><a href="<?php echo $previous_link_url ?>"><?php echo $prevTitle; ?></a></h5>
<p class="read-more"><a href="<?php echo $previous_link_url ?>" class="view-detail">Read more</a></p>
</div>
</div>
<?php } ?>
</div>
<div class="col-lg-6 col-md-6 col-6 next">
<?php if ($nextPost) { ?>
<div class="navigation-post">
<p class="nav-label text-right"><a href="<?php echo $next_link_url ?>">Next Newsletter</a></p>
<div class="content">
<h5 class="post-title"><a href="<?php echo $next_link_url ?>"><?php echo $nextTitle; ?></a></h5>
<p class="read-more"><a href="<?php echo $next_link_url ?>" class="view-detail">Read more</a></p>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</section>
</div>
<div class="col-md-4 col-12">
<!--recent newsletter-->
<div class="sidebar-box posts-box">
<h5>Recent Newsletters Partners</h5>
<div class="sidbar-posts newsletter-items">
<?php
//$args = array( 'numberposts' => '5' );
//$recent_posts = wp_get_recent_posts( $args );
//foreach( $recent_posts as $recent ){
?>
<?php
$the_query = new WP_Query( array(
'post_type'=>'newsletterPartners',
'posts_per_page'=>5,
'order'=> 'DESC',
'paged' => get_query_var('paged') ? get_query_var('paged') : 1)
);
while ($the_query -> have_posts()) : $the_query -> the_post();
?>
<div class="row post-item no-gutters">
<div class="col-12">
<div class="post-info">
<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><a href="<?php echo the_permalink() ?>"> <?php echo wp_trim_words( get_the_title(), 20 ); ?> </a></h5>
</div>
</div>
</div>
<?php //}
//wp_reset_query();
?>
<?php endwhile; ?>
</div>
</div>
<!--recent newsletter-->
</div>
</div>
</div>
</div>
<div class="fixed-action-btn verticale clickToggleIcon">
<a class="btn-floating">
<img src="<?php bloginfo('template_directory'); ?>/images/share.svg" alt="">
</a>
</div>
<!-- Pop Message HTMl-->
<?php include(TEMPLATEPATH.'/includes/forms/enquiry.php'); ?>
<!-- Pop Message End -->
<?php get_footer(); ?>
\ No newline at end of file
......@@ -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">Advisor</h1>
<h1 class="page-title-cus">Advisory</h1>
</div>
</section>
<div class="container mt-5 ">
......
......@@ -13,7 +13,7 @@ get_header(); ?>
</section>
<?php //endwhile; endif; ?>
</div>
<!-- <script type="text/javascript">!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script>
<script type="text/javascript">window.Beacon('init', '9aba6dde-070a-4773-8f91-db70c05e430c')</script> -->
<script type="text/javascript">!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script>
<script type="text/javascript">window.Beacon('init', '9aba6dde-070a-4773-8f91-db70c05e430c')</script>
<?php get_footer(); ?>
......@@ -27,7 +27,8 @@ get_header(); ?>
<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>
<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><br>Opening hours:Monday to Friday 9:30 am to 6:30 pm</p>
</div>
</div>
</div>
......
<?php
/*
* Template Name: Forms
*/
get_header();
$new_result = $wpdb->get_results("SELECT * FROM mr_download_form WHERE status =1 order by ordering");
?>
<div id="full-content" class="about-page">
<?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">Forms</h1>
</div>
</section>
<div class="container mt-5 ">
<div class="rightColumnContainer bg-white p-5">
<h1>Download Forms</h1>
<div class="right linkz">
<a id="expand-all-overview" href="javascript:void(0);" class="expand-all0">Expand All</a><a id="close-all-overview" href="javascript:void(0);" class="close-all0">Close All</a>
</div>
<div class="answers-content close-all0" id="expand-all0">
<?php
$type_array = array();
$count = 0;
foreach($new_result as $print) {
$type_of_account = $print->type_of_account;
$div_close =0;
if(!in_array($print->type_of_form, $type_array)){
$type_array[] = $type_of_form = $print->type_of_form;
$div_close =1;
?>
<?php
if($div_close==1 && $count > 0){?>
</div>
<?php } ?>
<div class="answers-article accordian clearfix close">
<a id="<?php echo $type_of_form;?>-<?php echo $count;?>" name="<?php echo $type_of_form;?>-<?php echo $count;?>" class="accoropen"></a>
<h2>
<span><?php echo $type_of_form;?></span><i class="icon-angle-up"></i><i class="icon-angle-down"></i>
</h2>
<hr>
<?php
$count++;
} ?>
<div class="main-contentz">
<ul>
<li><a href="<?php echo $print->slug?>" target="_blank"><?php echo $type_of_account;?></a></li>
</ul>
</div>
<?php
} ?>
</div>
</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 </p>
</div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
<script type="text/javascript">
(function ($) {
$('#expand-all-overview').on('click', function(e){
e.preventDefault();
$('.answers-content').find('.answers-article').removeClass('close');
});
$('#close-all-overview').on('click', function(e){
e.preventDefault();
$('.answers-content').find('.answers-article').addClass('close');
});
$('.answers-article h2').on('click', function(){
$(this).parents('.answers-article').toggleClass('close');
});
})(jQuery);
</script>
<?php get_footer(); ?>
......@@ -215,6 +215,13 @@ if($visibility== 'Yes'){
</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><br>Opening hours:Monday to Friday 9:30 am to 6:30 pm</p>
</div>
</div>
</div>
</div>
</section>
......
<?php
/**
* Template Name: Front-Page-Bk
*
*/
?>
<?php get_header(); ?>
<div id="full-content">
<section style="background: url('<?php echo site_url();?>/wp-content/uploads/2018/11/banner_bg.png');" class="banner">
<div class="container home-banner-content">
<?php the_field('home-banner-content'); ?>
</div>
<div class="tab-banner">
<img src="<?php echo site_url();?>/wp-content/uploads/2018/11/banner_bg.png">
</div>
</section>
<div class="clearfix"></div>
<section class="home-about">
<div class="container">
<?php
$id=38;
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content);
?>
<h3 class="text-uppercase"><?php the_title(); ?></h3>
<?php echo the_field('home_page_content', 38); ?>
<a href="<?php echo get_permalink(); ?>" class="mt-4">KNOW MORE</a>
</div>
</section>
<div class="clearfix"></div>
<section class="our-team-home">
<div class="container">
<h3>OUR TEAM</h3>
<div class="team-member-wrap">
<div class="owl-carousel owl-theme team-carousel">
<?php
$type = 'Team';
$args=array(
'post_type' => $type,
'post_status' => 'publish',
'posts_per_page' => 10,
'order' => 'ASC'
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="item">
<div class="team-member">
<figure><?php the_post_thumbnail(); ?></figure>
<div class="team-member-desc">
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<p><?php the_field('designation'); ?> </p>
<a href="<?php the_permalink(); ?>" class="view-detail">View Profile</a>
</div>
</div>
</div>
<?php
endwhile;
}
?>
<?php wp_reset_query(); // Restore global post data stomped by the_post(). ?>
</div>
</div>
</div>
<div class="clearfix"></div>
</section>
<div class="clearfix"></div>
<section class="resources-home">
<div class="container">
<h3>INSIGHTS</h3>
<div class="resource-home-wrap">
<div class="row">
<?php
$type = 'Resources';
$args=array(
'post_type' => $type,
'post_status' => 'publish',
'posts_per_page' => -1,
'order' => 'ASC'
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) { ?>
<div class="owl-carousel owl-theme resources">
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="item">
<div class="resource-item">
<?php the_post_thumbnail(); ?>
<div class="resources-desc">
<h3><a href="<?php echo get_field('resources-link'); ?>"><?php the_title(); ?></a></h3>
<?php //the_content(); ?>
<a href="<?php echo get_field('resources-link'); ?>" class="view-detail">View All</a>
</div>
</div>
</div>
<?php
endwhile;
} ?>
</div>
<?php wp_reset_query(); // Restore global post data stomped by the_post().
?>
</div>
</div>
</div>
</section>
<div class="clearfix"></div>
<section class="books-wrap-home">
<div class="container">
<h3>BOOKS</h3>
<section class="books-bg">
<?php
$type = 'Books';
$args=array(
'post_type' => $type,
'post_status' => 'publish',
'posts_per_page' => -1,
'order' => 'ASC'
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) { ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="book-item">
<?php the_post_thumbnail(); ?>
<div class="middle"></div>
<a href="<?php echo get_field('books-link'); ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/hover-icon.png" /></a>
</div>
<?php
endwhile;
} ?>
<?php wp_reset_query(); // Restore global post data stomped by the_post().
?>
<div class="clearfix"></div>
<div class="books-inner-bg">
<img src="<?php echo site_url();?>/wp-content/uploads/2018/11/books-bg.png" />
</div>
</section>
</div>
</section>
<div class="clearfix"></div>
<section class="home-seo-section">
<div class="container">
<div class="home-seo-content">
<?php echo the_field('home_page_seo_content'); ?>
</div>
</div>
</section>
<div class="clearfix"></div>
<?php
$visibility = get_field('display');
if($visibility== 'Yes'){
?>
<section class="complain_status">
<div class="container">
<div class="row">
<div class="col-12">
<div class="complaint_status_wrapper fixed">
<span class="closebox"></span>
<div class="complaint_swi">
<h5 class="sec_title"><?php the_field('complaint_box_title'); ?></h5>
<div class="table-responsive">
<?php
the_field('complaints_status');
?>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="clearfix"></div>
<?php } ?>
<section class="contact-home" id="contact-us">
<div class="container">
<h3>CONTACT US</h3>
<div class="home-contact-tabs">
<ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pills-home" role="tab" aria-controls="pills-home" aria-expanded="true">Distributor</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-profile" role="tab" aria-controls="pills-profile" aria-expanded="true">Investor</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-home" role="tabpanel" aria-labelledby="pills-home-tab">
<?php echo do_shortcode( '[contact-form-7 id="28" title="Contact distributor"]' ); ?>
</div>
<div class="tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab">
<?php echo do_shortcode( '[contact-form-7 id="29" title="Contact investor"]' ); ?>
</div>
</div>
</div>
</div>
</section>
</div>
<?php get_footer(); ?>
\ No newline at end of file
<?php
/**
* Template Name: Newsletter For Partners
*
*/
?>
<?php get_header(); ?>
<div id="full-content" class="media-coverage-page">
<section style="background: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/media-coverage-banner-bg.jpg')no-repeat center/cover;" class="media-banner-bg">
<div class="container">
<h1 class="page-title-cus"><?php if(is_page(131)) { echo 'Newsletter'; } else { the_title(); } ?></h1>
</div>
</section>
<?php // if($taxonomy = 'newsletter_categories'){ ?>
<!-- <div class="page-full-tabs ddddd">
<div class="container">
<nav class="page-tabs">
<ul> -->
<?php
// $taxonomy = 'newsletter_categories';
// $terms = get_terms($taxonomy, 'hide_empty=0'); //
//if ( $terms && !is_wp_error( $terms ) ) :
?>
<?php //foreach ( $terms as $term ) { ?>
<!--<li><a href="<?php //echo get_term_link($term->slug, $taxonomy); ?>"><?php //echo $term->name; ?></a></li>-->
<?php //} ?>
<?php // endif;?>
<!-- </ul>
</nav>
</div>
</div> -->
<?php //} ?>
<section class="section-padding">
<div class="container">
<div class=" resource-content newsletter">
<div class="data-record row">
<?php
$the_query = new WP_Query( array('posts_per_page'=>10,
'post_type'=>'newsletterPartners',
'order'=> 'DESC',
'paged' => get_query_var('paged') ? get_query_var('paged') : 1)
);
while ($the_query -> have_posts()) : $the_query -> the_post();
?>
<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>
<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();
?>
</div>
</div>
</div>
</section>
</div>
<?php include(TEMPLATEPATH.'/includes/forms/enquiry.php'); ?>
<?php get_footer(); ?>
\ No newline at end of file
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