Skip to content

Commit d13542a

Browse files
Copy and layout changes to the WP plugin settings page
1 parent 19eed3c commit d13542a

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88

99
# IDE
1010
/.idea/
11+
.DS_Store

admin/class-crowdhandler-admin.php

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function settings_init()
168168

169169
add_settings_section(
170170
'crowdhandler_settings_section',
171-
__('CrowdHandler Settings', 'crowdhandler'),
171+
__('CrowdHandler Settings', 'crowdhandler'),
172172
array($this, 'settings_section_callback'),
173173
'crowdhandler'
174174
);
@@ -186,37 +186,38 @@ public function settings_init()
186186
);
187187

188188
add_settings_field(
189-
'crowdhandler_settings_field_is_enabled',
190-
__('Enabled', 'crowdhandler'),
191-
array($this, 'settings_field_is_enabled_callback'),
189+
'crowdhandler_settings_field_override_index',
190+
__('Override index.php', 'crowdhandler'),
191+
array($this, 'settings_field_override_index_callback'),
192192
'crowdhandler',
193193
'crowdhandler_settings_section',
194194
array(
195-
'label_for' => 'crowdhandler_settings_field_is_enabled',
195+
'label_for' => 'crowdhandler_settings_field_override_index',
196196
'class' => 'crowdhandler_row',
197197
)
198198
);
199199

200200
add_settings_field(
201-
'crowdhandler_settings_field_override_index',
202-
__('Override index.php', 'crowdhandler'),
203-
array($this, 'settings_field_override_index_callback'),
201+
'crowdhandler_settings_field_is_enabled',
202+
__('Enabled', 'crowdhandler'),
203+
array($this, 'settings_field_is_enabled_callback'),
204204
'crowdhandler',
205205
'crowdhandler_settings_section',
206206
array(
207-
'label_for' => 'crowdhandler_settings_field_override_index',
207+
'label_for' => 'crowdhandler_settings_field_is_enabled',
208208
'class' => 'crowdhandler_row',
209209
)
210210
);
211211

212+
212213
}
213214

214215
public function settings_section_callback($args)
215216
{
216217
?>
217218
<p id="<?php echo esc_attr( $args['id'] ); ?>">Install CrowdHandler on your WordPress site below.</p>
218-
<p>You need a CrowdHandler account to complete the set up: <a href="https://signup.crowdhandler.com/?utm_source=WordPress&utm_medium=Plugin_Dir">Sign up here</a>.</p>
219-
<p>Already have an account? Go to your <a href="https://admin.crowdhandler.com/">dashboard to set things up!</a></p>
219+
<p>You need a CrowdHandler account to complete the set up: <a target="_blank" href="https://signup.crowdhandler.com/?utm_source=WordPress&utm_medium=Plugin_Dir">Sign up here</a>.</p>
220+
<p>Already have an account? Go to your dashboard to <a target="_blank" href="https://admin.crowdhandler.com/">configure your waiting room!</a></p>
220221
<?php
221222
}
222223

@@ -230,7 +231,7 @@ public function settings_field_public_key_callback($args)
230231
class="crowdhandler-input crowdhandler-input--textarea"
231232
><?php echo isset($options[$args['label_for']]) ? $options[$args['label_for']] : (''); ?></textarea>
232233
<p class="description">
233-
<?php esc_html_e( 'Your CrowdHandler API Public Key', 'crowdhandler' ); ?>. Find your <a href="https://admin.crowdhandler.com/account/api">key here</a>.
234+
<?php esc_html_e( 'Your CrowdHandler API Public Key', 'crowdhandler' ); ?>. Find your <a target="_blank" href="https://admin.crowdhandler.com/account/api">key here</a>.
234235
</p>
235236
<?php
236237
}
@@ -275,7 +276,7 @@ class="crowdhandler-input"
275276
</p>
276277
<?php endif; ?>
277278
<p class="description">
278-
<?php esc_html_e('Optional, but recommended. If you do not wish to do this, then your own server will take the load for all traffic to the homepage.', 'crowdhandler'); ?>
279+
<?php esc_html_e('Recommended: Overriding index.php provides better performance and protection, by validating the user at the earliest opportunity.', 'crowdhandler'); ?>
279280
</p>
280281
<?php
281282
}

admin/css/crowdhandler-admin.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
width: 100%;
88
resize: vertical;
99
}
10+
11+
.toplevel_page_crowdhandler h1 {
12+
color: #206D9C
13+
}

0 commit comments

Comments
 (0)