Forums › Forums › Search & Filter Pro › Theme Template
- This topic has 2 replies, 1 voice, and was last updated 10 years ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
-
Anonymous(Private) November 3, 2014 at 5:21 pm #6911
Hello there,
I recently bought the PRO version and I’m almost there to the final implementation.
Thing is,
I want my results page layouted as my originally templated page from theme was.I got the ideia behind implementing it all trough a child folder and setting results.php.
I also got the code from my theme template php file.
Now I only have to merge those two together, but I’m having php difficulties…Can you guys help me out? I think with little tweaking I can layout the Search & Filter results page.
Thanks a lot guys,
Btw using Theme X.Anonymous(Private) November 3, 2014 at 5:31 pm #6913Sorry, also here is the theme template code:
<?php // ============================================================================= // VIEWS/GLOBAL/_INDEX.PHP // ----------------------------------------------------------------------------- // Includes the index output. // ============================================================================= $stack = x_get_stack(); if ( is_home() ) : $style = x_get_option( 'x_blog_style', 'standard' ); $cols = x_get_option( 'x_blog_masonry_columns', '2' ); $condition = is_home() && $style == 'masonry'; elseif ( is_archive() || is_search() ) : $style = x_get_option( 'x_archive_style', 'standard' ); $cols = x_get_option( 'x_archive_masonry_columns', '2' ); $condition = ( is_archive() || is_search() ) && $style == 'masonry'; #elseif ( is_search() ) : # $condition = false; endif; ?> <?php if ( $condition ) : ?> <?php x_get_view( 'global', '_script', 'isotope-index' ); ?> <div id="x-iso-container" class="x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php if ( $stack != 'ethos' ) : ?> <?php x_get_view( $stack, 'content', get_post_format() ); ?> <?php else : ?> <?php x_ethos_entry_cover( 'main-content' ); ?> <?php endif; ?> <?php endwhile; ?> <?php else : ?> <?php x_get_view( 'global', '_content-none' ); ?> <?php endif; ?> </div> <?php else : ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php x_get_view( $stack, 'content', get_post_format() ); ?> <?php endwhile; ?> <?php else : ?> <?php x_get_view( 'global', '_content-none' ); ?> <?php endif; ?> <?php endif; ?> <?php pagenavi(); ?>
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)