-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mihdan-mailru-pulse-feed.php
47 lines (42 loc) · 1.75 KB
/
mihdan-mailru-pulse-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
<?php
/**
* Zen Feed
*
* Plugin Name: Zen Feed (Свежее и актуальное, Дзен, Пульс, Яндекс.Новости)
* Plugin URI: https://wordpress.org/plugins/mihdan-mailru-pulse-feed/
* Description: Плагин формирует RSS-ленту (фид), которая подходит для таких сервисов как: "Свежее и актуальное" в панели вебмастера Яндекс, "Яндекс.Новости", "Дзен" (как для паблишеров, так и для новостных агентств) и "Пульс" от Mail.ru.
* Author: Mikhail Kobzarev
* Author URI: https://www.kobzarev.com/
* Requires at least: 5.3
* Tested up to: 6.6
* Version: 0.8.5
* Stable tag: 0.8.5
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* Text Domain: mihdan-mailru-pulse-feed
* Domain Path: /languages/
*
* GitHub Plugin URI: https://github.com/mihdan/mihdan-mailru-pulse-feed
*
* @package mihdan-mailru-pulse-feed
* @author Mikhail Kobzarev
* @link https://dzen.ru/help/website/rss-modify.html
*/
use Mihdan\MailRuPulseFeed\Main;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const MIHDAN_MAILRU_PULSE_FEED_VERSION = '0.8.5';
const MIHDAN_MAILRU_PULSE_FEED_PATH = __DIR__;
const MIHDAN_MAILRU_PULSE_FEED_FILE = __FILE__;
const MIHDAN_MAILRU_PULSE_FEED_SLUG = 'mihdan-mailru-pulse-feed';
const MIHDAN_MAILRU_PULSE_FEED_PREFIX = 'mihdan_mailru_pulse_feed';
define( 'MIHDAN_MAILRU_PULSE_FEED_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
/**
* Init plugin class on plugin load.
*/
if ( file_exists( MIHDAN_MAILRU_PULSE_FEED_PATH . '/vendor/autoload.php' ) ) {
require_once MIHDAN_MAILRU_PULSE_FEED_PATH . '/vendor/autoload.php';
new Main();
}