Ejemplo n.º 1
0
 function shiword_content_class($class = array())
 {
     if (!empty($class)) {
         if (!is_array($class)) {
             $class = preg_split('#[\\s,]+#', $class);
         }
     }
     if ((is_archive() || is_home() || is_search() || is_front_page() && get_option('show_on_front') == 'posts') && shiword_get_opt('shiword_pthumb')) {
         $class[] = 'sw-has-thumb';
     }
     $class[] = 'posts_' . shiword_get_layout();
     $class = array_map('esc_attr', $class);
     $class = apply_filters('shiword_content_class', $class);
     echo join(' ', $class);
 }
Ejemplo n.º 2
0
<?php

/**
 * page.php
 *
 * The single page template file, used to display single pages.
 *
 * @package Shiword
 * @since 1.00
 */
get_header();
?>

<?php 
shiword_get_layout('page');
?>

<div id="posts-container" class="<?php 
shiword_content_class();
?>
">

	<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

			<?php 
        shiword_hook_entry_before();
        ?>
Ejemplo n.º 3
0
<?php

/**
 * Template Name: One column, no sidebar
 *
 * A custom page template without sidebar.
 *
 * @package Shiword
 * @since 2.06
 */
get_header();
?>

<?php 
shiword_get_layout('one-column');
?>

<div id="posts-container" class="<?php 
shiword_content_class();
?>
">

	<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

			<?php 
        shiword_hook_entry_before();
        ?>
Ejemplo n.º 4
0
<?php

/**
 * allcat.php
 *
 * The template file used to display the whole category list 
 * as a page.
 *
 * @package Shiword
 * @since 1.00
 */
get_header();
?>

<?php 
shiword_get_layout();
?>

<div class="<?php 
shiword_content_class();
?>
">

	<div class="post">

		<h2 class="storytitle"><?php 
_e('Categories', 'shiword');
?>
</h2>

		<div class="meta_container">
Ejemplo n.º 5
0
<?php

/**
 * single.php
 *
 * The single blog post template file, used to display single blog posts.
 *
 * @package Shiword
 * @since 1.00
 */
get_header();
?>

<?php 
shiword_get_layout('post');
?>

<div id="posts-container" class="<?php 
shiword_content_class();
?>
">

	<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

			<?php 
        shiword_navlinks();
        ?>
Ejemplo n.º 6
0
<?php

/**
 * attachment.php
 *
 * Template for attachment pages
 *
 * @package Shiword
 * @since 1.00
 */
get_header();
?>

<?php 
shiword_get_layout('attachment');
?>

<div class="<?php 
shiword_content_class();
?>
">

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

		<?php 
        shiword_hook_entry_before();
        ?>