?> %</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="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')); ?> • <?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();
?> <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
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();
<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
</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();
</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> - <?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; ?>
<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')); ?> • <?php } ?> <?php gp_link(gp_url('/languages'), __('Projects by language', 'glotpress')); ?> </p> <?php gp_tmpl_footer();
<?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'))); ?>
<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')); ?> • <?php } ?> <?php gp_link(gp_url('/languages'), __('Projects by language')); ?> </p> <?php gp_tmpl_footer();
<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
</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();
<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')); ?> • <?php gp_link(gp_url_project('', '_new', array('parent_project_id' => $project->id)), __('Create a New Sub-Project')); ?> • <?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 ↓', 'Personal project options ↑', 'div.personal-options', '#source-url-template'); $('div.personal-options').hide(); </script> <?php gp_tmpl_footer();
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();