コード例 #1
0
ファイル: archive-video.php プロジェクト: serdimoa/wordpress
                                        <span>
                                            <div class="black">
                                                <?php 
            _e('VIDEO', 'aletheme');
            ?>
                                            </div>
                                        </span>
                                </a>
                            </figcaption>
                        </figure>
                    <?php 
        } elseif (ale_get_meta('videopagelink')) {
            ?>
                        <figure class="videobox">
                            <?php 
            echo wp_oembed_get(ale_get_meta('videopagelink'), array('width' => 320));
            ?>
                        </figure>
                    <?php 
        }
        ?>

                    <div class="itemboxwhite">
                        <div class="titleline cf">
                            <div class="datebox">
                                <span class="day"><?php 
        echo get_the_time('d');
        ?>
</span><br />
                                <span class="month"><?php 
        echo get_the_time('M-Y');
コード例 #2
0
ファイル: header.php プロジェクト: serdimoa/wordpress
wp_head();
?>
    <link rel="stylesheet" href="<?php 
bloginfo('stylesheet_url');
?>
" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body <?php 
body_class();
if (is_object($post)) {
    echo 'style="';
    if (ale_get_meta('custompagebackground')) {
        echo 'background-image:url(' . ale_get_meta('custompagebackground') . ');';
    }
    if (ale_get_meta('custompagecss')) {
        echo ale_get_meta('custompagecss');
    }
    echo '"';
}
?>
 >
<?php 
if (ale_get_option('preloader')) {
    ?>
<div id="pageloader" <?php 
    if (ale_get_option('cusanimimg')) {
        echo 'style="background: #f9f9f9 url(' . ale_get_option('cusanimimg') . ') 50% 50% no-repeat;"';
    }
    ?>
></div><?php 
}
コード例 #3
0
    } elseif (ale_get_meta('pressvideo10')) {
        echo ale_get_meta('pressvideo10');
    }
    ?>
" data-title="<?php 
    echo ale_get_meta('presstit10');
    ?>
">
                                <span class="hover <?php 
    if (ale_get_meta('pressvideo10')) {
        echo "play";
    }
    ?>
"></span>
                                <img src="<?php 
    echo ale_get_meta('pressthumb10');
    ?>
" alt="image" />
                            </a>
                        </div>
                    <?php 
}
?>
                </div>

            </div>

            <!-- Nav -->
            <div class="nav-line-left"></div>

            <a class="prev browse left"></a>
コード例 #4
0
    ?>
</div>
                    </div>
                    <?php 
}
?>
                    <?php 
if (ale_get_meta('pietit4')) {
    ?>
                    <div class="pieitem">
                        <span class="chart" data-percent="<?php 
    echo ale_get_meta('pieper4');
    ?>
">
                            <span class="percent"></span>
                        </span>
                        <div class="pietitle"><?php 
    echo ale_get_meta('pietit4');
    ?>
</div>
                    </div>
                    <?php 
}
?>
                </div>
            </div>
        </div>
        <div class="cf"></div>
    </section>
<?php 
get_footer();
コード例 #5
0
    if (ale_get_meta('memem4')) {
        ?>
<li class="mail"><a href="mainlto:<?php 
        echo ale_get_meta('memem4');
        ?>
" ></a></li><?php 
    }
    ?>
                        </ul>

                        <div class="dynamic-text" style="display: none">
                            <div class="h2"><?php 
    _e('About', 'aletheme');
    ?>
 <?php 
    echo ale_get_meta('memname4');
    ?>
</div>
                            <?php 
    ale_filtered_meta('memdesc4');
    ?>
                        </div>
                    </li>
                <?php 
}
?>
            </ul>
        </div>

        <div class="content-right">
            <!-- BY DEFAULT HERE ELENE MARLENE -->
