PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.11.3
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.11.3
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / includes / admin / campaign-builder / panels / class-help.php

class-help.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.11.3, at includes/admin/campaign-builder/panels/class-help.php

128 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Help class management panel.
4 *
5 * @package Charitable
6 * @author David Bisset
7 * @copyright Copyright (c) 2023, WP Charitable LLC
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 1.8.0
10 * @version 1.8.0, 1.8.9.1
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 if ( ! class_exists( 'Charitable_Builder_Panel_Help' ) ) :
18
19 /**
20 * Design management panel.
21 *
22 * @since 1.8.0
23 */
24 class Charitable_Builder_Panel_Help extends Charitable_Builder_Panel {
25
26 /**
27 * Form data and help.
28 *
29 * @since 1.4.4.1
30 *
31 * @var array
32 */
33 public $campaign_data;
34
35 /**
36 * Panels for the submenu campaign builder.
37 *
38 * @since 1.8.0
39 *
40 * @var array
41 */
42 public $submenu_panels;
43
44 /**
45 * All systems go.
46 *
47 * @since 1.8.0
48 */
49 public function init() {
50
51 // Define panel information.
52 $this->name = esc_html__( 'Help', 'charitable' );
53 $this->slug = 'help';
54 $this->icon = 'panel_help.svg';
55 $this->order = 100;
56 $this->sidebar = true;
57 $this->button = true;
58 $this->url = 'https://wpcharitable.com/documentation/';
59
60 // This should never be called unless we are on the campaign builder page.
61 if ( campaign_is_campaign_builder_admin_page() ) {
62 $this->load_submenu_panels();
63 }
64 }
65
66 /**
67 * Enqueue assets for the Design panel.
68 *
69 * @since 1.8.0
70 */
71 public function enqueues() {
72 }
73
74 /**
75 * Load panels.
76 *
77 * @since 1.8.0
78 */
79 public function load_submenu_panels() {
80 }
81
82
83 /**
84 * Output the Field panel sidebar.
85 *
86 * @since 1.8.0
87 */
88 public function panel_sidebar() {
89 }
90
91
92
93 /**
94 * Output the Field panel primary content.
95 *
96 * @since 1.8.0
97 */
98 public function panel_content() {
99 }
100
101 /**
102 * Builder field buttons.
103 *
104 * @since 1.8.0
105 */
106 public function fields() {
107 }
108
109 /**
110 * Sort Add Field buttons by order provided.
111 *
112 * @since 1.8.0
113 *
114 * @param array $a First item.
115 * @param array $b Second item.
116 *
117 * @return array
118 */
119 public function field_order( $a, $b ) {
120
121 return $a['order'] - $b['order'];
122 }
123 }
124
125 endif;
126
127 new Charitable_Builder_Panel_Help();
128