Your IP : 216.73.216.190


Current Path : /proc/1908984/root/proc/thread-self/root/proc/3662834/cwd/
Upload File :
Current File : //proc/1908984/root/proc/thread-self/root/proc/3662834/cwd/default.php.tar

home/digilove/public_html/modules/mod_sj_basic_news/tmpl/default.php000064400000006322152326013660022040 0ustar00<?php
/**
* @package Sj Basic News
* @version 3.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2012 YouTech Company. All Rights Reserved.
* @author YouTech Company http://www.smartaddons.com
*
*/
defined('_JEXEC') or die;

if(!empty($list)){
	$uniquied = 'sj_basic_news_'.time().rand();
	JHtml::stylesheet('modules/mod_sj_basic_news/assets/css/sj-basic-news.css');
	ImageHelper::setDefault($params);
?>
	<?php if($params->get('pretext') != null) {?>
		<div class="bs-pretext">
			<?php echo $params->get('pretext'); ?>
		</div>
	<?php }?>
	<div id="<?php echo $uniquied?>" class="sj-basic-news">
		<div class="bs-items">
			<?php  $i = 0;  foreach($list as $item){ $i++;
				$show_line = ($params->get('showline') == 1)?' bs-show-line':'';
				$last_class = ($i == count($list))?' last':'';
				$img = SjBasicNewsHelper::getAImage($item, $params);
			?>
			<div class="bs-item cf <?php echo $show_line.' '.$last_class; ?>">
				<?php if($img){?>
				<div class="bs-image">
					<a href="<?php echo $item->link ?>" title="<?php echo $item->title; ?>" <?php echo SjBasicNewsHelper::parseTarget($params->get('link_target')); ?>>
						<?php
	    					 echo SjBasicNewsHelper::imageTag($img);
	    				?>
					</a>
				</div>
				<?php } ?>
				<div class="bs-content">
					<?php if($params->get('title_display') == 1) {?>
					<div class="bs-title">
						<a href="<?php echo $item->link ?>" title="<?php echo $item->title; ?>" <?php echo SjBasicNewsHelper::parseTarget($params->get('link_target')); ?>>
							<?php echo SjBasicNewsHelper::truncate($item->title, $params->get('item_title_max_characs',25)); ?>
						</a>
					</div>
					<?php }?>
					<?php if($params->get('item_desc_display') == 1) {?>
					<div class="bs-description">
						<?php echo SjBasicNewsHelper::truncate($item->introtext, $params->get('item_desc_max_characs',200)); ?>
					</div>
					<?php } ?>
					<?php if($params->get('cat_title_display') == 1 || $params->get('item_date_display') == 1 ){?>
					<div class="bs-cat-date">
						<?php if($params->get('cat_title_display') == 1 ){?>
						<span class="bs-cat-title">
							<?php echo JText::_('Category: ');?>
							<a href="<?php echo $item->catlink; ?>" title="<?php echo $item->category_title; ?>" <?php echo SjBasicNewsHelper::parseTarget($params->get('link_target')); ?> >
								<?php echo $item->category_title; ?>
							</a>
						</span>
						<?php } ?>
						<?php if($params->get('item_date_display') == 1 ){?>
						<span class="bs-date"><?php echo  $item->created; ?></span>
						<?php }?>
					</div>
					<?php }?>
					<?php if($params->get('item_readmore_display') == 1){?>
					<div class="bs-readmore">
						<a href="<?php echo $item->link ?>" title="<?php echo $item->title; ?>" <?php echo SjBasicNewsHelper::parseTarget($params->get('link_target')); ?>>
							<?php echo $params->get('item_readmore_text'); ?>
						</a>
					</div>
					<?php }?>
				</div>
			</div>
			<?php } ?>
		</div>
	</div>
	<?php if($params->get('posttext') != null) {?>
	<div class="bs-posttext">
		<?php echo $params->get('posttext'); ?>
	</div>
	<?php }?>


<?php 
}else{
	echo JText::_('Has no content to show!');	
}?>home/digilove/public_html/modules/mod_breadcrumbs/tmpl/default.php000064400000004534152345043450021524 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_breadcrumbs
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<div aria-label="<?php echo htmlspecialchars($module->title, ENT_QUOTES, 'UTF-8'); ?>" role="navigation">
	<ul itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb<?php echo $moduleclass_sfx; ?>">
		<?php if ($params->get('showHere', 1)) : ?>
			<li>
				<?php echo JText::_('MOD_BREADCRUMBS_HERE'); ?>&#160;
			</li>
		<?php else : ?>
			<li class="active">
				<span class="divider icon-location"></span>
			</li>
		<?php endif; ?>

		<?php
		// Get rid of duplicated entries on trail including home page when using multilanguage
		for ($i = 0; $i < $count; $i++)
		{
			if ($i === 1 && !empty($list[$i]->link) && !empty($list[$i - 1]->link) && $list[$i]->link === $list[$i - 1]->link)
			{
				unset($list[$i]);
			}
		}

		// Find last and penultimate items in breadcrumbs list
		end($list);
		$last_item_key   = key($list);
		prev($list);
		$penult_item_key = key($list);

		// Make a link if not the last item in the breadcrumbs
		$show_last = $params->get('showLast', 1);

		// Generate the trail
		foreach ($list as $key => $item) :
			if ($key !== $last_item_key) :
				// Render all but last item - along with separator ?>
				<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
					<?php if (!empty($item->link)) : ?>
						<a itemprop="item" href="<?php echo $item->link; ?>" class="pathway"><span itemprop="name"><?php echo $item->name; ?></span></a>
					<?php else : ?>
						<span itemprop="name">
							<?php echo $item->name; ?>
						</span>
					<?php endif; ?>

					<?php if (($key !== $penult_item_key) || $show_last) : ?>
						<span class="divider">
							<?php echo $separator; ?>
						</span>
					<?php endif; ?>
					<meta itemprop="position" content="<?php echo $key + 1; ?>">
				</li>
			<?php elseif ($show_last) :
				// Render last item if reqd. ?>
				<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="active">
					<span itemprop="name">
						<?php echo $item->name; ?>
					</span>
					<meta itemprop="position" content="<?php echo $key + 1; ?>">
				</li>
			<?php endif;
		endforeach; ?>
	</ul>
</div>
home/digilove/public_html/modules/mod_feed/tmpl/default.php000064400000006346152345544610020145 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_feed
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<?php
if (!empty($feed) && is_string($feed))
{
	echo $feed;
}
else
{
	$lang      = JFactory::getLanguage();
	$myrtl     = $params->get('rssrtl', 0);
	$direction = ' ';

	$isRtl = $lang->isRtl();

	if ($isRtl && $myrtl == 0)
	{
		$direction = ' redirect-rtl';
	}

	// Feed description
	elseif ($isRtl && $myrtl == 1)
	{
		$direction = ' redirect-ltr';
	}

	elseif ($isRtl && $myrtl == 2)
	{
		$direction = ' redirect-rtl';
	}

	elseif ($myrtl == 0)
	{
		$direction = ' redirect-ltr';
	}
	elseif ($myrtl == 1)
	{
		$direction = ' redirect-ltr';
	}
	elseif ($myrtl == 2)
	{
		$direction = ' redirect-rtl';
	}

	if ($feed !== false)
	{
		?>
		<div style="direction: <?php echo $rssrtl ? 'rtl' :'ltr'; ?>; text-align: <?php echo $rssrtl ? 'right' :'left'; ?> !important" class="feed<?php echo $moduleclass_sfx; ?>">
		<?php
		// Feed description
		if ($feed->title !== null && $params->get('rsstitle', 1))
		{
			?>
					<h2 class="<?php echo $direction; ?>">
						<a href="<?php echo htmlspecialchars($rssurl, ENT_COMPAT, 'UTF-8'); ?>" target="_blank">
						<?php echo $feed->title; ?></a>
					</h2>
			<?php
		}
		// Feed date
		if ($params->get('rssdate', 1)) : ?>
			<h3>
			<?php echo JHtml::_('date', $feed->publishedDate, JText::_('DATE_FORMAT_LC3')); ?>
			</h3>
		<?php endif;
		// Feed description
		if ($params->get('rssdesc', 1))
		{
		?>
			<?php echo $feed->description; ?>
			<?php
		}
		// Feed image
		if ($feed->image && $params->get('rssimage', 1)) :
		?>
			<img src="<?php echo $feed->image->uri; ?>" alt="<?php echo $feed->image->title; ?>"/>
		<?php endif; ?>


	<!-- Show items -->
	<?php if (!empty($feed))
	{ ?>
		<ul class="newsfeed<?php echo $params->get('moduleclass_sfx'); ?>">
		<?php for ($i = 0, $max = min(count($feed), $params->get('rssitems', 3)); $i < $max; $i++) { ?>
			<?php
				$uri  = $feed[$i]->uri || !$feed[$i]->isPermaLink ? trim($feed[$i]->uri) : trim($feed[$i]->guid);
				$uri  = !$uri || stripos($uri, 'http') !== 0 ? $rssurl : $uri;
				$text = $feed[$i]->content !== '' ? trim($feed[$i]->content) : '';
			?>
				<li>
					<?php if (!empty($uri)) : ?>
						<span class="feed-link">
						<a href="<?php echo htmlspecialchars($uri, ENT_COMPAT, 'UTF-8'); ?>" target="_blank">
						<?php echo trim($feed[$i]->title); ?></a></span>
					<?php else : ?>
						<span class="feed-link"><?php echo trim($feed[$i]->title); ?></span>
					<?php endif; ?>
					<?php if ($params->get('rssitemdate', 0)) : ?>
						<div class="feed-item-date">
							<?php echo JHtml::_('date', $feed[$i]->publishedDate, JText::_('DATE_FORMAT_LC3')); ?>
						</div>
					<?php endif; ?>
					<?php if ($params->get('rssitemdesc', 1) && $text !== '') : ?>
						<div class="feed-item-description">
						<?php
							// Strip the images.
							$text = JFilterOutput::stripImages($text);
							$text = JHtml::_('string.truncate', $text, $params->get('word_count', 0));
							echo str_replace('&apos;', "'", $text);
						?>
						</div>
					<?php endif; ?>
				</li>
		<?php } ?>
		</ul>
	<?php } ?>
	</div>
	<?php }
}
home/digilove/public_html/modules/mod_articles_news/tmpl/default.php000064400000000720152345557560022102 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_news
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<div class="newsflash<?php echo $moduleclass_sfx; ?>">
	<?php foreach ($list as $item) : ?>
		<?php require JModuleHelper::getLayoutPath('mod_articles_news', '_item'); ?>
	<?php endforeach; ?>
</div>
home/digilove/public_html/modules/mod_sellercategory/tmpl/default.php000064400000006115152345651230022255 0ustar00<?php
/**
 * Marketplace Menus module
 *
 * PHP version 7.0
 *
 * @category   Module
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 */

// no direct access
defined('_JEXEC') or die();
$jinput=JFactory::getApplication()->input;
$method=$jinput->getMethod();
$seller_id=0;
$seller_id=$jinput->get('seller_id', 0, 'INT');
?>
<style type="text/css">
.wk_cat_blk<?php echo $class_sfx; ?> *{
    font-size: 15px!important;
}
.wk_cat_blk<?php echo $class_sfx; ?>{
    margin-top: 10px;
    margin-bottom: 10px;
}
</style>
<div class="wk_cat_blk<?php echo $class_sfx; ?>">
    <h4><?php echo JText::_('SELL_CAT');?></h4>
    <hr>
<?php
if (!isset($seller_id)) {
    $user = JFactory::getUser();
    $seller_id = $user->id;
}
$menulink = plgSystemMarketplace::getMenuId(
    'index.php?option=com_marketplace&view=category'
);
require_once JPATH_SITE."/components/com_marketplace/models/profilesave.php";
if (!class_exists('VmConfig')) {
    include JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php';
}
VmConfig::loadConfig();
$model = new MarketplaceModelProfilesave();
$is_seller = $model->getItem($seller_id, "is_seller");
if ($is_seller==1) {
    $lang_tag=VmConfig::$vmlang;
    $db = JFactory::getDBO();
    $helper_ins = new ModSellerCategoryHelper();
    $virtuemart_categories = $helper_ins->getVmCategories();
    
    $i=0;
    foreach ($virtuemart_categories as $virtuemart_cat) {
        $wk_catid = '';
        if ($virtuemart_cat->virtuemart_category_id!=$wk_catid) {
            $wk_catid=$virtuemart_cat->virtuemart_category_id;
            $virtuemart_categories_product = $helper_ins
            ->virtuemartCategoriesProduct(
                $wk_catid,
                $seller_id
            );
            if (count($virtuemart_categories_product)>0) {
                $i++;
            ?>
                <div class="wk_cat_sell<?php $class_sfx; ?>">
                    <a href='<?php echo
                                JRoute::_(
                                    "index.php?option=com_marketplac".
                                    "e&view=category&seller_id=".
                                    $seller_id."&category_id=".$wk_catid.
                                    '&Itemid='.$menulink,
                                    false
                                ); ?>'><?php
                    echo $virtuemart_cat->category_name;
                    ?> (<?php echo count($virtuemart_categories_product); ?>) </a>
                </div>
            <?php } 
        }
    }
    if (!$i) {
        echo JText::_('NO_SELL_CAT_PRO');
    }
} else {
    echo JText::_('NO_SELL');
}
?>
<style type="text/css">
    .wk_cat_blk<?php $class_sfx; ?> {
        border: 1px solid #bfbfbf;
        border-radius: 5px;
        padding: 5px;
    }
    .wk_cat_sell<?php $class_sfx; ?> a{
        text-decoration: none;
    }
</style>
</div>
home/digilove/public_html/modules/mod_sj_contact_ajax/tmpl/default.php000064400000031507152346060730022366 0ustar00<?php
/**
 * @package Sj Contact Ajax
 * @version 1.0.1
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @copyright (c) 2013 YouTech Company. All Rights Reserved.
 * @author YouTech Company http://www.smartaddons.com
 *
 */
defined('_JEXEC') or die;

$tag_id = 'contact_ajax' . time() . rand();

JHtml::stylesheet('modules/' . $module->module . '/assets/css/styles.css');
JHtml::stylesheet('modules/' . $module->module . '/assets/css/font-awesome.css');
JHtml::script('modules/' . $module->module . '/assets/js/bootstrap-tooltip.js');
JHTML::_('behavior.calendar');
$cls = 'map-canvas-' . time() . rand();
ob_start();
?>

	#<?php echo $tag_id ?> .map-canvas {
	height:<?php echo $params->get('map_height') ?>px;
	width:<?php echo $params->get('map_width') ?>px;
	max-width:100%;
	};

<?php
$css = ob_get_contents();
ob_end_clean();
$document = JFactory::getDocument();
$document->addStyleDeclaration($css);
?>
<?php if ($params->get('maps_display') == 1) { ?>

	<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=<?php echo $params->get('key_text') ?>"></script>
	<script type="text/javascript">
		function showLatLgn() {
			var geocoder = new google.maps.Geocoder();
			var sLat = "<?php echo $params->get('sLat'); ?>";
			var sLong = "<?php echo $params->get('sLong'); ?>";
			var latlng = new google.maps.LatLng(sLat, sLong);

			geocoder.geocode({"latLng": latlng}, function (data, status) {
				if (status == google.maps.GeocoderStatus.OK) {
					var add = data[1].formatted_address; //this is the full address
					var myOptions = {
						zoom: <?php echo $params->get('map_zoom'); ?>,
						center: latlng,
						mapTypeId: google.maps.MapTypeId.ROADMAP
					};
					var map = new google.maps.Map(document.getElementById("<?php echo $cls;?>"), myOptions);
					var marker = new google.maps.Marker({
						map: map,
						position: latlng
					});
					marker.setTitle('Address');
					attachSecretMessage(marker, add);
				} else {
					try {
						alert("Address not found");
					} catch (e) {
					}
				}

			})
		}

		function attachSecretMessage(marker, message) {
			var infowindow = new google.maps.InfoWindow(
				{
					content: message
				});
			google.maps.event.addListener(marker, 'click', function () {
				infowindow.open(marker.get('map'), marker);
			});
		}

		function showLocation() {
			var address = '<?php echo $params->get('address_text','Hanoi, Viet nam'); ?>';
			var geocoder = new google.maps.Geocoder();
			geocoder.geocode({"address": address}, function (results, status) {
				// If the Geocoding was successful
				if (status == google.maps.GeocoderStatus.OK) {
					var myOptions = {
						zoom: <?php echo $params->get('map_zoom'); ?>,
						center: results[0].geometry.location,
						mapTypeId: google.maps.MapTypeId.ROADMAP
					};
					var map = new google.maps.Map(document.getElementById("<?php echo $cls;?>"), myOptions);

					// Add a marker at the address.
					var marker = new google.maps.Marker({
						map: map,
						position: results[0].geometry.location
					});
					marker.setTitle('Address');
					attachSecretMessage(marker, address);
				} else {
					try {
						alert(address + " not found");
					} catch (e) {
					}
				}
			});
		}

		<?php if($params->get('select_type') == 0){ ?>
		google.maps.event.addDomListener(window, 'load', showLocation);
		<?php } else { ?>
		google.maps.event.addDomListener(window, 'load', showLatLgn);
		<?php } ?>

	</script>

<?php } ?>

<?php
$uri = JURI::getInstance();
$uri->setVar('contact_ajax', rand(100000, 999999) . time());
$uri->setVar('ctajax_modid', $module->id);
$options = $params->toObject();
?>

<?php if (!empty($options->pretext)) { ?>
	<div class="pre-text"><?php echo $options->pretext; ?></div>
<?php } ?>

	<!--[if lt IE 9]>
	<div class="contact-ajax msie lt-ie9" id="<?php echo $tag_id; ?>"><![endif]-->
	<!--[if IE 9]>
	<div class="contact-ajax msie" id="<?php echo $tag_id; ?>"><![endif]-->
	<!--[if gt IE 9]><!-->
	<div class="contact-ajax" id="<?php echo $tag_id; ?>"><!--<![endif]-->
		<div class="ctajax-wrap">
			<div class="ctajax-element">
				<div class="el-inner">
					<div class="el-map">
						<?php if ($params->get('maps_display') == 1) { ?>
							<div id="<?php echo $cls;?>" class="map-canvas"></div>
						<?php } ?>
					</div>
					<?php
					$desc = trim($list->misc);
					if ($desc != '') ?>
					<div class="el-desc">
						<?php echo $desc; ?>
					</div>
					<div class="el-info-contact">
						<?php $address = trim($list->address);
						if ($address != '') {
							?>
							<div class="info-address cf">
								<i class="icon-map-marker"></i>
								<span class="info-label" data-label="<?php echo JText::_('ADD_LABEL') ?>">: <?php echo $address; ?></span>
							</div>
						<?php }
						$mobile = trim($list->telephone);
						if ($mobile != '') {
							?>
							<div class="info-mobie cf">
								<i class="icon-mobile-phone"></i>
								<span class="info-label" data-label="<?php echo JText::_('TEL_LABEL') ?>">: <?php echo $mobile; ?></span>
							</div>
						<?php }
						$mail_to = trim($list->email_to);
						if ($mail_to != '') {
							?>
							<div class="info-mail cf">
								<i class="icon-envelope-alt"></i>
								<a href="mailto:<?php echo $mail_to; ?>" class="info-label"
								   data-label="<?php echo JText::_('MAIL_LABEL') ?>">: <?php echo $mail_to; ?></a>
							</div>
						<?php } ?>
					</div>
				</div>
			</div>
			<div class="ctajax-element">
				<div class="el-inner cf">
					<div class="el-form cf">
						<form class="el-ctajax-form" id="el_ctajax_form" method="post" action="#">
							<div class="el-control">
								<label for="cainput_name"><?php echo JText::_('NAME_LABEL'); ?></label>
								<input type="text" autocomplete="off" name="cainput_name" class="el-input" id="cainput_name"
								       placeholder="<?php echo JText::_('NAME_LABEL'); ?>">
							<span class="ca-tooltip" title="" data-toggle="tooltip"
							      data-original-title="<?php echo JText::_('NAME_ERROR'); ?>">
								<i class="icon-exclamation-sign el-error"></i>
							</span>
								<i class="icon-ok-sign el-ok"></i>
							</div>
							<div class="el-control ">
								<label for="cainput_email"><?php echo JText::_('EMAIL_LABEL'); ?></label>
								<input autocomplete="off" type="text" name="cainput_email" class="el-input" id="cainput_email"
								       placeholder="<?php echo JText::_('EMAIL_LABEL'); ?>">
							<span class="ca-tooltip" title="" data-toggle="tooltip"
							      data-original-title="<?php echo JText::_('EMAIL_ERROR'); ?>">
								<i class="icon-exclamation-sign el-error"></i>
							</span>
								<i class="icon-ok-sign el-ok"></i>
							</div>
							<div class="el-control">
								<label for="cainput_subject"><?php echo JText::_('SUBJECT_LABEL'); ?></label>
								<input type="text" autocomplete="off" name="cainput_subject" class="el-input" id="cainput_subject"
								       placeholder="<?php echo JText::_('SUBJECT_LABEL'); ?>">
							<span class="ca-tooltip" title="" data-toggle="tooltip"
							      data-original-title="<?php echo JText::_('SUBJECT_ERROR'); ?>">
								<i class="icon-exclamation-sign el-error"></i>
							</span>
								<i class="icon-ok-sign el-ok"></i>
							</div>
							<div class="el-control">
								<label for="cainput_message"><?php echo JText::_('MESSAGE_LABEL'); ?></label>
								<textarea name="cainput_message" maxlength="1000" class="el-input" id="cainput_message"
								          placeholder="<?php echo JText::_('MESSAGE_LABEL'); ?>"></textarea>
							<span class="ca-tooltip" title="" data-toggle="tooltip"
							      data-original-title="<?php echo JText::_('MESSAGE_ERROR'); ?>">
								<i class="icon-exclamation-sign el-error"></i>
							</span>
								<i class="icon-ok-sign el-ok"></i>
							</div>
							<div class="el-control">
								<label for="cainput_date"><?php echo JText::_('DATE_LABEL'); ?></label>
								<input type="text" autocomplete="off" name="cainput_date" class="el-input" id="cainput_date"
									   placeholder="<?php echo JText::_('DATE_LABEL'); ?>">
							<span class="ca-tooltip" title="" data-toggle="tooltip"
								  data-original-title="<?php echo JText::_('DATE_ERROR'); ?>">
								<i class="icon-exclamation-sign el-error"></i>
							</span>
								<i class="icon-ok-sign el-ok"></i>
							</div>
							<?php
							if ($captcha_dis == 1) {
								if ($captcha_disable == 1 && $user->id != 0) {
								} else {
									if ($captcha_type == 1) {
										?>
										<div class="el-control captcha-form">
											<?php JFactory::getApplication()->triggerEvent('showCaptcha', array($module->id)); ?>
										</div>
										<div class="el-control ">
											<label for="cainput_captcha"><?php echo JText::_('CAPTCHA_LABEL'); ?></label>
											<input type="text" name="cainput_captcha" maxlength="6" class="el-input" id="cainput_captcha"
											       placeholder="<?php echo JText::_('CAPTCHA_LABEL'); ?>">
											<i class="icon-spinner  icon-large icon-spin el-captcha-loadding"></i>
										<span class="ca-tooltip" title="" data-toggle="tooltip"
										      data-original-title="<?php echo JText::_('CAPTCHA_ERROR'); ?>">
											<i class="icon-exclamation-sign el-error"></i>
										</span>
											<i class="icon-ok-sign el-ok"></i>
										</div>
									<?php } else { ?>
										<div class="el-control">
											<?php
											JPluginHelper::importPlugin('captcha');
											$dispatcher = JDispatcher::getInstance();
											$dispatcher->trigger('onInit', 'dynamic_recaptcha_1');
											$recaptcha = $dispatcher->trigger('onDisplay', array(null, 'dynamic_recaptcha_1', 'class=""'));
											echo (isset($recaptcha[0])) ? $recaptcha[0] : '';
											?>
											
										<span class="ca-tooltip" title="" data-toggle="tooltip"
										      data-original-title="<?php echo JText::_('CAPTCHA_ERROR'); ?>">
											<i class="icon-exclamation-sign el-error"></i>
										</span>
											<i class="icon-ok-sign el-ok"></i>
										</div>
									<?php }
								}
							}
							?>
							<?php if ($params->get('email_copy_dis') == 1) { ?>
								<div class="el-control ">
									<input type="checkbox" value="" id="contact_email_copy" name="contact_email_copy">
									<label title="" class="el-label-email-copy"
									       for="contact_email_copy"><?php echo JText::_('SEND_MAIL_COPY'); ?></label>
								</div>
							<?php } ?>
							<div class="el-control">
								<input type="submit" value="<?php echo JText::_('SEND_MAIL_LABEL'); ?>" id="cainput_submit">
								<span class="el-ctajax-loadding"></span>
							<span class="el-ctajax-return return-error">
								<i class="icon-exclamation-sign icon-large">&nbsp;&nbsp;<?php echo JText::_('MAIL_IS_NOT_SENT'); ?></i>
							</span>
							<span class="el-ctajax-return return-success">
								<i class="icon-ok-circle icon-large">&nbsp;&nbsp;<?php echo JText::_('MAIL_IS_SENT'); ?></i>
							</span>
							</div>
						</form>
					</div>
					<div class="social-networks">
						<?php
						if ($params->get('twitter_dis') == 1 && $params->get('twitter_text') != '') { ?>
							<a title="<?php echo JText::_('TWITTER_LABEL'); ?>" target="blank" href="<?php echo $params->get('twitter_text'); ?>"
							   class="network"><i class="icon-twitter"></i></a>
						<?php }
						if ($params->get('facebook_dis') == 1 && $params->get('facebook_text') != '') { ?>
							<a title="<?php echo JText::_('FACEBOOK_LABEL'); ?>" target="blank" href="<?php echo $params->get('facebook_text'); ?>"
							   class="network"><i class="icon-facebook"></i></a>
						<?php }
						if ($params->get('rss_dis') == 1 && $params->get('rss_text') != '') { ?>
							<a title="<?php echo JText::_('RSS_LABEL'); ?>" target="blank" href="<?php echo $params->get('rss_text') ?>"
							   class="network"><i class="icon-rss"></i></a>
						<?php }
						if ($params->get('linkedin_dis') == 1 && $params->get('linkedin_text') != '') { ?>
							<a title="<?php echo JText::_('LINKEDIN_LABEL'); ?>" target="blank" href="<?php echo $params->get('linkedin_text'); ?>"
							   class="network"><i class="icon-linkedin"></i></a>
						<?php }
						if ($params->get('google_plus_dis') == 1 && $params->get('google_plus_text') != '') { ?>
							<a title="<?php echo JText::_('GOOGLE_PLUS_LABEL'); ?>" target="blank"
							   href="<?php echo $params->get('google_plus_text'); ?>" class="network"><i class="icon-google-plus"></i></a>
						<?php } ?>
					</div>
					<!--<span class="el-aircaft"></span>-->
				</div>
			</div>
		</div>
	</div>


<?php if (!empty($options->posttext)) { ?>
	<div class="post-text"><?php echo $options->posttext; ?></div>
<?php } ?>
home/digilove/public_html/modules/mod_marketplacemenus/tmpl/default.php000064400000063746152346072620022607 0ustar00<?php
/**
 * Marketplace Menus module
 *
 * PHP version 7.0
 *
 * @category   Module
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.methods');

if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.
    'components'.DIRECTORY_SEPARATOR.'com_marketplace'.
    DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'marketplace.php';
}
if (MarketplaceHelper::isCurlInstalled()) {
    if (!class_exists('wk_Facebook')) {
        include dirname(__FILE__).'/../facebookv2/src/facebook.php';
    }
}
?>
<!-- Including Font awesome and sweetalert -->
<link
    rel="stylesheet"
    href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
>
<link
    rel="stylesheet"
    type="text/css"
    href="//cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css"
>
<script
    type="text/javascript"
    src="//cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"
></script>
<style type="text/css">
    .wklogin-form i,
    .mp_menu i {
        font-size: 20px !important;
        padding: 10px;
    }
    
    .wk_mpmenu * {
        font-size: 15px!important;
    }
    
    .ajaximage {
        overflow: hidden;
        width: 100%;
        position: absolute;
        z-index: 999;
        display: none;
        background-color: #FFF;
        opacity: 0.5;
    }
    
    .ajaximage img {
        display: block;
        margin: 0 auto;
        margin-top: 100px;
    }
</style>

<?php
$document = JFactory::getDocument();
$conf = JFactory::getConfig();
$document = JFactory::getDocument();
$db = JFactory::getDBO();
$app = JFactory::getApplication();
$adminemail = $app->getCfg('mailfrom');
$jInput= $app->input;
$option = $jInput->get('option', '');
$layout = $jInput->get('layout', '');
$id = $jInput->get('id', '');
$view = $jInput->get('view', '');
$Itemid = $jInput->get('Itemid', '');
$seller_id = $jInput->get('seller_id', '');
$virtuemart_category_id = $jInput->get('virtuemart_category_id', '');
$virtuemart_product_id = $jInput->get('virtuemart_product_id', '');
$wk_log = $jInput->get('wk_log', 0);
if (isset($virtuemart_product_id)) {
    if (is_array($virtuemart_product_id)) {
        $virtuemart_product_id = $virtuemart_product_id[0];
    }
}

$inputCookie  = $jInput->cookie;
if (!$wk_log) {
    // If login with facebook
    $checkpoint = $inputCookie->get(
        'checkpoint',
        null,
        0,
        $app->get('cookie_path', '/'),
        $app->get('cookie_domain'),
        $app->isSSLConnection()
    );
}
// FB accesstoken form JS login hit Response
$key = $inputCookie->get(
    'accessToken',
    null,
    0,
    $app->get('cookie_path', '/'),
    $app->get('cookie_domain'),
    $app->isSSLConnection()
);
/***************    faceboook      ******************************************/
$refresh=0;
if (isset($checkpoint)) {
    if ($checkpoint && $appid && $secretkey ) {
        $facebook = new wk_Facebook(
            array(
                'appId'  => $appid,
                'secret' => $secretkey,
                'cookie' => false,
            )
        );
        // request user data from FB
        $req_perms = "user_likes,public_profile,publish_stream,".
            "offline_access,user_status,email,read_stream";
        
        $session = $facebook->getUser();
        // Login url if User is not logged in
        $loginUrl = $facebook->getLoginUrl(
            array(
                'graph'=> 1,
                'fbconnect' => 1,
                'req_perms' => $req_perms
            )
        );
        $user_info = null;

        if (!$session && $key==null) {
            // if data not found try again to login
            echo "<script type='text/javascript'>top.location.href = '".
            $loginUrl."';</script>";
            $app->close();
        } else {
            try {
                // set accesstoken that is received in js to php FB Object.
                $facebook->setAccessToken($key);
                // request email seprately
                $fbemail = $facebook->api('/me?fields=email&access_token='.$key);
                // get user other info
                $user_info = $facebook->api('/me');
            } catch (FacebookApiException $e){
                // if data not found try again to login
                echo "<script type='text/javascript'>top.location.href = '".
                $loginUrl."';</script>";
                $app->close();
            }
        }

        $wk_user_name = $user_info['name'];
        $wk_email = $fbemail["email"];
        $user_fb_data = array(
            "name" => $wk_user_name,
            "email" => $wk_email
        );
        
        $modMpMenuHelper =new ModMpMenuHelper();
        $modMpMenuHelper->checkAndStoreUser($user_fb_data);
        $refresh=1;
    }
}
/*********************faceboook************************/

