Forum Replies Created
-
AuthorPosts
-
June 23, 2017 at 9:58 am in reply to: Renaming the load more button in the masonry gallery button? #812025
Hello! I tried but couldn’t find the line. All i’ve got this
$output = “”;
$params[‘class’] = “main_color “.$meta[‘el_class’];
$params[‘open_structure’] = false;
$params[‘id’] = !empty($atts[‘id’]) ? AviaHelper::save_string($atts[‘id’],’-‘) : “”;
$params[‘custom_markup’] = $meta[‘custom_markup’];
if( ($atts[‘gap’] == ‘no’ && $atts[‘sort’] == “no”) || $meta[‘index’] == 0) $params[‘class’] .= ” avia-no-border-styling”;//we dont need a closing structure if the element is the first one or if a previous fullwidth element was displayed before
if($meta[‘index’] == 0) $params[‘close’] = false;
if(!empty($meta[‘siblings’][‘prev’][‘tag’]) && in_array($meta[‘siblings’][‘prev’][‘tag’], AviaBuilder::$full_el_no_section )) $params[‘close’] = false;if($meta[‘index’] != 0) $params[‘class’] .= ” masonry-not-first”;
if($meta[‘index’] == 0 && get_post_meta(get_the_ID(), ‘header’, true) != “no”) $params[‘class’] .= ” masonry-not-first”;$masonry = new avia_masonry($atts);
$masonry->extract_terms();
$masonry->query_entries();
$masonry_html = $masonry->html();if(!ShortcodeHelper::is_top_level()) return $masonry_html;
if( !empty( $atts[‘color’] ) && !empty( $atts[‘custom_bg’]) )
{
$params[‘class’] .= ” masonry-no-border”;
}$output .= avia_new_section($params);
$output .= $masonry_html;
$output .= avia_section_after_element_content( $meta , ‘after_masonry’ );return $output;
}}
} -
AuthorPosts