'; } } } /** * Display navigation to next/previous set of posts when applicable. * */ if ( ! function_exists( 'atiframebuilder_paging_nav' ) ) : function atiframebuilder_paging_nav() { global $wp_query; // Don't print empty markup if there's only one page. if ( $wp_query->max_num_pages < 2 ) return; ?> $post->post_parent, 'fields' => 'ids', 'numberposts' => -1, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID', ) ); // If there is more than 1 attachment in a gallery... if ( count( $attachment_ids ) > 1 ) { foreach ( $attachment_ids as $attachment_id ) { if ( $attachment_id == $post->ID ) { $next_id = current( $attachment_ids ); break; } } // get the URL of the next image attachment... if ( $next_id ) $next_attachment_url = get_attachment_link( $next_id ); // or get the URL of the first image attachment. else $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); } printf( '%3$s', esc_url( wp_get_attachment_url() ), the_title_attribute( array( 'echo' => false ) ), wp_get_attachment_image( $post->ID, $attachment_size ) ); } endif; // Column Control of Case Category page function atiframebuilder_case_column_control() { global $secretlab; if (isset ($secretlab['lawyer_cases_col'])) { $sl_serv_col = $secretlab['lawyer_cases_col']; if ($sl_serv_col == 1) { echo 'col-lg-12 col-md-12 col-sm-12 col-xs-12'; } if ($sl_serv_col == 2) { echo 'col-lg-6 col-md-6 col-sm-12 col-xs-12 col2'; } } else { echo 'col-lg-12 col-md-12 col-sm-12 col-xs-12'; } } // "Read more" button text for Services page if ( ! function_exists( 'atiframebuilder_portfolio_rmore' ) ) { function atiframebuilder_portfolio_rmore() { global $secretlab; if (isset($secretlab['portfolio_arch_rmore'])) { if (!empty($secretlab['portfolio_arch_rmore'])) { echo esc_html($secretlab['portfolio_arch_rmore']); } } } } // Column Control of Teammate Category page function atiframebuilder_team_column_control() { global $secretlab; if (isset ($secretlab['teammate_col'])) { $sl_serv_col = $secretlab['teammate_col']; if ($sl_serv_col == 1) { echo 'col-lg-4 col-md-4 col-sm-6 col-xs-12'; } if ($sl_serv_col == 2) { echo 'col-lg-3 col-md-3 col-sm-4 col-xs-12 col4'; } } else { echo 'col-lg-6 col-md-6 col-sm-6 col-xs-12'; } } //Scroll to top button if ( ! function_exists( 'atiframebuilder_scroll_button' ) ) { function atiframebuilder_scroll_button() { global $secretlab; if (isset ($secretlab['pageloader'])) { if ($secretlab['pageloader'] == 1) { echo ''; } } } } // Title for Case Study page if ( ! function_exists( 'atiframebuilder_portfolio_title' ) ) { function atiframebuilder_portfolio_title() { global $secretlab; if (isset($secretlab['cases_arch_title'])) { if (!empty($secretlab['cases_arch_title'])) { echo esc_html($secretlab['cases_arch_title']); } } } } if ( ! function_exists( 'atiframebuilder_portfolio_desc' ) ) { function atiframebuilder_portfolio_desc() { global $secretlab; $allowed_html = array( 'a' => array( 'href' => array(), 'title' => array() ), 'img' => array( 'src' => array(), 'title' => array(), 'alt' => array(), 'class' => array(), ), 'br' => array(), 'em' => array(), 'strong' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'p' => array( 'style' => array(), ), 'b' => array(), 'i' => array(), 'u' => array(), 'ol' => array(), 'ul' => array(), 'li' => array(), 'code' => array(), 'del' => array() ); if (isset ($secretlab['portfolio_arch_desc'])) { $sl_padesc = $secretlab['portfolio_arch_desc']; echo '