$user = JFactory::getUser();
$userid = $user->id;
$config=new JConfig();
$adminemail = $config->mailfrom;

$return= base64_encode(JUri::current());
if (!$user->get('guest') == 1) {
    $query=$db->getQuery(true);
    $query->select($db->quoteName('is_seller'))
        ->from($db->quoteName('#__marketplace_sellerprofile'))
        ->where(
            $db->quoteName('seller_id')."=".
            $db->quote($db->escape($userid))
        );
    $db->setQuery($query);
    try {
        $result = $db->loadResult();
    } catch (Exception $e) {
        $app->enqueueMessage($e->getMessage(), 'error');
    }

    if ($result) { ?>
        <div class="mp_menu">
        <?php
        if ($show_myprofile == '1') {
        ?>
            <div>
            <?php
            $Itemids = MarketplaceHelper::getMpMenuItem("profile");
            ?>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=profile&Itemid=".
                                $Itemids->id,
                                false
                            );
                ?>">
                    <span><i class="fa fa-user"></i></span><span><?php
                        echo $Itemids->title;
                    ?>
                </a>
            </div>
        <?php
        }

        if ($show_addproduct == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("addproduct");
            ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=addproduct&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-plus-square"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_products == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("products");
            ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=products&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-gift"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_dashboard == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("dashboard");
        ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=dashboard&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-dashboard"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_orderhistory == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("orderhistory");
        ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=orderhistory&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-history"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_sellerlist == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("sellerlist");
        ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=sellerlist&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-user-plus"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_payments == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("mypayments");
        ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=mypayments&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-money"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_profilepreview == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("sellerprofile");
        ?>
            <div>
                <a href="<?php
                            echo JRoute::_(
                                "index.php?option=com_marketplace&".
                                "view=sellerprofile&Itemid=".
                                $Itemids->id,
                                false
                            )
                        ?>"><span><i class="fa fa-eye"></i></span><span><?php
                            echo $Itemids->title;
                        ?>
                    </span>
                </a>
            </div>
        <?php
        }
        if ($show_asktoadmin == '1') {
            $Itemids = MarketplaceHelper::getMpMenuItem("asktoadmin");
        ?>
            <div>
                 <a class="mpmenu-ask" href="<?php
                    if ($view!="asktoadmin") {
                        $data_link =  JRoute::_(
                            "index.php?option=com_marketplace&".
                            "view=asktoadmin&Itemid=".
                            $Itemids->id,
                            false
                        );
                    } else {
                        $data_link ="javascript:void(0);";
                        $document->addScriptDeclaration(
                            'jQuery(document).ready(function(){
                                jQuery(".mpmenu-ask").click(function(){
                                    jQuery(".ask_button").trigger("click");
                                });
                            });'
                        );
                    }
                    echo $data_link;
                ?>"><span><i class="fa fa-question-circle"></i></span><span><?php
                echo JText::_('ASKTOADMIN');
                ?></span>
                </a>
            </div>
        <?php
        }
        /*Trigger to add tab and its data*/
        JPluginHelper::importPlugin('system');
        $dispatcher =JDispatcher::getInstance();
        $addonData=$dispatcher->trigger('onMarketplaceMenuRender');
        /*Trigger to add tab and its data*/
        if (count($addonData)) {
            foreach ($addonData as $addonData) {
                    echo "<div>".$addonData."</div>";
            }
        }
        ?>
    </div>
    <br><a class="logout-button btn btn-primary"
        href="<?php
                echo JRoute::_(
                    "index.php?option=com_marketplace&view=dashboard".
                    "&task=logout&wk_log=1 ",
                    false
                );
        ?>"><?php echo JText::_("LOGOUT") ?></a>
        <?php
    } else {
        if ($showBecomeASeller==1) {
            $Itemids = MarketplaceHelper::getMpMenuItem("mpregistration");
        }
        
        ?>
        <div style="margin:0 auto;">
        <?php
        echo JText::_('HI_TXT').JFactory::getUser()->name;
        ?>
        <br>
        <a class="logout-button btn btn-primary" href="<?php echo JRoute::_("index.php?option=com_marketplace&view=dashboard&task=logout&wk_log=1 ", false);?>">Logout</a>
        <?php
        $userParams = JComponentHelper::getParams('com_users');
        $checkseller = MarketplaceHelper::checkSeller($userid);
        ?>
        <ul style="margin-top: 10px">
            <?php
            if ($showBecomeASeller==1
                && $userParams->get("allowUserRegistration", 0)
                && $checkseller==null
                && !in_array(8, $user->groups)
            ) {
            ?>
            <li>
                <a href="<?php
                            echo JRoute::_(
                                'index.php?option=com_marketplace&view=mpregistration&Itemid='
                                .$Itemids->id,
                                false
                            ) ?>">
                    <?php echo JText::_('COM_MARKETPLACE_WANT_TO_BECOME_A_SELLER');?>
                </a>
            </li>
            <?php
            }
            if ($show_customer) {
                $Itemids2 = MarketplaceHelper::getMpMenuItem("customer");
            ?>
            <li>
                <a href="<?php
                            echo JRoute::_(
                                'index.php?option=com_marketplace&view=customer&Itemid='
                                .$Itemids2->id,
                                false
                            ) ?>">
                    <?php echo JText::_('COM_MARKETPLACE_BUYER_VIEW');?>
                </a>
            </li>
            <?php
            }
            ?>
        </ul>
    </div>
    <?php
    }
} else {
    ?>
    <form action="<?php echo JRoute::_(htmlspecialchars(JUri::getInstance()->toString()), false, $params->get('usesecure')); ?>" method="post" id="login-form" class="wklogin-form">
    <?php if ($params->get('pretext')) : ?>
        <div class="pretext">
            <p>
                <?php echo $params->get('pretext'); ?>
            </p>
        </div>
    <?php endif; ?>
        <fieldset class="userdata">
            <p id="form-login-username">
                <div class="input-prepend">
                    <label for="modlgn-username">
                        <?php echo JText::_('USERNAM') ?>
                    </label>
                    <span class="add-on">
                        <i
                            class="fa fa-user"
                            style="width:5px;margin-right:9px;padding:1px;"></i>
                    </span>
                    <input id="modlgn-username" type="text" name="username" placeholder="<?php
                        echo JText::_('SELL_LOGIN');
                    ?>" class="input-small"
                    tabindex="0"
                    size="18"/>
                </div>
            </p>
            <p id="form-login-password">
                <div class="input-prepend">
                    <label for="modlgn-passwd">
                        <?php echo JText::_('MPPASSWORD') ?>
                    </label>
                    <span class="add-on"><i class="fa fa-unlock-alt" style="width:5px;margin-right:9px;padding:1px;" ></i></span>
                    <input id="modlgn-passwd" type="password" name="password" placeholder="<?php echo JText::_('SELL_PASD'); ?>" class="input-small" size="18" />
                </div>
            </p>
            <?php if (JPluginHelper::isEnabled('system', 'remember')) :
            ?>
            <p id="form-login-remember">
                <input id="modlgn-remember" type="checkbox" name="remember" class="inputbox" value="yes" />
                <label for="modlgn-remember" style="display:inline">
                    <?php echo JText::_('MPREMEMBER') ?>
                </label>
            </p>
            <?php endif; ?>
                <div style="width:100%;">
                    <div style="width:80px;height:26px;display:inline-block;right:4px;margin-bottom:10px;">
                        <input style="width:100% !important;" type="submit" name="Submit" class="btn btn-primary" value="<?php echo JText::_('MPLOG_IN') ?>" />
                    </div>
            <?php
            if ($fb_setting->get('wk_fbloginselect')) {
            ?>
            <div class="wkfblogin" style="width:80px;display:inline-block;margin-left:10px" onclick="loggedin();"><img border="0" src="<?php echo JURI::root().'/modules/mod_marketplacemenus/login_facebook.png'; ?>" width="100%" style="cursor:pointer; height:28px!important;" /></div>
            <?php
            }
            ?>
            </div>
            <input type="hidden" name="option" value="com_users" />
            <input type="hidden" name="task" value="user.login" />
            <input type="hidden" name="return" value="<?php echo $return; ?>" />
            <?php echo JHtml::_('form.token'); ?>
        </fieldset>
        <ul>
        <?php
        if ($showBecomeASeller==1) {
            $Itemids = MarketplaceHelper::getMpMenuItem("mpregistration");
        ?>
            <li>
                <a href="<?php echo JRoute::_('index.php?option=com_marketplace&view=mpregistration&Itemid='.$Itemids->id, false)?>">
                    <?php echo JText::_('COM_MARKETPLACE_WANT_TO_BECOME_A_SELLER'); ?>
                </a>
            </li>
        <?php
        }
        ?>
            <li>
                <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset', false); ?>">
                    <?php echo JText::_('MPFORGET_PASSWORD'); ?>
                </a>
            </li>
            <li>
                <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind', false); ?>">
                    <?php echo JText::_('MPFORGET_USERNAME'); ?>
                </a>
            </li>
        </ul>
    </form>
<?php }
?>
<script src="//connect.facebook.net/en_US/all.js"></script>
<script>
jQuery(document).on('ready', function(e) {

    if (window.location.hash == '#_=_') {
        window.location.hash = '';
        history.pushState('', document.title, window.location.pathname);
        e.preventDefault();
    }
    jQuery('<div class="ajaximage"><img src="<?php echo JURI::root()."components/com_marketplace/"?>images/ajaxspinner1.gif"/></div>').prependTo('body');
    var high = jQuery(document).height();
    jQuery('.ajaximage').css('height', high + "px");

});
<?php if ($fb_setting->get('wk_fbloginselect')) { ?>
window.fbAsyncInit = function() {

    FB.init({
        appId: "<?php echo $appid; ?>",
        channelUrl: "<?php juri::current();?>",
        status: true,
        xfbml: true
    });
}(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) {
        return;
    }
    js = d.createElement(s);
    js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
jQuery('.logout-button').on('click', function() {
    FB.logout(function(response) {});
});

    <?php
}
if (!strlen(trim($secretkey)) || !strlen(trim($appid))) {
    $return='false';
}
?>
function loggedin() {
    if ("<?php echo $return?>" == 'false') {
        return false;
    }
    FB.login(function(resp) {
        var url = "<?php echo JRoute::_(JURI::current(), false);?>";
        if (resp.status === 'connected') {
            createCookie("checkpoint", "1", 0);
            createCookie("accessToken", resp.authResponse.accessToken, 0);
            window.location.href = url;
        }
    }, {
        scope: 'email',
        return_scopes: false

    });
}

function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(";");
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == " ") c = c.substring(1, c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
    return null;
}

function createCookie(name, value, e) {
    var expires = "; expires=" + e;
    var path = "",
        sef = '<?php $conf->get("sef"); ?>';
    if (sef == 0)
        document.cookie = name + "=" + value + expires + ";";
    else
        document.cookie = name + "=" + value + expires + ";path=/;";
}
</script>
<?php

?>

<script type="text/javascript">
function fbLoad(){
    createCookie("checkpoint", null, "Thu, 01 Jan 1970 00:00:01 GMT");
    createCookie("accessToken", null, "Thu, 01 Jan 1970 00:00:01 GMT");
    location.reload();
}
if (<?php echo $refresh ?>) {
    fbLoad();
}
jQuery(document).ready(function() {
    jQuery('#askbtn').on('click', function(e) {
        if (jQuery('.ask_sub').val().trim() == '') {
            jQuery('.ask_sub').css('border', '1px solid red');
        } else if (jQuery('.ask_msg').val().trim() == '') {
            jQuery('.ask_msg').css('border', '1px solid red');
        } else {
            jQuery('.ask_sub').css('border', '1px solid green');
            jQuery('.ask_msg').css('border', '1px solid green');
            jQuery('#ask-data').addClass('mail-procss');
            var subject = jQuery('.ask_sub').val();
            var message = jQuery('.ask_msg').val();
            if ("<?php echo $view;?>" != 'asktoadmin') {
                jQuery.ajax({
                    url: '<?php
                        echo JRoute::_(
                            "index.php?option=com_marketplace&view=asktoadmin&task=ask_to_admin",
                            false
                        ) ?> ',
                    beforeSend: function() {
                        jQuery('body').css({
                            'overflow': 'hidden'
                        });
                        jQuery(document).scrollTop(0);
                        jQuery('.ajaximage').show();
                    },
                    complete: function() {
                        jQuery('.ajaximage').hide();
                    },
                    data: {
                        subject: subject,
                        message: message
                    },
                    type: 'post',
                    dataType: 'html',
                    success: function(d) {
                        jQuery('#ask-data').removeClass('mail-procss');
                        if (d == '1') {
                            jQuery('.field').css("display", "none");
                            jQuery('.head_bar').css('display', 'none');
                            jQuery('#resetbtn').trigger('click');
                            jQuery('#light').css('display', 'none');
                            jQuery('#fade').css('display', 'none');
                            jQuery('.field').css("display", "block");
                            jQuery('.head_bar').css('display', 'block');
                            jQuery('#resetbtn').trigger('click');
                            swal({
                                title: "<?php echo JText::_('Success');?>",
                                text: '<?php echo JText::_('MAIL_SEND'); ?>',
                                timer: 5000,
                                type: "success",
                                showConfirmButton: false
                            });
                            jQuery('body').css({
                                'overflow': 'auto'
                            });
                        } else {
                            jQuery('.field').css("display", "none");
                            jQuery('.head_bar').css('display', 'none');
                            jQuery('#resetbtn').trigger('click');
                            jQuery('#light').css('display', 'none');
                            jQuery('#fade').css('display', 'none');
                            jQuery('.field').css("display", "block");
                            jQuery('.head_bar').css('display', 'block');
                            jQuery('#resetbtn').trigger('click');
                            swal({
                                title: "<?php echo JText::_('Failed');?>",
                                text: d,
                                timer: 5000,
                                type: "error",
                                showConfirmButton: false
                            });
                            jQuery('body').css({
                                'overflow': 'auto'
                            });
                        }
                    }
                });
            }
        }
        jQuery('#resetbtn').on('click', function() {
            jQuery('.wtd').css("border-color", "#ccc");
        });
    }); 
    jQuery('.cls').on('click', function() {
        jQuery('#light').css('display', 'none');
        jQuery('#fade').css('display', 'none');
    });
});
</script>home/digilove/public_html/modules/mod_shop/tmpl/default.php000064400000014743152346111100020174 0ustar00<?php
/**
 * Marketplace Menus module
 *
 * PHP version 7.0
 *
 * @category   Module
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 */

// no direct access
defined('_JEXEC') or die();
$jinput=JFactory::getApplication()->input;
$method=$jinput->getMethod();
$seller_id=0;
$seller_id=$jinput->get('seller_id', 0, 'INT');
if (!class_exists('VmConfig')) {
    include JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php';
}
VmConfig::loadConfig();
$menuitem=plgSystemMarketplace::getMenuId(
    'index.php?option=com_marketplace&view=productlist'
);
?>
<style type="text/css">
    .wk_about_<?php echo $class_sfx; ?>{
        border-color: <?php echo $bod_col; ?>;
        border-style: <?php echo $mod_b_sty; ?>;
        border-width: <?php echo $bod_width; ?>px;
        padding-left:10px; 
        margin: 5px 0;
    }
    .wk_about_<?php echo $class_sfx; ?> .table {
        border-bottom:0px !important;
    }
    .wk_about_<?php echo $class_sfx; ?> .table th, .table td {
        border: 1px !important;
    }
    .wk_about_<?php echo $class_sfx; ?> .fixed-table-container {
        border:0px !important;
    }
    .wk_about_shop *{
        font-size: 15px!important;
    }
    .wk_tab_left,.wk_tab_right{
        width:50%;
        float: left;
    }
    .shop_ratings .yellow {
        width:100%;
    }
</style>
<div class="wk_about_shop wk_about_<?php echo $class_sfx; ?>">
    <h5><?php echo JText::_('ABOU_SHOP');?></h5>
    <div style="border-top:1px solid;width:100%"></div>
<?php
if (!$seller_id) {
    $user = JFactory::getUser();
    $seller_id=$user->id;
}
$vmCountryModel=VmModel::getModel('country');

require_once JPATH_SITE."/components/com_marketplace/models/profilesave.php";
$model = new MarketplaceModelProfilesave();
$data=$model->getItem($seller_id, "countrylogo");
$is_seller=$model->getItem($seller_id, "is_seller");
if ($is_seller==1) {
    $db = JFactory::getDBO();
    $lang_tag=VmConfig::$vmlang;

    $document = JFactory::getDocument();
    $document->addStyleSheet(
        '//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css'
    );
    $document->addStyleSheet(
        JURI::root().'components/com_marketplace/css/msdropdown/dd.css'
    );
    $document->addStyleSheet(
        JURI::root().'components/com_marketplace/css/msdropdown/flags.css'
    );
    $document->addScript(
        JURI::root().'components/com_marketplace/js/msdropdown/jquery.dd.min.js'
    );
    $reg_date=JFactory::getUser($seller_id)->registerDate;
    
    $helper_ins = new ModShopHelper();
    $seller_info = $helper_ins->getSellerInfo($seller_id);
    $user = JFactory::getUser();
    
    $c_pro =$helper_ins->sellerProducts($seller_id, $lang_tag);
    $cntry_name=$vmCountryModel->getCountryByCode($seller_info->countrylogo);
    if (is_object($cntry_name)) {
        $cntry_name=$cntry_name->country_name;
    } else {
        $cntry_name='';
    }
    $wk_sale = $helper_ins->getSellerOrders($seller_id);
    $wk_total_sale=count($wk_sale);
    
    $feedback_rec = $helper_ins->getSellerFeedback($seller_id);
    $feed_price = $feed_value = $feed_quality = 0;
    foreach ($feedback_rec as $key => $value) {
        $feed_price += $value->feed_price;
        $feed_value += $value->feed_value;
        $feed_quality += $value->feed_quality;
    }
    
    $total_feedback = count($feedback_rec);
    if ($total_feedback) {
        $feed_price = $feed_price / $total_feedback;
        $feed_value = $feed_value / $total_feedback;
        $feed_quality = $feed_quality / $total_feedback;
        $feed = (int)(($feed_price+$feed_value+$feed_quality)/3);
    } else {
        $feed=0;
    }
    $ratings = '<span class="yellow">';
    $xv= 5-$feed;
    for ($i=0; $i < $feed; $i++) {
        $ratings .= '<i class="pad_none fa fa-star"></i>';
    }
    if ($xv>0) {
        for ($i=0; $i <$xv ; $i++) {
            $ratings .= '<i class="pad_none fa fa-star-o"></i>';
        }
    }
    $ratings .= '</span>';
    $date=JFactory::getDate($reg_date);
    $reg_date=$date->format('d-M-Y');
    ?>
        <div class="wk_shop_content">
            <table class="table borderless">
                <thead></thead>
                <tbody>
                    <tr>
                        <td><?php echo JText::_('WK_SINCE');?></td>
                        <td><?php echo $reg_date." "?></td>
                    </tr>
                    <tr>
                        <td><?php echo JText::_('FROM_SHOP'); ?></td>
                        <td><?php 
                        if (!strlen($data)) {
                            echo '<i class="fa fa-flag" ari'
                            .'a-hidden="true"></i> (N/A)';
                        } else {
                        ?>
                        <img src="<?php
                        echo JURI::root();?>components/com_marketplace/images/msdropdown/icons/blank.gif" class="flag <?php
                        echo $data;?> fnone"><?php echo " (".$cntry_name.")";
                        } ?>
                        </td>
                    </tr>
                    <tr>
                        <td><?php echo JText::_('PRODUCTS');?></td>
                        <td><?php echo count($c_pro)." "?></td>
                    </tr>
                    <tr>
                        <td><?php echo JText::_('ORDERS');?></td>
                        <td><?php echo $wk_total_sale." "?></td>
                    </tr>
                    <tr>
                        <td><?php echo JText::_('FEEDBACK');?></td>
                        <td><?php echo round($total_feedback, 2)." "?></td>
                    </tr>
                    <tr>
                        <td><?php echo JText::_('RATING');?></td>
                        <td><div class="shop_ratings"><?php echo $ratings ?></div></td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="2"><a style="text-align: center" class="btn btn-primary wk_sel_button" href="<?php echo JRoute::_('index.php?option=com_marketplace&view=productlist&Itemid='.$menuitem.'&seller_id='.$seller_id, false);?>"><?php echo JText::_('VIEW_FULL_COLLECTION');?></a></td>
                    </tr>
                </tfoot>
            </table>
            
        </div>
        <?php
} else {
    echo JText::_('NO_SELL');
}
?>
</div>
home/digilove/public_html/modules/mod_articles_archive/tmpl/default.php000064400000001031152346307440022532 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_archive
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<?php if (!empty($list)) : ?>
	<ul class="archive-module<?php echo $moduleclass_sfx; ?> mod-list">
	<?php foreach ($list as $item) : ?>
	<li>
		<a href="<?php echo $item->link; ?>">
			<?php echo $item->text; ?>
		</a>
	</li>
	<?php endforeach; ?>
</ul>
<?php endif; ?>
home/digilove/public_html/modules/mod_sj_flat_menu/tmpl/default.php000064400000007435152346342160021705 0ustar00<?php

defined('_JEXEC') or die;

$tag_id = 'sj_flat_menu_'.rand().time();


JHtml::stylesheet('modules/'.$module->module.'/assets/css/styles-responsive.css');
JHtml::stylesheet('modules/'.$module->module.'/assets/css/styles.css');
if( !defined('SMART_JQUERY') && $params->get('include_jquery', 0) == "1" ){
	JHtml::script('modules/'.$module->module.'/tmpl/js/jquery-1.8.2.min.js');
	JHtml::script('modules/'.$module->module.'/tmpl/js/jquery-noconflict.js');
	define('SMART_JQUERY', 1);
} 
$menu_direction = $params->get("menu_direction");
$style_layout = ($type_menu == 'flyout')?$params->get('stype_layout'):'';
$cls =  $type_menu.'-menu'.' '.$style_layout;
?>

<?php if( $params->get('pretext') != ' ' ) { ?>
    <div class="pretext"><?php echo $params->get('pretext'); ?></div>
<?php } ?>
<?php
if(isset($menus) && count($menus)){
	$countUlOpened = 0; $level = 1; 
	for($i = 0; $i < count($menus); $i++){
		if($i == 0){ ?>

			<!--[if lt IE 9]><ul class="sj-flat-menu <?php echo $cls ; ?> lt-ie9 " id="<?php echo $tag_id;?>"><![endif]-->
			<!--[if IE 9]><ul class="sj-flat-menu <?php echo $cls ; ?>" id="<?php echo $tag_id;?>"><![endif]-->
			<!--[if gt IE 9]><!--><ul class="sj-flat-menu <?php echo $cls ; ?>" id="<?php echo $tag_id;?>"><!--<![endif]-->
            <?php
			$countUlOpened++;
		}
		$class = "";
		if($menus[$i]->id == $itemID){
			$class	.= ' class=" fm-active " ';
			$class	.= ' ';
		}
		$li = "<li ".$class.">";
 			$li .= "<div class='fm-item '>";
				$divMenuButton = "<div class='fm-button' >";
				if($i < count($menus)-1 && $menus[$i+1]->level > $menus[$i]->level){
					$divMenuButton.="<img class='fm-icon' alt='".$menus[$i]->title."' src='".$icon_normal."'/>";
				
				}
				$divMenuButton .= "</div>";
				$li.=$divMenuButton;
				$style = "";
				$target = "";
				$link_target = $params->get('link_target','_self');
				switch($link_target){
					default:
					case '_self':
						break;
					case '_blank':
					case '_parent':
					case '_top':
						$target = 'target="'.$link_target.'"';
						break;
					case '_windowopen':
						$target = "onclick=\"window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,false');return false;\"";
						break;
					case '_modal':
						// user process
						break;
				}
				$icon_menu = ($menus[$i]->menu_image != '')?'<img src='.JURI::base().$menus[$i]->menu_image.'  title='.$menus[$i]->title.' />':'';
				$divLink = "<div class='fm-link' ".$style."><a ".$target." href='".$menus[$i]->flink."'>".$icon_menu.$menus[$i]->title."</a></div>";
			$li.=$divLink;
			$li.= "</div>";
			echo $li;
				if($type_menu == 'flyout') {
					if($i < count($menus)-1  && $menus[$i+1]->level > $menus[$i]->level ){
						if($params->get('stype_layout') == 'vertical'){
							echo "<div  class='fm-container direction-".$menu_direction." '><ul>";
						}else{
							echo "<div  class='fm-container direction-".$menu_direction."'><ul>";	
						}
						$countUlOpened++;
						$level++;
					}
				} else {
					if($i < count($menus)-1  && $menus[$i+1]->level > $menus[$i]->level ){
						echo "<div class='fm-container'><ul>";
						$countUlOpened++;
						$level++;
					}
				}
				if($i < count($menus)-1 && $menus[$i+1]->level < $menus[$i]->level ){
					echo "</li>";
					echo"</ul></div></li>";
					$countUlOpened--;
					$level--;
					for($j = 1; $j < $menus[$i]->level - $menus[$i+1]->level; $j++){
						echo "</ul></div></li>";
						$countUlOpened--;
						$level--;
					}
					
				}
				
				if( $i < count($menus)-1 && $menus[$i+1]->level == $menus[$i]->level){
					echo "</li>";
				}
	}
	for($i=0; $i< $countUlOpened - 1; $i++){
			echo "</li></ul></div>";
	}
	?>
    </li>
</ul>
	<?php 
}
?>

<?php if( $params->get('posttext') != ' ' ) { ?>
    <div class="posttext"><?php echo $params->get('posttext'); ?></div>
<?php } ?>
home/digilove/public_html/modules/mod_footer/tmpl/default.php000064400000000671152346354740020537 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_footer
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<div class="footer1<?php echo $moduleclass_sfx; ?>"><?php echo $lineone; ?></div>
<div class="footer2<?php echo $moduleclass_sfx; ?>"><?php echo JText::_('MOD_FOOTER_LINE2'); ?></div>
home/digilove/public_html/administrator/modules/mod_submenu/tmpl/default.php000064400000003432152346407350023571 0ustar00<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_submenu
 *
 * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

?>
<div id="sidebar">
	<div class="sidebar-nav">
		<?php if ($displayMenu) : ?>
		<ul id="submenu" class="nav nav-list">
			<?php foreach ($list as $item) : ?>
			<?php if (isset ($item[2]) && $item[2] == 1) : ?>
				<li class="active">
			<?php else : ?>
				<li>
			<?php endif; ?>
			<?php if ($hide) : ?>
				<a class="nolink"><?php echo $item[0]; ?></a>
			<?php else : ?>
				<?php if (strlen($item[1])) : ?>
					<a href="<?php echo JFilterOutput::ampReplace($item[1]); ?>"><?php echo $item[0]; ?></a>
				<?php else : ?>
					<?php echo $item[0]; ?>
				<?php endif; ?>
			<?php endif; ?>
			</li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
		<?php if ($displayMenu && $displayFilters) : ?>
		<hr />
		<?php endif; ?>
		<?php if ($displayFilters) : ?>
		<div class="filter-select hidden-phone">
			<h4 class="page-header"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></h4>
			<form action="<?php echo JRoute::_($action); ?>" method="post">
				<?php foreach ($filters as $filter) : ?>
					<label for="<?php echo $filter['name']; ?>" class="element-invisible"><?php echo $filter['label']; ?></label>
					<select name="<?php echo $filter['name']; ?>" id="<?php echo $filter['name']; ?>" class="span12 small" onchange="this.form.submit()">
						<?php if (!$filter['noDefault']) : ?>
							<option value=""><?php echo $filter['label']; ?></option>
						<?php endif; ?>
						<?php echo $filter['options']; ?>
					</select>
					<hr class="hr-condensed" />
				<?php endforeach; ?>
			</form>
		</div>
		<?php endif; ?>
	</div>
</div>
home/digilove/public_html/modules/mod_virtuemart_product/tmpl/default.php000064400000011510152346412500023162 0ustar00<?php // no direct access
defined ('_JEXEC') or die('Restricted access');
// add javascript for price and cart, need even for quantity buttons, so we need it almost anywhere
vmJsApi::jPrice();