コード例 #6
0
 the_content();
 ?>
                     <blockquote class="inspiration">
                         <?php 
 if (ale_get_meta('inspirationplace')) {
     echo '<strong>' . __('Place') . ':</strong> ' . ale_get_meta('inspirationplace') . "<br />";
 }
 ?>
                         <?php 
 if (ale_get_meta('inspirationdate')) {
     echo '<strong>' . __('Date') . ':</strong> ' . date("d M-Y", strtotime(ale_get_meta('inspirationdate'))) . "<br />";
 }
 ?>
                         <?php 
 if (ale_get_meta('impress')) {
     echo '<strong>' . __('Impression & Feelings') . ':</strong> ' . ale_get_meta('impress');
 }
 ?>
                     </blockquote>
                 </div>
                 <?php 
 wp_link_pages(array('before' => '<section class="story-pages"><p>' . __('Pages:', 'aletheme'), 'after' => '</p></section>'));
 ?>
             </section>
             <?php 
 if (ale_get_option('commentoninspiration') == 1) {
     comments_template();
 }
 ?>
         </section>
     </article>
コード例 #7
0
?>
        <div class="rightside <?php 
if (ale_get_option('rightsidebarblog') == 1) {
    echo 'centerside';
}
?>
">
            <div class="margincontentbox">
                <div class="pagelayout new-blog-3 cf">
                    <?php 
if (ale_get_meta('itemblogcategory')) {
    $showcategoriesitems = '&cat=' . ale_get_meta('itemblogcategory');
} else {
    $showcategoriesitems = '';
}
query_posts('&post_type=post' . $showcategoriesitems . '&posts_per_page=' . ale_get_meta('itemblogpage', 'true', $blog_page_id) . '&paged=' . $paged);
?>
                    <header class="page-title">
                        <h2 class="a"><?php 
the_title();
?>
</h2>
                        <div class="toppagination">
                            <div class="pagpages">
                                <?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
?>
                                <?php 
echo $paged;
?>
 of <?php 
コード例 #8
0
}
?>
                        </figcaption>
                    </figure>
                </div>
                <div class="cf"></div>
                <?php 
if (ale_get_meta('mapcontact')) {
    ?>
                    <div class="mapbox cf">
                        <header class="page-title"><h2 class="a"><?php 
    _e('Map', 'aletheme');
    ?>
</h2></header>
                        <?php 
    echo ale_get_meta('mapcontact');
    ?>
                    </div>
                <?php 
}
?>
            </div>
            <?php 
ale_part('pagefooter');
?>
        </div>
    </div>
    <div class="cf"></div>
</section>
<?php 
get_footer();
コード例 #9
0
                                    <?php 
    if (ale_get_meta('thirdfbperson')) {
        echo '<a href="' . ale_get_meta('thirdfbperson') . '">Facebook</a>';
    }
    ?>
 |
                                    <?php 
    if (ale_get_meta('thirdtwiperson')) {
        echo '<a href="' . ale_get_meta('thirdtwiperson') . '">Twitter</a>';
    }
    ?>
                                </div>
                                <div class="email">
                                    <?php 
    if (ale_get_meta('thirdemailperson')) {
        echo '<a href="mailto:' . ale_get_meta('thirdemailperson') . '">' . ale_get_meta('thirdemailperson') . '</a>';
    }
    ?>
                                </div>
                            </figcaption>
                        </figure>
                    </div>
                <?php 
}
?>
            </div>
        </div>
    </div>
    <div class="cf"></div>
</section>
<?php 
コード例 #10
0
} elseif (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'threecol') {
    echo 'gallerythree';
} elseif (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'fourcol') {
    echo 'galleryfour';
}
?>
 cf">

                    <?php 
if (ale_get_meta('itemgalcategory')) {
    $termname = get_term(ale_get_meta('itemgalcategory'), 'gallery-category');
    $postscatshow = '&gallery-category=' . $termname->name;
} else {
    $postscatshow = '';
}
query_posts('&post_type=gallery&orderby=menu_order date&order=DESC' . $postscatshow . '&posts_per_page=' . ale_get_meta('itemgalpage', 'true', $gallery_page_id) . '&paged=' . $paged);
?>
                    <header class="page-title">
                        <h2 class="a"><?php 
the_title();
?>
</h2>
                        <div class="toppagination">
                            <div class="pagpages">
                                <?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
?>
                                <?php 
echo $paged;
?>
 of <?php 
