$fusion_settings->get( 'h1_typography' ), 'h2_typography' => $fusion_settings->get( 'h2_typography' ), 'h3_typography' => $fusion_settings->get( 'h3_typography' ), 'h4_typography' => $fusion_settings->get( 'h4_typography' ), 'h5_typography' => $fusion_settings->get( 'h5_typography' ), 'h6_typography' => $fusion_settings->get( 'h6_typography' ), ]; ?>
studio_url; } /** * Get the data from REST endpoint. * * @access public * @since 3.0 * @return array */ public function get_data() { if ( null !== $this->data ) { return $this->data; } if ( ! FUSION_BUILDER_DEV_MODE && false !== get_transient( 'avada_studio' ) ) { $this->data = get_transient( 'avada_studio' ); return $this->data; } $response = wp_remote_get( $this->studio_url . '/wp-json/studio/full', [ 'timeout' => 60 ] ); // Exit if error. if ( is_wp_error( $response ) ) { return false; } // Get the body. $resources = json_decode( wp_remote_retrieve_body( $response ), true ); set_transient( 'avada_studio', $resources, DAY_IN_SECONDS ); return $resources; } /** * Get the data for ajax requests. * * @access public * @since 3.0 * @return void */ public function get_ajax_data() { check_ajax_referer( 'fusion_load_nonce', 'fusion_load_nonce' ); echo wp_json_encode( $this->get_data() ); wp_die(); } /** * Template used for studio layouts. * * @access public * @since 3.0 * @return void */ public function builder_template() { ?> studio_url ) ) { return $parsed_args; } $parsed_args['user-agent'] = 'avada-user-agent'; return $parsed_args; } } /** * Instantiates the AWB_Studio class. * Make sure the class is properly set-up. * * @since object 3.0 * @return object AWB_Studio */ function AWB_Studio() { // phpcs:ignore WordPress.NamingConventions return AWB_Studio::get_instance(); } AWB_Studio();