<div class="row">

    <div class="col-md-8 col-xs-8">

        <?php
        if (count($curso)) {
            ?> 

            <ol class="breadcrumb">

                <li><a href="<?= base_url() ?>">Cursos</a></li>

                <li class="active"><a style="color: #888888; text-decoration: none;" href="<?= base_url(); ?>site/cursos/<?= urlencode($curso[0]->CCSubCat); ?>/"><?= $curso[0]->CCCat; ?> / <?= $curso[0]->CCSubCat; ?></a></li>

            </ol>





            <div class="page-header">

                <h1><?= $curso[0]->nome; ?></h1>

            </div>



            <div class="row" class="mostra-curso">



                <div class="col-md-4 col-xs-12">

                    <img  class="img-responsive" alt="<?= $curso[0]->nome; ?>" src="<?= base_url(); ?>uploads/_thumb/<?= $imagem[0]->caminho; ?>" style="min-width:240px; max-width:240px;">

                </div>



                <div class="col-md-8 col-xs-12">

    <?php if ($curso[0]->carga_horaria) { ?>

                        <i class="glyphicon glyphicon-time"></i>

        <?php
        echo 'Carga Hor&aacute;ria: 10 à 80 horas';
        ?>    

    <?php } ?>

                    <?php
                    if ($curso[0]->publicoalvo) {

                        echo 'Público alvo: ' . $curso[0]->publicoalvo;
                    }
                    ?> 

                    <br /><br />



                    <?php
                    if ($prazo_matricula) {
                        ?>
                        <a onclick="return modal_cad_curso(<?php echo $curso[0]->cedoc_doc_id_fk; ?>)" style="margin: auto auto;">
                            <span class="btn btn-success btn-sm btn-matricular">
                                <i class="glyphicon glyphicon-pencil"></i> Matricular
                            </span>
                        </a>
    <?php } else { ?>
                        <a onclick="alert('Calma! Algum problema ocorreu.\nProv&aacute;veis motivos:\n  \n-Voc&ecirc; possui algum curso em andamento. Volte a estudar.')" style="margin: auto auto;">
                            <span class="btn btn-success btn-sm btn-matricular">
                                <i class="glyphicon glyphicon-pencil"></i> Matricular
                            </span>
                        </a>               
    <?php } ?>


                    <br /><br />



                    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">

                        <div class="panel panel-default">

                            <div class="panel-heading" role="tab" id="headingOne">

                                <p class="panel-title">

                                    <a role="button" data-toggle="collapse" data-parent="#accordion" href="#apresentacao" aria-expanded="true" aria-controls="collapseOne">

                                        <p>Apresentação</p>

                                    </a>

                                </p>

                            </div>

                            <div id="apresentacao" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">

                                <div class="panel-body">

    <?= $curso[0]->apresentacao3 ?>

                                </div>

                            </div>

                        </div>

                        <div class="panel panel-default">

                            <div class="panel-heading" role="tab" id="headingTwo">

                                <p class="panel-title">

                                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#Objetivo" aria-expanded="false" aria-controls="collapseTwo">

                                        <p>Objetivo</p>

                                    </a>

                                </p>

                            </div>

                            <div id="Objetivo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">

                                <div class="panel-body">

    <?= $curso[0]->objetivo3 ?>

                                </div>

                            </div>

                        </div>

                        <div class="panel panel-default">

                            <div class="panel-heading" role="tab" id="headingThree">

                                <p class="panel-title">

                                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#Publico" aria-expanded="false" aria-controls="collapseThree">

                                        <p>Público-alvo</p>

                                    </a>

                                </p>

                            </div>

                            <div id="Publico" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">

                                <div class="panel-body">

    <?= $curso[0]->publicoalvo3 ?>

                                </div>

                            </div>

                        </div>

                        <div class="panel panel-default">

                            <div class="panel-heading" role="tab" id="headingFour">

                                <p class="panel-title">

                                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#Duracao" aria-expanded="false" aria-controls="collapseThree">

                                        <p>Duração</p>

                                    </a>

                                </p>

                            </div>

                            <div id="Duracao" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">

                                <div class="panel-body">

                                    De 2 à 90 dias

                                </div>

                            </div>

                        </div>

                        <div class="panel panel-default">

                            <div class="panel-heading" role="tab" id="headingFive">

                                <p class="panel-title">

                                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#Tipo" aria-expanded="false" aria-controls="collapseThree">

                                        <p>Tipo</p>

                                    </a>

                                </p>

                            </div>

                            <div id="Tipo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive">

                                <div class="panel-body">

                                    Capacitação - Curso livre

                                </div>

                            </div>

                        </div>

                        <div class="panel panel-default">

                            <div class="panel-heading" role="tab" id="headingSix">

                                <p class="panel-title">

                                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#servicos" aria-expanded="false" aria-controls="collapseThree">

                                        <p>Serviços</p>

                                    </a>

                                </p>

                            </div>

                            <div id="servicos" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">

                                <div class="panel-body">

                                    <p>-Matrícula</p>

                                    <p>-Conteúdo</p>

                                    <p>-Vídeos, Lívros, Biblioteca Digital</p>

                                    <p>-Certificado Web</p>

                                </div>

                            </div>

                        </div>    

                    </div>



                </div>



            </div>

            <hr>

            <div class="row" class="mostra-curso">

                <div class="col-md-2 col-xs-12">

                    <a target="_blank" href="http://twitter.com/share?url=http://<?= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?>&text=<?= utf8_encode(str_replace('"', '', $curso[0]->nome)); ?>&via=qualiteweb"><img border="0" src="<?= base_url(); ?>imgs/tweet.png" />Twitter</a>

                </div>

                <div class="col-md-2 col-xs-12">

                    <a target="_blank" href="http://www.facebook.com/sharer.php?u=http://<?= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?>"><img src="<?= base_url(); ?>imgs/compartilhar_facebook.png" /></a>

                </div>

                <div class="col-md-2 col-xs-12">

                    <iframe src="http://www.facebook.com/plugins/like.php?href=http://<?= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?>&amp;layout=button_count&amp;show_faces=true&amp;width=150&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>

                </div>





            </div>



    <?php
} else {

    echo '<div class="well">Nenhum curso encontrado :/</div>';
}
?>





    </div>

</div>