fonts = $this->get_fonts(); parent::__construct( $manager, $id, $args ); } /** * Render the content of the category dropdown * * @return HTML */ public function render_content() { if(!empty($this->fonts)) { ?> false) ); $content = json_decode($fontContent['body']); set_transient( 'mytheme_webfonts', $content, WEEK_IN_SECONDS ); } if($amount == 'all') { return $content->items; } else { return array_slice($content->items, 0, $amount); } } } ?>