<?php
/*---------Multicart 2.0 Upgradation starts----------*/
include_once("./classes/cls_utils.php");
$currencylistObj  =     Utils::getActiveCurrencyList();
if($currencylistObj->status==SUCCESS)
    {
        $currencylistObjVals    =  $currencylistObj->data;
    }

$username_flag = 1;
$password_flag = 0;

$currency_selected = "";
 //if (function_exists('session_unregister')) 
    //(isset($_SESSION['SESS_currency_type']))?session_unregister('SESS_currency_type'):session_register('SESS_currency_type');;

if(isset($_POST['currency_type'])) {

    //activateCurrencyType($_POST['currency_type']);
    $currency_type = $_POST['currency_type'];

    $_SESSION['SESS_currency_type'] = $currency_type;

    echo "<script type='text/javascript'> window.location='".$_SERVER['HTTP_REFERER']."';</script>";

}
else {

    if (!isset($_SESSION['SESS_currency_type']) OR $_SESSION['SESS_currency_type'] == "") {

        /*$_SESSION['SESS_currency_type']	= "1";
				$currency_type					= "1";*/
        /*$select_currency_id = "SELECT ncurrency_id FROM ".$tableprefix."currency_master WHERE vactive = 'Y'";
				$result_currency_id = mysql_query($select_currency_id) or die(mysql_error());
				$currency_rowid = mysql_fetch_assoc($result_currency_id);
				$_SESSION['SESS_currency_type']	= $currency_rowid['ncurrency_id'];
				$currency_type = $currency_rowid['ncurrency_id'];*/

        $select_currency_id = "SELECT ncurrency_id,vcurrency_code FROM ".$tableprefix."currency_master WHERE vactive = 'Y'";
        $result_currency_id = mysql_query($select_currency_id) or die(mysql_error());
        $currency_rowid = mysql_fetch_assoc($result_currency_id);
        $_SESSION['SESS_currency_type']	= $currency_rowid['vcurrency_code'];
        $currency_type = $currency_rowid['vcurrency_code'];

    }
    /*$select_currency_id = "SELECT ncurrency_id FROM ".$tableprefix."currency_master WHERE vactive = 'Y'";
			$result_currency_id = mysql_query($select_currency_id) or die(mysql_error());
			$currency_rowid = mysql_fetch_assoc($result_currency_id);

			$currency_type = $currency_rowid['ncurrency_id'];*/
}


/*---------Multicart 2.0 Upgradation ends----------*/


