if (WebcomicTag::webcomic_term_description()) {
        ?>

					<p><?php 
        webcomic_storyline_description();
        ?>
</p>

				<?php 
    }
    ?>
			<?php 
} elseif (is_webcomic_character()) {
    ?>
				<?php 
    if (WebcomicTag::webcomic_term_image()) {
        ?>

					<div class="taxonomy-image"><?php 
        webcomic_character_avatar();
        ?>
</div><!-- .page-image -->

				<?php 
    }
    ?>

				<?php 
    if (WebcomicTag::webcomic_term_description()) {
        ?>
示例#2
0
" rel="next">
									<span class="meta-nav" aria-hidden="true">Next Character</span> 
									<span class="screen-reader-text">Next character archive:</span> 
									<span class="post-title"><?php 
            echo $characterObj[$first_char]->name;
            ?>
</span>
								</a>
							</div>
					<?php 
        }
    } else {
        ?>
					
						<?php 
        if (WebcomicTag::webcomic_term_image($characterObj[$next_char]->term_id, "character")) {
            $nextthumb = wp_get_attachment_image_src($characterObj[$next_char]->webcomic_image);
            $css .= '
								/* next char */
								.post-navigation .nav-next { 
									background-image: url(' . esc_url($nextthumb[0]) . ');
									border-top: 0; 
								}
								
								.post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { 
									color: #fff; 
								}
								
								.post-navigation .nav-next a:before { 
									background-color: rgba(0, 0, 0, 0.2); 
								}
示例#3
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Render the webcomic poster on a collection archive page.
  * 
  * <code class="php">
  * // render the full size collection image
  * webcomic_character_avatar();
  * 
  * // assign the medium size character avatar for for the character with an ID of 42 in collection 42 to a variable for later use
  * $poster = WebcomicTag::webcomic_term_image( 'medium', 42, 'webcomic42' );
  * </code>
  * 
  * <code class="bbcode">
  * // render the full size character avatar
  * [webcomic_character_avatar]
  * 
  * // render the medium size character avatar for for the character with an ID of 1 in collection 42
  * [webcomic_character_avatar size="medium" term="1" collection="webcomic42"]
  * </code>
  * 
  * @package Webcomic
  * @param string $size The size of the image to render.
  * @param integer $character Character ID to render the avatar for. Will use global term ID by default.
  * @param string $collection The collection the character belongs to.
  * @uses WebcomicTag::webcomic_term_image()
  */
 function webcomic_character_avatar($size = 'full', $character = 0, $collection = '')
 {
     echo WebcomicTag::webcomic_term_image($size, $character, $collection ? "{$collection}_character" : '');
 }
示例#4
0
    echo home_url() . "/oeste-selvagem-storyline/" . $storylineObj[$previous_story]->slug;
    ?>
" rel="prev">
							<span class="meta-nav" aria-hidden="true">Previous</span> 
							<span class="screen-reader-text">Previous storyline archive:</span> 
							<span class="post-title"><?php 
    echo $storylineObj[$previous_story]->name;
    ?>
</span>
						</a>
					</div>

				<?php 
}
if ($next_story < $story_count) {
    if (WebcomicTag::webcomic_term_image($storylineObj[$next_story]->term_id, "storyline")) {
        $nextthumb = wp_get_attachment_image_src($storylineObj[$next_story]->webcomic_image);
        $css .= '
							/* next char */
							.post-navigation .nav-next { 
								background-image: url(' . esc_url($nextthumb[0]) . ');
								border-top: 0; 
							}
							
							.post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { 
								color: #fff; 
							}
							
							.post-navigation .nav-next a:before { 
								background-color: rgba(0, 0, 0, 0.2); 
							}
示例#5
0
 /**
  * Handle webcomic_(storyline|character)_(cover|avatar) shortcode.
  * 
  * @param array $atts Shortcode attributes.
  * @param string $content Shortcode content.
  * @param string $name Shortcode name.
  * @return string
  * @uses WebcomicTag::webcomic_term_image()
  * @uses WebcomicTag::get_webcomic_collection()
  */
 public function webcomic_term_image($atts, $content, $name)
 {
     extract(shortcode_atts(array('size' => 'full', 'term' => 0, 'collection' => ''), $atts));
     if (false !== strpos($name, 'storyline')) {
         $tax = 'storyline';
     } elseif (false !== strpos($name, 'character')) {
         $tax = 'character';
     } else {
         $tax = '';
     }
     return WebcomicTag::webcomic_term_image($size, $term, $collection ? "{$collection}_{$tax}" : '');
 }