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


PHP gp_title函数代码示例

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


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

示例1: gp_title

<?php

/**
 * The settings page
 *
 * Displays the settings page for a user.
 *
 * @link http://glotpress.org
 *
 * @package GlotPress
 * @since 2.0.0
 */
gp_title(__('Your Settings &lt; GlotPress', 'glotpress'));
gp_breadcrumb(array(__('Your Settings', 'glotpress')));
gp_tmpl_header();
$per_page = (int) get_user_option('gp_per_page');
if (0 === $per_page) {
    $per_page = 15;
}
$default_sort = get_user_option('gp_default_sort');
if (!is_array($default_sort)) {
    $default_sort = array('by' => 'priority', 'how' => 'desc');
}
?>
<h2><?php 
_e('Your Settings', 'glotpress');
?>
</h2>
<form action="" method="post">
	<?php 
include_once __DIR__ . '/settings-edit.php';
开发者ID:ramiy,项目名称:GlotPress-WP,代码行数:31,代码来源:settings.php

示例2: gp_title

<?php

gp_title(sprintf(__('Permissions &lt; %s &lt; GlotPress'), $project->name));
gp_breadcrumb_project($project);
gp_tmpl_header();
?>
<h2><?php 
_e('Permissions');
?>
</h2>
<h3 id="validators">
	<?php 
_e('Validators');
?>
	<?php 
if (count($permissions) + count($parent_permissions) > 10) {
    ?>
	<a href="#add" onclick="jQuery('#user_login').focus(); return false;" class="secondary">Add &rarr;</a>
	<?php 
}
?>
</h3>
	<?php 
if ($permissions) {
    ?>
	<?php 
    if ($parent_permissions) {
        ?>
<h4 id="validators"><?php 
        _e('Validators for this project');
        ?>
开发者ID:pedro-mendonca,项目名称:GlotPress-WP,代码行数:31,代码来源:project-permissions.php

示例3: gp_title

<?php

gp_title(__('Create New Translation Set &lt; GlotPress'));
gp_breadcrumb(array(__('Create New Translation Set')));
gp_tmpl_header();
?>
<h2><?php 
_e('Create New Translation Set');
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('translation-set-form', get_defined_vars());
?>
	<p><input type="submit" name="submit" value="<?php 
echo esc_attr(__('Create'));
?>
" id="submit" /></p>
</form>
<?php 
gp_tmpl_footer();
开发者ID:rmccue,项目名称:GlotPress,代码行数:21,代码来源:translation-set-new.php

示例4: gp_title

<?php

gp_title(__('View Glossary &lt; GlotPress', 'glotpress'));
gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug), $translation_set->name), __('Glossary', 'glotpress')));
$ge_delete_ays = __('Are you sure you want to delete this entry?', 'glotpress');
$delete_url = $url . '/-delete';
$glossary_options = compact('can_edit', 'url', 'delete_url', 'ge_delete_ays');
gp_enqueue_script('gp-glossary');
wp_localize_script('gp-glossary', '$gp_glossary_options', $glossary_options);
gp_tmpl_header();
?>

<h2><?php 
printf(_x('Glossary for %1$s translation of %2$s', '{language} / { project name}', 'glotpress'), esc_html($translation_set->name), esc_html($project->name));
?>
	<?php 
gp_link_glossary_edit($glossary, $translation_set, __('(edit)', 'glotpress'));
?>
</h2>

<?php 
if ($glossary->description) {
    echo '<p class="description">' . make_clickable(nl2br(wp_kses_post($glossary->description))) . '</p>';
}
?>

<table class="glossary" id="glossary">
	<thead>
		<tr>
			<th style="width:20%"><?php 
_ex('Item', 'glossary entry', 'glotpress');
开发者ID:johnjamesjacoby,项目名称:GlotPress-WP,代码行数:31,代码来源:glossary-view.php

示例5: gp_title

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width">
	<title><?php 
echo gp_title();
?>
</title>

	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
		<script src="<?php 
echo gp_url_base_root();
?>
plugins/child-theme/templates/js/html5shiv.js" defer></script>
		<script src="<?php 
echo gp_url_base_root();
?>
plugins/child-theme/templates/js/respond.js" defer></script>
	<![endif]-->

	<?php 
gp_head();
?>

</head>

<body <?php 
body_class();
开发者ID:WeFoster,项目名称:translate.wefoster.co,代码行数:31,代码来源:header.php

示例6: gp_title

<?php

gp_title(__('Projects &lt; GlotPress'));
gp_tmpl_header();
?>

		<h2><?php 
