• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP espresso_user_meta函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: event_espresso_edit_list


//.........这里部分代码省略.........
</td>

							<td class="author"><?php 
            echo event_date_display($start_date, get_option('date_format'));
            ?>
</td>

							<td class="author"><?php 
            echo event_espresso_get_time($event_id, 'start_time');
            ?>
</td>

							<td class="date"><?php 
            echo $dow;
            ?>
</td>

							<td class="date"><?php 
            echo event_date_display($registration_start, get_option('date_format'));
            ?>
 <br />
								<?php 
            echo $registration_startT;
            ?>
</td>

							<td class="date"><?php 
            echo $status['display'];
            ?>
</td>

							<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
                $user_company = espresso_user_meta($wp_user, 'company') != '' ? espresso_user_meta($wp_user, 'company') : '';
                $user_organization = espresso_user_meta($wp_user, 'organization') != '' ? espresso_user_meta($wp_user, 'organization') : '';
                $user_co_org = $user_company != '' ? $user_company : $user_organization;
                ?>
								<td class="date"><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
                ?>
									<?php 
                echo $user_co_org != '' ? '<br />[' . espresso_user_meta($wp_user, 'company') . ']' : '';
                ?>
								</td>
							<?php 
            }
            ?>

							<td class="author"><a href="admin.php?page=events&amp;event_admin_reports=list_attendee_payments&amp;event_id=<?php 
            echo $event_id;
            ?>
"><?php 
            echo get_number_of_attendees_reg_limit($event_id, 'num_attendees_slash_reg_limit');
            ?>
</a></td>
							<td class="date"><div style="width:180px;"><a href="<?php 
            echo espresso_reg_url($event_id);
            ?>
" title="<?php 
            _e('View Event', 'event_espresso');
            ?>
" target="_blank"><div class="view_btn"></div></a>

									<a href="admin.php?page=events&amp;action=edit&amp;event_id=<?php 
            echo $event_id;
            ?>
开发者ID:sriram911,项目名称:pls,代码行数:67,代码来源:event_list.php


示例2: edit_event


//.........这里部分代码省略.........
    ?>
: <?php 
    echo get_number_of_attendees_reg_limit($event_id, 'num_attendees_slash_reg_limit');
    ?>
 </div>
						<div class="misc-pub-section <?php 
    echo function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true ? '' : 'misc-pub-section-last';
    ?>
" id="visibility2"> <a href="admin.php?page=events&amp;event_admin_reports=event_newsletter&amp;event_id=<?php 
    echo $event_id;
    ?>
" title="<?php 
    _e('Email Event Attendees', 'event_espresso');
    ?>
"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
images/icons/email_go.png" width="16" height="16" alt="<?php 
    _e('Newsletter', 'event_espresso');
    ?>
" /></a> <a href="admin.php?page=events&amp;event_admin_reports=event_newsletter&amp;event_id=<?php 
    echo $event_id;
    ?>
" title="<?php 
    _e('Email Event Attendees', 'event_espresso');
    ?>
