<?php
/**
 * WP-JoomSport
 * @author      BearDev
 * @package     JoomSport
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

?>
<div class="row">    
    <div class="col-xs-12 rmpadd" style="padding-right:0px;">
        <div class="jsObjectPhoto rmpadd">
            <div class="photoPlayer">

                    <?php echo jsHelperImages::getEmblemBig($rows->getDefaultPhoto());?>

                    

            </div>    
        </div>
        <?php
        $class = '';
        $extra_fields = jsHelper::getADF($rows->lists['ef']);
        if ($extra_fields) {
            $class = 'well well-sm';
        } else {
            ?>
            <div class="rmpadd" style="padding-right:0px;padding-left:15px;">
                <?php echo wp_kses_post($rows->getDescription());
            ?>
            </div>
            <?php

        }
        ?>
        <div class="<?php echo esc_attr($class);?> pt10 extrafldcn">
            <?php

                echo wp_kses_post($extra_fields);
            ?>
        </div>
    </div>
    <?php if ($extra_fields) {
    ?>
    <div class="col-xs-12 rmpadd" style="padding-right:0px;">
        <?php echo wp_kses_post($rows->getDescription());
    ?>
    </div>
    <?php 
} ?>
</div>
<?php do_action("joomsport_teampage_before_tables");?>
<div id="stab_overview">
    <?php
    if ($rows->_displayOverviewTab() && count($rows->lists['matches'])) {
        $obj = new modelJsportTeam($rows->object->ID, $rows->season_id);
        $rows->lists['curposition'] = $obj->getCurrentPosition();
        $rows->getLatestMatches();
        $rows->getNextMatches();




        require JOOMSPORT_PATH_VIEWS_ELEMENTS . 'team-overview.php';
    }
    ?>
</div>