toggle-<?php echo $GLOBALS['lesson']->post_parent; ?> lesson-child<?php } ?> <?php if (ThemexCourse::isMember() && ThemexLesson::$data['progress'] != 0) { ?> completed<?php } ?> "> <div class="lesson-title"> <?php if (ThemexCore::checkOption('lesson_collapse') && ($GLOBALS['lesson']->post_parent != 0 || isset(ThemexCourse::$data['lessons'][$GLOBALS['index'] + 1]) && ThemexCourse::$data['lessons'][$GLOBALS['index'] + 1]->post_parent !== 0)) { ?> <div class="lesson-toggle toggle-element" data-class="toggle-<?php echo $GLOBALS['lesson']->ID; ?> "></div> <?php } ?> <?php if (ThemexLesson::$data['status'] == 'free') { ?> <div class="course-status"><?php _e('Free', 'academy'); ?> </div>
_e('Password', 'academy'); ?> " /> </div> </div> <div class="sixcol column last"> <div class="field-wrapper"> <input type="password" name="user_password_repeat" placeholder="<?php _e('Repeat Password', 'academy'); ?> " /> </div> </div> <div class="clear"></div> <?php if (ThemexCore::checkOption('user_captcha')) { ?> <div class="form-captcha"> <img src="<?php echo THEMEX_URI; ?> assets/images/captcha/captcha.php" alt="" /> <input type="text" name="captcha" id="captcha" size="6" value="" /> </div> <div class="clear"></div> <?php } ?> <a href="#" class="element-button submit-button left"><span class="button-icon register"></span><?php _e('Register', 'academy'); ?>
/** * Uncompletes course * * @access public * @return void */ public static function uncompleteCourse() { if (self::isMember() && !ThemexCore::checkOption('course_retake')) { ThemexCore::removeUserRelation(get_current_user_id(), self::$data['ID'], 'certificate'); } }
*/ 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)); ?> </div> <table class="profile-fields">
} ?> </a> <input type="hidden" name="course_action" value="add_user" /> <input type="hidden" name="user_redirect" value="<?php echo ThemexCourse::$data['ID']; ?> " /> <?php } ?> <?php } else { ?> <?php if (!ThemexCore::checkOption('course_retake')) { ?> <a href="#" class="element-button secondary medium submit-button left"><?php _e('Unsubscribe Now', 'academy'); ?> </a> <input type="hidden" name="course_action" value="remove_user" /> <?php } ?> <?php if (ThemexCourse::hasCertificate()) { ?> <a href="<?php echo ThemexCore::getURL('certificate', themex_encode(ThemexCourse::$data['ID'], ThemexUser::$data['user']['ID'])); ?>
<?php } } ?> </tbody> </table> <div class="profile-description"> <?php ThemexInterface::renderEditor('content', ThemexWoo::$data['product']['content']); ?> </div> <?php if (ThemexWoo::$data['product']['status'] == 'draft') { ?> <?php if (ThemexCore::checkOption('shop_approve')) { ?> <a href="#" class="element-button element-submit primary"><?php _e('Save Changes', 'makery'); ?> </a> <?php } else { ?> <a href="#" class="element-button element-submit primary"><?php _e('Submit for Review', 'makery'); ?> </a> <?php } ?>
*/ if (!defined('ABSPATH')) { exit; } global $product; ?> <div class="item-options right"> <form class="element-form" method="POST" action="<?php echo AJAX_URL; ?> "> <?php echo apply_filters('woocommerce_loop_add_to_cart_link', sprintf('<a href="%s" title="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="%s product_type_%s"><span class="fa fa-shopping-cart large"></span></a>', esc_url($product->add_to_cart_url()), esc_html($product->add_to_cart_text()), esc_attr($product->id), esc_attr($product->get_sku()), esc_attr(isset($quantity) ? $quantity : 1), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : 'hidden', esc_attr($product->product_type)), $product); ?> <?php if (!ThemexCore::checkOption('product_favorites')) { ?> <?php if (is_user_logged_in()) { ?> <?php if (in_array($product->id, ThemexUser::$data['current']['favorites'])) { ?> <a href="#" title="<?php _e('Remove from Favorites', 'makery'); ?> " class="element-submit primary active" data-title="<?php _e('Add to Favorites', 'makery'); ?> "><span class="fa fa-heart small"></span></a> <input type="hidden" name="user_action" class="toggle" value="remove_relation" data-value="add_relation" />
*/ get_header(); get_sidebar('profile-left'); ?> <div class="column fivecol"> <div class="element-title indented"> <h1><?php _e('Shop Orders', 'makery'); ?> </h1> </div> <?php ThemexInterface::renderTemplateContent('shop-orders'); ?> <?php if (ThemexCore::checkOption('shop_multiple')) { ?> <span class="secondary"><?php _e('This shop does not exist.', 'makery'); ?> </span> <?php } else { if (ThemexShop::$data['status'] != 'publish') { ?> <span class="secondary"><?php _e('This shop is currently being reviewed.', 'makery'); ?> </span> <?php } else {
/** * Registers user * * @access public * @param array $data * @return void */ public static function registerUser($data) { if (ThemexCore::checkOption('user_captcha')) { session_start(); if (isset($data['captcha']) && isset($_SESSION['captcha'])) { $posted_code = md5($data['captcha']); $session_code = $_SESSION['captcha']; if ($session_code != $posted_code) { ThemexInterface::$messages[] = __('Verification code is incorrect', 'makery'); } } else { ThemexInterface::$messages[] = __('Verification code is empty', 'makery'); } } if (empty($data['user_email']) || empty($data['user_login']) || empty($data['user_password']) || empty($data['user_password_repeat'])) { ThemexInterface::$messages[] = __('Please fill in all fields', 'makery'); } else { if (!is_email($data['user_email'])) { ThemexInterface::$messages[] = __('Invalid email address', 'makery'); } else { if (email_exists($data['user_email'])) { ThemexInterface::$messages[] = __('This email is already in use', 'makery'); } } if (!validate_username($data['user_login']) || is_email($data['user_login']) || preg_match('/\\s/', $data['user_login'])) { ThemexInterface::$messages[] = __('Invalid character used in username', 'makery'); } else { if (username_exists($data['user_login'])) { ThemexInterface::$messages[] = __('This username is already taken', 'makery'); } } if (strlen($data['user_password']) < 4) { ThemexInterface::$messages[] = __('Password must be at least 4 characters long', 'makery'); } else { if (strlen($data['user_password']) > 16) { ThemexInterface::$messages[] = __('Password must be not more than 16 characters long', 'makery'); } else { if (preg_match("/^([a-zA-Z0-9@#-_\$%^&+=!?]{1,20})\$/", $data['user_password']) == 0) { ThemexInterface::$messages[] = __('Password contains invalid characters', 'makery'); } else { if ($data['user_password'] != $data['user_password_repeat']) { ThemexInterface::$messages[] = __('Passwords do not match', 'makery'); } } } } } if (empty(ThemexInterface::$messages)) { $user = wp_create_user($data['user_login'], $data['user_password'], $data['user_email']); $content = ThemexCore::getOption('email_registration', 'Hi, %username%! Welcome to ' . get_bloginfo('name') . '.'); wp_new_user_notification($user); $keywords = array('username' => $data['user_login'], 'password' => $data['user_password']); if (ThemexCore::checkOption('user_activation')) { ThemexInterface::$messages[] = __('Registration complete! Check your mailbox to activate the account', 'makery'); $subject = __('Account Confirmation', 'makery'); $activation_key = md5(uniqid(rand(), 1)); $user = new WP_User($user); $user->remove_role(get_option('default_role')); $user->add_role('inactive'); ThemexCore::updateUserMeta($user->ID, 'activation_key', $activation_key); if (strpos($content, '%link%') === false) { $content .= ' Click this link to activate your account %link%'; } $link = ThemexCore::getURL('register'); if (intval(substr($link, -1)) == 1) { $link .= '&'; } else { $link .= '?'; } $keywords['link'] = $link . 'activate=' . urlencode($activation_key) . '&user='******'default_role')); $object->add_role('contributor'); wp_signon($data, false); $subject = __('Registration Complete', 'makery'); ThemexInterface::$messages[] = '<a href="' . get_author_posts_url($user) . '" class="redirect"></a>'; } $content = themex_keywords($content, $keywords); themex_mail($data['user_email'], $subject, $content); ThemexInterface::renderMessages(true); } else { ThemexInterface::renderMessages(); } die; }
/** * Gets shipping settings * * @access public * @param int $ID * @return array */ public static function getShipping($ID) { $shipping = ThemexCore::getPostMeta($ID, 'shipping'); if (ThemexCore::checkOption('shop_shipping') || empty($shipping) || !is_array($shipping)) { $shipping = array('free_shipping' => array(), 'flat_rate' => array(), 'international_delivery' => array(), 'local_delivery' => array()); } return $shipping; }
/** * Sets affiliate * * @access public * @param string $login * @return void */ public static function setAffiliate($login) { $login = sanitize_user($login); if (!empty($login) && !ThemexCore::checkOption('shop_referrals')) { $user = get_user_by('login', $login); $affiliate = intval(themex_value(THEMEX_PREFIX . 'affiliate', $_COOKIE)); if ($user !== false && (empty($affiliate) || $user->ID != $affiliate)) { $expire = time() + 86400 * 10; setcookie(THEMEX_PREFIX . 'affiliate', $user->ID, $expire, COOKIEPATH, COOKIE_DOMAIN, false); $clicks = intval(ThemexCore::getUserMeta($user->ID, 'clicks')); ThemexCore::updateUserMeta($user->ID, 'clicks', $clicks + 1); } } }
</div> <?php if (ThemexForm::isActive('profile')) { ?> <table class="user-fields"> <?php ThemexForm::renderData('profile', array('edit' => false, 'before_title' => '<tr><th>', 'after_title' => '</th>', 'before_content' => '<td>', 'after_content' => '</td></tr>'), ThemexUser::$data['active_user']['profile']); ?> </table> <?php } ?> <?php echo ThemexUser::$data['active_user']['profile']['description']; ?> </div> <?php } ?> <?php if (!ThemexCore::checkOption('profile_courses') || ThemexUser::isProfile()) { ?> <?php get_sidebar('profile-right'); ?> <?php } ?> </div> <?php get_footer();
<ul> <li <?php if (get_query_var('author')) { ?> class="current"<?php } ?> ><a href="<?php echo ThemexUser::$data['user']['profile_url']; ?> "><?php _e('My Profile', 'academy'); ?> </a></li> <?php if (!ThemexCore::checkOption('profile_links')) { ?> <li <?php if (get_query_var('profile-links')) { ?> class="current"<?php } ?> ><a href="<?php echo ThemexCore::getURL('profile-links'); ?> "><?php _e('My Links', 'academy'); ?> </a></li> <?php
<ul> <?php if (!ThemexCore::checkOption('shop_sales')) { ?> <li> <span class="fa fa-tags"></span> <span><?php echo sprintf(_n('%d Sale', '%d Sales', ThemexShop::$data['sales'], 'makery'), ThemexShop::$data['sales']); ?> </span> </li> <?php } ?> <?php if (!ThemexCore::checkOption('shop_favorites')) { ?> <li> <span class="fa fa-heart"></span> <span><?php echo sprintf(_n('%d Admirer', '%d Admirers', ThemexShop::$data['admirers'], 'makery'), ThemexShop::$data['admirers']); ?> </span> </li> <?php } ?> </ul> </div> </div> </div>
?> <span class="fa fa-tags"></span> <span><?php echo sprintf(_n('%d Sale', '%d Sales', ThemexShop::$data['sales'], 'makery'), ThemexShop::$data['sales']); ?> </span> <?php } } } ?> </li> </ul> </div> <?php if (!ThemexCore::checkOption('shop_rating')) { ?> <div class="shop-rating" title="<?php echo sprintf(_n('%d Rating', '%d Ratings', ThemexShop::$data['ratings'], 'makery'), ThemexShop::$data['ratings']); ?> "> <div class="element-rating" data-score="<?php echo ThemexShop::$data['rating']; ?> "></div> </div> <?php } ?> </div> </div>
} ?> </ul> </div> </footer> <?php } ?> </div> <?php } else { ?> <div class="profile-preview sidebar-widget"> <div class="profile-image"> <?php if (get_query_var('shop-product') && !ThemexCore::checkOption('shop_multiple')) { ThemexWoo::$data['product'] = ThemexWoo::getProduct(get_query_var('shop-product')); ?> <div class="image-wrap"> <?php echo ThemexCore::getImage(themex_value('ID', ThemexWoo::$data['product']), 200, THEME_URI . 'images/product.png'); ?> </div> <?php if (!empty(ThemexWoo::$data['product'])) { ?> <div class="profile-upload"> <form action="" enctype="multipart/form-data" method="POST"> <label for="product_thumb" class="element-button square" title="<?php _e('Upload Image', 'makery'); ?>
echo ThemexWoo::getPrice(ThemexUser::$data['current']['profit']); ?> </td> </tr> <tr> <th><?php _e('Current Balance', 'makery'); ?> </th> <td><?php echo ThemexWoo::getPrice(ThemexUser::$data['current']['balance']); ?> </td> </tr> <?php if (!ThemexCore::checkOption('shop_multiple') && ThemexShop::$data['status'] == 'publish') { ?> <tr> <th><?php _e('Current Rate', 'makery'); ?> </th> <td><?php echo ThemexShop::filterRate(ThemexShop::$data['ID'], ThemexShop::$data['rate']); ?> %</td> </tr> <?php } $methods = array_flip(ThemexCore::getOption('withdrawal_methods', array('paypal', 'skrill', 'swift'))); $gateways = ThemexWoo::getPaymentMethods();
<div class="lesson-options"> <?php if (ThemexCourse::isMember()) { ?> <form action="<?php echo themex_url(); ?> " method="POST"> <?php if (ThemexLesson::$data['progress'] != 0) { ?> <?php if (!ThemexCore::checkOption('lesson_retake')) { ?> <a href="#" class="element-button finish-lesson submit-button"><?php _e('Mark Incomplete', 'academy'); ?> </a> <input type="hidden" name="lesson_action" value="uncomplete_lesson" /> <input type="hidden" name="course_action" value="uncomplete_course" /> <?php } ?> <?php } else { if (ThemexLesson::$data['prerequisite']['progress'] != 0) { ?> <?php if (is_singular('quiz')) { ?> <a href="#quiz_form" class="element-button submit-button"><span class="button-icon check"></span><?php
echo esc_attr(ThemexUser::$data['user']['profile']['signature']); ?> " /> </div> </td> </tr> <?php } ?> <?php ThemexForm::renderData('profile', array('edit' => true, 'placeholder' => false, 'before_title' => '<tr><th>', 'after_title' => '</th>', 'before_content' => '<td>', 'after_content' => '</td></tr>'), ThemexUser::$data['user']['profile']); ?> </tbody> </table> <?php if (!ThemexCore::checkOption('profile_description')) { ?> <?php ThemexInterface::renderEditor('description', ThemexUser::$data['user']['profile']['description']); ?> <?php } ?> <a href="#" class="element-button submit-button"><span class="button-icon save"></span><?php _e('Save Changes', 'academy'); ?> </a> <input type="hidden" name="user_action" value="update_profile" /> <input type="hidden" name="nonce" value="<?php echo wp_create_nonce(THEMEX_PREFIX . 'nonce'); ?>
<a href="<?php echo ThemexCore::getURL('register'); ?> " class="element-button square secondary" title="<?php _e('Ask a Question', 'makery'); ?> "><span class="fa fa-comment"></span></a> <?php } ?> <?php } ?> <div class="site-popups hidden"> <?php if (!ThemexCore::checkOption('product_questions')) { ?> <div id="contact_form_<?php echo $product->id; ?> "> <div class="site-popup medium"> <form class="site-form element-form" method="POST" action="<?php echo AJAX_URL; ?> "> <div class="field-wrap"> <input type="text" name="email" readonly="readonly" value="<?php echo esc_attr(ThemexUser::$data['current']['email']); ?> " />
?> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <?php if ($order['status'] == 'processing') { ?> <?php if (!ThemexCore::checkOption('order_note')) { ?> <div class="field-wrap"> <textarea name="order_note" id="order_note" cols="30" rows="5" placeholder="<?php _e('Order Note', 'makery'); ?> "></textarea> </div> <?php } ?> <a href="#" class="element-button element-submit primary"><?php _e('Complete Order', 'makery'); ?> </a> <input type="hidden" name="order_id" value="<?php
/** * Renders admin profile * * @access public * @param mixed $user * @return void */ public static function renderAdminProfile($user) { $profile = self::getProfile($user->ID, true); $out = '<table class="form-table themex-profile"><tbody>'; if (current_user_can('edit_users')) { $out .= '<tr><th><label for="avatar">' . __('Profile Photo', 'academy') . '</label></th>'; $out .= '<td><div class="themex-image-uploader">'; $out .= get_avatar($user->ID); $out .= ThemexInterface::renderOption(array('id' => 'avatar', 'type' => 'uploader', 'value' => '', 'wrap' => false)); $out .= '</div></td></tr>'; } if (!ThemexCore::checkOption('profile_signature')) { $out .= '<tr><th><label>' . __('Signature', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="signature" value="' . $profile['signature'] . '" />'; $out .= '</td></tr>'; } ob_start(); ThemexForm::renderData('profile', array('edit' => true, 'before_title' => '<tr><th><label>', 'after_title' => '</label></th>', 'before_content' => '<td>', 'after_content' => '</td></tr>'), $profile); $out .= ob_get_contents(); ob_end_clean(); $out .= '<tr><th><label>' . __('Profile Text', 'academy') . '</label></th><td>'; ob_start(); ThemexInterface::renderEditor('description', wpautop(get_user_meta($user->ID, 'description', true))); $out .= ob_get_contents(); ob_end_clean(); $out .= '</td></tr>'; if (!ThemexCore::checkOption('profile_links')) { $out .= '<tr><th><label>' . __('Facebook', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="facebook" value="' . $profile['facebook'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('Twitter', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="twitter" value="' . $profile['twitter'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('Google', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="google" value="' . $profile['google'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('Tumblr', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="tumblr" value="' . $profile['tumblr'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('LinkedIn', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="linkedin" value="' . $profile['linkedin'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('Flickr', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="flickr" value="' . $profile['flickr'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('YouTube', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="youtube" value="' . $profile['youtube'] . '" />'; $out .= '</td></tr>'; $out .= '<tr><th><label>' . __('Vimeo', 'academy') . '</label></th><td>'; $out .= '<input type="text" name="vimeo" value="' . $profile['vimeo'] . '" />'; $out .= '</td></tr>'; } $out .= '</tbody></table>'; echo $out; }
/** * Renders question answers * * @access public * @param int $ID * @param array $question * @return void */ public static function renderAnswers($ID, $question) { $out = '<ul>'; if (!empty($question['answers'])) { $question['ID'] = $ID; $visible = false; if (self::$data['progress'] != 0 && ThemexCore::checkOption('lesson_retake')) { $visible = true; } if ($question['type'] == 'string') { $answer = reset($question['answers']); $value = ''; if ($visible && !self::checkAnswer($question, $answer)) { $value = $answer['title']; } else { if (isset($_POST[$ID])) { $value = $_POST[$ID]; } } $class = ''; if ($visible) { $class = themex_flag(self::checkAnswer($question, $answer)); } $out .= '<li class="' . $class . '"><input type="text" name="' . $ID . '" value="' . $value . '" placeholder="' . __('Answer', 'academy') . '" /></li>'; } else { if (ThemexCore::checkOption('quiz_shuffle') && count($question['answers']) > 2) { $question['answers'] = themex_shuffle($question['answers']); } if ($question['type'] == 'multiple') { foreach ($question['answers'] as $key => $answer) { $answer['ID'] = $key; $title = do_shortcode($answer['title']); $checked = ''; if (isset($_POST[$ID]) && isset($_POST[$ID][$key])) { $checked = 'checked="checked"'; } $class = ''; if ($visible) { $class = themex_flag(self::checkAnswer($question, $answer)); } $out .= '<li class="' . $class . '"><input type="checkbox" name="' . $ID . '[' . $key . ']" id="' . $ID . '_' . $key . '" value="true" ' . $checked . ' />'; $out .= '<label for="' . $ID . '_' . $key . '">' . $title . '</label></li>'; } } else { foreach ($question['answers'] as $key => $answer) { $answer['ID'] = $key; $title = do_shortcode($answer['title']); $checked = ''; if (isset($_POST[$ID]) && $_POST[$ID] == $key) { $checked = 'checked="checked"'; } $class = ''; if ($visible) { $class = themex_flag(self::checkAnswer($question, $answer)); } $out .= '<li class="' . $class . '">'; $out .= '<input type="radio" name="' . $ID . '" id="' . $ID . '_' . $key . '" value="' . $key . '" ' . $checked . ' />'; $out .= '<label for="' . $ID . '_' . $key . '">' . $title . '</label></li>'; } } } } $out .= '</ul>'; echo $out; }
/** * Checks plugin activity * * @access public * @return bool */ public static function isActive() { if (ThemexCore::checkOption('facebook_login')) { return true; } return false; }
</a> </div> </div> <div class="author-details"> <h4 class="author-name"> <a href="<?php echo esc_url($author['links']['profile']['url']); ?> "> <?php echo $author['profile']['full_name']; ?> </a> </h4> <?php if (!empty($author['profile']['location']) && !ThemexCore::checkOption('profile_location')) { ?> <div class="shop-attributes"> <ul> <li> <span class="fa fa-map-marker"></span> <span><?php echo $author['profile']['location']; ?> </span> </li> </ul> </div> <?php } ?>
} ?> <?php if (!ThemexCore::checkOption('post_date')) { ?> <time class="post-date nomargin" datetime="<?php the_time('Y-m-d'); ?> "><?php the_time(get_option('date_format')); ?> </time> <?php } ?> <?php if (!ThemexCore::checkOption('post_author')) { ?> <div class="post-author"> <?php _e('by', 'academy'); ?> <?php the_author_posts_link(); ?> </div> <?php } ?> </footer> </div> </article>
?> <aside class="sidebar column fourcol"> <?php get_sidebar('lesson'); ?> </aside> <div class="column eightcol last"> <?php } else { ?> <div class="column eightcol lesson-content"> <?php } ?> <?php if (ThemexLesson::$data['prerequisite']['progress'] == 0 && ThemexLesson::$data['status'] != 'free' && ThemexCore::checkOption('lesson_hide') && !ThemexCourse::isAuthor()) { printf(__('Complete "%s" lesson before taking this lesson.', 'academy'), '<a href="' . get_permalink(ThemexLesson::$data['prerequisite']['ID']) . '">' . get_the_title(ThemexLesson::$data['prerequisite']['ID']) . '</a>'); } else { the_content(); comments_template('/questions.php'); } ?> </div> <?php if ($layout == 'right') { ?> <aside class="sidebar fourcol column last"> <?php get_sidebar('lesson'); ?> </aside>
?> </th> <td> <div class="element-select"> <span></span> <?php echo ThemexInterface::renderOption(array('id' => 'category', 'type' => 'select_category', 'taxonomy' => 'shop_category', 'value' => esc_attr(themex_array('category', $_GET)), 'wrap' => false)); ?> </div> </td> </tr> <?php } ?> <?php if (!ThemexCore::checkOption('profile_location')) { ?> <tr> <th><?php _e('Country', 'makery'); ?> </th> <td> <div class="element-select"> <span></span> <?php echo ThemexInterface::renderOption(array('id' => 'country', 'type' => 'select_country', 'attributes' => array('class' => 'countries-list'), 'value' => esc_attr(themex_array('country', $_GET)), 'wrap' => false)); ?> </div> </td> </tr>
</header> <?php if (!ThemexCore::checkOption('course_popularity') || !ThemexCore::checkOption('course_rating')) { ?> <footer class="course-footer clearfix"> <?php if (!ThemexCore::checkOption('course_popularity')) { ?> <div class="course-users left"> <?php echo ThemexCore::getPostMeta($post->ID, 'course_popularity', '0'); ?> </div> <?php } ?> <?php if (!ThemexCore::checkOption('course_rating')) { ?> <?php get_template_part('module', 'rating'); ?> <?php } ?> </footer> <?php } ?> </div> </div>
*/ 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> <th><?php _e('Membership', 'makery'); ?>