">
						<?php 
    _e('Email Event Attendees', 'event_espresso');
    ?>
							</a></div>
						<?php 
    if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
        $user_name = espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
        $user_company = espresso_user_meta($wp_user, 'company') != '' ? espresso_user_meta($wp_user, 'company') : '';
        $user_organization = espresso_user_meta($wp_user, 'organization') != '' ? espresso_user_meta($wp_user, 'organization') : '';
        $user_co_org = $user_company != '' ? $user_company : $user_organization;
        echo '<div class="misc-pub-section misc-pub-section-last" id="visibility3">';
        echo '<ul>';
        echo '<li><strong>' . __('Submitted By:', 'event_espresso') . '</strong> ' . $user_name . '</li>';
        echo '<li><strong>' . __('Email:', 'event_espresso') . '</strong> ' . espresso_user_meta($wp_user, 'user_email') . '</li>';
        echo $user_co_org != '' ? '<li><strong>' . __('Organization:', 'event_espresso') . '</strong> ' . espresso_user_meta($wp_user, 'company') . '</li>' : '';
        echo '<li><strong>' . __('Date Submitted:', 'event_espresso') . '</strong> ' . $date_submitted . '</li>';
        echo '</ul>';
        echo '</div>';
    }
    ?>
					</div>
					<!-- /misc-publishing-actions -->
				</div>
				<!-- /minor-publishing -->

				<div id="major-publishing-actions" class="clearfix">
							<?php 
    if ($recurrence_id > 0) {
        ?>
						<div id="delete-action"> &nbsp; <a class="submitdelete deletion" href="admin.php?page=events&amp;action=delete_recurrence_series&recurrence_id=<?php 
        echo $recurrence_id;
        ?>
" onclick="return confirm('<?php 
        _e('Are you sure you want to delete ' . $event_name . '?', 'event_espresso');
        ?>
')">
						<?php 
        _e('Delete all events in this series', 'event_espresso');
        ?>
开发者ID:HandsomeDogStudio,项目名称:peanutbutterplan,代码行数:67,代码来源:edit_event.php


示例3: event_espresso_edit_list


//.........这里部分代码省略.........
						
							</td>

							<td class="date"><?php 
            echo $dow;
            ?>
</td>

							<td class="author"><?php 
            echo event_date_display($start_date, get_option('date_format'));
            ?>
</td>

							<td class="author"><?php 
            echo date(get_option('time_format'), strtotime($start_time));
            ?>
</td>

							<td class="date"><?php 
            echo event_date_display($registration_start, get_option('date_format'));
            ?>
 @ <?php 
            echo date(get_option('time_format'), strtotime($registration_startT));
            ?>
</td>

							<td class="date"><?php 
            echo $status['display'];
            ?>
</td>

							<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
                $user_company = espresso_user_meta($wp_user, 'company') != '' ? espresso_user_meta($wp_user, 'company') : '';
                $user_organization = espresso_user_meta($wp_user, 'organization') != '' ? espresso_user_meta($wp_user, 'organization') : '';
                $user_co_org = $user_company != '' ? $user_company : $user_organization;
                ?>
								<td class="date"><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
                ?>
				<?php 
                echo $user_co_org != '' ? '<br />[' . espresso_user_meta($wp_user, 'company') . ']' : '';
                ?>
								</td>
			<?php 
            }
            ?>

							<td class="author">
								<?php 
            $attendees_url = add_query_arg(array('event_admin_reports' => 'list_attendee_payments', 'event_id' => $event_id, 'event_status' => $event->event_status), EVT_ADMIN_URL);
            ?>
								<a href="<?php 
            echo $attendees_url;
            ?>
"><?php 
            echo $num_attendees . '/' . $reg_limit;
            ?>
</a>
							</td>
							
							<td class="date">
								<div style="width:180px;">
								
									<a href="<?php 
            echo espresso_reg_url($event_id);
开发者ID:HandsomeDogStudio,项目名称:peanutbutterplan,代码行数:67,代码来源:event_list.php


示例4: espresso_event_export


//.........这里部分代码省略.........
     }
     if (isset($_REQUEST['today']) && $_REQUEST['today'] == 'true') {
         $sql .= " AND start_date = '" . $curdate . "' ";
     }
     if (isset($_REQUEST['this_month']) && $_REQUEST['this_month'] == 'true') {
         $sql .= " AND start_date BETWEEN '" . date('Y-m-d', strtotime($this_year_r . '-' . $this_month_r . '-01')) . "' AND '" . date('Y-m-d', strtotime($this_year_r . '-' . $this_month_r . '-' . $days_this_month)) . "' ";
     }
     if (function_exists('espresso_member_data') && (espresso_member_data('role') == 'espresso_event_manager' || espresso_member_data('role') == 'espresso_group_admin')) {
         $sql .= " AND wp_user = '" . espresso_member_data('id') . "' ";
     }
     $sql .= ") ORDER BY start_date = '0000-00-00' ASC, start_date ASC, event_name ASC";
     ob_start();
     //echo $sql;
     $today = date("Y-m-d-Hi", time());
     $filename = $_REQUEST['all_events'] == "true" ? __('all-events', 'event_espresso') : sanitize_title_with_dashes($event_name);
     $filename = $filename . "-" . $today;
     switch ($_REQUEST['type']) {
         case "csv":
             $st = "";
             $et = ",";
             $s = $et . $st;
             header("Content-type: application/x-msdownload");
             header("Content-Disposition: attachment; filename=" . $filename . ".csv");
             header("Pragma: no-cache");
             header("Expires: 0");
             echo implode($s, $htables) . "\r\n";
             break;
         default:
             $st = "";
             $et = "\t";
             $s = $et . $st;
             header("Content-Disposition: attachment; filename=" . $filename . ".xls");
             header("Content-Type: application/vnd.ms-excel");
             header("Pragma: no-cache");
             header("Expires: 0");
             echo implode($s, $htables) . $et . "\r\n";
             break;
     }
     $events = $wpdb->get_results($sql);
     foreach ($events as $event) {
         $event_id = $event->event_id;
         $event_name = stripslashes_deep($event->event_name);
         $event_identifier = stripslashes_deep($event->event_identifier);
         $reg_limit = $event->reg_limit;
         $registration_start = $event->registration_start;
         $start_date = event_date_display($event->start_date, 'Y-m-d');
         $end_date = event_date_display($event->end_date, 'Y-m-d');
         $is_active = $event->is_active;
         $status = array();
         $status = event_espresso_get_is_active($event_id);
         $recurrence_id = $event->recurrence_id;
         $registration_startT = $event->registration_startT;
         //Venue variables
         if (isset($org_options['use_venue_manager']) && $org_options['use_venue_manager'] == 'Y') {
             //$data = new stdClass;
             //$data->event->venue_meta = unserialize($event->venue_meta);
             //Debug
             //echo "<pre>".print_r($data->event->venue_meta,true)."</pre>";
             $venue_title = $event->venue_name;
             /*$data->event->venue_url = $data->event->venue_meta['website'];
             		$data->event->venue_phone = $data->event->venue_meta['phone'];
             		$data->event->venue_image = '<img src="'.$data->event->venue_meta['image'].'" />';
             		$data->event->address = $data->event->venue_address;
             		$data->event->address2 = $data->event->venue_address2;
             		$data->event->city = $data->event->venue_city;
             		$data->event->state = $data->event->venue_state;
             		$data->event->zip = $data->event->venue_zip;
             		$data->event->country = $data->event->venue_country;*/
         } else {
             $venue_title = $event->venue_title;
             /*$event_address = $event->address;
             		$event_address2 = $event->address2;
             		$event_city = $event->city;
             		$event_state = $event->state;
             		$event_zip = $event->zip;
             		$event_country = $event->country;
             		$event_phone = $event->phone;*/
         }
         $wp_user = $event->wp_user;
         //$location = ($event_address != '' ? $event_address :'') . ($event_address2 != '' ? '<br />' . $event_address2 :'') . ($event_city != '' ? '<br />' . $event_city :'') . ($event_state != '' ? ', ' . $event_state :'') . ($event_zip != '' ? '<br />' . $event_zip :'') . ($event_country != '' ? '<br />' . $event_country :'');
         $dow = date("D", strtotime($start_date));
         echo $event_id . $s . $event_name . $s . $venue_title . $s . $start_date . $s . event_espresso_get_time($event_id, 'start_time') . $s . $dow . $s . str_replace(',', ' ', event_date_display($registration_start, get_option('date_format')));
         // ticket 570
         if (function_exists('espresso_is_admin') && espresso_is_admin() == true && (isset($espresso_premium) && $espresso_premium == true)) {
             $user_company = espresso_user_meta($wp_user, 'company') != '' ? espresso_user_meta($wp_user, 'company') : '';
             $user_organization = espresso_user_meta($wp_user, 'organization') != '' ? espresso_user_meta($wp_user, 'organization') : '';
             $user_co_org = $user_company != '' ? $user_company : $user_organization;
             echo $s . (espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name'));
         }
         echo $s . strip_tags($status['display']) . $s . str_replace('/', ' of ', get_number_of_attendees_reg_limit($event_id, 'num_attendees_slash_reg_limit'));
         switch ($_REQUEST['type']) {
             case "csv":
                 echo "\r\n";
                 break;
             default:
                 echo $et . "\r\n";
                 break;
         }
     }
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:101,代码来源:export.php


示例5: espresso_promocodes_format_for_jquery_datatables

/**
 * Formats wpdb results from query to the EVENTS_DISCOUNT_CODES_TABLE for use in a jquery data table
 * @param array $wpdb_result_objects results from $wpdb->get_results($query);
 * @return array formatted for jquery datatables row entries
 */
function espresso_promocodes_format_for_jquery_datatables($wpdb_result_objects)
{
    $prepared_results = array();
    foreach ($wpdb_result_objects as $result_object) {
        $jquery_datatables_row = array();
        $jquery_datatables_row[] = $checkbox_html = "<input name='checkbox[{$result_object->id}]' type='checkbox'  title='Delete {$result_object->coupon_code}'>";
        $jquery_datatables_row[] = $id_html = $result_object->id;
        $jquery_datatables_row[] = $name_html = "<strong><a href='admin.php?page=discounts&amp;action=edit&amp;discount_id={$result_object->id}'>{$result_object->coupon_code}</a></strong>" . "<div class='row-actions'><span class='edit'><a href='admin.php?page=discounts&action=edit&amp;discount_id={$result_object->id}'>" . __('Edit', 'event_espresso') . "</a> | </span><span class='delete'><a onclick='return confirmDelete();' class='submitdelete' href='admin.php?page=discounts&action=delete_discount&discount_id={$result_object->id}'>" . __("Delete", "event_espresso") . "</a></span></div>";
        if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
            $jquery_datatables_row[] = espresso_user_meta($result_object->wp_user, 'user_firstname') != '' ? espresso_user_meta($result_object->wp_user, 'user_firstname') . ' ' . espresso_user_meta($result_object->wp_user, 'user_lastname') : espresso_user_meta($result_object->wp_user, 'display_name');
        }
        $jquery_datatables_row[] = $result_object->coupon_code_price;
        $jquery_datatables_row[] = $result_object->use_percentage;
        $jquery_datatables_row[] = $result_object->apply_to_all ? 'Y' : 'N';
        $prepared_results[] = $jquery_datatables_row;
    }
    return $prepared_results;
}
开发者ID:hhgr,项目名称:uksoccer,代码行数:23,代码来源:search.php


