-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyandex-money-button.php
executable file
·62 lines (58 loc) · 1.6 KB
/
yandex-money-button.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Plugin Name: Кнопка Яндекс Денег
* Plugin URI: http://yandex-money-button.milukove.ru/
* Description: Комплексное решение для приема платежей для физических лиц: платежный шлюз Woocommerce, блок для Гутенберга и виджет.
* Version: 2.3.2
* Author: Egor Milyukov
* Author URI: http://milukove.ru/
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
*/
/**
* Plugin runs only from wordpress
*/
defined( 'ABSPATH' ) || exit;
if ( function_exists( 'ymb_fs' ) ) {
ymb_fs()->set_basename( false, __FILE__ );
return;
}
/**
* Freemius integration
* @since 2.3.0 moved to separate file
* @since 2.0.0
*/
require_once dirname( __FILE__ ) . '/includes/ymb-freemius.php';
/**
* Init admin page
* @since 2.1.0
*/
require_once dirname( __FILE__ ) . '/includes/ymb-admin.php';
/**
* Init gutenberg blocks
* @since 2.3.0 moved to separate file
* @since 1.0.0
*/
require_once dirname( __FILE__ ) . '/includes/ymb-blocks.php';
/**
* Add button styles to public pages
* @since 2.2.0
*/
if ( !function_exists( 'ymb_enqueue_button_style' ) ) {
function ymb_enqueue_button_style()
{
wp_enqueue_style( 'ymb-style', plugins_url( 'css/ymb.min.css', __FILE__ ) );
}
}
add_action( 'wp_enqueue_scripts', 'ymb_enqueue_button_style' );
/**
* Init button widget
* @since 2.2.0
*/
require_once dirname( __FILE__ ) . '/includes/ymb-widget.php';
/**
* Init Woocommerce payment gateway
* @since 2.3.0
*/
require_once dirname( __FILE__ ) . '/includes/ymb-gateway.php';