if(isset($_POST['loginbox'])) {

    $txtUserName = $_POST["txtUserName"];

    $txtPassword = $_POST["txtPassword"];
    /*$sql=" SELECT user_id,user_name,password FROM ".$tableprefix."users WHERE user_name='".addslashes($txtUserName)."' AND password = '".addslashes(md5($txtPassword))."' AND deleted = 'N'";
	$result=mysql_query($sql) or die(mysql_error());
	if(mysql_num_rows($result) > 0 ){
			$row = mysql_fetch_array($result);
			$message="Success!";
			$_SESSION["sess_username"] = $row["user_name"];
			$_SESSION["sess_userid"] = $row["user_id"];*/

    /*----------Multicart 2.0 Upgradation starts-----------*/


    /*---------Checking the password----------------*/

    $select_password = "SELECT password
                              FROM ".$tableprefix."users
                             WHERE LOWER(user_name) = ".strtolower(GetSQLValueString($txtUserName,"text"))."
                               AND deleted = 'N'";

    $result_password = mysql_query($select_password) or die(mysql_error());
    if(mysql_num_rows($result_password) > 0) {

        $password_row = mysql_fetch_assoc($result_password);

        if(GetSQLValueString($password_row['password'],"text") != GetSQLValueString(md5($txtPassword),"text")) {

            //$messagelog = "Invalid password !!";
            $password_flag = 1;

        }


    }

    //else
    //{

    /*---------Checking the username----------------*/

    $select_username = "SELECT user_name FROM ".$tableprefix."users
							WHERE password = ".GetSQLValueString(md5($txtPassword),"text").
            " AND deleted = 'N'";

    $result_username = mysql_query($select_username) or die(mysql_error());
    if(mysql_num_rows($result_username) > 0) {

        while($username_row = mysql_fetch_array($result_username)) {

            if(strtolower(GetSQLValueString($username_row['user_name'],"text")) == strtolower(GetSQLValueString($txtUserName,"text"))) {
                $username_flag = 0;
            }

            /*if(GetSQLValueString($username_row['user_name'],"text") != GetSQLValueString($txtUserName,"text"))
				{
				
					$messagelog = "Invalid username !!";
					$username_flag = 1;
				
				}
				else
				{
				
					$username_flag = 0;
				
				}*/
        }


    }

    if($username_flag == 1 && $password_flag == 0) {
        $messagelog = INVALID_USERNAME_TEXT;
    }

    if($username_flag == 1 && $password_flag == 1) {
        $messagelog = INVALID_PASSWORD_TEXT;
    }

    //}

    if($username_flag != 1 && $password_flag != 1) {

        $sql=" SELECT user_id,user_name,password FROM ".$tableprefix."users
				WHERE user_name='".addslashes($txtUserName)."' AND password = '".addslashes(md5($txtPassword))."' AND deleted = 'N'";
        $result=mysql_query($sql) or die(mysql_error());
        if(mysql_num_rows($result) > 0 ) {
            $row = mysql_fetch_array($result);
            $message="Success!";
            $_SESSION["sess_username"] = $row["user_name"];
            $_SESSION["sess_userid"] = $row["user_id"];

            /*---------------Multicart 2.0 Upgradation------------------*/

            /*-------function call to manage the different sessions--------*/

            manageSession(3);

            /*---------------Multicart 2.0 Upgradation------------------*/

            if(!isVisitorCartEmpty(session_id())) {
                mergeVisitorCartToUserCart(session_id(),$row["user_id"]);
            }
            if($action!= "") {
                if($action == "checkout") {
                    echo "<script>location.href='viewcart.php';</script>";
                    //header("Location:viewcart.php");
                    exit;
                }
            }
            else {

                /*--------Multicart 2.0 starts-----------*/

                /*echo "<script>location.href='usermain.php';</script>";*/

                $currentPage=GetCurrentPageName();

                $referer = $_SERVER['HTTP_REFERER'];

                echo "<script>location.href='".$referer."';</script>";

                /*--------Multicart 2.0 ends-----------*/

                //header("Location:usermain.php");
                exit;
            }

        }
        else {
            $messagelog = INVALID_USERNAME_PASSWORD_TEXT;

        }

    }

    /*----------Multicart 2.0 Upgradation ends-----------*/

}else if(isset($_POST['newuser'])) {
    echo "<script>location.href='register.php';</script>";
    exit;



}
include_once "./classes/cls_user.php";

//Favourites count check
$seller_favourites_count = 0;
if (isset($_SESSION["sess_userid"]) and $_SESSION["sess_userid"] != "") {
    $userid = $_SESSION["sess_userid"];
    $seller_favourites_count   = User::seller_favourites_count($userid,$artistid);
}
?>
<script language="javascript">
    function clearText(thefield,id){
        if (thefield.defaultValue==thefield.value)
            thefield.value = ""
        identity=document.getElementById(id);
        identity.className='textfield';
    }

    function openuserhelp()
    {

        var url = './help/userhelp/index.html'
        window.open(url,"Help","scrollbars=yes");
    }