コード例 #11
0
ファイル: single-gallery.php プロジェクト: serdimoa/wordpress
                            Category:
                            <?php 
        $current_category = wp_get_post_terms($post->ID, 'gallery-category', array("fields" => "all"));
        foreach ($current_category as $curcat) {
            echo $curcat->name . ' ';
        }
        ?>

                            <?php 
        if (ale_get_meta('location')) {
            echo "/ " . __('Location') . ": " . ale_get_meta('location');
        }
        ?>
                            <?php 
        if (ale_get_meta('eventdate')) {
            echo "/ " . __('Date') . ": " . date("d M-Y", strtotime(ale_get_meta('eventdate')));
        }
        ?>
                        </div>
                        <?php 
        if (!post_password_required()) {
            ?>
                        <div class="gallerybox">
                            <div class="galleryslider ta">
                                <ul class="slides">
                                    <?php 
            $args = array('post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'order' => 'ASC', 'orderby' => 'menu_order ID', 'meta_query' => array(array('key' => '_ale_hide_from_gallery', 'value' => 0, 'type' => 'DECIMAL')), 'post_parent' => $post->ID);
            $attachments = get_posts($args);
            if ($attachments) {
                foreach ($attachments as $attachment) {
                    if ($attachment->post_excerpt) {
コード例 #12
0
    if (ale_get_meta('h4-team-photo5')) {
        ?>
                        <div class="item-member">
                            <div class="photo-box"><img src="<?php 
        echo ale_get_meta('h4-team-photo5');
        ?>
" alt="<?php 
        echo ale_get_meta('h4-team-name5');
        ?>
" /> </div>
                            <div class="name-box"><?php 
        echo ale_get_meta('h4-team-name5');
        ?>
</div>
                            <div class="type-box"><?php 
        echo ale_get_meta('h4-team-type5');
        ?>
</div>
                        </div>
                    <?php 
    }
    ?>
                </div>
            </section>
        <?php 
}
?>
    </section>


<?php 
コード例 #13
0
    ?>

                                <?php 
    if (ale_get_meta('about-6partner-image4')) {
        ?>
                                    <?php 
        if (ale_get_meta('about-6partner-link4')) {
            echo '<a href="' . ale_get_meta('about-6partner-link4') . '" target="_blank">';
        }
        ?>
                                    <img src="<?php 
        echo ale_get_meta('about-6partner-image4');
        ?>
" alt=""/>
                                    <?php 
        if (ale_get_meta('about-6partner-link4')) {
            echo '</a>';
        }
        ?>
                                <?php 
    }
    ?>
                            </div>
                        </section>
                    <?php 
}
?>
                </div>
            </div>
        </div>
    </section>
コード例 #14
0
    /**
     * Display Widget
     * @param array $args
     * @param array $instance
     */
    public function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        /* Our variables from the widget settings. */
        $number = $instance['number'];
        /* Before widget (defined by themes). */
        echo $before_widget;
        // Display Widget
        ?>
        <?php 
        /* Display the widget title if one was input (before and after defined by themes). */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
        <div class="aletheme-testimonials-widget">
            <?php 
        $query = new WP_Query(array('posts_per_page' => $number, 'ignore_sticky_posts' => 1, 'post_type' => 'testimonials'));
        ?>

            <div class="testimonials-slider-widget">
                <ul class="slides">
                    <?php 
        global $post;
        if ($query->have_posts()) {
            while ($query->have_posts()) {
                $query->the_post();
                ?>
                        <li>
                            <div class="photo">
                                <?php 
                echo get_the_post_thumbnail($post->ID, 'testimonials-slider');
                ?>
                            </div>
                            <div class="author">
                                <?php 
                echo ale_get_meta('testimauthor');
                ?>
                            </div>
                            <div class="short-description">
                                <?php 
                the_excerpt();
                ?>
                            </div>
                        </li>
                    <?php 
            }
        }
        ?>

                    <?php 
        wp_reset_query();
        ?>
                </ul>
            </div>

        </div><!--testimonials_widget-->

        <?php 
        /* After widget (defined by themes). */
        echo $after_widget;
    }
コード例 #15
0
        ?>
"><img src="<?php 
        echo ale_get_meta('h5-popimg-min3');
        ?>
" alt="" width="320" height="168"></a>
                        <?php 
    }
    ?>
                        <?php 
    if (ale_get_meta('h5-popimg-min4')) {
        ?>
                            <a href="<?php 
        echo ale_get_meta('h5-popimg-max4');
        ?>
"><img src="<?php 
        echo ale_get_meta('h5-popimg-min4');
        ?>
" alt="" width="320" height="168"></a>
                        <?php 
    }
    ?>
                    </div>
                </div>
            </section>
        <?php 
}
?>

    </section>

    <section class="bottom-timeline cf">
