コード例 #1
0
ファイル: edit-lock.php プロジェクト: Apatrid/buddypress-docs
/**
 * Echoes the output of bp_docs_get_force_cancel_edit_lock_link()
 *
 * @package BuddyPress Docs
 * @since 1.0-beta-2
 */
function bp_docs_force_cancel_edit_lock_link()
{
    echo bp_docs_get_force_cancel_edit_lock_link();
}
コード例 #2
0
    ?>
 <span class="hide-if-no-js description"><?php 
    _e('(click for more info)', 'bp-docs');
    ?>
</span></span>
			<div class="toggle-content">
				<p><?php 
    printf(__('This doc is currently being edited by %1$s. In order to prevent edit conflicts, only one user can edit a doc at a time.', 'bp-docs'), bp_docs_get_current_doc_locker_name());
    ?>
</p>

				<?php 
    if (is_super_admin() || bp_group_is_admin()) {
        ?>
					<p><?php 
        printf(__('Please try again in a few minutes. Or, as an admin, you can <a href="%s">force cancel</a> the edit lock.', 'bp-docs'), bp_docs_get_force_cancel_edit_lock_link());
        ?>
</p>
				<?php 
    } else {
        ?>
					<p><?php 
        _e('Please try again in a few minutes.', 'bp-docs');
        ?>
</p>
				<?php 
    }
    ?>
			</div>
		</div>
	<?php