Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
superstepsgroup.com
/
plugin-old
/
wp-rollback
/
rselements
/
widgets
/
portfolio-grid
/
Editing: style4.php
<?php $cat = $settings['portfolio_category']; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if(empty($cat)){ $best_wp = new wp_Query(array( 'post_type' => 'portfolios', 'posts_per_page' => $settings['per_page'], )); } else{ $best_wp = new wp_Query(array( 'post_type' => 'portfolios', 'posts_per_page' => $settings['per_page'], 'tax_query' => array( array( 'taxonomy' => 'portfolio-category', 'field' => 'slug', //can be set to ID 'terms' => $cat //if field is ID you can reference by cat/term number ), ) )); } while($best_wp->have_posts()): $best_wp->the_post(); $unique = rand(2012,3554120); $content = get_the_content(); $client = get_post_meta( get_the_ID(), 'client', true ); $location = get_post_meta( get_the_ID(), 'location', true ); $surface_area = get_post_meta( get_the_ID(), 'surface_area', true ); $created = get_post_meta( get_the_ID(), 'created', true ); $date = get_post_meta( get_the_ID(), 'date', true ); $project_value = get_post_meta( get_the_ID(), 'project_value', true ); $cats_show = get_the_term_list( $best_wp->ID, 'portfolio-category', ' ', '<span class="separator">,</span> '); ?> <div class="col-lg-<?php echo esc_html($settings['portfolio_columns']);?> col-md-6 col-xs-1 grid-item "> <div class="portfolio-item"> <?php if(has_post_thumbnail()): ?> <?php the_post_thumbnail($settings['thumbnail_size']);?> <?php endif;?> <div class="portfolio-content"> <?php if(get_the_title()):?> <div class="p-title"> <span class="p-category"><?php echo wp_kses_post( $cats_show ); ?></span> <?php if($settings['grid_popup']=='popup'): ?> <a class="pointer-events" href="#rs_port2_<?php echo esc_attr($unique);?>" data-effect="mfp-zoom-in"><?php the_title();?></a> <?php else: ?> <a class="tite-color" href="<?php the_permalink(); ?>"><?php the_title();?></a> <?php endif ?> </div> <?php endif;?> </div> </div> </div> <!-- Popup Content Information --> <div id="rs_port2_<?php echo esc_attr($unique);?>" class="rspopup_style1 mfp-with-anim mfp-hide" <?php echo wp_kses_post($popup_port_background);?>> <div class="rsteam_content"> <h3 class="title" <?php echo wp_kses_post($popup_port_title_color);?>><?php the_title();?></h3> <div class="team-des" <?php echo wp_kses_post($popup_port_content_color);?>> <?php the_content();?> </div> <ul class="project-info" <?php echo wp_kses_post($popup_port_info_color);?>> <?php if(!empty($client)):?> <li><span><?php echo esc_html('client:', 'rsaddon');?></span> <?php echo esc_html($client);?></li> <?php endif;?> <?php if(!empty($location)):?> <li><span><?php echo esc_html('Location:', 'rsaddon');?></span> <?php echo esc_html($location);?></li> <?php endif;?> <?php if(!empty($surface_area)):?> <li><span><?php echo esc_html('Surface Area:', 'rsaddon');?></span> <?php echo esc_html($surface_area);?></li> <?php endif;?> <?php if(!empty($created)):?> <li><span><?php echo esc_html('Architect:', 'rsaddon');?></span> <?php echo esc_html($created);?></li> <?php endif;?> <?php if(!empty($date)):?> <li><span><?php echo esc_html('Year Of Complited:', 'rsaddon');?></span> <?php echo esc_html($date);?></li> <?php endif;?> <?php if(!empty($project_value)):?> <li><span><?php echo esc_html('Project Value:', 'rsaddon');?></span> <?php echo esc_html($project_value);?></li> <?php endif;?> </ul> </div> </div> <?php endwhile; wp_reset_query(); ?>
Save
Cancel