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


PHP gp_project_links_from_root函数代码示例

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


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

示例1: gp_breadcrumb_project

function gp_breadcrumb_project($project)
{
    return gp_breadcrumb(gp_project_links_from_root($project));
}
开发者ID:rmccue,项目名称:glotpress-plugin,代码行数:4,代码来源:template.php

示例2: 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

示例3: gp_title

<?php

gp_title(sprintf(__('Translations &lt; %s &lt; %s &lt; GlotPress', 'glotpress'), $translation_set->name, $project->name));
gp_breadcrumb(array(gp_project_links_from_root($project), gp_link_get($url, $translation_set->name)));
gp_enqueue_script('jquery-ui-core');
gp_enqueue_script('gp-editor');
gp_enqueue_script('gp-translations-page');
wp_localize_script('gp-translations-page', '$gp_translations_options', array('sort' => __('Sort', 'glotpress'), 'filter' => __('Filter', 'glotpress')));
// localizer adds var in front of the variable name, so we can't use $gp.editor.options
$editor_options = compact('can_approve', 'can_write', 'url', 'discard_warning_url', 'set_priority_url', 'set_status_url');
wp_localize_script('gp-editor', '$gp_editor_options', $editor_options);
gp_tmpl_header();
$i = 0;
?>
<h2>
	<?php 
printf(__('Translation of %s', 'glotpress'), esc_html($project->name));
?>
: <?php 
echo esc_html($translation_set->name);
?>
	<?php 
gp_link_set_edit($translation_set, $project, __('(edit)', 'glotpress'));
?>
	<?php 
if ($glossary) {
    ?>
	<?php 
    echo gp_link($glossary->path(), __('glossary', 'glotpress'), array('class' => 'glossary-link'));
    ?>
	<?php 
开发者ID:akirk,项目名称:GlotPress,代码行数:31,代码来源:translations.php

示例4: gp_title

<?php

gp_title(sprintf(__('Edit 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('Edit Translation Set', 'glotpress');
?>
</h2>
<form action="" method="post">
<?php 
gp_tmpl_load('translation-set-form', get_defined_vars());
?>
	<p>
		<input type="submit" name="submit" value="<?php 
esc_attr_e('Save', 'glotpress');
?>
" id="submit" />
		<span class="or-cancel"><?php 
_e('or', 'glotpress');
?>
 <a href="<?php 
echo gp_url_project_locale($project, $locale->slug, $set->slug);
?>
"><?php 
esc_attr_e('Cancel', 'glotpress');
?>
</a></span>
	</p>
	<?php 
开发者ID:ramiy,项目名称:GlotPress-WP,代码行数:31,代码来源:translation-set-edit.php


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