示例6: event_espresso_staff_config_mnu


//.........这里部分代码省略.........
            echo $staff_id;
            ?>
</td>
              <td class="post-title page-title column-title"><strong><a href="admin.php?page=event_staff&action=edit&id=<?php 
            echo $staff_id;
            ?>
"><?php 
            echo $name;
            ?>
</a></strong>
              <div class="row-actions">
                <span class="edit"><a href="admin.php?page=event_staff&action=edit&id=<?php 
            echo $staff_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span>
                <span class="delete">
                    <a  onclick="return confirmDelete();" class="submitdelete" href="admin.php?page=event_staff&action=delete_staff&id=<?php 
            echo $staff_id;
            ?>
"><?php 
            _e('Delete', 'event_espresso');
            ?>
</a>
                </span>
              </div>
              </td>
              <?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
                ?>
              <td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
                ?>
</td>
              <?php 
            }
            ?>
              <td>[ESPRESSO_STAFF id="<?php 
            echo $staff_id;
            ?>
"]</td>
             
            </tr>
            <?php 
        }
    }
    ?>
          </tbody>
        </table>
        <div style="clear:both">
        <p>
          <input type="checkbox" name="sAll" onclick="selectAll(this)" />
          <strong>
          <?php 
    _e('Check All', 'event_espresso');
    ?>
          </strong>
          <input name="delete_staff" type="submit" class="button-secondary" id="delete_staff" value="<?php 
    _e('Delete Staff Member(s)', 'event_espresso');
    ?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();" />
          <a  style="margin-left:5px"class="button-primary" href="admin.php?page=event_staff&amp;action=add_new_staff"><?php 
    _e('Add New Staff Member', 'event_espresso');
    ?>
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:67,代码来源:index.php