$col = 1;
$pwidth = ' width' . floor (100 / $products_per_row);
if ($products_per_row > 1) {
	$float = "floatleft";
} else {
	$float = "center";
}
?>
<div class="vmgroup<?php echo $params->get ('moduleclass_sfx') ?>">

	<?php if ($headerText) { ?>
	<div class="vmheader"><?php echo $headerText ?></div>
	<?php
}
	if ($display_style == "div") {
		?>
		<div class="vmproduct<?php echo $params->get ('moduleclass_sfx'); ?> productdetails">
			<?php foreach ($products as $product) { ?>
			<div class="product-container <?php echo $pwidth ?> <?php echo $float ?>">
				<div class="spacer">
					<?php
					if (!empty($product->images[0])) {
						$image = $product->images[0]->displayMediaThumb ('class="featuredProductImage"', FALSE);
					} else {
						$image = '';
					}
					echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id), $image, array('title' => $product->product_name));
					echo '<div class="clear"></div>';
					$url = JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' .$product->virtuemart_category_id); ?>
					<a href="<?php echo $url ?>"><?php echo $product->product_name ?></a>        <?php    echo '<div class="clear"></div>';

					echo '<div class="productdetails">';
					if ($show_price) {

						echo '<div class="product-price">';
						// 		echo $currency->priceDisplay($product->prices['salesPrice']);
						if (!empty($product->prices['salesPrice'])) {
							echo $currency->createPriceDiv ('salesPrice', '', $product->prices, FALSE, FALSE, 1.0, TRUE);
						}
						// 		if ($product->prices['salesPriceWithDiscount']>0) echo $currency->priceDisplay($product->prices['salesPriceWithDiscount']);
						if (!empty($product->prices['salesPriceWithDiscount'])) {
							echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices, FALSE, FALSE, 1.0, TRUE);
						}
						echo '</div>';

					}
					if ($show_addtocart) {
						echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product));
					}
					echo '</div>';
					?>
				</div>
			</div>
			<?php
			if ($col == $products_per_row && $products_per_row && $col < $totalProd) {
				echo "	</div><div style='clear:both;'>";
				$col = 1;
			} else {
				$col++;
			}
		} ?>
		</div>
		<br style='clear:both;'/>

		<?php
	} else {
		$last = count ($products) - 1;
		?>

		<ul class="vmproduct<?php echo $params->get ('moduleclass_sfx'); ?> productdetails">
			<?php foreach ($products as $product) : ?>
			<li class="product-container <?php echo $pwidth ?> <?php echo $float ?> ">
				<?php
				if (!empty($product->images[0])) {
					$image = $product->images[0]->displayMediaThumb ('class="featuredProductImage"', FALSE);
				} else {
					$image = '';
				}
				echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id), $image, array('title' => $product->product_name));
				echo '<div class="clear"></div>';
				$url = JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' .$product->virtuemart_category_id); ?>
				<a href="<?php echo $url ?>"><?php echo $product->product_name ?></a>        <?php    echo '<div class="clear"></div>';
				echo '<div class="productdetails">';
				// $product->prices is not set when show_prices in config is unchecked
				if ($show_price and  isset($product->prices)) {

					echo '<div class="product-price">'.$currency->createPriceDiv ('salesPrice', '', $product->prices, FALSE, FALSE, 1.0, TRUE);
					if ($product->prices['salesPriceWithDiscount'] > 0) {
						echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices, FALSE, FALSE, 1.0, TRUE);
					}
					echo '</div>';

				}
				if ($show_addtocart) {
					echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'position' => array('ontop', 'addtocart')));
				}
				echo '</div>';
				?>
			</li>
			<?php
			if ($col == $products_per_row && $products_per_row && $last) {
				echo '
		</ul><div class="clear"></div>
		<ul  class="vmproduct' . $params->get ('moduleclass_sfx') . ' productdetails">';
				$col = 1;
			} else {
				$col++;
			}
			$last--;
		endforeach; ?>
		</ul>
		<div class="clear"></div>

		<?php
	}
	if ($footerText) : ?>
		<div class="vmfooter<?php echo $params->get ('moduleclass_sfx') ?>">
			<?php echo $footerText ?>
		</div>
		<?php endif; ?>
</div>home/digilove/public_html/modules/mod_related_items/tmpl/default.php000064400000001104152346462370022051 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_related_items
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<ul class="relateditems<?php echo $moduleclass_sfx; ?> mod-list">
<?php foreach ($list as $item) : ?>
<li>
	<a href="<?php echo $item->route; ?>">
		<?php if ($showDate) echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC4')) . ' - '; ?>
		<?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
</ul>
home/digilove/public_html/plugins/installer/urlinstaller/tmpl/default.php000064400000002141152351342170023110 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Installer.urlinstaller
 *
 * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');

JFactory::getDocument()->addScriptDeclaration('
	Joomla.submitbuttonurl = function()
	{
		var form = document.getElementById("adminForm");

		JoomlaInstaller.showLoading();
		form.installtype.value = "url"
		form.submit();
	};
');
?>
<legend><?php echo JText::_('PLG_INSTALLER_URLINSTALLER_TEXT'); ?></legend>
<div class="control-group">
	<label for="install_url" class="control-label"><?php echo JText::_('PLG_INSTALLER_URLINSTALLER_TEXT'); ?></label>
	<div class="controls">
		<input type="text" id="install_url" name="install_url" class="span5 input_box" size="70" placeholder="https://"/>
	</div>
</div>
<div class="form-actions">
	<input type="button" class="btn btn-primary" id="installbutton_url"
		value="<?php echo JText::_('PLG_INSTALLER_URLINSTALLER_BUTTON'); ?>" onclick="Joomla.submitbuttonurl()" />
</div>
home/digilove/public_html/administrator/modules/mod_privacy_dashboard/tmpl/default.php000064400000004142152351363040025567 0ustar00<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_privacy_dashboard
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');

$totalRequests  = 0;
$activeRequests = 0;

?>
<div class="row-striped">
	<?php if (count($list)) : ?>
		<div class="row-fluid">
			<div class="span5"><strong><?php echo JText::_('COM_PRIVACY_DASHBOARD_HEADING_REQUEST_TYPE'); ?></strong></div>
			<div class="span5"><strong><?php echo JText::_('COM_PRIVACY_DASHBOARD_HEADING_REQUEST_STATUS'); ?></strong></div>
			<div class="span2"><strong><?php echo JText::_('COM_PRIVACY_DASHBOARD_HEADING_REQUEST_COUNT'); ?></strong></div>
		</div>
		<?php foreach ($list as $row) : ?>
			<div class="row-fluid">
				<div class="span5">
					<a class="hasTooltip" href="<?php echo JRoute::_('index.php?option=com_privacy&view=requests&filter[request_type]=' . $row->request_type . '&filter[status]=' . $row->status); ?>" data-original-title="<?php echo JText::_('COM_PRIVACY_DASHBOARD_VIEW_REQUESTS'); ?>">
						<strong><?php echo JText::_('COM_PRIVACY_HEADING_REQUEST_TYPE_TYPE_' . $row->request_type); ?></strong>
					</a>
				</div>
				<div class="span5"><?php echo JHtml::_('PrivacyHtml.helper.statusLabel', $row->status); ?></div>
				<div class="span2"><span class="badge badge-info"><?php echo $row->count; ?></span></div>
			</div>
			<?php if (in_array($row->status, array(0, 1))) : ?>
				<?php $activeRequests += $row->count; ?>
			<?php endif; ?>
			<?php $totalRequests += $row->count; ?>
		<?php endforeach; ?>
		<div class="row-fluid">
			<div class="span5"><?php echo JText::plural('COM_PRIVACY_DASHBOARD_BADGE_TOTAL_REQUESTS', $totalRequests); ?></div>
			<div class="span7"><?php echo JText::plural('COM_PRIVACY_DASHBOARD_BADGE_ACTIVE_REQUESTS', $activeRequests); ?></div>
		</div>
	<?php else : ?>
		<div class="row-fluid">
			<div class="span12">
				<div class="alert"><?php echo JText::_('COM_PRIVACY_DASHBOARD_NO_REQUESTS'); ?></div>
			</div>
		</div>
	<?php endif; ?>
</div>
home/digilove/public_html/administrator/modules/mod_custom/tmpl/default.php000064400000000437152351366300023422 0ustar00<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_custom
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

echo $module->content;
home/digilove/public_html/administrator/modules/mod_rsfirewall/tmpl/default.php000064400000006730152351430320024256 0ustar00<?php
/*
 * @package 	RSFirewall!
 * @copyright 	(c) 2009 - 2024 RSJoomla!
 * @link 		https://www.rsjoomla.com/joomla-extensions/joomla-security.html
 * @license 	GNU General Public License https://www.gnu.org/licenses/gpl-3.0.en.html
 */

\defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\HTML\HTMLHelper;

Text::script('MOD_RSFIREWALL_YOU_ARE_RUNNING_LATEST_VERSION');
Text::script('MOD_RSFIREWALL_UPDATE_IS_AVAILABLE_RSFIREWALL');
?>
<div id="mod_rsfirewall_container">
    <?php
    if ($showGrade)
	{
        ?>
        <div class="mod_rsfirewall_line">
            <strong><i class="icon-shield"></i> <?php echo Text::_('MOD_RSFIREWALL_GRADE'); ?></strong>
            <span <?php if ($grade > 0) { ?>style="color: <?php echo $color; ?>;"<?php } ?>><?php echo $grade > 0 ? Text::sprintf('MOD_RSFIREWALL_YOUR_GRADE_IS', $grade) : Text::_('MOD_RSFIREWALL_GRADE_NOT_RUN'); ?></span>
        </div>
        <?php
	}
	if ($showVersions)
	{
        ?>
        <div class="mod_rsfirewall_line">
            <strong><i class="icon-shield"></i> RSFirewall!</strong>
            <span id="mod-rsfirewall-firewall-version">
                <span class="com-rsfirewall-icon-16-loading"></span>
            </span>
        </div>
        <div class="mod_rsfirewall_line">
            <strong><i class="icon-joomla"></i> Joomla!</strong>
            <span id="mod-rsfirewall-joomla-version">
                <span class="com-rsfirewall-icon-16-loading"></span>
            </span>
        </div>
        <?php
	}
    if ($showMap)
	{
		?>
        <div class="mod_rsfirewall_line"><?php echo Text::_('MOD_RSFIREWALL_ATTACKS_BLOCKED_REGION_BASED'); ?></div>
        <div id="com-rsfirewall-virtual-map"></div>
	    <?php
	}
    if ($showLogs && $logs)
    {
        ?>
	    <div class="mod_rsfirewall_line"><?php echo Text::sprintf('MOD_RSFIREWALL_LAST_MESSAGES_FROM_SYSTEM_LOG', $logNum, Route::_('index.php?option=com_rsfirewall&view=logs')); ?></div>
        <table class="adminlist table table-striped">
        <thead>
            <tr>
                <th nowrap="nowrap"><?php echo Text::_('MOD_RSFIREWALL_ALERT_LEVEL'); ?></th>
                <th nowrap="nowrap"><?php echo Text::_('MOD_RSFIREWALL_DATE_EVENT'); ?></th>
                <th nowrap="nowrap"><?php echo Text::_('MOD_RSFIREWALL_IP_ADDRESS'); ?></th>
                <th nowrap="nowrap"><?php echo Text::_('MOD_RSFIREWALL_PAGE'); ?></th>
                <th nowrap="nowrap"><?php echo Text::_('MOD_RSFIREWALL_ALERT_DESCRIPTION'); ?></th>
            </tr>
        </thead>
        <?php
        foreach ($logs as $i => $log)
        {
            ?>
            <tr class="row<?php echo $i % 2; ?>">
                <td class="com-rsfirewall-level-<?php echo $log->level; ?>"><?php echo Text::_('MOD_RSFIREWALL_LEVEL_'.$log->level); ?></td>
                <td><?php echo HTMLHelper::_('date', $log->date, 'Y-m-d H:i:s'); ?></td>
                <td><?php echo HTMLHelper::_('image', 'com_rsfirewall/flags/' . $geoip->getCountryFlag($log->ip), $geoip->getCountryCode($log->ip), array(), true); ?> <?php echo $geoip->show($log->ip); ?></td>
                <td class="mod-rsfirewall-break-word"><?php echo htmlentities($log->page, ENT_COMPAT, 'utf-8'); ?></td>
                <td><?php echo Text::_('COM_RSFIREWALL_EVENT_'.$log->code); ?></td>
            </tr>
            <?php
        }
        ?>
        </table>
	    <?php
    }
    ?>
</div>home/digilove/public_html/modules/mod_sj_vm_categories/tmpl/default.php000064400000007055152351530240022552 0ustar00<?php
/**
 * @package SJ Categories for VirtueMart
 * @version 2.2.0
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @copyright (c) 2014 YouTech Company. All Rights Reserved.
 * @author YouTech Company http://www.smartaddons.com
 *
 */
defined('_JEXEC') or die;

JHtml::stylesheet('modules/' . $module->module . '/assets/css/sj-categories.css');
ImageHelper::setDefault($params);
$uniqued = 'sj_categories_' . rand() . time();
$options = $params->toObject();
$theme = $params->get('theme', 'theme1');

if ($theme == 'theme4') {
    JHtml::script('modules/' . $module->module . '/assets/js/jquery.imagesloaded.js');
    JHtml::script('modules/' . $module->module . '/assets/js/jquery.sj_accordion.js');
    ?>

    <script type="text/javascript">
        //<![CDATA[
        jQuery(document).ready(function ($) {
            ;
            (function (element) {
                var $element = $(element);
                $(window).load(function () {
                    $element.imagesLoaded(function () {
                    });
                });
                $element.imagesLoaded(function () {

                    $element.sj_accordion({
                        items: '.sj-categories-inner',
                        heading: '.sj-categories-heading',
                        content: '.sj-categories-content',
                        active_class: 'selected',
                        event: '<?php echo $params->get('accmouseenter','click'); ?>',
                        delay: 300,
                        duration: 500,
                        active: '1'
                    });

                    var height_content = function () {
                        $('.sj-categories-inner', $element).each(function () {
                            var $inner = $('.sj-categories-content', $(this).filter('.selected'));
                            $inner.css('height', 'auto');
                            if ($inner.length) {
                                var inner_height = $inner.height();
                                $inner.css('height', inner_height);
                            }
                        });
                    }

                    if ($.browser.msie && parseInt($.browser.version, 10) <= 8) {

                    } else {
                        $(window).resize(function () {
                            height_content();
                        });
                        $(window).load(function () {
                            height_content();
                        });
                    }
                });
            })('#<?php echo $uniqued;?>')

        });
        //]]>

    </script>
<?php } ?>

<?php if (!empty($options->pretext)) { ?>
    <div class="intro_text">
        <?php echo $options->pretext; ?>
    </div>
<?php } ?>

<!--[if lt IE 9]>
<div id="<?php echo $uniqued; ?>"
     class="sj-categories <?php echo $theme; ?> <?php echo $options->deviceclass_sfx; ?> msie lt-ie9"><![endif]-->
<!--[if IE 9]>
<div id="<?php echo $uniqued; ?>"
     class="sj-categories <?php echo $theme; ?> <?php echo $options->deviceclass_sfx; ?> msie"><![endif]-->
<!--[if gt IE 9]><!-->
<div id="<?php echo $uniqued; ?>" class="sj-categories <?php echo $theme; ?> <?php echo $options->deviceclass_sfx; ?>">
    <!--<![endif]-->
    <?php include JModuleHelper::getLayoutPath($module->module, $layout . '_' . $theme); ?>
</div>

<?php if (!empty($options->posttext)) { ?>
    <div class="footer_text">
        <?php echo $options->posttext; ?>
    </div>
<?php } ?>
 home/digilove/public_html/plugins/vmshipment/weight_countries/tmpl/default.php000064400000002540152351701420024147 0ustar00<?php
/**
*
* @version $Id$
* @package VirtueMart
* @subpackage Shipment
* @author Max Milbers
* @copyright Copyright (C) 2014 by the VirtueMart Team 
* All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/

//vmdebug('we have here ',$viewData['product']->prices,$viewData['method']);
$currency = $viewData['currency'];
if(!empty($viewData['method']->countries) and is_array($viewData['method']->countries) and count($viewData['method']->countries)>0){
	$countryM = VmModel::getModel('country');
	echo vmText::_('VMSHIPMENT_WEIGHT_COUNTRIES_SHIP_TO');
	foreach($viewData['method']->countries as $virtuemart_country_id){
		$country = $countryM->getData($virtuemart_country_id);
		echo $country->country_name;
		//vmdebug('my country ',$country);
	}
	echo '<br/>';
}

echo vmtext::sprintf('VMSHIPMENT_WEIGHT_COUNTRIES_WITH_SHIPMENT', $viewData['method']->shipment_name, $currency->priceDisplay($viewData['product']->prices['shipmentPrice']));
?>home/digilove/public_html/modules/mod_whosonline/tmpl/default.php000064400000001645152352505700021417 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_whosonline
 *
 * @copyright   (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<?php if ($showmode == 0 || $showmode == 2) : ?>
	<?php $guest = JText::plural('MOD_WHOSONLINE_GUESTS', $count['guest']); ?>
	<?php $member = JText::plural('MOD_WHOSONLINE_MEMBERS', $count['user']); ?>
	<p><?php echo JText::sprintf('MOD_WHOSONLINE_WE_HAVE', $guest, $member); ?></p>
<?php endif; ?>

<?php if (($showmode > 0) && count($names)) : ?>
	<?php if ($params->get('filter_groups', 0)) : ?>
		<p><?php echo JText::_('MOD_WHOSONLINE_SAME_GROUP_MESSAGE'); ?></p>
	<?php endif; ?>
	<ul class="whosonline<?php echo $moduleclass_sfx; ?>">
	<?php foreach ($names as $name) : ?>
		<li>
			<?php echo $name->username; ?>
		</li>
	<?php endforeach; ?>
	</ul>
<?php endif;
home/digilove/public_html/administrator/modules/mod_toolbar/tmpl/default.php000064400000000455152352520470023553 0ustar00<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_toolbar
 *
 * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// Echo the toolbar.
echo $toolbar;
home/digilove/public_html/components/com_weblinks/views/category/tmpl/default.php000064400000000651152352706140024533 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_weblinks
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
$this->subtemplatename = 'items';
echo JLayoutHelper::render('joomla.content.category_default', $this);
home/digilove/public_html/components/com_marketplace/views/follow/tmpl/default.php000064400000030445152352726510024701 0ustar00<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.
    DIRECTORY_SEPARATOR.'com_marketplace'.DIRECTORY_SEPARATOR.'helpers'.
    DIRECTORY_SEPARATOR.'marketplace.php';
}
jimport('joomla.filter.output');
jimport('joomla.application.module.helper');
JHTML::_('jquery.framework');
$doc= JFactory::getDocument();
$doc->addStyleSheet(
    JURI::root().
    'components/com_marketplace/css/newdesign/follow.css'
);

$lang = JFactory::getLanguage();
$userdetails = JFactory::getUser();
$lang_tag=strtolower($lang->getTag());
$lang_tag=str_replace('-', '_', $lang_tag);
$jinput=JFactory::getApplication()->input;
$method=$jinput->getMethod();
$sel_id=$jinput->get('sel_id', 0, 'INT');
if (!$sel_id) {
    $sel_id=$jinput->get('seller_id', 0, 'INT');
}
if (!strlen($sel_id)) {
    $sel_id=$userdetails->id;
}
$seller_name_data = MarketplaceHelper::getSeller(
    $sel_id, array('u.name', 's.screenname')
);

if (strlen($seller_name_data->screenname)) {
    $seller_name=ucwords($seller_name_data->screenname).JText::_('THE_S');
} else {
    $seller_name=ucwords($seller_name_data->name).JText::_('THE_S');
}
$model=$this->getModel();
$params = JComponentHelper::getParams('com_marketplace');
$lazy_limit=trim($params->get('wk_lazy_load_limit'));
$total_follower=$model->getFollowers($sel_id);
$count=count($total_follower);

/*********Calculated Modules******************/
$obj=new JDocumentHTML();$mod="";
if (!$obj->countModules('wk_marketplace-left')&& !$obj->countModules('wk_marketplace-right')) {
    $both=0;
} elseif ((!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right'))||($obj->countModules('wk_marketplace-left') && !$obj->countModules('wk_marketplace-right'))) {
    $both=1;
    if (!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right')) {
        $mod="r";
    } else {
        $mod="l";
    }
} else {
        $both=2;
}
if ($both==0) {
    $maxwidth="900";
} elseif ($both==1) {
    $maxwidth="700";
} else {
    $maxwidth="550";
}
$param  = JComponentHelper::getParams('com_marketplace');
$bgcolor=trim($param->get('head_bg_color'));
$textcolor=trim($param->get('head_txt_color'));
?>
<style type="text/css">
    .order_history{
        background-color:<?php echo $bgcolor;?>;
        
    }
    .detail_text{
        color:<?php echo $textcolor;?>;
    }
</style>
<?php
/*********Calculated Modules End******************/
?>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<style type="text/css">
    .follow_main,.marketplace_position1,.marketplace_position2 {
        margin: 5px;
        display:inline-block;
        vertical-align: top;
    }
    .wk_main_loader{
    position: relative;
}
.wk_main_loader_overlay{
    position: absolute;
    background-color: #FFF ! important; 
    z-index: 999; 
    width:101%;
    height:100%;
    border: 1px solid #CCCCCC;
    border-radius: 10px;
}
.table th {
    background: #555;
    color: white;
    border-right: 1px solid white;
}
#clk, #clear, #search_order {
    height: 37px;
    border-radius: 0;
}
</style>
<!--****************Custom Position********************************* -->
<div style="width:100%;" class="wk_main_loader">
    <div class="wk_main_loader_overlay" >
        <img style="display:block;margin:0 auto;" src="<?php echo JURI::root()."components/com_marketplace/"?>images/ajaxspinner1.gif"/>
    </div>
<div class="Wk_outer">
<div class="marketplace_position-top" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-top}'); ?></div>
<div class="marketplace_position1" ><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-left}'); ?></div>

<!-- ****************Custom Position end********************************* -->

<div class="follow_main">
    <div class="order_history"><span class="detail_design"></span><span class="detail_text"><?php echo $seller_name. " " .JText::_('FOL_RS')?></span></div>
    <div class="search_container">
    <?php
    if ($count) { ?>
        <input style="height:27px;" type="text" id="search_order" name="or_srch" value="" placeholder="<?php echo JText::_('ENTER_FOLLOWER_NAME_FOR_SEACRH');?>">
        <div class="button_container">
            <input id="clk" type="button" name="srch_pl" class="btn btn-danger" value="<?php echo JText::_('SEARCH_CLICK');?>" title="<?php echo  JText::_('CLICK_TO_SEACRH');?>">
            <input id="clear" type="button" name="srch_clr" class="btn btn-primary" value="<?php echo JText::_('SEARCH_CLEAR');?>" title="<?php echo  JText::_('CLICK_TO_CLEAR');?>">
        </div>
    <?php } ?>
    </div>
    <div class="follow_wrapper">
        <div class="table-responsive tb" >
            <div class="no-more-tables" >
                <table class="table table-striped table-hover" style="margin-top:10px;">
                        <thead>
                            <tr>
                                <th width="" style="text-align:center">
                                    <?php echo JText::_('FOLLOWER_EMAIL'); ?>
                                </th>
                                <th width="" style="text-align:center">
                                    <?php echo JText::_('FOLLOWER_NAME'); ?>
                                </th>
                                <th width="" style="text-align:center">
                                    <?php echo JText::_('FOLLOW_DATE'); ?>
                                </th>
                               
                            </tr>
                        </thead>
                        <tbody class="order_table">
                        <?php  
                        $i=0;
                        $k =0;
                        if (count($total_follower)) {
                            $config=JFactory::getConfig();
                            $offset=$config->get('offset');
                            foreach ($total_follower as $key=>$foll) {
                                if ($key<$lazy_limit) {
                                    $jdate=JFactory::getDate($foll->date_follow, $offset);
                                    $foll->date_follow=$jdate->format('d-F-Y', true);
                                    ?>
                                    <tr class="rw_pg  mprow <?php echo "row$k"; ?>">
                                        <td data-title="<?php echo JText::_('FOLLOWER_EMAIL'); ?>"><p style="word-wrap:break-word;text-align:center"><?php echo $foll->follower_email;?></p>
                                        </td>
                                        <td data-title="<?php echo JText::_('FOLLOWER_NAME'); ?>"><p style="word-wrap:break-word;text-align:center"><?php echo $foll->name;?></p>
                                        </td>
                                        <td data-title="<?php echo JText::_('FOLLOW_DATE'); ?>"><p style="word-wrap:break-word;text-align:center"><?php echo $foll->date_follow;?></p>
                                        </td>
                                    </tr>
                                    <?php
                                    $i++; 
                                    $k = 1 - $k;
                                }
                            }
                        } else {
                            echo "<tr style='width:100%;padding-left:1%'><td style='padding-left:0px'  colspan='3'><div class='alert alert-info'><strong>Info!</strong>".JText::_('NO_RECORD_FOUND')."</div></td></tr>";
                        } 
                        ?>
                        </tbody>
                </table>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
jQuery(window).load(function(){
        jQuery('.wk_main_loader_overlay').css('display','none');
    });

var both=<?php echo $both;?>;
var mod="<?php echo $mod;?>";
jQuery(function(){
        jQuery(window).on('load resize',function(){
               if(both==2){
                   
                   if(jQuery('.Wk_outer').width()>=900){
                    jQuery('.marketplace_position1').css("width","19%");
                    jQuery('.marketplace_position2').css("width","19%");
                    jQuery('.follow_main').css("width","57%");
                }
                else if(jQuery('.Wk_outer').width()<766 && jQuery('.Wk_outer').width()>650){
                    jQuery('.marketplace_position1').css("width","23%");
                    jQuery('.marketplace_position2').css("width","99%");
                    jQuery('.follow_main').css("width","73%");
                }
                else if( jQuery('.Wk_outer').width()<=650){
                    jQuery('.marketplace_position1').css("width","99.5%");
                    jQuery('.marketplace_position2').css("width","99.5%");
                    jQuery('.follow_main').css("width","99.5%");
                }
            }
            else if(both==1){
                   
                   if(jQuery('.Wk_outer').width()>=724){
                       if (mod=="l")
                           jQuery('.marketplace_position1').css("width","23.5%");
                       else
                        jQuery('.marketplace_position2').css("width","23.5%");
                    jQuery('.follow_main').css("width","70.5%");
                }
                else if( jQuery('.Wk_outer').width()<724){
                    if (mod=="l")
                        jQuery('.marketplace_position1').css("width","99.5%");
                    else
                        jQuery('.marketplace_position2').css("width","99.5%");
                    jQuery('.follow_main').css("width","99.5%");
                }
            }
            else{
                jQuery('.follow_main').css("width","99.5%");
            }
           });
       });
var lastScrollTop = 0;
var strt=<?php echo $lazy_limit;?>;
var lmt=<?php echo $lazy_limit;?>;
var scl_ht=50;
var cnt=1;
var srch=jQuery('#search_order').val();
var seller=<?php echo $sel_id;?>;
jQuery(window).scroll(function(event){
   var st = jQuery(this).scrollTop();
   if (st > lastScrollTop){

       var sct=jQuery(document).scrollTop()

   if(sct>=scl_ht*cnt)
          {
              cnt++;
              if(strt<<?php echo $count;?>)
              {
                  jQuery.ajax({
                      url:'<?php echo JRoute::_("index.php?option=com_marketplace&view=follow&task=follow.searchFollower", false)?>',
                      type:'POST',
                      data : { start:strt,limit:lmt,seller:seller},
                      success:function(data){
                          jQuery(".follow_main .order_table").html(data);
                      }
                  });
              }
              strt=strt+lmt;
          }
  
   lastScrollTop = st;
}
});

jQuery('#clk').on('click',function(){

    var srch=jQuery('#search_order').val();
    
    jQuery.ajax({
        url:'<?php echo JRoute::_("index.php?option=com_marketplace&view=follow&task=follow.searchFollower", false)?>',
        type:'POST',
        data : { srch:srch,seller:seller},
        success:function(data){
            jQuery(".follow_main .order_table").html(data);
        }

    });

});

jQuery('#clear').on('click',function(){
    var srch='';
    jQuery.ajax({
        url:'<?php echo JRoute::_("index.php?option=com_marketplace&view=follow&task=follow.searchFollower", false)?>',
        type:'POST',
        data : { srch:srch,seller:seller},
        success:function(data){
            jQuery(".follow_main .order_table").html(data);
            jQuery('#search_order').val('');
        }
    });
});

</script>
<div class="marketplace_position2" ><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-right}'); ?></div>
<div class="marketplace_position-bottom" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-bottom}'); ?></div>

</div>
</div>home/digilove/public_html/components/com_marketplace/views/mypayments/tmpl/default.php000064400000041273152353000270025573 0ustar00<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filter.output');
JHTML::_("jQuery.framework");
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root().'components/com_marketplace/css/newdesign/payment.css');
$document->addStyleSheet('https://fonts.googleapis.com/css?family=Roboto');
$user = JFactory::getUser();
$params = JComponentHelper::getParams('com_marketplace');
$lazy_limit=trim($params->get('wk_lazy_load_limit'));
$id = $user->id;
/*********Calculated Modules******************/
$obj=new JDocumentHTML();
$mod="";
$model=$this->getModel();
$totalRecords=$model->getTotalPayment($id);
$totalRecords=count($totalRecords);
if (!$obj->countModules('wk_marketplace-left')&& !$obj->countModules('wk_marketplace-right')) {
        $both=0;
} elseif ((!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right'))||($obj->countModules('wk_marketplace-left') && !$obj->countModules('wk_marketplace-right'))) {
    $both=1;
    if (!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right')) {
        $mod="r";
    } else {
        $mod="l";
    }
} else {
        $both=2;
}
if ($both==0) {
    $maxwidth="900";
} elseif ($both==1) {
    $maxwidth="700";
} else {
    $maxwidth="550";
}
/*********Calculated Modules End******************/
$param  = JComponentHelper::getParams('com_marketplace');
$bgcolor=trim($param->get('head_bg_color'));
$textcolor=trim($param->get('head_txt_color'));
$jdate=JFactory::getDate(JFactory::getUser($id)->registerDate);
$currentdate=JFactory::getDate();
$newDate  = new JDate($currentdate . ' +1 day'); 
$curr='';
$initial_records=$model->getMpPayment($id, $jdate->format('Y-m-d'), $newDate->format('Y-m-d'), $lazy_limit, 1);
?>
<style type="text/css">
    .order_history{
        background-color:<?php echo $bgcolor;?>;
    }
    .detail_text{
        color:<?php echo $textcolor;?>;
    }

</style>
<style type="text/css">
    .mypayment_main,.marketplace_position1,.marketplace_position2 {
        margin: 5px;
        display:block;
        vertical-align: top;
    }
        .wk_main_loader{
        position: relative;
    }
    .wk_main_loader_overlay{
        position: absolute;
        background-color: #FFF ! important; 
        z-index: 999; 
        width:101%;
        height:100%;
        border: 1px solid #CCCCCC;
        border-radius: 10px;
    }
</style>
<!--****************Custom Position********************************* -->
<div style="width:100%;" class="wk_main_loader">
    <div class="wk_main_loader_overlay" >
        <img style="display:block;margin:0 auto;" src="<?php echo JURI::root()."components/com_marketplace/"?>images/ajaxspinner1.gif"/>
    </div>
<div class="Wk_outer">
    <div class="marketplace_position-top" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-top}'); ?></div>
