Skip to content

Commit 58b10ac

Browse files
committed
fixes
1 parent 211afd5 commit 58b10ac

File tree

4 files changed

+13
-266
lines changed

4 files changed

+13
-266
lines changed

admin/class-paystack-forms-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@ function wpt_email_data() {
380380
echo '<p>Email Heading:</p>';
381381
echo '<input type="text" name="_heading" value="' . $heading . '" class="widefat" />';
382382
echo '<p>Email Body/Message:</p>';
383-
echo '<textarea rows="3" name="_message" class="widefat" >'.$message.'</textarea>';
383+
echo '<textarea rows="6" name="_message" class="widefat" >'.$message.'</textarea>';
384384

385385
}
386386

387-
387+
388388

389389
}
390390

email.html

Lines changed: 0 additions & 263 deletions
This file was deleted.

paystack-forms.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,13 @@ function insertInput(){
143143
<?php
144144
}
145145
}
146+
function elegance_referal_init()
147+
{
148+
if(is_page('share')){
149+
$dir = plugin_dir_path( __FILE__ );
150+
include($dir."frontend-form.php");
151+
die();
152+
}
153+
}
154+
155+
add_action( 'wp', 'elegance_referal_init' );

public/class-paystack-forms-public.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ function cf_shortcode($atts) {
650650
echo '<input type="hidden" name="pf-id" value="' . $id . '" />';
651651
echo '<input type="hidden" name="pf-user_id" value="' . $user_id. '" />';
652652
echo '<p>';
653-
echo 'Full Name <br />';
653+
echo 'Full Name (required)<br />';
654654
echo '<input type="text" name="pf-fname" class="form-control" required/>';
655655
echo '</p>';
656656
echo 'Email (required)<br />';

0 commit comments

Comments
 (0)