示例7: event_espresso_questions_config_mnu


//.........这里部分代码省略.........
            echo wp_strip_all_tags($question_name);
            ?>
</a></strong>
									<div class="row-actions">
										<span class="edit"><a href="admin.php?page=form_builder&amp;action=edit_question&amp;question_id=<?php 
            echo $question_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span>
										<?php 
            if ($system_name == '') {
                ?>
<span class="delete"><a onclick="return confirmDelete();" class="submitdelete"  href="admin.php?page=form_builder&amp;action=delete_question&amp;question_id=<?php 
                echo $question_id;
                ?>
"><?php 
                _e('Delete', 'event_espresso');
                ?>
</a></span><?php 
            }
            ?>
									</div>
								</td>
								<td class="author column-author"><?php 
            echo $values;
            ?>
</td>
								<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
                ?>
									<td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
                ?>
</td>
								<?php 
            }
            ?>
								<td class="author column-author"><?php 
            echo $question_type;
            ?>
</td>
								<td class="author column-author"><?php 
            echo $required;
            ?>
</td>
								<td class="author column-author"><?php 
            echo $admin_only;
            ?>
</td>
							</tr>
							<?php 
        }
    }
    ?>
				</tbody>
			</table>

			<div>
				<p><input type="checkbox" name="sAll" onclick="selectAll(this)" />
					<strong>
						<?php 
    _e('Check All', 'event_espresso');
    ?>
					</strong>
