Skip to content

Commit 8f9cccf

Browse files
committed
Changing of variables.
1 parent 0efc49a commit 8f9cccf

24 files changed

+2548
-340
lines changed

.DS_Store

0 Bytes
Binary file not shown.

admin/class-paystack-forms-admin.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class Paystack_Forms_Admin {
3+
class Kkd_Pff_Paystack_Admin {
44

55
private $plugin_name;
66
private $version;
@@ -141,7 +141,7 @@ function disable_wyswyg_for_custom_post_type( $default ){
141141

142142
if ($post_type == 'paystack_form') {
143143
echo "<style>#edit-slug-box,#message p > a{display:none;}</style>";
144-
add_action("admin_print_footer_scripts", "shortcode_button_script");
144+
add_action("admin_print_footer_scripts", "kkd_pff_paystack_shortcode_button_script");
145145
add_filter( 'user_can_richedit' , '__return_false', 50 );
146146
add_action( 'wp_dashboard_setup', 'remove_dashboard_widgets' );
147147
remove_action( 'media_buttons', 'media_buttons' );
@@ -449,7 +449,6 @@ public function enqueue_scripts() {
449449
}
450450

451451
add_action( 'admin_menu', 'register_newpage' );
452-
453452
function register_newpage(){
454453
add_menu_page('paystack', 'paystack', 'administrator','submissions', 'payment_submissions');
455454
remove_menu_page('submissions');
@@ -476,7 +475,6 @@ function payment_submissions(){
476475

477476
}
478477
}
479-
480478
class Paystack_Wp_List_Table{
481479
public function __construct(){
482480
add_action( 'admin_menu', array($this, 'add_menu_example_list_table_page' ));
@@ -637,5 +635,4 @@ private function sort_data( $a, $b ){
637635
}
638636
}
639637

640-
641638
?>

admin/js/paystack-forms-admin.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
11
(function( $ ) {
22
'use strict';
3-
4-
/**
5-
* All of the code for your admin-facing JavaScript source
6-
* should reside in this file.
7-
*
8-
* Note: It has been assumed you will write jQuery code here, so the
9-
* $ function reference has been prepared for usage within the scope
10-
* of this function.
11-
*
12-
* This enables you to define handlers, for when the DOM is ready:
13-
*
14-
* $(function() {
15-
*
16-
* });
17-
*
18-
* When the window is loaded:
19-
*
20-
* $( window ).load(function() {
21-
*
22-
* });
23-
*
24-
* ...and/or other possibilities.
25-
*
26-
* Ideally, it is not considered best practise to attach more than a
27-
* single DOM-ready or window-load handler for a particular page.
28-
* Although scripts in the WordPress core, Plugins and Themes may be
29-
* practising this, we should strive to set a better example in our own work.
30-
*/
313
$('.pf-number').keydown(function(event) {
324
if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9
335
|| event.keyCode == 27 || event.keyCode == 13

admin/partials/paystack-forms-admin-display.php

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

includes/class-paystack-forms-activator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class Paystack_Forms_Activator {
3+
class Kkd_Pff_Paystack_Activator {
44

55
public static function activate() {
66
global $wpdb;

includes/class-paystack-forms-deactivator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
class Paystack_Forms_Deactivator {
4+
class Kkd_Pff_Paystack_Deactivator {
55

66
/**
77
* Short Description. (use period)

includes/class-paystack-forms-i18n.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
class Paystack_Forms_i18n {
4+
class Kkd_Pff_Paystack_i18n {
55

66

77
/**
@@ -12,7 +12,7 @@ class Paystack_Forms_i18n {
1212
public function load_plugin_textdomain() {
1313

1414
load_plugin_textdomain(
15-
'paystack-forms',
15+
'pff-paystack',
1616
false,
1717
dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
1818
);

includes/class-paystack-forms-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
class Paystack_Forms_Loader {
4+
class Kkd_Pff_Paystack_Loader {
55

66
/**
77
* The array of actions registered with WordPress.

includes/class-paystack-forms.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
class Paystack_Forms {
4+
class Kkd_Pff_Paystack {
55

66
/**
77
* The loader that's responsible for maintaining and registering all hooks that power
@@ -42,7 +42,7 @@ class Paystack_Forms {
4242
*/
4343
public function __construct() {
4444

45-
$this->plugin_name = 'paystack-forms';
45+
$this->plugin_name = 'pff-paystack';
4646
$this->version = '1.0.4';
4747

4848
$this->load_dependencies();
@@ -145,7 +145,7 @@ private function load_dependencies() {
145145
*/
146146
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-paystack-forms-public.php';
147147

148-
$this->loader = new Paystack_Forms_Loader();
148+
$this->loader = new Kkd_Pff_Paystack_Loader();
149149

150150
}
151151

@@ -160,7 +160,7 @@ private function load_dependencies() {
160160
*/
161161
private function set_locale() {
162162

163-
$plugin_i18n = new Paystack_Forms_i18n();
163+
$plugin_i18n = new Kkd_Pff_Paystack_i18n();
164164

165165
$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
166166

@@ -175,7 +175,7 @@ private function set_locale() {
175175
*/
176176
private function define_admin_hooks() {
177177

178-
$plugin_admin = new Paystack_Forms_Admin( $this->get_plugin_name(), $this->get_version() );
178+
$plugin_admin = new Kkd_Pff_Paystack_Admin( $this->get_plugin_name(), $this->get_version() );
179179

180180
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
181181
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
@@ -191,7 +191,7 @@ private function define_admin_hooks() {
191191
*/
192192
private function define_public_hooks() {
193193

194-
$plugin_public = new Paystack_Forms_Public( $this->get_plugin_name(), $this->get_version() );
194+
$plugin_public = new Kkd_Pff_Paystack_Public( $this->get_plugin_name(), $this->get_version() );
195195

196196
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
197197
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );

includes/paystack-invoice.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
<title>Paystack Invoice</title>
33
<?php
4+
define('WP_USE_THEMES', true);
5+
6+
/** Loads the WordPress Environment and Template */
7+
require(get_template_directory() . '/wp-blog-header.php' );
48
//call the wp head so you can get most of your wordpress
59
get_header();
610
?>

0 commit comments

Comments
 (0)