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


PHP gp_link函数代码示例

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


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

示例1: gp_link

        ?>
%</td>
				<td class="stats translated" title="translated"><?php 
        gp_link(gp_url_project($project, gp_url_join($set->locale, $set->slug), array('filters[translated]' => 'yes', 'filters[status]' => 'current')), $set->current_count);
        ?>
</td>
				<td class="stats fuzzy" title="fuzzy"><?php 
        gp_link(gp_url_project($project, gp_url_join($set->locale, $set->slug), array('filters[status]' => 'fuzzy')), $set->fuzzy_count);
        ?>
</td>
				<td class="stats untranslated" title="untranslated"><?php 
        gp_link(gp_url_project($project, gp_url_join($set->locale, $set->slug), array('filters[status]' => 'untranslated')), $set->untranslated_count);
        ?>
</td>
				<td class="stats waiting"><?php 
        gp_link(gp_url_project($project, gp_url_join($set->locale, $set->slug), array('filters[translated]' => 'yes', 'filters[status]' => 'waiting')), $set->waiting_count);
        ?>
</td>
				<?php 
        if (has_action('gp_project_template_translation_set_extra')) {
            ?>
				<td class="extra">
					<?php 
            do_action('gp_project_template_translation_set_extra', $set, $project);
            ?>
				</td>
				<?php 
        }
        ?>
			</tr>
		<?php 
开发者ID:akirk,项目名称:GlotPress,代码行数:31,代码来源:project.php

示例2: gp_link

    ?>
" id="submit" />
					</p>
				</form>
			</td>
		</tr>
		<?php 
}
?>
	</tbody>
</table>

<p class="clear actionlist secondary">
	<?php 
if ($can_edit) {
    ?>
		<?php 
    echo gp_link(gp_url_join(gp_url_project_locale($project_path, $locale_slug, $translation_set_slug), array('glossary', '-import')), __('Import', 'glotpress'));
    ?>
  &bull;&nbsp;
	<?php 
}
?>

	<?php 
echo gp_link(gp_url_join(gp_url_project_locale($project_path, $locale_slug, $translation_set_slug), array('glossary', '-export')), __('Export as CSV', 'glotpress'));
?>
</p>

<?php 
gp_tmpl_footer();
开发者ID:johnjamesjacoby,项目名称:GlotPress-WP,代码行数:31,代码来源:glossary-view.php

示例3: printf

?>
<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 
} elseif ($can_approve) {
    ?>
		<?php 
    echo gp_link_get(gp_url('/glossaries/-new', array('translation_set_id' => $translation_set->id)), __('Create glossary', 'glotpress'), array('class' => 'glossary-link'));
    ?>
	<?php 
}
?>
</h2>
<?php 
if ($can_approve) {
    ?>
<form id="bulk-actions-toolbar" class="filters-toolbar bulk-actions" action="<?php 
开发者ID:akirk,项目名称:GlotPress,代码行数:31,代码来源:translations.php

示例4: gp_link_project

    gp_link_project($project, esc_html($project->name));
    ?>
				<?php 
    gp_link_project_edit($project, null, array('class' => 'btn btn-xs btn-primary'));
    ?>
			</li>
		<?php 
}
?>
		</ul>

		<p>
			<?php 
gp_link(gp_url('/languages'), __('Projects by language'), array('class' => 'btn btn-primary'));
?>

			<?php 
if (GP::$user->current()->can('write', 'project')) {
    ?>
				<?php 
    gp_link(gp_url_project('-new'), __('Create a New Project'), array('class' => 'btn btn-default'));
    ?>
			<?php 
}
?>
		</p>



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

示例5: printf

		<h2>
			<?php 
printf(__("Translation of %s"), esc_html($project->name));
?>
: <span><?php 
echo esc_html($translation_set->name);
?>
</span>
			<?php 
gp_link_set_edit($translation_set, $project, __('Edit'), array('class' => 'btn btn-xs btn-primary'));
?>

			<?php 
if ($glossary) {
    echo gp_link(gp_url_project_locale($project, $locale->slug, $translation_set->slug) . '/glossary', __('glossary'), array('class' => 'btn btn-xs btn-primary'));
} elseif ($can_approve) {
    echo gp_link_get(gp_url('/glossaries/-new', array('translation_set_id' => $translation_set->id)), __('Create glossary'), array('class' => 'btn btn-xs btn-primary'));
}
?>
		</h2>

		<?php 
if ($can_approve) {
    ?>
		<form id="bulk-actions-toolbar" class="filters-toolbar bulk-actions form-inline pull-left" action="<?php 
    echo $bulk_action;
    ?>
" method="post" role="form">
			<select name="bulk[action]" id="bulk-action" class="form-control input-sm">
				<option value="" selected="selected"><?php 
开发者ID:WeFoster,项目名称:translate.wefoster.co,代码行数:30,代码来源:translations.php

示例6: gp_link

</td>
						<td class="stats waiting"><?php 
            gp_link(gp_url_project($set_data->project_path, gp_url_join($locale->slug, $set_data->slug), array('filters[translated]' => 'yes', 'filters[status]' => 'waiting')), absint($set_data->waiting_count));
            ?>
</td>
						</tr>
					<?php 
        }
        //sub project slugs
        ?>
					</tr>
				<?php 
    }
    //sub projects
    ?>
				</tbody>
			</table>
		</div>
	<?php 
}
//top projects
?>

	<p class="actionlist secondary">
		<?php 
gp_link('/projects', __('All projects'));
?>
	</p>

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

示例7: foreach

					</thead>
					<tbody>
					<?php 
    foreach ($shortcuts as $shortcut) {
        ?>
						<tr>
							<th><?php 
        echo $shortcut['project_path'];
        if ($shortcut['active']) {
            echo "<span class='active bubble'>" . __('Active') . "</span>";
        }
        ?>
</th>
							<td>
								<strong><?php 
        gp_link($shortcut['link'], $shortcut['contrib']->name_with_locale());
        ?>
</strong>
								<span> &#45; <?php 
        echo $shortcut['contrib']->current_perc;
        ?>
</span>
								<div class="progress-bar"
									 title="
									 <?php 
        echo sprintf("Waiting: %s, Translated: %s, Fuzzy: %s", $shortcut['contrib']->waiting_perc, $shortcut['contrib']->current_perc, $shortcut['contrib']->fuzzy_perc);
        ?>
">
									<span class="words-reviewed-perc" style="width:<?php 
        echo $shortcut['contrib']->current_perc;
        ?>
开发者ID:WeFoster,项目名称:translate.wefoster.co,代码行数:31,代码来源:profile.php

示例8: gp_link_project

			<li><?php 
    gp_link_project($project, esc_html($project->name));
    ?>
 <?php 
    gp_link_project_edit($project, null, array('class' => 'bubble'));
    ?>
</li>
		<?php 
}
?>
	</ul>

	<p class="actionlist secondary">
		<?php 
if (current_user_can('manage_options')) {
    ?>
			<?php 
    gp_link(gp_url_project('-new'), __('Create a New Project', 'glotpress'));
    ?>
  &bull;&nbsp;
		<?php 
}
?>

		<?php 
gp_link(gp_url('/languages'), __('Projects by language', 'glotpress'));
?>
	</p>

<?php 
gp_tmpl_footer();
开发者ID:akirk,项目名称:GlotPress,代码行数:31,代码来源:projects.php

示例9: elseif

		<?php 
} elseif (get_post_format() == 'quote') {
    /**
     * Post without a thumbnail. Show Quote on top of solid color.
     */
    gp_quote();
} elseif (get_post_format() == 'video') {
    /**
     * Post type is video, show video in place of the thumbnail image.
     */
    gp_video();
} elseif (get_post_format() == 'link') {
    /**
     * Show big link.
     */
    gp_link();
}
?>
 -->
	<!-- <div class="text-contents"><?php 
if (get_post_format() != 'aside') {
    ?>

			<header class="entry-header">
				<h1 class="entry-titles">
					<a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    echo esc_attr(sprintf(__('Permalink to %s', 'gp'), the_title_attribute('echo=0')));
    ?>
开发者ID:hungrig4leben,项目名称:my-gp,代码行数:31,代码来源:content.php

示例10: gp_link_project

			<li><?php 
    gp_link_project($project, esc_html($project->name));
    ?>
 <?php 
    gp_link_project_edit($project, null, array('class' => 'bubble'));
    ?>
</li>
		<?php 
}
?>
	</ul>

	<p class="actionlist secondary">
		<?php 