</script>
                <link href="<?php echo $site_url; ?>/themes/responsive/css/bootstrap.min.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/themes/responsive/css/bootstrap.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/style/bootstrap-modal-bs3patch.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/style/bootstrap-modal.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/themes/responsive/css/font-awesome.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/themes/responsive/css/font-awesome.min.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/themes/responsive/css/responsive-tables.css" rel="stylesheet" type="text/css">
                <link href="<?php echo $site_url; ?>/themes/responsive/css/responsivemobilemenu.css" rel="stylesheet" type="text/css">
				<link href="<?php echo $site_url; ?>/themes/responsive/css/commonstyle.css" rel="stylesheet" type="text/css">
               <!-- <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/themes/responsive/js/jquery-1.10.2.js"></script>-->
                <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/themes/responsive/js/bootstrap.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/themes/responsive/js/bootstrap.min.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/js/bootstrap-modalmanager.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/js/bootstrap-modal.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/themes/responsive/js/responsivemobilemenu.js"></script>
                <script type="text/javascript" language="javascript" src="<?php echo $site_url; ?>/themes/responsive/js/responsive-tables.js"></script>
<!--Hidden Fields for Ajax Data  Reference Do Not Delete-->
<input type="hidden" name="siteurl" id="siteurl" value="<?php echo SITE_URL;?>">
<input type="hidden" name="USER_ID"  id="USER_ID" value="<?php echo $_SESSION["sess_userid"];?>">
<input type="hidden" value="<?php echo $artistid;?>" name="SELLER_ID" id="SELLER_ID">
<!--End Hidden Settings-->
<script src="<?php echo SITE_URL?>/js/common.js"></script>
<link href="<?php echo SITE_URL; ?>/themes/<?php echo $active_template[5] ?>/jquery-confirm.css" rel="stylesheet" type="text/css">
<script src="<?php echo SITE_URL?>/js/jquery-confirm.js"></script>
<div id="wrapper">
	<div class="container">
			<div class="row">
				<div class="col-sm-6 col-lg-4 col-md-4 ">
					<div class="logo_sec">
						<div class="logo">
							<a href="<?php echo SITE_URL ?>/index.php">
								<img src="<?php echo SITE_URL ?>/banners/<?php echo $logoimage ?>" alt=""  border="0" />
							</a>
						</div>
					</div>
				</div>
				<div class="col-sm-12 col-lg-8 col-md-8">
					<section>
						<div class="header_rt_top">
							<div class="row">
							
							<div class="header_rt_top_item_rt">
								<div class="col-sm-12 col-lg-9 col-md-9">
									<div class="hdr_toprt_leftsec">
										<div class="header_rt_top_item_mycart">
											<a href="<?php echo SITE_URL ?>/viewcart.php">
											<?php echo CART_TEXT;?> 
											<span>
												<?php
															if ($_SESSION["sess_userid"] != "") {
																echo GetUserCartCount($_SESSION["sess_userid"]);
															} else {
																echo GetVisitorCartCount(session_id());
															}
												?> 
											</span>
											</a>
										</div>
										<div class="header_rt_top_item_login">
											<?php if($userLoggedoutmsg!=''){ ?>
            
															<!--<span class="success_message" align="left"><?php echo $messagelog; ?></span>-->
															
															<?php } ?>
											   
									<?php
									if (isset($_SESSION["sess_userid"]) and $_SESSION["sess_userid"] != "") {
										
									} //else if (basename($_SERVER['PHP_SELF']) != "login.php" and $_SESSION['guest_login'] == '') {
									else if ($_SESSION['guest_login'] == '') {
										?>
										
											<a href="<?php echo SITE_URL?>/login.php">Login</a> / <a href="<?php echo SITE_URL?>/register.php">Sign Up</a>
											
													<?php /* User loginbox
													<div class="login_sec"><!-- onSubmit="return checkLoginForm();" -->
														<form name="frmLogin" action="<?php echo SITE_URL ?>/index.php" method="POST">
															
															<h6><?php echo USER_LOGIN_TEXT;?><span><?php echo $messagelog; ?></span></h6>
									
									
															<input name="txtUserName" type="text"  class="textfield2" value="" placeholder="<?php echo USERNAME_TEXT;?>" size="20"  id="txtUserName"/>
									
															<input name="txtPassword" type="password"  class="textfield2" value="" placeholder="<?php echo PASSWORD_TEXT;?>" size="20" id="txtPassword"/>
									
															<input name="loginbox" type="submit" class="button" value="<?php echo SUBMIT_BUTTON;?>" />
									
														</form>
									
														<p>&nbsp;<a href="register.php"><?php echo REGISTRATION_LINK_TEXT;?></a> &nbsp;|&nbsp;
															<a href="forgotpassword.php"><?php echo FORGOTPASSWORD_LINK_TEXT;?></a></p>
														<div class="clear"></div>
													</div>
													
													*/ ?>
													
													
									<?php } ?>
									<?php
									if ($_SESSION["sess_userid"] != "" && $_SESSION['guest_login'] == '') {		
									
										$select_user_name = "SELECT first_name,last_name,password FROM " . $tableprefix . "users WHERE user_id = " . $_SESSION["sess_userid"];									
										$result_user_name = mysql_query($select_user_name) or die(mysql_error());									
										if (mysql_num_rows($result_user_name) > 0) {									
											$user_name_row = mysql_fetch_assoc($result_user_name);
											?>
									
														<div class="login_sec2">
																<a href="<?php echo SITE_URL ?>/myaccount.php" class=""><?php echo $user_name_row['first_name'] ?>&nbsp;<?php echo $user_name_row['last_name'] ?></a> /
									
															
															<a href="<?php echo SITE_URL ?>/logout.php" class=""><?php echo LOGOUT_TEXT; ?></a>
									
														</div>
									
														<?php
													}
												} else { 
                                                                                                 
                                                                                                 
													if ($_SESSION['guest_login'] != '' || isset($_GET['guest_login']) ) {  
														?>
														<div class="login_sec2">
															<?php echo GUEST; ?>/
									
															<a href="<?php echo SITE_URL ?>/logout.php" ><?php echo LOGOUT_TEXT; ?></a>
														</div>
									
											<?php
										}
									}
									?>
									
												<?php /*
												
												<?php
												if (basename($_SERVER['PHP_SELF']) == "login.php" && $_SESSION["sess_userid"] == "") {
													?>
									
													<div class="login_sec"> &nbsp;</div>
									
												<?php } ?>
									
												*/ ?>
										</div>
								<div class="clear"></div>
								</div>
								
							</div>
							<div class="col-sm-12 col-lg-3 col-md-3">
								<div class="header_rt_top_currency">
									<?php
										if ($adminCurrency['currency_code'] != '') {
											$currency_code = $adminCurrency['currency_code'];
										} else {
											$currency_code = 'USD';
										}
				
										if ($_SESSION['SESS_currency_type'] == '') {
											$_SESSION['SESS_currency_type'] = $adminCurrency['currency_code'];
										}
										?>
									<input type="hidden" value="<?php echo $currency_code; ?>" name="currency_type">
											<?php
											if (getSettingsValue('enable_multicurrency') == 'Y') {
												?>
										<form name="frmCurrencyType" method="post">
				
											<div class="topnavsec1">
											
												<select name="currency_type" class="topsearch_fld" onChange="Javascript:document.frmCurrencyType.submit();">
													<?php
													$currency_type = $_SESSION['SESS_currency_type'];
												//echo $currency_type;exit;
													if ($currency_type == '') {
														$currency_type = 'USD';
													}
                                                                                                                foreach($currencylistObjVals as $currency_row ) {

														if ($currency_type == $currency_row->vcurrency_code) {

															$currency_selected = "selected";
														} else {
															$currency_selected = "";
														}
														?>
														<option value="<?php echo $currency_row->vcurrency_code ?>" <?php echo $currency_selected ?>><?php echo $currency_row->vcurrency_name ?></option>
				
											<?php
										}
										?>
												</select>
											</div>
				
										</form>
									<?php } ?>
									
									</div>
								</div>
							</div>
							<div class="clear"></div>
							</div>
						</div>
					</section>
					<div class="clear"></div>
					<section>
						<?php
						if (strstr($_SERVER['SCRIPT_FILENAME'], 'index.php') == TRUE) {
							$link_selected_index = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'categorydetail.php') == TRUE) {
							$link_selected_category = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'viewcart.php') == TRUE) {
							$link_selected_cart = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'postfeedback.php') == TRUE) {
							$link_selected_feedback = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'faq.php') == TRUE) {
							$link_selected_faq = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'about_us.php') == TRUE) {
							$link_selected_aboutus = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'contact_us.php') == TRUE) {
							$link_selected_contactus = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'help.php') == TRUE) {
							$link_selected_help = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'allseller.php') == TRUE) {
							$link_selected_sellers = "activelink";
						} elseif (strstr($_SERVER['SCRIPT_FILENAME'], 'site-feedback.php') == TRUE) {
							$link_selected_feedback = "activelink";
						}
						?>
					<nav class="navbar navbar-inverse" role="navigation">
						<div class="navbar-header">
							<button type="button" class="navbar-toggle toglemenu_blk" data-toggle="collapse" data-target=".navbar-ex1-collapse">
								<span class="sr-only">Toggle navigation</span>
								<span class="fleft">My Menu</span>
								<span class="togglemenu_rtsec">
									<span class="icon-bar"></span>
									<span class="icon-bar"></span>
									<span class="icon-bar"></span>
								</span>
							</button>
							
						</div>
						<!-- Collect the nav links, forms, and other content for toggling -->
						<div class="collapse navbar-collapse navbar-ex1-collapse">
							<ul class="nav navbar-nav">
								<li><a href="<?php echo SITE_URL ?>/index.php" class="<?php echo $link_selected_index ?>"><?php echo HOME_LINK;?></a></li>
								<li><a href="<?php echo SITE_URL ?>/categorydetail.php" class="<?php echo $link_selected_category ?>"><?php echo CATALOG_LINK;?></a></li>								
								<li><a href="<?php echo SITE_URL ?>/allseller.php" class="<?php echo $link_selected_sellers; ?>"><?php echo SELLER_LINK;?></a></li>
													<?php
													$enableAffiliate = getSettingsValue('enable_affiliates');
													if ($enableAffiliate == 'Y') {
														?>
									<li><a href="<?php echo SITE_URL ?>/affiliates/login.php"><?php echo AFFILIATES_LINK;?></a></li>
													<?php } ?>							
								
								<li><a href="<?php echo SITE_URL ?>/site-feedback.php" class="<?php echo $link_selected_feedback ?>"><?php echo SITE_FEEDBACK_LINK;?></a></li>
								<li><a href="<?php echo SITE_URL ?>/help.php" class="<?php echo $link_selected_help ?>"><?php echo HELP_LINK;?></a></li>
							</ul>
						</div>
						<!-- /.navbar-collapse -->
					</nav>
					</section>
				</div>
			</div>
        </div>
        <!-- /.container -->
		<div class="clear"></div>
	 	<!-- .greycat -->
		<div class="greycat">
		<div class="container">
                    <div class="row">
                        <div class="col-sm-6 col-lg-8 col-md-8 ">
                            <?php
                            include_once("includes/categorylist.php");
                            ?>
                        </div>
                        <div class="col-sm-6 col-lg-4 col-md-4 ">
                            <form action="<?php echo $site_url;?>/search.php" method="get" name="frmSearch">
                                <input name="chkProductName" type="hidden" value="on">
                                <input name="chkIncludeSubcategories" type="hidden" value="on">
                                <input name="sd" type="hidden" value="1">
                                <div align="right" class="search_area">
                                    <input type="text" class="search_box" name="txtSearch" value="<?php echo stripslashes($_REQUEST["txtSearch"]); ?>" placeholder="<?php echo SEARCH_TEXT ?>" />
                                    <input name="Submit" type="submit" class="search_btn"   value=""/>
                                </div>
                            </form>
                        </div>
                    </div>
		</div>
	</div>
	<!-- /.greycat -->
    <!-- Content Area Start -->

    <div class="contentarea" <?php if($newThemeStyle!=''){?> style="<?php echo $newThemeStyle?>" <?php }?>>

        <!-- content Area Left start -->
 <div class="container">
        <div class="row">
            <div class="col-sm-12 col-lg-3 col-md-3 ">		
        	<div class="seller_left" <?php if($newThemeStyle!=''){?> style="background-color:#ccc;" <?php }?>>
            <div class="seller_imgndetails">
                <div class="seller_img">
					<?php echo $imageurl;?>
                </div>
                <div class="seller_details">
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="sllr_tble" align="center">
                        <tr>
                            <td valign="top" align="left"><p class="seller_name"><?php echo $txtArtistFullName;?></p></td>
                        </tr>
                        <tr>
                            <td valign="top" align="left"><p class="seller_name1"><?php echo $txtArtistCompany;?></p></td>
                        </tr>
                        <tr>
                        	<?php $state = getCodeValue($txtArtistState,2,$txtArtistCountry); ?>
                            <td valign="top" align="left"><?php echo $state!=''?$state:$txtArtistState;?></td>
                        </tr>
						<tr>
                            <td valign="top" align="left"><?php echo  getCodeValue($txtArtistCountry,1);?></td>
                        </tr>
