base->get_class( 'settings' )->account_connected() ) {
?>
base->get_class( 'settings' )->account_connected() ) {
foreach ( $post_types as $public_post_type => $post_type_obj ) {
// Work out the icon to display.
$icon = '';
if ( ! empty( $post_type_obj->menu_icon ) ) {
$icon = 'dashicons ' . $post_type_obj->menu_icon;
} elseif ( $public_post_type === 'post' || $public_post_type === 'page' ) {
$icon = 'dashicons dashicons-admin-' . $public_post_type;
}
// Determine if the Post Type is set to post.
$is_post_type_enabled = $this->base->get_class( 'settings' )->is_post_type_enabled( $public_post_type );
?>
labels->name ); ?>
base->plugin->convertkit_form_uid . '" src="https://dedicated-crafter-4782.ck.page/' . $this->base->plugin->convertkit_form_uid . '/index.js">';
// If a free Buffer account is connected, show the switch to Social Post Flow upgrade.
foreach ( $accounts as $account ) {
if ( $account['plan'] === 'free' ) {
$upgrade_title = esc_html__( 'Switch to Social Post Flow', 'wp-to-buffer' );
$upgrade_content = esc_html__( 'Up to 5 channels for $49/year. Our own scheduling tool replaces Buffer entirely. The same 5 channels on Buffer\'s paid plan would cost around $360/year, so you save over $300 a year and remove the per channel fee for good.', 'wp-to-buffer' );
$upgrade_url = 'https://www.socialpostflow.com/?utm_source=wp-to-buffer&utm_medium=settings&utm_campaign=sidebar-upgrade';
$upgrade_button_text = esc_html__( 'Try Social Post Flow', 'wp-to-buffer' );
break;
}
}
require $this->base->plugin->folder . '/lib/shared/views/sidebar-upgrade.php';
?>