Vem aí nova edição da Mostra de Teatro Escolar de Braga

A Câmara de Braga promove entre esta terça-feira e 14 de Maio, a 11.ª edição da Mostra de Teatro Escolar. O Espaço Vita e o Theatro Circo acolhem onze espectáculos teatrais apresentados pelas escolas básicas e secundárias do concelho, envolvendo cerca de 380 alunos.

A entrada nos espectáculos tem o valor simbólico de 2 euros.

PROGRAMA 

 ESPAÇO VITA

  • 07 MAIO | 10H30 | ´O RAPAZ DE BRONZE´ – Agrupamento de Escolas de Real
    • 09 MAIO | 15H00 | ´RUMOS INFERNAIS´ – Agrupamento de Escolas Trigal de Santa Maria
    • 13 MAIO | 10H30 | ´UMA NOITE NA BIBLIOTECA´ – Agrupamento de Escolas de Celeirós
    • 14 MAIO | 10H30 | ´AUTO DAS NOVÍSSIMAS BARCAS´ – Agrupamento de Escolas Dr. Francisco Sanches
    21H30 | ´UM SONHO À VOLTA DA ÓPERA!´ – Escola Artística do Conservatório de Música Calouste Gulbenkian

THEATRO CIRCO

  • 07 MAIO | 15H00 | ´A LIBERDADE DO CORAÇÃO É TUDO´ – Agrupamento de Escolas D. Maria II
    • 08 MAIO | 10H30 | ´V.I.O.L.A.R.´ – Agrupamento de Escolas Carlos Amarante
    21H30 | ´UBU´ – Agrupamento de Escolas Alberto Sampaio
    • 09 MAIO | 15H00 |´DIAMANTES DA DESGRAÇA´ – Esprominho – Escola Profissional do Minho
    • 10 MAIO | 10H30 | QUEM MUITO ESCOLHE…! – Agrupamento de Escolas Sá de Miranda
    21H30 | ´MAMMA MIA´ – CLIB – Colégio Luso-Internacional de Braga

Jornal O Desportivo

<?php
function fetch_rss_cached($url, $cache_seconds = 600) {
    $key = 'rss_cache_' . md5($url);

    $cached = get_transient($key);
    if ($cached !== false) {
        return simplexml_load_string($cached);
    }

    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_USERAGENT, 'WP RSS Fetcher');

    $data = curl_exec($ch);
    curl_close($ch);

    if (!$data) return null;

    set_transient($key, $data, $cache_seconds);
    return simplexml_load_string($data);
}

function time_ago($datetime) {
    $time = strtotime($datetime);
    $diff = time() - $time;

    if ($diff < 60) return $diff . ' segundos atrás';
    if ($diff < 3600) return floor($diff / 60) . ' minutos atrás';
    if ($diff < 86400) return floor($diff / 3600) . ' horas atrás';
    if ($diff < 604800) return floor($diff / 86400) . ' dias atrás';
    return date('d/m/Y H:i', $time);
}

$rss = fetch_rss_cached('https://www.desportivovaledohomem.pt/category/destaque/feed/', 600);
if (!$rss || empty($rss->channel->item)) {
    echo '<!-- RSS vazio ou erro -->';
    return;
}

$items = $rss->channel->item;
$count = 0;

echo '<div class="rss-posts">';

foreach ($items as $item) {
    if ($count >= 5) break;

    $title = (string) $item->title;
    $link = (string) $item->link;
    $pubDate = (string) $item->pubDate;
    $timeAgo = time_ago($pubDate);

    $categoryText = isset($item->category[0]) ? (string) $item->category[0] : '';

    echo '<div class="rss-post">';
    echo '<p class="rss-meta">' . esc_html($timeAgo) . ' - ' . esc_html($categoryText) . '</p>';
    echo '<h3 class="rss-title"><a href="' . esc_url($link) . '" target="_blank" rel="noopener">' . esc_html($title) . '</a></h3>';
    echo '</div>';

    $count++;
}

echo '</div>';
?>
.rss-posts {
    font-family: "MYRIAD PRO";
    font-weight: 400;
}

.rss-post {
    padding: 10px 0;
    border-bottom: 1px solid #8E8E8D;
}

.rss-meta {
    color: #828282;
    font-size: 11px;
    margin-bottom: 0px;
    font-weight: 600;
}

.rss-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.rss-title a {
    text-decoration: none;
    color: #363636;
    font-family: "Myriad Pro";
    font-weight: 400;
    font-size: 17px;
}

.rss-post:last-child {
    border: none;
}
Ver mais

Últimas Notícias

Ver mais