<?php   $sellerrating	= GetSellerAverageRating($artistid); ?>

<?php if($sellerrating>0) { ?>
                        <tr>
                            <td valign="top" align="left" class="ratings1">

                                <div> <div class="rating_<?php echo $sellerrating ;?>"></div></div></td>
                        </tr>
    <?php } ?>
                        <!--- Social media tools--->
                        <tr><td>
                 <div class="socialmediaicons_detailpage">
                    <div class="">
                        <!-- Facebook Share Button -->
                        <?php
                        $sellerNameShare =htmlspecialchars(strip_tags(stripslashes($txtArtistFullName)), ENT_QUOTES);
                        if(getSettingsValue('enable_fbshare')=='Y') {
                                $fbShareURL     = generalMethods::getSellerNavigationURL($artistid,$storename,$artist_name,$enable_seller_friendly);                                
                                $fbShareCode    = generalMethods::faceBookShareCode($fbShareURL);
                            ?>
                            <div class="col-lg-12 col-md-12 no-padding ">
                        <div class="fb-share"><?php echo $fbShareCode;?></div>
                        <div class="fb-like" data-href="<?php echo generalMethods::getSellerNavigationURL($artistid,$storename,$artist_name,$enable_seller_friendly); ?>" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div>
                            <?php } ?>
                        <!-- End Facebook Share Button -->
                        <!-- Tweet Button -->
                        <?php if(getSettingsValue('enable_tweet')=='Y') { // ?>
                        <div class="tweetbutton">
                            <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="<?php echo $sellerNameShare ; ?>" data-url="<?php echo generalMethods::getSellerNavigationURL($artistid,$storename,$artist_name,$enable_seller_friendly); ?>" data-counturl="<?php echo generalMethods::getSellerNavigationURL($artistid,$storename,$artist_name,$enable_seller_friendly); ?>" data-via="<?php echo SITE_NAME; ?>">Tweet</a>
                            <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
                        </div>
                            <?php } ?>
                            
                        <!-- End Tweet Button -->
                        </div>
                        <div class="col-lg-12 col-md-12 top-mrg no-padding">
                        <!-- Google Plus Share Button -->
                        <?php if(getSettingsValue('enable_gplusshare')=='Y') { ?>
                        <div class="g-plus" data-action="share" data-annotation="bubble" data-href="<?php echo generalMethods::getSellerNavigationURL($artistid,$storename,$artist_name,$enable_seller_friendly); ?>"></div>
                        <script type="text/javascript">
                            (function() {
                                var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                                po.src = 'https://apis.google.com/js/plusone.js';
                                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                            })();
                        </script>
                            <?php } ?>
                        <!-- End Google Plus Share Button -->
                        <!-- Pinterest Pin-It Button -->
                        <?php if(getSettingsValue('enable_pinit')=='Y') { ?>
                            <?php
                            $pinterestURL = generalMethods::getSellerNavigationURL($artistid,$storename,$artist_name,$enable_seller_friendly);
                                              
                            $pinterestImgURL = $profile_image_complete_path;
                      
                            ?>
                        <script>function pinit_click()
                            {u=location.href;t=document.title;window.open("http://pinterest.com/pin/create/button/?url=<?php echo urlencode($pinterestURL); ?>&media=<?php echo urlencode($pinterestImgURL); ?>&description=<?php echo $sellerNameShare; ?>",'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script>
                    <?php /* ?>    <a href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode($pinterestURL); ?>&media=<?php echo urlencode($pinterestImgURL); ?>&description=<?php echo $prow['product_name']; ?>" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a><?php */ ?>
                        <img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" onclick="return pinit_click()" / style="margin-top:-14px;" >
    <?php } ?>
                        
</div>
                        <!-- End Pinterest Pin-It Button -->
                    </div>
                    <div class="clear"></div>
                </div>
               </td></tr>
        <!--- Social media tools ends-->

        
                        <tr>
                            <td valign="top" align="left">
                                <div class="seller_fedbk_btn">
                                    <a href="<?php echo SITE_URL?>/artistfeedbacks.php?artistid=<?php echo $artistid?>"><span><?php echo VIEW_FEEDBACK_LINK;?></span></a>

                                </div>
                            </td>
                        </tr>
                        <?php
       // echo $sellerprevilegeFlag;
        // Block seller previlege addeed users to contact , post feedbacks
        if($sellerprevilegeFlag=='N') { ?>
                        <tr>
                            <td valign="top" align="left">
                                <div class="seller_contact_btn">
                                    <a href="<?php echo SITE_URL?>/sendmessagetoseller.php?artistid=<?php echo $artistid;?>" ><span><?php echo CONTACT_SELLER_LINK;?></span></a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" align="left">
                                <div class="addto_rassfeed_icon">
                                    <a href="<?php echo SITE_URL?>/sellers/seller_rss_feed.php?artistid=<?php echo $artistid;?>" ><span><?php echo SELLER_RSS_LINK;?></span></a>
                                </div>
                            </td>
                        </tr>  

                    <?php
                    if(getSettingsValue('enable_favourites')=='Y' && $seller_favourites_count==0 && $vacation_mode=='N') {

                    ?>
                         <tr id='content'>
                            <td valign="top" align="left">

                                <div id='confirm-dialog' class="addto_fav_icon" >
                                     <a href='#' id="btn_favourites" >
                                <span id="btn_favourites" ><?php echo ADD_TO_FAVOURITES_TEXT;?></span>
                                </a>
                                </div>
                            </td>
                        </tr>
                  <?php } if($seller_favourites_count>0)  { ?>
                         <tr id='content'>
                            <td valign="top" align="left">
                                    <div class="favourites_txt_icon">
                                        <!--<img src="<?php echo SITE_URL?>/images/favourites_icon.png"  border="0" alt="<?php echo TEXT_ITEM_ADDED_FAVOURITES;?>" title="<?php echo TEXT_ITEM_ADDED_FAVOURITES;?>">-->
                                        <i class="fa fa-star"></i>  Added to Favourites
                                    </div>
                            </td> </tr>
                        <?php }
                        }
                        ?>
                    </table>
                </div>
                <div class="clear"></div>
            </div>
<?php
include_once("includes/categorylist_seller.php");
?>			
            <div class="clear"></div>
        </div>
		</div>

        <!-- content Area Left End -->


        <!-- content Area Right start -->
        <div class="col-sm-12 col-lg-9 col-md-9">
