gp_title(__('View Glossary < 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'); ?>
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'))); $ge_delete_ays = __('Are you sure you want to delete this entry?'); $delete_url = $url . '/-delete'; $glossary_options = compact('can_edit', 'url', 'delete_url', 'ge_delete_ays'); wp_enqueue_script('common'); wp_enqueue_script('glossary'); wp_localize_script('glossary', '$gp_glossary_options', $glossary_options); gp_tmpl_header(); ?> <h2> <?php printf(_x('Glossary for %1$s translation of %2$s', '{language} / { project name}'), esc_html($translation_set->name), esc_html($project->name)); ?> <?php gp_link_glossary_edit($glossary, $translation_set, __('Edit'), array('class' => 'btn btn-xs btn-primary')); ?> </h2> <?php if ($glossary->description) { echo '<p class="description">' . make_clickable(nl2br(wp_kses_post($glossary->description))) . '</p>'; } ?> <table class="glossary table table-bordered" id="glossary"> <thead> <tr> <th style="width:20%"><?php echo _x('Item', 'glossary entry'); ?>