本文整理汇总了PHP中__rw函数的典型用法代码示例。如果您正苦于以下问题:PHP __rw函数的具体用法?PHP __rw怎么用?PHP __rw使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了__rw函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printf
"/>
</div>
<div class="rw-ui-img-radio rw-ui-hor<?php
if ($visibility->selected == 2) {
echo ' rw-selected';
}
?>
" onclick="jQuery(this).children('input[type=text]').focus();">
<i class="rw-ui-sprite rw-ui-visibility-include"></i> <input type="radio" name="rw_visibility"
value="2" <?php
if ($visibility->selected == 2) {
echo ' checked="checked"';
}
?>
> <span><?php
printf(__rw('visibility_show-on-every-include', WP_RW__ID), $types);
?>
</span>
<input type="text" name="rw_visibility_include"
value="<?php
echo implode_or_empty($visibility->include);
?>
"/>
</div>
<span
style="font-size: 10px; background: white; padding: 2px; border: 1px solid gray; display: block; margin-top: 5px; font-weight: bold; background: rgb(240,240,240); color: black;"><?php
_erw('visibility__separate-with-commas');
?>
</span>
</div>
</div>
示例2: SettingsPage
/**
* To get a list of all custom user defined posts:
*
* get_post_types(array('public'=>true,'_builtin' => false))
*/
public function SettingsPage()
{
RWLogger::LogEnterence('SettingsPage');
// Must check that the user has the required capability.
if (!current_user_can('manage_options')) {
wp_die(__rw('no-sufficient-permissions'));
}
global $plugin_page;
// Variables for the field and option names
$rw_form_hidden_field_name = 'rw_form_hidden_field_name';
$settings_data = array();
$selected_key = 'dummy';
if ($plugin_page === $this->GetMenuSlug('buddypress') && $this->IsBuddyPressInstalled()) {
$settings_data = array('activity-blog-posts' => array('tab' => __rw('activity-blog-posts'), 'class' => 'new-blog-post', 'options' => WP_RW__ACTIVITY_BLOG_POSTS_OPTIONS, 'align' => WP_RW__ACTIVITY_BLOG_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__ACTIVITY_BLOG_POSTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'activity-blog-comments' => array('tab' => __rw('activity-blog-comments'), 'class' => 'new-blog-comment', 'options' => WP_RW__ACTIVITY_BLOG_COMMENTS_OPTIONS, 'align' => WP_RW__ACTIVITY_BLOG_COMMENTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__ACTIVITY_BLOG_COMMENTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'activity-updates' => array('tab' => __rw('activity-updates'), 'class' => 'activity-update', 'options' => WP_RW__ACTIVITY_UPDATES_OPTIONS, 'align' => WP_RW__ACTIVITY_UPDATES_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__ACTIVITY_UPDATES_ALIGN], 'excerpt' => false, 'show_align' => true), 'activity-comments' => array('tab' => __rw('activity-comments'), 'class' => 'activity-comment', 'options' => WP_RW__ACTIVITY_COMMENTS_OPTIONS, 'align' => WP_RW__ACTIVITY_COMMENTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__ACTIVITY_COMMENTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'users' => array('tab' => __rw('user-profiles'), 'class' => 'user', 'options' => WP_RW__USERS_OPTIONS, 'align' => WP_RW__USERS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_ALIGN], 'excerpt' => false, 'show_align' => false));
$selected_key = isset($_GET['rating']) ? $_GET['rating'] : 'activity-blog-posts';
if (!isset($settings_data[$selected_key])) {
$selected_key = 'activity-blog-posts';
}
} else {
if ($plugin_page === $this->GetMenuSlug('bbpress') && $this->IsBBPressInstalled()) {
$settings_data = array('forum-posts' => array('tab' => __rw('forum-posts'), 'class' => 'forum-post', 'options' => WP_RW__FORUM_POSTS_OPTIONS, 'align' => WP_RW__FORUM_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__FORUM_POSTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'activity-forum-posts' => array('tab' => __rw('activity-forum-posts'), 'class' => 'new-forum-post', 'options' => WP_RW__ACTIVITY_FORUM_POSTS_OPTIONS, 'align' => WP_RW__ACTIVITY_FORUM_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__ACTIVITY_FORUM_POSTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'users' => array('tab' => __rw('user-profiles'), 'class' => 'user', 'options' => WP_RW__USERS_OPTIONS, 'align' => WP_RW__USERS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_ALIGN], 'excerpt' => false, 'show_align' => false));
$selected_key = isset($_GET['rating']) ? $_GET['rating'] : 'forum-posts';
if (!isset($settings_data[$selected_key])) {
$selected_key = 'forum-posts';
}
} else {
if ($plugin_page === $this->GetMenuSlug('user')) {
$settings_data = array('users-posts' => array('tab' => __rw('posts'), 'class' => 'user-post', 'options' => WP_RW__USERS_POSTS_OPTIONS, 'align' => WP_RW__USERS_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_POSTS_ALIGN], 'excerpt' => false, 'show_align' => false), 'users-pages' => array('tab' => __rw('pages'), 'class' => 'user-page', 'options' => WP_RW__USERS_PAGES_OPTIONS, 'align' => WP_RW__USERS_PAGES_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_PAGES_ALIGN], 'excerpt' => false, 'show_align' => false), 'users-comments' => array('tab' => __rw('comments'), 'class' => 'user-comment', 'options' => WP_RW__USERS_COMMENTS_OPTIONS, 'align' => WP_RW__USERS_COMMENTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_COMMENTS_ALIGN], 'excerpt' => false, 'show_align' => false));
if ($this->IsBuddyPressInstalled()) {
$settings_data['users-activity-updates'] = array('tab' => __rw('activity-updates'), 'class' => 'user-activity-update', 'options' => WP_RW__USERS_ACTIVITY_UPDATES_OPTIONS, 'align' => WP_RW__USERS_ACTIVITY_UPDATES_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_ACTIVITY_UPDATES_ALIGN], 'excerpt' => false, 'show_align' => false);
$settings_data['users-activity-comments'] = array('tab' => __rw('activity-comments'), 'class' => 'user-activity-comment', 'options' => WP_RW__USERS_ACTIVITY_COMMENTS_OPTIONS, 'align' => WP_RW__USERS_ACTIVITY_COMMENTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_ACTIVITY_COMMENTS_ALIGN], 'excerpt' => false, 'show_align' => false);
if ($this->IsBBPressInstalled()) {
$settings_data['users-forum-posts'] = array('tab' => __rw('forum-posts'), 'class' => 'user-forum-post', 'options' => WP_RW__USERS_FORUM_POSTS_OPTIONS, 'align' => WP_RW__USERS_FORUM_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__USERS_FORUM_POSTS_ALIGN], 'excerpt' => false, 'show_align' => false);
}
}
$selected_key = isset($_GET['rating']) ? $_GET['rating'] : 'users-posts';
if (!isset($settings_data[$selected_key])) {
$selected_key = 'users-posts';
}
} else {
$is_extension = false;
foreach ($this->_extensions as $ext) {
if ($plugin_page !== $this->GetMenuSlug($ext->GetSlug())) {
continue;
}
$is_extension = true;
$settings_data = $ext->GetSettings();
$selected_key = isset($_GET['rating']) && isset($settings_data[$_GET['rating']]) ? $_GET['rating'] : $this->GetFirstKey($settings_data);
}
if (!$is_extension) {
$settings_data = array('blog-posts' => array('tab' => __rw('blog-posts'), 'class' => 'blog-post', 'options' => WP_RW__BLOG_POSTS_OPTIONS, 'align' => WP_RW__BLOG_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__BLOG_POSTS_ALIGN], 'excerpt' => true, 'show_align' => true), 'front-posts' => array('tab' => __rw('front-page-posts'), 'class' => 'front-post', 'options' => WP_RW__FRONT_POSTS_OPTIONS, 'align' => WP_RW__FRONT_POSTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__FRONT_POSTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'comments' => array('tab' => __rw('comments'), 'class' => 'comment', 'options' => WP_RW__COMMENTS_OPTIONS, 'align' => WP_RW__COMMENTS_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__COMMENTS_ALIGN], 'excerpt' => false, 'show_align' => true), 'pages' => array('tab' => __rw('pages'), 'class' => 'page', 'options' => WP_RW__PAGES_OPTIONS, 'align' => WP_RW__PAGES_ALIGN, 'default_align' => $this->_OPTIONS_DEFAULTS[WP_RW__PAGES_ALIGN], 'excerpt' => false, 'show_align' => true));
$selected_key = isset($_GET['rating']) ? $_GET['rating'] : 'blog-posts';
if (!isset($settings_data[$selected_key])) {
$selected_key = 'blog-posts';
}
}
}
}
}
$rw_current_settings = $settings_data[$selected_key];
// Some alias.
$rw_class = $rw_current_settings['class'];
$is_blog_post = 'blog-post' === $rw_current_settings['class'];
$item_with_category = in_array($rw_current_settings['class'], array('blog-post', 'front-post', 'comment'));
// Visibility list must be loaded anyway.
$this->_visibilityList = $this->GetOption(WP_RW__VISIBILITY_SETTINGS);
if ($item_with_category) {
// Categories Availability list must be loaded anyway.
$this->categories_list = $this->GetOption(WP_RW__CATEGORIES_AVAILABILITY_SETTINGS);
}
// Availability list must be loaded anyway.
$this->availability_list = $this->GetOption(WP_RW__AVAILABILITY_SETTINGS);
$this->custom_settings_enabled_list = $this->GetOption(WP_RW__CUSTOM_SETTINGS_ENABLED);
$this->custom_settings_list = $this->GetOption(WP_RW__CUSTOM_SETTINGS);
$this->multirating_settings_list = $this->GetOption(WP_RW__MULTIRATING_SETTINGS);
// Accumulated user ratings support.
if ('users' === $selected_key && $this->IsBBPressInstalled()) {
$rw_is_user_accumulated = $this->GetOption(WP_RW__IS_ACCUMULATED_USER_RATING);
}
// Comment "Reviews" mode support.
if ('comments' === $selected_key) {
$comment_ratings_mode_settings = $this->get_comment_ratings_mode_settings();
$comment_ratings_mode = $comment_ratings_mode_settings->comment_ratings_mode;
}
// Reset categories.
$rw_categories = array();
// See if the user has posted us some information
// If they did, this hidden field will be set to 'Y'
if (isset($_POST[$rw_form_hidden_field_name]) && $_POST[$rw_form_hidden_field_name] == 'Y') {
// Set settings into save mode.
$this->settings->SetSaveMode();
/* Multi-rating options.
---------------------------------------------------------------------------------------------------------------*/
if (isset($_POST['multi_rating'])) {
$multi_rating = $_POST['multi_rating'];
//.........这里部分代码省略.........
示例3: form
//.........这里部分代码省略.........
}
?>
</select>
</label>
</p>
<p>
<label
for="rss-items-<?php
echo $values["{$type}_order"];
?>
"><?php
_erw('order');
?>
:
<select id="<?php
echo $this->get_field_id("{$type}_order");
?>
"
name="<?php
echo $this->get_field_name("{$type}_order");
?>
">
<option
value="DESC"<?php
echo $values["{$type}_order"] == 'DESC' ? ' selected=\'selected\'' : '';
?>
>
<?php
_erw('best');
?>
(<?php
_erw('descending');
?>
)
</option>
<option
value="ASC"<?php
echo $values["{$type}_order"] == 'ASC' ? ' selected=\'selected\'' : '';
?>
>
<?php
_erw('worst');
?>
(<?php
_erw('ascending');
?>
)
</option>
</select>
</label>
</p>
<?php
$since_created_options = array(WP_RW__TIME_ALL_TIME => __rw('all-time', WP_RW__ID), WP_RW__TIME_YEAR_IN_SEC => __rw('last-year', WP_RW__ID), WP_RW__TIME_6_MONTHS_IN_SEC => sprintf(__rw('last-x-months'), 6), WP_RW__TIME_30_DAYS_IN_SEC => sprintf(__rw('last-x-days'), 30), WP_RW__TIME_WEEK_IN_SEC => sprintf(__rw('last-x-days'), 7), WP_RW__TIME_24_HOURS_IN_SEC => sprintf(__rw('last-x-hours'), 24));
?>
<p>
<label
for="rss-items-<?php
echo $values["{$type}_since_created"];
?>
"><?php
printf(__rw('s-created-in'), $typeTitle);
?>
<select id="<?php
echo $this->get_field_id("{$type}_since_created");
?>
"
name="<?php
echo $this->get_field_name("{$type}_since_created");
?>
">
<?php
foreach ($since_created_options as $since_created => $display_text) {
?>
<option
value="<?php
echo $since_created;
?>
" <?php
selected($values["{$type}_since_created"], $since_created);
?>
><?php
echo $display_text;
?>
</option>
<?php
}
?>
</select>
</label>
</p>
</div>
</div>
<?php
}
?>
</div>
<?php
}
示例4: printf
?>
</option>
<option value="last_6_months"><?php
printf(__rw('last-x-months'), 6);
?>
</option>
<option value="last_30_days"><?php
printf(__rw('last-x-days'), 30);
?>
</option>
<option value="last_7_days"><?php
printf(__rw('last-x-days'), 7);
?>
</option>
<option value="last_24_hours"><?php
printf(__rw('last-x-hours'), 24);
?>
</option>
</select>
</td>
</tr>
<tr>
<td colspan='2'>
<div
id="rw-toprated-note"><?php
_erw('add-table_shortcode-desc');
?>
</div>
</td>
</tr>
</table>
示例5: strtoupper
</p>
</div>
<!-- Single event type -->
<div class="workflow-template" data-class="event-type-template">
<div class="operations-container">
<div class="operations-list">
<div class="operation">
<div class="col"></div>
<div class="actions pull-right">
<button type="button" class="button button-small">
<span class="glyphicon glyphicon-minus-sign remove-operation"></span>
</button>
</div>
</div>
</div>
</div>
<p class="and-operation">
<a href="javascript:void(0);" class="add-operation" tabindex="-1">+ <?php
echo strtoupper(__rw('or'));
?>
</a>
</p>
</div>
</form>
<?php
// Allow other plugins to add HTML code below the <form> element. The Twitter add-on is using this action to add its own modal box that shows an information message after the add-on activation.
do_action('after_workflows_page_form_element');
?>
</div>
示例6: rw_options
<?php
$frequency = rw_options()->frequency;
?>
<div id="rw_frequency_settings" class="has-sidebar has-right-sidebar">
<div class="has-sidebar-content">
<div class="postbox rw-body">
<h3><?php
_erw('voting-frequency-settings');
?>
</h3>
<div class="inside rw-ui-content-container rw-no-radius" style="padding: 5px; width: 610px;">
<?php
$frquencies = array(array('f' => 'ONCE', 'label' => __rw('once'), 'days' => -1, 'desc' => __rw('once_desc')), array('f' => 'DAILY', 'label' => __rw('daily'), 'days' => 1, 'desc' => __rw('daily_desc')), array('f' => 'WEEKLY', 'label' => __rw('weekly'), 'days' => 7, 'desc' => __rw('weekly_desc')), array('f' => 'MONTHLY', 'label' => __rw('monthly'), 'days' => 30, 'desc' => __rw('monthly_desc')), array('f' => 'YEARLY', 'label' => __rw('annually'), 'days' => 365, 'desc' => __rw('annually_desc')), array('f' => 'UNLIMITED', 'label' => __rw('unlimited'), 'days' => 0, 'desc' => __rw('unlimited_desc')));
?>
<select>
<?php
foreach ($frquencies as $f) {
$selected = $frequency == $f['days'];
?>
<option name="rw_frequency" data-frequency="<?php
echo $f['f'];
?>
"
value="<?php
echo $f['days'];
?>
" <?php
if ($selected) {
echo ' selected="selected"';
示例7: number_format
<span><?php
//English notation
echo number_format($ratings);
?>
</span>
<?php
echo _n(__rw('rating'), __rw('ratings'), $ratings, WP_RW__ID);
?>
</div>
<div class="rw-stats-width-half rw-stats-numbers">
<span><?php
echo number_format($votes);
?>
</span>
<?php
echo _n(__rw('vote'), __rw('votes'), $votes, WP_RW__ID);
?>
</div>
<div class="rw-stats-width-full rw-stats-pos-bottom">
<div class="rw-stats-share-icons clear">
<p>
<a href="https://twitter.com/ratingwidget" target="blank" class="rw-stats-share-link">
<span class="rw-stats-icon rw-stats-icon-twitter"></span>
<span class="rw-stats-icon-label"><?php
_erw('follow-twitter');
?>
</span>
</a>
<a href="https://www.facebook.com/rating.widget" target="blank" class="rw-stats-share-link">
<span class="rw-stats-icon rw-stats-icon-facebook"></span>
<span class="rw-stats-icon-label"><?php
示例8: foreach
<div class="inside rw-ui-content-container rw-no-radius">
<?php
foreach ($views as $view) {
?>
<div class="rw-ui-img-radio rw-ui-hor<?php
if ($settings->{'show_on_' . $view}) {
echo ' rw-selected';
}
?>
">
<input type="checkbox" name="rw_show_on_<?php
echo $view;
?>
"
value="true" <?php
if ($settings->{'show_on_' . $view}) {
echo ' checked="checked"';
}
?>
> <span><?php
printf(__rw('visibility_show-on-every'), ucwords($view));
?>
</span>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
示例9: _admin_footer
/**
* Loads the workflows settings into a JavaScript variable.
* These settings are used when creating, editing, and sorting workflows.
*
* @author Leo Fajardo (@leorw)
* @since 1.0.0
*/
function _admin_footer()
{
$data = array('workflows' => $this->get_workflows(), 'workflows_id_order' => $this->get_workflow_ids(), 'text' => array('invalid_workflow' => __rw('invalid-workflow-name'), 'no_workflows' => __rw('no-workflows-to-load'), 'has_workflows' => __rw('workflows-processed-top-to-bottom'), 'and' => strtoupper(__rw('and')), 'or' => strtoupper(__rw('or')), 'add_and' => '+ ' . strtoupper(__rw('and')), 'add_or' => '+ ' . strtoupper(__rw('or')), 'activate' => __rw('activate'), 'deactivate' => __rw('deactivate'), 'confirm_delete' => __rw('workflow-delete-confirm'), 'delete_button' => __rw('delete'), 'cancel_button' => __rw('cancel'), 'close_button' => __rw('close')), 'operators' => $this->get_operators(), 'variable-types' => $this->get_variable_types(), 'actions' => apply_filters('rw_wf_actions', array()), 'event-types' => array('afterVote' => array('title' => __rw('after-vote')), 'beforeVote' => array('title' => __rw('before-vote'))));
echo '<script>var WORKFLOWS_SETTINGS = ' . json_encode($data) . '</script>';
}
示例10: __rw
<div class="rw-ui-img-radio<?php
if ($selected) {
echo ' rw-selected';
}
?>
" onclick="RWM.Set.align('<?php
echo $ver . "', '" . $hor;
?>
')">
<i class="rw-ui-holder"><i
class="rw-ui-sprite rw-ui-large rw-ui-<?php
echo $ver . $hor;
?>
"></i></i>
<span><?php
echo __rw($ver) . ' ' . __rw($hor);
?>
</span>
<input type="radio" name="rw-align"
value="<?php
echo $i * 3 + $j;
?>
"<?php
if ($selected) {
echo ' checked="checked"';
}
?>
/>
</div>
<?php
}
示例11: rw_get_site_img_path
<img class="featured-image" src="<?php
echo rw_get_site_img_path('/wordpress/rich-snippets.png');
?>
"
alt="Google SERP with Rich-Snippets">
<div class="disclaimer">
<a class="trigger" href="#"
onclick="jQuery(this).parent().find('p').toggle(); return false;">[+] <?php
_erw('disclaimer-uppercase');
?>
</a>
<p style="display: none">
<?php
printf(__rw('rich-snippets_disclaimer'), sprintf('<a href="%s" target="_blank">%s</a>', 'http://www.google.com/webmasters/tools/richsnippets', __rw('rich-snippets_testing-tool')), '<b>' . __rw('rich-snippets_disclaimer-bold') . '</b>');
?>
</p>
</div>
<div>
<a style="display: block; text-align: center;" href="<?php
echo rw_fs()->get_upgrade_url();
?>
"
onclick="_gaq.push(['_trackEvent', 'upgrade', 'wordpress', 'richsnippets_button', 1, true]); _gaq.push(['_link', this.href]); return false;"
class="button-secondary gradient rw-upgrade-button"><?php
_erw('upgrade-to-pro');
?>
</a>
</div>
</div>
示例12: extract
<?php
/**
* The view content for the admin notice used by ratingwidget()->five_star_wp_rate_notice() method.
*
* Generates the HTML content of the "5-star WP rating" message box.
* The minimum votes required to show this notice is passed from the five_star_wp_rate_notice method to the $VARS
* variable.
*/
// Import variables
extract($VARS);
?>
<div>
<?php
echo sprintf(__rw('rate-ask-message'), $min_votes_trigger);
?>
<br/><br/>
<strong><em>~ Vova Feldman</em></strong>
</div>
<ul data-nonce="<?php
echo wp_create_nonce('rw_five_star_wp_rate_action_nonce');
?>
">
<li><a data-rate-action="do-rate"
href="https://wordpress.org/support/view/plugin-reviews/rating-widget?rate=5#postform"><?php
_erw('rate-ask_ok');
?>
</a>
</li>
<li><a data-rate-action="done-rating" href="#"><?php
_erw('rate-ask_already-did');
示例13: rw_options
<?php
$selected_size = rw_options()->size;
?>
<td class="rw-ui-def-width">
<span class="rw-ui-def"><?php
_erw('size');
?>
:</span>
</td>
<td>
<?php
$sizes = array('tiny' => __rw('tiny'), 'small' => __rw('small'), 'medium' => __rw('medium'), 'large' => __rw('large'));
$tab_index = 5;
foreach ($sizes as $size => $label) {
?>
<div class="rw-ui-img-radio<?php
if ($selected_size == $size) {
echo ' rw-selected';
}
?>
" onclick="RWM.Set.size(RW.SIZE.<?php
echo strtoupper($size);
?>
);">
<i class="rw-ui-holder"><i
class="rw-ui-sprite rw-ui-star rw-ui-<?php
echo $size;
?>
rw-ui-yellow"></i></i>
<span><?php
示例14: json_encode
modal : true,
autoOpen : false,
closeOnEscape: true,
width : 430,
buttons : {
// Add button labels in this way so that it will work with WordPress 3.0 and below
<?php
echo json_encode(__rw('addons_add-to-waiting-list'));
?>
: function () {
$('.addons-page-notice').show();
sendData({addon_action: $popupDialog.find('.addon-action').val(), add_user: true});
$popupDialog.dialog('close');
},
<?php
echo json_encode(__rw('addons_silent-report'));
?>
: function () {
sendData({addon_action: $popupDialog.find('.addon-action').val()});
$popupDialog.dialog('close');
}
}
};
$popupDialog.dialog(dialogOptions);
if (wpVersion <= 3) {
applyCustomDialogStyles(dialogOptions);
}
// Not a very nice way of adding classes, but works with all versions of WordPress.
示例15: checked
<i class="rw-ui-sprite rw-ui-availability-disabled"></i> <input type="radio" name="rw_availability"
value="1" <?php
checked($availability, 1);
?>
>
<span><?php
printf(__rw('user-availability-settings_disable-unlogged'), $types);
?>
</span>
</div>
<div class="rw-ui-img-radio rw-ui-hor<?php
if ($availability == 2) {
echo ' rw-selected';
}
?>
">
<i class="rw-ui-sprite rw-ui-availability-hidden"></i> <input type="radio" name="rw_availability"
value="2" <?php
checked($availability, 2);
?>
>
<span><?php
printf(__rw('user-availability-settings_hide-unlogged'), $types);
?>
</span>
</div>
</div>
</div>
</div>
</div>