<div class="marketplace_position1 " ><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-left}'); ?></div >

<!-- ****************Custom Position end********************************* -->	
<div class="mypayment_main">
    <div class="tabs-data">
        <div class="block">
            <div class="order_history">
                <span class="detail_design"></span>
                <span class="detail_text"><?php echo JText::_('MY_PAY')?></span>
            </div>
            <div class="tab-pane" id="payment">
                <div class="block-cont">
                    <div class="heading"><strong><?php echo JText::_('PAY_SUMM'); ?></strong></div>
                    <div class="no-more-tables" >
                        <div class="table-responsive" style="margin:0px 1%">
                            <table width="100%"class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th class="center"><?php echo JText::_('TOTAL_AMOUNT'); ?></th>
                                        <th class="center "><?php echo JText::_('COMMISION_RATE'); ?></th>
                                        <th class="center "><?php echo JText::_('COMMISION_AMOUNT'); ?></th>
                                        <th class="center "><?php echo JText::_('RECIEVED_AMOUNT'); ?></th>
                                        <th class="center "><?php echo JText::_('REMAIN_AMOUNT'); ?></th>
                                        <th class="center "><?php echo JText::_('LAST_GET_AMOUNT'); ?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php 
                                    $rate=0;;
                                    $comm=0;
                                    $cm_amt=0;;
                                    $comm=$this->model->getCurrencyDetails($id);
                                    
                                    $data_c=count($comm);
                                    $total_order=$this->model->getTotalOrder();
                                    $total_count=count($total_order);
                                    if (isset($comm) && $total_count) {
                                        $comm->total_sales1=0.0;
                                        foreach ($total_order as $key => $value) {
                                            if ($value->virtuemart_real_order_id=='r') {
                                                $comm->total_sales1+=$value->virtuemart_product_total_amount;
                                                $rate=$value->virtuemart_seller_commision_rate;
                                                $cm_amt+=($value->virtuemart_product_total_amount*$rate)/100;
                                                $cm_amt=number_format((float)$cm_amt, 2, '.', '');
                                            } else {
                                                $comm->total_sales1+=$value->virtuemart_product_total_amount;
                                                $rate=$value->virtuemart_seller_commision_rate;
                                                $cm_amt+=$rate*$value->virtuemart_product_quantity;
                                                $cm_amt=number_format((float)$cm_amt, 2, '.', '');
                                            }
                                        }
                                        $cm_amt=$comm->total_sales-$comm->amount_remain-$comm->amount_recieved;
                                        $cm_amt=number_format((float)$cm_amt, 2, '.', '');
                                        if ($comm->commision_type=='f') {
                                            $sign=$comm->currency_symbol;
                                        } else {
                                            $sign='%';
                                        }
                                        $curr=$comm->currency_symbol;
                                    ?>
                                    <tr class="mprow">
                                        <td data-title="<?php echo JText::_('TOTAL_AMOUNT'); ?>">
                                            <?php echo $curr.' '.$comm->total_sales; ?>
                                        </td>
                                        <td data-title="<?php echo JText::_('COMMISION_RATE'); ?>">
                                            <?php echo $comm->commision.' '.$sign; ?>
                                        </td>
                                        <td data-title="<?php echo JText::_('COMMISION_AMOUNT'); ?>">
                                            <?php echo $curr.' '.$cm_amt; ?>
                                        </td>
                                        <td data-title="<?php echo JText::_('RECIEVED_AMOUNT'); ?>">
                                            <?php echo $curr.' '.$comm->amount_recieved; ?>
                                        </td>
                                        <td data-title="<?php echo JText::_('REMAIN_AMOUNT'); ?>">
                                            <?php echo $curr.' '.$comm->amount_remain; ?>
                                        </td>
                                        <td data-title="<?php echo JText::_('LAST_GET_AMOUNT'); ?>">
                                            <?php echo $curr.' '.$comm->amount_paid; ?>
                                        </td>
                                    </tr>
                                    <?php  } else {   ?>
                                        <tr class="mprow">
                                            <td colspan="10">
                                                <?php echo JText::_('DETAIL_NOT_AVAILABLE'); ?>
                                            </td>
                                        </tr>
                                    <?php } ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="heading"><strong><?php echo JText::_('TRAN_HIS'); ?></strong></div>
                    <span class="st-en-date">
                        <?php 
                        
                        echo JText::_("START_DATE_").JHTML::calendar($jdate->format('Y-m-d'), 'startdate', 'startdate', '%Y-%m-%d', array( 'class' => 'inputbox', 'onChange' => 'changeTrHistory()' )); ?>
                    </span>
                    <span class="st-en-date">
                        <?php echo JText::_("END_DATE_").JHTML::calendar($newDate->format('Y-m-d'), 'enddate', 'enddate', '%Y-%m-%d', array( 'class' => 'inputbox', 'onChange' => 'changeTrHistory()' )); ?>
                    </span>
                    <div class="no-more-tables" >
                        <div class="table-responsive tb" style="margin:0px 1%">
                            <table width="100%" class="table table-bordered table-striped pay_hs">
                                <thead>
                                    <tr>
                                        <th><?php echo JText::_('S_NO'); ?></th>
                                        <th><?php echo JText::_('RECIEVED_AMOUNT'); ?></th>
                                        <th><?php echo JText::_('REMAIN_AMOUNT'); ?></th>
                                        <th><?php echo JText::_('RCD_DATE'); ?></th>
                                        <th><?php echo JText::_('PAY_MODE'); ?></th>
                                    </tr>
                                </thead>
                                <tbody class="payment_hs">
                                    <?php
                                    foreach ($initial_records as $key=>$value) {
                                        $formatdate=JFactory::getDate($value->date);
                                    ?>
                                    <tr>
                                        <td data-title="<?php echo JText::_('S_NO'); ?>"><?php echo $key+1;?></td>
                                        <td data-title="<?php echo JText::_('RECIEVED_AMOUNT'); ?>"><?php echo $value->currency_symbol." ".$value->amount;?></td>
                                        <td data-title="<?php echo JText::_('REMAIN_AMOUNT'); ?>"><?php echo $value->currency_symbol." ".$value->remain_amount;?></td>
                                        <td data-title="<?php echo JText::_('RCD_DATE'); ?>"><?php echo $value->date;// $date->format('Y-F-d H:M:S');?></td>
                                        <td data-title="<?php echo JText::_('PAY_MODE'); ?>"><?php echo $value->payment_mode;?></td>
                                    </tr>
                                    <?php
                                    }
                                    ?>
                                </tbody>
                                <tfoot>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
var element=document.getElementsByClassName("wk_main_loader_overlay");

window.addEventListener('load', function() {
  element[0].style.display ="none";
});

/*jQuery(window).load(function(){
        jQuery('.wk_main_loader_overlay').css('display','none');
    })*/;
totalRecords='<?php echo $totalRecords;?>';
var both="<?php echo $both;?>";
var mod="<?php echo $mod;?>";
jQuery(function(){
    jQuery(window).on('load resize',function(){
        if(both==2){
                if(jQuery('.Wk_outer').width()>=900){
                jQuery('.marketplace_position1').css("width","19%");
                jQuery('.marketplace_position2').css("width","19%");
                jQuery('.mypayment_main').css("width","57%");
            }
            else if(jQuery('.Wk_outer').width()<766 && jQuery('.Wk_outer').width()>650){
                jQuery('.marketplace_position1').css("width","23%");
                jQuery('.marketplace_position2').css("width","99%");
                jQuery('.mypayment_main').css("width","73%");
            }
            else if( jQuery('.Wk_outer').width()<=650){
                jQuery('.marketplace_position1').css("width","99.5%");
                jQuery('.marketplace_position2').css("width","99.5%");
                jQuery('.mypayment_main').css("width","99.5%");
            }
        }
        else if(both==1){
                if(jQuery('.Wk_outer').width()>=724){
                    if (mod=="l")
                        jQuery('.marketplace_position1').css("width","23.5%");
                    else
                    jQuery('.marketplace_position2').css("width","23.5%");
                jQuery('.mypayment_main').css("width","70.5%");
            }
            else if( jQuery('.Wk_outer').width()<724){
                if (mod=="l")
                    jQuery('.marketplace_position1').css("width","99.5%");
                else
                    jQuery('.marketplace_position2').css("width","99.5%");
                jQuery('.mypayment_main').css("width","99.5%");
            }
        }
        else{
            jQuery('.mypayment_main').css("width","99.5%");
        }
    });
});
function changeTrHistory()
{
    var startdate = jQuery('#startdate').attr('value');
    var enddate = jQuery('#enddate').attr('value');
    jQuery.ajax({
        url:"<?php echo JRoute::_('index.php?option=com_marketplace&view=mypayments&task=mypayments.getMpPayment', false)?>",
        datatype:"json",
        data: {startdate, enddate,startlimit:'0',lmt:<?php echo $lazy_limit?>,id:<?php echo $id?>},
        success:function(data){
            jQuery(".payment_hs").html('');
            data = jQuery.parseJSON(data);
            var count=0;
            if(data.length==0){
                jQuery('.nodata-notice').remove();
                jQuery(".pay_hs").after("<div class='nodata-notice'><?php echo JText::_('HISTORY_NO_DATA_FOUND'); ?></div>");
            }
            else{
                jQuery('.nodata-notice').remove();
                jQuery.each(data,function(){
                    jQuery("<tr class='rw_pg  mprow'>").appendTo('.payment_hs');
                    jQuery("<td data-title=<?php echo JText::_('S_NO'); ?>>"+(count+1)+"</td>").appendTo('.payment_hs');
                    jQuery("<td data-title=<?php echo JText::_('RECIEVED_AMOUNT'); ?>>"+"<?php echo $curr." ";?>" +data[count].amount+"</td>").appendTo('.payment_hs');
                    jQuery("<td data-title=<?php echo JText::_('REMAIN_AMOUNT'); ?>>"+"<?php echo $curr." ";?>" +data[count].remain_amount+"</td>").appendTo('.payment_hs');
                    jQuery("<td data-title=<?php echo JText::_('RCD_DATE'); ?>>"+data[count].date+"</td>").appendTo('.payment_hs');
                    jQuery("<td data-title=<?php echo JText::_('PAY_MODE'); ?>>"+data[count].payment_mode+"</td>").appendTo('.payment_hs');
                    jQuery('<tr/>').appendTo('.payment_hs');
                    count++;
                });
            }
        }
        });
    }

/****************************************************/
</script>
<div class="marketplace_position2  " ><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-right}'); ?></div>
<div class="marketplace_position-bottom" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-bottom}'); ?></div>
</div>
</div>home/digilove/public_html/components/com_marketplace/views/profile/tmpl/default.php000064400000271142152353377040025041 0ustar00<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filter.output');
jimport('joomla.environment.browser');
JHtml::_('behavior.formvalidator');
$browser =JBrowser::getInstance();
$browserType = $browser->getBrowser();
$browserVersion = $browser->getAgentString();

$doc = JFactory::getDocument();
JHtml::_('jquery.framework');
if (!class_exists('VmConfig')) {
    include JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php';
}
if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.
    'components'.DIRECTORY_SEPARATOR.'com_marketplace'.
    DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.
    'marketplace.php';
}
VmConfig::loadConfig();
$wk_model=$this->getModel('profile');
/*code to get auth id by stripeconnect*/
if (JFactory::getApplication()->input->get('code')
    && JFactory::getApplication()->input->get('code') !=null
) {
    $code = JFactory::getApplication()->input->get('code');
    $token_request_body = array(
        'grant_type' => 'authorization_code',
        'client_id' => $this->stripe_client_id,
        'code' => $code,
        'client_secret' => $this->secret_key
    );

    $req = curl_init('https://connect.stripe.com/oauth/token');
    curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($req, CURLOPT_POST, true);
    curl_setopt($req, CURLOPT_POSTFIELDS, http_build_query($token_request_body));
    // TODO: Additional error handling
    $respCode = curl_getinfo($req, CURLINFO_HTTP_CODE);
    curl_setopt($req, CURLOPT_SSL_VERIFYPEER, false);
    $resp = json_decode(curl_exec($req), true);
    $state1='insert';
    
    $wk_model->storeStripeData(
        $resp,
        $this->secret_key,
        $this->public_key,
        $this->stripe_client_id,
        $state1
    );
    JFactory::getApplication()->redirect(
        'index.php?option=com_marketplace&view=profile',
        'Account connected',
        'success'
    );
} elseif (JFactory::getApplication()->input->get('error')) {
    JFactory::getApplication()->redirect(
        'index.php?option=com_marketplace&view=profile',
        JFactory::getApplication()->input->get('error_description'),
        'error'
    );
}
/**
 * Fetching remita seller info if remita instatlled
 */
$checkRemitaInstallation=JPluginHelper::getPlugin('vmpayment', 'remitasplit');
if (!empty($checkRemitaInstallation)) {
    $remitaSellerData=$wk_model->getRemitaSeller();
    if (!$remitaSellerData) {
        $remitaSellerData =new stdClass();
        $remitaSellerData->name="";
        $remitaSellerData->account="";
        $remitaSellerData->bankcode="";
    }
}
$params = JComponentHelper::getParams('com_languages');
$defaultcountry_code = trim($params->get('site'));
$GLOBALS['virtuemart_categories_table_name'] = strtolower(
    str_replace(
        "-",
        "_",
        $defaultcountry_code
    )
);
$document = JFactory::getDocument();
$param  = JComponentHelper::getParams('com_marketplace');
$mapkey=trim($param->get('mapkey'));
$bgcolor=trim($param->get('head_bg_color'));
$textcolor=trim($param->get('head_txt_color'));
$document->addStyleSheet(
    JURI::root().
    'components/com_marketplace/css/newdesign/marketplace.css'
);
$document->addStyleSheet(
    JURI::root().
    'components/com_marketplace/css/marketplacesupport.css'
);
$document->addStyleSheet(
    JURI::root().'components/com_marketplace/css/styles.css'
);
$document->addStyleSheet(
    JURI::root().'components/com_marketplace/css/newdesign/addproduct.css'
);
$document->addStyleSheet(
    JURI::root().'components/com_marketplace/css/profile.css'
);
$document->addStyleSheet(
    JURI::root().'components/com_marketplace/css/msdropdown/dd.css'
);
$document->addStyleSheet(
    JURI::root().'components/com_marketplace/css/msdropdown/flags.css'
);
$document->addScript(
    JURI::root().'components/com_marketplace/js/msdropdown/jquery.dd.min.js'
);
$document->addScript(
    '//maps.googleapis.com/maps/api/js?libraries=plac'.
    'es&key='.$mapkey.'&language=en-GB'
);
$document->addScript(
    JURI::root().
    'components/com_marketplace/assets/fancybox/jquery.easing-1.3.pack.js'
);

if ($browserType!="mozilla") {
    $document->addScript(JURI::root().'components/com_marketplace/js/profile3.js');
    $document->addScript(
        JURI::root().'components/com_marketplace/assets/webcam/webcam123.js'
    );
} else {
    $document->addScript(JURI::root().'components/com_marketplace/js/profile2.js');
}
$document->addStyleSheet(
    'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css'
);
$document->addStyleSheet(
    JURI::root().'components/com_marketplace/css/easy-responsive-tabs.css'
);
$document->addScript(
    JURI::root().'components/com_marketplace/js/easy-responsive-tabs.js'
);
JHtml::_('jquery.ui');
JHtml::_('bootstrap.framework');
$model=$this->getModel();
$countryid=$model->getCountryId(JFactory::getUser()->id);

for ($i=0, $n=count($this->data); $i < $n; $i++) {
    $item = $this->data[$i];
    $l=explode('::', $item->shop_location);
    
    if (count($l)<2) {
        $lg=0;
        $lt=0;
    } elseif ($l[0]=='' && $l[1]=='') {
        $lg=0.00;
        $lt=0.00;
    } else {
        $lg=$l[1];
        $lt=$l[0];
    }
    
    /**
     * *****************************************
     * For country select list
     */
    $country_html_id="countries";
    $country_html_name="countries";
    $country_select = MarketplaceHelper::getCountrySelectField(
        $item->countrylogo, $country_html_id, $country_html_name,
        "width:92%", " required"
    );
    /**
     * For country select list
     * ****************END HERE*****************
     */
    $country_mod = VmModel::getModel("Country");
    $country_data = $country_mod->getCountryByCode($item->countrylogo);
    $state_mod = VmModel::getModel("State");
    if ($country_data != false) {
        $state_data = $state_mod->getStates($country_data->virtuemart_country_id);
    } else {
        $state_data = array();
    }
    $state_arr=array();
    foreach ($state_data as $key => $value) {
        $state_arr[]= array(
            'value' => $value->virtuemart_state_id,
            'text' => $value->state_name,
        );
    }

    $name="state_vm";
    $options = array(
        'id' => "virtuemart_state_id", // HTML id for select field
        'list.attr' => array( // additional HTML attributes for select field
            'class'=>'field-groups',
            "style"=>'width:92%;'
        ),
        'option.key'=>'value', // key name for value in data array
        'option.text'=>'text', // key name for text in data array
        'list.select'=>$item->state_vm, // value of the SELECTED field
    );
    $state_html = JHtmlSelect::genericlist($state_arr, $name, $options);
    $document->addScriptDeclaration(
        'jQuery(document).ready(function(){
            var oDropdown = jQuery("#virtuemart_state_id").msDropdown().data("dd");
            jQuery("#'.$country_html_id.'").change(function() {
                oDropdown = jQuery("#virtuemart_state_id").msDropdown().data("dd");
                oDropdown.destroy();
                var countryid = jQuery(this).children(":selected").attr("data-id");
                jQuery.ajax({
                    type:"post",
                    url:"'.JRoute::_(
            'index.php?option=com_marketplace&task=mpregistration.getRegistrationState',
            false
        ).          '",
                    data: {"ID" : countryid},
                    success:function(data){
                        jQuery("#virtuemart_state_id").html(data);
                        jQuery("#virtuemart_state_id").msDropdown().data("dd");
                    }
                });
            });
        });
        
      '
    );
    /*********Calculated Modules******************/
    $obj=new JDocumentHTML();
    $mod="";
    if (!$obj->countModules('wk_marketplace-left')&& !$obj->countModules('wk_marketplace-right')) {
        $both=0;
    } elseif ((!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right'))||($obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right'))) {
        $both=1;
        if (!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right')) {
            $mod="r";
        } else {
            $mod="l";
        }
    } else {
        $both=2;
    }
    if ($both==0) {
        $maxwidth="900";
    } elseif ($both==1) {
        $maxwidth="700";
    } else {
        $maxwidth="550";
    }
    
?>
<style type="text/css">
    .order_history{
background-color:<?php echo $bgcolor;?>;

}
.detail_text{
color:<?php echo $textcolor;?>;
}
.payment_method i{
color: #2196F3!important;
}
.wk_separate {
    margin-top: 10px !important;
    height: 50px;
}
.wk_main_loader{
        position: relative;
}
.wk_main_loader_overlay{
    position: absolute;
    background-color: #FFF ! important; 
    z-index: 2147483647; 
    width:101%;
    height:100%;
    border: 1px solid #CCCCCC;
    border-radius: 10px;
}
</style>
<?php
/*********Calculated Modules End******************/
?>
<script type="text/javascript">

jQuery(document).ready(function () {
    jQuery(".selectpicker").msDropdown();
        navigator.getMedia = (navigator.getUserMedia || // use the proper vendor prefix
            navigator.webkitGetUserMedia ||
            navigator.mozGetUserMedia ||
            navigator.msGetUserMedia);

        if (navigator.getMedia !== undefined) {
            navigator.getMedia({
                video: true
            }, function () {}, function () {
                jQuery('.update_pic_options .take_pic_').css('display', 'none');
            });
        } else
            jQuery('.update_pic_options .take_pic_').css('display', 'none');
    jQuery("iframe").height(120);
});
jQuery(window).load(function () {
    jQuery('.wk_main_loader_overlay').css('display', 'none');
});
jQuery('body').on('change', '.soc_options input[type="checkbox"]', function () {

    if (jQuery(this).is(':checked')) {
        jQuery(this).parent().parent().next('.wk_social_ids').css('display', 'block');
        if (jQuery(this).attr('id') == 'wk_facebook') {
            jQuery(this).attr('value', "FACEBOOK_CHECK");
        } else if (jQuery(this).attr('id') == 'wk_twitter') {
            jQuery(this).attr('value', "TWITTER_CHECK");
        } else if (jQuery(this).attr('id') == 'wk_google') {
            jQuery(this).attr('value', "GOOGLE_CHECK");
        } else if (jQuery(this).attr('id') == 'wk_linkedin') {
            jQuery(this).attr('value', "LINKEDIN_CHECK");
        }
    } else {
        jQuery(this).parent().parent().next('.wk_social_ids').children('input').val('');
        jQuery(this).parent().parent().next('.wk_social_ids').css('display', 'none');
        jQuery(this).attr('value', "")
    }
});
jQuery('body').on('change', '.wk_payment_single input[type="checkbox"]', function () {
    if (jQuery(this).is(':checked')) {
        jQuery(this).parent().parent().next().children('input,textarea').attr('name', 'payment[]');
        jQuery(this).parent().parent().next('.wk_payment_ids').children().css('display', 'block');

    } else {
        jQuery(this).parent().parent().next('.wk_payment_ids').children().css('display', 'none');
        jQuery(this).parent().parent().next().children('textarea,input[name="payment[]"]').removeAttr('name');
    }
});
jQuery('.update_profile_pic').click(function () {
    jQuery(this).css('display', 'none!important');
});

jQuery(function () {
    if (jQuery('.en_check').is(":checked")) {

        jQuery('.en_check').parent('.social_check').fadeIn();
    }
    <?php if (isset($soc_mode)>0) {
    ?>
    var soc_mode = jQuery.parseJSON('<?php echo json_encode($soc_mode); ?>');
    var soc_id = jQuery.parseJSON('<?php echo json_encode($soc_id); ?>');
    jQuery.each(soc_mode, function (key, val) {
        jQuery('#' + val).attr("checked", 'true');
        jQuery('#' + val).next('.lbl').after("&nbsp;&nbsp;<input class='entry width-100-mp text-padd soc_chk_txt' type='text' value=" + soc_id[key] + " name='social_id[]' placeholder='Enter ID related to Social Platform. eg. google'>");
    });
    <?php } ?>
});
/*++++++++++++++++++Social Tab++++++++++++++++++++++++++++++++++*/
var oldMarker;

function initialize() {
    var icon = "green";
    var latlng = {
        lat: <?php echo ' '.$lt; ?>,
        lng: <?php echo ' '.$lg; ?>
    };
    var map = new google.maps.Map(document.getElementById('map_canvas'), {
        zoom: 12,
        center: latlng
    });
    icon = "http://maps.google.com/mapfiles/ms/icons/" + icon + ".png";
    var marker = new google.maps.Marker({
        position: latlng,
        map: map,
        icon: new google.maps.MarkerImage(icon),
        title: 'saved location'
    });
    google.maps.event.addListener(map, 'click', function (event) {
        jQuery('#lat').val(event.latLng.lat());
        jQuery('#lang').val(event.latLng.lng());
        placeMarker(event.latLng);
    });

    function placeMarker(location) {
        var iconBase = '//maps.google.com/mapfiles/kml/shapes/';
        var infowindow = new google.maps.InfoWindow({
            content: 'Your location'
        });
        icon = "red";
        icon = "//maps.google.com/mapfiles/ms/icons/" + icon + ".png";
        marker1 = new google.maps.Marker({
            position: location,
            map: map,
            icon: new google.maps.MarkerImage(icon),
            animation: google.maps.Animation.BOUNCE
        });
        if (typeof oldMarker != 'undefined') {
            oldMarker.setMap(null);
        }
        oldMarker = marker1;
        map.setCenter(location);
        marker1.addListener('click', function () {
            infowindow.open(map, marker1);
        });
    }
    var input = document.getElementById('pac_input');
    var searchBox = new google.maps.places.SearchBox(input);
    map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);
    // Bias the SearchBox results towards current map's viewport.
    map.addListener('bounds_changed', function () {
        searchBox.setBounds(map.getBounds());
    });
    var markers = [];
    searchBox.addListener('places_changed', function () {
        var places = searchBox.getPlaces();
        if (places.length == 0) {
            return;
        }
        // Clear out the old markers.
        markers.forEach(function (marker) {
            marker.setMap(null);
        });
        markers = [];
        // For each place, get the icon, name and location.
        var bounds = new google.maps.LatLngBounds();
        places.forEach(function (place) {
            var icon = {
                url: place.icon,
                size: new google.maps.Size(71, 71),
                origin: new google.maps.Point(0, 0),
                anchor: new google.maps.Point(17, 34),
                scaledSize: new google.maps.Size(25, 25)
            };
            // Create a marker for each place.
            markers.push(new google.maps.Marker({
                map: map,
                icon: icon,
                title: place.name,
                position: place.geometry.location
            }));
            if (place.geometry.viewport) {
                // Only geocodes have viewport.
                bounds.union(place.geometry.viewport);
            } else {
                bounds.extend(place.geometry.location);
            }
        });
        map.fitBounds(bounds);
    });
}
jQuery(function () {
    jQuery('.resp-tabs-container .resp-accordion:nth-child(1)').addClass('resp-tab-active');
    jQuery('.resp-tabs-container .contentbar:nth-child(1)').addClass('resp-tab-content-active');
    jQuery('#horizontalTab').easyResponsiveTabs({
        type: 'vertical', //Types: default, vertical, accordion
        width: 'auto', //auto or any width like 600px
        fit: true, // 100% fit in a container
        closed: 'accordion', // Start closed if in accordion view
        activate: function (event) { // Callback function if tab is switched
            var $tab = jQuery(this);
            var $info = jQuery('#tabInfo');
            var $name = jQuery('span', $info);
            $name.text($tab.text());
            $info.show();
        }
    });
    jQuery('#verticalTab').easyResponsiveTabs({
        type: 'vertical',
        width: 'auto',
        fit: true
    });
});
</script>
<style type="text/css">
    .sellerprofile_main,.marketplace_position1,.marketplace_position2 {
        margin: 5px;
        display:inline-block;
        vertical-align: top;
    }
    .wk_payment_ids{
        margin-top: 15px;
    }
    .sellerprofile_main *{
        font-size: 15px!important;
    }
    .update_cover_options .take_pic_ {
        display: none;
    }
    
</style>
<!--****************Custom Position********************************* -->
<div style="width:100%;" class="wk_main_loader">
    <div class="wk_main_loader_overlay" >
        <img style="display:block;margin:0 auto;" src="<?php echo "components/com_marketplace/"?>images/ajaxspinner1.gif"/>
    </div>

