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


PHP _erw函数代码示例

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


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

示例1: rw_options

<?php

require_once WP_RW__PLUGIN_DIR . "/themes/dir.php";
require_once WP_RW__PLUGIN_DIR . "/lib/defaults.php";
require_once WP_RW__PLUGIN_DIR . "/lib/def_settings.php";
global $DEFAULT_OPTIONS;
$options_type = rw_options()->type;
$options_theme = rw_options()->theme;
?>
<td><span class="rw-ui-def"><?php 
_erw('theme');
?>
:</span></td>
<td>
	<img id="rw_theme_loader" src="<?php 
echo WP_RW__ADDRESS_IMG;
?>
rw.loader.gif" alt=""/>
	<?php 
global $RW_THEMES;
foreach ($RW_THEMES as $type => $type_themes) {
    ?>
			<div id="rw_<?php 
    echo $type;
    ?>
_theme_select" class="rw-select" style="display: none;">
				<select tabindex="4">
					<option></option>
				</select>
				<i class="rw-select-icon"></i>
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:30,代码来源:theme.php

示例2: 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 
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:31,代码来源:size.php

示例3: 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"';
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:31,代码来源:frequency.php

示例4: _erw

?>
</p>
							</li>
							<li>
								<b>{{avg_rate}}</b>

								<p class="description"><?php 
_erw('template_avg-rate');
?>
</p>
							</li>
							<li>
								<b>{{post.title}}</b>

								<p class="description" id="tagline-description"><?php 
_erw('template_title');
?>
</p>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<input type="hidden" name="add-on" value="<?php 
echo $selected_key;
?>
"/>
		<input type="hidden" name="rw-save-addons-settings"/>
	</form>
</div>
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:31,代码来源:addon-settings.php

示例5: _erw

"<?php 
    if ($font->type == $f) {
        echo ' checked="checked"';
    }
    ?>
 />
					</div>
				<?php 
}
?>
		</td>
	</tr>
	<tr id="rw_font_style" class="rw-odd">
		<td class="rw-ui-def-width">
			<span class="rw-ui-def"><?php 
_erw('style');
?>
:</span>
		</td>
		<td>
			<div class="rw-ui-img-radio<?php 
if ($font->bold) {
    echo " rw-selected";
}
?>
" onclick="rwStar.toggleBold(); rwNero.toggleBold();">
				<i class="rw-ui-holder"><i id="rw_ui_bold" class="rw-ui-sprite rw-ui-large"></i></i>
				<span><b>Bold</b></span>
				<input type="checkbox" name="rw-font-bold" value="0"<?php 
if ($font->bold) {
    echo ' checked="checked"';
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:31,代码来源:font.php

示例6: SettingsPage


//.........这里部分代码省略.........
                    $comment_ratings_mode_settings = $this->get_comment_ratings_mode_settings();
                    $comment_ratings_mode_settings->comment_ratings_mode = $comment_ratings_mode;
                    $this->SetOption(WP_RW__DB_OPTION_IS_ADMIN_COMMENT_RATINGS_SETTINGS, $comment_ratings_mode_settings);
                }
                /* Visibility settings
                   ---------------------------------------------------------------------------------------------------------------*/
                $rw_visibility = isset($_POST['rw_visibility']) ? max(0, min(2, (int) $_POST['rw_visibility'])) : 0;
                $rw_visibility_exclude = isset($_POST['rw_visibility_exclude']) ? $_POST['rw_visibility_exclude'] : '';
                $rw_visibility_include = isset($_POST['rw_visibility_include']) ? $_POST['rw_visibility_include'] : '';
                $rw_custom_settings_enabled = isset($_POST['rw_custom_settings_enabled']) ? true : false;
                if (!isset($this->custom_settings_enabled_list)) {
                    $this->custom_settings_enabled_list = new stdClass();
                }
                $this->custom_settings_enabled_list->{$rw_class} = $rw_custom_settings_enabled;
                $this->SetOption(WP_RW__CUSTOM_SETTINGS_ENABLED, $this->custom_settings_enabled_list);
                $rw_custom_settings = isset($_POST['rw_custom_settings']) ? $_POST['rw_custom_settings'] : '';
                if (!isset($this->custom_settings_list)) {
                    $this->custom_settings_list = new stdClass();
                }
                $this->custom_settings_list->{$rw_class} = $rw_custom_settings;
                $this->SetOption(WP_RW__CUSTOM_SETTINGS, $this->custom_settings_list);
                if (!isset($this->_visibilityList)) {
                    $this->_visibilityList = new stdClass();
                }
                if (!isset($this->_visibilityList->{$rw_class})) {
                    $this->_visibilityList->{$rw_class} = new stdClass();
                }
                $this->_visibilityList->{$rw_class}->selected = $rw_visibility;
                $this->_visibilityList->{$rw_class}->exclude = self::IDsCollectionToArray($rw_visibility_exclude);
                $this->_visibilityList->{$rw_class}->include = self::IDsCollectionToArray($rw_visibility_include);
                $this->SetOption(WP_RW__VISIBILITY_SETTINGS, $this->_visibilityList);
                ?>
					<div class="updated"><p><strong><?php 
                _erw('settings-successfully-saved');
                ?>
