当前位置: 首页>>代码示例>>PHP>>正文


PHP um_profile_id函数代码示例

本文整理汇总了PHP中um_profile_id函数的典型用法代码示例。如果您正苦于以下问题:PHP um_profile_id函数的具体用法?PHP um_profile_id怎么用?PHP um_profile_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了um_profile_id函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: um_admin_user_actions_hook

function um_admin_user_actions_hook($actions)
{
    $actions = null;
    if (!um_user('super_admin')) {
        if (um_user('account_status') == 'awaiting_admin_review') {
            $actions['um_approve_membership'] = array('label' => __('Approve Membership', 'ultimatemember'));
            $actions['um_reject_membership'] = array('label' => __('Reject Membership', 'ultimatemember'));
        }
        if (um_user('account_status') == 'rejected') {
            $actions['um_approve_membership'] = array('label' => __('Approve Membership', 'ultimatemember'));
        }
        if (um_user('account_status') == 'approved') {
            $actions['um_put_as_pending'] = array('label' => __('Put as Pending Review', 'ultimatemember'));
        }
        if (um_user('account_status') == 'awaiting_email_confirmation') {
            $actions['um_resend_activation'] = array('label' => __('Resend Activation E-mail', 'ultimatemember'));
        }
        if (um_user('account_status') != 'inactive') {
            $actions['um_deactivate'] = array('label' => __('Deactivate this account', 'ultimatemember'));
        }
        if (um_user('account_status') == 'inactive') {
            $actions['um_reenable'] = array('label' => __('Reactivate this account', 'ultimatemember'));
        }
        if (um_current_user_can('delete', um_profile_id())) {
            $actions['um_delete'] = array('label' => __('Delete this user', 'ultimatemember'));
        }
    }
    if (current_user_can('delete_users')) {
        $actions['um_switch_user'] = array('label' => __('Login as this user', 'ultimatemember'));
    }
    um_fetch_user(um_profile_id());
    return $actions;
}
开发者ID:emaxees,项目名称:elpandecadadia,代码行数:33,代码来源:um-filters-user.php

示例2: bf_profile_tabs_content

function bf_profile_tabs_content($bf_um_form_slug)
{
    global $buddyforms, $bf_um_tabs, $bf_um_form_slug;
    $form_slug = $bf_um_tabs[$bf_um_form_slug];
    // Get the correct tab slug
    $parent_tab = bf_ultimate_member_parent_tab($buddyforms[$form_slug]);
    // Check if the ultimate member view is a form view and add the coret content
    if (isset($_GET['profiletab']) && $_GET['profiletab'] == $parent_tab) {
        if (!isset($_GET['subnav']) || $_GET['subnav'] == 'posts-' . $bf_um_form_slug) {
            // Display the posts
            echo do_shortcode('[buddyforms_the_loop form_slug="' . $form_slug . '" author="' . um_profile_id() . '"]');
        } else {
            // Create the arguments aray for the form to get displayed
            $args = array('form_slug' => $form_slug);
            // Add the post id if post edit
            if (isset($_GET['bf_post_id'])) {
                $args['post_id'] = $_GET['bf_post_id'];
            }
            // Add the revisionsid if needed
            if (isset($_GET['bf_rev_id'])) {
                $args['revision_id'] = $_GET['bf_rev_id'];
            }
            buddyforms_create_edit_form($args);
        }
    }
}
开发者ID:BuddyForms,项目名称:BuddyForms-Ultimate-Member,代码行数:26,代码来源:ultimate-member-extension.php

