AdditionalPayments.php
1 year ago
Appearance.php
2 years ago
CustomizeStore.php
5 months ago
ExperimentalShippingRecommendation.php
5 months ago
ExtendStore.php
1 year ago
GetMobileApp.php
3 years ago
LaunchYourStore.php
2 years ago
Marketing.php
7 months ago
Payments.php
10 months ago
Products.php
1 month ago
ReviewShippingOptions.php
3 years ago
Shipping.php
3 months ago
StoreCreation.php
4 years ago
StoreDetails.php
3 years ago
Tax.php
1 year ago
TourInAppMarketplace.php
2 years ago
WooCommercePayments.php
5 months ago
Appearance.php
73 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks; |
| 4 | |
| 5 | use Automattic\WooCommerce\Admin\PageController; |
| 6 | use Automattic\WooCommerce\Internal\Admin\Loader; |
| 7 | use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task; |
| 8 | use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Products; |
| 9 | use Automattic\WooCommerce\Internal\Admin\WCAdminAssets; |
| 10 | |
| 11 | /** |
| 12 | * Appearance Task |
| 13 | */ |
| 14 | class Appearance extends Task { |
| 15 | |
| 16 | /** |
| 17 | * Constructor. |
| 18 | */ |
| 19 | public function __construct() { |
| 20 | if ( ! $this->is_complete() ) { |
| 21 | add_action( 'load-theme-install.php', array( $this, 'mark_actioned' ) ); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * ID. |
| 27 | * |
| 28 | * @return string |
| 29 | */ |
| 30 | public function get_id() { |
| 31 | return 'appearance'; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Title. |
| 36 | * |
| 37 | * @return string |
| 38 | */ |
| 39 | public function get_title() { |
| 40 | return __( 'Choose your theme', 'woocommerce' ); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Content. |
| 45 | * |
| 46 | * @return string |
| 47 | */ |
| 48 | public function get_content() { |
| 49 | return __( |
| 50 | "Choose a theme that best fits your brand's look and feel, then make it your own. Change the colors, add your logo, and create pages.", |
| 51 | 'woocommerce' |
| 52 | ); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Time. |
| 57 | * |
| 58 | * @return string |
| 59 | */ |
| 60 | public function get_time() { |
| 61 | return __( '2 minutes', 'woocommerce' ); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Action label. |
| 66 | * |
| 67 | * @return string |
| 68 | */ |
| 69 | public function get_action_label() { |
| 70 | return __( 'Choose theme', 'woocommerce' ); |
| 71 | } |
| 72 | } |
| 73 |