if (GP::$user->current()->can('write', 'project')) {
    ?>
			<?php 
    gp_link(gp_url_project('-new'), __('Create a New Project'));
    ?>
  &bull;&nbsp;
		<?php 
}
?>

		<?php 
gp_link(gp_url('/languages'), __('Projects by language'));
?>
	</p>

<?php 
gp_tmpl_footer();
开发者ID:pedro-mendonca,项目名称:GlotPress-WP,代码行数:31,代码来源:projects.php

示例11: printf

		<h2>
					<?php 
printf(__("Translation of %s"), esc_html($project->name));
?>
: <span><?php 
echo esc_html($translation_set->name);
?>
</span>
			<?php 
gp_link_set_edit($translation_set, $project, __('Edit'), array('class' => 'btn btn-xs btn-primary'));
?>

			<?php 
if ($glossary) {
    echo gp_link($glossary->path(), __('glossary'), array('class' => 'btn btn-xs btn-primary'));
} elseif ($can_approve) {
    echo gp_link_get(gp_url('/glossaries/-new', array('translation_set_id' => $translation_set->id)), __('Create glossary'), array('class' => 'btn btn-xs btn-primary'));
}
?>
		</h2>

		<?php 
if ($can_approve) {
    ?>
		<form id="bulk-actions-toolbar" class="filters-toolbar bulk-actions form-inline pull-left" action="<?php 
    echo $bulk_action;
    ?>
" method="post" role="form">
			<select name="bulk[action]" id="bulk-action" class="form-control input-sm">
				<option value="" selected="selected"><?php 
开发者ID:BoweFrankema,项目名称:WP-Translate-Theme,代码行数:30,代码来源:translations.php

示例12: gp_link

</td>
					<td class="stats waiting"><?php 
            gp_link(gp_url_project($set_data->project_path, gp_url_join($locale->slug, $set_data->slug), array('filters[translated]' => 'yes', 'filters[status]' => 'waiting')), absint($set_data->waiting_count));
            ?>
</td>
					</tr>
				<?php 
        }
        //sub project slugs
        ?>
				</tr>
			<?php 
    }
    //sub projects
    ?>
			</tbody>
		</table>
	</div>
<?php 
}
//top projects
?>

	<p class="actionlist secondary">
		<?php 
gp_link(gp_url('/projects'), __('All projects', 'glotpress'));
?>
	</p>

<?php 
gp_tmpl_footer();
开发者ID:akirk,项目名称:GlotPress,代码行数:31,代码来源:locale.php

示例13: gp_link

			<a class="ternary" href="#" onclick="jQuery('#personal-options-toggle').click();return false;">Cancel</a>
		</p>		
		</form>
	</div>
	</div>
<?php 
}
if ($can_write) {
    ?>
	<p class="secondary actionlist">
		<?php 
    gp_link(gp_url_project($project, 'import-originals'), __('Import originals'));
    ?>
 &bull;
		<?php 
    gp_link(gp_url_project('', '_new', array('parent_project_id' => $project->id)), __('Create a New Sub-Project'));
    ?>
 &bull;
		<?php 
    gp_link(gp_url('/sets/_new', array('project_id' => $project->id)), __('Create a New Translation Set'));
    ?>
	</p>
<?php 
}
?>
<script type="text/javascript" charset="utf-8">
	$gp.showhide('a.personal-options', 'Personal project options &darr;', 'Personal project options &uarr;', 'div.personal-options', '#source-url-template');
	$('div.personal-options').hide();
</script>
<?php 
gp_tmpl_footer();
开发者ID:rmccue,项目名称:GlotPress,代码行数:31,代码来源:project.php

示例14: gp_tmpl_header

gp_tmpl_header();
?>
<h2>Projects</h2>
<ul>
<?php 
foreach ($projects as $project) {
    ?>
	<li><?php 
    gp_link_project($project, esc_html($project->name));
    ?>
 <?php 
    gp_link_project_edit($project);
    ?>
 <?php 
    gp_link_project_delete($project);
    ?>
</li>
<?php 
}
?>
</ul>
<?php 
if (GP::$user->current()->can('write', 'project')) {
    ?>
	<p class="actionlist secondary"><?php 
    gp_link(gp_url_project('_new'), __('Create a New Project'));
    ?>
</p>
<?php 
}
gp_tmpl_footer();
开发者ID:rmccue,项目名称:GlotPress,代码行数:31,代码来源:projects.php


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