示例#1
0
                    $cat[] = $term->name;
                }
            }
            $cat = array_map('strtolower', (array) $cat);
            $list_cats = join(" ", $cat);
            $terms = get_the_term_list($post->ID, 'port-cat', '', ',  ', '');
            $terms = strip_tags($terms);
            $categories = get_the_category();
            $terms = preg_replace("/[\\s-]+/", " ", $terms);
            //Convert whitespaces and underscore to dash
            $terms = preg_replace("/[\\s_]/", "-", $terms);
            // return $terms;
            ?>

						<div class="item <?php 
            echo $terms . ' ' . calm_get_data('port_columns');
            ?>
">

							<div class="img-container">

								<a href="<?php 
            the_permalink();
            ?>
">

									<?php 
            the_post_thumbnail();
            ?>

									<div class="item-info">
示例#2
0
        echo calm_get_data('footer_blogger');
        ?>
" target="_blank"><i class="icon-blogger"></i></a></li>
					<?php 
    }
    ?>
				</ul>
			<?php 
}
?>


			<nav>
				<?php 
wp_nav_menu(array('theme_location' => 'main_menu', 'menu' => 'Main', 'container' => false, 'menu_class' => 'main-nav animated flipInX delay1'));
?>
			</nav>

			
			<?php 
if (calm_get_data('copyright')) {
    ?>
				<span class="copy animated flipInX delay3"><?php 
    echo calm_get_data('copyright');
    ?>
</span>
			<?php 
}
?>
			
		</header>