PluginProbe
GD Rating System / 3.7
GD Rating System v3.7
3.7.1 2.2 2.3 2.3.1 2.3.2 2.4 2.5 2.6 2.7 2.7.1 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.2 3.1.3 3.2 3.3 3.3.1 3.4 3.5 3.5.1 3.6 All 45 releases
gd-rating-system / gd-rating-system.php

gd-rating-system.php in GD Rating System 3.7, at gd-rating-system.php

169 lines 5.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: GD Rating System
4 * Plugin URI: https://plugins.dev4press.com/gd-rating-system/
5 * Description: Powerful, highly customizable and versatile ratings plugin to allow your users to vote for anything you want. Includes different rating methods and add-ons.
6 * Author: Milan Petrovic
7 * Author URI: https://www.dev4press.com/
8 * Text Domain: gd-rating-system
9 * Version: 3.7
10 * Requires at least: 5.5
11 * Tested up to: 7.0
12 * Requires PHP: 7.4
13 * License: GPLv3 or later
14 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
15 *
16 * == Copyright ==
17 * Copyright 2008 - 2026 Milan Petrovic (email: support@dev4press.com)
18 *
19 * This program is free software: you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation, either version 3 of the License, or
22 * (at your option) any later version.
23 *
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
28 *
29 * You should have received a copy of the GNU General Public License
30 * along with this program. If not, see <http://www.gnu.org/licenses/>
31 */
32
33 if ( ! defined( 'ABSPATH' ) ) {
34 exit;
35 }
36
37 $gdrts_dirname_basic = dirname( __FILE__ ) . '/';
38 $gdrts_urlname_basic = plugins_url( '/gd-rating-system/' );
39
40 if ( ! defined( 'GDRTS_PREVENT_WP_UPDATE_CHECK' ) ) {
41 define( 'GDRTS_PREVENT_WP_UPDATE_CHECK', true );
42 }
43
44 define( 'GDRTS_PATH', $gdrts_dirname_basic );
45 define( 'GDRTS_URL', $gdrts_urlname_basic );
46 define( 'GDRTS_D4PLIB', $gdrts_dirname_basic . 'd4plib/' );
47
48 if ( ! defined( 'D4PLIB_PATH' ) ) {
49 define( 'D4PLIB_PATH', GDRTS_PATH . 'd4plib/' );
50 }
51
52 if ( ! defined( 'D4PLIB_URL' ) ) {
53 define( 'D4PLIB_URL', GDRTS_URL . 'd4plib/' );
54 }
55
56 require_once( GDRTS_D4PLIB . 'd4p.core.php' );
57
58 d4p_prepare_object_cache( GDRTS_D4PLIB );
59
60 d4p_includes( array(
61 array( 'name' => 'ip', 'directory' => 'classes' ),
62 array( 'name' => 'base', 'directory' => 'classes' ),
63 array( 'name' => 'wpdb', 'directory' => 'core' ),
64 array( 'name' => 'settings', 'directory' => 'plugin' ),
65 array( 'name' => 'shortcodes', 'directory' => 'plugin' ),
66 array( 'name' => 'cache-wordpress', 'directory' => 'functions' ),
67 array( 'name' => 'sort', 'directory' => 'classes' ),
68 array( 'name' => 'functions', 'directory' => 'admin' ),
69 'functions',
70 'sanitize',
71 'access',
72 'wp',
73 ), GDRTS_D4PLIB );
74
75 global $_gdrts_db, $_gdrts_loop, $_gdrts_core, $_gdrts_plugin, $_gdrts_settings;
76
77 require_once( GDRTS_PATH . 'core/version.php' );
78 require_once( GDRTS_PATH . 'core/settings.php' );
79 require_once( GDRTS_PATH . 'core/functions.php' );
80 require_once( GDRTS_PATH . 'core/plugin.php' );
81
82 require_once( GDRTS_PATH . 'core/admin/shared.php' );
83 require_once( GDRTS_PATH . 'core/admin/functions.php' );
84
85 require_once( GDRTS_PATH . 'rating/core.db.php' );
86 require_once( GDRTS_PATH . 'rating/core.loop.php' );
87 require_once( GDRTS_PATH . 'rating/core.shortcodes.php' );
88 require_once( GDRTS_PATH . 'rating/core.query.php' );
89 require_once( GDRTS_PATH . 'rating/core.render.php' );
90 require_once( GDRTS_PATH . 'rating/core.preload.php' );
91
92 require_once( GDRTS_PATH . 'rating/base.classes.php' );
93 require_once( GDRTS_PATH . 'rating/base.elements.php' );
94 require_once( GDRTS_PATH . 'rating/base.rules.php' );
95 require_once( GDRTS_PATH . 'rating/base.font.php' );
96 require_once( GDRTS_PATH . 'rating/base.init.php' );
97 require_once( GDRTS_PATH . 'rating/base.engine.php' );
98 require_once( GDRTS_PATH . 'rating/base.widget.php' );
99
100 require_once( GDRTS_PATH . 'rating/engine.single.php' );
101 require_once( GDRTS_PATH . 'rating/engine.list.php' );
102
103 require_once( GDRTS_PATH . 'methods/stars-rating/init.php' );
104 require_once( GDRTS_PATH . 'methods/like-this/init.php' );
105
106 require_once( GDRTS_PATH . 'addons/dynamic-load/init.php' );
107 require_once( GDRTS_PATH . 'addons/posts/init.php' );
108 require_once( GDRTS_PATH . 'addons/comments/init.php' );
109 require_once( GDRTS_PATH . 'addons/rich-snippets/init.php' );
110 require_once( GDRTS_PATH . 'addons/feeds/init.php' );
111 require_once( GDRTS_PATH . 'addons/shortcode-builder/init.php' );
112
113 $_gdrts_db = new gdrts_core_db();
114 $_gdrts_core = new gdrts_core();
115 $_gdrts_plugin = new gdrts_core_plugin();
116 $_gdrts_settings = new gdrts_core_settings();
117 $_gdrts_loop = new gdrts_core_loop();
118
119 /** return gdrts_core */
120 function gdrts() {
121 global $_gdrts_core;
122
123 return $_gdrts_core;
124 }
125
126 /** return gdrts_core_db */
127 function gdrts_db() {
128 global $_gdrts_db;
129
130 return $_gdrts_db;
131 }
132
133 /** return gdrts_core_loop */
134 function gdrts_loop() {
135 global $_gdrts_loop;
136
137 return $_gdrts_loop;
138 }
139
140 /** return gdrts_core_plugin */
141 function gdrts_plugin() {
142 global $_gdrts_plugin;
143
144 return $_gdrts_plugin;
145 }
146
147 /** return gdrts_core_settings */
148 function gdrts_settings() {
149 global $_gdrts_settings;
150
151 return $_gdrts_settings;
152 }
153
154 if ( D4P_ADMIN ) {
155 d4p_includes( array(
156 array( 'name' => 'admin', 'directory' => 'plugin' ),
157 ), GDRTS_D4PLIB );
158
159 require_once( GDRTS_PATH . 'core/admin/help.php' );
160 require_once( GDRTS_PATH . 'core/admin/privacy.php' );
161 require_once( GDRTS_PATH . 'core/admin/grids.php' );
162 require_once( GDRTS_PATH . 'core/admin/plugin.php' );
163 }
164
165 if ( D4P_AJAX ) {
166 require_once( GDRTS_PATH . 'core/admin/ajax.php' );
167 require_once( GDRTS_PATH . 'rating/core.ajax.php' );
168 }
169