printf(__('Projects'));
?>
</h2>

		<p class="intro">Hi there! Here we translate all of the WeFoster Plugins and Themes.

If you have an account on WeFoster.co you can use that account to login here, and join our community of translators! Please take a look at our Translators Group to learn more about contributing and the (awesome) rewards it can earn you!</p>


		<h4> Choose a product to see the translations..</h4>
		<ul class="list-group">
		<?php 
foreach ($projects as $project) {
    ?>
			<li class="list-group-item">
				<?php 
    gp_link_project($project, esc_html($project->name));
    ?>
				<?php 
    gp_link_project_edit($project, null, array('class' => 'btn btn-xs btn-primary'));
    ?>
			</li>
		<?php 
}
开发者ID:WeFoster,项目名称:translate.wefoster.co,代码行数:31,代码来源:projects.php

示例7: gp_title

<?php

gp_title(__('Import into Glossary &lt; GlotPress'));
gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug), $translation_set->name), gp_link_get(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug) . '/glossary', __('Glossary')), __('import')));
gp_tmpl_header();
?>

		<h2><?php 
_e('Import Glossary Entries');
?>
</h2>

		<p>
			<?php 
printf(__('Use this from to bulk upload glossary entries. The entries should be stored in a CSV file,  matching the custom glossary format from <a href="%s">Google Translator Toolkit</a>'), 'https://support.google.com/translate/toolkit/answer/147854');
?>
<br/>
		</p>

		<form action="" method="post" enctype="multipart/form-data">
			<p>
				<label for="import-file"><?php 
_e('Import File:');
?>
</label>
				<input type="file" name="import-file" id="import-file" />
			</p>

			<p>
				<input type="submit" value="<?php 
echo esc_attr(__('Import'));
开发者ID:WeFoster,项目名称:translate.wefoster.co,代码行数:31,代码来源:glossary-import.php

示例8: gp_title

<?php

gp_title(sprintf(__('%s &lt; GlotPress'), __('Login')));
gp_breadcrumb(array(__('Login')));
gp_tmpl_header();
?>

		<form action="<?php 
echo gp_url_ssl(gp_url_current());
?>
" method="post" class="form-signin" role="form">
			<h2 class="form-signin-heading"><?php 
_e('Login');
?>
</h2>

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

			<input name="user_login" type="text" class="form-control" placeholder="<?php 
_e('Username');
?>
" required="" autofocus="">
			<input name="user_pass" type="password" class="form-control" placeholder="<?php 
_e('Password');
?>
" required="">

			<input type="hidden" value="<?php 
echo esc_attr(gp_get('redirect_to'));
开发者ID:BoweFrankema,项目名称:WP-Translate-Theme,代码行数:31,代码来源:login.php

示例9: wp_enqueue_style

<?php

wp_enqueue_style('base');
wp_enqueue_script('jquery');
global $pagetitle;
$pagetitle = gp_title();
require WPORGPATH . 'header.php';
?>
	<script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
<div id="headline">
	<div class="wrapper">
		<h2><a href="http://make.wordpress.org/polyglots/">Translating WordPress</a></h2>
		<span id="hello">
		<a class="menu-link" href="//make.wordpress.org/polyglots/">Blog</a>
		<a class="menu-link" href="//make.wordpress.org/polyglots/handbook/">Translator Handbook</a>
		<?php 