コード例 #16
0
</span>
                            </div>

                        </div>
                    </div>
                    <?php 
        } else {
            ?>
                    <figure class="notumbtestimonial cf">
                        <img src="<?php 
            echo get_template_directory_uri();
            ?>
/css/images/blockbg.gif" />
                        <figcaption>
                            <h2><?php 
            echo ale_get_meta('testimauthor');
            ?>
</h2>
                            <div class="textup">
                              <strong><?php 
            the_title();
            ?>
</strong>
                              <span><?php 
            echo ale_truncate(get_the_excerpt(), 210);
            ?>
</span>
                            </div>

                        </figcaption>
                    </figure>
コード例 #17
0
                                <?php 
if (ale_get_meta('contact4-map-address')) {
    ?>
                                    <div class="contact3-map">
                                        <?php 
    echo do_shortcode('[ale_map address="' . ale_get_meta('contact4-map-address') . '" width="100%" height="360px"]');
    ?>
                                    </div>
                                <?php 
}
?>
                            </div>
                            <div class="right-40 cf">
                                <div class="contact-form cf">
                                    <div class="title"><?php 
echo ale_get_meta('contact4-form-title');
?>
</div>
                                    <form method="post" action="<?php 
the_permalink();
?>
">
                                        <?php 
if (isset($_GET['success'])) {
    ?>
                                            <p class="success"><?php 
    _e('Your email was sent successfully. Thank you for your message!', 'aletheme');
    ?>
</p>
                                        <?php 
}
コード例 #18
0
" />
                                    </p>
                                    <?php 
    wp_nonce_field();
    ?>
                                </form>
                            </div>
                        </section>
                        <?php 
}
?>
                    </div>
                </div>
                <?php 
ale_part('pagefooter');
?>
            </div>
        </div>
        <div class="cf"></div>
    </section>
<?php 
if (ale_get_meta('contact5-map-address')) {
    ?>
    <div class="contact5-map">
        <?php 
    echo do_shortcode('[ale_map address="' . ale_get_meta('contact5-map-address') . '" width="100%" height="480px"]');
    ?>
    </div>
<?php 
}
get_footer();
コード例 #19
0
ファイル: template-blog.php プロジェクト: serdimoa/wordpress
                                    <?php 
            if (ale_get_meta('tumbsblogstylepag', 'true', $blog_page_id) == 'standtumbs') {
                if (ale_get_meta('blogcolumnsnumpag', 'true', $blog_page_id) == 'twocol') {
                    echo get_the_post_thumbnail($post->ID, 'post-two');
                } elseif (ale_get_meta('blogcolumnsnumpag', 'true', $blog_page_id) == 'threecol') {
                    echo get_the_post_thumbnail($post->ID, 'post-flex');
                } elseif (ale_get_meta('blogcolumnsnumpag', 'true', $blog_page_id) == 'fullwidth') {
                    echo get_the_post_thumbnail($post->ID, 'post-fullwidth');
                }
            } elseif (ale_get_meta('tumbsblogstylepag', 'true', $blog_page_id) == 'masontumbs') {
                if (ale_get_meta('blogcolumnsnumpag', 'true', $blog_page_id) == 'twocol') {
                    echo get_the_post_thumbnail($post->ID, 'post-two-mason');
                } elseif (ale_get_meta('blogcolumnsnumpag', 'true', $blog_page_id) == 'threecol') {
                    echo get_the_post_thumbnail($post->ID, 'post-poster');
                } elseif (ale_get_meta('blogcolumnsnumpag', 'true', $blog_page_id) == 'fullwidth') {
                    echo get_the_post_thumbnail($post->ID, 'post-fullwidth');
                }
            }
            ?>

                                </a>
                                <figcaption>
                                    <a href="<?php 
            the_permalink();
            ?>
