-
Notifications
You must be signed in to change notification settings - Fork 42
/
index.php
42 lines (34 loc) · 1.08 KB
/
index.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
<?php
/**
* Plugin Name: kk Star Ratings
* Plugin Slug: kk-star-ratings
* Plugin Nick: kksr
* Plugin URI: https://github.com/kamalkhan/kk-star-ratings
* Description: Allow blog visitors to involve and interact more effectively with your website by rating posts.
* Author: Kamal Khan
* Author URI: http://bhittani.com
* Text Domain: kk-star-ratings
* Domain Path: /languages
* Version: 5.4.6
* License: GPLv2 or later
*/
use function Bhittani\StarRating\core\functions\action;
if (! defined('ABSPATH')) {
http_response_code(404);
exit();
}
define('KK_STAR_RATINGS', __FILE__);
/* @dev */
require_once __DIR__.'/vendor/autoload.php';
/* @enddev */
if (function_exists('kksr_freemius')) {
kksr_freemius()->set_basename(true, __FILE__);
} else {
if (! function_exists('kksr_freemius')) {
require_once __DIR__.'/freemius.php';
}
require_once __DIR__.'/src/index.php';
require_once __DIR__.'/src/core/index.php';
// Let everyone know that the plugin is loaded.
action('init', kksr());
}