开发者ID:antares-ff,项目名称:ANTARES-Test,代码行数:67,代码来源:index.php


示例8: espresso_ticket_config_mnu


//.........这里部分代码省略.........
            echo $ticket_id;
            ?>
]" type="checkbox"  title="Delete <?php 
            echo stripslashes($ticket_name);
            ?>
"></td>
								<td><?php 
            echo $ticket_id;
            ?>
</td>
								<td class="post-title page-title column-title"><strong><a href="admin.php?page=event_tickets&action=edit_ticket&id=<?php 
            echo $ticket_id;
            ?>
"><?php 
            echo $ticket_name;
            ?>
</a></strong>
									<div class="row-actions"><span class="edit"><a href="admin.php?page=event_tickets&action=edit_ticket&id=<?php 
            echo $ticket_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span><span class="delete"><a onclick="return confirmDelete();" class="delete submitdelete" href="admin.php?page=event_tickets&action=delete_ticket&id=<?php 
            echo $ticket_id;
            ?>
"><?php 
            _e('Delete', 'event_espresso');
            ?>
</a></span></div>
								</td>
								<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
                $user_company = espresso_user_meta($wp_user, 'company') != '' ? espresso_user_meta($wp_user, 'company') : '';
                $user_organization = espresso_user_meta($wp_user, 'organization') != '' ? espresso_user_meta($wp_user, 'organization') : '';
                $user_co_org = $user_company != '' ? $user_company : $user_organization;
                ?>
									<td class="date"><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
                echo $user_co_org != '' ? '<br />[' . espresso_user_meta($wp_user, 'company') . ']' : '';
                ?>
									</td>
							<?php 
            }
            ?>
								<td><a href="admin.php?page=event_tickets&action=edit_ticket&id=<?php 
            echo $ticket_id;
            ?>
">
							<?php 
            _e('Edit Ticket Template', 'event_espresso');
            ?>
									</a></td>
							</tr>
		<?php 
        }
    }
    ?>
				</tbody>
			</table>
			<p>

				<input type="checkbox" name="sAll" onclick="selectAll(this)" />
				<strong>
		<?php 
    _e('Check All', 'event_espresso');
开发者ID:sriram911,项目名称:pls,代码行数:67,代码来源:index.php


示例9: event_espresso_email_config_mnu


//.........这里部分代码省略.........
                                            <td><input name="checkbox[<?php 
            echo $email_id;
            ?>
]" type="checkbox"  title="Delete <?php 
            echo stripslashes($email_name);
            ?>
"></td>
                                            <td><?php 
            echo $email_id;
            ?>
</td>
                                             <td class="post-title page-title column-title"><strong><a href="admin.php?page=event_emails&action=edit&id=<?php 
            echo $email_id;
            ?>
"><?php 
            echo $email_name;
            ?>
</a></strong>
              <div class="row-actions"><span class="edit"><a href="admin.php?page=event_emails&action=edit&id=<?php 
            echo $email_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span><span class="delete"><a onclick="return confirmDelete();" class="delete submitdelete" href="admin.php?page=event_emails&action=delete_email&id=<?php 
            echo $email_id;
            ?>
"><?php 
            _e('Delete', 'event_espresso');
            ?>
</a></span></div>
              </td>
                                            <?php 
            if (function_exists('espresso_user_meta') && espresso_is_admin() == true) {
                ?>
                                                <td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
                ?>
</td>
                                            <?php 
            }
            ?>
                                            <td><a href="admin.php?page=event_emails&action=edit&id=<?php 
            echo $email_id;
            ?>
