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


PHP Shopp::_e方法代码示例

本文整理汇总了PHP中Shopp::_e方法的典型用法代码示例。如果您正苦于以下问题:PHP Shopp::_e方法的具体用法?PHP Shopp::_e怎么用?PHP Shopp::_e使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Shopp的用法示例。


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

示例1: no_items

 public function no_items()
 {
     Shopp::_e('No payment methods, yet.');
 }
开发者ID:msigley,项目名称:shopp,代码行数:4,代码来源:Payments.php

示例2: order_address_editor

function order_address_editor()
{
    ob_start();
    ?>

	<div class="editor">
	<p class="inline-fields">
		<span>
		<input type="text" name="${type}[firstname]" id="${type}-firstname" value="${firstname}" /><br />
		<label for="address-city"><?php 
    _e('First Name', 'Shopp');
    ?>
</label>
		</span>
		<span>
		<input type="text" name="${type}[lastname]" id="${type}-lastname" value="${lastname}" /><br />
		<label for="address-city"><?php 
    _e('Last Name', 'Shopp');
    ?>
</label>
		</span>
	</p>
	<p>
		<input type="text" name="${type}[address]" id="${type}-address" value="${address}" /><br />
		<input type="text" name="${type}[xaddress]" id="${type}-xaddress" value="${xaddress}" /><br />
		<label for="address-address"><?php 
    _e('Street Address', 'Shopp');
    ?>
</label>
	</p>
	<p class="inline-fields">
		<span>
		<input type="text" name="${type}[city]" id="${type}-city" value="${city}" size="14" /><br />
		<label for="address-city"><?php 
    _e('City', 'Shopp');
    ?>
</label>
		</span>
		<span id="${type}-state-inputs">
			<select name="${type}[state]" id="${type}-state-menu">${statemenu}</select>
			<input type="text" name="${type}[state]" id="${type}-state" value="${state}" size="12" disabled="disabled"  class="hidden" />
		<label for="address-state"><?php 
    _e('State / Province', 'Shopp');
    ?>
</label>
		</span>
		<span>
		<input type="text" name="${type}[postcode]" id="${type}-postcode" value="${postcode}" size="10" /><br />
		<label for="address-postcode"><?php 
    _e('Postal Code', 'Shopp');
    ?>
</label>
		</span>
		<span>
			<select name="${type}[country]" id="${type}-country">${countrymenu}</select>
			<label for="address-country"><?php 
    _e('Country', 'Shopp');
    ?>
</label>
		</span>
	</p>
		<input type="submit" id="cancel-edit-address" name="cancel-edit-address" value="<?php 
    Shopp::_e('Cancel');
    ?>
" class="button-secondary" />
		<div class="alignright">
		<input type="submit" name="submit-address" value="<?php 
    Shopp::_e('Update');
    ?>
" class="button-primary" />
		</div>
	</div>

	<?php 
    return ob_get_clean();
}
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:76,代码来源:ui.php

示例3:

							<?php 
            $even = !$even;
        }
    }
    ?>
						</ul>
					</div>
				<?php 
} else {
    ?>
					<button type="submit" id="shopp-services-helper" name="shopp_services_helper" value="install" class="button-secondary"><?php 
    Shopp::_e('Install Services Helper');
    ?>
</button>
					<p><?php 
    Shopp::_e('Install the services helper to improve performance and reliability');
    ?>
				<?php 
}
?>

					</td>
			</tr>
			<tr>
				<th scope="row" valign="top"><label for="rebuild-index"><?php 
_e('Search Index', 'Shopp');
?>
</label></th>
				<td><button type="button" id="rebuild-index" name="rebuild" class="button-secondary"><?php 
_e('Rebuild Product Search Index', 'Shopp');
?>
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:advanced.php

示例4: wp_nonce_field

		<?php 
wp_nonce_field('shopp-system-log');
?>

		<?php 
