Hacked By AnonymousFox

Current Path : /proc/thread-self/root/home/wxcglxzi/www/wp-content/themes/optimizePressTheme/themes/3/
Upload File :
Current File : //proc/thread-self/root/home/wxcglxzi/www/wp-content/themes/optimizePressTheme/themes/3/home.php

<?php get_header() ?>
		<?php
		$class = op_default_attr('column_layout','option')
		?>
		<div class="main-content content-width cf <?php echo $class ?>">
	    	<div class="main-content-area-container cf">
                <div class="sidebar-bg"></div>

                <div class="main-content-area">
                    <?php op_mod('advertising')->display(array('advertising', 'home_page', 'top')) ?>
                    <?php
                    if( have_posts() ):
                        if(is_paged()):
                            op_theme_file('loop');
                        else:
                    $postslist = get_posts( array( 'numberposts' => 1 ) );
                    foreach ($postslist as $post) :  setup_postdata($post);
                    $has_img = has_post_thumbnail(); ?>
                    <div class="latest-post<?php echo $has_img ? '':' no-post-image' ?>">
                        <h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'optimizepress'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                        <div class="cf post-meta-container">
                        <?php op_post_meta(); ?>
                        <p class="post-meta date-extra"><?php the_time(get_option('date_format')) ?></p>
                        </div>
                        <?php if($has_img): ?>
                        <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'optimizepress'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" class="post-image"><?php the_post_thumbnail( ); ?></a>
                        <?php endif ?>
                        
                        <?php the_excerpt() ?>
                        
                    </div>
                    <?php endforeach; ?>
                    <div class="clear"></div>
    
                    <?php 
                    $postslist = new WP_Query( array( 'posts_per_page' => 4, 'tag' => 'featured') );
                    if($postslist->have_posts()):?>
                    <div class="featured-posts cf">
                        <h3 class="section-header"><span><?php _e('FEATURED POSTS', 'optimizepress') ?></span></h3>
                        <div class="post-content-container">
                            <?php foreach ($postslist->posts as $post) :  setup_postdata($post);
                            $has_img = has_post_thumbnail(); ?>
                            <div class="post-content cf<?php echo $has_img ? '':' no-post-image' ?>">
                                <?php if($has_img): ?>
                                <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'optimizepress'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" class="post-image"><?php the_post_thumbnail( 'featured-post' ); ?></a>
                                <?php endif ?>
                                <h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'optimizepress'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                                <?php the_excerpt() ?>
                                <?php op_post_meta() ?>
                            </div>
                            <?php endforeach ?>
                        </div>
                    </div>
                    <?php endif ?>
                    
                    
                    <?php op_mod('advertising')->display(array('advertising', 'home_page', 'middle')) ?>
                    
                    
                    <div class="older-post-list cf"><?php
                    $postslist = new WP_Query( array( 'posts_per_page' => (get_option('posts_per_page')-1), 'offset' => 1 ) );
                    if ($postslist->have_posts()) :
                    foreach ($postslist->posts as $post) :  setup_postdata($post); ?>
                        <?php 
                        $class = ' no-post-thumbnail'; $image = '';
                        if(has_post_thumbnail()){
                            $class = '';
                        }
                        ?>
                        <div class="older-post<?php echo $class ?>">
                        <h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'optimizepress'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
                        <?php op_post_meta() ?>
                        <?php if(has_post_thumbnail()): ?>
                        <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'optimizepress'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" class="post-image"><?php the_post_thumbnail( ); ?></a>
                        <?php endif ?> 
                        <?php echo $image ?>
                        	
                        
                            <?php the_excerpt() ?>
                            
                        </div>
                    <?php endforeach; ?>
                    <?php endif;?>
                    <?php op_pagination() ?>
                    </div> <!-- end .older-post-list -->
                    <?php endif; endif ?>
                    <?php op_mod('advertising')->display(array('advertising', 'home_page', 'bottom')) ?>
                </div> <!-- end .main-content-area -->
                <?php op_sidebar() ?>
                <div class="clear"></div>
            </div>
        </div>
<?php get_footer() ?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox
Warning: unlink(/tmp/138.201.207.117:802): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/142.11.217.94): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/142.11.217.94:80): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/94.217.11.142:80): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1