@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public static function get_instance() { |
40 | 40 | // If the single instance hasn't been set, set it now. |
41 | - if ( ! isset( self::$instance ) ) { |
|
41 | + if (!isset(self::$instance)) { |
|
42 | 42 | self::$instance = new self(); |
43 | 43 | } |
44 | 44 | return self::$instance; |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | public function display_page() { |
51 | 51 | ?> |
52 | 52 | <div class="row section"> |
53 | - <h1><?php esc_html_e( 'Welcome to the LSX Importer for Wetu', 'lsx-wetu-importer' ); ?></h1> |
|
54 | - <p><?php esc_html_e( 'If this is the first time running the import, please follow the steps below.', 'lsx-wetu-importer' ); ?></p> |
|
53 | + <h1><?php esc_html_e('Welcome to the LSX Importer for Wetu', 'lsx-wetu-importer'); ?></h1> |
|
54 | + <p><?php esc_html_e('If this is the first time running the import, please follow the steps below.', 'lsx-wetu-importer'); ?></p> |
|
55 | 55 | </div> |
56 | 56 | <?php |
57 | 57 | $this->importer_steps(); |
@@ -67,19 +67,19 @@ discard block |
||
67 | 67 | ?> |
68 | 68 | <div class="row section postbox"> |
69 | 69 | <div class="welcome-block-header"> |
70 | - <p class="heading"><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=tour' ); ?>"><?php esc_html_e( 'Import your tours', 'lsx-wetu-importer' ); ?></a></p> |
|
71 | - <p class="value"><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=tour' ); ?>"><span>1</span></a></p> |
|
70 | + <p class="heading"><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=tour'); ?>"><?php esc_html_e('Import your tours', 'lsx-wetu-importer'); ?></a></p> |
|
71 | + <p class="value"><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=tour'); ?>"><span>1</span></a></p> |
|
72 | 72 | </div> |
73 | 73 | <div class="welcome-block-header"> |
74 | - <p class="heading"><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>"><?php esc_html_e( 'Import accommodation', 'lsx-wetu-importer' ); ?></a></p> |
|
75 | - <p class="value"><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>"><span>2</span></a></p> |
|
74 | + <p class="heading"><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>"><?php esc_html_e('Import accommodation', 'lsx-wetu-importer'); ?></a></p> |
|
75 | + <p class="value"><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>"><span>2</span></a></p> |
|
76 | 76 | </div> |
77 | 77 | <div class="welcome-block-header"> |
78 | - <p class="heading"><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>"><?php esc_html_e( 'Import destination', 'lsx-wetu-importer' ); ?></a></p> |
|
79 | - <p class="value"><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>"><span>3</span></a></p> |
|
78 | + <p class="heading"><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>"><?php esc_html_e('Import destination', 'lsx-wetu-importer'); ?></a></p> |
|
79 | + <p class="value"><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>"><span>3</span></a></p> |
|
80 | 80 | </div> |
81 | 81 | <div class="welcome-block-header"> |
82 | - <p class="heading"><?php esc_html_e( 'Done', 'lsx-wetu-importer' ); ?></p> |
|
82 | + <p class="heading"><?php esc_html_e('Done', 'lsx-wetu-importer'); ?></p> |
|
83 | 83 | <p class="value"><span class="dashicons dashicons-yes"></span></p> |
84 | 84 | </div> |
85 | 85 | <div class="spacer"></div> |
@@ -118,14 +118,14 @@ discard block |
||
118 | 118 | */ |
119 | 119 | public function tour_block() { |
120 | 120 | ?> |
121 | - <h2 class="title"><?php esc_html_e( 'Importing tours', 'lsx-wetu-importer' ); ?></h2> |
|
122 | - <p class="excerpt"><?php esc_html_e( 'Search for tours, select the ones you want to import and choose the data you want to sync on import. All connected accommodadtions will be imported as drafts to be pubished after completing the tour import.', 'lsx-wetu-importer' ); ?></p> |
|
123 | - <p><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=tour' ); ?>" class="button button-primary"><?php esc_html_e( 'Import Tours', 'lsx-wetu-importer' ); ?></a></p> |
|
121 | + <h2 class="title"><?php esc_html_e('Importing tours', 'lsx-wetu-importer'); ?></h2> |
|
122 | + <p class="excerpt"><?php esc_html_e('Search for tours, select the ones you want to import and choose the data you want to sync on import. All connected accommodadtions will be imported as drafts to be pubished after completing the tour import.', 'lsx-wetu-importer'); ?></p> |
|
123 | + <p><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=tour'); ?>" class="button button-primary"><?php esc_html_e('Import Tours', 'lsx-wetu-importer'); ?></a></p> |
|
124 | 124 | <p> |
125 | 125 | <ul class="link-list"> |
126 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=tour' ); ?>#publish"><?php esc_html_e( 'Published', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'tour', 'publish ' ) ); ?>)</a></li> |
|
127 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=tour' ); ?>#pending"><?php esc_html_e( 'Pending', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'tour', 'pending ' ) ); ?>)</a></li> |
|
128 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=tour' ); ?>#draft"><?php esc_html_e( 'Draft', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'tour', 'draft ' ) ); ?>)</a></li> |
|
126 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=tour'); ?>#publish"><?php esc_html_e('Published', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('tour', 'publish ')); ?>)</a></li> |
|
127 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=tour'); ?>#pending"><?php esc_html_e('Pending', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('tour', 'pending ')); ?>)</a></li> |
|
128 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=tour'); ?>#draft"><?php esc_html_e('Draft', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('tour', 'draft ')); ?>)</a></li> |
|
129 | 129 | </ul> |
130 | 130 | </p> |
131 | 131 | <?php |
@@ -137,16 +137,16 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public function accommodation_block() { |
139 | 139 | ?> |
140 | - <h2 class="title"><?php esc_html_e( 'Import and publish accommodation', 'lsx-wetu-importer' ); ?></h2> |
|
141 | - <p class="excerpt"><?php esc_html_e( 'All accommodations connnected to your tours have been imported as drafts. Review the imported accommodations, sync selected data and publish.', 'lsx-wetu-importer' ); ?></p> |
|
142 | - <p><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>" class="button button-primary"><?php esc_html_e( 'Sync accommodation', 'lsx-wetu-importer' ); ?></a></p> |
|
140 | + <h2 class="title"><?php esc_html_e('Import and publish accommodation', 'lsx-wetu-importer'); ?></h2> |
|
141 | + <p class="excerpt"><?php esc_html_e('All accommodations connnected to your tours have been imported as drafts. Review the imported accommodations, sync selected data and publish.', 'lsx-wetu-importer'); ?></p> |
|
142 | + <p><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>" class="button button-primary"><?php esc_html_e('Sync accommodation', 'lsx-wetu-importer'); ?></a></p> |
|
143 | 143 | |
144 | 144 | <p> |
145 | 145 | <ul class="link-list"> |
146 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>#publish"><?php esc_html_e( 'Published', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'accommodation', 'publish ' ) ); ?>)</a></li> |
|
147 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>#pending"><?php esc_html_e( 'Pending', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'accommodation', 'pending ' ) ); ?>)</a></li> |
|
148 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>#draft"><?php esc_html_e( 'Draft', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'accommodation', 'draft ' ) ); ?>)</a></li> |
|
149 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=accommodation' ); ?>#import"><?php esc_html_e( 'Wetu Queue', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_queue_count( 'accommodation' ) ); ?>)</a></li> |
|
146 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>#publish"><?php esc_html_e('Published', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('accommodation', 'publish ')); ?>)</a></li> |
|
147 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>#pending"><?php esc_html_e('Pending', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('accommodation', 'pending ')); ?>)</a></li> |
|
148 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>#draft"><?php esc_html_e('Draft', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('accommodation', 'draft ')); ?>)</a></li> |
|
149 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=accommodation'); ?>#import"><?php esc_html_e('Wetu Queue', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_queue_count('accommodation')); ?>)</a></li> |
|
150 | 150 | </ul> |
151 | 151 | </p> |
152 | 152 | <?php |
@@ -158,15 +158,15 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function destination_block() { |
160 | 160 | ?> |
161 | - <h2 class="title"><?php esc_html_e( 'Import and publish destinations', 'lsx-wetu-importer' ); ?></h2> |
|
162 | - <p class="excerpt"><?php esc_html_e( 'All destinations and regions connnected to your tours & accommodations have been imported as drafts. Review the imported accommodations, sync selected data and publish.', 'lsx-wetu-importer' ); ?></p> |
|
163 | - <p><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>" class="button button-primary"><?php esc_html_e( 'Sync destinations', 'lsx-wetu-importer' ); ?></a></p> |
|
161 | + <h2 class="title"><?php esc_html_e('Import and publish destinations', 'lsx-wetu-importer'); ?></h2> |
|
162 | + <p class="excerpt"><?php esc_html_e('All destinations and regions connnected to your tours & accommodations have been imported as drafts. Review the imported accommodations, sync selected data and publish.', 'lsx-wetu-importer'); ?></p> |
|
163 | + <p><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>" class="button button-primary"><?php esc_html_e('Sync destinations', 'lsx-wetu-importer'); ?></a></p> |
|
164 | 164 | <p> |
165 | 165 | <ul class="link-list"> |
166 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>#publish"><?php esc_html_e( 'Published', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'destination', 'publish ' ) ); ?>)</a></li> |
|
167 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>#pending"><?php esc_html_e( 'Pending', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'destination', 'pending ' ) ); ?>)</a></li> |
|
168 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>#draft"><?php esc_html_e( 'Draft', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_post_count( 'destination', 'draft ' ) ); ?>)</a></li> |
|
169 | - <li><a href="<?php echo esc_attr( admin_url( 'admin.php' ) . '?page=lsx-wetu-importer&tab=destination' ); ?>#import"><?php esc_html_e( 'Wetu Queue', 'lsx-wetu-importer' ); ?> (<?php echo esc_attr( lsx_wetu_get_queue_count( 'destination' ) ); ?>)</a></li> |
|
166 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>#publish"><?php esc_html_e('Published', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('destination', 'publish ')); ?>)</a></li> |
|
167 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>#pending"><?php esc_html_e('Pending', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('destination', 'pending ')); ?>)</a></li> |
|
168 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>#draft"><?php esc_html_e('Draft', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_post_count('destination', 'draft ')); ?>)</a></li> |
|
169 | + <li><a href="<?php echo esc_attr(admin_url('admin.php').'?page=lsx-wetu-importer&tab=destination'); ?>#import"><?php esc_html_e('Wetu Queue', 'lsx-wetu-importer'); ?> (<?php echo esc_attr(lsx_wetu_get_queue_count('destination')); ?>)</a></li> |
|
170 | 170 | </ul> |
171 | 171 | </p> |
172 | 172 | <?php |
@@ -178,8 +178,8 @@ discard block |
||
178 | 178 | */ |
179 | 179 | public function end_block() { |
180 | 180 | ?> |
181 | - <h2 class="title"><?php esc_html_e( 'Done! Check out your imported content', 'lsx-wetu-importer' ); ?></h2> |
|
182 | - <p><?php esc_html_e( 'If you’ve updated your content on Wetu then you can return to these steps at any stage to import and re-sync any updates', 'lsx-wetu-importer' ); ?></p> |
|
181 | + <h2 class="title"><?php esc_html_e('Done! Check out your imported content', 'lsx-wetu-importer'); ?></h2> |
|
182 | + <p><?php esc_html_e('If you’ve updated your content on Wetu then you can return to these steps at any stage to import and re-sync any updates', 'lsx-wetu-importer'); ?></p> |
|
183 | 183 | <?php |
184 | 184 | } |
185 | 185 | } |