Commit 2924e1f1 by Manzar Hussain

form plugin update

parent 2e59007d
......@@ -20,13 +20,13 @@
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'marcellus');
define('DB_NAME', 'mrcelus');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', 'password');
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
......
......@@ -9,6 +9,10 @@
*/
// Add menu
define('PLUGIN_URL', plugins_url()."/");
define('PLUGIN_DIR_URL', plugin_dir_path( __FILE__ ));
function formmplugin_menu() {
add_menu_page("Form Listing", "Form Listing","manage_options", "list", "uploadfile",plugins_url('/formplugin/img/generic.png'));
......@@ -16,6 +20,24 @@ function formmplugin_menu() {
}
add_action( 'admin_init','enqueue_form_plugin_styles');
add_action( 'admin_init','enqueue_form_plugin_scripts');
function enqueue_form_plugin_styles() {
wp_enqueue_style('datatable-css',PLUGIN_URL.'formplugin/css/datatable.min.css' , array(), '1.0.0');
}
function enqueue_form_plugin_scripts(){
wp_enqueue_script('script-js', PLUGIN_URL.'formplugin/js/script.js', array('jquery'));
wp_enqueue_script('datatable-js', PLUGIN_URL.'formplugin/js/datatable.min.js', array('jquery'),'', true);
}
add_action("admin_menu", "formmplugin_menu");
function uploadfile(){
......
jQuery(document).ready(function(){
jQuery('#form_list').DataTable({
paging: false
});
});
\ No newline at end of file
......@@ -16,7 +16,7 @@
<input type="submit" id="search-submit" class="button" value="Search">
</p>
</form>
<table class="wp-list-table widefat fixed striped posts">
<table class="wp-list-table widefat fixed striped posts" id="form_list">
<thead>
<tr>
<th width="5%">Id</th>
......@@ -105,4 +105,5 @@
</tbody>
</table>
</div>
\ No newline at end of file
</div>
\ No newline at end of file
<?php
$page_name = $_SERVER['REQUEST_URI'];
include_once('config/config.php');
include_once('php_includes/TABLES.php');
include_once('php_includes/custom-functions.php');
$customer_id = isset($_SESSION['GSESS_CUSTOMERID'])? $_SESSION['GSESS_CUSTOMERID']:'';
if(isset($_POST['view'])){
// $con = mysqli_connect("localhost", "root", "", "notif");
if($_POST["view"] != '')
{
$update_query = "UPDATE like_data SET comment_status = 1 WHERE receiverid=".$customer_id." AND comment_status=0";
mysqli_query($con, $update_query);
}
if(!empty($customer_id)){
$query = "SELECT * FROM like_data WHERE receiverid=".$customer_id." ORDER BY id DESC LIMIT 5";
$result = mysqli_query($con, $query);
$output = '';
if(mysqli_num_rows($result) > 0)
{
while($row = mysqli_fetch_array($result))
{
$query_user = "SELECT * FROM user_details WHERE user_id =".$row["senderid"]." ";
$result_sender = mysqli_query($con, $query_user);
while($row_user = mysqli_fetch_array($result_sender))
{
$output .= '
<li>
<a href="other-profile.php?id='.$row_user['user_id'].'">
<strong>'.$row_user["first_name"].'</strong><br />
<small><em>'.$row_user["last_name"].'</em></small>
</a>
</li>
';
}
}
}
else{
$output .= '
<li><a href="#" class="text-bold text-italic">No Notification Found</a></li>';
}
$status_query = "SELECT * FROM like_data WHERE receiverid=".$customer_id." AND comment_status=0";
$result_query = mysqli_query($con, $status_query);
$count = mysqli_num_rows($result_query);
$data = array(
'notification' => $output,
'unseen_notification' => $count
);
echo json_encode($data);
}
}
?>
\ No newline at end of file
<!--Footer Starts-->
<footer>
<div class="footer-menu newfooter">
......@@ -288,5 +289,8 @@ function onScroll(event) {
<?php wp_footer(); ?>
<!--Footer Ends-->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5d0879b5de64ee42"></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>
</body>
</html>
\ No newline at end of file
......@@ -287,4 +287,19 @@ function video() {
register_post_type( 'video', $args );
}
add_action( 'init', 'video', 0 );
\ No newline at end of file
add_action( 'init', 'video', 0 );
register_taxonomy(
'videos_categories',
'video',
array(
'hierarchical' => true,
'label' => 'Categories',
'query_var' => true,
'rewrite' => array(
'slug' => 'video'
)
)
);
register_taxonomy_for_object_type( 'categories', 'video' );
<?php get_header(); ?>
<div id="content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article>
......
......@@ -557,7 +557,7 @@ header .top_header>.row {
position: absolute;
left: 0;
top: 45px;
background: url(http://localhost/marcellus/wp-content/uploads/2018/11/about-section-bg.png) no-repeat 0;
background: url(https://marcellus.in/wp-content/uploads/2018/11/about-section-bg.png) no-repeat 0;
background-position: left;
width: 419px;
height: 465px;
......@@ -1404,7 +1404,7 @@ section.videowrap a.more-detail:hover {
@media screen and (min-width:992px) {
.main-menu #menu-main-menu>li>a:before,
#menu-main-menu>li.current-menu-item a:before {
#menu-main-menu>li.current-menu-item.current-menu-parent a:before {
background: #2e3192;
content: '';
height: 2px;
......@@ -1558,7 +1558,7 @@ section.videowrap a.more-detail:hover {
position: absolute;
left: 0;
top: 100px;
background: url(http://localhost/marcellus/wp-content/uploads/2018/11/about-section-bg.png) no-repeat 0;
background: url(https://marcellus.in/wp-content/uploads/2018/11/about-section-bg.png) no-repeat 0;
background-position: left;
width: 180px;
height: 245px;
......@@ -1688,7 +1688,7 @@ section.videowrap a.more-detail:hover {
position: absolute;
left: 0;
top: 100px;
background: url(http://localhost/marcellus/wp-content/uploads/2018/11/about-section-bg.png) no-repeat 0;
background: url(https://marcellus.in/wp-content/uploads/2018/11/about-section-bg.png) no-repeat 0;
background-position: left;
width: 180px;
height: 245px;
......@@ -2541,7 +2541,7 @@ img.our-team-image {
}
.outerPopup .close-popup {
background: url(http://localhost/marcellus/wp-content/uploads/2019/09/close-ico.png) no-repeat center right;
background: url(https://marcellus.in/wp-content/uploads/2019/09/close-ico.png) no-repeat center right;
padding-right: 24px;
display: block;
float: right;
......@@ -3927,17 +3927,19 @@ a.view-detail:hover:after {
}
.complain_status .sec_title {
margin: 20px 0;
padding: 10px 0;
margin: 0px;
font-size: 12px;
}
.complaint_status_wrapper.fixed {
position: fixed;
bottom: 5px;
bottom: -1px;
left: 0px;
right: 0px;
margin-left: auto;
margin-right: auto;
max-width: 800px;
max-width: 960px;
box-shadow: 0px -3px 10px 5px rgba(0, 0, 0, .10);
z-index: 100;
padding: 0px;
......@@ -3945,7 +3947,7 @@ a.view-detail:hover:after {
.complaint_status_wrapper .complaint_swi {
text-align: center;
padding: 20px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-weight: normal;
background: #fff;
}
......@@ -3962,6 +3964,7 @@ a.view-detail:hover:after {
border-radius: 50%;
box-shadow: 0px -3px 10px 5px rgba(0, 0, 0, .10);
display: none;
transition: .3s all;
}
.complaint_status_wrapper.fixed .closebox {
......@@ -3970,6 +3973,7 @@ a.view-detail:hover:after {
.complain_status .closebox.up {
transform: rotate(-180deg);
top: -32px;
}
.complaint_status_wrapper table {
......@@ -3981,4 +3985,65 @@ a.view-detail:hover:after {
.complaint_status_wrapper td {
font-weight: normal;
font-size: 12px;
}
\ No newline at end of file
padding: .35rem .25rem;
}
.media_coverage_con{position: relative;}
.media-cover-wrap { position: relative; height: 100%; }
.media-cover-wrap p.media-description{min-height: 1px;}
@media (min-width: 768px){
.media-cover-content li {
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
position: relative;
margin: 0 0px 50px;
padding: 0px 15px;
}
}
.infoOuter{
background: #ffffff;
margin-bottom:20px;
}
.infoContent{
position: relative;
}
.infoContent p {
font-size: 16px;
color: #333;
font-family: 'LatoRegular';
text-align: center;
margin: 0px;
padding-top: 25px;
padding-bottom: 25px;
}
.infoContent p a{
color: #007bff;
}
.infoContent p a:hover{
color: #0056b3;
}
.menu{
padding-left: 0px;
padding-right: 0px;
}
.main-menu #menu-main-menu li a {
padding: 10px 8px;
}
#menu-main-menu .menu-item-has-children>a:after {
width: 10px;
height: 15px;
background-size: contain;
background-position: center;
}
.main-menu #menu-main-menu li.menu-item-has-children a {
padding-right: 20px;
}
......@@ -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(); ?>
......@@ -8,7 +8,11 @@
<div id="full-content">
<div class="container infoOuter">
<div class="infoContent">
<p>"Our" Investing Through A Crisis: A Handbook From Marcellus Investment Managers" is now available as an e-book on Amazon (<a href="https://www.amazon.in/dp/B08BG9WT5S" target="_blank">https://www.amazon.in/dp/B08BG9WT5S</a>). All royalty receipts from this book will be donated to <a href="https://jaivakeel.org/" target="_blank">Jai Vakeel Foundation and Research Centre</a> – one of India’s oldest and largest non-profits serving children and adults with Intellectual Developmental Disabilities (IDD). Buy now and support a noble cause"</p>
</div>
</div>
<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'); ?>
......
......@@ -16,8 +16,8 @@ get_header();
</section>
<div class="container">
<div class="row media-cover-content">
<ul class="clearfix">
<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');
$loop = new WP_Query($args);
......
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