示例3: add_profile_tabs

 function add_profile_tabs($tabs)
 {
     global $ultimatemember;
     $args = array('post_type' => 'um_tab', 'meta_key' => '_pp_position', 'orderby' => 'meta_value_num', 'order' => 'ASC', 'posts_per_page' => 99);
     $posts = get_posts($args);
     $user_role = get_user_meta(get_current_user_id(), 'role', true);
     $profile_role = get_user_meta(um_profile_id(), 'role', true);
     foreach ($posts as $post) {
         $post_id = $post->ID;
         $meta = get_post_meta($post_id);
         $have_roles = array();
         $see_roles = array();
         $private_tab = isset($meta['_pp_private'][0]);
         if (isset($meta['_pp_have_roles'])) {
             $have_roles = maybe_unserialize($meta['_pp_have_roles'][0]);
         }
         if (isset($meta['_pp_view_roles'])) {
             $see_roles = maybe_unserialize($meta['_pp_view_roles'][0]);
         }
         $show = true;
         if (!empty($have_roles)) {
             if (!in_array($profile_role, $have_roles)) {
                 $show = false;
             }
         }
         if (!empty($see_roles)) {
             if (!in_array($user_role, $see_roles)) {
                 $show = false;
             }
         }
         if ($private_tab && um_profile_id() != get_current_user_id()) {
             $show = false;
         }
         if ($show) {
             $tabs[$post->post_name] = array('name' => $post->post_title, 'icon' => $meta['_pp_icon'][0], 'custom' => true);
         }
     }
     //loop
     return $tabs;
 }
开发者ID:plusplugins,项目名称:pp-tabs,代码行数:40,代码来源:core.php

示例4: save_skills_as_woocommerce_products