<div class="Wk_outer">
    <div class="marketplace_position-top" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-top}'); ?></div>
    <div class="marketplace_position1"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-left}'); ?></div>
    <!-- ****************Custom Position end********************************* -->
    <?php
        $profilemenu=plgSystemMarketplace::getMenuId('index.php?option=com_marketplace&view=profile');
    ?>
    <div class="sellerprofile_main">
        <div class="order_history"><span class="detail_design"></span><span class="detail_text"><?php echo JText::_('MY_PROFILE')?></span></div>
        <div id="horizontalTab">
            <!-- <input checked data-toggle="toggle" data-on="Enable" data-off="Disable" data-onstyle="success" data-offstyle="warning" data-style="ios" type="checkbox" id=""> -->
            <form class="form-validate" id="profile_form" action="<?php echo JRoute::_('index.php?option=com_marketplace&view=profile&Itemid='.$profilemenu, false)?>" method="post" enctype="multipart/form-data">
                <ul class="resp-tabs-list">
                    <li id="p_p"><?php echo JText::_('PERSONAL_PROFILE');?></li>
                    <li id="s_p"><?php echo JText::_('SOCIAL_PROFILE');?></li>
                    <li id="a_s"><?php echo JText::_('ABOUT_SHOP');?></li>
                    <li id="p_m"><?php echo JText::_('PAYMENT_MODE');?></li>
                    <?php
                    $i=0;
                    foreach ($this->addonData as $value) {
                        echo "<li id='addon".$i++."'>".$value["title"]."</li>";
                    }
                    ?>
                </ul>
                <div class="resp-tabs-container">
                    <div class="panel-body contentbar">
                        <?php if ($item->companybanner == '') { ?>
                                <div class="mp_banner">
                                    <img class="wk_banner" src="components/com_marketplace/images/defaultcover.png" />
                                    <div id="dvPreview1">
                                    </div>
                                    <div  class="change_cover"><i class="fa fa-pencil"></i><div class="change_cover_text"><?php echo JText::_("CHANGE_COVER");?></div>
                                    <div class="update_cover_options">
                                        <div class="upload_cover_"><?php echo JText::_("UPLOAD_PHOTO");?></div>
                                        <div class="remove_cover_"><?php echo JText::_("REMOVE");?></div>
                                    </div></div>
                                </div>
                                <?php } else { ?>
                                <div class="mp_banner">
                                    <img class="wk_banner" src="<?php echo $item->companybanner; ?>" />
                                    <div id="dvPreview1">
                                    </div>
                                    <div  class="change_cover"><i class="fa fa-pencil"></i><div class="change_cover_text"><?php echo JText::_("CHANGE_COVER");?></div>
                                    <div class="update_cover_options">
                                        <div class="upload_cover_"><?php echo JText::_("UPLOAD_PHOTO");?></div>
                                        <div class="take_pic_"><i class="fa fa-camera" style="padding-left:0px !important;"></i>Take a photo</div>
                                        <div class="remove_cover_"><?php echo JText::_("REMOVE");?></div>
                                    </div></div>
                                </div>
                                <?php } if ($item->companylogo == '') { ?>
                                <div class="mp_pro_pic">
                                    <img class="wk_mplogo" src="<?php echo juri::root(); ?>components/com_marketplace/images/generic-pic.png" />
                                    <div id="dvPreview">
                                    </div>
                                <?php } else { ?>
                                    <div class="mp_pro_pic">
                                        <img class="wk_mplogo" src="<?php echo $item->companylogo; ?>" />
                                <?php }  ?>
                                        <div id="dvPreview">
                                        </div>
                                        <div  class="update_profile_pic"><?php echo JText::_("UPDATE_PROFILE_PICTURE");?></div>
                                        <div  class="update_pic_options">
                                            <div class="upload_pic_"><?php echo JText::_("UPLOAD_PHOTO");?></div>
                                            <input id="upload_pic_" accept="image/*;capture=camcorder" type="file" name="companylogo">
                                            <div class="take_pic_"><i class="fa fa-camera" style="padding-left:0px !important;"></i><?php echo JText::_("TAKE_A_PHOTO");?></div>
                                            <div class="remove_pic_"><?php echo JText::_("REMOVE");?></div>
                                        </div>
                                        <input id="change_mpcover" class="entry form-control" type="file" name="companybanner" />
                                    </div>
                        
                                    <!--******************photobooth start*************************************-->
                                    <style type="text/css">
                                    #close_cam:hover{
                                        color: red;
                                        cursor: pointer;
                                    }
                                    </style>
                                    <div class="seprator">
                                        
                                        <div class="desk">
                                            <div id="result"><img></div>
                                            <div id="camera" style="display:none;">
                                                <span id="close_cam">X</span>
                                    <?php
                                    if ($browserType!="mozilla") { ?>
                                        <div id="video"></div>
                                        <input type=button value="Capture" id="cam_snap">
                                        <div id="canvas" width="600" height="400"></div>
                                    <?php } else { ?>
                                        <video id="video" autoplay></video>
                                        <input type="button" id="cam_snap" value="Capture" name="cam_snap">
                                        <canvas id="canvas" width="600" height="400"></canvas>
                                    <?php }
                                    ?>
                                        <button id="new">New</button>
                                        </div>
                                    </div>
                                </div>
                                <?php
                                if ($browserType!="mozilla") { ?>
                                    <script src="components/com_marketplace/assets/webcam/webcam123.js"></script>
                                    <script language="JavaScript">
                                        Webcam.set({
                                            // live preview size
                                            width: 600,
                                            height: 400,
                                            // device capture size
                                            dest_width: 600,
                                            dest_height: 400,
                                            
                                            // final cropped size
                                            crop_width: 600,
                                            crop_height: 400,
                                            
                                            // format and quality
                                            image_format: 'jpeg',
                                            jpeg_quality: 90
                                        });
                                        Webcam.attach( '#video' );
                                    </script>
                                <?php } else { ?>
                                        <script src="components/com_marketplace/assets/webcam/webcam.js"></script>
                                        <script src="components/com_marketplace/js/script.js"></script>
                                <?php }
                                ?>
                                <script>
                                // Put event listeners into place
                                var wk_coun="<?php echo $item->countrylogo;?>";
                                jQuery('.mp_pro_pic').on('click',function(){
                                    jQuery( ".update_profile_pic").css("display","block");
                                });
                                jQuery( ".mp_pro_pic, .update_profile_pic" ).on('mouseenter',function() {
                                jQuery( ".update_profile_pic").css( "display","block");
                                });
                                jQuery( ".mp_pro_pic, .update_profile_pic" ).on('mouseleave',function() {
                                jQuery( ".update_profile_pic").css( "display","none");
                                });
                                jQuery('.update_profile_pic').click(function() {
                                jQuery( ".update_pic_options" ).toggle();
                                });
                                jQuery(document).ready(function(){
                                    if(wk_coun!=null){
                                        jQuery(".wk_country #countries").val(wk_coun);
                                    }
                                    jQuery("span[aria-controls='tab_item-0']").addClass("resp-tab-active");
                                    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
                                        jQuery('.take_pic_').css('display','none');
                                    }
                                    jQuery('#new').hide(0);
                                    jQuery('#upload_pic').hide(0);
                                    var videoObj='';
                                    // Trigger photo take
                                    jQuery("#cam_snap").on("click", function(e) {
                                        <?php
                                        if ($browserType!="mozilla") { ?>
                                            Webcam.snap(function(data_uri) {
                                                document.getElementById('canvas').innerHTML =
                                                '<img src="' + data_uri + '"/>';
                                            });
                                        <?php } else { ?>
                                            var canvas = document.getElementById("canvas"),
                                            context = canvas.getContext("2d")
                                            context.drawImage(video, 0, 0, 600, 400);
                                        <?php } ?>
                                        jQuery('#video').hide('slow');
                                        jQuery('#canvas').show('slow');
                                        jQuery('#cam_snap').hide('slow');
                                        jQuery('#new').show('slow');
                                        jQuery('#upload_pic').show('slow');
                                        e.preventDefault();
                                    
                                    });
                                    
                                    // Capture New Photo
                                    jQuery("#new").on("click", function(e) {
                                        jQuery('#video').show('slow');
                                        jQuery('#canvas').hide('slow');
                                        jQuery('#cam_snap').show('slow');
                                        jQuery('#new').hide();
                                        jQuery('#upload_pic').hide();
                                        e.preventDefault();
                                    });
                                    // Upload image to sever
                                    jQuery("body").on("click",'#upload_pic', function(e){
                                        <?php
                                        if ($browserType!="mozilla") { ?>
                                            var dataUrl = jQuery("#canvas").find("img").attr("src");
                                        <?php } else { ?>
                                            var dataUrl = canvas.toDataURL();
                                        <?php } ?>
                                        jQuery.ajax({
                                            type: "post",
                                            url: "<?php echo JRoute::_('index.php?option=com_marketplace&view=profile&task=profile.uploadpic', false);?>",
                                            data: {
                                            imgBase64: dataUrl,seller_id:"<?php echo $item->seller_id;?>"},
                                            success: function(data)
                                            {
                                                var name=data;
                                                
                                                jQuery(".wk_mplogo").attr('src',data);
                                                jQuery('#video').show('slow');
                                                jQuery('#canvas').hide('slow');
                                                jQuery('#cam_snap').show('slow');
                                                jQuery('#new').hide();
                                                jQuery('#upload_pic').hide();
                                                jQuery('#camera').hide();
                                                
                                            }
                                        });
                                        e.preventDefault();
                                    });
                                });
                                var both=<?php echo $both;?>;
                                var mod="<?php echo $mod;?>";
                                jQuery(window).on('load resize',function(){
                                    if(both==2){
                                        if(jQuery('.Wk_outer').width()>=900){
                                            jQuery('.marketplace_position1').css("width","19%");
                                            jQuery('.marketplace_position2').css("width","19%");
                                            jQuery('.sellerprofile_main').css("width","57%");
                                        }
                                        else if(jQuery('.Wk_outer').width()<766 && jQuery('.Wk_outer').width()>650){
                                            jQuery('.marketplace_position1').css("width","23%");
                                            jQuery('.marketplace_position2').css("width","99%");
                                            jQuery('.sellerprofile_main').css("width","73%");
                                        }
                                        else if( jQuery('.Wk_outer').width()<=650){
                                            jQuery('.marketplace_position1').css("width","99.5%");
                                            jQuery('.marketplace_position2').css("width","99.5%");
                                            jQuery('.sellerprofile_main').css("width","99.5%");
                                        }
                                    }
                                    else if(both==1){
                                        if(jQuery('.Wk_outer').width()>=724){
                                            if (mod=="l")
                                                jQuery('.marketplace_position1').css("width","23.5%");
                                            else
                                                jQuery('.marketplace_position2').css("width","23.5%");
                                            jQuery('.sellerprofile_main').css("width","70.5%");
                                        }
                                        else if( jQuery('.Wk_outer').width()<724){
                                            if (mod=="l")
                                                jQuery('.marketplace_position1').css("width","99.5%");
                                            else
                                                jQuery('.marketplace_position2').css("width","99.5%");
                                            jQuery('.sellerprofile_main').css("width","99.5%");
                                        }
                                    }
                                    else{
                                        jQuery('.sellerprofile_main').css("width","99.5%");
                                    }
                                });
                                
                                    var seller_id='<?php echo $item->seller_id; ?>';
                                    var wkurl='<?php echo juri::root();?>';
                                </script>
                                <script>
                                jQuery(document).ready(function() {
                                    jQuery("#countries").msDropdown();
                                });
                                </script>
                                <div style="clear:both;"></div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-user" aria-hidden="true"></i>
                                <label for="sell_screen"><?php echo JText::_('SCREEN_NAME');?></label>
                            </div>
                            <div class="wk_input_box">
                                <input id="sell_screen" data-field="<?php echo JText::_('SCREEN_NAME');?>" placeholder="<?php echo JText::_('WK_ONLYALPHABET_NAME');?>" value="<?php echo htmlspecialchars($item->screenname, ENT_QUOTES); ?>" name="screenname" type="text" class="inputbox validate-screen required">
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-venus-mars" aria-hidden="true"></i>
                                <label for="sell_gender" data-error="<?php echo JText::_("WK_SELECT_GENDER");?>"><?php echo JText::_("GENDER");?></label>
                            </div>
                            <div class="wk_input_box">
                                <select id="sell_gender" name='gender' style="width:102.5%;" class="entry selectpicker wdth-select required" data-style="btn-primary">
                                    <option class='wk-option' value="" selected="selected"><h3><?php echo JText::_("SELECT_GENDER");?></h3></option>
                                    <option class='wk-option' value="1"
                                        <?php
                                        if ($item->gender=='1') {
                                            echo 'selected="selected"';
                                        }
                                        ?>
                                    ><?php echo JText::_("MALE");?></option>
                                    <option class='wk-option'
                                        <?php
                                        if ($item->gender=='2') {
                                            echo 'selected="selected"';
                                        }
                                        ?>
                                    value="2"><?php echo JText::_("FEMALE");?></option>
                                </select>
                                <div style="clear:both;"></div>
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-user" aria-hidden="true"></i>
                                <label for="first_name"><?php echo JText::_('FIRST_NAME');?></label>
                            </div>
                            <div class="wk_input_box">
                                <input id="first_name" data-field="<?php echo JText::_('FIRST_NAME');?>" placeholder="<?php echo JText::_('SELLER_USERNAME_FL');?>" value="<?php echo htmlspecialchars($item->first_name, ENT_QUOTES); ?>" name="first_name" type="text" class="validate-name required">
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-user" aria-hidden="true"></i>
                                <label for="last_name"><?php echo JText::_('LAST_NAME');?></label>
                            </div>
                            <div class="wk_input_box">
                                <input id="last_name" data-field="<?php echo JText::_('LAST_NAME');?>" placeholder="<?php echo JText::_('SELLER_USERNAME_FL');?>" value="<?php echo htmlspecialchars($item->last_name, ENT_QUOTES); ?>" name="last_name" type="text" class="validate-name required">
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-shopping-bag" aria-hidden="true"></i>
                                <label for="sell_companyname"><?php echo JText::_('SHOP_NAME');?></label>
                            </div>
                            <div class="wk_input_box">
                                <input id="sell_companyname" data-field="<?php echo JText::_('SHOP_NAME');?>" placeholder="<?php echo JText::_('SELLER_USERNAME_COMPANY');?>" value="<?php echo htmlspecialchars($item->companyname, ENT_QUOTES); ?>" name="companyname" type="text" class="validate-company required">
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-phone-square" aria-hidden="true"></i>
                                <label for="sell_phone"><?php echo JText::_('PHONE_NO_1');?></label>
                            </div>
                            <div class="wk_input_box">
                                <input id="sell_phone" value="<?php echo $item->phone; ?>" data-field="<?php echo JText::_('PHONE_NO_1');?>" placeholder="<?php echo JText::_('SELLER_PHONE');?>" name="phone" type="text" class="validate-phone required">
                            </div>
                        </div>
                        <div class="wk_country">
                            <div class="wk_input_label">
                                <i class="fa fa-map" aria-hidden="true"></i>
                                <label for="<?php echo $country_html_id;?>" data-error="<?php echo JText::_("SELECT_ONE_COUNTRY");?>"><?php echo JText::_('SELECT_YOUR_COUNTRY');?></label>
                            </div>
                            <?php
                            echo $country_select
                            ?>
                        </div>
                        <div class="wk_country">
                            <div class="wk_input_label">
                                <i class="fa fa-map" aria-hidden="true"></i>
                                <label for="virtuemart_state_id"><?php echo JText::_('SELECT_YOUR_STATE');?></label>
                            </div>
                            <?php
                            echo $state_html;
                            ?>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-globe" aria-hidden="true"></i>
                                <label for="sell_companylocality"><?php echo JText::_('SHOP_LOCALITY');?></label>
                            </div>
                            <div class="wk_input_box" >
                                <input id="sell_companylocality" value="<?php echo htmlspecialchars($item->companylocality, ENT_QUOTES); ?>" data-field="<?php echo JText::_('SHOP_LOCALITY');?>" placeholder="<?php echo JText::_('SELLER_CITY');?>" name="companylocality" type="text" class="validate-screen required"/>
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-globe" aria-hidden="true"></i>
                                <label for="sell_add"><?php echo JText::_('SHOP_ADDRESS');?></label>
                            </div>
                            <div class="wk_input_box" >
                                <input id="sell_add" value="<?php echo htmlspecialchars($item->address, ENT_QUOTES); ?>" data-field="<?php echo JText::_('SHOP_ADDRESS'); ?>" placeholder="<?php echo JText::_('SHOP_ADDRESS'); ?>" name="address" type="text" class="required"/>
                            </div>
                        </div>
                        <div class="wk_input_wrapper">
                            <div class="wk_input_label">
                                <i class="fa fa-globe" aria-hidden="true"></i>
                                <label for="sell_zip"><?php echo JText::_('ZIP_POSTAL_CODE');?></label>
                            </div>
                            <div class="wk_input_box" >
                                <input id="sell_zip" value="<?php echo $item->zip; ?>" data-field="<?php echo JText::_('ZIP_POSTAL_CODE');?>" placeholder="<?php echo JText::_('SELLER_ZIP');?>" name="zip" type="text" class="validate-zip required"/>
                            </div>
                        </div>
                        <!--<div class="wk_input_wrapper_6">
                            <div class="wk_input_label">
                                <span class="icon-location" style="margin-left:5%;"></span>
                                <label for="icon_prefix"><?php echo JText::_('SHOP_LOCATION_LANGTITUDE');?></label>
                            </div>
                            <div class="wk_input_box" >
                                <input readonly="true" value="<?php echo $lg;?>" id="lang" style="width:96%" placeholder="<?php echo JText::_("SHOP_LOCATION_LANGTITUDE");?>" name="longtitude" type="text" >
                            </div>
                        </div>
                        <div class="wk_input_wrapper_6">
                            <div class="wk_input_label">
                                <span class="icon-location" style="margin-left:5%;"></span>
                                
                                <label for="icon_prefix"><?php echo JText::_('SHOP_LOCATION_LATITUDE');?></label>
                            </div>
                            <div class="wk_input_box" >
                                <input readonly="true" type="text" id="lat" style="width:96%" value="<?php echo $lt; ?>" name="latitude" placeholder="<?php echo JText::_("SHOP_LOCATION_LATITUDE");?>" >
                            </div>
                        </div>
                        <body  onload="initialize()" >
                            <input id="pac_input" class="controls" type="text" placeholder="<?php echo JText::_('SEARCH_LOCATION');?>" style="height:35px!important;width:130px;">
                            <div  style="position:relative; width:90%">
                                <div class="wk_input_wrapper"  id="map_canvas" height:"500px" width="100%">
                                </div>
                                <!-- Map Area -->
                            <!--</div>-->
                            <div class="wk-seller-profile">
                                <div class="input-profile ">
                                    <input class="btn btn-primary profile_submit validate" style="width:120px;margin-top:5px;height:30px;" type="submit" value="<?php echo JText::_('SAVE');?>" id="profile_submit"/>
                                </div>
                            </div>
                        </div>
                       
                        <?php
                        $soc_mod=explode(",", $item->social_mode);
                        $soc_id=explode(",", $item->social_id);
                        $i=0;
                        $social_chk=array();
                        foreach ($soc_mod as $value) {
                            if (isset($soc_id[$i])) {
                                $social_chk[$value]=$soc_id[$i++];
                            }
                        }
                        ?>
                        <div class="panel-body contentbar">
                            <div class="social_check">
                                <span><?php echo JText::_("ENABLE_SOCIAL_PROFILE")?>&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                <div class="soc_options">
                                    <div class="alert alert-info"><?php echo JText::_("SOCIAL_NOTE");?></div>
                                    <div class="wk_separate">
                                        <label for="wk_facebook"><i class="fa fa-2 fa-facebook-square"></i>
                                            <span class="lbl"><?php echo JText::_("FACEBOOK_CHECK")?>
                                            </span>&nbsp;&nbsp;
                                        </label>
                                        <?php
                                        $check='';
                                        if (isset($soc_id[0]) && strlen(trim($soc_id[0]))) {
                                            $check="value=\"FACEBOOK_CHECK\" checked";
                                            $style="style='display:block;'";
                                        } else {
                                            $check='value=" "';
                                            $style="";
                                        }
                                        ?>
                                        <label class="switch">
                                          <input type="checkbox" id="wk_facebook" name="social_mode[]" <?php echo $check;?> />
                                          <div class="slider round"></div>
                                        </label>
                                        
                                    </div>
                                    <div class="wk_social_ids" <?php echo $style;?>>
                                        <input type="text" id="fb_id" placeholder="<?php echo JText::_("FILL_VALUE_NOTE"); ?>" name="social_id[]" value="<?php if(isset($soc_id[0]) && strlen(trim($soc_id[0]))) echo htmlspecialchars($soc_id[0], ENT_QUOTES);
                                        else echo ""; ?>" class="entry form-control width-100-mp text-padd soc_chk_txt" rel="" >
                                    </div>
                                    <div class="wk_separate">
                                        <label for="wk_twitter"><i class="fa fa-2 fa-twitter-square"></i>
                                            <span class="lbl"><?php echo JText::_("TWITTER_CHECK")?></span>&nbsp;&nbsp;
                                        </label>
                                        <?php
                                        $check='';
                                        if (isset($soc_id[1]) && strlen(trim($soc_id[1]))) {
                                            $check="value=\"TWITTER_CHECK\" checked";
                                            $style="style='display:block;'";
                                        } else {
                                            $check='value=" "';
                                            $style="";
                                        }
                                        ?>
                                        <label class="switch">
                                            <input type="checkbox" id="wk_twitter" name="social_mode[]"  <?php echo $check;?> />
                                          <div class="slider round"></div>
                                        </label>
                                        
                                    </div>
                                    <div class="wk_social_ids" <?php echo $style;?>>
                                        <input type="text" id="tw_id" placeholder="<?php echo JText::_("FILL_VALUE_NOTE"); ?>" name="social_id[]" value="<?php if(isset($soc_id[1]) && strlen(trim($soc_id[1]))) echo htmlspecialchars($soc_id[1], ENT_QUOTES);
                                        else echo ""; ?>" class="entry form-control width-100-mp text-padd soc_chk_txt" rel="">
                                    </div>
                                    <div class="wk_separate">
                                        <label for="wk_google"><i class="fa fa-2 fa-google-plus-square" aria-hidden="true"></i>
                                            <span class="lbl"><?php echo JText::_("GOOGLE_CHECK")?></span>&nbsp;&nbsp;
                                        </label>
                                        <?php
                                        $check='';
                                        if (isset($soc_id[2]) && strlen(trim($soc_id[2]))) {
                                            $check="value=\"GOOGLE_CHECK\" checked";
                                            $style="style='display:block;'";
                                        } else {
                                            $check='value=" "';
                                            $style="";
                                        }
                                        ?>
                                        <label class="switch">
                                            <input type="checkbox" id="wk_google" name="social_mode[]"  <?php echo $check;?> />
                                            <div class="slider round"></div>
                                        </label>
                                            
                                        
                                    </div>
                                    <div class="wk_social_ids" <?php echo $style;?>>
                                        <input type="text" id="goo_id" placeholder="<?php echo JText::_("FILL_VALUE_NOTE"); ?>" name="social_id[]" value="<?php if(isset($soc_id[2])&& strlen(trim($soc_id[2]))) echo htmlspecialchars($soc_id[2], ENT_QUOTES);
                                        else echo ""; ?>" class="entry form-control width-100-mp text-padd soc_chk_txt" rel="">
                                    </div>
                                    <div class="wk_separate">
                                        <label for="wk_linkedin"><i class="fa fa-2 fa-linkedin-square" aria-hidden="true"></i>
                                            <span class="lbl"><?php echo JText::_("LINKEDIN_CHECK")?></span>&nbsp;&nbsp;
                                        </label>
                                        <?php
                                        if (isset($soc_id[3])&& strlen(trim($soc_id[3]))) {
                                            $check="value=\"LINKEDIN_CHECK\" checked";
                                            $style="style='display:block;'";
                                        } else {
                                            $check='value=" "';
                                            $style="";
                                        } ?>
                                        <label class="switch">
                                          <input type="checkbox" id="wk_linkedin" name="social_mode[]"  <?php echo $check;?> />
                                          <div class="slider round"></div>
                                        </label>
                                    </div>
                                    <div class="wk_social_ids" <?php echo $style;?>>
                                        <input type="text" id="in_id" placeholder="<?php echo JText::_("FILL_VALUE_NOTE"); ?>" name="social_id[]" value="<?php if(isset($soc_id[3])&& strlen(trim($soc_id[3]))) echo htmlspecialchars($soc_id[3], ENT_QUOTES);
                                        else echo ""; ?>" class="entry form-control width-100-mp text-padd soc_chk_txt" rel="">
                                    </div>
                                </div>
                                <div class="wk-seller-profile">
                                    <div class="input-profile ">
                                        <input class="btn btn-primary profile_submit validate" style="width:120px;margin-top:5px;height:30px;" type="submit" value="<?php echo JText::_('SAVE');?>" id="profile_submit"/>
                                    </div>
                                </div>
                            </div>
                            
                        </div>
                        <div class="panel-body contentbar">
                            <div class="label1"><?php echo JText::_("SHOP_DESCRIPTION");?></div>
                            <div>
                                <span id="companydesc" class="tinymce-entry" style="width:98%;">
                                    <?php
                                        jimport('joomla.html.editor');
                                        $editor = JFactory::getEditor();
                                        $params =  array(
                                            'smilies'=> '0',
                                            'style'  => '1',
                                            'layer'  => '0',
                                            'table'  => '0',
                                            'clear_entities'=>'0'
                                        );
                                        echo $editor->display(
                                            'companydescription',
                                            htmlspecialchars($item->companydescription),
                                            '97%',
                                            '100',
                                            '20',
                                            '20',
                                            false,
                                            null,
                                            null,
                                            null,
                                            $params
                                        );
                                    ?>
                                </span>
                            </div>
                            <div class="label1"><?php echo JText::_("META_DESCRIPTION");?></div>
                            <div>
                                <span id="companydescshort" class="tinymce-entry" style="width:98%!important;">
                                    <?php
                                        jimport('joomla.html.editor');
                                        $editor = JFactory::getEditor('none');
                                        $params = array();
                                        echo $editor->display(
                                            'descriptioninhtml',
                                            htmlspecialchars($item->descriptioninhtml),
                                            '97%',
                                            '100',
                                            '20',
                                            '20',
                                            false,
                                            null,
                                            null,
                                            null,
                                            $params
                                        );
                                    ?>
                                </span>
                            </div>
                            <div class="wk-seller-profile">
                                <div class="input-profile ">
                                    <input class="btn btn-primary profile_submit validate" style="width:120px;margin-top:5px;height:30px;" type="submit" value="<?php echo JText::_('SAVE');?>" id="profile_submit"/>
                                </div>
                            </div>
                        </div>
                        <div class="payment_method" >
                            <div class="label1"><?php echo JText::_("PAYMENT_MODE");?></div>
                            <?php
                            $payment_result=$model->getPaymentInfo();
                            
                            $pay_mode=explode(",", $item->payment_mode);
                            $pay_desc=explode(",", $item->payment_desc);
                            $stan=-1;
                            //To Do
                            $pay_array=array();
                            $payment_script='';
                            foreach ($payment_result as $payment) {
                                $checked='';
                                $value='';
                                $check='';
                                $descvalue='';
                                $payment_name1=$payment->payment_element;
                                $display=" style='display:none;'";
                                if ($payment->payment_element=='standard') {
                                    if (in_array($payment->payment_element."-".$payment->virtuemart_paymentmethod_id, $pay_mode)) {
                                        $descvalue=array_search($payment->payment_element."-".$payment->virtuemart_paymentmethod_id, $pay_mode);
                                        $value=$pay_desc[$descvalue];
                                        $stan=1;
                                        $check="checked";
                                        $display=" style='display:block;'";
                                    }
                                    if (@strlen($pay_desc[$descvalue])) {
                                        $display="name='payment[]' style='display:block;'";
                                    } else {
                                        $display=" style='display:none;'";
                                    }
                                    $pd_id=str_replace(' ', '_', $payment_name1);
                                    $payment->payment_name = strlen($payment->payment_name) > 150 ? substr($payment->payment_name, 0, 150)."..." : $payment->payment_name;
                                    echo '<div class="wk_payment_single"><label for="wk_cod"><i class="fa fa-bank" aria-hidden="true"></i><span class="lbl">'.$payment->payment_name.'</span>&nbsp;&nbsp;
                                        </label>
                                        <label class="switch">
                                          <input type="checkbox" id="wk_cod" class="'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-chk" name="payment_mode[]" value="'.$payment_name1."-".$payment->virtuemart_paymentmethod_id.'"  '.$check.' />
                                          <div class="slider round"></div>
                                        </label>
                                        
                                    </div>
                                    <div class="wk_payment_ids">
                                        <textarea  rows="1" cols="40" placeholder="لطفا جزئیات گزینه پرداخت خود را وارد کنید"   class="entry form-control width-100-mp text-padd '.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val" '.$display.' >'.$value.'</textarea>
                                        </div>
                                    ';
                                    $payment_script.='
                                    if(jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-chk").prop("checked") && jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").val().trim()===""){
                                        jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").css("border","2px dotted red");
                                        pm_chk = false;
                                    } else {
                                        jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").css("border","1px solid #ccc");
                                    }
                                    ';
                                } elseif ($payment->payment_element=='paypal') {
                                    $checked='';
                                    $descvalue=array_search($payment->payment_element."-".$payment->virtuemart_paymentmethod_id, $pay_mode);
                                    if (in_array($payment->payment_element."-".$payment->virtuemart_paymentmethod_id, $pay_mode)) {
                                        $value=$pay_desc[$descvalue];
                                        $checked="checked";
                                    }
                                    $index=-1;
                                    for ($i=0; $i <sizeof($pay_mode); $i++) {
                                        if ($payment->payment_element."-".$payment->virtuemart_paymentmethod_id==$pay_mode[$i]) {
                                            $index=$i;
                                            break;
                                        }
                                    }
                                    $pd_id=str_replace(' ', '_', $payment_name1);
                                    if($stan==1)
                                        $index-=1;
                                    if (@strlen($pay_desc[$index])) {
                                        $display="name='payment[]' style='display:block;'";
                                    } else {
                                        $value='';
                                        $display=" style='display:none;'";
                                    }
                                    $payment->payment_name = strlen($payment->payment_name) > 20 ? substr($payment->payment_name, 0, 20)."..." : $payment->payment_name;
                                    echo '<div class="wk_payment_single">
                                    <label for="wk_paypal"><i class="fa fa-paypal" aria-hidden="true"></i>
                                        <span class="lbl">'.$payment->payment_name.'</span>&nbsp;&nbsp;
                                    </label>
                                    <label class="switch">
                                      <input class="'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-chk" type="checkbox" id="wk_paypal" name="payment_mode[]" value="'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'"  '.$checked.' />
                                      <div class="slider round"></div>
                                    </label>
                                    </div>
                                    <div class="wk_payment_ids">
                                    <input type="text" placeholder="Enter Registered Paypal Email Id" value="'.$value.'" '.$display.' class="entry form-control width-100-mp text-padd soc_chk_txt '.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val" rel="">
                                    </div>';
                                    $payment_script.='
                                    if(jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-chk").prop("checked")) {
                                        if (jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").val().trim()==="" || !em.test(jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").val())){
                                            jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").css("border","2px dotted red");
                                            pm_chk = false;
                                            jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").focus();
                                        }
                                        else {
                                            jQuery(".'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'-val").css("border","1px solid #ccc");
                                        }
                                    }
                                    ';
                                }
                                else
                                    continue;
                            }?>
                            <hr>
                            <div class="label1"><?php echo JText::_("SPLIT_PAYMENT_MODE");?></div>
                                <?php
                                foreach ($payment_result as $payment) {
                                    if ($payment->payment_element=='stripeconnect') {
                                        if (($this->stripe_client_id && $this->secret_key)&&$this->public_key) {
                                            $url = 'https://connect.stripe.com/oauth/authorize?response_type=code&client_id='.$this->stripe_client_id.'&scope=read_write';
                                            $url_deauth=JURI::current() . "?option=com_marketplace&view=profile&deauth=true";
                                            echo "<div class='wk_payment_single'>
                                                    <label for='stripeconnect'><i class='fa fa-cc-stripe' aria-hidden='true'></i>
                                                        <span class='lbl'>".$payment->payment_name."</span>&nbsp;&nbsp;
                                                    </label>
                                                    <label class='switch'>
                                                          <input type='checkbox' disabled='true' id='stripeconnect' name='payment_mode[]' value='".$payment->payment_name."' />
                                                          <div class='slider round'></div>
                                                    </label>
                                                </div>
                                                <div class='wk_payment_ids' >
                                                    <input  type='text' placeholder='' readonly='true' name='payment_id[]' value='' id='seller_stripe_id'class='entry form-control width-100-mp text-padd soc_chk_txt' rel='' style='display:none'>
                                                </div>
                                                <div id='wk_stripe_links'>
                                                    <a id='stripe_connect' href=".$url."><img src='".JUri::root()."/plugins/vmpayment/stripeconnect/images/blue-on-light.png' alt='Connect With Stripe' />					
                                                    </a>
                                                    <a style='display:none' id='stripe_disconnect' href=".$url_deauth.">
                                                        <img src='".JUri::root()."/plugins/vmpayment/stripeconnect/images/blue-on-light-disconnect.png' alt='Connect With Stripe' />	
                                                    </a>
                                                </div>
                                                ";
                                        }
                                    } elseif ($payment->payment_element=='adaptivepaypal') {
                                        $checked='';
                                        $descvalue=array_search($payment->payment_element."-".$payment->virtuemart_paymentmethod_id, $pay_mode);
                                        if (in_array($payment->payment_element."-".$payment->virtuemart_paymentmethod_id, $pay_mode)) {
                                            $value=$pay_desc[$descvalue];
                                            $checked="checked";
                                        }
                                    
                                        $index=-1;
                                        for ($i=0; $i <sizeof($pay_mode); $i++) {
                                            if ($payment->payment_element."-".$payment->virtuemart_paymentmethod_id==$pay_mode[$i]) {
                                                $index=$i;
                                                break;
                                            }
                                        }
                                        $pd_id=str_replace(' ', '_', $payment->payment_element);
                                        if ($stan==1) {
                                            $index-=1;
                                        }
                                        if (@strlen($pay_desc[$index])) {
                                            $display="name='payment[]' style='display:block;'";
                                        } else {
                                            $value='';
                                            $display=" style='display:none;'";
                                        }
                                        $payment->payment_name = strlen($payment->payment_name) > 10 ? substr($payment->payment_name, 0, 10)."..." : $payment->payment_name;
                                        echo '<div class="wk_payment_single">
                                                <label for="wk_adaptive"><i class="fa fa-paypal" aria-hidden="true"></i>
                                                    <span class="lbl">'. $payment->payment_name.'
                                                    </span>&nbsp;&nbsp;
                                                </label>
                                                <label class="switch">
                                                    <input type="checkbox" id="wk_adaptive" name="payment_mode[]" value="'.$payment->payment_element."-".$payment->virtuemart_paymentmethod_id.'" '.$checked.' >
                                                    <div class="slider round"></div>
                                                </label>
                                            </div>
                                            <div class="wk_payment_ids">
                                                <input type="text" placeholder="Enter Id " value="'.$value.'" class="entry form-control width-100-mp text-padd soc_chk_txt" rel="" '.$display.'>
                                            </div>';
                                        
                                    } elseif ($payment->payment_element=='remitasplit') {
                                        if (!empty($checkRemitaInstallation)) {
                                            $checked='';
                                            $descvalue=array_search($payment->payment_element, $pay_mode);
                                            $payment->payment_name = strlen($payment->payment_name) > 10 ? substr($payment->payment_name, 0, 10)."..." : $payment->payment_name;
                                            if (in_array('remitasplit', $pay_mode)) {
                                                $checked="checked";
                                            }
                                            if ($checked) {
                                                $display=" style='display:block;'";
                                            } else {
                                                $display=" style='display:none;'";
                                            }
                                            echo '<div class="wk_payment_single">
                                                    <label for="wk_remitasplit"><i class="fa fa-money" aria-hidden="true"></i>
                                                        <span class="lbl">'. JText::_("REMITA_SPLIT").'
                                                        </span>&nbsp;&nbsp;
                                                    </label>
                                                    <label class="switch">
                                                        <input type="checkbox" id="wk_remitasplit" name="payment_mode[]" value="remitasplit" '.$checked.' >
                                                        <div class="slider round"></div>
                                                    </label>
                                                </div>
                                                <div class="wk_payment_ids" >
                                                    <div '.$display.'>
                                                        <div style="text-align:center" class="label1">'.JText::_("FILL_REMITA_BANK_DETAILS").'
                                                        </div>
                                                        <label for="remita_name" class="label1">'.JText::_("REMITA_NAME").'</label>
                                                        <div>
                                                            <input class="entry form-control width-100-mp text-padd" type="text" value="'.$remitaSellerData->name.'" name="remita_name" id="remita_name" placeholder="'.JText::_('REMITA_NAME').'" />
                                                        </div>
                                                        <label for="remita_account" class="label1">'.JText::_("ACCOUNT_NUMBER").'</label>
                                                        <div>
                                                            <input class="entry form-control width-100-mp text-padd" type="text" value="'.$remitaSellerData->account.'" name="remita_account" id="remita_account" placeholder="'.JText::_('ACCOUNT_NUMBER').'"/>
                                                        </div>
                                                        <label for="remita_bank_code" class="label1">'.JText::_("BANK_CODE").' </label>
                                                        <div>
                                                            <select name="remita_bank_code" id="remita_bank_code">
                                                                <option selected value="">'.JText::_("REMITA_SELECT_TEXT").'</option>
                                                                <option value="044" >Access Bank (044)</option>
                                                                <option value="014" >Afribank (014)</option>
                                                                <option value="023" >Citibank (023)</option>
                                                                <option value="063" >Diamond Bank (063)</option>
                                                                <option value="050" >Ecobank (050)</option>
                                                                <option value="040" >Equitorial Trust Bank (040)</option>
                                                                <option value="011" >First Bank (011)</option>
                                                                <option value="214" >FCMB (214)</option>
                                                                <option value="070" >Fidelity Bank (070)</option>
                                                                <option value="085" >Finbank (085)</option>
                                                                <option value="058" >Guaranty Trust Bank (058)</option>
                                                                <option value="069" >Intercontinental Bank (069)</option>
                                                                <option value="056" >Oceanic Bank (056)</option>
                                                                <option value="082" >BankPhb (082)</option>
                                                                <option value="076" >Skye Bank (076)</option>
                                                                <option value="084" >Spring Bank (084)</option>
                                                                <option value="221" >StanbicIBTC (221)</option>
                                                                <option value="068" >Standard Chartered Bank (068)</option>
                                                                <option value="232" >Sterling Bank (232)</option>
                                                                <option value="033" >United Bank Of Africa (033)</option>
                                                                <option value="032" >Union Bank (032)</option>
                                                                <option value="035" >Wema Bank (035)</option>
                                                                <option value="057" >Zenith Bank (057)</option>
                                                                <option value="215" >Unity Bank (215)</option>
                                                            </select>
                                                        </div>

                                                    </div>
                                                </div>';
                                            /*add script for remita split*/
                                            $doc->addScriptDeclaration(
                                                '
                                                jQuery(document).ready(function(){
                                                    jQuery("#remita_bank_code option[value=\''.$remitaSellerData->bankcode.'\']").attr("selected","selected");
                                                });
                                                '
                                            );
                                        }
                                    }
                                    else
                                        continue;
                                }
                                $checkStripeInstallation=JPluginHelper::getPlugin('vmpayment', 'stripeconnect');
                                if (!empty($checkStripeInstallation)) {
                                    $wk_model=$this->getModel('profile');
                                    $wk_get_result=$wk_model->getStripeData();
                                    if ($wk_get_result && $wk_get_result !='') {
                                        $url= JURI::current() . "?option=com_marketplace&view=profile&deauth=true";
                                        ?>
                                    <script type="text/javascript">
                                        jQuery("#stripeconnect").attr("checked","true");
                                        jQuery("#stripe_disconnect").show();
                                        jQuery("#seller_stripe_id").show();
                                        jQuery("#seller_stripe_id").val("<?php echo 'account id :  '.$wk_get_result;?>");
                                        jQuery('#stripe_connect').hide();
                                    </script>
                                    <?php
                                    }
                                    //code to deauthorize account
                                    if (JFactory::getApplication()->input->get('deauth')&& JFactory::getApplication()->input->get('deauth') !=null) {
                                        $url = "https://connect.stripe.com/oauth/deauthorize";
                                        $data = array(
                                          'client_secret'  =>$this->secret_key,
                                          'client_id'      => $this->stripe_client_id,
                                          'stripe_user_id' => $wk_get_result,
                                        );
                                        $body = http_build_query($data);
                                        $ch = curl_init(); 
                                        curl_setopt($ch, CURLOPT_URL, $url);
                                        curl_setopt($ch, CURLOPT_POST, 1);
                                        curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
                                        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                                        $output= json_decode(curl_exec($ch), true);
                                        $state='update';
                                        if (isset($output['stripe_user_id']) && $output['stripe_user_id'] !=null) {
                                            $wk_model=$this->getModel('profile');
                                            $wk_model->storeStripeData(
                                                $output,
                                                $this->secret_key,
                                                $this->public_key,
                                                $this->stripe_client_id,
                                                $state
                                            );
                                            JFactory::getApplication()->redirect(
                                                'index.php?option=com_marketplace&view=profile',
                                                'Your account is deactivated',
                                                'success'
                                            );
                                        } else {
                                            JFactory::getApplication()->redirect(
                                                'index.php?option=com_marketplace&view=profile',
                                                $output['error'],
                                                'error'
                                            );
                                        }
                                    }
                                }
                                ?>
                    <div class="wk-seller-profile">
                        <div class="input-profile ">
                            <input class="btn btn-primary profile_submit validate" style="width:120px;margin-top:5px;height:30px;" type="submit" value="<?php echo JText::_('SAVE');?>" id="profile_submit"/>
                        </div>
                    </div>
                </div>
                <?php
                $str="";
                foreach ($this->addonData as $value) {
                    $str.='<div class="panel-body contentbar">';
                    $str.=$value["content"];
                    $str.='<div class="wk-seller-profile"><div class="input-profile ">
                            <input class="btn btn-primary profile_submit validate" style="width:120px;margin-top:5px;height:30px;" type="submit" value="'.JText::_('SAVE').'" id="profile_submit"/>
                        </div></div>';
                    $str.='</div>';
                }
                echo $str;
            ?>
            </div>
        </div>
        <input type="hidden" name="task" value="profile.profileSave" />
        <input type="hidden" id='countrylogo' name="countrylogo" value="<?php echo $item->countrylogo; ?>" />
        <input type="hidden" name="seller_id" value="<?php echo $item->seller_id; ?>" />
        <?php echo JHTML::_('form.token'); ?>
    </form>
