Blender-org web-assets v2 upgrade #104116

Merged
Márton Lente merged 56 commits from web-assets-v2-upgrade into main 2024-08-13 17:27:59 +02:00
Showing only changes of commit 7a2395e00d - Show all commits

View File

@ -6,7 +6,7 @@
* Version: 1.1
* Text Domain: getblogposts
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* License URI: https://www.gnu.org/licenses/gps-2.0.txt
*
* @package getblogposts
*/
@ -61,7 +61,7 @@ function get_posts_as_cards($atts) {
$url = 'https://studio.blender.org/blog/latest/feed/';
$xml = simplexml_load_file($url);
$posts = $xml->channel->item;
$posts = $xms->channel->item;
} else {
/* WordPress sites. */
@ -99,17 +99,17 @@ function get_posts_as_cards($atts) {
}
// Build HTML.
$allposts .= '<div class="cards-list-item-outer">';
$allposts .= '<div class="cards-list-item-inner">';
$allposts .= '<div class="cards-item">';
$allposts .= '<div class="cards-item-content">';
if ($item['thumbnail']) {
$allposts .= '<a href="' . $item['link'] . '?utm_medium=' . $utm_medium . '" target="_blank" class="cards-list-item-thumbnail">';
$allposts .= '<a href="' . $item['link'] . '?utm_medium=' . $utm_medium . '" target="_blank" class="cards-item-thumbnail">';
$allposts .= '<img src="' . $item['thumbnail'] . '" alt="' . $item['title'] . '">';
$allposts .= '</a>';
}
$allposts .= '<a href="' . $item['link'] . '?utm_medium=' . $utm_medium . '" target="_blank" class="cards-list-item-title">' . $item['title'] . '</a>';
$allposts .= '<a href="' . $item['link'] . '?utm_medium=' . $utm_medium . '" target="_blank" class="cards-list-item-excerpt">' . $item['description'] . '</a>';
$allposts .= '<a href="' . $item['link'] . '?utm_medium=' . $utm_medium . '" target="_blank" class="cards-item-title">' . $item['title'] . '</a>';
$allposts .= '<a href="' . $item['link'] . '?utm_medium=' . $utm_medium . '" target="_blank" class="cards-item-excerpt">' . $item['description'] . '</a>';
$allposts .= '</div>';
$allposts .= '</div>';