File tree Expand file tree Collapse file tree 4 files changed +490
-10
lines changed Expand file tree Collapse file tree 4 files changed +490
-10
lines changed Original file line number Diff line number Diff line change 10
10
* @since 3.0.12
11
11
*/
12
12
13
- use Kirki \Util \Helper ;
14
-
15
13
// Exit if accessed directly.
16
14
if ( ! defined ( 'ABSPATH ' ) ) {
17
15
exit ;
18
16
}
19
17
18
+ use Kirki \Util \Helper ;
19
+
20
+
21
+
20
22
// Do not proceed if Kirki does not exist.
21
23
if ( ! class_exists ( 'Kirki ' ) ) {
22
24
return ;
Original file line number Diff line number Diff line change 1
1
<?php
2
-
3
2
/**
4
- * The plugin bootstrap file
5
- *
6
- * This file is read by WordPress to generate the plugin information in the plugin
7
- * admin area. This file also includes all of the dependencies used by the plugin,
8
- * registers the activation and deactivation functions, and defines a function
9
- * that starts the plugin.
10
3
*
11
4
* @link dev.websweet.xyz
12
5
* @since 1.2.0
15
8
* @wordpress-plugin
16
9
* Plugin Name: Sweet Addon
17
10
* Plugin URI: dev.websweet.xyz
18
- * Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area .
11
+ * Description: Plugin for websweet.xyz client .
19
12
* Version: 1.5.3
20
13
* Author: Aditya Kristyanto
21
14
* Author URI: dev.websweet.xyz
53
46
);
54
47
$ incs = array (
55
48
'inc/websweet-plugin.php ' ,
49
+ 'updater/updater.php ' ,
50
+ 'updater/plugin.php ' ,
56
51
'inc/enqueue.php ' ,
57
52
'inc/customizer.php ' ,
58
53
'inc/function.php ' ,
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * An example file demonstrating how to add all controls.
4
+ *
5
+ * @package Kirki
6
+ * @category Core
7
+ * @author Ari Stathopoulos (@aristath)
8
+ * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
9
+ * @license https://opensource.org/licenses/MIT
10
+ * @since 3.0.12
11
+ */
12
+
13
+ // Exit if accessed directly.
14
+ if ( ! defined ( 'ABSPATH ' ) ) {
15
+ exit ;
16
+ }
17
+
18
+ add_action ( 'init ' , 'sweetaddon_updater_test_init ' );
19
+ function sweetaddon_updater_test_init () {
20
+
21
+ // include_once 'updater.php';
22
+
23
+ if ( is_admin () ) { // note the use of is_admin() to double check that this is happening in the admin
24
+
25
+ $ config = array (
26
+ 'slug ' => plugin_basename ( __FILE__ ),
27
+ 'proper_folder_name ' => 'sweetaddon ' ,
28
+ 'api_url ' => 'https://api.github.com/repos/websweetxyz/sweetaddon ' ,
29
+ 'raw_url ' => 'https://raw.github.com/websweetxyz/sweetaddon/master ' ,
30
+ 'github_url ' => 'https://github.com/websweetxyz/sweetaddon ' ,
31
+ 'zip_url ' => 'https://github.com/websweetxyz/sweetaddon/archive/master.zip ' ,
32
+ 'sslverify ' => true ,
33
+ 'requires ' => '1.5.3 ' ,
34
+ 'tested ' => '1.5.2 ' ,
35
+ 'readme ' => 'README.md ' ,
36
+ 'access_token ' => '' ,
37
+ );
38
+
39
+ new WP_GitHub_Updater ( $ config );
40
+
41
+ }
42
+
43
+ }
You can’t perform that action at this time.
0 commit comments