</div>
<?php
} ?>
<script src="//cdnjs.cloudflare.com/ajax/libs/xregexp/3.1.1/xregexp-all.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
    document.formvalidator.setHandler('name', function (value) {
        var regex=/^[پچجحخهعغفقثصضشسیبلاتنمکگوئدذرزطظژؤإأءًa-zA-Z ]+$/;
        return regex.test(value); 
    });
    document.formvalidator.setHandler('screen', function(value) {
        var nm =/^[پچجحخهعغفقثصضشسیبلاتنمکگوئدذرزطظژؤإأءًA-Za-z0-9 ]+$/;
        return nm.test(value);
    });
    document.formvalidator.setHandler('phone', function(value=0) {
        var mob =/^[+\-\(\) 0-9]{5,20}$/;
        return mob.test(value);
    });
    document.formvalidator.setHandler('company', function(value) {
        var nm =/^[پچجحخهعغفقثصضشسیبلاتنمکگوئدذرزطظژؤإأءًA-Za-z0-9 _]{3,40}$/;
        return nm.test(value);
    });
    document.formvalidator.setHandler('zip', function(value) {
        var nm =/^[پچجحخهعغفقثصضشسیبلاتنمکگوئدذرزطظژؤإأءًA-Za-z0-9 ]{3,40}$/;
        return nm.test(value);
    });
});
function paymentMode(){
    var em=XRegExp("^[\\p{L}\\p{N}\\.\\#\\$\\&\\*\\-\\+\\/\\=\\?\\^\\_\\`\\']+@[\\p{L}\\p{N}\\-]+[.][\\p{L}\\p{N}]+$");
    var pm_chk=true;
    <?php echo $payment_script; ?>
    return pm_chk;
}
function socialCheck(){
    var sub_chk = true;
    if(jQuery("#wk_facebook").val() === "FACEBOOK_CHECK" && jQuery('#fb_id').val().trim()===""){
        jQuery('#fb_id').css('border','1px solid black');
        jQuery('#fb_id').css('background','#f2dede');
        jQuery('#fb_id').focus();
        sub_chk = false;
    } else {
        jQuery('#fb_id').css('border','1px solid #ccc');
        jQuery('#fb_id').css('background','#FFFFFF');
    }

    if(jQuery("#wk_twitter").val() === "TWITTER_CHECK" && jQuery('#tw_id').val().trim()===""){
        jQuery('#tw_id').css('border','1px solid black');
        jQuery('#tw_id').css('background','#f2dede');
        jQuery('#tw_id').focus();
        sub_chk = false;
    } else {
        jQuery('#tw_id').css('border','1px solid #ccc');
        jQuery('#tw_id').css('background','#FFFFFF');
    }

    if(jQuery("#wk_google").val() === "GOOGLE_CHECK" && jQuery('#goo_id').val().trim()===""){
        jQuery('#goo_id').css('border','1px solid black');
        jQuery('#goo_id').css('background','#f2dede');
        jQuery('#goo_id').focus();
        sub_chk = false;
    } else {
        jQuery('#goo_id').css('border','1px solid #ccc');
        jQuery('#goo_id').css('background','#FFFFFF');
    }

    if(jQuery("#wk_linkedin").val() === "LINKEDIN_CHECK" && jQuery('#in_id').val().trim()===""){
        jQuery('#in_id').css('border','1px solid black');
        jQuery('#in_id').css('background','#f2dede');
        jQuery('#in_id').focus();
        sub_chk = false;
    } else {
        jQuery('#in_id').css('border','1px solid #ccc');
        jQuery('#in_id').css('background','#FFFFFF');
    }
    return sub_chk;
}
jQuery(document).ready(function(){
    
    jQuery(".profile_submit").click(function(e) {
        var sub_chk = pm_chk = true;
        // validate social profile data pratyush
        sub_chk = socialCheck();
        // social profile check ends
        pm_chk=paymentMode();
        if (sub_chk && pm_chk) {
            var fields, invalid = [], valid = true, label, error, i, l;
            fields = jQuery('form.form-validate').find('input, textarea, select');
            if (!document.formvalidator.isValid(jQuery('form'))) {
                for (i = 0, l = fields.length; i < l; i++) {
                    if (document.formvalidator.validate(fields[i]) === false) {
                        valid = false;
                        invalid.push(fields[i]);
                    }
                }

                if (!valid && invalid.length > 0) {
                    error = {"error": []};
                    for (i = invalid.length - 1; i >= 0; i--) {
                        if (jQuery(invalid[i]).attr("data-field") !== undefined)
                            error.error.push("<b>"+jQuery(invalid[i]).attr("data-field")+"</b>- "+jQuery(invalid[i]).attr("placeholder"));
                        else {
                            if (jQuery(invalid[i]).attr('id') === "sell_gender") {
                                var ele = jQuery(invalid[i]).closest(".wk_input_wrapper");
                            } else {
                                var ele = jQuery(invalid[i]).closest(".wk_country");
                            }
                            error.error.push("<b>"+ele.find("label").text()+"</b>- "+ele.find("label").attr("data-error"));
                        }
                    }
                    error.error.push("<?php echo JText::_('INVALID_FIELD')?>");
                    Joomla.renderMessages(error);
                    jQuery(invalid[0]).focus();
                    e.preventDefault();
                }
            } 
        } else {
            if(!pm_chk)
                jQuery('#p_m').click();
            if(!sub_chk)
                jQuery('#s_p').click();
            e.preventDefault();
        }
    });
    jQuery(".remove_cover_").click(function() {
        jQuery.ajax({
            type:"post",
            url:"<?php echo JRoute::_('index.php?option=com_marketplace&view=profile&task=profile.remove', false);?>",
            data: {seller_id_for_cover : <?php echo $item->seller_id; ?>, wkurl : "<?php echo juri::root(); ?>" },
            success:function(data){
                jQuery('.wk_banner').attr(
                    'src',
                    '<?php echo juri::root(); ?>/components/com_marketplace/images/defaultcover.png'
                );
                jQuery('.wk_banner img').attr(
                    'src',
                    '<?php echo juri::root(); ?>/components/com_marketplace/images/defaultcover.png'
                );
                jQuery('#change_mpcover').val("");
            }
        });
    });
    jQuery(".remove_pic_").click(function() {
        jQuery.ajax({
            type:"post",
            url:"<?php echo JRoute::_('index.php?option=com_marketplace&view=profile&task=profile.remove', false);?>",
            data: {seller_id : <?php echo $item->seller_id; ?>, wkurl : "<?php echo juri::root(); ?>"},
            success:function(data){
                jQuery('.wk_mplogo').attr('src','<?php echo juri::root(); ?>/components/com_marketplace/images/generic-pic.png');
                jQuery('.wk_mplogo img').attr('src','<?php echo juri::root(); ?>/components/com_marketplace/images/generic-pic.png');
                jQuery('#upload_pic_').val("");
            }
        });
    });

    jQuery("body").on("click",'#upload_pic_cover', function(e){
        var dataUrl = canvas.toDataURL();
        jQuery.ajax({
            type: "post",
            url: "<?php echo JRoute::_('index.php?option=com_marketplace&view=profile&task=profile.uploadCover', false);?>",
            data: {
            imgBase64: dataUrl,seller_id:<?php echo $item->seller_id;?>},
            success: function(data){
                var name=data;
                jQuery(".wk_banner").attr('src',name);
                jQuery('#video').show('slow');
                jQuery('#canvas').hide('slow');
                jQuery('#cam_snap').show('slow');
                jQuery('#new').hide();
                jQuery('#upload_pic').hide();
                jQuery('#camera').hide();
            }
        });
        e.preventDefault();
    });
});
</script>
<div class="marketplace_position2"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-right}'); ?></div>
<div class="marketplace_position-bottom" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-bottom}'); ?></div>
</div>
</div>home/digilove/public_html/modules/mod_articles_category/tmpl/default.php000064400000013114152353411400022721 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_category
 *
 * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

?>
<ul class="category-module<?php echo $moduleclass_sfx; ?> mod-list">
	<?php if ($grouped) : ?>
		<?php foreach ($list as $group_name => $group) : ?>
		<li>
			<div class="mod-articles-category-group"><?php echo JText::_($group_name); ?></div>
			<ul>
				<?php foreach ($group as $item) : ?>
					<li>
						<?php if ($params->get('link_titles') == 1) : ?>
							<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
								<?php echo $item->title; ?>
							</a>
						<?php else : ?>
							<?php echo $item->title; ?>
						<?php endif; ?>

						<?php if ($item->displayHits) : ?>
							<span class="mod-articles-category-hits">
								(<?php echo $item->displayHits; ?>)
							</span>
						<?php endif; ?>

						<?php if ($params->get('show_author')) : ?>
							<span class="mod-articles-category-writtenby">
								<?php echo $item->displayAuthorName; ?>
							</span>
						<?php endif; ?>

						<?php if ($item->displayCategoryTitle) : ?>
							<span class="mod-articles-category-category">
								(<?php echo $item->displayCategoryTitle; ?>)
							</span>
						<?php endif; ?>

						<?php if ($item->displayDate) : ?>
							<span class="mod-articles-category-date"><?php echo $item->displayDate; ?></span>
						<?php endif; ?>

						<?php if ($params->get('show_tags', 0) && $item->tags->itemTags) : ?>
							<div class="mod-articles-category-tags">
								<?php echo JLayoutHelper::render('joomla.content.tags', $item->tags->itemTags); ?>
							</div>
						<?php endif; ?>

						<?php if ($params->get('show_introtext')) : ?>
							<p class="mod-articles-category-introtext">
								<?php echo $item->displayIntrotext; ?>
							</p>
						<?php endif; ?>

						<?php if ($params->get('show_readmore')) : ?>
							<p class="mod-articles-category-readmore">
								<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
									<?php if ($item->params->get('access-view') == false) : ?>
										<?php echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE'); ?>
									<?php elseif ($readmore = $item->alternative_readmore) : ?>
										<?php echo $readmore; ?>
										<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
											<?php if ($params->get('show_readmore_title', 0) != 0) : ?>
												<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
											<?php endif; ?>
									<?php elseif ($params->get('show_readmore_title', 0) == 0) : ?>
										<?php echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE'); ?>
									<?php else : ?>
										<?php echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE'); ?>
										<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
									<?php endif; ?>
								</a>
							</p>
						<?php endif; ?>
					</li>
				<?php endforeach; ?>
			</ul>
		</li>
		<?php endforeach; ?>
	<?php else : ?>
		<?php foreach ($list as $item) : ?>
			<li>
				<?php if ($params->get('link_titles') == 1) : ?>
					<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
				<?php else : ?>
					<?php echo $item->title; ?>
				<?php endif; ?>

				<?php if ($item->displayHits) : ?>
					<span class="mod-articles-category-hits">
						(<?php echo $item->displayHits; ?>)
					</span>
				<?php endif; ?>

				<?php if ($params->get('show_author')) : ?>
					<span class="mod-articles-category-writtenby">
						<?php echo $item->displayAuthorName; ?>
					</span>
				<?php endif; ?>

				<?php if ($item->displayCategoryTitle) : ?>
					<span class="mod-articles-category-category">
						(<?php echo $item->displayCategoryTitle; ?>)
					</span>
				<?php endif; ?>

				<?php if ($item->displayDate) : ?>
					<span class="mod-articles-category-date">
						<?php echo $item->displayDate; ?>
					</span>
				<?php endif; ?>

				<?php if ($params->get('show_tags', 0) && $item->tags->itemTags) : ?>
					<div class="mod-articles-category-tags">
						<?php echo JLayoutHelper::render('joomla.content.tags', $item->tags->itemTags); ?>
					</div>
				<?php endif; ?>

				<?php if ($params->get('show_introtext')) : ?>
					<p class="mod-articles-category-introtext">
						<?php echo $item->displayIntrotext; ?>
					</p>
				<?php endif; ?>

				<?php if ($params->get('show_readmore')) : ?>
					<p class="mod-articles-category-readmore">
						<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>">
							<?php if ($item->params->get('access-view') == false) : ?>
								<?php echo JText::_('MOD_ARTICLES_CATEGORY_REGISTER_TO_READ_MORE'); ?>
							<?php elseif ($readmore = $item->alternative_readmore) : ?>
								<?php echo $readmore; ?>
								<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
							<?php elseif ($params->get('show_readmore_title', 0) == 0) : ?>
								<?php echo JText::sprintf('MOD_ARTICLES_CATEGORY_READ_MORE_TITLE'); ?>
							<?php else : ?>
								<?php echo JText::_('MOD_ARTICLES_CATEGORY_READ_MORE'); ?>
								<?php echo JHtml::_('string.truncate', $item->title, $params->get('readmore_limit')); ?>
							<?php endif; ?>
						</a>
					</p>
				<?php endif; ?>
			</li>
		<?php endforeach; ?>
	<?php endif; ?>
</ul>
home/digilove/public_html/components/com_marketplace/views/login/tmpl/default.php000064400000003402152353422310024470 0ustar00<?php
/**
 * Marketplace Layout - Component Marketplace 
 *
 * PHP version 7.0
 *
 * @category   Module
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 */
// no direct access

defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.module.helper');
if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.
    'components'.DIRECTORY_SEPARATOR.'com_marketplace'.
    DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'marketplace.php';
}
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$user_status = MarketplaceHelper::checkSeller($user->id);

$module = JModuleHelper::getModule('mod_marketplacemenus');
echo '<div class="loginmod well"><div class="child-loginmod">'.JModuleHelper::renderModule($module).
    "</div></div>";

$style = '
.loginmod {
    width: 100%;
    margin: 0 auto;
    padding: 5px;
}
.child-loginmod ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.child-loginmod ul li {
    margin: 1px 0;
    border: 1px solid #dedede;
    text-align: center;
    padding: 5px 3px;
}
.child-loginmod ul li:hover {
    background: #eee;
}
.child-loginmod ul li a {
    text-decoration: none;
}
.loginmod .input-prepend {
    display: block;
}
';
if ($user_status) {
    $style.="
        .child-loginmod {
        min-width: 200px;
        width:50%;
    }
    ";
} else {
    $style.="
        .child-loginmod {
        min-width: 200px;
        width:50%;
        margin: 0 auto;
    }
    ";
}
$doc->addStyleDeclaration($style);home/digilove/public_html/components/com_marketplace/views/asktoadmin/tmpl/default.php000064400000024451152354700540025526 0ustar00<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filter.output');
JHtml::_('bootstrap.framework');
$doc = JFactory::getDocument();
$mainframe = JFactory::getApplication();
$doc->addStyleSheet(
    JURI::root().
    'components/com_marketplace/css/csspin-meter.css'
);
$doc->addStyleSheet(
    JURI::root().
    'components/com_marketplace/css/asktoadmin.css'
);
$adminemail = $mainframe->getCfg('mailfrom');
$param  = JComponentHelper::getParams('com_marketplace');
$bgcolor=trim($param->get('head_bg_color'));
$textcolor=trim($param->get('head_txt_color'));
$menuid=plgSystemMarketplace::getMenuId('index.php?option=com_marketplace&view=asktoadmin');
$user = JFactory::getUser();
$model = $this->getModel();
$ask_data = $model->getSellerMessage($user->id);
?>
<div class="mp_ask_view">
    <div class="ask_head">
        <span class="detail_design"></span>
        <span class="detail_text"><?php echo JText::_('ADMIN_QUERIES')?></span>
    </div>
    <div class="ask-body" id="horizontalTab" >
        <div class="button-block">
            <a href="javascript:void(0);" class="ask_button btn btn-warning">
                <?php echo JText::_('ASK_TO_ADMIN');?>
            </a>
        </div>
        <div class="conver-block">
        <?php
        if (!count($ask_data)) {
        ?>
            <p style="text-align:center;">
                <?php echo JText::_('NO_CONVER_TO_ADMIN');?>
            </p>
        <?php
        } else {
            $html_block = '';
            foreach ($ask_data as $key => $value) {
                $mess="";
                if (strlen($value->message)>250) {
                    $mess = "";
                    $str1 = substr($value->message, 0, 250);
                    $str2 = substr(
                        $value->message, 250, strlen($value->message)
                    );
                    $hidden_str = '<span class="hidden-more">'.$str2.
                        '<a class="wk_show_link"'.
                        'href="javascript:void(0);" onclick="showless'.
                        '(jQuery(this));"> '.JText::_('SHOW_LESS').
                        '</a>'.'</span>';
                    $show_more=$str1.
                        '<a class="wk_show_link show-less" href="javascript:void(0);" '.
                        'onclick="showmore(jQuery(this));"> '.JText::_(
                            'SHOW_MORE'
                        ).'</a>';
                    $mess = $show_more.$hidden_str;
                } else {
                    $mess =$value->message;
                }

                $html_block .= '<div class="message-block"><div class="message-subject">'.
                    $value->subject.'</div><div class="message-date">'.
                    $value->time
                    .'</div><div class="message-body">'.$mess.
                    '</div></div>';
            }
            echo $html_block;
        }
        ?>
        </div>
    </div>
</div>
<div id="light" class="white_content">
    <div class="head_bar">
        <span class="hd"><?php echo JText::_('ASK_TO_ADMIN');?></span>
        <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
            <span class="cls">x</span>
        </a>
    </div>
    <form action="#" method="post" id="ask-form">
        <div class="wkoverlay_loader">
            <div class="adminask-loader">
                <div class="cp-spinner cp-meter"></div>
            </div>
        </div>
        <div class="field">
            <div class="wk_asksubarea">
                <label><?php echo JText::_('SUBJECT');?><span style="color:red;font-size:20px">*</span></label>
                <input required pattern="[a-zA-Z0-9]+[a-zA-Z0-9 ]+" class="wtd ask_sub" type="text" name="subject" value="" placeholder="<?php echo JText::_("ASK_TO_ADMIN_SUB")?>"
                />
            </div>
            <div class="wk_askmsgarea">
                <label><?php echo JText::_('QUESTION');?><span style="color:red;font-size:20px">*</span></label>
                <textarea rows="4" required pattern="[a-zA-Z0-9]+[a-zA-Z0-9 ]+" class="wtd ask_msg" name="ask" placeholder="<?php echo JText::_("ASK_TO_ADMIN_QUE")?>"></textarea>
            </div>

            <div class="wk_buttonarea">
                <input id="askbtn" class="btn " type="button" name="submit_ask" value="<?php echo JText::_("ASK_SUBMIT") ?>">
                <input id="resetbtn" class="btn" type="reset" name="reset_ask" value="<?php echo JText::_("ASK_RESET") ?>">
            </div>
        </div>
    </form>
