Commit 2924e1f1 by Manzar Hussain

form plugin update

parent 2e59007d
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
// ** MySQL settings - You can get this info from your web host ** // // ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */ /** The name of the database for WordPress */
define('DB_NAME', 'marcellus'); define('DB_NAME', 'mrcelus');
/** MySQL database username */ /** MySQL database username */
define('DB_USER', 'root'); define('DB_USER', 'root');
/** MySQL database password */ /** MySQL database password */
define('DB_PASSWORD', 'password'); define('DB_PASSWORD', '');
/** MySQL hostname */ /** MySQL hostname */
define('DB_HOST', 'localhost'); define('DB_HOST', 'localhost');
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
*/ */
// Add menu // Add menu
define('PLUGIN_URL', plugins_url()."/");
define('PLUGIN_DIR_URL', plugin_dir_path( __FILE__ ));
function formmplugin_menu() { function formmplugin_menu() {
add_menu_page("Form Listing", "Form Listing","manage_options", "list", "uploadfile",plugins_url('/formplugin/img/generic.png')); add_menu_page("Form Listing", "Form Listing","manage_options", "list", "uploadfile",plugins_url('/formplugin/img/generic.png'));
...@@ -16,6 +20,24 @@ function formmplugin_menu() { ...@@ -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"); add_action("admin_menu", "formmplugin_menu");
function uploadfile(){ function uploadfile(){
......
jQuery(document).ready(function(){
jQuery('#form_list').DataTable({
paging: false
});
});
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<input type="submit" id="search-submit" class="button" value="Search"> <input type="submit" id="search-submit" class="button" value="Search">
</p> </p>
</form> </form>
<table class="wp-list-table widefat fixed striped posts"> <table class="wp-list-table widefat fixed striped posts" id="form_list">
<thead> <thead>
<tr> <tr>
<th width="5%">Id</th> <th width="5%">Id</th>
...@@ -105,4 +105,5 @@ ...@@ -105,4 +105,5 @@
</tbody> </tbody>
</table> </table>
</div> </div>
\ No newline at end of file
\ 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 Starts-->
<footer> <footer>
<div class="footer-menu newfooter"> <div class="footer-menu newfooter">
...@@ -288,5 +289,8 @@ function onScroll(event) { ...@@ -288,5 +289,8 @@ function onScroll(event) {
<?php wp_footer(); ?> <?php wp_footer(); ?>
<!--Footer Ends--> <!--Footer Ends-->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5d0879b5de64ee42"></script> <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> </body>
</html> </html>
\ No newline at end of file
...@@ -287,4 +287,19 @@ function video() { ...@@ -287,4 +287,19 @@ function video() {
register_post_type( 'video', $args ); register_post_type( 'video', $args );
} }
add_action( 'init', 'video', 0 ); add_action( 'init', 'video', 0 );
\ No newline at end of file
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(); ?> <?php get_header(); ?>
<div id="content"> <div id="content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article> <article>
......
...@@ -557,7 +557,7 @@ header .top_header>.row { ...@@ -557,7 +557,7 @@ header .top_header>.row {
position: absolute; position: absolute;
left: 0; left: 0;
top: 45px; 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; background-position: left;
width: 419px; width: 419px;
height: 465px; height: 465px;
...@@ -1404,7 +1404,7 @@ section.videowrap a.more-detail:hover { ...@@ -1404,7 +1404,7 @@ section.videowrap a.more-detail:hover {
@media screen and (min-width:992px) { @media screen and (min-width:992px) {
.main-menu #menu-main-menu>li>a:before, .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; background: #2e3192;
content: ''; content: '';
height: 2px; height: 2px;
...@@ -1558,7 +1558,7 @@ section.videowrap a.more-detail:hover { ...@@ -1558,7 +1558,7 @@ section.videowrap a.more-detail:hover {
position: absolute; position: absolute;
left: 0; left: 0;
top: 100px; 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; background-position: left;
width: 180px; width: 180px;
height: 245px; height: 245px;
...@@ -1688,7 +1688,7 @@ section.videowrap a.more-detail:hover { ...@@ -1688,7 +1688,7 @@ section.videowrap a.more-detail:hover {
position: absolute; position: absolute;
left: 0; left: 0;
top: 100px; 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; background-position: left;
width: 180px; width: 180px;
height: 245px; height: 245px;
...@@ -2541,7 +2541,7 @@ img.our-team-image { ...@@ -2541,7 +2541,7 @@ img.our-team-image {
} }
.outerPopup .close-popup { .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; padding-right: 24px;
display: block; display: block;
float: right; float: right;
...@@ -3927,17 +3927,19 @@ a.view-detail:hover:after { ...@@ -3927,17 +3927,19 @@ a.view-detail:hover:after {
} }
.complain_status .sec_title { .complain_status .sec_title {
margin: 20px 0; padding: 10px 0;
margin: 0px;
font-size: 12px;
} }
.complaint_status_wrapper.fixed { .complaint_status_wrapper.fixed {
position: fixed; position: fixed;
bottom: 5px; bottom: -1px;
left: 0px; left: 0px;
right: 0px; right: 0px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
max-width: 800px; max-width: 960px;
box-shadow: 0px -3px 10px 5px rgba(0, 0, 0, .10); box-shadow: 0px -3px 10px 5px rgba(0, 0, 0, .10);
z-index: 100; z-index: 100;
padding: 0px; padding: 0px;
...@@ -3945,7 +3947,7 @@ a.view-detail:hover:after { ...@@ -3945,7 +3947,7 @@ a.view-detail:hover:after {
.complaint_status_wrapper .complaint_swi { .complaint_status_wrapper .complaint_swi {
text-align: center; text-align: center;
padding: 20px 0px 0px 0px; padding: 0px 0px 0px 0px;
font-weight: normal; font-weight: normal;
background: #fff; background: #fff;
} }
...@@ -3962,6 +3964,7 @@ a.view-detail:hover:after { ...@@ -3962,6 +3964,7 @@ a.view-detail:hover:after {
border-radius: 50%; border-radius: 50%;
box-shadow: 0px -3px 10px 5px rgba(0, 0, 0, .10); box-shadow: 0px -3px 10px 5px rgba(0, 0, 0, .10);
display: none; display: none;
transition: .3s all;
} }
.complaint_status_wrapper.fixed .closebox { .complaint_status_wrapper.fixed .closebox {
...@@ -3970,6 +3973,7 @@ a.view-detail:hover:after { ...@@ -3970,6 +3973,7 @@ a.view-detail:hover:after {
.complain_status .closebox.up { .complain_status .closebox.up {
transform: rotate(-180deg); transform: rotate(-180deg);
top: -32px;
} }
.complaint_status_wrapper table { .complaint_status_wrapper table {
...@@ -3981,4 +3985,65 @@ a.view-detail:hover:after { ...@@ -3981,4 +3985,65 @@ a.view-detail:hover:after {
.complaint_status_wrapper td { .complaint_status_wrapper td {
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
} padding: .35rem .25rem;
\ No newline at end of file }
.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(); ?> ...@@ -13,7 +13,7 @@ get_header(); ?>
</section> </section>
<?php //endwhile; endif; ?> <?php //endwhile; endif; ?>
</div> </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">!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">window.Beacon('init', '9aba6dde-070a-4773-8f91-db70c05e430c')</script> -->
<?php get_footer(); ?> <?php get_footer(); ?>
...@@ -8,7 +8,11 @@ ...@@ -8,7 +8,11 @@
<div id="full-content"> <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"> <section style="background: url('<?php echo site_url();?>/wp-content/uploads/2018/11/banner_bg.png');" class="banner">
<div class="container home-banner-content"> <div class="container home-banner-content">
<?php the_field('home-banner-content'); ?> <?php the_field('home-banner-content'); ?>
......
...@@ -16,8 +16,8 @@ get_header(); ...@@ -16,8 +16,8 @@ get_header();
</section> </section>
<div class="container"> <div class="container">
<div class="row media-cover-content"> <div class="media-cover-content">
<ul class="clearfix"> <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' =>3, 'paged' => $paged, 'orderby' => 'id', 'order' => 'DESC');
$loop = new WP_Query($args); $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