PluginProbe
Awesome Support – WordPress HelpDesk & Support Plugin / trunk
Awesome Support – WordPress HelpDesk & Support Plugin vtrunk
6.4.0 trunk 3.0.0 3.0.1 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 All 95 releases
awesome-support / includes / admin / views / about.php

about.php in Awesome Support – WordPress HelpDesk & Support Plugin trunk, at includes/admin/views/about.php

147 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 add_filter( 'wpas_admin_tabs_wpas_about', 'wpas_about_register_tabs' ); // Register new tab area
4
5 add_filter( 'wpas_admin_tabs_wpas_about_welcome_content', 'wpas_admin_tabs_wpas_about_welcome_content' ); // add content in welcome log tab
6 add_filter( 'wpas_admin_tabs_wpas_about_change_log_content', 'wpas_admin_tabs_wpas_about_change_log_content' ); // add content in change log tab
7 add_filter( 'wpas_admin_tabs_wpas_about_getting_started_content', 'wpas_admin_tabs_wpas_about_getting_started_content' ); // add content in getting started tab
8 add_filter( 'wpas_admin_tabs_wpas_about_videos_content', 'wpas_admin_tabs_wpas_about_videos_content' ); // add content in videos tab
9 add_filter( 'wpas_admin_tabs_wpas_about_docs_content', 'wpas_admin_tabs_wpas_about_docs_content' ); // add content in documentation tab
10 add_filter( 'wpas_admin_tabs_wpas_about_credits_content', 'wpas_admin_tabs_wpas_about_credits_content' ); // add content in documentation tab
11
12
13 /**
14 * Register tabs
15 *
16 * @param array $tabs
17 *
18 * @return array
19 */
20 function wpas_about_register_tabs( $tabs ) {
21
22 $tabs['welcome'] = __( 'Welcome', 'awesome-support' );
23 $tabs['getting_started'] = __( 'Getting Started', 'awesome-support' );
24 $tabs['docs'] = __( 'Documentation', 'awesome-support' );
25 $tabs['videos'] = __( 'Videos', 'awesome-support' );
26 $tabs['change_log'] = __( 'Change Log', 'awesome-support' );
27 $tabs['credits'] = __( 'Credits', 'awesome-support' );
28
29 return $tabs;
30 }
31
32 /**
33 * Add content in welcome tab
34 *
35 * @param string $content
36 *
37 * @return string
38 */
39 function wpas_admin_tabs_wpas_about_welcome_content( $content ) {
40
41 ob_start();
42
43 include_once( WPAS_PATH . 'includes/admin/views/about-tab-welcome.php' );
44 $content = ob_get_clean();
45
46 return $content;
47 }
48
49 /**
50 * Add content in change log tab
51 *
52 * @param string $content
53 *
54 * @return string
55 */
56 function wpas_admin_tabs_wpas_about_change_log_content( $content ) {
57
58 ob_start();
59
60 include_once( WPAS_PATH . 'includes/admin/views/about-tab-change-log.php' );
61 $content = ob_get_clean();
62
63 return $content;
64 }
65
66 /**
67 * Add content in getting started tab
68 *
69 * @param string $content
70 *
71 * @return string
72 */
73 function wpas_admin_tabs_wpas_about_getting_started_content( $content ) {
74
75 ob_start();
76
77 include_once( WPAS_PATH . 'includes/admin/views/about-tab-getting-started.php' );
78 $content = ob_get_clean();
79
80 return $content;
81 }
82
83 /**
84 * Add content in videos tab
85 *
86 * @param string $content
87 *
88 * @return string
89 */
90 function wpas_admin_tabs_wpas_about_videos_content( $content ) {
91
92 ob_start();
93
94 include_once( WPAS_PATH . 'includes/admin/views/about-tab-videos.php' );
95 $content = ob_get_clean();
96
97 return $content;
98 }
99
100 /**
101 * Add content in documentation tab
102 *
103 * @param string $content
104 *
105 * @return string
106 */
107 function wpas_admin_tabs_wpas_about_docs_content( $content ) {
108
109 ob_start();
110
111 include_once( WPAS_PATH . 'includes/admin/views/about-tab-docs.php' );
112
113 $content = ob_get_clean();
114
115 return $content;
116 }
117
118 /**
119 * Add content in credits tab
120 *
121 * @param string $content
122 *
123 * @return string
124 */
125 function wpas_admin_tabs_wpas_about_credits_content( $content ) {
126
127 ob_start();
128
129 include_once( WPAS_PATH . 'includes/admin/views/about-tab-credits.php' );
130
131 $content = ob_get_clean();
132
133 return $content;
134 }
135
136 ?>
137
138 <div class="wrap about-wrap">
139
140 <h1><?php echo esc_html__( 'Welcome to Awesome Support ', 'awesome-support' );?><?php echo esc_html( WPAS_VERSION ); ?></h1>
141 <div class="about-text"><?php echo esc_html__( 'Trusted by over 10,000+ Happy Users, Awesome Support is the most versatile WordPress support plugin.', 'awesome-support' );?></div>
142 <hr />
143
144 <?php echo wp_kses(wpas_admin_tabs( 'wpas_about' ), get_allowed_html_wp_notifications()); ?>
145
146 </div>
147