</div>
<div id="fade" class="black_overlay"></div>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
}
function showmore(element) {
    element.closest(".message-body").find(".hidden-more").show();
    element.hide();
}
function showless(element) {
    element.closest(".message-body").find(".show-less").show();
    element.closest(".hidden-more").hide();
}
jQuery(document).ready(function () {
    var high = jQuery(document).height();
    jQuery('.ajaximage').css('height', high + "px");
    jQuery(".ask_button").click(function(){
        jQuery('#light').css('display', 'block');
        jQuery('#fade').css('display', 'block');
    });
    jQuery('#askbtn').on('click', function (e) {
        if (jQuery('.ask_sub').val().trim() == '') {
            jQuery('.ask_sub').css('border', '1px solid red');
        } else if (jQuery('.ask_msg').val().trim() == '') {
            jQuery('.ask_msg').css('border', '1px solid red');
        } else {
            jQuery('.ask_sub').css('border', '1px solid green');
            jQuery('.ask_msg').css('border', '1px solid green');
            jQuery('#ask-data').addClass('mail-procss');
            var subject = jQuery('.ask_sub').val();
            var message = jQuery('.ask_msg').val();
            jQuery(".wkoverlay_loader").show();
            jQuery.ajax({
                url: '<?php echo JRoute::_("index.php?option=com_marketplace&view=asktoadmin&task=ask_to_admin", false)?>',
                beforeSend: function () {
                    jQuery('body').css({
                        'overflow': 'hidden'
                    });
                    jQuery(document).scrollTop(0);
                    jQuery('.ajaximage').show();
                },
                complete: function () {
                    jQuery('.ajaximage').hide();
                },
                data: {
                    subject: subject,
                    message: message
                },
                type: 'post',
                dataType: 'html',
                success: function (d) {
                    jQuery('#ask-data').removeClass('mail-procss');
                    if (d == '1') {
                        jQuery('.field').css("display", "none");
                        jQuery('.head_bar').css('display', 'none');
                        jQuery('#resetbtn').trigger('click');
                        jQuery('#light').css('display', 'none');
                        jQuery('#fade').css('display', 'none');
                        jQuery('.field').css("display", "block");
                        jQuery('.head_bar').css('display', 'block');
                        jQuery('#resetbtn').trigger('click');
                        swal({
                            title: "<?php echo JText::_('Success');?>",
                            text: '<?php echo JText::_(
                                'MAIL_SEND'
                            ); ?>',
                            timer: 5000,
                            type: "success",
                            showConfirmButton: false
                        });
                        jQuery('body').css({
                            'overflow': 'auto'
                        });
                        window.parent.location.href = "<?php echo JRoute::_('index.php?option=com_marketplace&view=asktoadmin&Itemid='.$menuid, false)?>";
                    } else {
                        jQuery('.field').css("display", "none");
                        jQuery('.head_bar').css('display', 'none');
                        jQuery('#resetbtn').trigger('click');
                        jQuery('#light').css('display', 'none');
                        jQuery('#fade').css('display', 'none');
                        jQuery('.field').css("display", "block");
                        jQuery('.head_bar').css('display', 'block');
                        jQuery('#resetbtn').trigger('click');
                        swal({
                            title: "<?php echo JText::_('Failed');?>",
                            text: d,
                            timer: 5000,
                            type: "error",
                            showConfirmButton: false
                        });
                        jQuery('body').css({
                            'overflow': 'auto'
                        });
                        window.parent.location.href = "<?php echo JRoute::_('index.php?option=com_marketplace&view=asktoadmin&Itemid='.$menuid, false)?>";
                    }
                }
            });
        }
    });
    jQuery('body').on('click', '.cls', function () {
        jQuery('#light').css('display', 'none');
        jQuery('#fade').css('display', 'none');
    });
    jQuery('#resetbtn').on('click', function () {
        jQuery('.wtd').css("border-color", "#ccc");
    });
});
</script>
<?php
$style = "
.ask_head {
    background-color: ".$bgcolor.";
    width: 99.5%;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: ".$textcolor.";
}
.detail_text {
    color: ".$textcolor.";
    display: block;
    float: left;
    margin: 12px 10px;
}
";
$doc->addStyleDeclaration($style);home/digilove/public_html/modules/mod_tags_similar/tmpl/default.php000064400000002035152354734210021704 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_tags_similar
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

?>
<div class="tagssimilar<?php echo $moduleclass_sfx; ?>">
<?php if ($list) : ?>
	<ul>
	<?php foreach ($list as $i => $item) : ?>
		<li>
			<?php if (($item->type_alias === 'com_users.category') || ($item->type_alias === 'com_banners.category')) : ?>
				<?php if (!empty($item->core_title)) : ?>
					<?php echo htmlspecialchars($item->core_title, ENT_COMPAT, 'UTF-8'); ?>
				<?php endif; ?>
			<?php else : ?>
				<a href="<?php echo JRoute::_($item->link); ?>">
					<?php if (!empty($item->core_title)) : ?>
						<?php echo htmlspecialchars($item->core_title, ENT_COMPAT, 'UTF-8'); ?>
					<?php endif; ?>
				</a>
			<?php endif; ?>
		</li>
	<?php endforeach; ?>
	</ul>
<?php else : ?>
	<span><?php echo JText::_('MOD_TAGS_SIMILAR_NO_MATCHING_TAGS'); ?></span>
<?php endif; ?>
</div>
home/digilove/public_html/modules/mod_sj_newsletter_popup/tmpl/default.php000064400000013402152355030000023324 0ustar00<?php
/**
 * @package Sj Newletter Popup
 * @version 1.0.0
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @copyright (c) 2016 YouTech Company. All Rights Reserved.
 * @author YouTech Company http://www.smartaddons.com
 *
 */
defined('_JEXEC') or die;
$cookie_name = "sj_newletter_popup";
if(!isset($_COOKIE[$cookie_name])) {
JHtml::stylesheet('modules/'.$module->module.'/assets/css/style.css');
$title 		= $params->get('title');
$width 		= $params->get('width');
$title_display = $params->get('title_display');
$newsletter_promo = $params->get('newsletter_promo');
$image_bg_display = $params->get('image_bg_display');
$color_bg = $params->get('color_bg');
$image = $params->get('imageurl');
$class_sfx= $params->get('moduleclass_sfx');
$expired= $params->get('expired');
$tag_id = 'sj_newletter_popup_'.rand().time();
$width_popup = $width ? $width : '50%';
if($image_bg_display){
	$bg = 'background: url(\''.JURI::base().$image.'\')';
}else{
	$bg = 'background-color: '.$color_bg.'';
}
?>
<div class="sj-popup-container">
<div class="sj_newletter_popup_bg "></div>
<div class="sj_newletter_popup <?php echo $class_sfx; ?>" id="<?php echo $tag_id; ?>">
	<div class="sj-custom-popup sj-custom-oca-popup sj-popup-767" data-ajaxurl="<?php echo JURI::base() ?>" style="width: <?php echo $width_popup; ?>; <?php echo $bg; ?>;  background-size: 100%; background-size: cover; background-repeat: no-repeat; ">
		<div class="oca_popup" id="test-popup">
			<div class="popup-content">
				<div class="popup-title">
					<?php if($title_display)
					{
						echo $title;
					}
					?>
				</div>
				<p class="newsletter_promo"><?php echo $newsletter_promo ;?></p>
				<div id="signup" class="form-inline signup">
					<div class="input-control">
						<div class="email">
							<input type="email" placeholder="<?php echo JText::_('ENTER_YOUR_EMAIL_ADDRESS'); ?>" value="" class="form-control txtemail" name="txtemail">
						</div>
						<div class="btn-button">
							<button class="btn-cool send-mail sendmail-<?php echo $module->id;?>" type="button">
								<?php echo JText::_('Subscribe'); ?>
							</button>
						</div>
					</div>
				</div>
				<label class="hidden-popup">
					<input type="checkbox" value="1" name="hidden-popup">
					<span class="inline">&nbsp;&nbsp;<?php echo JText::_("Don't show this popup again"); ?></span>
				</label>
			</div>
		</div>
		<button title="Close" type="button" class="popup-close">&times;</button>
	</div>
</div>
	<script type="text/javascript">
		jQuery(document).ready(function($){
			var $element = $("#<?php echo $tag_id; ?>");
			$('.sj_newletter_popup_bg').addClass('popup_bg');
			$('input[name=\'hidden-popup\']').on('change', function(){
				if ($(this).is(':checked')) {
					checkCookie();
				} else {
					unsetCookie("sj_newletter_popup");
				}
			});
			function setCookie(cname, cvalue, exdays) {
				var d = new Date();
				console.log(d.getTime());
				d.setTime(d.getTime() + (exdays*24*60*60*1000));
				var expires = "expires="+d.toUTCString();
				document.cookie = cname + "=" + cvalue + "; " + expires;
			}
			function getCookie(cname) {
				var name = cname + "=";
				var ca = document.cookie.split(';');
				for(var i=0; i<ca.length; i++) {
					var c = ca[i];
					while (c.charAt(0)==' ') c = c.substring(1);
					if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
				}
				return "";
			}
			function checkCookie() {
				var check_cookie = getCookie("sj_newletter_popup");
				if(check_cookie == ""){
					setCookie("sj_newletter_popup", "Newletter Popup", <?php echo $expired ?> );
				}
			}
			function unsetCookie( name ) {
				document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
			}
			$('.popup-close').click(function(){
				var this_close = $('.popup-close');
				this_close.parents().find('.sj-popup-container').remove();
			});
			$('.sendmail-<?php echo $module->id;?>').click(function(e){
				e.preventDefault();
				var emailpattern = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
				var email = $('.txtemail',$element).val();
				var ajax_url = $('#<?php echo $tag_id;?>').attr('data-ajaxurl');
				if(email != "")
				{
					if(!emailpattern.test(email))
					{
						$('.show-error').remove();
						$('.btn-button').after('<span class="show-error" style="color: red;margin-left: 10px"> Incorrect email format </span>')
						return false;
					}
					else
					{
						$.ajax({
							type: 'POST',
							url: ajax_url,
							data: {
								is_newletter: 1,
								email : email
							},
							dataType: 'json',
							success: function(data) {
								$('.show-error').remove();
								if(data == 0){
									$('.btn-button').after('<span class="show-error" style="color: red;margin-left: 10px"> Email Already Exist </span>');
								}else if(data == 1){
									$('.btn-button').after('<span class="show-error" style="color: #003bb3;margin-left: 10px"> Subscription Successfull </span>');
									setTimeout(function () {
										var this_close = $('.popup-close');
										this_close.parent().css('display', 'none');
										this_close.parents().find('.sj_newletter_popup_bg').removeClass('popup_bg');
									}, 3000);
								}else if(data == 2){
									$('.btn-button').after('<span class="show-error" style="color: red;margin-left: 10px"> Subscription Fail </span>');
								}
								$(".txtemail",$element).val("");
							}
						});
					}
				}
				else
				{
					$('.show-error').remove();
					$('.btn-button').after('<span class="show-error" style="color: red;margin-left: 10px"> Email is required </span>')
					$(email).focus();
					return false;
				}
				return false;
			});
		});
	</script>
</div>
<?php
} else {
	echo "";
}?>home/digilove/public_html/modules/mod_sj_news_extra_slider/tmpl/default.php000064400000037541152355032360023453 0ustar00<?php
/**
 * @package SJ Extra Slider for Content
 * @version 3.0.0
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @copyright (c) 2014 YouTech Company. All Rights Reserved.
 * @author YouTech Company http://www.smartaddons.com
 *
 */

defined('_JEXEC') or die;
if (!empty($list)) {
    JHtml::stylesheet('modules/' . $module->module . '/assets/css/style.css');
    JHtml::stylesheet('modules/' . $module->module . '/assets/css/css3.css');
    JHtml::stylesheet('modules/' . $module->module . '/assets/css/animate.css');

    if (!defined('SMART_JQUERY') && $params->get('include_jquery', 0) == "1") {
        JHtml::script('modules/' . $module->module . '/assets/js/jquery-2.1.4.min.js');
        JHtml::script('modules/' . $module->module . '/assets/js/jquery-noconflict.js');
        define('SMART_JQUERY', 1);
    }
    if (!defined ('OWL_CAROUSEL'))
    {
        JHtml::stylesheet('modules/' . $module->module . '/assets/css/owl.carousel.css');
        JHtml::script('modules/' . $module->module . '/assets/js/owl.carousel.js');
        define( 'OWL_CAROUSEL', 1 );
    }

    ImageHelper::setDefault($params);
    $tag_id = 'sj_extraslider_' . $module->id;
    $options = $params->toObject();
    $count_item = count($list);
    $cls_btn_page = ($params->get('button_page') == 'top') ? 'buttom-type1':'button-type2';
    $btn_type 	  = ($params->get('button_page') == 'top') ? 'button-type1':'button-type2';

    $nb_column0 = $params->get('nb-column0', 6);
    $nb_column1 = $params->get('nb-column1', 4);
    $nb_column2 = $params->get('nb-column2', 3);
    $nb_column3 = $params->get('nb-column3', 2);
    $nb_column4 = $params->get('nb-column4', 1);
    $class_respl = 'extra-resp00-' . $nb_column0 . ' extra-resp01-' . $nb_column1 . ' extra-resp02-' . $nb_column2 . ' extra-resp03-' . $nb_column3 . ' extra-resp04-' . $nb_column4;
    $btn_prev = ($params->get('button_page') == 'top') ? '&#171;':'&#139;';
    $btn_next = ($params->get('button_page') == 'top') ? '&#187;':'&#155;';
    $nb_rows = $params->get('nb_rows');
    $items_style = $params->get('theme');
    $class_suffix = $params->get('moduleclass_sfx');
    $effect = $params->get('effect');
    $delay = (int)$params->get('delay') ? (int)$params->get('delay') : '300';
    $duration = (int)$params->get('duration') ? (int)$params->get('duration') : '600';
    $title_slider_display = $params->get('title_slider_display');
    $title_slider = $params->get('title_slider');
    $nav = $params->get('navs') == 1 ? "true" : "false";
    $dots = $params->get('dots') == 1 ? "true" : "false";
    $margin = (int)$params->get('margin') ? (int)$params->get('margin') : '5';
    $slideBy = (int)$params->get('slideBy') ? (int)$params->get('slideBy') : '1';
    $autoplay_timeout = (int)$params->get('autoplay_timeout') ? (int)$params->get('autoplay_timeout') : '5000';
    $autoplay_speed = (int)$params->get('autoplay_speed') ? (int)$params->get('autoplay_speed') : '2000';
    $startPosition = (int)$params->get('startPosition') ? (int)$params->get('startPosition') : '0';
    $dotsSpeed = (int)$params->get('dotsSpeed') ? (int)$params->get('dotsSpeed') : '500';
    $navSpeed = (int)$params->get('navSpeed') ? (int)$params->get('navSpeed') : '500';
    $i = 0;
    ?>
    <?php $class_respl = 'extra-resp01-' . $nb_column1 . ' extra-resp02-' . $nb_column2 . ' extra-resp03-' . $nb_column3 . ' extra-resp04-' . $nb_column4; ?>
    <!--[if lt IE 9]>
    <div id="<?php echo $tag_id;?>"
         class="sj-extraslider msie lt-ie9 <?php if( $options->effect == 'slide' ){ echo $options->effect;}?>  <?php echo $class_respl; ?> <?php echo $btn_type; ?>"><![endif]-->
    <!--[if IE 9]>
    <div id="<?php echo $tag_id;?>"
         class="sj-extraslider msie <?php if( $options->effect == 'slide' ){ echo $options->effect;}?>  <?php echo $class_respl; ?> <?php echo $btn_type; ?>"><![endif]-->
    <!--[if gt IE 9]><!-->
    <div id="<?php echo $tag_id; ?>" class="sj-extraslider <?php if ($options->effect == 'slide') { echo $options->effect; } ?> <?php echo $class_respl; ?> <?php echo $btn_type; ?>"><!--<![endif]-->
        <?php if (!empty($options->pretext)) { ?>
            <div class="pre-text"><?php echo $options->pretext; ?></div>
        <?php } ?>
        <?php if ($options->title_slider_display == 1) { ?>
            <div class="heading-title"><?php echo $options->title_slider; ?></div><!--end heading-title-->
            <?php
        }
        ?>
        <div class="extraslider-inner" data-effect="<?php echo $effect; ?>">
            <?php
            foreach ($list as $item) {
                $i++; ?>
                <?php if ($i % $nb_rows == 1 || $nb_rows == 1) { ?>
                    <div class="item">
                <?php } ?>
                <div class="item-wrap <?php echo $items_style; ?>">
                    <div class="item-wrap-inner">
                        <?php $img = ContentExtrasliderHelper::getAImage($item, $params);
                        if ($img) {
                            ?>
                            <div class="item-image">
                                <a href="<?php echo $item->link; ?>"
                                   title="<?php echo $item->title ?>" <?php echo ContentExtrasliderHelper::parseTarget($params->get('item_link_target')); ?>>
                                    <?php echo ContentExtrasliderHelper::imageTag($img); ?>
                                </a>
                            </div>
                        <?php } ?>

                        <?php if ($options->item_title_display == 1 || $options->item_desc_display == 1 || $options->item_readmore_display == 1) { ?>
                            <div class="item-info">
                                <?php if ($options->item_title_display == 1) { ?>
                                    <div class="item-title">
                                        <a href="<?php echo $item->link; ?>"
                                           title="<?php echo $item->title ?>" <?php echo ContentExtrasliderHelper::parseTarget($params->get('item_link_target')); ?>>
                                            <?php echo ContentExtrasliderHelper::truncate($item->title, $params->get('item_title_max_characs', 25)); ?>
                                        </a>
                                    </div>
                                <?php } ?>

                                <?php if ($options->item_desc_display == 1 && !empty($item->displayIntrotext)) { ?>
                                    <div class="item-content">
                                        <?php if ($options->item_desc_display == 1 && $item->displayIntrotext != '') { ?>
                                            <div class="item-description">
                                                <?php echo ContentExtrasliderHelper::truncate($item->displayIntrotext, $options->item_desc_max_characs); ?>
                                            </div>
                                        <?php } ?>

                                        <?php $tags = '';
                                        if ($params->get('item_tags_display') == 1 && $item->tags != '' && !empty($item->tags->itemTags)) {
                                            $item->tagLayout = new JLayoutFile('joomla.content.tags');
                                            $tags = $item->tagLayout->render($item->tags->itemTags);
                                        }
                                        if ($tags != '') {
                                            ?>
                                            <div class="item-tags">
                                                <?php echo $tags; ?>
                                            </div>
                                        <?php } ?>

                                        <?php if ($options->item_readmore_display == 1) { ?>
                                            <div class="item-readmore">
                                                <a href="<?php echo $item->link; ?>"
                                                   title="<?php echo $item->title ?>" <?php echo ContentExtrasliderHelper::parseTarget($params->get('item_link_target')); ?>>
                                                    <?php echo $options->item_readmore_text; ?>
                                                </a>
                                            </div>
                                        <?php } ?>

                                    </div>
                                <?php } ?>
                            </div>
                        <?php } ?>
                    </div>
                </div>
                <?php if ($i % $nb_rows == 0 || $i == $count_item) { ?>
                    </div><!--end item-->
                <?php } ?>
            <?php } ?>
        </div>
        <!--end extraslider-inner -->

        <?php if (!empty($options->posttext)) { ?>
            <div class="post-text"><?php echo $options->posttext; ?></div>
        <?php } ?>
    </div>
    <script type="text/javascript">
        //<![CDATA[
        jQuery(document).ready(function ($) {
            ;(function (element) {
                var $element = $(element),
                    $extraslider = $(".extraslider-inner", $element),
                    _delay = <?php echo $delay; ?>,
                    _duration = <?php echo $duration; ?>,
                    _effect = '<?php echo $effect; ?>';

                $extraslider.on("initialized.owl.carousel", function () {
                    var $item_active = $(".owl-item.active", $element);
                    if ($item_active.length > 1 && _effect != "none") {
                        _getAnimate($item_active);
                    }
                    else {
                        var $item = $(".owl-item", $element);
                        $item.css({"opacity": 1, "filter": "alpha(opacity = 100)"});
                    }
                    <?php if($params->get('dots') == "true") { ?>
                    if ($(".owl-dot", $element).length < 2) {
                        $(".owl-prev", $element).css("display", "none");
                        $(".owl-next", $element).css("display", "none");
                        $(".owl-dot", $element).css("display", "none");
                    }
                    <?php }?>

                    <?php if($params->get('button_page') == "top"){ ?>
                    $(".owl-controls", $element).insertBefore($extraslider);
                    $(".owl-dots", $element).insertAfter($(".owl-prev", $element));
                    <?php }else{ ?>
                    $(".owl-nav", $element).insertBefore($extraslider);
                    $(".owl-controls", $element).insertAfter($extraslider);
                    <?php }?>

                });

                $extraslider.owlCarousel({

                    margin: <?php echo $margin; ?>,
                    slideBy: <?php echo $slideBy; ?>,
                    autoplay: <?php echo $params->get('autoplay'); ?>,
                    autoplayHoverPause: <?php echo $params->get('pausehover'); ?>,
                    autoplayTimeout: <?php echo $autoplay_timeout; ?>,
                    autoplaySpeed: <?php echo $autoplay_speed; ?>,
                    startPosition: <?php echo $startPosition; ?>,
                    mouseDrag: <?php echo $params->get('mousedrag');?>,
                    touchDrag: <?php echo $params->get('touchdrag'); ?>,
                    autoWidth: false,
                    responsive: {
                        0: 	{ items: <?php echo $nb_column4;?> } ,
                        480: { items: <?php echo $nb_column3;?> },
                        768: { items: <?php echo $nb_column2;?> },
                        992: { items: <?php echo $nb_column1;?> },
                        1200: {items: <?php echo $nb_column0;?>}
                    },
                    dotClass: "owl-dot",
                    dotsClass: "owl-dots",
                    dots: <?php echo $dots; ?>,
                    dotsSpeed:<?php echo $dotsSpeed; ?>,
                    nav: <?php echo $nav; ?>,
                    loop: true,
                    navSpeed: <?php echo $navSpeed; ?>,
                    navText: ["<?php echo $btn_prev; ?>", "<?php echo $btn_next; ?>"],
                    navClass: ["owl-prev", "owl-next"]
                });

                $extraslider.on("translate.owl.carousel", function (e) {
                    <?php if($params->get('dots') == "true") { ?>
                    if ($(".owl-dot", $element).length < 2) {
                        $(".owl-prev", $element).css("display", "none");
                        $(".owl-next", $element).css("display", "none");
                        $(".owl-dot", $element).css("display", "none");
                    }
                    <?php } ?>

                    var $item_active = $(".owl-item.active", $element);
                    _UngetAnimate($item_active);
                    _getAnimate($item_active);
                });

                $extraslider.on("translated.owl.carousel", function (e) {

                    <?php if($params->get('dots') == "true") { ?>
                    if ($(".owl-dot", $element).length < 2) {
                        $(".owl-prev", $element).css("display", "none");
                        $(".owl-next", $element).css("display", "none");
                        $(".owl-dot", $element).css("display", "none");
                    }
                    <?php } ?>

                    var $item_active = $(".owl-item.active", $element);
                    var $item = $(".owl-item", $element);

                    _UngetAnimate($item);

                    if ($item_active.length > 1 && _effect != "none") {
                        _getAnimate($item_active);
                    } else {

                        $item.css({"opacity": 1, "filter": "alpha(opacity = 100)"});

                    }
                });

                function _getAnimate($el) {
                    if (_effect == "none") return;
                    //if ($.browser.msie && parseInt($.browser.version, 10) <= 9) return;
                    $extraslider.removeClass("extra-animate");
                    $el.each(function (i) {
                        var $_el = $(this);
                        $(this).css({
                            "-webkit-animation": _effect + " " + _duration + "ms ease both",
                            "-moz-animation": _effect + " " + _duration + "ms ease both",
                            "-o-animation": _effect + " " + _duration + "ms ease both",
                            "animation": _effect + " " + _duration + "ms ease both",
                            "-webkit-animation-delay": +i * _delay + "ms",
                            "-moz-animation-delay": +i * _delay + "ms",
                            "-o-animation-delay": +i * _delay + "ms",
                            "animation-delay": +i * _delay + "ms",
                            "opacity": 1
                        }).animate({
                            opacity: 1
                        });

                        if (i == $el.size() - 1) {
                            $extraslider.addClass("extra-animate");
                        }
                    });
                }

                function _UngetAnimate($el) {
                    $el.each(function (i) {
                        $(this).css({
                            "animation": "",
                            "-webkit-animation": "",
                            "-moz-animation": "",
                            "-o-animation": "",
                            "opacity": 0
                        });
                    });
                }

            })("#<?php echo $tag_id ; ?>");
        });
        //]]>
    </script>

    <?php
} else {
    echo JText::_('Has no item to show!');
} ?>
home/digilove/public_html/components/com_jmap/views/google/tmpl/default.php000064400000003167152355317260023314 0ustar00<?php 
/** 
 * @package JMAP::OVERVIEW::administrator::components::com_jmap
 * @subpackage views
 * @subpackage overview
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
// title
if ( $this->cparams->get ( 'show_page_heading', 1 )) {
	$headerlevel = $this->cparams->get ( 'headerlevel', 1 );
	$title = $this->cparams->get ( 'page_heading', $this->menuTitle);
	echo '<h' . $headerlevel . '>' . $title . '</h' . $headerlevel . '>';
}
$cssClass = $this->cparams->get ( 'pageclass_sfx', null);
?>
<form action="<?php echo JRoute::_('index.php?option=com_jmap&view=google');?>" method="post" class="jes jesform <?php echo $cssClass;?>" id="adminForm" name="adminForm">
	<?php if($this->isLoggedIn):?>
		<div class="btn-toolbar well" id="toolbar">
			<div class="btn-wrapper pull-left" id="toolbar-download">
				<button onclick="JMapSubmitform('google.deleteEntity')" class="btn btn-primary btn-xs">
					<span class="glyphicon-lock"></span>
					<?php echo JText::_('COM_JMAP_GOOGLE_LOGOUT');?>
				</button>
			</div>
		</div>
	<?php endif; ?>
		
	<?php echo $this->googleData;?>
	<input type="hidden" name="option" value="<?php echo $this->option;?>" />
	<input type="hidden" name="gaperiod" id="gaperiod" value="<?php echo $this->app->input->get('gaperiod');?>" />
	<input type="hidden" name="gaquery" id="gaquery" value="<?php echo $this->app->input->get('gaquery');?>" />
	<input type="hidden" name="task" value="google.display" />
</form>home/digilove/public_html/administrator/modules/mod_popular/tmpl/default.php000064400000003611152355407670023601 0ustar00<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_popular
 *
 * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');
?>
<div class="row-striped">
	<?php if (count($list)) : ?>
		<?php foreach ($list as $i => $item) : ?>
			<?php // Calculate popular items ?>
			<?php $hits = (int) $item->hits; ?>
			<?php $hits_class = ($hits >= 10000 ? 'important' : ($hits >= 1000 ? 'warning' : ($hits >= 100 ? 'info' : ''))); ?>
			<div class="row-fluid">
				<div class="span8 truncate">
					<span class="badge badge-<?php echo $hits_class; ?> hasTooltip" title="<?php echo JHtml::_('tooltipText', 'JGLOBAL_HITS'); ?>"><?php echo $item->hits; ?></span>
					<?php if ($item->checked_out) : ?>
							<?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time); ?>
					<?php endif; ?>

					<strong class="row-title" title="<?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?>">
						<?php if ($item->link) : ?>
							<a href="<?php echo $item->link; ?>">
								<?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?></a>
						<?php else : ?>
							<?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?>
						<?php endif; ?>
					</strong>
				</div>
				<div class="span4">
					<div class="small pull-right hasTooltip" title="<?php echo JHtml::_('tooltipText', 'JGLOBAL_FIELD_CREATED_LABEL'); ?>">
						<span class="icon-calendar" aria-hidden="true"></span> <?php echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC5')); ?>
					</div>
				</div>
			</div>
		<?php endforeach; ?>
	<?php else : ?>
		<div class="row-fluid">
			<div class="span12">
				<div class="alert"><?php echo JText::_('MOD_POPULAR_NO_MATCHING_RESULTS'); ?></div>
			</div>
		</div>
	<?php endif; ?>
</div>
home/digilove/public_html/modules/mod_jmap/tmpl/default.php000064400000001260152355721730020160 0ustar00<?php
/**
 * @author Joomla! Extensions Store
 * @package JMAP::modules::mod_jmap
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );

/**
 * Module for sitemap footer navigation
 *
 * @author Joomla! Extensions Store
 * @package JMAP::modules::mod_jmap
 * @since 3.0
 */
?>
<iframe <?php echo $onLoad;?>
	id="jmap_sitemap_nav_<?php echo $module->id;?>"
	src="<?php echo $targetIFrameUrl;?>"
	scrolling="<?php echo $scroll; ?>"
	style="border:none;width:<?php echo $width; ?>;height:<?php echo $height; ?>px;"
	class="wrapper <?php echo $moduleclass_sfx; ?>" >
