BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
CTR
/
wp-content
/
plugins
/
porto-functionality
/
shortcodes
/
templates
📤 Upload
📝 New File
📁 New Folder
Close
Editing: porto_sort_container.php
<?php $output = $id = $animation_type = $animation_duration = $animation_delay = $el_class = ''; extract( shortcode_atts( array( 'id' => '', 'animation_type' => '', 'animation_duration' => 1000, 'animation_delay' => 0, 'animation_reveal_clr' => '', 'el_class' => '', ), $atts ) ); wp_enqueue_script( 'isotope' ); wp_enqueue_script( 'porto-sort-filters' ); $el_class = porto_shortcode_extract_class( $el_class ); $output = '<div class="porto-sort-container ' . esc_attr( $el_class ) . '"'; if ( $animation_type ) { $output .= ' data-appear-animation="' . esc_attr( $animation_type ) . '"'; if ( $animation_delay ) { $output .= ' data-appear-animation-delay="' . esc_attr( $animation_delay ) . '"'; } if ( $animation_duration && 1000 != $animation_duration ) { $output .= ' data-appear-animation-duration="' . esc_attr( $animation_duration ) . '"'; } if ( false !== strpos( $animation_type, 'revealDir' ) ) { $output .= ' data-animation-reveal-clr="' . ( ! empty( $animation_reveal_clr ) ? esc_attr( $animation_reveal_clr ) : '' ) . '"'; } } $output .= '>'; $output .= '<div class="row" id="' . esc_attr( $id ) . '">'; $output .= do_shortcode( $content ); $output .= '</div></div>'; echo porto_filter_output( $output );
Save
Cancel