">
                                                    <?php 
            _e('Edit Email', 'event_espresso');
            ?>
                                                </a></td>
                                        </tr>
                                    <?php 
        }
    }
    ?>
                            </tbody>
                        </table>
                        <p>

                            <input type="checkbox" name="sAll" onclick="selectAll(this)" />
                            <strong>
                                <?php 
    _e('Check All', 'event_espresso');
    ?>
                            </strong>
                            <input name="delete_email" type="submit" class="button-secondary" id="delete_email" value="<?php 
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:67,代码来源:index.php


示例10: event_espresso_question_groups_config_mnu


//.........这里部分代码省略.........
								<td class="post-title page-title column-title"><strong><a href="admin.php?page=form_groups&amp;action=edit_group&amp;group_id=<?php 
            echo $group_id;
            ?>
"><?php 
            echo $group_name;
            ?>
</a></strong>
									<div class="row-actions">
										<span class="edit"><a href="admin.php?page=form_groups&amp;action=edit_group&amp;group_id=<?php 
            echo $group_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span>
			<?php 
            if ($system_group == 0) {
                ?>
<span class="delete"><a onclick="return confirmDelete();" class="submitdelete"  href="admin.php?page=form_groups&amp;action=delete_group&amp;group_id=<?php 
                echo $group_id;
                ?>
"><?php 
                _e('Delete', 'event_espresso');
                ?>
</a></span><?php 
            }
            ?>
									</div>
								</td>
								<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
                ?>
									<td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
                ?>
</td>
			<?php 
            }
            ?>
								<td class="author column-author"><?php 
            echo $group_description;
            ?>
</td>

							</tr>
						<?php 
        }
    }
    ?>
				</tbody>
			</table>
			<div style="clear:both">
				<p><input type="checkbox" name="sAll" onclick="selectAll(this)" />
					<strong>
	<?php 
    _e('Check All', 'event_espresso');
    ?>
					</strong>
					<input name="delete_group" type="submit" class="button-secondary" id="delete_group" value="<?php 
    _e('Delete Question Group', 'event_espresso');
    ?>
"  style="margin:10 0 0 10px;" onclick="return confirmDelete();">
					<a  style="margin-left:5px"class="button-primary" href="admin.php?page=form_groups&amp;action=new_group"><?php 
    _e('Add New Group', 'event_espresso');
    ?>
</a>
开发者ID:sriram911,项目名称:pls,代码行数:67,代码来源:index.php


示例11: event_espresso_discount_config_mnu


//.........这里部分代码省略.........
            ?>
]" type="checkbox"  title="Delete <?php 
            echo $coupon_code;
            ?>
"></td>
								<td class="column-comments" style="padding-top:3px;"><?php 
            echo $discount_id;
            ?>
</td>
								<td class="post-title page-title column-title"><strong><a href="admin.php?page=discounts&amp;action=edit&amp;discount_id=<?php 
            echo $discount_id;
            ?>
"><?php 
            echo $coupon_code;
            ?>
</a></strong>
									<div class="row-actions"><span class="edit"><a href="admin.php?page=discounts&action=edit&discount_id=<?php 
            echo $discount_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span><span class="delete"><a onclick="return confirmDelete();" class="delete submitdelete" href="admin.php?page=discounts&action=delete_discount&discount_id=<?php 
            echo $discount_id;
            ?>
"><?php 
            _e('Delete', 'event_espresso');
            ?>
</a></span></div></td>
								<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
                ?>
									<td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
                ?>
</td>
			<?php 
            }
            ?>
								<td class="author column-author"><?php 
            echo $coupon_code_price;
            ?>
</td>
								<td class="author column-author"><?php 
            echo $use_percentage;
            ?>
</td>
							</tr>
						<?php 
        }
    }
    ?>
				</tbody>
			</table>
			<div style="clear:both">
				<p><input type="checkbox" name="sAll" onclick="selectAll(this)" />
					<strong>
	<?php 
    _e('Check All', 'event_espresso');
    ?>
					</strong>
					<input name="delete_discount" type="submit" class="button-secondary" id="delete_discount" value="<?php 
    _e('Delete Promotional Code', 'event_espresso');
    ?>
" style="margin:10 0 0 10px;" onclick="return confirmDelete();">
开发者ID:sriram911,项目名称:pls,代码行数:66,代码来源:index.php


示例12: event_espresso_venue_config_mnu


