id = $id;
}
/**
* Enqueue function
*/
public function enqueue() {
Hestia_Plugin_Install_Helper::instance()->enqueue_scripts();
}
/**
* Render content for the control.
*
* @since Hestia 1.0
*/
public function render_content() {
$path = '';
$filenme = '';
if ( $this->id === 'hestia_subscribe_info' ) {
$path =
/* translators: %s is Path */
sprintf(
'%s',
esc_html__( 'Customize > Widgets > Subscribe Section', 'hestia' )
);
$filenme = 'blog-subscribe-textarea-content.php';
}
if ( $this->id === 'hestia_blog_subscribe_info' ) {
$path =
/* translators: %s is Path */
sprintf(
'%s',
esc_html__( 'Customize > Widgets > Blog Subscribe Section', 'hestia' )
);
$filenme = 'subscribe-textarea-content.php';
}
printf(
/* translators: %1$s is Path wrapped in , %2$s is Plugin link */
esc_html__( 'The main content of this section is customizable in: %1$s. There you must add the "SendinBlue Newsletter" widget. But first you will need to install %2$s.', 'hestia' ),
$path,
esc_html__( 'SendinBlue plugin', 'hestia' )
);
echo $this->create_plugin_install_button( 'mailin' );
echo '
';
printf(
/* translators: %s Path in plugin wrapped*/
esc_html__( 'After installing the plugin, you need to navigate to %s and configure the plugin.', 'hestia' ),
sprintf(
/* translators: %s Path in plugin*/
'%s',
esc_html( 'Sendinblue > Home', 'hestia-pro' )
)
);
echo '
';
echo esc_html__( 'And then you need to navigate to its Settings, and use the following in the Subscription form:', 'hestia' );
echo '
';
echo '';
}
/**
* Check plugin state.
*
* @param string $slug slug.
*
* @return bool
*/
public function create_plugin_install_button( $slug ) {
return Hestia_Plugin_Install_Helper::instance()->get_button_html( $slug );
}
}