if (GP::$user->logged_in()) {
    $user = GP::$user->current();
    printf(__('Hi, %s.'), '<a href="' . gp_url('/profile') . '">' . $user->user_login . '</a>');
    ?>
			<a href="<?php 
    echo gp_url('/logout');
    ?>
"><?php 
    _e('Log out');
    ?>
</a>
		<?php 
} else {
    ?>
			<strong><a href="<?php 
开发者ID:serhi,项目名称:wordpress-sites,代码行数:31,代码来源:header.php

示例10: gp_title

<?php

gp_title(sprintf(__('Edit Project %s &lt; GlotPress'), $project->name));
gp_breadcrumb_project($project);
gp_tmpl_header();
?>
<h2><?php 
echo wptexturize(sprintf(__('Edit project "%s"'), esc_html($project->name)));
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('project-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
echo esc_attr(__('Save'));
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or');
?>
 <a href="javascript:history.back();"><?php 
_e('Cancel');
?>
</a></span>
	</p>
</form>
<?php 
gp_tmpl_footer();
开发者ID:pedro-mendonca,项目名称:GlotPress-WP,代码行数:30,代码来源:project-edit.php

示例11: gp_title

<?php

gp_title(sprintf(__('Edit Translation Set &lt; %s &lt; %s &lt; GlotPress'), $set->name, $project->name));
gp_breadcrumb(array(gp_link_project_get($project, $project->name), gp_link_get($url, $locale->english_name . 'default' != $set->slug ? ' ' . $set->name : '')));
gp_tmpl_header();
?>
<h2><?php 
_e('Edit Translation Set');
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('translation-set-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
echo esc_attr(__('Save'));
?>
" id="submit" />
		<span class="or-cancel">or <a href="javascript:history.back();">Cancel</a></span>
	</p>
</form>
<?php 
gp_tmpl_footer();
开发者ID:pedro-mendonca,项目名称:GlotPress-WP,代码行数:24,代码来源:translation-set-edit.php

示例12: gp_title

<?php

/**
 * Templates: Delete Translation Set
 *
 * @package GlotPress
 * @subpackage Templates
 * @since 2.0.0
 */
gp_title(sprintf(__('Delete Translation Set &lt; %s &lt; %s &lt; GlotPress', 'glotpress'), $set->name, $project->name));
gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get($url, $locale->english_name . ('default' !== $set->slug ? ' ' . $set->name : ''))));
gp_tmpl_header();
?>
<h2><?php 
_e('Delete Translation Set', 'glotpress');
?>
</h2>
<form action="" method="post">
	<p>
		<?php 
_e('Note this will delete all translations associated with this set!', 'glotpress');
?>
	</p>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Delete', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
开发者ID:ramiy,项目名称:GlotPress-WP,代码行数:31,代码来源:translation-set-delete.php

示例13: gp_title

<?php

/**
 * Templates: Delete Glossary
 *
 * @package GlotPress
 * @subpackage Templates
 * @since 2.0.0
 */
gp_title(__('Delete Glossary &lt; GlotPress', 'glotpress'));
gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug), $translation_set->name), gp_link_get(gp_url_join(gp_url_project_locale($project->path, $locale->slug, $translation_set->slug), '/glossary'), __('Glossary', 'glotpress')), __('delete', 'glotpress')));
gp_tmpl_header();
?>

<h2><?php 
_e('Delete Glossary', 'glotpress');
?>
</h2>

<form action="" method="post">
	<p>
		<?php 
_e('Note this will delete all entries associated with this glossary!', 'glotpress');
?>
	</p>

	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Delete', 'glotpress');
?>
" id="submit" />
开发者ID:ramiy,项目名称:GlotPress-WP,代码行数:31,代码来源:glossary-delete.php

示例14: gp_title

<?php

/**
 * Templates: Delete Project
 *
 * @package GlotPress
 * @subpackage Templates
 * @since 2.0.0
 */
gp_title(sprintf(__('Delete Project %s &lt; GlotPress', 'glotpress'), $project->name));
gp_breadcrumb_project($project);
gp_tmpl_header();
?>
<h2><?php 
printf(__('Delete project &#8220;%s&#8221;', 'glotpress'), esc_html($project->name));
?>
</h2>
<form action="" method="post">
	<p>
		<?php 
_e('Note this will delete all translations, translation sets and child projects!', 'glotpress');
?>
	</p>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Delete', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
开发者ID:ramiy,项目名称:GlotPress-WP,代码行数:31,代码来源:project-delete.php

示例15: sprintf

<?php

if ('originals' == $kind) {
    $title = sprintf(__('Import Originals &lt; %s &lt; GlotPress', 'glotpress'), esc_html($project->name));
    $return_link = gp_url_project($project);
} else {
    $title = sprintf(__('Import Translations &lt; %s &lt; GlotPress', 'glotpress'), esc_html($project->name));
    $return_link = gp_url_project_locale($project, $locale->slug, $translation_set->slug);
}
gp_title($title);
gp_breadcrumb_project($project);
gp_tmpl_header();
?>

<h2><?php 
echo $kind == 'originals' ? __('Import Originals', 'glotpress') : __('Import Translations', 'glotpress');
?>
</h2>
<form action="" method="post" enctype="multipart/form-data">
	<dl>
	<dt><label for="import-file"><?php 
_e('Import File:', 'glotpress');
?>
</label></dt>
	<dd><input type="file" name="import-file" id="import-file" /></dd>
<?php 
$format_options = array();
foreach (GP::$formats as $slug => $format) {
    $format_options[$slug] = $format->name;
}
$format_dropdown = gp_select('format', $format_options, 'po');
开发者ID:chantalcoolsma,项目名称:GlotPress-WP,代码行数:31,代码来源:project-import.php


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