Skip to content

Commit

Permalink
Add translation string escaping functions in BP templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lewis committed Apr 25, 2013
1 parent 571c921 commit a627fd5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
@@ -1,18 +1,18 @@
<div class="collabpress">
<?php cp_project_title(); ?>
<p><?php echo cp_get_project_description( cp_get_project_id() ); ?></p>
<a class="edit-project" href="#edit_project_inline_content">Edit Project</a>
<a class="edit-project" href="#edit_project_inline_content"><?php _e( 'Edit Project', 'collabpress' ); ?></a>
<div class="tasks">
<h3>Tasks</h3>
<div class="toggle-view-completed-tasks">Toggle view completed tasks</div>
<h3><?php _e( 'Tasks', 'collabpress' ); ?></h3>
<div class="toggle-view-completed-tasks"><?php _e( 'Toggle view completed tasks', 'collabpress' ); ?></div>
<input type="hidden" id="toggle_user_preference_view_completed_tasks_nonce" value="<?php echo wp_create_nonce( 'toggle-user-preference-view-completed-task' ); ?>">
<?php cp_output_project_nested_task_lists_and_tasks_html_for_sort( cp_get_project_id() ); ?>
<?php if ( cp_check_permissions( 'settings_user_role' ) ) { ?>
<div>
<a href="#add_new_task_inline_content" class="add-new-task">+ Add new task</a>
<a href="#add_new_task_inline_content" class="add-new-task">+ <?php _e( 'Add new task', 'collabpress' ); ?></a>
</div>
<div>
<a href="#add_new_task_list_inline_content" class="add-new-task-list">+ Add new task list</a>
<a href="#add_new_task_list_inline_content" class="add-new-task-list">+ <?php _e( 'Add new task list', 'collabpress' ); ?></a>
</div>
<?php } ?>
</div>
Expand Down Expand Up @@ -49,7 +49,7 @@
</form>
</div>
<div id='add_new_task_inline_content' style='padding:10px; background:#fff;'>
<h2>Add Task</h2>
<h2><?php _e( 'Add Task', 'collabpress' ); ?></h2>
<input type="hidden" id="save_task_list_order_nonce" value="<?php echo wp_create_nonce( 'save-task-list-order' ); ?>">
<input type="hidden" id="add_new_task_nonce" value="<?php echo wp_create_nonce( 'add-new-task' ); ?>">
<input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id() ?>">
Expand Down Expand Up @@ -87,12 +87,12 @@
<th scope="row"><label for="cp-task-priority"><?php _e('Priority: ', 'collabpress') ?></label></th>
<td>
<select name="cp-task-priority" id="cp-task-priority">
<option value="Urgent">Urgent</option>
<option value="High">High</option>
<option value="Normal">Normal</option>
<option value="Low">Low</option>
<option value="Very Low">Very Low</option>
<option value="None" selected="selected">None</option>
<option value="Urgent"><?php _e( 'Urgent', 'collabpress' ); ?></option>
<option value="High"><?php _e( 'High', 'collabpress' ); ?></option>
<option value="Normal"><?php _e( 'Normal', 'collabpress' ); ?></option>
<option value="Low"><?php _e( 'Low', 'collabpress' ); ?></option>
<option value="Very Low"><?php _e( 'Very Low', 'collabpress' ); ?></option>
<option value="None" selected="selected"><?php _e( 'None', 'collabpress' ); ?></option>
</select>
</td>
</tr>
Expand All @@ -112,7 +112,7 @@
</p>
</div>
<div id='add_new_task_list_inline_content' style='padding:10px; background:#fff;'>
<h2>Add Task List</h2>
<h2><?php _e( 'Add Task List', 'collabpress' ); ?></h2>
<input type="hidden" id="add_new_task_list_nonce" value="<?php echo wp_create_nonce( 'add-new-task-list' ); ?>">
<input type="hidden" id="cp-project-task-list-id" value="<?php echo cp_get_project_id() ?>">
<table class="form-table">
Expand Down
Expand Up @@ -19,7 +19,7 @@
<div style='display:none'>
<div id='edit_task_inline_content' style='padding:10px; background:#fff;'>
<form id="edit-task-form">
<h2>Edit Task</h2>
<h2><?php _e( 'Edit Task', 'collabpress' ); ?></h2>
<input type="hidden" id="edit_task_nonce" value="<?php echo wp_create_nonce( 'edit-task' ); ?>" />
<input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id() ?>" />
<input type="hidden" id="cp-task-id" value="<?php echo cp_get_task_id() ?>" />
Expand Down Expand Up @@ -57,12 +57,12 @@
<th scope="row"><label for="cp-task-priority"><?php _e('Priority: ', 'collabpress') ?></label></th>
<td>
<select name="cp-task-priority" id="cp-task-priority">
<option <?php selected(cp_get_the_task_priority(), 'Urgent' ); ?> value="Urgent">Urgent</option>
<option <?php selected(cp_get_the_task_priority(), 'High' ); ?> value="High">High</option>
<option <?php selected(cp_get_the_task_priority(), 'Normal' ); ?> value="Normal">Normal</option>
<option <?php selected(cp_get_the_task_priority(), 'Low' ); ?> value="Low">Low</option>
<option <?php selected(cp_get_the_task_priority(), 'Very Low' ); ?> value="Very Low">Very Low</option>
<option <?php selected(cp_get_the_task_priority(), 'None' ); ?> value="None" selected="selected">None</option>
<option <?php selected(cp_get_the_task_priority(), 'Urgent' ); ?> value="Urgent"><?php _e( 'Urgent', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'High' ); ?> value="High"><?php _e( 'High', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'Normal' ); ?> value="Normal"><?php _e( 'Normal', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'Low' ); ?> value="Low"><?php _e( 'Low', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'Very Low' ); ?> value="Very Low"><?php _e( 'Very Low', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'None' ); ?> value="None" selected="selected"><?php _e( 'None', 'collabpress' ); ?></option>
</select>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion includes/templates/collabpress/buddypress/dashboard.php
Expand Up @@ -16,7 +16,7 @@
<div class="collabpress-project new">
<a href="#inline_content" class="add-new-project">
<div class="plus-sign">+</div>
<h2>Add new project</h2>
<h2><?php _e( 'Add new project', 'collabpress' ); ?></h2>
</a>
</div>
<?php } ?>
Expand Down

0 comments on commit a627fd5

Please sign in to comment.