Exemple #1
0
    ?>
<div id="sub-projects">
<h3><?php 
    _e('Sub-projects', 'glotpress');
    ?>
</h3>
<dl>
<?php 
    foreach ($sub_projects as $sub_project) {
        ?>
	<dt>
		<?php 
        gp_link_project($sub_project, esc_html($sub_project->name));
        ?>
		<?php 
        gp_link_project_edit($sub_project, null, array('class' => 'bubble'));
        ?>
		<?php 
        if ($sub_project->active) {
            echo "<span class='active bubble'>" . __('Active', 'glotpress') . "</span>";
        }
        ?>
	</dt>
	<dd>
		<?php 
        echo esc_html(gp_html_excerpt(apply_filters('gp_sub_project_description', $sub_project->description, $sub_project), 111));
        ?>
	</dd>
<?php 
    }
    ?>
">
				<h3><?php 
    _e('Sub-projects');
    ?>
</h3>

				<dl>
				<?php 
    foreach ($sub_projects as $sub_project) {
        ?>
					<dt>
						<?php 
        gp_link_project($sub_project, esc_html($sub_project->name));
        ?>
						<?php 
        gp_link_project_edit($sub_project, null, array('class' => 'label label-primary'));
        ?>
						<?php 
        if ($sub_project->active) {
            echo "<span class='active label label-success'>" . __('Active') . "</span>";
        }
        ?>
					</dt>
					<dd>
						<?php 
        echo esc_html(gp_html_excerpt(apply_filters('sub_project_description', $sub_project->description, $sub_project), 111));
        ?>
					</dd>
				<?php 
    }
    ?>
Exemple #3
0
gp_breadcrumb(array(gp_link_project_get($project, $project->name)));
wp_enqueue_script('common');
gp_tmpl_header();
if ($sub_projects) {
    ?>
<ul>
<?php 
    foreach ($sub_projects as $sub_project) {
        ?>
	<li>
		<?php 
        gp_link_project($sub_project, esc_html($sub_project->name));
        ?>
			
		<?php 
        gp_link_project_edit($sub_project);
        ?>
			
		<?php 
        gp_link_project_delete($sub_project);
        ?>
	</li>
<?php 
    }
    ?>
</ul>	
<?php 
}
if ($translation_sets) {
    ?>
	<?php 
		<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 
}
?>
		</ul>

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

			<?php 
if (GP::$user->current()->can('write', 'project')) {
    ?>
Exemple #5
0
<?php

gp_title(__('Projects &lt; GlotPress'));
gp_breadcrumb(array(__('Projects')));
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'));
    ?>