-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
mihdan-yandex-turbo-feed.php
53 lines (47 loc) · 1.71 KB
/
mihdan-yandex-turbo-feed.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
<?php
/**
* Mihdan: Yandex Turbo Feed
*
* @package mihdan-yandex-turbo-feed
* @author Mikhail Kobzarev
* @link https://github.com/mihdan/mihdan-yandex-turbo-feed/
* @link https://yandex.ru/support/webmaster/turbo/rss-elements.html
* @copyright Copyright (c) 2017
* @license GPL-2.0+
* @wordpress-plugin
*/
namespace Mihdan\YandexTurboFeed;
/**
* Plugin Name: Yandex Turbo Feed
* Plugin URI: https://www.kobzarev.com/projects/yandex-turbo-feed/
* Description: Плагин создаёт настраиваемые ленты для сервиса Яндекс Турбо
* Version: 1.6.6
* Author: Mikhail Kobzarev
* Author URI: https://www.kobzarev.com/
* License: GNU General Public License v2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: mihdan-yandex-turbo-feed
* GitHub Plugin URI: https://github.com/mihdan/mihdan-yandex-turbo-feed/
* GitHub Branch: master
* Requires WP: 5.6
* Requires PHP: 7.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Слаг плагина
define( 'MIHDAN_YANDEX_TURBO_FEED_SLUG', 'mihdan_yandex_turbo_feed' );
define( 'MIHDAN_YANDEX_TURBO_FEED_VERSION', '1.6.6' );
define( 'MIHDAN_YANDEX_TURBO_FEED_PATH', __DIR__ );
define( 'MIHDAN_YANDEX_TURBO_FEED_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'MIHDAN_YANDEX_TURBO_FEED_FILE', __FILE__ );
/**
* Init plugin class on plugin load.
*/
static $plugin;
if ( ! isset( $plugin ) ) {
require_once MIHDAN_YANDEX_TURBO_FEED_PATH . '/vendor/autoload.php';
require_once MIHDAN_YANDEX_TURBO_FEED_PATH . '/vendor/advanced-custom-fields/acf.php';
require_once MIHDAN_YANDEX_TURBO_FEED_PATH . '/vendor/acf-multiple-taxonomy/acf-multiple-taxonomy.php';
$plugin = new Main();
}