</strong>
						</p></div>
				<?php 
            } else {
                /* Get rating alignment.
                   ---------------------------------------------------------------------------------------------------------------*/
                $rw_align = $this->GetOption($rw_current_settings['align']);
                /* Get show on excerpts option.
                   ---------------------------------------------------------------------------------------------------------------*/
                // Already loaded.
                /* Get rating options.
                   ---------------------------------------------------------------------------------------------------------------*/
                $rw_options = $this->GetOption($rw_current_settings['options']);
            }
            $rw_language_str = isset($rw_options->lng) ? $rw_options->lng : WP_RW__DEFAULT_LNG;
            if (!isset($this->_visibilityList->{$rw_class})) {
                $this->_visibilityList->{$rw_class} = new stdClass();
                $this->_visibilityList->{$rw_class}->selected = 0;
                $this->_visibilityList->{$rw_class}->exclude = '';
                $this->_visibilityList->{$rw_class}->include = '';
            }
            $rw_visibility_settings = $this->_visibilityList->{$rw_class};
            if (!isset($this->availability_list->{$rw_class})) {
                $this->availability_list->{$rw_class} = 0;
            }
            $rw_availability_settings = $this->availability_list->{$rw_class};
            if ($item_with_category) {
                if (!isset($this->categories_list->{$rw_class})) {
                    $this->categories_list->{$rw_class} = array(-1);
                }
                $rw_categories = $this->categories_list->{$rw_class};
开发者ID:robertoAg,项目名称:wordpress_humor,代码行数:67,代码来源:rating-widget.php

示例7: printf

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>
	</div>
</div>
开发者ID:zakaria340,项目名称:critique,代码行数:30,代码来源:visibility_options.php

示例8: _erw

<div class="has-sidebar has-right-sidebar">
	<div class="has-sidebar-content">
		<div class="postbox rw-body">
			<h3><?php 
_erw('ratingwidget-options');
?>
</h3>

			<div class="inside rw-ui-content-container rw-no-radius">
				<table>
					<?php 
$odd = false;
?>
					<tr id="rw_language" class="rw-<?php 
echo ($odd = !$odd) ? 'odd' : 'even';
?>
">
						<?php 
rw_include_once_view('settings/language.php');
?>
					</tr>
					<tr id="rw_rate_type" class="rw-<?php 
echo ($odd = !$odd) ? 'odd' : 'even';
?>
">
						<?php 
rw_include_once_view('settings/type.php');
?>
					</tr>
					<tr id="rw_theme" class="rw-<?php 
echo ($odd = !$odd) ? 'odd' : 'even';
开发者ID:zakaria340,项目名称:critique,代码行数:31,代码来源:options.php

示例9: _erw

			<div class="has-sidebar-content">
				<div class="postbox rw-body">
					<h3><?php 
    _erw('categories-visibility-settings');
    ?>
</h3>

					<div class="inside rw-ui-content-container rw-no-radius">
						<select data-placeholder="Choose Categories..." multiple>
							<option value="-1" <?php 
    if ($all) {
        echo ' selected="selected"';
    }
    ?>
><?php 
    _erw('all-categories');
    ?>
</option>
							<?php 
    foreach ($all_categories as $category) {
        $selected = $all || in_array($category->cat_ID, rw_settings()->categories);
        ?>
								<option value="<?php 
        echo $category->cat_ID;
        ?>
" <?php 
        if ($selected) {
            echo ' selected="selected"';
        }
        ?>
><?php 
开发者ID:zakaria340,项目名称:critique,代码行数:31,代码来源:categories_availability_options.php

示例10: rw_get_site_img_path

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>
</div>
开发者ID:zakaria340,项目名称:critique,代码行数:31,代码来源:rich-snippets.php

示例11: foreach

if ($settings->IsSaveMode()) {
    foreach ($views as $view) {
        $settings->{'show_on_' . $view} = isset($_POST['rw_show_on_' . $view]) ? true : false;
        ratingwidget()->SetOption('rw_show_on_' . $view, $settings->{'show_on_' . $view});
    }
} else {
    foreach ($views as $view) {
        $settings->{'show_on_' . $view} = false !== ratingwidget()->GetOption('rw_show_on_' . $view);
    }
}
?>
<div class="has-sidebar has-right-sidebar">
	<div class="has-sidebar-content">
		<div class="postbox rw-body">
			<h3><?php 
_erw('post-views-settings');
?>
</h3>

			<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;
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:31,代码来源:post_views_visibility.php

示例12: _erw

</li>
			<li><?php 
_erw('upgrade_priority-email');
?>
</li>
			<li><?php 
_erw('upgrade_ssl');
?>
</li>
			<li><?php 
_erw('upgrade_secure-connection');
?>
</li>
			<li><?php 
_erw('upgrade_wpml');
?>
</li>
		</ul>
		<div id="rw_new_wp_subscribe">
			<a style="display: block; text-align: center;" href="<?php 
echo rw_fs()->get_upgrade_url();
?>
"
			   onclick="_gaq.push(['_trackEvent', 'upgrade', 'wordpress', 'gopro_button', 1, true]); _gaq.push(['_link', this.href]); return false;"
			   class="button-secondary gradient rw-upgrade-button"><?php 
_erw('learn-more');
?>
</a>
		</div>
	</div>
</div>
开发者ID:RatingWidget,项目名称:wordpress-plugin,代码行数:31,代码来源:upgrade.php

示例13: extract

 * 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');
?>
</a></li>
	<li><a data-rate-action="not-enough" href="#"><?php 
_erw('rate-ask_no');
?>
</a></li>
</ul>
开发者ID:zakaria340,项目名称:critique,代码行数:31,代码来源:five-star-wp-rate-notice.php

示例14: _erw

<td><span class="rw-ui-def"><?php 
_erw('language');
?>
:</span></td>
<td>
    <select id="rw_lng_select" tabindex="1" name="rw_language" style="font-size: 12px;" onchange="RWM.Set.language(this.value);">
        <?php 
$language_str = isset(rw_settings()->language_str) ? rw_settings()->language_str : 'en';
foreach (rw_settings()->languages as $short => $long) {
    echo '<option value="' . $short . '"' . ($short == $language_str ? ' selected="selected"' : '') . '>' . $long . '</option>';
}
?>
    </select>
</td>
开发者ID:zakaria340,项目名称:critique,代码行数:14,代码来源:language.php

示例15: _erw

 ...</div>
			</div>
			<ul class="list-group"></ul>

			<!-- WHEN part of the operation -->
			<div>
						<span class="pull-right">
							<button class="button button-primary button-small edit-workflow edit-events"
							        data-toggle="tab" href="#edit-events"><?php 
_erw('edit');
?>
</button>
						</span>

				<div><?php 
_erw('when');
?>
 ...</div>
			</div>
			<ul class="list-group"></ul>
		</div>
	</div>
</div>

<!-- Single operation -->
<div class="workflow-template" data-class="operation">
	<i class="badge or"><?php 
strtolower(__rw('or'));
?>
</i>
开发者ID:robertoAg,项目名称:wordpress_humor,代码行数:30,代码来源:workflows.php


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