</iframe>home/digilove/public_html/modules/mod_languages/tmpl/default.php000064400000011345152356056340021203 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_languages
 *
 * @copyright   (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('stylesheet', 'mod_languages/template.css', array('version' => 'auto', 'relative' => true));

if ($params->get('dropdown', 0) && !$params->get('dropdownimage', 1))
{
	JHtml::_('formbehavior.chosen');
}

?>
<div class="mod-languages<?php echo $moduleclass_sfx; ?>">
<?php if ($headerText) : ?>
	<div class="pretext"><p><?php echo $headerText; ?></p></div>
<?php endif; ?>

<?php if ($params->get('dropdown', 0) && !$params->get('dropdownimage', 1)) : ?>
	<form name="lang" method="post" action="<?php echo htmlspecialchars_decode(htmlspecialchars(JUri::current(), ENT_COMPAT, 'UTF-8'), ENT_NOQUOTES); ?>">
	<select class="inputbox advancedSelect" onchange="document.location.replace(this.value);" >
	<?php foreach ($list as $language) : ?>
		<option dir=<?php echo $language->rtl ? '"rtl"' : '"ltr"'; ?> value="<?php echo htmlspecialchars_decode(htmlspecialchars($language->link, ENT_QUOTES, 'UTF-8'), ENT_NOQUOTES); ?>" <?php echo $language->active ? 'selected="selected"' : ''; ?>>
		<?php echo $language->title_native; ?></option>
	<?php endforeach; ?>
	</select>
	</form>
<?php elseif ($params->get('dropdown', 0) && $params->get('dropdownimage', 1)) : ?>
	<div class="btn-group">
		<?php foreach ($list as $language) : ?>
			<?php if ($language->active) : ?>
				<a href="#" data-toggle="dropdown" class="btn dropdown-toggle">
					<span class="caret"></span>
					<?php if ($language->image) : ?>
						&nbsp;<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', '', null, true); ?>
					<?php endif; ?>
					<?php echo $language->title_native; ?>
				</a>
			<?php endif; ?>
		<?php endforeach; ?>
		<ul class="<?php echo $params->get('lineheight', 0) ? 'lang-block' : 'lang-inline'; ?> dropdown-menu" dir="<?php echo JFactory::getLanguage()->isRtl() ? 'rtl' : 'ltr'; ?>">
		<?php foreach ($list as $language) : ?>
			<?php if (!$language->active) : ?>
				<li>
				<a href="<?php echo htmlspecialchars_decode(htmlspecialchars($language->link, ENT_QUOTES, 'UTF-8'), ENT_NOQUOTES); ?>">
					<?php if ($language->image) : ?>
						<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', '', null, true); ?>
					<?php endif; ?>
				<?php echo $language->title_native; ?>
				</a>
				</li>
			<?php elseif ($params->get('show_active', 1)) : ?>
				<?php $base = JUri::getInstance(); ?>
				<li class="lang-active">
				<a href="<?php echo htmlspecialchars_decode(htmlspecialchars($base, ENT_QUOTES, 'UTF-8'), ENT_NOQUOTES); ?>">
					<?php if ($language->image) : ?>
						<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', '', null, true); ?>
					<?php endif; ?>
				<?php echo $language->title_native; ?>
				</a>
				</li>
			<?php endif; ?>
		<?php endforeach; ?>
		</ul>
	</div>
<?php else : ?>
	<ul class="<?php echo $params->get('inline', 1) ? 'lang-inline' : 'lang-block'; ?>" dir="<?php echo JFactory::getLanguage()->isRtl() ? 'rtl' : 'ltr'; ?>">
	<?php foreach ($list as $language) : ?>
		<?php if (!$language->active) : ?>
			<li>
			<a href="<?php echo htmlspecialchars_decode(htmlspecialchars($language->link, ENT_QUOTES, 'UTF-8'), ENT_NOQUOTES); ?>">
			<?php if ($params->get('image', 1)) : ?>
				<?php if ($language->image) : ?>
					<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', $language->title_native, array('title' => $language->title_native), true); ?>
				<?php else : ?>
					<span class="label"><?php echo strtoupper($language->sef); ?></span>
				<?php endif; ?>
			<?php else : ?>
				<?php echo $params->get('full_name', 1) ? $language->title_native : strtoupper($language->sef); ?>
			<?php endif; ?>
			</a>
			</li>
		<?php elseif ($params->get('show_active', 1)) : ?>
			<?php $base = JUri::getInstance(); ?>
			<li class="lang-active">
			<a href="<?php echo htmlspecialchars_decode(htmlspecialchars($base, ENT_QUOTES, 'UTF-8'), ENT_NOQUOTES); ?>">
			<?php if ($params->get('image', 1)) : ?>
				<?php if ($language->image) : ?>
					<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', $language->title_native, array('title' => $language->title_native), true); ?>
				<?php else : ?>
					<span class="label"><?php echo strtoupper($language->sef); ?></span>
				<?php endif; ?>
			<?php else : ?>
				<?php echo $params->get('full_name', 1) ? $language->title_native : strtoupper($language->sef); ?>
			<?php endif; ?>
			</a>
			</li>
		<?php endif; ?>
	<?php endforeach; ?>
	</ul>
<?php endif; ?>

<?php if ($footerText) : ?>
	<div class="posttext"><p><?php echo $footerText; ?></p></div>
<?php endif; ?>
</div>
home/digilove/public_html/110/plugins/installer/folderinstaller/tmpl/default.php000064400000002665152356442030024076 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Installer.folderinstaller
 *
 * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');

$app = JFactory::getApplication('administrator');

JFactory::getDocument()->addScriptDeclaration('
	Joomla.submitbuttonfolder = function()
	{
		var form = document.getElementById("adminForm");

		// do field validation 
		if (form.install_directory.value == "")
		{
			alert("' . JText::_('PLG_INSTALLER_FOLDERINSTALLER_NO_INSTALL_PATH', true) . '");
		}
		else
		{
			JoomlaInstaller.showLoading();
			form.installtype.value = "folder"
			form.submit();
		}
	};
');
?>
<legend><?php echo JText::_('PLG_INSTALLER_FOLDERINSTALLER_TEXT'); ?></legend>
<div class="control-group">
	<label for="install_directory" class="control-label"><?php echo JText::_('PLG_INSTALLER_FOLDERINSTALLER_TEXT'); ?></label>
	<div class="controls">
		<input type="text" id="install_directory" name="install_directory" class="span5 input_box" size="70"
			value="<?php echo $app->input->get('install_directory', $app->get('tmp_path')); ?>" />
	</div>
</div>
<div class="form-actions">
	<input type="button" class="btn btn-primary" id="installbutton_directory"
		value="<?php echo JText::_('PLG_INSTALLER_FOLDERINSTALLER_BUTTON'); ?>" onclick="Joomla.submitbuttonfolder()" />
</div>
home/digilove/public_html/components/com_jmap/views/sitemap/tmpl/default.php000064400000000561152357713120023472 0ustar00<?php
/** 
 * @package JMAP::SITEMAP::components::com_jmap
 * @subpackage views
 * @subpackage sitemap
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die('Restricted access');
echo $this->loadTemplate('html');
home/digilove/public_html/components/com_marketplace/views/orderhistory/tmpl/default.php000064400000051120152416164740026127 0ustar00<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filter.output');
jimport('joomla.html.pagination');
JHtml::_('formbehavior.chosen', 'select');
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root().'components/com_marketplace/css/newdesign/seller_grid.css');
$document->addStyleSheet(JURI::root().'components/com_marketplace/css/newdesign/addproduct.css');
$document->addStyleSheet(JURI::root().'components/com_marketplace/css/newdesign/order_history.css');
$document->addStyleSheet(JURI::root().'components/com_marketplace/css/newdesign/marketplace.css');
$document->addStyleSheet('https://fonts.googleapis.com/css?family=Roboto');
$userdetails = JFactory::getUser();
$orders=$this->data;

/*********Calculated Modules******************/
$obj=new JDocumentHTML();$mod="";
if (!$obj->countModules('wk_marketplace-left')&& !$obj->countModules('wk_marketplace-right')) {
    $both=0;
} elseif ((!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right'))||($obj->countModules('wk_marketplace-left') && !$obj->countModules('wk_marketplace-right'))) {
    $both=1;
    if (!$obj->countModules('wk_marketplace-left') && $obj->countModules('wk_marketplace-right')) {
        $mod="r";
    } else {
        $mod="l";
    }
} else {
    $both=2;
}
if ($both==0) {
    $maxwidth="900";
} elseif ($both==1) {
    $maxwidth="700";
} else {
    $maxwidth="550";
}
$param  = JComponentHelper::getParams('com_marketplace');
$bgcolor=trim($param->get('head_bg_color'));
$textcolor=trim($param->get('head_txt_color'));
?>
<style type="text/css">
    .order_history{
        background-color:<?php echo $bgcolor;?>;
        
    }
    .detail_text{
        color:<?php echo $textcolor;?>;
    }
    #list_fullordering_chzn .chzn-single,#list_order_status_chzn .chzn-single{
    height:28px!important;
}
</style>
<?php
/*********Calculated Modules End******************/
?>
<style type="text/css">
    .wk_main_loader{
        position: relative;
    }
    .wk_main_loader_overlay{
        position: absolute;
        background-color: #FFF ! important; 
        z-index: 999; 
        width:101%;
        height:100%;
        border: 1px solid #CCCCCC;
        border-radius: 10px;
    }
    .orderhistory_main,.marketplace_position1,.marketplace_position2 {
        margin: 5px;
        display:block;
        vertical-align: top;
    }
    .block{
         padding: 2% 2% 0 2% !important;
         width: 96% !important;
         font-size: 15px;
    }
    .orderhistory_main tr th{
        background-color: #E7E7E7;
        color:#333333;
        height: 30px;
    }

    .orderhistory_main tr th:last-child{
        min-width: 100px;
    }
    .js-stools-btn-filter{
        display: none;
    }
    .js-stools-container-list{
        float: left!important;
    }
    .wk_orderhistory *{
        font-size: 15px;
        font-family: 'Roboto', sans-serif;
        color: #333333;
    }
    
    #list_fullordering,#list_order_status{
        width: 200px;
        height: 35px;
        line-height: 26px;
        font-size: 15px;
        margin-bottom: 10px;
    }
    .wk_orderhistory .js-stools-container-bar {
        margin-bottom: 10px;
    }
    
    .wk_orderhistory .js-stools-container-bar #filter_search{
        /*height: 25px ;*/
        font-size: 15px;
    }
    .wk_orderhistory .js-stools-container-bar button{
        /*height: 35px;*/
    }
    #list_fullordering option{
        height: 25px;
        line-height: 26px;
        font-size: 15px;
    }
    
    .js-stools-container-list #list_order_status option{
        height: 35px;
        height: 25px;
        line-height: 26px;
        font-size: 15px;
    }
    .pagenav{
        color: #1F496E;
    }
    .order_history{
    
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    color: #FFF;
    }
  .detail_design{
    height: inherit;
    width: 5px;
    background-color: #E8534F;
    display: block;
    float: left;
  }
  .detail_text{
    display: block;
    float: left;
    margin: 12px 5%;
    
    text-transform: uppercase;
  }
 @media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr { 
        display: block; 
    }
    
    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr { border: 1px solid #ccc; margin-top: 5px; }
    
    td { 
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50% !important;
    white-space: normal;
    text-align:left;
    min-height: 30px;
    }
    
    td:before { 
        /* Now like a table header */
        
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        position: absolute;
        text-align:left;
        font-weight: bold;
    }
    
    td:nth-of-type(1):before { content: "<?php echo JText::_('ORDER_NO'); ?>";}
    td:nth-of-type(2):before { content: "<?php echo JText::_('ORDER_DATE'); ?>"; }
    td:nth-of-type(3):before { content: "<?php echo JText::_('INVOICE_DATE'); ?>"; }
    td:nth-of-type(4):before { content: "<?php echo JText::_('CUSTOMER_NAME'); ?>"; }
    td:nth-of-type(5):before { content: "<?php echo JText::_('MAIN_ORDER_STATUS'); ?>"; }
    td:nth-of-type(6):before { content: "<?php echo JText::_('SELLER_ORDER_STATUS'); ?>"; }
    td:nth-of-type(7):before { content: "<?php echo JText::_('ORDER_TOTAL_AMOUNT'); ?>"; }
    td:before{
        font-weight: bold;
    }
    td p,td p:before{
        width: 49%;
        min-width: 100px;
        max-width: 200px;
        display: inline-block;
    }
    
}
.wkremovepadding{
    padding-left: 5px!important;
}
.wkremovepadding::before{
    display: none;
}
/*@media only screen and (max-width: 308px) {
    .wk_orderhistory *{
        font-size: 12px;
    }
    td p,td p:before{
        min-width: 80px;
    }
}*/
</style>
<!--****************Custom Position********************************* -->
<div style="width:100%;" class="wk_main_loader">
    <div class="wk_main_loader_overlay" >
        <img style="display:block;margin:0 auto;" src="<?php echo JURI::root()."components/com_marketplace/"?>images/ajaxspinner1.gif"/>
    </div>
<div class="Wk_outer">
<div class="marketplace_position-top" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-top}'); ?></div>
<div class="marketplace_position1" ><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-left}'); ?></div>

<!-- ****************Custom Position end********************************* -->	
<div class="orderhistory_main">
<?php
$orderhismenu=plgSystemMarketplace::getMenuId('index.php?option=com_marketplace&view=orderhistory');
?>
<form action="<?php echo JRoute::_('index.php?option=com_marketplace&view=orderhistory&ItemId='.$orderhismenu, false);?>" method="post" name="adminForm" id="adminForm">
<?php echo JHTML::_('form.token');
?>
<div>
    <div class="order_history">
        <span class="detail_design"></span>
        <span class="detail_text"><?php echo JText::_('ORDER_HISTORY'); ?></span>
    </div>
    <div class="tabs-data">
        
        <div class="block wk_orderhistory">
        <?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this));
        
        ?>
            <!-- <div class="tab-pane" id="recent-product"> -->
                <div class="table-responsive ">
                    <table class="table-bordered table table-stripped">
                            <thead>
                                <tr class="nowrap1">
                                    <th >
                                        <?php echo JText::_('ORDER_NO'); ?>
                                    </th>
                                    <th >
                                        <?php echo JText::_('ORDER_DATE'); ?>
                                    </th>
                                     <th >
                                        <?php echo JText::_('INVOICE_DATE'); ?>
                                    </th>
                                    <th>
                                        <?php echo JText::_('CUSTOMER_EMAIL'); ?>
                                    </th>
                                    <th>
                                        <?php echo JText::_('MAIN_ORDER_STATUS'); ?>
                                    </th>
                                    <th>
                                        <?php echo JText::_('SELLER_ORDER_STATUS'); ?>
                                    </th>
                                    <th>
                                        <?php echo JText::_('ORDER_TOTAL_AMOUNT'); ?>
                                    </th>
                                </tr>
                            </thead>
                            <tbody class="order_his">
                            <?php
                            if (count($orders)&& $orders!=false) {
                                $ors=array();
                                $ids=array();
                                $ids[]=array();
                                foreach ($orders as $k => $item) {
                                    $ids[$item->virtuemart_order_id][]=$item->virtuemart_order_item_id;
                                    if (isset($orders[$k+1]->virtuemart_order_id)) {
                                        if ($orders[$k]->virtuemart_order_id==$orders[$k+1]->virtuemart_order_id) {
                                            $ors[]=$item->order_status;
                                            continue;
                                        }
                                    }
                                    $model=$this->getModel();
                                    $orderdetails=$model->getVmOrder($item->virtuemart_order_id);
                                    $or_no=$orderdetails['details']['BT'];
                                    if (isset($or_no)) {
                                        $csm=ShopFunctions::getCurrencyByID($or_no->order_currency, 'currency_symbol');
                                        if (count($ors)>1) {
                                            $seller_order_status=$ors[0];
                                            $limit=count($ors);
                                            $f=0;
                                            $i=0;
                                            foreach ($ors as $l => $value) {
                                                if ($i<$limit) {
                                                    if (isset($ors[$i+1])) {
                                                        if ($ors[$i]==$ors[$i+1]) {
                                                            $seller_order_status=$value;
                                                        }
                                                    }
                                                }
                                                $i++;
                                            }
                                        }
                                        if ($or_no->order_status=='U' || $or_no->order_status=='C') {
                                            $color='background-color:#1abc9c;';
                                        } elseif ($or_no->order_status=='X') {
                                            $color='background-color:#c0392b;';
                                        } elseif ($or_no->order_status=='P') {
                                            $color='background-color:#f0bc5b;';
                                        } elseif ($or_no->order_status=='R') {
                                                $color='background-color:#cbd0d3;';
                                        } elseif ($or_no->order_status=='S') {
                                            $color='background-color:#16a085;';
                                        } else {
                                            $color='background-color:#e67e22;';
                                        }
                                    
                                ?>
                                  <tr>
                                      <td>
                                      <a href="<?php echo JRoute::_('index.php?option=com_marketplace&view=orderhistory&layout=orderdata&task=editorder&virtuemart_order_id='.$item->virtuemart_order_id.'&item_id='.$item->virtuemart_order_item_id, false);?>" title="<?php echo $or_no->order_number ?>">
                                        <?php
                                        echo $or_no->order_number;?><span class="icon-edit" style="color:#2196F3;text-align:center; font-size:20px;"></span></a></td>
                                      <td> <?php echo $or_no->modified_on;?> </td>
                                      <td><?php echo $item->created_on ; ?></td>
                                      <td><?php echo $or_no->email; ?></td>
                                    <?php
                                    $sell_stat = $model->getOrderStatus($userdetails->id, $item->virtuemart_order_id);
                                    if ($sell_stat != null && $sell_stat != false) {
                                        $combine_status = $sell_stat->order_status;
                                    } else {
                                        $combine_status =$orderdetails['details']['BT']->order_status;
                                        $model->setOrderStatus($userdetails->id, $item->virtuemart_order_id, $combine_status);
                                    }
                                    
                                    if ($combine_status=='U' || $combine_status=='C') {
                                        $color='background-color:#85bd46;';
                                    } elseif ($combine_status=='X') {
                                        $color='background-color:#d53d42;';
                                    } elseif ($combine_status=='P') {
                                        $color='background-color:#f0bc5b;';
                                    } elseif ($combine_status=='R') {
                                        $color='background-color:#cbd0d3;';
                                    } elseif ($combine_status=='S') {
                                        $color='background-color:#85bd46;';
                                    } else {
                                        $color='background-color:#f9853c;';
                                    }
                                    if ($or_no->order_status=='U' || $or_no->order_status=='C') {
                                        $color_ord='background-color:#85bd46;';
                                    } elseif ($or_no->order_status=='X') {
                                        $color_ord='background-color:#d53d42;';
                                    } elseif ($or_no->order_status=='P') {
                                        $color_ord='background-color:#f0bc5b;';
                                    } elseif ($or_no->order_status=='R') {
                                        $color_ord='background-color:#cbd0d3;';
                                    } elseif ($or_no->order_status=='S') {
                                        $color_ord='background-color:#85bd46;';
                                    } else {
                                        $color_ord='background-color:#f9853c;';
                                    }
                                    ?>
                                        <td><p class="order_status" style="<?php echo $color_ord;?> color:#FFFFFF;text-align:center;"><?php echo JText::_(ShopFunctionsF::getOrderStatusName($or_no->order_status)); ?></p></td>
                                        <td><p  style="<?php echo $color;?> color:#FFFFFF;text-align:center" title="<?php echo JText::_('TOTAL_PRODUCTS').' : '.count($orderdetails['items']);?>"><?php echo JText::_(ShopFunctionsF::getOrderStatusName($combine_status)); ?></p></td>
                                        <?php
                                        $item_count=count($item);
                                        ?>
                                        <td><?php echo $csm." "; $price = number_format($or_no->order_total, 2, '.', ''); echo $price; ?>
                                        </td>
                                    </tr>
                                    <?php 
                                    }
                                }
                            } else {
                                echo "<tr ><td colspan='7'><div class='alert alert-info'>
                                  <strong>Info!</strong>".JText::_('NO_RECORD_FOUND')."</div></td></tr>";
                            }
                            ?>
                            </tbody>
                        
                    </table>
                </div>
            <!-- </div> -->
        </div>
    </div>
</div>

</form>
</div>
<style type="text/css">
    .orderhistory_main .hidden-phone{
        display: block!important;
    }
</style>
<script type="text/javascript">
jQuery(window).load(function(){
        jQuery('.wk_main_loader_overlay').css('display','none');
    });
jQuery(function(){
        jQuery('.wk_orderhistory .js-stools-btn-filter').parent().remove();
        if(jQuery('.orderhistory_main').width()<335){
            jQuery('.wk_orderhistory #filter_search').css({'width':'92px'});
            jQuery('.wk_orderhistory .js-stools-field-list').css({'display':'block'});
        }
        var total_order="<?php echo count($orders);?>";
        if(jQuery(window).width()<=1024){
            if(total_order==0){

                jQuery('.wk_orderhistory table td').addClass('wkremovepadding');

                jQuery('.wk_orderhistory table td::before').css({'display': 'none !important'});

            }
        }
        var both=<?php echo $both;?>;
        var mod="<?php echo $mod;?>";
           jQuery(window).on('load resize',function(){
             if(both==2){
                   
                   if(jQuery('.Wk_outer').width()>=900){
                    jQuery('.marketplace_position1').css("width","19%");
                    jQuery('.marketplace_position2').css("width","19%");
                    jQuery('.orderhistory_main').css("width","57%");
                }
                else if(jQuery('.Wk_outer').width()<766 && jQuery('.Wk_outer').width()>650){
                    jQuery('.marketplace_position1').css("width","23%");
                    jQuery('.marketplace_position2').css("width","99%");
                    jQuery('.orderhistory_main').css("width","73%");
                }
                else if( jQuery('.Wk_outer').width()<=650){
                    jQuery('.marketplace_position1').css("width","99.5%");
                    jQuery('.marketplace_position2').css("width","99.5%");
                    jQuery('.orderhistory_main').css("width","99.5%");
                }
            }
            else if(both==1){
                   if(jQuery('.Wk_outer').width()>=724){
                       if (mod=="l")
                           jQuery('.marketplace_position1').css("width","23.5%");
                       else
                        jQuery('.marketplace_position2').css("width","23.5%");
                    jQuery('.orderhistory_main').css("width","70.5%");
                }
                else if( jQuery('.Wk_outer').width()<724){
                    if (mod=="l")
                        jQuery('.marketplace_position1').css("width","99.5%");
                    else
                        jQuery('.marketplace_position2').css("width","99.5%");
                    jQuery('.orderhistory_main').css("width","99.5%");
                }
            }
            else{
                jQuery('.orderhistory_main').css("width","99.5%");
            }
           });
       });

</script>
<div class="marketplace_position2" ><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-right}'); ?></div>
<div class="marketplace_position-bottom" style="clear:both;"><?php echo JHTML::_('content.prepare', '{loadposition wk_marketplace-bottom}'); ?></div>
</div>
</div>home/digilove/public_html/components/com_jce/editor/tiny_mce/plugins/microdata/tmpl/default.php000064400000001770152423765540027240 0ustar00<?php

/**
 * @copyright 	Copyright (c) 2009-2021 Ryan Demmer. All rights reserved
 * @license   	GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * JCE is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses
 */
defined('WF_EDITOR') or die('RESTRICTED');

$tabs = WFTabs::getInstance();

?>
<form action="#">
	<!-- Render Tabs -->
	<?php $tabs->render(); ?>
	<!-- Token -->
	<input type="hidden" id="token" name="<?php echo JSession::getFormToken(); ?>" value="1" />
</form>
<div class="actionPanel uk-modal-footer">
	<button class="uk-button" id="cancel"><?php echo JText::_('WF_LABEL_CANCEL')?></button>
	<button class="uk-button" id="help"><?php echo JText::_('WF_LABEL_HELP')?></button>
	<button class="uk-button" id="insert"><?php echo JText::_('WF_LABEL_INSERT')?></button>
</div>
home/digilove/public_html/components/com_config/view/config/tmpl/default.php000064400000003430152425201560023422 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// Load tooltips behavior
JHtml::_('behavior.formvalidator');
JHtml::_('bootstrap.tooltip');
JHtml::_('formbehavior.chosen', 'select');

JFactory::getDocument()->addScriptDeclaration("
	Joomla.submitbutton = function(task)
	{
		if (task == 'config.cancel' || document.formvalidator.isValid(document.getElementById('application-form'))) {
			Joomla.submitform(task, document.getElementById('application-form'));
		}
	}
");
?>

<form action="<?php echo JRoute::_('index.php?option=com_config'); ?>" id="application-form" method="post" name="adminForm" class="form-validate">

	<div class="row-fluid">
		<!-- Begin Content -->

		<div class="btn-toolbar" role="toolbar" aria-label="<?php echo JText::_('JTOOLBAR'); ?>">
			<div class="btn-group">
				<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('config.save.config.apply')">
					<span class="icon-ok"></span> <?php echo JText::_('JSAVE') ?>
				</button>
			</div>
			<div class="btn-group">
				<button type="button" class="btn" onclick="Joomla.submitbutton('config.cancel')">
					<span class="icon-cancel"></span> <?php echo JText::_('JCANCEL') ?>
				</button>
			</div>
		</div>

		<hr class="hr-condensed" />

		<div id="page-site" class="tab-pane active">
			<div class="row-fluid">
				<?php echo $this->loadTemplate('site'); ?>
				<?php echo $this->loadTemplate('metadata'); ?>
				<?php echo $this->loadTemplate('seo'); ?>
			</div>
		</div>

		<input type="hidden" name="task" value="" />
		<?php echo JHtml::_('form.token'); ?>

		<!-- End Content -->
	</div>

</form>
home/digilove/public_html/110/plugins/content/relatednews/tmpl/default.php000064400000010245152426521300022664 0ustar00<?php
/**
 * @package Content - Related News
 * @version 3.3.0
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @copyright (c) 2012 YouTech Company. All Rights Reserved.
 * @author YouTech Company http://www.smartaddons.com
 *
 */
defined('_JEXEC') or die;

// includes placehold
$yt_temp = JFactory::getApplication()->getTemplate();
include (JPATH_BASE . '/templates/'.$yt_temp.'/includes/placehold.php');
?>
<?php /*<div class="addthis">
            <!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55f39cd53f56cee0"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_sharing_toolbox"></div>
        </div>*/ ?>
<?php
ImageHelper::setDefault($_params);

if (count($items)){
    if ((int)$this->params->get('usecss', 1)){
        $css_url = JURI::root() . 'plugins/content/relatednews/assets/css/relatednews.css';
		
        $document = JFactory::getDocument();
        $document->addStyleSheet($css_url);
		JHtml::stylesheet(JUri::base()."plugins/content/relatednews/assets/owl.carousel/owl.carousel.css",'text/css',"screen");
		JHtml::_('jquery.framework');
		JHtml::script(JUri::base()."plugins/content/relatednews/assets/owl.carousel/owl.carousel.min.js");
		
    }

    if ($this->params->get('title')){
        echo '<h3 class="related-title">';
        echo $this->params->get('title');
        echo '</h3>';
    }
	
    echo '<ul class="related-items row">';
    foreach ($items as $id => $item) {
        if($item->id != $article_id){?>
            <li class="col-sm-12">
            <?php
            if ((int)$this->params->get('item_image_display', 1)){ ?>
                <div class="img-fulltext">

                    <?php
                        $img = RelatedBaseHelper::getArticleImage($item, $_params);
                        //Create placeholder images
                        if (isset($img['src'])) $src = $img['src'];
                        if (file_exists($src )) {
                            echo RelatedBaseHelper::imageTag($img);
                        } else if ($is_placehold) {
                            echo yt_placehold($placehold_size['related_items'] );
                        }
                    ?>
                </div>
            <?php }?>
            <div class="content">
            <?php
            if ((int)$_params->get('item_date_display', 1) == 1): ?>
                <span class="related-item-date"><?php echo JHtml::date($item->created, 'd mm Y'); ?></span>

            <?php
            endif;
            ?>
                <h3 class="related-item-title">
                    <a href="<?php echo $item->link; ?>" <?php echo RelatedBaseHelper::parseTarget($_params->get('item_link_target'));?> >
                    <?php echo limit_text($item->title,25); ?>
                    </a>
                </h3>
                <div class="related-item-info">
            <?php
            if ((int)$_params->get('item_date_display', 1) == 2): ?>
                <div class="related-item-date"><?php echo JHtml::date($item->created, 'd M, Y'); ?></div>
                <div class="related-item-author"> <span>توسط</span> <?php echo JText::sprintf($item->author); ?> </div>
            <?php endif; ?>
                </div>
            <?php echo limit_text($item->introtext,25);?>
            </div>
            </li>
    <?php
    }}
    echo '</ul>';
}

?>

<script>// <![CDATA[
jQuery(document).ready(function($) {
		$('.related-items').owlCarousel({
			pagination: false,
			center: false,
			nav: true,
			dots: false,
			loop: false,
			margin: 0,
			//rtl: true,
			slideBy: 1,
			autoplay: false,
			autoplayTimeout: 2500,
			autoplayHoverPause: true,
			autoplaySpeed: 800,
			startPosition: 0,
            navText: ["<i class='fa fa-long-arrow-left'></i>","<i class='fa fa-long-arrow-right'></i>"],
			responsive:{
				0:{
					items:1
				},
				480:{
					items:1
				},
				768:{
					items:2
				},
				1200:{
					items:3,
                    nav:false,
				}
			}
		});	  
	});
// ]]></script>
home/digilove/public_html/110/plugins/vmshipment/weight_countries/tmpl/default.php000064400000002540152426623140024455 0ustar00<?php
/**
*
* @version $Id$
* @package VirtueMart
* @subpackage Shipment
* @author Max Milbers
* @copyright Copyright (C) 2014 by the VirtueMart Team 
* All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/

//vmdebug('we have here ',$viewData['product']->prices,$viewData['method']);
$currency = $viewData['currency'];
if(!empty($viewData['method']->countries) and is_array($viewData['method']->countries) and count($viewData['method']->countries)>0){
	$countryM = VmModel::getModel('country');
	echo vmText::_('VMSHIPMENT_WEIGHT_COUNTRIES_SHIP_TO');
	foreach($viewData['method']->countries as $virtuemart_country_id){
		$country = $countryM->getData($virtuemart_country_id);
		echo $country->country_name;
		//vmdebug('my country ',$country);
	}
	echo '<br/>';
}

echo vmtext::sprintf('VMSHIPMENT_WEIGHT_COUNTRIES_WITH_SHIPMENT', $viewData['method']->shipment_name, $currency->priceDisplay($viewData['product']->prices['shipmentPrice']));
?>home/digilove/public_html/components/com_users/views/remind/tmpl/default.php000064400000002415152427046220023516 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_users
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');

?>
<div class="remind<?php echo $this->pageclass_sfx; ?>">
	<?php if ($this->params->get('show_page_heading')) : ?>
		<div class="page-header">
			<h1>
				<?php echo $this->escape($this->params->get('page_heading')); ?>
			</h1>
		</div>
	<?php endif; ?>
	<form id="user-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=remind.remind'); ?>" method="post" class="form-validate form-horizontal well">
		<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
			<fieldset>
				<?php if (isset($fieldset->label)) : ?>
					<p><?php echo JText::_($fieldset->label); ?></p>
				<?php endif; ?>
				<?php echo $this->form->renderFieldset($fieldset->name); ?>
			</fieldset>
		<?php endforeach; ?>
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn btn-primary validate">
					<?php echo JText::_('JSUBMIT'); ?>
				</button>
			</div>
		</div>
		<?php echo JHtml::_('form.token'); ?>
	</form>
</div>
home/digilove/public_html/110/plugins/content/pagenavigation/tmpl/default.php000064400000002577152430752640023364 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Content.pagenavigation
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');

$lang = JFactory::getLanguage();

?>
<ul class="pager pagenav">
<?php if ($row->prev) :
	$direction = $lang->isRtl() ? 'right' : 'left'; ?>
	<li class="previous">
		<a class="hasTooltip" title="<?php echo htmlspecialchars($rows[$location-1]->title); ?>" aria-label="<?php echo JText::sprintf('JPREVIOUS_TITLE', htmlspecialchars($rows[$location-1]->title)); ?>" href="<?php echo $row->prev; ?>" rel="prev">
			<?php echo '<span class="icon-chevron-' . $direction . '" aria-hidden="true"></span> <span aria-hidden="true">' . $row->prev_label . '</span>'; ?>
		</a>
	</li>
<?php endif; ?>
<?php if ($row->next) :
	$direction = $lang->isRtl() ? 'left' : 'right'; ?>
	<li class="next">
		<a class="hasTooltip" title="<?php echo htmlspecialchars($rows[$location+1]->title); ?>" aria-label="<?php echo JText::sprintf('JNEXT_TITLE', htmlspecialchars($rows[$location+1]->title)); ?>" href="<?php echo $row->next; ?>" rel="next">
			<?php echo '<span aria-hidden="true">' . $row->next_label . '</span> <span class="icon-chevron-' . $direction . '" aria-hidden="true"></span>'; ?>
		</a>
	</li>
<?php endif; ?>
</ul>