Blender-org web-assets v2 upgrade #104116
@ -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>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user