if (count(ShoppErrorLogging()->tail(2)) > 1) {
    ?>
			<iframe id="logviewer" src="<?php 
    echo esc_url($logurl);
    ?>
">
			<p>Loading log file...</p>
			</iframe>

			<p class="alignright"><a href="<?php 
    echo esc_url($logurl);
    ?>
" class="button" target="_blank"><?php 
    Shopp::_e('Open in New Window');
    ?>
</a> <button name="resetlog" id="resetlog" value="resetlog" class="button"><?php 
    Shopp::_e('Clear Log');
    ?>
</button></p>
		<?php 
}
?>

	</form>
</div>
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:30,代码来源:log.php

示例5: shopp_debug

            shopp_debug('A Shopp upgrade notification was sent.');
        }
        Shopp::_em('### Upgrade Notice Sent

An upgrade notice has been sent to the site administrator.');
        ?>
		<?php 
    } else {
        ?>

			<div class="error"><?php 
        Shopp::_em('### Contact Your Site Administrator

You will need to notify a site administrator to perform the upgrade.');
        ?>
			</div>
			<div class="alignright">
			<a href="<?php 
        echo wp_nonce_url(add_query_arg('_shopp_upgrade_notice', true), 'shopp_upgrade_notice');
        ?>
" class="button-primary"><span class="shoppui-envelope-alt">&nbsp;</span> <?php 
        Shopp::_e('Send Upgrade Notice');
        ?>
</a>
			</div>

	<?php 
    }
}
?>
</div>
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:update.php

示例6: foreach

<div class="wrap about-wrap">

	<?php 
$this->heading();
?>

	<p class="about-description"><?php 
Shopp::_e('Shopp is crafted by a talented team of professionals practicing the art and engineering of e-commerce.');
?>
</p>

	<?php 
$contributors = $this->contributors();
?>

	<?php 
