'; } } } /** * 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 '
'.wp_kses($sl_padesc, $allowed_html).'
'; } } } // Hide H1 in team page if Header 6 activated if ( ! function_exists( 'atiframebuilder_hide_portfolio' ) ) { function atiframebuilder_hide_portfolio() { global $secretlab; if (isset ($secretlab['header-layout'])) { $sl_header_layout = $secretlab['header-layout']; if ($sl_header_layout != 6) { echo '

'; atiframebuilder_portfolio_title(); echo '

'; } atiframebuilder_portfolio_desc(); } } } // Page H1 heading if ( ! function_exists( 'atiframebuilder_entry_header' ) ) { function atiframebuilder_entry_header() { if (class_exists( 'Redux' )) { if (isset($secretlab['single-header'])) { if ($secretlab['single-header'] == 1) { echo '

' . get_the_title() . '

'; } } } else { echo '

' . get_the_title() . '

'; } } } // Archive pagination if ( ! function_exists( 'atiframebuilder_archive_nav' ) ) { function atiframebuilder_archive_nav() { echo ''; } } if ( ! function_exists( 'atiframebuilder_boxed_class' ) ) { function atiframebuilder_boxed_class() { global $secretlab, $atiframebuilder_layout; $atiframebuilder_bwc = ''; $sl_design_layout = isset($atiframebuilder_layout[$secretlab['atiframebuilder_design_layout']]) ? $atiframebuilder_layout[$secretlab['atiframebuilder_design_layout']] : 1; if ( $sl_design_layout == 2 ) { $atiframebuilder_bwc = ' boxed-wrapper'; } return $atiframebuilder_bwc; } } if ( ! function_exists( 'atiframebuilder_sidebar_layout_class_for_main' ) ) { function atiframebuilder_sidebar_layout_class_for_main() { global $secretlab, $atiframebuilder_layout; $atiframebuilder_msc = ''; $sl_sidebar_layout = isset($atiframebuilder_layout[$secretlab['atiframebuilder_pagetype_prefix'] . 'sidebar-layout']) ? $atiframebuilder_layout[$secretlab['atiframebuilder_pagetype_prefix'] . 'sidebar-layout'] : 1; if ($sl_sidebar_layout != 1) { $atiframebuilder_msc = ' mainsidebar'; } return $atiframebuilder_msc; } } if ( ! function_exists( 'atiframebuilder_main_tag_classes' ) ) { function atiframebuilder_main_tag_classes() { echo ' class="'.atiframebuilder_boxed_class() . atiframebuilder_sidebar_layout_class_for_main().'"'; } } // Page meta if ( ! function_exists( 'atiframebuilder_page_entry_meta' ) ) : function atiframebuilder_page_entry_meta() { echo '
' . get_the_title() . '
'; echo ''. get_the_modified_time('F jS, Y h:i a').''; echo ''. get_the_author().''; } endif; ?>