">
                                       <span>
                                           <div class="black">
                                               <?php 
            echo get_comments_number();
コード例 #20
0
">
                                <?php 
        if (ale_get_meta('tumbsgallerystylepag', 'true', $gallery_page_id) == 'standtumbs') {
            if (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'twocol') {
                echo get_the_post_thumbnail($post->ID, 'gallery-two');
            } elseif (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'threecol') {
                echo get_the_post_thumbnail($post->ID, 'gallery-three');
            } elseif (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'fourcol') {
                echo get_the_post_thumbnail($post->ID, 'gallery-four');
            }
        } elseif (ale_get_meta('tumbsgallerystylepag', 'true', $gallery_page_id) == 'masontumbs') {
            if (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'twocol') {
                echo get_the_post_thumbnail($post->ID, 'gallery-two-mason');
            } elseif (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'threecol') {
                echo get_the_post_thumbnail($post->ID, 'gallery-three-mason');
            } elseif (ale_get_meta('galcolumnsnumpag', 'true', $gallery_page_id) == 'fourcol') {
                echo get_the_post_thumbnail($post->ID, 'gallery-four-mason');
            }
        }
        ?>
                            </a>
                            <div class="titlegalleryfilter cf">
                                <div class="lefticon"></div>
                                <div class="titleitem">
                                    <h2><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
コード例 #21
0
ファイル: page-home.php プロジェクト: serdimoa/wordpress
?>
    </section>
    <div class="cf"></div>
        <div class="homeonebottomgal">
            <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

            <?php 
        if (ale_get_meta('showtypehome') == 'gallery') {
            include 'templates/home_gallery.php';
        } elseif (ale_get_meta('showtypehome') == 'post') {
            include 'templates/home_blogposts.php';
        } elseif (ale_get_meta('showtypehome') == 'content') {
            ?>

                <div class="recentgalleriesbox gallerygrid cf">
                    <div class="galleriestitle">
                        <?php 
            _e('Welcome', 'aletheme');
            ?>
                    </div>
                    <div class="homecustomcontent">
                        <?php 
            the_content();
            ?>
                    </div>
                </div>
コード例 #22
0
    ?>

                    <?php 
    if (ale_get_meta('h3-partner-5img')) {
        ?>
                        <?php 
        if (ale_get_meta('h3-partner-5link')) {
            echo '<a href="' . ale_get_meta('h3-partner-5link') . '" target="_blank">';
        }
        ?>
                        <img src="<?php 
        echo ale_get_meta('h3-partner-5img');
        ?>
" alt=""/>
                        <?php 
        if (ale_get_meta('h3-partner-5link')) {
            echo '</a>';
        }
        ?>
                    <?php 
    }
    ?>
                </div>
            </section>
        <?php 
}
?>
    </section>


コード例 #23
0
ファイル: template-about.php プロジェクト: serdimoa/wordpress
                      <div class="videoaboutbox">
                          <div class="videotitle cf">
                              <div class="text"><?php 
    _e('Video  Presentation', 'aletheme');
    ?>
</div>
                              <div class="plus">+</div>
                          </div>
                          <div class="videocode" <?php 
    if (ale_get_meta('aboutvideotog') == 'open') {
        echo 'style="display:block;"';
    }
    ?>
 >
                              <?php 
    echo wp_oembed_get(ale_get_meta('aboutvideo'), array('width' => 1000));
    ?>
                          </div>
                      </div>
                <?php 
}
?>
            </div>
            <?php 
ale_part('pagefooter');
?>
        </div>
    </div>
    <div class="cf"></div>
</section>
<?php 
コード例 #24
0
ファイル: general.php プロジェクト: BMNTeam/myFirstThemeToTf
/**
 * Apply filters to post meta
 * @param string $key
 * @param string $filter
 * @param mixed $post_id 
 */
function ale_filtered_meta($key, $filter = 'the_content', $post_id = null)
{
    echo apply_filters($filter, ale_get_meta($key, true, $post_id));
}
コード例 #25
0
                    <div class="info-box">
                        <div class="title-info">
                            <?php 
echo ale_get_meta('h2-box4-title');
?>
                        </div>
                        <div class="loc-info">
                            <?php 