//.........这里部分代码省略.........
										<?php 
            _e('Edit', 'event_espresso');
            ?>
										</a> | </span> <span class="delete"><a onclick="return confirmDelete();" class="submitdelete" href="admin.php?page=event_venues&action=delete_venue&id=<?php 
            echo $venue_id;
            ?>
">
										<?php 
            _e('Delete', 'event_espresso');
            ?>
										</a></span> </div></td>
								<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
                ?>
								<td><?php 
                $last_locale_id = $wpdb->get_var("SELECT locale_id FROM " . EVENTS_LOCALE_REL_TABLE . " WHERE venue_id='" . $venue_id . "'");
                $locales = $wpdb->get_results("SELECT * FROM " . EVENTS_LOCALE_TABLE . " WHERE id = '" . $last_locale_id . "'");
                if (count($locales) > 0) {
                    foreach ($locales as $locale) {
                        $locale_id = $locale->id;
                        $name = stripslashes($locale->name);
                        echo $name;
                    }
                }
                ?>
</td>
								<?php 
            }
            ?>
								<?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
                ?>
								<td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
                ?>
</td>
								<?php 
            }
            ?>
								<td>[ESPRESSO_VENUE id="<?php 
            echo $venue_id;
            ?>
"]</td>
							</tr>
							<?php 
        }
    }
    ?>
						</tbody>
					</table>
					<div style="clear:both">
						<p>
							<input type="checkbox" name="sAll" onclick="selectAll(this)" />
							<strong>
							<?php 
    _e('Check All', 'event_espresso');
    ?>
							</strong>
							<input name="delete_venue" type="submit" class="button-secondary" id="delete_venue" value="<?php 
    _e('Delete Venue', 'event_espresso');
    ?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();">
							<a  style="margin-left:5px"class="button-primary" href="admin.php?page=event_venues&amp;action=add_new_venue">
							<?php 
    _e('Add New Venue', 'event_espresso');
    ?>
开发者ID:sriram911,项目名称:pls,代码行数:67,代码来源:index.php


示例13: event_espresso_categories_config_mnu


//.........这里部分代码省略.........
            ?>
"></td>
                                            <td class="column-comments" style="padding-top:3px;"><?php 
            echo $category_id;
            ?>
</td>
                                            <td class="post-title page-title column-title"><strong><a href="admin.php?page=event_categories&action=edit&id=<?php 
            echo $category_id;
            ?>
"><?php 
            echo $category_name;
            ?>
</a></strong>
                                               <div class="row-actions">
																								  <span class="edit"><a href="admin.php?page=event_categories&action=edit&id=<?php 
            echo $category_id;
            ?>
"><?php 
            _e('Edit', 'event_espresso');
            ?>
</a> | </span>
																									<span class="delete"><a onclick="return confirmDelete();" class="submitdelete" href="admin.php?page=event_categories&action=delete_category&id=<?php 
            echo $category_id;
            ?>
"><?php 
            _e('Delete', 'event_espresso');
            ?>
</a></span></div>
                                            </td>
                                            <?php 
            if (function_exists('espresso_is_admin') && espresso_is_admin() == true) {
                ?>
                                                <td><?php 
                echo espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') : espresso_user_meta($wp_user, 'display_name');
                ?>
</td>
                                            <?php 
            }
            ?>
                                            <td>[EVENT_ESPRESSO_CATEGORY event_category_id="<?php 
            echo $category_identifier;
            ?>
"]</td>

                                        </tr>
                                    <?php 
        }
    }
    ?>
                            </tbody>
                        </table>
                        <div style="clear:both">
                            <p>
                                <input type="checkbox" name="sAll" onclick="selectAll(this)" />
                                <strong>
                                    <?php 
    _e('Check All', 'event_espresso');
    ?>
                                </strong>
                                <input name="delete_category" type="submit" class="button-secondary" id="delete_category" value="<?php 
    _e('Delete Category', 'event_espresso');
    ?>
" style="margin-left:10px 0 0 10px;" onclick="return confirmDelete();">
                                <a  style="margin-left:5px"class="button-primary" href="admin.php?page=event_categories&amp;action=add_new_category"><?php 
    _e('Add New Category', 'event_espresso');
    ?>
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:67,代码来源:index.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP espresso_version函数代码示例发布时间:2022-05-15
下一篇:
PHP espresso_reg_url函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap