| 1 |
<?php |
| 2 |
|
| 3 |
namespace Barn2\Plugin\Posts_Table_Search_Sort\Admin\Wizard\Steps; |
| 4 |
|
| 5 |
use Barn2\Plugin\Posts_Table_Search_Sort\Dependencies\Setup_Wizard\Steps\Welcome_Free; |
| 6 |
|
| 7 |
/** |
| 8 |
* Layout Settings Step. |
| 9 |
* |
| 10 |
* @package Barn2\posts-data-table |
| 11 |
* @author Barn2 Plugins <info@barn2.com> |
| 12 |
* @license GPL-3.0 |
| 13 |
* @copyright Barn2 Media Ltd |
| 14 |
*/ |
| 15 |
class Welcome extends Welcome_Free { |
| 16 |
|
| 17 |
/** |
| 18 |
* {@inheritdoc} |
| 19 |
*/ |
| 20 |
public function init() { |
| 21 |
$this->set_id( 'welcome_free' ); |
| 22 |
$this->set_title( 'Welcome to Posts Table with Search & Sort' ); |
| 23 |
$this->set_name( esc_html__( 'Welcome', 'posts-data-table' ) ); |
| 24 |
$this->set_tooltip( false ); |
| 25 |
$this->set_description( esc_html__( 'Start creating post tables in no time.', 'posts-data-table' ) ); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* {@inheritdoc} |
| 30 |
*/ |
| 31 |
public function setup_fields() { |
| 32 |
$fields = [ |
| 33 |
'welcome_messages' => [ |
| 34 |
'type' => 'heading', |
| 35 |
'label' => esc_html__( 'Use this setup wizard to quickly configure your post tables. You can change these options later on the settings page, or override them in the shortcode for individual tables.', 'posts-data-table' ), |
| 36 |
'size' => 'p', |
| 37 |
'raw' => true, |
| 38 |
'style' => [ |
| 39 |
'textAlign' => 'center', |
| 40 |
'color' => '#757575', |
| 41 |
], |
| 42 |
], |
| 43 |
]; |
| 44 |
|
| 45 |
return $fields; |
| 46 |
} |
| 47 |
|
| 48 |
} |
| 49 |
|