admin_url( 'admin-ajax.php' ),
'thumbnail_control' => 'hestia_feature_thumbnail',
'editor_control' => 'hestia_page_editor',
));
}
/**
* Render the content on the theme customizer page
*/
public function render_content() {
?>
label ); ?>
link(); ?> value="value() ); ?>">
$this->id,
'drag_drop_upload' => false,
'teeny' => true,
);
$control_content = $this->value();
$frontpage_id = get_option( 'page_on_front' );
$page_content = '';
if ( ! empty( $frontpage_id ) ) {
$content_post = get_post( $frontpage_id );
$page_content = $content_post->post_content;
$page_content = apply_filters( 'the_content', $page_content );
$page_content = str_replace( ']]>', ']]>', $page_content );
}
if ( $control_content !== $page_content ) {
$control_content = $page_content;
}
wp_editor( $control_content, $this->id, $settings );
do_action( 'admin_footer' );
do_action( 'admin_print_footer_scripts' );
}
}