/*
Template Name: Profile Settings
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('My Settings', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('profile-settings');
?>
	<form action="" method="POST" class="site-form">
		<div class="message">
			<?php 
ThemexInterface::renderMessages(themex_value('success', $_POST, false));
?>
		</div>
		<table class="profile-fields">
			<tbody>
				<tr>
					<th><?php 
_e('Notifications', 'makery');
?>
</th>
					<td>
/*
Template Name: Shop Order
*/
get_header();
get_sidebar('profile-left');
$order = ThemexWoo::getOrder(get_query_var('shop-order'));
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('Edit Order', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('shop-order');
?>
	<?php 
if (ThemexCore::checkOption('shop_multiple')) {
    ?>
	<span class="secondary"><?php 
    _e('This shop does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    if (empty($order) || $order['author'] != ThemexUser::$data['current']['ID']) {
        ?>
	<span class="secondary"><?php 
        _e('This order does not exist.', 'makery');
        ?>
/*
Template Name: Profile Address
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('My Address', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('profile-address');
?>
	<?php 
if (!ThemexWoo::isActive() || ThemexCore::checkOption('profile_address')) {
    ?>
	<span class="secondary"><?php 
    _e('There are no fields in this form.', 'makery');
    ?>
</span>
	<?php 
} else {
    ?>
	<form action="" method="POST" class="site-form">
		<div class="message">
			<?php 
    ThemexInterface::renderMessages(themex_value('success', $_POST, false));
_e('Sign In', 'makery');
?>
</a>
		<?php 
if (ThemexFacebook::isActive()) {
    ?>
		<a href="<?php 
    echo home_url('?facebook_login=1');
    ?>
" class="element-button element-facebook square facebook" title="<?php 
    _e('Sign in with Facebook', 'makery');
    ?>
"><span class="fa fa-facebook"></span></a>
		<?php 
}
?>
		<a href="#password_form" class="element-button element-colorbox square" title="<?php 
_e('Password Recovery', 'makery');
?>
"><span class="fa fa-life-ring"></span></a>
		<input type="hidden" name="user_action" value="login_user" />
		<input type="hidden" name="action" class="action" value="<?php 
echo THEMEX_PREFIX;
?>
update_user" />
	</form>
</div>
<div class="clear"></div>
<?php 
ThemexInterface::renderTemplateContent('register');
get_footer();
    _e('Edit Item', 'makery');
    ?>
</h1>
		<?php 
} else {
    ?>
		<h1><?php 
    _e('Add Item', 'makery');
    ?>
</h1>
		<?php 
}
?>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('shop-product');
?>
	<?php 
if (ThemexCore::checkOption('shop_multiple')) {
    ?>
	<span class="secondary"><?php 
    _e('This shop does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    if (themex_status(ThemexUser::$data['current']['shop']) != 'publish') {
        ?>
	<span class="secondary"><?php 
        _e('This shop is currently being reviewed.', 'makery');
        ?>
/*
Template Name: Profile Links
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('My Links', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('profile-links');
?>
	<?php 
if (ThemexCore::checkOption('profile_links')) {
    ?>
	<span class="secondary"><?php 
    _e('There are no fields in this form.', 'makery');
    ?>
</span>
	<?php 
} else {
    ?>
	<form action="" method="POST" class="site-form">
		<div class="message">
			<?php 
    ThemexInterface::renderMessages(themex_value('success', $_POST, false));
/*
Template Name: Shop Membership
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('Shop Membership', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('shop-membership');
?>
	<?php 
if (!ThemexWoo::isActive() || !ThemexCore::checkOption('membership_free')) {
    ?>
	<span class="secondary"><?php 
    _e('This shop does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    $membership = ThemexUser::getMembership(ThemexUser::$data['current']['ID']);
    ?>
	<table class="profile-fields">
		<tbody>
			<tr>
/*
Template Name: Shop Shipping
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('Shop Shipping', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('shop-shipping');
?>
	<?php 
if (!ThemexWoo::isActive() || ThemexCore::checkOption('shop_shipping')) {
    ?>
	<span class="secondary"><?php 
    _e('This shop does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    $methods = ThemexWoo::getShippingMethods();
    $shipping = ThemexShop::getShipping(ThemexShop::$data['ID']);
    if (!empty($methods)) {
        ?>
	<form action="" method="POST" class="site-form">
/*
Template Name: Shop
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('My Shop', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('shop-settings');
?>
	<?php 
if (ThemexCore::checkOption('shop_multiple')) {
    ?>
	<span class="secondary"><?php 
    _e('This shop does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    if (ThemexShop::$data['status'] == 'pending') {
        ?>
	<span class="secondary"><?php 
        _e('This shop is currently being reviewed.', 'makery');
        ?>
/*
Template Name: Profile Referrals
*/
get_header();
get_sidebar('profile-left');
?>
<div class="column fivecol">
	<div class="element-title indented">
		<h1><?php 
_e('My Referrals', 'makery');
?>
</h1>
	</div>
	<?php 
ThemexInterface::renderTemplateContent('profile-referrals');
?>
	<?php 
if (ThemexCore::checkOption('shop_referrals') || !ThemexWoo::isActive()) {
    ?>
	<span class="secondary"><?php 
    _e('This page does not exist.', 'makery');
    ?>
</span>
	<?php 
} else {
    ?>
		<form action="" method="POST" class="site-form">
			<table class="profile-fields">
				<tbody>
					<tr>