本文整理汇总了PHP中rcp_get_subscription_levels函数的典型用法代码示例。如果您正苦于以下问题:PHP rcp_get_subscription_levels函数的具体用法?PHP rcp_get_subscription_levels怎么用?PHP rcp_get_subscription_levels使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rcp_get_subscription_levels函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: metabox
public function metabox($post_id = 0)
{
global $rcp_gifts;
$is_gift = $rcp_gifts->is_gift_product($post_id);
$is_multiuse = $rcp_gifts->is_gift_multiuse($post_id);
$expires = $rcp_gifts->gift_expires($post_id);
$gift_level = $rcp_gifts->gift_subscription_level($post_id);
$levels = rcp_get_subscription_levels();
echo '<p>';
echo '<strong>' . __('Gift Creation', 'rcp-gifts') . '</strong><br/>';
echo '</p>';
echo '<p>';
echo '<input type="checkbox" name="_rcp_gift_product" id="_rcp_gift_product" value="1"' . checked(true, $is_gift, false) . '/>';
echo '<label for="_rcp_gift_product">' . __('Enable RCP Gift creation for this product', 'rcp-gifts') . '</label>';
echo '</p>';
// enable multi-use
echo '<p>';
echo '<input type="checkbox" name="_rcp_gift_multiuse" id="_rcp_gift_multiuse" value="1"' . checked(true, $is_multiuse, false) . '/>';
echo '<label for="_rcp_gift_multiuse">' . __('Enable coupon to be used multiple times.', 'rcp-gifts') . '</label>';
echo '</p>';
// set expiration date
echo '<p>';
echo '<input type="date" class="datepicker" name="_rcp_gift_expires" id="_rcp_gift_expires" value="' . esc_attr($expires) . '">';
echo '<label for="_rcp_gift_expires">' . __('Select optional expiration date.', 'rcp-gifts') . '</label>';
echo '</p>';
// choose subscription level
echo '<p>';
echo '<select name="_rcp_gift_subscription_level" id="_rcp_gift_subscription_level"/> ';
foreach ($levels as $level) {
echo '<option value="' . absint($level->id) . '"' . selected($gift_level, $level->id, false) . '>' . $level->name . '</option>';
}
echo '</select>';
echo '</p>';
}
示例2: jp_um_admin_extend_directory_options_general
/**
* Adds the subscription level dropdown to the member directory edit screen.
*/
function jp_um_admin_extend_directory_options_general($this)
{
$post_id = get_the_ID();
$saved_level = get_post_meta($post_id, 'um_rcp_subscription_level', true);
$saved_level = !empty($saved_level) ? absint($saved_level) : 'none';
?>
<p>
<label class="um-admin-half">RCP Members to Display</label>
<span class="um-admin-half">
<select name="um_rcp_subscription_level" id="um_rcp_subscription_level" class="umaf-selectjs um-adm-conditional" style="width: 300px" data-cond1='other' data-cond1-show='custom-field'>
<option value="none" <?php
selected('none', $saved_level);
?>
>None</option>
<?php
foreach (rcp_get_subscription_levels() as $key => $level) {
echo '<option value="' . $level->id . '" ' . selected($level->id, $saved_level) . '>' . $level->name . '</option>';
}
?>
</select>
</span>
</p><div class="um-admin-clear"></div>
<?php
wp_nonce_field('um_rcp_subscription_level_nonce', 'um_rcp_subscription_level_nonce');
}
示例3: rcp_render_meta_box
function rcp_render_meta_box()
{
global $post;
$rcp_meta_box = rcp_get_metabox_fields();
// Use nonce for verification
echo '<input type="hidden" name="rcp_meta_box" value="', wp_create_nonce(basename(__FILE__)), '" />';
echo '<table class="form-table">';
echo '<tr><td colspan="3">' . sprintf(__('Use these options to restrict this entire entry, or the [restrict] ... [/restrict] short code to restrict partial content. %sView documentation%s.', 'rcp'), '<a href="' . esc_url('http://docs.pippinsplugins.com/article/36-restricting-post-and-page-content') . '" target="_blank">', '</a>') . '</td></tr>';
do_action('rcp_metabox_fields_before');
foreach ($rcp_meta_box['fields'] as $field) {
// get current post meta data
$meta = get_post_meta($post->ID, $field['id'], true);
echo '<tr>';
echo '<th style="width:20%" class="rcp_meta_box_label"><label for="', $field['id'], '">', $field['name'], '</label></th>';
echo '<td class="rcp_meta_box_field">';
switch ($field['type']) {
case 'select':
echo '<select name="', $field['id'], '" id="', $field['id'], '">';
foreach ($field['options'] as $option) {
echo '<option', $meta == $option ? ' selected="selected"' : '', '>', $option, '</option>';
}
echo '</select>';
break;
case 'levels':
$selected = is_array($meta) ? $meta : array($meta);
$levels = rcp_get_subscription_levels('all');
foreach ($levels as $level) {
echo '<input type="checkbox" value="' . $level->id . '"' . checked(true, in_array($level->id, $selected), false) . ' name="' . $field['id'] . '[]" id="' . $field['id'] . '_' . $level->id . '" /> ';
echo '<label for="' . $field['id'] . '_' . $level->id . '">' . $level->name . '</label><br/>';
}
break;
case 'checkbox':
echo '<input type="checkbox" value="1" name="', $field['id'], '" id="', $field['id'], '"', $meta ? ' checked="checked"' : '', ' />';
break;
}
echo '</td>';
echo '<td class="rcp_meta_box_desc">', $field['desc'], '</td>';
echo '</tr>';
}
do_action('rcp_metabox_fields_after');
echo '<tr><td colspan="3"><strong>' . __('Note 1', 'rcp') . '</strong>: ' . __('To hide this content from logged-out users, but allow free and paid, set the User Level to "Subscriber".', 'rcp') . '</td></tr>';
echo '<tr><td colspan="3"><strong>' . __('Note 2', 'rcp') . '</strong>: ' . __('Access level, subscription level, and user level can all be combined to require the user meet all three specifications.', 'rcp') . '</td></tr>';
echo '</table>';
}
示例4: data_display
/**
* Display product settings
*
* @access public
* @since 2.2
*/
public function data_display()
{
?>
<div id="rcp_access_control" class="panel woocommerce_options_panel">
<div class="options_group">
<p><?php
_e('Restrict purchasing of this product to:', 'rcp');
?>
</p>
<?php
woocommerce_wp_checkbox(array('id' => '_rcp_woo_active_to_purchase', 'label' => __('Active subscribers only?', 'rcp'), 'cbvalue' => 1));
$levels = (array) get_post_meta(get_the_ID(), '_rcp_woo_subscription_levels_to_purchase', true);
foreach (rcp_get_subscription_levels('all') as $level) {
woocommerce_wp_checkbox(array('name' => '_rcp_woo_subscription_levels_to_purchase[]', 'id' => '_rcp_woo_subscription_level_' . $level->id, 'label' => $level->name, 'value' => in_array($level->id, $levels) ? $level->id : 0, 'cbvalue' => $level->id));
}
woocommerce_wp_select(array('id' => '_rcp_woo_access_level_to_purchase', 'label' => __('Access level required?', 'rcp'), 'options' => rcp_get_access_levels()));
?>
</div>
<div class="options_group">
<p><?php
_e('Restrict viewing of this product to:', 'rcp');
?>
</p>
<?php
woocommerce_wp_checkbox(array('id' => '_rcp_woo_active_to_view', 'label' => __('Active subscribers only?', 'rcp'), 'cbvalue' => 1));
$levels = (array) get_post_meta(get_the_ID(), '_rcp_woo_subscription_levels_to_view', true);
foreach (rcp_get_subscription_levels('all') as $level) {
woocommerce_wp_checkbox(array('name' => '_rcp_woo_subscription_levels_to_view[]', 'id' => '_rcp_woo_subscription_level_to_view_' . $level->id, 'label' => $level->name, 'value' => in_array($level->id, $levels) ? $level->id : 0, 'cbvalue' => $level->id));
}
woocommerce_wp_select(array('id' => '_rcp_woo_access_level_to_view', 'label' => __('Access level required?', 'rcp'), 'options' => rcp_get_access_levels()));
?>
</div>
</div>
<?php
}
示例5: rcp_export_page
function rcp_export_page()
{
global $rcp_options, $rcp_db_name, $wpdb;
$current_page = admin_url('/admin.php?page=rcp-export');
?>
<div class="wrap">
<h2><?php
_e('Export', 'rcp');
?>
</h2>
<?php
do_action('rcp_export_page_top');
?>
<h3><?php
_e('Members Export', 'rcp');
?>
</h3>
<p><?php
_e('Download member data as a CSV file. This is useful for tasks such as importing batch users into MailChimp, or other systems.', 'rcp');
?>
</p>
<form id="rcp_export" action="<?php
echo $current_page;
?>
" method="post">
<p>
<select name="rcp-subscription" id="rcp-subscription">
<option value="0"><?php
_e('All', 'rcp');
?>
</option>
<?php
$levels = rcp_get_subscription_levels('all');
if ($levels) {
foreach ($levels as $key => $level) {
?>
<option value="<?php
echo absint($level->id);
?>
"><?php
echo esc_html($level->name);
?>
</option>
<?php
}
}
?>
</select>
<label for="rcp-subscription"><?php
_e('Choose the subscription to export members from', 'rcp');
?>
</label><br/>
<select name="rcp-status" id="rcp-status">
<option value="active"><?php
_e('Active', 'rcp');
?>
</option>
<option value="pending"><?php
_e('Pending', 'rcp');
?>
</option>
<option value="expired"><?php
_e('Expired', 'rcp');
?>
</option>
<option value="cancelled"><?php
_e('Cancelled', 'rcp');
?>
</option>
<option value="free"><?php
_e('Free', 'rcp');
?>
</option>
</select>
<label for="rcp-status"><?php
_e('Choose the status to export', 'rcp');
?>
</label><br/>
<input type="number" id="rcp-number" name="rcp-number" class="small-text" value="500" />
<label for="rcp-number"><?php
_e('Maximum number of members to export', 'rcp');
?>
<br/>
<input type="number" id="rcp-offset" name="rcp-offset" class="small-text" value="0" />
<label for="rcp-offset"><?php
_e('The number of members to skip', 'rcp');
?>
</p>
<p><?php
_e('If you need to export a large number of members, export them in batches using the max and offset options', 'rcp');
?>
</p>
<input type="hidden" name="rcp-action" value="export-members"/>
<input type="submit" class="button-secondary" value="<?php
_e('Download Member CSV', 'rcp');
?>
"/>
</form>
//.........这里部分代码省略.........
示例6: rcp_get_paid_levels
/**
* Return the paid levels
*
* @since 2.5
* @return array()
*/
function rcp_get_paid_levels()
{
$paid_levels = array();
foreach (rcp_get_subscription_levels() as $level) {
if ($level->price > 0 && $level->status == 'active') {
$paid_levels[] = $level;
}
}
return apply_filters('rcp_get_paid_levels', $paid_levels);
}
示例7: _e
<p class="description"><?php
_e(' The amount of this discount code.', 'rcp');
?>
</p>
</td>
</tr>
<tr class="form-field">
<th scope="row" valign="top">
<label for="rcp-subscription"><?php
_e('Subscription', 'rcp');
?>
</label>
</th>
<td>
<?php
$levels = rcp_get_subscription_levels('all', false);
if ($levels) {
?>
<select name="subscription" id="rcp-subscription">
<option value="0"><?php
_e('All Levels', 'rcp');
?>
</option>
<?php
foreach ($levels as $level) {
echo '<option value="' . $level->id . '" ' . selected($code->subscription_id, $level->id, false) . '>' . $level->name . '</option>';
}
?>
</select>
<?php
}
示例8: rcp_member_levels_page
function rcp_member_levels_page()
{
global $rcp_options, $rcp_db_name, $wpdb;
$page = admin_url('/admin.php?page=rcp-member-levels');
?>
<div class="wrap">
<?php
if (isset($_GET['edit_subscription'])) {
include 'edit-subscription.php';
} else {
?>
<h2><?php
_e('Subscription Levels', 'rcp');
?>
</h2>
<table class="wp-list-table widefat fixed posts rcp-subscriptions">
<thead>
<tr>
<th scope="col" class="rcp-sub-name-col column-primary"><?php
_e('Name', 'rcp');
?>
</th>
<th scope="col" class="rcp-sub-desc-col"><?php
_e('Description', 'rcp');
?>
</th>
<th scope="col" class="rcp-sub-level-col"><?php
_e('Access Level', 'rcp');
?>
</th>
<th scope="col" class="rcp-sub-duration-col"><?php
_e('Duration', 'rcp');
?>
</th>
<th scope="col" class="rcp-sub-price-col"><?php
_e('Price', 'rcp');
?>
</th>
<th scope="col" class="rcp-sub-subs-col"><?php
_e('Subscribers', 'rcp');
?>
</th>
<?php
do_action('rcp_levels_page_table_header');
?>
<th scope="col" class="rcp-sub-order-col"><?php
_e('Order', 'rcp');
?>
</th>
</tr>
</thead>
<tbody id="the-list">
<?php
$levels = rcp_get_subscription_levels('all');
?>
<?php
if ($levels) {
$i = 1;
foreach ($levels as $key => $level) {
?>
<tr id="recordsArray_<?php
echo $level->id;
?>
" class="rcp-subscription rcp_row <?php
if (rcp_is_odd($i)) {
echo 'alternate';
}
?>
">
<td class="rcp-sub-name-col column-primary has-row-actions" data-colname="<?php
_e('Name', 'rcp');
?>
">
<strong><a href="<?php
echo esc_url(add_query_arg('edit_subscription', $level->id, $page));
?>
"><?php
echo stripslashes($level->name);
?>
</a></strong>
<?php
if (current_user_can('rcp_manage_levels')) {
?>
<div class="row-actions">
<span class="rcp-sub-id-col" data-colname="<?php
_e('ID:', 'rcp');
?>
"> <?php
echo __('ID:', 'rcp') . ' ' . $level->id;
?>
| </span>
<a href="<?php
echo esc_url(add_query_arg('edit_subscription', $level->id, $page));
?>
"><?php
_e('Edit', 'rcp');
?>
</a> |
<?php
if ($level->status != 'inactive') {
//.........这里部分代码省略.........
示例9: widget
/**
* widget function.
*
* @see WP_Widget
* @access public
* @param array $args
* @param array $instance
* @return void
*/
function widget($args, $instance)
{
if ($this->get_cached_widget($args)) {
return;
}
ob_start();
extract($args);
$title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
$description = $instance['description'];
$levels = rcp_get_subscription_levels('active');
if (!$levels) {
return;
}
$content = ob_get_clean();
echo $before_widget;
?>
<div class="container">
<?php
if ($title) {
echo $before_title . $title . $after_title;
}
?>
<?php
if ($description) {
?>
<p class="homepage-widget-description"><?php
echo $description;
?>
</p>
<?php
}
?>
<div class="pricing-table-widget-<?php
echo count($levels);
?>
">
<?php
foreach ($levels as $key => $level) {
?>
<?php
if (rcp_show_subscription_level($level->id)) {
?>
<div id="rcp_subscription_level_<?php
echo $level->id;
?>
" class="pricing-table-widget rcp_subscription_level_fake" data-href="<?php
echo esc_url(get_permalink(jobify_find_page_with_shortcode(array('register_form'))));
?>
">
<div class="pricing-table-widget-title" style="background-color: #01da90">
<span class="rcp_subscription_level_name"><?php
echo stripslashes($level->name);
?>
</span>
</div>
<div class="pricing-table-widget-description">
<h2><span class="rcp_price" rel="<?php
echo esc_attr($level->price);
?>
"><?php
echo $level->price > 0 ? rcp_currency_filter($level->price) : __('free', 'jobify');
?>
</h2>
<p><span class="rcp_level_duration"><?php
echo $level->duration > 0 ? $level->duration . ' ' . rcp_filter_duration_unit($level->duration_unit, $level->duration) : __('unlimited', 'jobify');
?>
</span></p>
<?php
echo wpautop(wp_kses($level->description, rcp_allowed_html_tags()));
?>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
<?php
echo $after_widget;
//.........这里部分代码省略.........
示例10: rcp_discounts_page
//.........这里部分代码省略.........
?>
</option>
</select>
<p class="description"><?php
_e('The kind of discount to apply for this discount.', 'rcp');
?>
</p>
</td>
</tr>
<tr class="form-field">
<th scope="row" valign="top">
<label for="rcp-amount"><?php
_e('Amount', 'rcp');
?>
</label>
</th>
<td>
<input type="text" id="rcp-amount" name="amount" value="" style="width: 40px;"/>
<p class="description"><?php
_e('The amount of this discount code.', 'rcp');
?>
</p>
</td>
</tr>
<tr class="form-field">
<th scope="row" valign="top">
<label for="rcp-subscription"><?php
_e('Subscription', 'rcp');
?>
</label>
</th>
<td>
<?php
$levels = rcp_get_subscription_levels('all', false);
if ($levels) {
?>
<select name="subscription" id="rcp-subscription">
<option value="0"><?php
_e('All Levels', 'rcp');
?>
</option>
<?php
foreach ($levels as $level) {
echo '<option value="' . $level->id . '">' . $level->name . '</option>';
}
?>
</select>
<?php
}
?>
<p class="description"><?php
_e('The subscription levels this discount code can be used for.', 'rcp');
?>
</p>
</td>
</tr>
<tr class="form-field">
<th scope="row" valign="top">
<label for="rcp-expiration"><?php
_e('Expiration date', 'rcp');
?>
</label>
</th>
<td>
<input name="expiration" id="rcp-expiration" type="text" style="width: 120px;" class="rcp-datepicker"/>
<p class="description"><?php
示例11: rcp_members_page
//.........这里部分代码省略.........
</a>(<?php
echo $free_count;
?>
)
</li>
<?php
do_action('rcp_members_page_statuses');
?>
</ul>
<form id="rcp-member-search" method="get" action="<?php
menu_page_url('rcp-members');
?>
">
<label class="screen-reader-text" for="rcp-member-search-input"><?php
_e('Search Members', 'rcp');
?>
</label>
<input type="search" id="rcp-member-search-input" name="s" value="<?php
echo esc_attr($search);
?>
"/>
<input type="hidden" name="page" value="rcp-members"/>
<input type="hidden" name="status" value="<?php
echo esc_attr($status);
?>
"/>
<input type="submit" name="" id="rcp-member-search-submit" class="button" value="<?php
_e('Search members', 'rcp');
?>
"/>
</form>
<form id="members-filter" action="" method="get">
<?php
$levels = rcp_get_subscription_levels('all');
if ($levels) {
?>
<select name="subscription" id="rcp-subscription">
<option value="all"><?php
_e('All Subscriptions', 'rcp');
?>
</option>
<?php
foreach ($levels as $level) {
echo '<option value="' . $level->id . '" ' . selected($subscription_id, $level->id, false) . '>' . $level->name . '</option>';
}
?>
</select>
<?php
}
?>
<select name="recurring" id="rcp-recurring">
<option value="0"><?php
_e('Either', 'rcp');
?>
</option>
<option value="1"<?php
selected(1, $recurring);
?>
><?php
_e('Not Recurring', 'rcp');
?>
</option>
<option value="2"<?php
selected(2, $recurring);
?>
><?php
示例12: checked
<label for="rcp_subscription_level_specific">
<input type="radio" name="rcp_subscription_level_any_set" id="rcp_subscription_level_specific" value="specific"<?php
checked(true, is_array($sub_levels));
?>
/>
<?php
_e('Members of specific subscription levels', 'rcp');
?>
<br/>
</label>
<p class="rcp-subscription-levels"<?php
echo $levels_display;
?>
>
<?php
foreach (rcp_get_subscription_levels() as $level) {
?>
<label for="rcp_subscription_level_<?php
echo $level->id;
?>
">
<input type="checkbox" name="rcp_subscription_level[]"<?php
checked(true, in_array($level->id, (array) $sub_levels));
?>
class="rcp_subscription_level" id="rcp_subscription_level_<?php
echo $level->id;
?>
" value="<?php
echo esc_attr($level->id);
?>
" data-price="<?php
示例13: widget
/**
* widget function.
*
* @see WP_Widget
* @access public
* @param array $args
* @param array $instance
* @return void
*/
function widget($args, $instance)
{
if ($this->get_cached_widget($args)) {
return;
}
ob_start();
extract($args);
$title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
$description = $instance['description'];
$levels = rcp_get_subscription_levels('active');
if (!$levels) {
return;
}
$content = ob_get_clean();
echo $before_widget;
?>
<div class="container">
<?php
if ($title) {
echo $before_title . $title . $after_title;
}
?>
<?php
if ($description) {
?>
<p class="homepage-widget-description"><?php
echo $description;
?>
</p>
<?php
}
?>
<div class="job-packages row">
<?php
foreach ($levels as $key => $level) {
?>
<?php
if (rcp_show_subscription_level($level->id)) {
?>
<div class="col-lg-4 col-md-6 col-sm-12 pricing-table-widget-wrapper">
<div class="pricing-table-widget rcp_subscription_level rcp_subscription_level_fake" data-href="<?php
echo esc_url(get_permalink(jobify_find_page_with_shortcode(array('register_form'))));
?>
">
<div class="pricing-table-widget-title">
<span class="rcp_subscription_level_name"><?php
echo stripslashes($level->name);
?>
</span>
</div>
<div class="pricing-table-widget-description">
<h2>
<span class="rcp_price" rel="<?php
echo esc_attr($level->price);
?>
">
<?php
if ($level->fee) {
?>
<?php
$adjusted_price = $level->price + $level->fee;
?>
<?php
echo $adjusted_price > 0 ? rcp_currency_filter($adjusted_price) : __('free', 'jobify');
?>
</h2>
<small>
<?php
$promo_duration = sprintf(_n('%2$s', '%1$s %2$ss', $level->duration, 'jobify'), $level->duration, $level->duration_unit);
?>
<?php
printf(__('* %s after first %s', 'jobify'), rcp_currency_filter($level->price), $promo_duration);
?>
</small>
<?php
} else {
?>
<?php
$adjusted_price = $level->price;
?>
<?php
echo $adjusted_price > 0 ? rcp_currency_filter($adjusted_price) : __('free', 'jobify');
?>
</h2>
//.........这里部分代码省略.........
示例14: _e
_e('The status of this user\'s subscription', 'rcp');
?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row" valign="top">
<label for="rcp-level"><?php
_e('Subscription Level', 'rcp');
?>
</label>
</th>
<td>
<select name="level" id="rcp-level">
<?php
foreach (rcp_get_subscription_levels('all') as $key => $level) {
echo '<option value="' . esc_attr(absint($level->id)) . '"' . selected($level->name, rcp_get_subscription($member->ID), false) . '>' . esc_html($level->name) . '</option>';
}
?>
</select>
<p class="description"><?php
_e('Choose the subscription level for this user', 'rcp');
?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row" valign="top">
<label for="rcp-key"><?php
_e('Subscription Key', 'rcp');
?>
示例15: rcp_members_page
//.........这里部分代码省略.........
</a>(<?php
echo $free_count;
?>
)
</li>
<?php
do_action('rcp_members_page_statuses');
?>
</ul>
<form id="rcp-member-search" method="get" action="<?php
menu_page_url('rcp-members');
?>
">
<label class="screen-reader-text" for="rcp-member-search-input"><?php
_e('Search Members', 'rcp');
?>
</label>
<input type="search" id="rcp-member-search-input" name="s" value="<?php
echo esc_attr($search);
?>
"/>
<input type="hidden" name="page" value="rcp-members"/>
<input type="hidden" name="status" value="<?php
echo esc_attr($status);
?>
"/>
<input type="submit" name="" id="rcp-member-search-submit" class="button" value="<?php
_e('Search members', 'rcp');
?>
"/>
</form>
<form id="members-filter" action="" method="get">
<?php
$levels = rcp_get_subscription_levels('all');
if ($levels) {
?>
<select name="subscription" id="rcp-subscription">
<option value="all"><?php
_e('All Subscriptions', 'rcp');
?>
</option>
<?php
foreach ($levels as $level) {
echo '<option value="' . $level->id . '" ' . selected($subscription_id, $level->id, false) . '>' . $level->name . '</option>';
}
?>
</select>
<?php
}
?>
<select name="order" id="rcp-order">
<option value="DESC" <?php
selected($order, 'DESC');
?>
><?php
_e('Newest First', 'rcp');
?>
</option>
<option value="ASC" <?php
selected($order, 'ASC');
?>
><?php
_e('Oldest First', 'rcp');
?>
</option>
</select>