Forum Replies Created
Viewing 1 post (of 1 total)
-
Author
-
saveorcancelParticipant
I couldn’t upload the php
Here is try #2 posts grid – error on line 120
COPY CODE<?php global $kleo_config; $grid_link = $grid_layout_mode = $title = $filter = $show_thumb = $inline_meta = $show_footer = ''; $posts = array(); extract(shortcode_atts(array( 'title' => '', 'columns' => 4, 'el_class' => '', 'orderby' => NULL, 'order' => 'DESC', 'loop' => '', 'post_layout' => 'grid', 'show_thumb' => 'yes', 'show_meta' => 'yes', 'inline_meta' => 'no', 'show_excerpt' => 'yes', 'show_switcher' => 'no', 'show_footer' => 'yes', 'switcher_layouts' => array_values(array_flip($kleo_config['blog_layouts'])) ), $atts)); if( empty( $loop ) ) return; $this->getLoop( $loop ); $my_query = $this->query; $args = $this->loop_args; $el_class = $el_class != "" ? " ".$el_class : ""; // Alias for Grid to Masonry if ( $post_layout == 'grid' ) { $post_layout = 'masonry'; } $post_layout = apply_filters( 'kleo_blog_type', $post_layout, get_the_ID() ); if ( $post_layout == 'standard' && 0 === strpos( $show_thumb, 'just_' ) ) { global $conditional_thumb; $conditional_thumb = substr( $show_thumb, -1 ); $el_class .= ' just-thumb-' . $conditional_thumb; } elseif ( $show_thumb == 'no' ) { global $conditional_thumb; $conditional_thumb = 0; } if ( $show_meta == 'yes' ) { $el_class .= ' with-meta'; } else { $el_class .= ' no-meta'; } if ( $show_footer == 'no' ) { $el_class .= ' no-footer'; } if ( $show_excerpt == 'no' ) { $el_class .= ' no-excerpt'; } if ( $inline_meta == 'yes' ) { $el_class .= ' inline-meta'; } $el_class .= " " . $post_layout . '-listing'; query_posts($args); if ( have_posts() ) : ?> <?php if ( $show_switcher == 'yes' ) : ?> <?php $switcher_layouts = explode( ',',$switcher_layouts ); kleo_view_switch( $switcher_layouts, $post_layout, get_the_ID() ); ?> <?php endif; ?> <?php if ( $post_layout == 'masonry' ) : ?> <div class="posts-listing responsive-cols kleo-masonry per-row-<?php echo $columns;?><?php echo $el_class;?>"> <?php else: ?> <div class="posts-listing <?php echo $el_class;?>"> <?php endif; ?> <?php while ( have_posts() ) : the_post(); if ( $post_layout != 'standard' ) { get_template_part( 'page-parts/post-content-' . $post_layout ); } else { get_template_part( 'content', get_post_format() ); } endwhile; if ($post_layout == 'masonry') : ?> <?php endif; ?> <?php // Post navigation. kleo_pagination(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?> </div> <!-- END post listing --> <?php endif; // Reset Query wp_reset_query();
try #4 @ vc posts grid – error – line 118
COPY CODE<?php global $kleo_config; $grid_link = $grid_layout_mode = $title = $filter = $show_thumb = $inline_meta = $show_footer = ''; $posts = array(); extract(shortcode_atts(array( 'title' => '', 'columns' => 4, 'el_class' => '', 'orderby' => NULL, 'order' => 'DESC', 'loop' => '', 'post_layout' => 'grid', 'show_thumb' => 'yes', 'show_meta' => 'yes', 'inline_meta' => 'no', 'show_excerpt' => 'yes', 'show_switcher' => 'no', 'show_footer' => 'yes', 'switcher_layouts' => array_values(array_flip($kleo_config['blog_layouts'])) ), $atts)); if( empty( $loop ) ) return; $this->getLoop( $loop ); $my_query = $this->query; $args = $this->loop_args; $el_class = $el_class != "" ? " ".$el_class : ""; // Alias for Grid to Masonry if ( $post_layout == 'grid' ) { $post_layout = 'masonry'; } $post_layout = apply_filters( 'kleo_blog_type', $post_layout, get_the_ID() ); if ( $post_layout == 'standard' && 0 === strpos( $show_thumb, 'just_' ) ) { global $conditional_thumb; $conditional_thumb = substr( $show_thumb, -1 ); $el_class .= ' just-thumb-' . $conditional_thumb; } elseif ( $show_thumb == 'no' ) { global $conditional_thumb; $conditional_thumb = 0; } if ( $show_meta == 'yes' ) { $el_class .= ' with-meta'; } else { $el_class .= ' no-meta'; } if ( $show_footer == 'no' ) { $el_class .= ' no-footer'; } if ( $show_excerpt == 'no' ) { $el_class .= ' no-excerpt'; } if ( $inline_meta == 'yes' ) { $el_class .= ' inline-meta'; } $el_class .= " " . $post_layout . '-listing'; query_posts($args); if ( have_posts() ) : ?> <?php if ( $show_switcher == 'yes' ) : ?> <?php if(!is_array($switcher_layouts)){ $switcher_layouts = explode( ',',$switcher_layouts ); } kleo_view_switch( $switcher_layouts, $post_layout, get_the_ID() ); ?> <?php endif; ?> <?php if ( $post_layout == 'masonry' ) : ?> <div class="posts-listing responsive-cols kleo-masonry per-row-<?php echo $columns;?><?php echo $el_class;?>"> <?php else: ?> <div class="posts-listing <?php echo $el_class;?>"> <?php endif; ?> <?php while ( have_posts() ) : the_post(); if ( $post_layout != 'standard' ) { get_template_part( 'page-parts/post-content-' . $post_layout ); } else { get_template_part( 'content', get_post_format() ); } endwhile; ?> </div> <!-- END post listing --> <?php // Post navigation. kleo_pagination(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?> <?php endif; // Reset Query wp_reset_query();
-
AuthorPosts
Viewing 1 post (of 1 total)