Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
fix FS#118 and add additional WDTS? message
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbintz committed Oct 27, 2009
1 parent c624f05 commit b352efe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions comicpress_manager_admin.php
Expand Up @@ -660,6 +660,10 @@ function cpm_post_editor($width = 435, $is_import = false) {
__(" <em>(the transcript to use for all posts)</em>", 'comicpress-manager')
);

if (!is_plugin_active('what-did-they-say/what-did-they-say.php')) {
$form_titles_and_fields[] = '<em>' . __('Want even better control over your transcripts? Try <a href="http://wordpress.org/extend/plugins/what-did-they-say/" target="wdts">What Did They Say?!?</a>', 'comicpress-manager') . '</em>';
}

$form_titles_and_fields[] = array(
__("Upload Date Format:", 'comicpress-manager'),
'<input type="text" name="upload-date-format" />' .
Expand Down Expand Up @@ -1048,8 +1052,8 @@ function write_comicpress_config_functions_php($filepath, $just_show_config = fa
* @return string The view & edit post links for the post.
*/
function generate_view_edit_post_links($post_info) {
$view_post_link = sprintf("<a href=\"{$post_info['guid']}\">%s</a>", __("View post", 'comicpress-manager'));
$edit_post_link = sprintf("<a href=\"post.php?action=edit&amp;post={$post_info['ID']}\">%s</a>", __("Edit post", 'comicpress-manager'));
$view_post_link = sprintf('<a href="%s">%s</a>', $post_info['guid'], __("View post", 'comicpress-manager'));
$edit_post_link = sprintf('<a href="post.php?action=edit&amp;post=%s">%s</a>', $post_info['ID'], __("Edit post", 'comicpress-manager'));

return $view_post_link . ' | ' . $edit_post_link;
}
Expand Down

0 comments on commit b352efe

Please sign in to comment.