echo ale_get_meta('h2-box4-loc');
?>
                        </div>
                        <div class="desc-info">
                            <?php 
echo ale_get_meta('h2-box4-desc');
?>
                        </div>
                    </div>
                    <div class="mask">
                        <a href="<?php 
echo ale_get_meta('h2-box4-link');
?>
"></a>
                    </div>
                </div>
            </div>
        </section>
    </section>


<?php 
get_footer();
コード例 #26
0
?>
                        </div>
                    </div>
                    <div class="boxcontwo">
                        <div class="title">
                            <?php 
_e('Phone number', 'aletheme');
?>
:
                        </div>
                        <div class="phoneconsbox">
                            <?php 
if (ale_get_meta('conphonetwo')) {
    ?>
</php><span class="phoico"><?php 
    echo ale_get_meta('conphonetwo');
    ?>
</span><?php 
}
?>
                        </div>
                    </div>
                </div>
                <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
                    <section class="contact cf">
                        <section class="story contacttwostory">
                            <?php 
コード例 #27
0
    ?>
                                    <img src="<?php 
    echo ale_get_meta('about-4serv-icon6');
    ?>
" alt="<?php 
    echo ale_get_meta('about-4serv-title6');
    ?>
" />
                                <?php 
}
?>
                            </div>
                            <div class="text-box">
                                <div class="title"><?php 
echo ale_get_meta('about-4serv-title6');
?>
</div>
                                <div class="desc"><?php 
echo ale_get_meta('about-4serv-desc6');
?>
</div>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
    </section>
</div>
<?php 
get_footer();
コード例 #28
0
                            </div>
                            <div class="item-post-org">
                                <div class="title"><?php 
    echo ale_get_meta('about-org-posttitle4');
    ?>
</div>
                                <div class="desc"><?php 
    echo ale_get_meta('about-org-postdesc4');
    ?>
</div>
                                <?php 
    if (ale_get_meta('about-org-postlink4')) {
        ?>
                                    <div class="read-link">
                                        <a href="<?php 
        echo ale_get_meta('about-org-postlink4');
        ?>
" ><?php 
        _e('Read More', 'aletheme');
        ?>
 ›</a>
                                    </div>
                                <?php 
    }
    ?>
                            </div>
                            <div class="item-post-org">
                                <form method="post" class="about-form" action="<?php 
    the_permalink();
    ?>
">
コード例 #29
0
ファイル: postpreview.php プロジェクト: serdimoa/wordpress
        ?>
					<li><?php 
        echo wp_get_attachment_image($image->ID, 'post-paper');
        ?>
</li>
				<?php 
    }
    ?>
			</ul>
		</div>
    <?php 
} elseif (has_post_format('image')) {
    ?>
    <figure class="tubmapost">
        <?php 
    echo get_the_post_thumbnail($post->ID, 'post-paper');
    ?>
    </figure>
    <?php 
} elseif (has_post_format('video')) {
    ?>
        <div class="siglepostvide">
            <?php 
    echo wp_oembed_get(ale_get_meta('videopostlink'), array('width' => 1000));
    ?>
        </div>
    <?php 
}
?>

</header>
コード例 #30
0
ファイル: home_blogposts.php プロジェクト: serdimoa/wordpress
<div class="recentgalleriesbox gallerygrid cf">
    <div class="galleriestitle">
        <?php 
_e('Recent Posts', 'aletheme');
?>
    </div>
    <div id="galcontainer" class="blogpost recentgaleriesitems cf">
        <?php 
if (ale_get_meta('showcathome')) {
    $postscatshow = '&cat=' . ale_get_meta('showcathome');
} else {
    $postscatshow = '';
}
if (ale_get_meta('shownumpostshome')) {
    $postperpagenum = '&posts_per_page=' . ale_get_meta('shownumpostshome');
} else {
    $postperpagenum = '&posts_per_page=-1';
}
query_posts('&post_type=post' . $postperpagenum . $postscatshow);
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
            <div class="itemblog">
                <?php 
        if (has_post_format('gallery')) {
            include 'blog_gallery.php';
        } elseif (has_post_format('image')) {
            include 'blog_image.php';
        } elseif (has_post_format('quote')) {
            include 'blog_quote.php';