collapse ) ? ' multiselectable="true"' : ''; ?>>
source ) {
for ( $i = 0; $i < count( $settings->items ); $i++ ) {
if ( ! is_object( $settings->items[ $i ] ) ) {
continue;
}
$label_id = 'fl-accordion-' . $module->node . '-label-' . $i;
$icon_id = 'fl-accordion-' . $module->node . '-icon-' . $i;
$content_id = 'fl-accordion-' . $module->node . '-panel-' . $i;
$item_tab_class = ( 0 === $i && '1' === $settings->open_first ) ? 'fl-accordion-item-active' : '';
$item_tab_icon_class = ( 0 === $i && '1' === $settings->open_first ) ? $settings->label_active_icon : $settings->label_icon;
?>
id ) ) ? ' id="' . sanitize_html_class( $settings->id ) . '-' . $i . '"' : ''; ?>>
items[ $i ]->saved_layout ) {
echo FLBuilderUtils::wpautop( $wp_embed->autoembed( $settings->items[ $i ]->content ), $module );
} else {
$post_id = $settings->items[ $i ]->{'saved_' . $settings->items[ $i ]->saved_layout};
if ( ! empty( $post_id ) ) {
$module->render_content( $post_id );
}
}
?>
source ) {
$query = FLBuilderLoop::query( $settings );
if ( $query->have_posts() ) {
$i = 0;
while ( $query->have_posts() ) {
$query->the_post();
$label_id = 'fl-accordion-' . $module->node . '-label-' . $i;
$icon_id = 'fl-accordion-' . $module->node . '-icon-' . $i;
$content_id = 'fl-accordion-' . $module->node . '-panel-' . $i;
$item_tab_class = ( 0 === $i && '1' === $settings->open_first ) ? 'fl-accordion-item-active' : '';
$item_tab_icon_class = ( 0 === $i && '1' === $settings->open_first ) ? $settings->label_active_icon : $settings->label_icon;
?>
id ) ) ? ' id="' . sanitize_html_class( $settings->id ) . '-' . $i . '"' : ''; ?>>
content_type ) && 'post_content' === $settings->content_type ) {
$module->render_content( $post_id );
} else {
$module->render_excerpt( $post_id );
$more_link_text = ( ! empty( $settings->more_link ) && 'show' === $settings->more_link ) ? $settings->more_link_text : '';
$module->render_more_link( $post_id, $more_link_text );
}
?>