LLMS_Admin_Setup_Wizard::output_step_html( string $step )

Outputs the HTML “body” for the requested step


Description Description


Parameters Parameters

$step

(string) (Required) Step slug.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/admin/class.llms.admin.setup.wizard.php

	public function output_step_html( $step ) {

		switch ( $step ) {

			case 'coupon':
				?>
				<h1><?php _e( 'Help Improve LifterLMS & Get a Coupon', 'lifterlms' ); ?></h1>
				<p><?php _e( 'By allowing us to collect non-sensitive usage information and diagnostic data, you\'ll be providing us with information we can use to make the future of LifterLMS stronger and more powerful with every update!', 'lifterlms' ); ?></p>
				<p><?php _e( 'Click "Allow" to and we\'ll send you a coupon immediately.', 'lifterlms' ); ?></p>
				<p><a href="https://lifterlms.com/usage-tracking/" target="_blank"><?php _e( 'Find out more information', 'lifterlms' ); ?></a>.</p>
				<?php
			break;

			case 'finish':
				?>
				<h1><?php _e( 'Setup Complete!', 'lifterlms' ); ?></h1>
				<p><?php _e( 'Here\'s some resources to help you get familiar with LifterLMS:', 'lifterlms' ); ?></p>
				<ul>
					<li><span class="dashicons dashicons-format-video"></span> <a href="https://demo.lifterlms.com/course/how-to-build-a-learning-management-system-with-lifterlms/" target="_blank"><?php _e( 'Watch the LifterLMS video tutorials', 'lifterlms' ); ?></a></li>
					<li><span class="dashicons dashicons-admin-page"></span> <a href="https://lifterlms.com/docs/getting-started-with-lifterlms/" target="_blank"><?php _e( 'Read the LifterLMS Getting Started Guide', 'lifterlms' ); ?></a></li>
				</ul>
				<br>
				<h1 style="text-align: center;"><?php _e( 'Get started with your first course', 'lifterlms' ); ?></h1>
				<?php
			break;

			case 'intro':
				?>
				<h1><?php _e( 'Welcome to LifterLMS!', 'lifterlms' ); ?></h1>

				<p><?php _e( 'Thanks for choosing LifterLMS to power your online courses! This short setup wizard will guide you through the basic settings and configure LifterLMS so you can get started creating courses faster!', 'lifterlms' ); ?></p>
				<p><?php _e( 'It will only take a few minutes and it is completely optional. If you don\'t have the time now, come back later.', 'lifterlms' ); ?></p>
				<?php
			break;

			case 'pages':
				?>
				<h1><?php _e( 'Page Setup', 'lifterlms' ); ?></h1>

				<p><?php _e( 'LifterLMS has a few essential pages. The following will be created automatically if they don\'t already exist.', 'lifterlms' ); ?>

				<table>
					<tr>
						<td><a href="https://lifterlms.com/docs/course-catalog/" target="_blank"><?php _e( 'Course Catalog', 'lifterlms' );?></a></td>
						<td><p><?php _e( 'This page is where your visitors will find a list of all your available courses.', 'lifterlms' ); ?></p></td>
					</tr>
					<tr>
						<td><a href="https://lifterlms.com/docs/membership-catalog/" target="_blank"><?php _e( 'Membership Catalog', 'lifterlms' );?></a></td>
						<td><p><?php _e( 'This page is where your visitors will find a list of all your available memberships.', 'lifterlms' ); ?></p></td>
					</tr>
					<tr>
						<td><a href=" https://lifterlms.com/docs/checkout-page/" target="_blank"><?php _e( 'Checkout', 'lifterlms' );?></a></td>
						<td><p><?php _e( 'This is the page where visitors will be directed in order to pay for courses and memberships.', 'lifterlms' ); ?></p></td>
					</tr>
					<tr>
						<td><a href="https://lifterlms.com/docs/student-dashboard/" target="_blank"><?php _e( 'Student Dashboard', 'lifterlms' );?></a></td>
						<td><p><?php _e( 'Page where students can view and manage their current enrollments, earned certificates and achievements, account information, and purchase history.', 'lifterlms' ); ?></p></td>
					</tr>
				</table>

				<p><?php printf( __( 'After setup, you can manage these pages from the admin dashboard on the %1$sPages screen%2$s and you can control which pages display on your menu(s) via %3$sAppearance > Menus%4$s.', 'lifterlms' ), '<a href="' . esc_url( admin_url( 'edit.php?post_type=page' ) ) . '" target="_blank">', '</a>', '<a href="' . esc_url( admin_url( 'nav-menus.php' ) ) . '" target="_blank">', '</a>' ); ?></p>
				<?php
			break;

			case 'payments':

				$country = get_lifterlms_country();
				$currency = get_lifterlms_currency();
				$payments = get_option( 'llms_gateway_manual_enabled', 'no' );

				?>
				<h1><?php _e( 'Payments', 'lifterlms' ); ?></h1>

				<table>
					<tr>
						<td colspan="2">
							<p><label for="llms_country"><?php _e( 'Which country should be used as the default for student registrations?', 'lifterlms' );?></label></p>
							<p>
								<select id="llms_country" name="country" class="llms-select2">
								<?php foreach ( get_lifterlms_countries() as $code => $name ) : ?>
									<option value="<?php echo $code; ?>"<?php selected( $code, $country ); ?>><?php echo $name; ?> (<?php echo $code; ?>)</option>
								<?php endforeach; ?>
								</select>
							</p>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<p><label for="llms_currency"><?php _e( 'Which currency should be used for payment processing?', 'lifterlms' );?></label></p>
							<p>
								<select id="llms_currency" name="currency" class="llms-select2">
								<?php foreach ( get_lifterlms_currencies() as $code => $name ) : ?>
									<option value="<?php echo $code; ?>"<?php selected( $code, $currency ); ?>><?php echo $name; ?> (<?php echo get_lifterlms_currency_symbol( $code ); ?>)</option>
								<?php endforeach; ?>
								</select>
								<i><?php printf( __( 'If you currency is not listed you can %1$sadd it later%2$s.', 'lifterlms' ), '<a href="https://lifterlms.com/docs/how-can-i-add-my-currency-to-lifterlms" target="_blank">', '</a>' ); ?></i>
							</p>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<p><?php printf( __( 'With LifterLMS you can accept both online and offline payments. Be sure to install a %1$spayment gateway%2$s to accept online payments.', 'lifterlms' ), '<a href="https://lifterlms.com/product-category/plugins/payment-gateways/" target="_blank">', '</a>' ); ?></p>
							<p><label for="llms_manual"><input id="llms_manual" name="manual_payments" type="checkbox" value="yes"<?php checked( 'yes', $payments ); ?>> <?php _e( 'Enable Offline Payments', 'lifterlms' );?></label></p>
						</td>
					</tr>
				</table>

				<?php
			break;

		}// End switch().

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.30.3 Fixed spelling error.
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: