the-post-grid.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Plugin Name: The Post Grid |
| 5 | * Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/ |
| 6 | * Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding. |
| 7 | * Author: RadiusTheme |
| 8 | * Version: 4.0.2 |
| 9 | * Text Domain: the-post-grid |
| 10 | * Domain Path: /languages |
| 11 | * Author URI: https://radiustheme.com/ |
| 12 | */ |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | $plugin_data = get_file_data( __FILE__, |
| 17 | [ |
| 18 | 'name' => 'Plugin Name', |
| 19 | 'version' => 'Version', |
| 20 | 'author' => 'Author', |
| 21 | ], |
| 22 | false ); |
| 23 | define( 'RT_THE_POST_GRID_VERSION', $plugin_data['version'] ); |
| 24 | define( 'RT_THE_POST_GRID_AUTHOR', $plugin_data['author'] ); |
| 25 | define( 'RT_THE_POST_GRID_NAME', $plugin_data['name'] ); |
| 26 | define( 'RT_THE_POST_GRID_PLUGIN_FILE', __FILE__ ); |
| 27 | define( 'RT_THE_POST_GRID_PLUGIN_PATH', dirname( __FILE__ ) ); |
| 28 | define( 'RT_THE_POST_GRID_PLUGIN_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ) ); |
| 29 | define( 'RT_THE_POST_GRID_PLUGIN_URL', plugins_url( '', __FILE__ ) ); |
| 30 | define( 'RT_THE_POST_GRID_PLUGIN_SLUG', basename( dirname( __FILE__ ) ) ); |
| 31 | define( 'RT_THE_POST_GRID_LANGUAGE_PATH', dirname( plugin_basename( __FILE__ ) ) . '/languages' ); |
| 32 | |
| 33 | if ( ! class_exists( 'rtTPG' ) ) { |
| 34 | require_once 'app/RtTpg.php'; |
| 35 | } |
| 36 | |
| 37 |