Já se sabe qual é a ‘Palavra do Ano’ — e não é nenhuma surpresa

A Ukrainian serviceman displays the Ukrainian flag on an armoured personnel carrier (APC) near Lyman, Donetsk region on December 14, 2022, amid the Russian invasion of Ukraine. - Lyman that Ukrainians recaptured in October after four months of Russian occupation, is now about thirty kilometres (18 miles) from the frontline. Kyiv said that the cities of Bakhmut and Avdiivka -- both south of Lyman -- were now the "epicentre" of the war. (Photo by Genya SAVILOV / AFP)

A ‘Palavra do Ano de 2022’ em Portugal é “guerra”. Foi este o termo mais votado no concurso anual que a Porto Editora promove para enaltecer o vocábulo mais simbólico ou representativo de um determinado ano.

Neste caso, sem surpresas, teve a ver com a invasão da Rússia à Ucrânia, que se iniciou a 24 de Fevereiro. “Guerra” teve 53 por cento dos votos, o que representa o maior valor percentual de sempre da iniciativa da ‘Palavra do Ano’.

Seguiu-se “inflação”, com 18,8 por cento dos votos, numa altura em que se atingiu um valor máximo nos últimos 30 anos. E, a completar o pódio, “urgências”, com 6,6 por cento dos votos — o termo reflecte os problemas que o SNS tem enfrentado em Portugal.

A lista que foi submetida a votos continha ainda as palavras “rainha”, “energia”, “seca”, “abusos”, “ciberataque”, “nuclear” e “juros”.

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