function save_skills_as_woocommerce_products()
{
    // echo '<pre>';
    // print_r($_POST);die;
    global $wpdb;
    $skillid = get_query_var('skillid');
    $user_id = um_profile_id();
    $display_name = um_user('display_name');
    $product_cat = get_term($_POST['skillCategory'], 'product_cat');
    if (isset($_POST['skillStatus'])) {
        switch ($_POST['skillStatus']) {
            case 0:
                $product_status = 'draft';
                break;
            case 1:
                $product_status = 'publish';
                break;
        }
    }
    $post = array('ID' => $skillid, 'post_author' => $user_id, 'post_content' => '', 'post_status' => $product_status, 'post_title' => $display_name . '-' . $product_cat->slug, 'post_parent' => '', 'post_type' => "product");
    $post_id = wp_insert_post($post);
    //add skill post.
    $logtxt = "PrdctID: {$post_id}\n";
    wp_set_object_terms($post_id, $product_cat->slug, 'product_cat');
    wp_set_object_terms($post_id, 'simple', 'product_type');
    $firstname = get_user_meta($user_id, 'first_name', true);
    $lastname = get_user_meta($user_id, 'last_name', true);
    $username = get_user_meta($user_id, 'username', true);
    $mobile = get_user_meta($user_id, 'mobile_number', true);
    $address = get_user_meta($user_id, 'address', true);
    $country = get_user_meta($user_id, 'countries', true);
    $state = get_user_meta($user_id, 'state', true);
    $city = get_user_meta($user_id, 'city', true);
    $zip = get_user_meta($user_id, 'zip_code', true);
    $compname = get_user_meta($user_id, 'company_name', true);
    $compurl = get_user_meta($user_id, 'Company_website', true);
    $background_check = get_user_meta($user_id, 'background_check_status', true);
    $license_check = '';
    $certification_check = '';
    $phone_messages = get_user_meta($user_id, 'allow_phone_message', true);
    $email_notifications = get_user_meta($user_id, 'allow_email_notification', true);
    $web_calls = get_user_meta($user_id, 'allow_web_call', true);
    $phone_calls = get_user_meta($user_id, 'allow_phone_call', true);
    $profile_status = get_user_meta($user_id, 'role', true) . '' . get_user_meta($user_id, 'account_status', true);
    $advisor_skill_count = count_user_posts($user_id, 'product');
    $current_date = date('my');
    $advisor_location = get_user_meta($user_id, 'user_location', true);
    //get advisor calender
    $calendar_id = $wpdb->get_var('SELECT id FROM quickqtscpabc_appointment_calendars WHERE conwer=' . $user_id);
    if (isset($skillid)) {
        $skills_id = $skillid;
    } else {
        $skills_id = $post_id;
    }
    //Store skill description from POST to variable.
    $skilldescription = trim($_POST['skillDesc']);
    $thedata = array('pa_first_name' => array('name' => 'pa_first_name', 'value' => $firstname, 'is_visible' => '1', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_last_name' => array('name' => 'pa_last_name', 'value' => $lastname, 'is_visible' => '1', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_email_address' => array('name' => 'pa_email_address', 'value' => $username, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_mobile_number' => array('name' => 'pa_mobile_number', 'value' => $mobile, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_full_address' => array('name' => 'pa_full_address', 'value' => $address, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_country' => array('name' => 'pa_country', 'value' => $country, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_state' => array('name' => 'pa_state', 'value' => $state, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_city' => array('name' => 'pa_city', 'value' => $city, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_zip' => array('name' => 'pa_zip', 'value' => $zip, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_company_name' => array('name' => 'pa_company_name', 'value' => $compname, 'is_visible' => '1', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_company_url' => array('name' => 'pa_company_url', 'value' => $compurl, 'is_visible' => '1', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_background-check' => array('name' => 'pa_background-check', 'value' => $background_check, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_license_check' => array('name' => 'pa_license_check', 'value' => $license_check, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_certification_check' => array('name' => 'pa_certification_check', 'value' => $certification_check, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_username' => array('name' => 'pa_username', 'value' => $username, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_skill_description' => array('name' => 'pa_skill_description', 'value' => $skilldescription, 'is_visible' => '1', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_skill_level' => array('name' => 'pa_skill_level', 'value' => $_POST['skillLevel'], 'is_visible' => '1', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_phone_messages' => array('name' => 'pa_phone_messages', 'value' => $phone_messages, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_email_notifications' => array('name' => 'pa_email_notifications', 'value' => $email_notifications, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_web_calls' => array('name' => 'pa_web_calls', 'value' => $web_calls, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_phone_calls' => array('name' => 'pa_phone_calls', 'value' => $phone_calls, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_profile_status' => array('name' => 'pa_profile_status', 'value' => $profile_status, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_user_id' => array('name' => 'pa_user_id', 'value' => $user_id, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_calendar_id' => array('name' => 'pa_calendar_id', 'value' => $calendar_id, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_skills_id' => array('name' => 'pa_skills_id', 'value' => $skills_id, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'), 'pa_advisor_location' => array('name' => 'pa_advisor_location', 'value' => $advisor_location, 'is_visible' => '0', 'is_variation' => '1', 'is_taxonomy' => '1'));
    update_post_meta($post_id, '_product_attributes', $thedata);
    $firstname_termexist = term_exists($firstname, 'pa_first_name');
    //Check if term exists.
    if ($firstname_termexist == 0 && $firstname_termexist == null) {
        //if term not exists
        $first_name_termid = wp_insert_term($firstname, 'pa_first_name');
        //insert term
        wp_set_object_terms($post_id, $first_name_termid, 'pa_first_name');
        //Set skill term
    } else {
        $first_name_termid = get_term_by('name', $firstname, 'pa_first_name');
        wp_set_object_terms($post_id, $first_name_termid->term_id, 'pa_first_name');
    }
    $lastname_termexist = term_exists($lastname, 'pa_last_name');
    //Check if term exists.
    if ($lastname_termexist == 0 && $lastname_termexist == null) {
        //if term not exists
        $last_name_termid = wp_insert_term($lastname, 'pa_last_name');
        //insert term
        wp_set_object_terms($post_id, $last_name_termid, 'pa_last_name');
        //Set skill term
    } else {
        $last_name_termid = get_term_by('name', $lastname, 'pa_last_name');
        wp_set_object_terms($post_id, $last_name_termid->term_id, 'pa_last_name');
    }
    $username_termexist = term_exists($username, 'pa_email_address');
    //Check if term exists.
    if ($username_termexist == 0 && $username_termexist == null) {
        //if term not exists
        $email_address_termid = wp_insert_term($username, 'pa_email_address');
        //insert term
        wp_set_object_terms($post_id, $email_address_termid, 'pa_email_address');
        //Set skill term
    } else {
        $email_address_termid = get_term_by('name', $username, 'pa_email_address');
        wp_set_object_terms($post_id, $email_address_termid->term_id, 'pa_email_address');
    }
    $mobile_termexist = term_exists($mobile, 'pa_mobile_number');
    //Check if term exists.
    if ($mobile_termexist == 0 && $mobile_termexist == null) {
        //if term not exists
        $mobile_number_termid = wp_insert_term($mobile, 'pa_mobile_number');
        //insert term
//.........这里部分代码省略.........
开发者ID:KKRTEAM,项目名称:cis_admq,代码行数:101,代码来源:functions.php

示例5: view_field

    function view_field($key, $data, $rule = false)
    {
        global $ultimatemember;
        $output = null;
        // get whole field data
        if (is_array($data)) {
            $data = $this->get_field($key);
            extract($data);
        }
        if (!isset($data['type'])) {
            return;
        }
        if (isset($data['in_group']) && $data['in_group'] != '' && $rule != 'group') {
            return;
        }
        if ($visibility == 'edit') {
            return;
        }
        if (in_array($type, array('block', 'shortcode', 'spacing', 'divider', 'group'))) {
        } else {
            if (!$this->field_value($key, $default, $data)) {
                return;
            }
        }
        if (!um_can_view_field($data)) {
            return;
        }
        // disable these fields in profile view only
        if (in_array($key, array('user_password')) && $this->set_mode == 'profile') {
            return;
        }
        if (!um_field_conditions_are_met($data)) {
            return;
        }
        switch ($type) {
            /* Default */
            default:
                $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="' . $key . '">';
                if (isset($data['label'])) {
                    $output .= $this->field_label($label, $key, $data);
                }
                $res = stripslashes($this->field_value($key, $default, $data));
                $output .= '<div class="um-field-area">';
                $output .= '<div class="um-field-value">' . $res . '</div>';
                $output .= '</div>';
                $output .= '</div>';
                break;
                /* HTML */
            /* HTML */
            case 'block':
                $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="' . $key . '">
								<div class="um-field-block">' . $content . '</div>
							</div>';
                break;
                /* Shortcode */
            /* Shortcode */
            case 'shortcode':
                $content = str_replace('{profile_id}', um_profile_id(), $content);
                $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="' . $key . '">
								<div class="um-field-shortcode">' . do_shortcode($content) . '</div>
							</div>';
                break;
                /* Gap/Space */
            /* Gap/Space */
            case 'spacing':
                $output .= '<div class="um-field um-field-spacing' . $classes . '"' . $conditional . ' style="height: ' . $spacing . '"></div>';
                break;
                /* A line divider */
            /* A line divider */
            case 'divider':
                $output .= '<div class="um-field um-field-divider' . $classes . '"' . $conditional . ' style="border-bottom: ' . $borderwidth . 'px ' . $borderstyle . ' ' . $bordercolor . '">';
                if ($divider_text) {
                    $output .= '<div class="um-field-divider-text"><span>' . $divider_text . '</span></div>';
                }
                $output .= '</div>';
                break;
                /* Rating */
            /* Rating */
            case 'rating':
                $output .= '<div class="um-field' . $classes . '"' . $conditional . ' data-key="' . $key . '">';
                if (isset($data['label'])) {
                    $output .= $this->field_label($label, $key, $data);
                }
                $output .= '<div class="um-field-area">';
                $output .= '<div class="um-field-value">
										<div class="um-rating-readonly um-raty" id="' . $key . '" data-key="' . $key . '" data-number="' . $data['number'] . '" data-score="' . $this->field_value($key, $default, $data) . '"></div>
									</div>';
                $output .= '</div>';
                $output .= '</div>';
                break;
        }
        // Custom filter for field output
        if (isset($this->set_mode)) {
            $output = apply_filters("um_{$key}_form_show_field", $output, $this->set_mode);
        }
        return $output;
    }
开发者ID:Ksajikyan,项目名称:poiskuslug,代码行数:97,代码来源:um-fields.php

示例6: get_admin_actions

 function get_admin_actions()
 {
     $items = '';
     $actions = array();
     $actions = apply_filters('um_admin_user_actions_hook', $actions);
     if (!isset($actions) || empty($actions)) {
         return false;
     }
     foreach ($actions as $id => $arr) {
         $url = add_query_arg('um_action', $id);
         $url = add_query_arg('uid', um_profile_id(), $url);
         $items[] = '<a href="' . $url . '" class="real_url">' . $arr['label'] . '</a>';
     }
     return $items;
 }
开发者ID:TeamSubjectMatter,项目名称:juddfoundation,代码行数:15,代码来源:um-user.php

示例7: um_user

    if ($ultimatemember->shortcodes->loop->found_posts >= 10) {
        ?>
		
		<div class="um-load-items">
			<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_posts" data-args="post,10,10,<?php 
        echo um_user('ID');
        ?>
"><?php 
        _e('load more posts', 'ultimatemember');
        ?>
</a>
		</div>
		
		<?php 
    }
    ?>
		
	</div>
		
<?php 
} else {
    ?>

	<div class="um-profile-note"><span><?php 
    echo um_profile_id() == get_current_user_id() ? __('You have not created any posts.', 'ultimatemember') : __('This user has not created any posts.', 'ultimatemember');
    ?>
</span></div>
	
<?php 
}
wp_reset_postdata();
开发者ID:TeamSubjectMatter,项目名称:juddfoundation,代码行数:31,代码来源:posts.php

示例8: load

 function load($args)
 {
     global $ultimatemember;
     ob_start();
     $defaults = array();
     $args = wp_parse_args($args, $defaults);
     // when to not continue
     $this->form_id = isset($args['form_id']) ? $args['form_id'] : null;
     if (!$this->form_id) {
         return;
     }
     $this->form_status = get_post_status($this->form_id);
     if ($this->form_status != 'publish') {
         return;
     }
     // get data into one global array
     $post_data = $ultimatemember->query->post_data($this->form_id);
     $args = apply_filters('um_pre_args_setup', $post_data);
     if (!isset($args['template'])) {
         $args['template'] = '';
     }
     if (isset($post_data['template']) && $post_data['template'] != $args['template']) {
         $args['template'] = $post_data['template'];
     }
     if (!$this->template_exists($args['template'])) {
         $args['template'] = $post_data['mode'];
     }
     if (!isset($post_data['template'])) {
         $post_data['template'] = $post_data['mode'];
     }
     $args = array_merge($post_data, $args);
     if (isset($args['use_globals']) && $args['use_globals'] == 1) {
         $args = array_merge($args, $this->get_css_args($args));
     } else {
         $args = array_merge($this->get_css_args($args), $args);
     }
     // filter for arguments
     $args = apply_filters('um_shortcode_args_filter', $args);
     extract($args, EXTR_SKIP);
     // for profiles only
     if ($mode == 'profile' && um_profile_id() && isset($args['role']) && $args['role'] && $args['role'] != $ultimatemember->query->get_role_by_userid(um_profile_id())) {
         return;
     }
     // start loading the template here
     do_action("um_pre_{$mode}_shortcode", $args);
     do_action("um_before_form_is_loaded", $args);
     do_action("um_before_{$mode}_form_is_loaded", $args);
     $this->template_load($template, $args);
     $this->dynamic_css($args);
     if (um_get_requested_user() || $mode == 'logout') {
         um_reset_user();
     }
     do_action('um_after_everything_output');
     $output = ob_get_contents();
     ob_end_clean();
     return $output;
 }
开发者ID:dracudakid,项目名称:WP_TrungTamTinHoc,代码行数:57,代码来源:um-shortcodes.php

示例9: wp_ulike_comments_um_profile_content

    function wp_ulike_comments_um_profile_content($args)
    {
        global $wp_ulike_class, $ultimatemember;
        $args = array("user_id" => um_profile_id(), "col" => 'comment_id', "table" => 'ulike_comments', "limit" => 10);
        $user_logs = $wp_ulike_class->get_current_user_likes($args);
        if ($user_logs != null) {
            echo '<div class="um-profile-note"><span>' . __('Recent Comments Liked', 'alimir') . '</span></div>';
            foreach ($user_logs as $user_log) {
                $comment = get_comment(stripslashes($user_log->comment_id));
                $get_date = $user_log->date_time;
                echo '<div class="um-item">';
                echo '<div class="um-item-link">
						  <i class="um-icon-ios-chatboxes"></i>
						  <a href="' . get_comment_link($comment->comment_ID) . '">' . $comment->comment_content . '</a>
						  <em style="font-size:.7em;padding:0 10px;"><span class="um-faicon-quote-left"></span> ' . $comment->comment_author . ' <span class="um-faicon-quote-right"></span></em>
						  </div>';
                echo '<div class="um-item-meta">
						  <span>' . wp_ulike_date_i18n($get_date) . '</span>
						  <span class="badge"><i class="um-faicon-thumbs-o-up"></i> ' . get_comment_meta($comment->comment_ID, '_commentliked', true) . '</span>
						  </div>';
                echo '</div>';
            }
        } else {
            echo '<div style="display: block;" class="um-profile-note"><i class="um-faicon-frown-o"></i><span>' . __('This user has not made any likes.', 'alimir') . '</span></div>';
        }
    }
开发者ID:hyperweb2,项目名称:wp-ulike,代码行数:26,代码来源:wp-functions.php

示例10: um_add_edit_icon

function um_add_edit_icon($args)
{
    global $ultimatemember;
    $output = '';
    if (!is_user_logged_in()) {
        return;
    }
    // not allowed for guests
    if (isset($ultimatemember->user->cannot_edit) && $ultimatemember->user->cannot_edit == 1) {
        return;
    }
    // do not proceed if user cannot edit
    if ($ultimatemember->fields->editing == true) {
        ?>

		<div class="um-profile-edit um-profile-headericon">

			<a href="#" class="um-profile-edit-a um-profile-save"><i class="um-faicon-check"></i></a>

		</div>

		<?php 
    } else {
        ?>

		<div class="um-profile-edit um-profile-headericon">

			<a href="#" class="um-profile-edit-a"><i class="um-faicon-cog"></i></a>

			<?php 
        $items = array('editprofile' => '<a href="' . um_edit_profile_url() . '" class="real_url">' . __('Edit Profile', 'ultimatemember') . '</a>', 'myaccount' => '<a href="' . um_get_core_page('account') . '" class="real_url">' . __('My Account', 'ultimatemember') . '</a>', 'logout' => '<a href="' . um_get_core_page('logout') . '" class="real_url">' . __('Logout', 'ultimatemember') . '</a>', 'cancel' => '<a href="#" class="um-dropdown-hide">' . __('Cancel', 'ultimatemember') . '</a>');
        $cancel = $items['cancel'];
        if (!um_is_myprofile()) {
            $actions = $ultimatemember->user->get_admin_actions();
            unset($items['myaccount']);
            unset($items['logout']);
            unset($items['cancel']);
            if (is_array($actions)) {
                $items = array_merge($items, $actions);
            }
            $items = apply_filters('um_profile_edit_menu_items', $items, um_profile_id());
            $items['cancel'] = $cancel;
        } else {
            $items = apply_filters('um_myprofile_edit_menu_items', $items);
        }
        echo $ultimatemember->menu->new_ui($args['header_menu'], 'div.um-profile-edit', 'click', $items);
        ?>

		</div>

		<?php 
    }
}
开发者ID:TeamSubjectMatter,项目名称:juddfoundation,代码行数:53,代码来源:um-actions-profile.php

示例11: um_user

		
		<div class="um-load-items">
			<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="comment,10,10,<?php 
        echo um_user('ID');
        ?>
"><?php 
        _e('load more comments', 'ultimatemember');
        ?>
</a>
		</div>
		
		<?php 
    }
    ?>

		
	</div>
		
<?php 
} else {
    ?>


	<div class="um-profile-note"><span><?php 
    echo um_profile_id() == get_current_user_id() ? __('You have not made any comments.', 'ultimatemember') : __('This user has not made any comments.', 'ultimatemember');
    ?>
</span></div>
	
<?php 
}
开发者ID:Makenrro,项目名称:repos,代码行数:29,代码来源:comments.php

示例12: um_profile_content_deals_default

function um_profile_content_deals_default($args)
{
    global $ultimatemember;
    $user_deals = $ultimatemember->query->make('post_type=deal&posts_per_page=10&offset=0&author=' . um_profile_id());
    if ($user_deals->have_posts()) {
        ?>

	<div class="isotope-wrapper" data-isotope-cols="4" data-isotope-gutter="30">
		
		<?php 
        while ($user_deals->have_posts()) {
            $user_deals->the_post();
            ?>
			<div class="deal-item-wrapper">
				<?php 
            get_template_part('loop/content', 'deal');
            ?>
			</div>
				
		<?php 
        }
        ?>

	</div><!-- end isotope-wrapper -->
	<?php 
    }
}
开发者ID:chrisuehlein,项目名称:couponsite,代码行数:27,代码来源:hooks-um.php

示例13: um_user

    if ($ultimatemember->shortcodes->loop->found_posts >= 10) {
        ?>
		
		<div class="um-load-items">
			<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_posts" data-args="post,10,10,<?php 
        echo um_user('ID');
        ?>
"><?php 
        _e('load more posts', 'ultimatemember');
        ?>
</a>
		</div>
		
		<?php 
    }
    ?>
		
	</div>
		
<?php 
} else {
    ?>

	<div class="um-icon-ios-paper-outline"> <span><?php 
    echo um_profile_id() == get_current_user_id() ? __('Todavía no has creado ninguna clase.  <a href=https://escuelamlm.com/escritorio/post-new.php>Crea una ahora.</a>', 'ultimatemember') : __('Este miembro todavía no ha creado ninguna clase. ¿Quieres crear una clase? <a href=https://escuelamlm.com?ref=perfil-clases>Registra tu cuenta y empieza.</a> ', 'ultimatemember');
    ?>
</span></div>
	
<?php 
}
wp_reset_postdata();
开发者ID:ioniacob,项目名称:EscuelaMLM,代码行数:31,代码来源:posts.php

示例14: fw_ssd_get_option

<?php

// Admin Send Deal Mail
$email_to = fw_ssd_get_option('new-deal-email');
// Allow deal submit without registration
$allow_no_reg = fw_ssd_get_option('member-submit-switch');
if (function_exists('um_profile_id') || $allow_no_reg) {
    if (function_exists('um_profile_id') && !um_profile_id()) {
        wp_redirect(home_url('login/'));
        exit;
    }
    if ($email_to) {
        acf_form_head();
    }
    /* Template Name: Submit Deal */
    get_header();
    ?>


<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('page-wrapper');
    ?>
>

	<div class="container">

		<div class="row">
开发者ID:chrisuehlein,项目名称:couponsite,代码行数:30,代码来源:template-submit-deal.php

示例15: get_phone_messages_details

function get_phone_messages_details()
{
    $calldetails[] = '';
    $user_id = um_profile_id();
    $mobile_number = get_user_meta($user_id, 'mobile_number', true);
    //echo $mobile_number."<br/>";
    $myoptions = get_option('twilio_settings');
    $AccountSid = $myoptions['twilio_account_sid'];
    $AuthToken = $myoptions['twilio_auth_token'];
    //$appSid = "AP3474e136f42acf5fcc40d20c64d78d12";
    $callerID = $myoptions['twilio_app_twilionumber'];
    $http = new Services_Twilio_TinyHttp('https://api.twilio.com', array('curlopts' => array(CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2)));
    $client = new Services_Twilio($AccountSid, $AuthToken, "2010-04-01", $http);
    $messages = $client->account->messages->getIterator(0, 50, array('From' => $callerID));
    $html = "<h1>My Phone Messages</h1><br><table class='footable'>";
    $html .= "<thead><th>Date-Time</th></th><th>Message From</th><th>Message To</th><th>Credit Used</th><th>Status</th></thead>";
    $html .= "<tbody>";
    foreach ($messages as $message) {
        if ($message->price == "") {
            $message = 0;
        } else {
            $price = $message->price;
        }
        $html .= "<tr><td>" . $message->date_sent . "</td><td>" . $message->from . "</td><td>" . $message->to . "</td>" . "<td>" . $price . "&nbsp" . '0.5 Credits' . "</td><td>" . $message->status . "</td></tr>";
    }
    $html .= "</tbody>";
    $html .= "</table>";
    echo $html;
}
开发者ID:KKRTEAM,项目名称:cis_admq,代码行数:29,代码来源:twilioapi.php


注:本文中的um_profile_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。