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


PHP wp_credits函数代码示例

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


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

示例1: error

function error($error)
{
    ?>

<div style="font-family: Arial">
  <h2 align="center">An Error Has Occured</h2>
  <div align="center">
    <div style="width: 400px; padding: 10px; text-align: left; background-color: #336699; color: #fff; font-weight:bold; font-family: Arial; border: 1px solid #ccc;"> <?php 
    echo $error;
    ?>
 </div>
    <a href="javascript:window.history.go(-1);">Click Here To Go Back</a> </div>
</div>
<?php 
    wp_credits();
    exit;
}
开发者ID:rpiket,项目名称:WP-Autoresponder,代码行数:17,代码来源:optin.php

示例2: _e

		<?php 
_e('What&#8217;s New');
?>
	</a><a href="credits.php" class="nav-tab nav-tab-active">
		<?php 
_e('Credits');
?>
	</a><a href="freedoms.php" class="nav-tab">
		<?php 
_e('Freedoms');
?>
	</a>
</h2>

<?php 
$credits = wp_credits();
if (!$credits) {
    echo '<p class="about-description">' . sprintf(__('WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.'), 'https://wordpress.org/about/', __('http://codex.wordpress.org/Contributing_to_WordPress')) . '</p>';
    include ABSPATH . 'wp-admin/admin-footer.php';
    exit;
}
echo '<p class="about-description">' . __('WordPress is created by a worldwide team of passionate individuals.') . "</p>\n";
$gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';
foreach ($credits['groups'] as $group_slug => $group_data) {
    if ($group_data['name']) {
        if ('Translators' == $group_data['name']) {
            // Considered a special slug in the API response. (Also, will never be returned for en_US.)
            $title = _x('Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section');
        } elseif (isset($group_data['placeholders'])) {
            $title = vsprintf(translate($group_data['name']), $group_data['placeholders']);
        } else {
开发者ID:easinewe,项目名称:Avec2016,代码行数:31,代码来源:credits.php


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