* resources tables coming from fetched file

* archive dropdown now shows select <name>  of the chosen name from the config
* do not display transcripts on the archive and search pages
* the column for the all comics now uses the name chosen for the taxonomy
This commit is contained in:
Frumph
2014-10-22 02:43:17 -07:00
parent 24ba9d93f2
commit 75b320d506
5 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ function ceo_initialize_post_types() {
'update_item' => __( 'Update', 'comiceasel' ).' '.$chapter_slug_plural,
'add_new_item' => __( 'Add New', 'comiceasel' ).' '.$chapter_slug,
'new_item_name' => __( 'New', 'comiceasel' ).' '.$chapter_slug.__('Name', 'comiceasel')
);
);
register_taxonomy('chapters', 'comic', array(
'hierarchical' => true,
+1 -1
View File
@@ -110,7 +110,7 @@ function ceo_chapters_menu_order_edit_form_field($term) {
function ceo_add_new_comic_columns($comic_columns) {
$new_columns['cb'] = '<input type="checkbox" />';
$new_columns['title'] = __('Comic Title', 'comiceasel');
$new_columns['chapter'] = __('Chapter', 'comiceasel');
$new_columns['chapter'] = ucwords(ceo_pluginfo('chapter_type_slug_name'));
$new_columns['characters'] = __('Characters', 'comiceasel');
if (ceo_pluginfo('allow_comics_to_have_categories'))
$new_columns['categories'] = __('Category', 'comiceasel');
+3 -2
View File
@@ -339,12 +339,13 @@ function ceo_display_transcript($atts, $content = null) {
extract( shortcode_atts( array(
'display' => 'styled'
), $atts ) );
if (ceo_pluginfo('enable_transcripts_in_comic_posts')) return;
if (is_archive() || is_search() || ceo_pluginfo('enable_transcripts_in_comic_posts')) return;
return ceo_the_transcript($display);
}
function ceo_display_the_transcript_action() {
if (ceo_pluginfo('enable_transcripts_in_comic_posts')) return;
global $post;
if (is_archive() || is_search() || ceo_pluginfo('enable_transcripts_in_comic_posts')) return;
return ceo_the_transcript('styled');
}
+1 -12
View File
@@ -1,20 +1,9 @@
<div id="comiceasel-resources">
<div class="comiceasel-options">
<table class="widefat">
<thead>
<tr>
<th colspan="3"><?php _e('Resources','comiceasel'); ?></th>
</tr>
</thead>
<tr>
<td>
<?php
$got_file = wp_remote_get( 'http://frumph.net/downloads/webcomic-lists.html' );
$got_file = wp_remote_get( 'http://frumph.net/downloads/index.html' );
if (isset($got_file['body']) && !empty($got_file['body'])) echo $got_file['body'];
?>
</td>
</tr>
</table>
<br />
</div>
</div>
+1 -1
View File
@@ -21,7 +21,7 @@ function ceo_comic_archive_jump_to_chapter($unhide = false, $exclude = '', $show
$output = '<form method="get" class="comic-archive-dropdown-form">';
$output .= '<select onchange="document.location.href=this.options[this.selectedIndex].value;">';
$level = 0;
$output .= '<option class="level-select" value="">'.__('Select Story','comiceasel').'</option>';
$output .= '<option class="level-select" value="">'.__('Select','comiceasel').' '.ucwords(ceo_pluginfo('chapter_type_slug_name')).'</option>';
if (!is_null($parent_chapters)) {
foreach($parent_chapters as $parent_chapter) {
$thecount = ($showcount) ? '&nbsp;('.$parent_chapter->count.')' : '';