if (!empty($contributors)) {
    ?>
	<ul class="wp-people-group">
		<?php 
    foreach ($contributors as $contributor) {
        ?>
		<li class="wp-person">
			<a href="<?php 
        echo esc_url($contributor->link);
        ?>
"><img src="<?php 
        echo esc_url($contributor->avatar_url);
        ?>
" width="64" height="64" class="gravatar" alt="<?php 
        echo esc_html($contributor->login);
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:credits.php

示例7: esc_html

	</form>
<?php 
    return;
}
?>
<form action="<?php 
echo $this->url();
?>
" method="post" id="shipping-address-editor"></form>
<div class="display">
	<form action="<?php 
echo $this->url();
?>
" method="post">
	<input type="submit" id="edit-shipping-address" name="edit-shipping-address" value="<?php 
Shopp::_e('Edit');
?>
" class="button-secondary button-edit" />
	</form>

	<address><big><?php 
echo esc_html($Purchase->shipname);
?>
</big><br />
	<?php 
echo esc_html($Purchase->shipaddress);
?>
<br />
	<?php 
if (!empty($Purchase->shipxaddress)) {
    echo esc_html($Purchase->shipxaddress) . "<br />";
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:shipping.php

示例8: colon

?>
:</strong></td><td>state:"new york"<br />province:ontario</td></tr>
<tr><td><strong><?php 
Shopp::_e('Zip/Postal Codes', 'Shopp');
?>
:</strong></td><td>zip:95131<br />postcode:M1P1C0</td></tr>
<tr><td><strong><?php 
Shopp::_e('Country', 'Shopp');
?>
:</strong></td><td>country:US</td></tr>
<tr><td><strong><?php 
Shopp::_e('Product', 'Shopp');
?>
:</strong></td><td>product:"acme widget"<br />product:widget<br />product:SKU123</td></tr>
<tr><td><strong><?php 
Shopp::_e('Discounts', 'Shopp');
?>
:</strong></td><td>discount:"25% off"<br />discount:code123</td></tr>
</table>
<?php 
$table = ob_get_clean();
$Search = Shopp::_mx('### Search

Using the search field, you can find orders by entering a specific order number, the customer’s email address or any part of the customer’s name. Click the **Search Orders** button to run the search.

### Advanced Search

Advanced search operations can be performed by using specially formatted search terms. The format for searching specific order information follows a pattern that includes a keyword identifying what order information to search followed by a colon (:) and a search term:

All of these advanced searches can be used:
开发者ID:msigley,项目名称:shopp,代码行数:30,代码来源:orders.php

示例9: notes_meta_box

function notes_meta_box($Purchase)
{
    global $Notes;
    add_filter('shopp_order_note', 'esc_html');
    add_filter('shopp_order_note', 'wptexturize');
    add_filter('shopp_order_note', 'convert_chars');
    add_filter('shopp_order_note', 'make_clickable');
    add_filter('shopp_order_note', 'force_balance_tags');
    add_filter('shopp_order_note', 'convert_smilies');
    add_filter('shopp_order_note', 'wpautop');
    ?>
<form action="<?php 
    echo ShoppAdminController::url(array('id' => $Purchase->id));
    ?>
" method="post">
<?php 
    if (!empty($Notes->meta)) {
        ?>
<table>
	<?php 
        foreach ($Notes->meta as $Note) {
            $User = get_userdata($Note->value->author);
            ?>
	<tr>
		<th class="column-author column-username"><?php 
            echo get_avatar($User->ID, 32);
            ?>
			<?php 
            echo esc_html($User->display_name);
            ?>
<br />
			<span><?php 
            echo _d(get_option('date_format'), $Note->created);
            ?>
</span>
			<span><?php 
            echo _d(get_option('time_format'), $Note->created);
            ?>
</span></th>
		<td>
			<div id="note-<?php 
            echo $Note->id;
            ?>
">
			<?php 
            if ($Note->value->sent == 1) {
                ?>
				<p class="notesent"><?php 
                _e('Sent to the Customer:', 'Shopp');
                ?>
 </p>
			<?php 
            }
            ?>
			<?php 
            echo apply_filters('shopp_order_note', $Note->value->message);
            ?>
			</div>
			<p class="notemeta">
				<span class="notectrls">
				<button type="submit" name="delete-note[<?php 
            echo $Note->id;
            ?>
]" value="delete" class="button-secondary deletenote"><small><?php 
            Shopp::_e('Delete');
            ?>
</small></button>
				<button type="button" name="edit-note[<?php 
            echo $Note->id;
            ?>
]" value="edit" class="button-secondary editnote"><small><?php 
            Shopp::_e('Edit');
            ?>
</small></button>
				<?php 
            do_action('shopp_order_note_controls');
            ?>
				</span>
			</p>
		</td>
	</tr>
	<?php 
        }
        ?>
</table>
<?php 
    }
    ?>

<div id="notation">
	<p><label for="notes"><?php 
    _e('New Note', 'Shopp');
    ?>
:</label><br />
		<textarea name="note" id="note" cols="50" rows="10"></textarea></p>
	<?php 
    do_action('shopp_order_new_note_ui');
    ?>
	<p class="alignright">
		<button type="button" name="cancel-note" value="cancel" id="cancel-note-button" class="button-secondary"><?php 
//.........这里部分代码省略.........
开发者ID:forthrobot,项目名称:inuvik,代码行数:101,代码来源:ui.php

示例10: esc_html

?>
</td>
		<td><span class="fn"><?php 
echo esc_html("{$Purchase->firstname} {$Purchase->lastname}");
?>
</span>
		<?php 
if (!empty($Purchase->company)) {
    echo '<br /> <div class="org">' . esc_html($Purchase->company) . '</div>';
}
?>
		<div class="actions"><a href="<?php 
echo $customer_url;
?>
"><?php 
Shopp::_e('View');
?>
</a><?php 
if ('wordpress' == $accounts && !empty($WPUser->user_login)) {
    ?>
 | <a href="<?php 
    echo esc_attr($edituser_url);
    ?>
"><span class="dashicons dashicons-admin-users"></span>&nbsp;<?php 
    echo esc_html($WPUser->user_login);
    ?>
</a><?php 
}
?>
</div>
		</td>
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:contact.php

示例11: _e

?>
<br /><?php 
_e('Enable to restrict downloads to the IP address the product is purchased from.', 'Shopp');
?>
</label></td>
	</tr>
	<tr>
<th scope="row" valign="top"><label for="download-quantity"><?php 
Shopp::_e('Download Quantity');
?>
</label></th>
		<td><input type="hidden" name="settings[download_quantity]" value="off" />
	<label for="download-quantity"><input type="checkbox" name="settings[download_quantity]" id="download-quantity" value="on" <?php 
echo shopp_setting_enabled('download_quantity') ? 'checked="checked" ' : '';
?>
 /> <?php 
Shopp::_e('Enabled');
?>
</label><br />
	<?php 
Shopp::_e('Allow shoppers to change the item quantity for downloads.');
?>
</td>
	</tr>
</table>

<p class="submit"><input type="submit" class="button-primary" name="save" value="<?php 
_e('Save Changes', 'Shopp');
?>
" /></p>
开发者ID:msigley,项目名称:shopp,代码行数:30,代码来源:downloads.php

示例12: _e

		</td>
		</tr>
		<tr class="total">
			<td scope="row" colspan="<?php 
echo $colspan;
?>
" class="label"><?php 
_e('Total', 'Shopp');
?>
</td>
			<td class="money"><input type="text" id="order-total" name="totals[total]" value="<?php 
echo money($Purchase->total);
?>
" size="7" class="money selectall">
				<input type="submit" id="save-totals" name="save-totals" value="<?php 
Shopp::_e('Save');
?>
" class="button-primary"></td>
		</tr>

		</tfoot>

		<tbody id="order-items" class="list items">
		<?php 
if (count($Purchase->purchased) > 0) {
    ?>
			<?php 
    $columns = get_column_headers($this->id);
    $hidden = get_hidden_columns($this->id);
    $even = false;
    foreach ($Purchase->purchased as $id => $Item) {
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:editor.php

示例13: money

<table class="widefat history">
	<tfoot>
		<tr class="balance">
			<td colspan="3"><?php 
Shopp::_e('Order Balance');
?>
</td>
			<td><?php 
echo money($Purchase->balance);
?>
</td>
		</tr>
	</tfoot>
	<tbody>
	<?php 
foreach ($Purchase->events as $id => $Event) {
    echo apply_filters('shopp_order_manager_event', $Event);
}
?>
	</tbody>
</table>
开发者ID:forthrobot,项目名称:inuvik,代码行数:21,代码来源:history.php

示例14: shopp_admin_screen_tabs

</script>

<?php 
$Table->display();
return;
?>

<?php 
shopp_admin_screen_tabs();
?>

<div class="wrap shopp">

	<div class="icon32"></div>
	<h2><?php 
Shopp::_e('Pages');
?>

	<?php 
do_action('shopp_admin_notices');
?>

	<form action="<?php 
echo esc_url($this->url);
?>
" id="pages" method="post">
	<div>
		<?php 
wp_nonce_field('shopp-settings-pages');
?>
	</div>
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:pages.php

示例15: esc_attr

	<input type="text" name="company" id="company" value="<?php 
echo esc_attr($Customer->company);
?>
" />
</p>
<p class="inline-fields">
	<span>
	<label for="email"><?php 
Shopp::_e('Email');
?>
 <em><?php 
Shopp::_e('(required)');
?>
</em></label>
	<input type="text" name="email" id="email" value="<?php 
echo esc_attr($Customer->email);
?>
" />
	</span>
	<span>
	<label for="phone"><?php 
Shopp::_e('Phone');
?>
</label>
	<input type="text" name="phone" id="phone" value="<?php 
echo esc_attr($Customer->phone);
?>
" />
	</span>
</p>
</div>
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:contact.php


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