first commit
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for default displaying portfolio taxonomy
|
||||
*/
|
||||
get_header();
|
||||
//no columns on this page - giving true as a parameter to get column classes function
|
||||
$column_classes = fw_ext_extension_get_columns_classes( true );
|
||||
|
||||
//getting taxonomy name
|
||||
$ext_team_settings = fw()->extensions->get( 'team' )->get_settings();
|
||||
$taxonomy_name = $ext_team_settings['taxonomy_name'];
|
||||
|
||||
$categories = fw_ext_extension_get_listing_categories( array(), 'team' );
|
||||
global $wp_query;
|
||||
$sort_classes = fw_ext_extension_get_sort_classes( $wp_query->posts, $categories, '', 'team' );
|
||||
|
||||
$unique_id = uniqid();
|
||||
?>
|
||||
<div id="content" class="<?php echo esc_attr( $column_classes['main_column_class'] ); ?>">
|
||||
<?php
|
||||
if ( count( $categories ) > 1 ) : ?>
|
||||
<div class="filters isotope_filters-<?php echo esc_attr( $unique_id ); ?> text-center">
|
||||
<a href="#" data-filter="*" class="selected"><?php esc_html_e( 'All', 'mwtemplates' ); ?></a>
|
||||
<?php foreach ( $categories as $category ) : ?>
|
||||
<a href="#"
|
||||
data-filter=".<?php echo esc_attr( $category->slug ); ?>"><?php echo esc_html( $category->name ); ?></a>
|
||||
<?php endforeach; ?>
|
||||
</div><!-- eof isotope_filters -->
|
||||
<?php endif; //count subcategories check ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<div class="isotope_container isotope row masonry-layout columns_margin_bottom_20"
|
||||
<?php if ( count( $categories ) > 1 ) { ?>
|
||||
data-filters=".isotope_filters-<?php echo esc_attr( $unique_id ); ?>"
|
||||
<?php } ?>
|
||||
>
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
?>
|
||||
<div
|
||||
class="isotope-item col-lg-4 col-md-6 col-sm-12 <?php echo esc_attr( $sort_classes[get_the_ID()] ); ?>">
|
||||
<?php
|
||||
include( fw()->extensions->get( 'team' )->locate_view_path( 'loop-item' ) );
|
||||
?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
</div><!-- eof isotope_container -->
|
||||
<?php
|
||||
else :
|
||||
// If no content, include the "No posts found" template.
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
endif; ?>
|
||||
<?php // Pagination.
|
||||
$pagination = paginate_links( array(
|
||||
'prev_text' => __( 'Prev' ),
|
||||
'next_text' => __( 'Next' ),
|
||||
'type' => 'list',
|
||||
));
|
||||
if ($pagination) {
|
||||
echo '<nav class="pagination-nav">' . wp_kses_post( str_replace( 'page-numbers', 'page-numbers pagination', $pagination ) ) . '</nav>';
|
||||
}
|
||||
?>
|
||||
</div><!--eof #content -->
|
||||
|
||||
<?php if ( $column_classes['sidebar_class'] ): ?>
|
||||
<!-- main aside sidebar -->
|
||||
<aside class="<?php echo esc_attr( $column_classes['sidebar_class'] ); ?>">
|
||||
<?php get_sidebar(); ?>
|
||||
</aside>
|
||||
<!-- eof main aside sidebar -->
|
||||
<?php
|
||||
endif;
|
||||
get_footer();
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
/**
|
||||
* Single service loop item layout
|
||||
* also using as a default service view in a shortcode
|
||||
*/
|
||||
|
||||
$ext_team_settings = fw()->extensions->get( 'team' )->get_settings();
|
||||
$taxonomy_name = $ext_team_settings['taxonomy_name'];
|
||||
|
||||
$pID = get_the_ID();
|
||||
$atts = fw_get_db_post_option($pID);
|
||||
|
||||
?>
|
||||
<div class="vertical-item content-padding with_border text-center">
|
||||
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<div class="item-media">
|
||||
<?php
|
||||
$full_image_src = wp_get_attachment_url( get_post_thumbnail_id( $pID ) );
|
||||
the_post_thumbnail();
|
||||
?>
|
||||
<div class="media-links">
|
||||
<a class="abs-link" href="<?php the_permalink(); ?>"></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; //has_post_thumbnail ?>
|
||||
<div class="item-content">
|
||||
|
||||
<h3 class="bottommargin_0">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</h3>
|
||||
<?php if ( ! empty( $atts['position'] ) ) : ?>
|
||||
<p class="small-text highlight"><strong><?php echo wp_kses_post( $atts['position'] ); ?></strong></p>
|
||||
<?php endif; //position ?>
|
||||
|
||||
<?php if ( ! empty( $atts['social_icons'] ) ) : ?>
|
||||
<div class="team-social-icons">
|
||||
<?php
|
||||
//get icons-social shortcode to render icons in team member item
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $atts['social_icons'] ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
<div class="theme_buttons small_buttons color1">
|
||||
<?php
|
||||
echo get_the_term_list( $pID, $taxonomy_name, '', ' ', '' );
|
||||
?>
|
||||
</div>
|
||||
<p>
|
||||
<?php the_excerpt(); ?>
|
||||
</p>
|
||||
<p class="topmargin_25">
|
||||
<a href="<?php the_permalink(); ?>" class="theme_button wide_button inverse">
|
||||
<?php esc_html_e( 'Learn More', 'mwtemplates' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div><!-- eof .vertical-item -->
|
||||
@@ -0,0 +1,183 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
/**
|
||||
* The template for displaying single service
|
||||
*
|
||||
*/
|
||||
|
||||
get_header();
|
||||
$pID = get_the_ID();
|
||||
|
||||
//no columns on single service page
|
||||
$column_classes = fw_ext_extension_get_columns_classes( true );
|
||||
|
||||
//getting taxonomy name
|
||||
$ext_team_settings = fw()->extensions->get( 'team' )->get_settings();
|
||||
$taxonomy_name = $ext_team_settings['taxonomy_name'];
|
||||
|
||||
$atts = fw_get_db_post_option(get_the_ID());
|
||||
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
|
||||
$unique_id = uniqid();
|
||||
?>
|
||||
<div id="content" class="<?php echo esc_attr( $column_classes['main_column_class'] ); ?>">
|
||||
<?php
|
||||
// Start the Loop.
|
||||
while ( have_posts() ) : the_post(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('row columns_padding_25'); ?>>
|
||||
<div class="col-md-5">
|
||||
<div class="vertical-item content-padding with_border text-center">
|
||||
<div class="item-media">
|
||||
<?php the_post_thumbnail(); ?>
|
||||
</div>
|
||||
<div class="item-content">
|
||||
<?php if ( get_the_term_list( $pID, $taxonomy_name ) ) : ?>
|
||||
|
||||
<div class="categories-links bottommargin_30 theme_buttons small_buttons color1">
|
||||
<?php
|
||||
echo get_the_term_list( $pID, $taxonomy_name, '', ' ', '' );
|
||||
?>
|
||||
</div>
|
||||
<?php endif; //get_the_term_list ?>
|
||||
<?php the_title( '<h3 class="bottommargin_0">', '</h3>' ); ?>
|
||||
<?php if ( ! empty( $atts['position'] ) ) : ?>
|
||||
<p class="small-text highlight"><strong><?php echo wp_kses_post( $atts['position'] ); ?></strong></p>
|
||||
<?php endif; //position ?>
|
||||
|
||||
<?php if ( ! empty( $atts['social_icons'] ) ) : ?>
|
||||
<div class="team-social-icons">
|
||||
<?php
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $atts['social_icons'] ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
|
||||
<?php if ( ! empty( $atts['icons'] ) ) : ?>
|
||||
<div class="member-info">
|
||||
<?php
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_list' )->render( array( 'icons' => $atts['icons'] ) );
|
||||
}
|
||||
?>
|
||||
</div><!-- eof social icons -->
|
||||
<?php endif; //social icons ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- .col-md-5 -->
|
||||
<div class="col-md-7">
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
<?php
|
||||
//member meta tabs start
|
||||
if (
|
||||
! empty( $atts['bio'] )
|
||||
||
|
||||
! empty( $atts['skills'] )
|
||||
||
|
||||
! empty( json_decode($atts['form']['json'])[1] )
|
||||
) :
|
||||
$tab_num = 0;
|
||||
?>
|
||||
<div class="bootstrap-tabs">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<?php
|
||||
if ( ! empty( $atts['bio'] ) ) :
|
||||
?>
|
||||
<li class="<?php echo ( $tab_num === 0 ) ? 'active' : '' ?>">
|
||||
<a href="#tab-<?php echo esc_attr( $unique_id . '-' . $tab_num ); ?>" role="tab" data-toggle="tab">
|
||||
<?php esc_html_e( 'Bio', 'mwtemplates' ); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
$tab_num++;
|
||||
endif; //bio check
|
||||
|
||||
if ( ! empty( $atts['skills'] ) ) :
|
||||
?>
|
||||
<li class="<?php echo ( $tab_num === 0 ) ? 'active' : '' ?>">
|
||||
<a href="#tab-<?php echo esc_attr( $unique_id . '-' . $tab_num ); ?>" role="tab" data-toggle="tab">
|
||||
<?php esc_html_e( 'Skills', 'mwtemplates' ); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
$tab_num++;
|
||||
endif; //bio check
|
||||
|
||||
if ( ! empty( json_decode($atts['form']['json'])[1] ) ) :
|
||||
?>
|
||||
<li class="<?php echo ( $tab_num === 0 ) ? 'active' : '' ?>">
|
||||
<a href="#tab-<?php echo esc_attr( $unique_id . '-' . $tab_num ); ?>" role="tab" data-toggle="tab">
|
||||
<?php esc_html_e( 'Send Message', 'mwtemplates' ); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
$tab_num++;
|
||||
endif; //form check
|
||||
?>
|
||||
</ul>
|
||||
<div class="tab-content top-color-border">
|
||||
<?php
|
||||
$tab_num = 0;
|
||||
if ( ! empty( $atts['bio'] ) ) :
|
||||
?>
|
||||
<div class="tab-pane tab-member-bio fade <?php echo ( $tab_num === 0 ) ? 'in active' : '' ?>"
|
||||
id="tab-<?php echo esc_attr( $unique_id ) . '-' . $tab_num ?>">
|
||||
<?php echo wp_kses_post( $atts['bio'] ); ?>
|
||||
</div><!-- .eof tab-pane -->
|
||||
<?php
|
||||
$tab_num++;
|
||||
endif; //bio check
|
||||
|
||||
if ( ! empty( $atts['skills'] ) ) :
|
||||
?>
|
||||
<div class="tab-pane tab-member-skills fade <?php echo ( $tab_num === 0 ) ? 'in active' : '' ?>"
|
||||
id="tab-<?php echo esc_attr( $unique_id ) . '-' . $tab_num ?>">
|
||||
<?php
|
||||
foreach($atts['skills'] as $skill) :
|
||||
echo fw_ext( 'shortcodes' )->get_shortcode( 'progress_bar' )->render( $skill );
|
||||
endforeach;
|
||||
?>
|
||||
</div><!-- .eof tab-pane -->
|
||||
<?php
|
||||
$tab_num++;
|
||||
endif; //skills check
|
||||
|
||||
if ( ! empty( json_decode($atts['form']['json'])[1] ) ) :
|
||||
?>
|
||||
<div class="tab-pane tab-member-form fade <?php echo ( $tab_num === 0 ) ? 'in active' : '' ?>"
|
||||
id="tab-<?php echo esc_attr( $unique_id ) . '-' . $tab_num ?>">
|
||||
<?php echo fw_ext( 'shortcodes' )->get_shortcode( 'contact_form' )->render( $atts ); ?>
|
||||
</div><!-- .eof tab-pane -->
|
||||
<?php
|
||||
$tab_num++;
|
||||
endif; //form check
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; //tab content check ?>
|
||||
|
||||
<?php if ( ! empty( $atts['additional_content'] ) ) : ?>
|
||||
<div class="member-additional-content topmargin_30">
|
||||
<?php echo wp_kses_post( $atts['additional_content'] ); ?>
|
||||
</div>
|
||||
<?php endif; //additional content ?>
|
||||
|
||||
</div>
|
||||
</article><!-- #post-## -->
|
||||
<?php endwhile; ?>
|
||||
</div><!--eof #content -->
|
||||
<?php if ( $column_classes['sidebar_class'] ): ?>
|
||||
<!-- main aside sidebar -->
|
||||
<aside class="<?php echo esc_attr( $column_classes['sidebar_class'] ); ?>">
|
||||
<?php get_sidebar(); ?>
|
||||
</aside>
|
||||
<!-- eof main aside sidebar -->
|
||||
<?php
|
||||
endif;
|
||||
get_footer();
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying team taxonomy
|
||||
*/
|
||||
get_header();
|
||||
//no columns on this page - giving true as a parameter to get column classes function
|
||||
$column_classes = fw_ext_extension_get_columns_classes( true );
|
||||
|
||||
//getting taxonomy name
|
||||
$ext_team_settings = fw()->extensions->get( 'team' )->get_settings();
|
||||
$taxonomy_name = $ext_team_settings['taxonomy_name'];
|
||||
|
||||
$categories = fw_ext_extension_get_listing_categories( array(), 'team' );
|
||||
global $wp_query;
|
||||
$sort_classes = fw_ext_extension_get_sort_classes( $wp_query->posts, $categories, '', 'team' );
|
||||
|
||||
//get taxonomy settings
|
||||
$queried_object = get_queried_object();
|
||||
$atts = fw_get_db_term_option( $queried_object->term_taxonomy_id, $queried_object->taxonomy );
|
||||
|
||||
$unique_id = uniqid();
|
||||
?>
|
||||
<div id="content" class="<?php echo esc_attr( $column_classes['main_column_class'] ); ?>">
|
||||
<?php
|
||||
//no need to show filters on category set check to 100 categories
|
||||
if ( count( $categories ) > 100 ) : ?>
|
||||
<div class="filters isotope_filters-<?php echo esc_attr( $unique_id ); ?> text-center">
|
||||
<a href="#" data-filter="*" class="selected"><?php esc_html_e( 'All', 'mwtemplates' ); ?></a>
|
||||
<?php foreach ( $categories as $category ) : ?>
|
||||
<a href="#"
|
||||
data-filter=".<?php echo esc_attr( $category->slug ); ?>"><?php echo esc_html( $category->name ); ?></a>
|
||||
<?php endforeach; ?>
|
||||
</div><!-- eof isotope_filters -->
|
||||
<?php endif; //count subcategories check ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<div class="isotope_container isotope row masonry-layout columns_margin_bottom_20"
|
||||
<?php if ( count( $categories ) > 100 ) { ?>
|
||||
data-filters=".isotope_filters-<?php echo esc_attr( $unique_id ); ?>"
|
||||
<?php } ?>
|
||||
>
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
?>
|
||||
<div
|
||||
class="isotope-item col-lg-4 col-md-6 col-sm-12 <?php echo esc_attr( $sort_classes[get_the_ID()] ); ?>">
|
||||
<?php
|
||||
include( fw()->extensions->get( 'team' )->locate_view_path( 'loop-item' ) );
|
||||
?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
</div><!-- eof isotope_container -->
|
||||
<?php
|
||||
else :
|
||||
// If no content, include the "No posts found" template.
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
endif;
|
||||
?>
|
||||
<?php // Previous/next page navigation.
|
||||
$pagination = paginate_links( array(
|
||||
'prev_text' => __( 'Prev' ),
|
||||
'next_text' => __( 'Next' ),
|
||||
'type' => 'list',
|
||||
));
|
||||
if ($pagination) {
|
||||
echo '<nav class="pagination-nav">' . wp_kses_post( str_replace( 'page-numbers', 'page-numbers pagination', $pagination ) ) . '</nav>';
|
||||
}
|
||||
?>
|
||||
</div><!--eof #content -->
|
||||
|
||||
<?php if ( $column_classes['sidebar_class'] ): ?>
|
||||
<!-- main aside sidebar -->
|
||||
<aside class="<?php echo esc_attr( $column_classes['sidebar_class'] ); ?>">
|
||||
<?php get_sidebar(); ?>
|
||||
</aside>
|
||||
<!-- eof main aside sidebar -->
|
||||
<?php
|
||||
endif;
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user