예제 #1
0
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;
}
예제 #2
0
		<?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 {